@pisell/private-materials 3.2.23 → 3.2.26

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 (347) 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 +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +8 -8
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +85 -35
  12. package/es/components/appointmentBooking/components/Cart/Item/Total.js +1 -1
  13. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  14. package/es/components/appointmentBooking/components/Cart/Item/index.js +14 -10
  15. package/es/components/appointmentBooking/components/Cart/Item/index.less +15 -6
  16. package/es/components/appointmentBooking/components/Cart/index.js +3 -2
  17. package/es/components/appointmentBooking/components/Cart/index.less +1 -1
  18. package/es/components/appointmentBooking/components/Content/index.js +14 -2
  19. package/es/components/appointmentBooking/components/Content/index.less +15 -0
  20. package/es/components/appointmentBooking/components/Date/index.js +2 -2
  21. package/es/components/appointmentBooking/components/Date/index.less +6 -0
  22. package/es/components/appointmentBooking/components/Footer/index.js +7 -2
  23. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +3 -0
  24. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.js +50 -0
  25. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.less +28 -0
  26. package/es/components/appointmentBooking/components/Guest/index.js +24 -4
  27. package/es/components/appointmentBooking/components/Guest/index.less +3 -3
  28. package/es/components/appointmentBooking/components/Header/index.js +9 -1
  29. package/es/components/appointmentBooking/components/Resource/index.js +6 -24
  30. package/es/components/appointmentBooking/components/Resource/index.less +0 -1
  31. package/es/components/appointmentBooking/components/Services/index.js +1 -14
  32. package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +1 -1
  33. package/es/components/appointmentBooking/components/TimeSlicing/index.js +22 -17
  34. package/es/components/appointmentBooking/components/TimeSlicing/index.less +1 -0
  35. package/es/components/appointmentBooking/components/Voucher/index.js +10 -10
  36. package/es/components/appointmentBooking/hooks.d.ts +6 -3
  37. package/es/components/appointmentBooking/hooks.js +52 -32
  38. package/es/components/appointmentBooking/index.js +8 -9
  39. package/es/components/appointmentBooking/locales.d.ts +6 -0
  40. package/es/components/appointmentBooking/locales.js +6 -0
  41. package/es/components/appointmentBooking/utils.d.ts +9 -0
  42. package/es/components/appointmentBooking/utils.js +18 -1
  43. package/es/components/booking/addons/index.js +7 -5
  44. package/es/components/booking/addons/model.d.ts +1 -10
  45. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  46. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  47. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  48. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  49. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  50. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  51. package/es/components/booking/components/footer/utils.js +8 -5
  52. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  53. package/es/components/booking/components/voucher/index.js +11 -10
  54. package/es/components/booking/forms/footer.d.ts +6 -0
  55. package/es/components/booking/forms/footer.js +88 -0
  56. package/es/components/booking/forms/index.d.ts +1 -1
  57. package/es/components/booking/forms/index.js +25 -20
  58. package/es/components/booking/forms/index.less +7 -0
  59. package/es/components/booking/forms/model.d.ts +1 -10
  60. package/es/components/booking/forms/sendModal/index.d.ts +27 -0
  61. package/es/components/booking/forms/sendModal/index.js +82 -0
  62. package/es/components/booking/forms/sendModal/index.less +9 -0
  63. package/es/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
  64. package/es/components/booking/forms/sendModal/useSendModal.js +79 -0
  65. package/es/components/booking/forms/serve.d.ts +9 -0
  66. package/es/components/booking/forms/serve.js +20 -0
  67. package/es/components/booking/forms/table/index.d.ts +0 -1
  68. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  69. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  70. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  71. package/es/components/booking/info/date/index.d.ts +0 -1
  72. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  73. package/es/components/booking/info/model.d.ts +1 -10
  74. package/es/components/booking/info/notes/index.d.ts +0 -1
  75. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  76. package/es/components/booking/info/service/addService/index.js +3 -3
  77. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  78. package/es/components/booking/info/service/editService/index.js +71 -51
  79. package/es/components/booking/info/service/like/index.d.ts +0 -1
  80. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
  81. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  82. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  83. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  84. package/es/components/booking/info2/service/addService/index.js +3 -2
  85. package/es/components/booking/info2/service/addService/utils.js +57 -5
  86. package/es/components/booking/info2/service/editService/Resources/index.js +20 -2
  87. package/es/components/booking/info2/service/editService/index.js +5 -3
  88. package/es/components/booking/info2/service/editService/utils.d.ts +4 -2
  89. package/es/components/booking/info2/service/editService/utils.js +18 -0
  90. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  91. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  92. package/es/components/booking/locales.d.ts +39 -0
  93. package/es/components/booking/locales.js +39 -0
  94. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  95. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  96. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  97. package/es/components/booking/model.d.ts +1 -9
  98. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  99. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  100. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  101. package/es/components/booking/notes/model.d.ts +1 -10
  102. package/es/components/booking/payments/model.d.ts +1 -10
  103. package/es/components/booking/utils.d.ts +2 -2
  104. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  105. package/es/components/eftpos/group/index.d.ts +0 -1
  106. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  107. package/es/components/eftpos/icon/device.d.ts +0 -1
  108. package/es/components/eftpos/receipt/index.d.ts +0 -1
  109. package/es/components/eftposPay/amount.d.ts +1 -2
  110. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  111. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  112. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  113. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  114. package/es/components/eftposPay/device.d.ts +1 -2
  115. package/es/components/eftposPay/hooks.d.ts +1 -1
  116. package/es/components/eftposPay/payo/config.d.ts +0 -1
  117. package/es/components/eftposPay/store/index.d.ts +4 -4
  118. package/es/components/eftposPay/tip.d.ts +0 -1
  119. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  120. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  121. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  122. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  123. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  124. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  125. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  126. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  127. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  128. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  129. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  130. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  131. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  132. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  133. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  134. package/es/components/login/index.d.ts +0 -1
  135. package/es/components/pay/toC/PaymentList/serve.js +2 -2
  136. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  137. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  138. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  139. package/es/components/pay/toC/model.d.ts +1 -9
  140. package/es/components/pay/toC/serve.js +2 -2
  141. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  142. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  143. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  144. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
  145. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  146. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  147. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  148. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  149. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  150. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  151. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  152. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  153. package/es/components/schedules/calendar/index.d.ts +0 -1
  154. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  155. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  156. package/es/components/schedules/model.d.ts +1 -9
  157. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  158. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  159. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  160. package/es/components/schedules/products/list/index.d.ts +0 -1
  161. package/es/components/schedules/resources/list/index.d.ts +0 -1
  162. package/es/components/schedules/utils.d.ts +1 -1
  163. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
  164. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  165. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  166. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  167. package/es/components/shoppingCart/index.d.ts +0 -1
  168. package/es/components/wallet/Detail/model.d.ts +1 -13
  169. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  170. package/es/components/wallet/PointCard/model.d.ts +1 -13
  171. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  172. package/es/components/wallet/Voucher/model.d.ts +1 -13
  173. package/es/components/wallet/model.d.ts +1 -9
  174. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  175. package/es/utils/index.d.ts +1 -1
  176. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +44 -18
  177. package/lib/components/appointmentBooking/components/Cart/Item/Total.js +1 -1
  178. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  179. package/lib/components/appointmentBooking/components/Cart/Item/index.js +16 -6
  180. package/lib/components/appointmentBooking/components/Cart/Item/index.less +15 -6
  181. package/lib/components/appointmentBooking/components/Cart/index.js +3 -2
  182. package/lib/components/appointmentBooking/components/Cart/index.less +1 -1
  183. package/lib/components/appointmentBooking/components/Content/index.js +8 -2
  184. package/lib/components/appointmentBooking/components/Content/index.less +15 -0
  185. package/lib/components/appointmentBooking/components/Date/index.js +34 -28
  186. package/lib/components/appointmentBooking/components/Date/index.less +6 -0
  187. package/lib/components/appointmentBooking/components/Footer/index.js +5 -1
  188. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +3 -0
  189. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.js +74 -0
  190. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.less +28 -0
  191. package/lib/components/appointmentBooking/components/Guest/index.js +21 -4
  192. package/lib/components/appointmentBooking/components/Guest/index.less +3 -3
  193. package/lib/components/appointmentBooking/components/Header/index.js +9 -1
  194. package/lib/components/appointmentBooking/components/Resource/index.js +4 -8
  195. package/lib/components/appointmentBooking/components/Resource/index.less +0 -1
  196. package/lib/components/appointmentBooking/components/Services/index.js +0 -12
  197. package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +1 -1
  198. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +12 -4
  199. package/lib/components/appointmentBooking/components/TimeSlicing/index.less +1 -0
  200. package/lib/components/appointmentBooking/components/Voucher/index.js +2 -8
  201. package/lib/components/appointmentBooking/hooks.d.ts +6 -3
  202. package/lib/components/appointmentBooking/hooks.js +26 -14
  203. package/lib/components/appointmentBooking/index.js +7 -7
  204. package/lib/components/appointmentBooking/locales.d.ts +6 -0
  205. package/lib/components/appointmentBooking/locales.js +6 -0
  206. package/lib/components/appointmentBooking/utils.d.ts +9 -0
  207. package/lib/components/appointmentBooking/utils.js +9 -1
  208. package/lib/components/booking/addons/index.js +7 -5
  209. package/lib/components/booking/addons/model.d.ts +1 -10
  210. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  211. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  212. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  213. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  214. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  215. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  216. package/lib/components/booking/components/footer/utils.js +4 -5
  217. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  218. package/lib/components/booking/components/voucher/index.js +3 -8
  219. package/lib/components/booking/forms/footer.d.ts +6 -0
  220. package/lib/components/booking/forms/footer.js +81 -0
  221. package/lib/components/booking/forms/index.d.ts +1 -1
  222. package/lib/components/booking/forms/index.js +4 -2
  223. package/lib/components/booking/forms/index.less +7 -0
  224. package/lib/components/booking/forms/model.d.ts +1 -10
  225. package/lib/components/booking/forms/sendModal/index.d.ts +27 -0
  226. package/lib/components/booking/forms/sendModal/index.js +128 -0
  227. package/lib/components/booking/forms/sendModal/index.less +9 -0
  228. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
  229. package/lib/components/booking/forms/sendModal/useSendModal.js +70 -0
  230. package/lib/components/booking/forms/serve.d.ts +9 -0
  231. package/lib/components/booking/forms/serve.js +5 -2
  232. package/lib/components/booking/forms/table/index.d.ts +0 -1
  233. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  234. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  235. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  236. package/lib/components/booking/info/date/index.d.ts +0 -1
  237. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  238. package/lib/components/booking/info/model.d.ts +1 -10
  239. package/lib/components/booking/info/notes/index.d.ts +0 -1
  240. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  241. package/lib/components/booking/info/service/addService/index.js +2 -2
  242. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  243. package/lib/components/booking/info/service/editService/index.js +12 -2
  244. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  245. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
  246. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  247. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  248. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  249. package/lib/components/booking/info2/service/addService/index.js +3 -2
  250. package/lib/components/booking/info2/service/addService/utils.js +36 -1
  251. package/lib/components/booking/info2/service/editService/Resources/index.js +16 -1
  252. package/lib/components/booking/info2/service/editService/index.js +4 -2
  253. package/lib/components/booking/info2/service/editService/utils.d.ts +4 -2
  254. package/lib/components/booking/info2/service/editService/utils.js +48 -0
  255. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  256. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  257. package/lib/components/booking/locales.d.ts +39 -0
  258. package/lib/components/booking/locales.js +39 -0
  259. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  260. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  261. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  262. package/lib/components/booking/model.d.ts +1 -9
  263. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  264. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  265. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  266. package/lib/components/booking/notes/model.d.ts +1 -10
  267. package/lib/components/booking/payments/model.d.ts +1 -10
  268. package/lib/components/booking/utils.d.ts +2 -2
  269. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  270. package/lib/components/eftpos/group/index.d.ts +0 -1
  271. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  272. package/lib/components/eftpos/icon/device.d.ts +0 -1
  273. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  274. package/lib/components/eftposPay/amount.d.ts +1 -2
  275. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  276. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  277. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  278. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  279. package/lib/components/eftposPay/device.d.ts +1 -2
  280. package/lib/components/eftposPay/hooks.d.ts +1 -1
  281. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  282. package/lib/components/eftposPay/store/index.d.ts +4 -4
  283. package/lib/components/eftposPay/tip.d.ts +0 -1
  284. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  285. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  286. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  287. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  288. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  289. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  290. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  291. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  292. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  293. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  294. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  295. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  296. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  297. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  298. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  299. package/lib/components/login/index.d.ts +0 -1
  300. package/lib/components/pay/toC/PaymentList/serve.js +1 -1
  301. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  302. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  303. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  304. package/lib/components/pay/toC/model.d.ts +1 -9
  305. package/lib/components/pay/toC/serve.js +1 -1
  306. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  307. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  308. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  309. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
  310. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  311. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  312. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  313. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  314. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  315. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  316. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  317. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  318. package/lib/components/schedules/calendar/index.d.ts +0 -1
  319. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  320. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  321. package/lib/components/schedules/model.d.ts +1 -9
  322. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  323. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  324. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  325. package/lib/components/schedules/products/list/index.d.ts +0 -1
  326. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  327. package/lib/components/schedules/utils.d.ts +1 -1
  328. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
  329. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  330. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  331. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  332. package/lib/components/shoppingCart/index.d.ts +0 -1
  333. package/lib/components/wallet/Detail/model.d.ts +1 -13
  334. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  335. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  336. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  337. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  338. package/lib/components/wallet/model.d.ts +1 -9
  339. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  340. package/lib/utils/index.d.ts +1 -1
  341. package/package.json +4 -4
  342. package/es/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  343. package/es/components/eventBooking/components/Provider/SelectProduct/index.js +0 -77
  344. package/es/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
  345. package/lib/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
  346. package/lib/components/eventBooking/components/Provider/SelectProduct/index.js +0 -69
  347. package/lib/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
@@ -13,13 +13,16 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
13
13
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
14
14
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
15
  import React, { useState, useMemo, forwardRef, useCallback, useImperativeHandle } from 'react';
16
- import { Col, Form, Select, Button, Alert } from 'antd';
16
+ import { Col, Form, Select, Button, Alert, Checkbox, Tooltip } from 'antd';
17
17
  import MaxLengthSelect from "./MaxLengthSelect";
18
18
  import Like from "../../../../info/service/like";
19
19
  import "./index.less";
20
20
  import { locales } from '@pisell/utils';
21
21
  import { getErrorList } from "../../../utilsByBooking";
22
22
  import { isArray } from 'lodash';
23
+ import { getAutoAllocationStorage, setAutoAllocationStorage } from "../utils";
24
+ import { useUpdate } from 'ahooks';
25
+ import { QuestionCircleOutlined } from "@ant-design/icons";
23
26
  var Resources = function Resources(_ref, ref) {
24
27
  var _cacheItem$_data2, _cacheItem$_data4;
25
28
  var state = _ref.state,
@@ -31,6 +34,7 @@ var Resources = function Resources(_ref, ref) {
31
34
  _useState2 = _slicedToArray(_useState, 2),
32
35
  showError = _useState2[0],
33
36
  setShowError = _useState2[1];
37
+ var update = useUpdate();
34
38
 
35
39
  // 需要渲染的列表, 资源二级结构数据
36
40
  var data = useMemo(function () {
@@ -56,6 +60,10 @@ var Resources = function Resources(_ref, ref) {
56
60
  var _value = useMemo(function () {
57
61
  return value || defaultValue;
58
62
  }, [value, defaultValue]);
63
+ var handleCheckAutoAllocation = function handleCheckAutoAllocation(id, checked) {
64
+ setAutoAllocationStorage(_defineProperty({}, id, checked));
65
+ update();
66
+ };
59
67
 
60
68
  /**
61
69
  * @title: 当选择资源时
@@ -169,6 +177,9 @@ var Resources = function Resources(_ref, ref) {
169
177
  check: check
170
178
  };
171
179
  });
180
+ var getIsAutoAllocation = function getIsAutoAllocation(id) {
181
+ return getAutoAllocationStorage(id);
182
+ };
172
183
  return /*#__PURE__*/React.createElement(React.Fragment, null, data.map(function (item) {
173
184
  var _cur$2;
174
185
  var cur = _value[item.form_id];
@@ -217,7 +228,14 @@ var Resources = function Resources(_ref, ref) {
217
228
  filterOption: function filterOption(str, option) {
218
229
  return ((option === null || option === void 0 ? void 0 : option.labelText) || '').toLowerCase().includes((str || '').toLowerCase());
219
230
  }
220
- }, renderOptions(item.renderList, 'id', 'label', 'resource')))), state.renderType !== 'eventBooking' && (errors || []).map(function (d) {
231
+ }, renderOptions(item.renderList, 'id', 'label', 'resource')), /*#__PURE__*/React.createElement(Checkbox, {
232
+ checked: getIsAutoAllocation(item.form_id),
233
+ onChange: function onChange(e) {
234
+ handleCheckAutoAllocation(item.form_id, e.target.checked);
235
+ }
236
+ }), /*#__PURE__*/React.createElement(Tooltip, {
237
+ title: locales.getText('page.booking.text.resource.check-auto-allocation-tip')
238
+ }, /*#__PURE__*/React.createElement(QuestionCircleOutlined, null)))), state.renderType !== 'eventBooking' && (errors || []).map(function (d) {
221
239
  return /*#__PURE__*/React.createElement(Alert, {
222
240
  key: d.type,
223
241
  message: d.label,
@@ -32,7 +32,7 @@ import { useUpdateEffect, useMemoizedFn } from 'ahooks';
32
32
  import { getServiceTimes, deleteCacheParams, getProductTotalPrice } from "../../../utils";
33
33
  import { getErrorList } from "../../utilsByBooking";
34
34
  import { formatResources, getDurationProps, getFlexibleOption, getTimeObj } from "../addService/utils";
35
- import { PisellAdjustPriceInputNumber } from "@pisell/materials";
35
+ import { PisellAdjustPriceInputNumber } from '@pisell/materials';
36
36
  var submitLock = false;
37
37
  var Info = function Info(_, ref) {
38
38
  var _state$bookingConfig2, _state$service$cacheI4, _state$service$cacheI5, _state$service3, _state$service5, _window$BaseMaterials, _state$service$cacheI6, _state$service6, _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9, _state$service$cacheI10, _state$bookingConfig3, _state$service$resour;
@@ -269,6 +269,7 @@ var Info = function Info(_, ref) {
269
269
  };
270
270
  var setEditData = useMemoizedFn(function (_cacheItem) {
271
271
  form.resetFields();
272
+ isChangeTotal.current = false;
272
273
  var cacheItem = _cacheItem || state.service.cacheItem;
273
274
  var values = cacheItem._extend;
274
275
  form.setFieldsValue(values);
@@ -404,9 +405,10 @@ var Info = function Info(_, ref) {
404
405
  },
405
406
  value: item._extend.other
406
407
  },
407
- callback: function callback(e) {
408
+ callback: function callback(e, extension_type, detail) {
409
+ var _detail = detail || item;
408
410
  // 重新生成商品
409
- var cacheItem = _objectSpread(_objectSpread({}, item), {}, {
411
+ var cacheItem = _objectSpread(_objectSpread({}, _detail), {}, {
410
412
  product_id: item.id,
411
413
  _id: item === null || item === void 0 ? void 0 : item._id,
412
414
  _key: e.key,
@@ -7,5 +7,7 @@
7
7
 
8
8
  判断是否需要进入编辑服务页
9
9
  */
10
- declare const isNewService: (service: any) => any;
11
- declare const init: ({ cacheItem, state }: any) => any;
10
+ export declare const getAutoAllocationStorage: (id: string | number) => any;
11
+ export declare const setAutoAllocationStorage: (data: {
12
+ [key: string]: boolean;
13
+ }) => void;
@@ -14,6 +14,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
14
14
  判断是否需要进入编辑服务页
15
15
  */
16
16
 
17
+ import { isBoolean } from "@pisell/utils";
17
18
  var isNewService = function isNewService(service) {
18
19
  return !service.new && service._extend.endDate;
19
20
  };
@@ -34,4 +35,21 @@ var init = function init(_ref) {
34
35
  var _isNewService = isNewService(cacheItem);
35
36
  if (!_isNewService) {}
36
37
  return _objectSpread({}, cacheItem);
38
+ };
39
+ export var getAutoAllocationStorage = function getAutoAllocationStorage(id) {
40
+ var value = localStorage.getItem('resource-auto-allocation');
41
+ if (value) {
42
+ var valueObj = JSON.parse(value);
43
+ return isBoolean(valueObj[id]) ? valueObj[id] : true;
44
+ }
45
+ return true;
46
+ };
47
+ export var setAutoAllocationStorage = function setAutoAllocationStorage(data) {
48
+ var value = localStorage.getItem('resource-auto-allocation');
49
+ if (value) {
50
+ var valueObj = JSON.parse(value);
51
+ localStorage.setItem('resource-auto-allocation', JSON.stringify(_objectSpread(_objectSpread({}, valueObj), data)));
52
+ } else {
53
+ localStorage.setItem('resource-auto-allocation', JSON.stringify(_objectSpread({}, data)));
54
+ }
37
55
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, handleDeleteService, }: any) => JSX.Element;
4
3
  export default ServiceItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceList: ({ onEdit }: {
4
3
  onEdit: any;
@@ -201,6 +201,7 @@ declare const _default: {
201
201
  'page.booking.text.please-choose-an-option-1': string;
202
202
  'page.booking.text.please-choose-an-option-2': string;
203
203
  'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
204
+ 'page.booking.text.resource.check-auto-allocation-tip': string;
204
205
  'page.booking.text.price-extra': (origin: string, current: string) => string;
205
206
  'pisell2.booking.dashboard.groups-on-site-now': string;
206
207
  'pisell2.booking.dashboard.groups-on-site-now-tip': string;
@@ -240,6 +241,18 @@ declare const _default: {
240
241
  'pisell2.text.change.pet.cancel': string;
241
242
  'pisell2.text.booking-list': string;
242
243
  'pisell2.text.edit-booking': string;
244
+ 'pisell2.text.email-error-message': string;
245
+ 'pisell2.text.phone-required-error-message': string;
246
+ 'pisell2.text.email-required-error-message': string;
247
+ 'pisell2.text.send-form-reminder': string;
248
+ 'pisell2.text.send-sms-reminder': string;
249
+ 'pisell2.text.send-email-reminder': string;
250
+ 'pisell2.text.send-form-ok': string;
251
+ 'pisell2.text.send-form-toast': string;
252
+ 'pisell2.text.send-form-reminder-completed': string;
253
+ 'pisell2.text.send-form-reminder-tooltip': string;
254
+ 'pisell2.text.send-form-reminder-refresh': string;
255
+ 'pisell2.text.send-form-reminder-error-message': string;
243
256
  'pisell2.text.goodpass': string;
244
257
  'pisell2.text.goodpass.product-vouchers': string;
245
258
  'pisell2.text.goodpass.view-more': string;
@@ -449,6 +462,7 @@ declare const _default: {
449
462
  'page.booking.text.please-choose-an-option-1': string;
450
463
  'page.booking.text.please-choose-an-option-2': string;
451
464
  'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
465
+ 'page.booking.text.resource.check-auto-allocation-tip': string;
452
466
  'page.booking.text.price-extra': (origin: string, current: string) => string;
453
467
  'pisell2.booking.dashboard.groups-on-site-now': string;
454
468
  'pisell2.booking.dashboard.groups-on-site-now-tip': string;
@@ -488,6 +502,18 @@ declare const _default: {
488
502
  'pisell2.text.change.pet.cancel': string;
489
503
  'pisell2.text.booking-list': string;
490
504
  'pisell2.text.edit-booking': string;
505
+ 'pisell2.text.email-error-message': string;
506
+ 'pisell2.text.phone-required-error-message': string;
507
+ 'pisell2.text.email-required-error-message': string;
508
+ 'pisell2.text.send-form-reminder': string;
509
+ 'pisell2.text.send-sms-reminder': string;
510
+ 'pisell2.text.send-email-reminder': string;
511
+ 'pisell2.text.send-form-ok': string;
512
+ 'pisell2.text.send-form-toast': string;
513
+ 'pisell2.text.send-form-reminder-completed': string;
514
+ 'pisell2.text.send-form-reminder-tooltip': string;
515
+ 'pisell2.text.send-form-reminder-refresh': string;
516
+ 'pisell2.text.send-form-reminder-error-message': string;
491
517
  'pisell2.text.goodpass': string;
492
518
  'pisell2.text.goodpass.product-vouchers': string;
493
519
  'pisell2.text.goodpass.view-more': string;
@@ -697,6 +723,7 @@ declare const _default: {
697
723
  'page.booking.text.please-choose-an-option-1': string;
698
724
  'page.booking.text.please-choose-an-option-2': string;
699
725
  'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
726
+ 'page.booking.text.resource.check-auto-allocation-tip': string;
700
727
  'page.booking.text.price-extra': (origin: string, current: string) => string;
701
728
  'pisell2.booking.dashboard.groups-on-site-now': string;
702
729
  'pisell2.booking.dashboard.groups-on-site-now-tip': string;
@@ -736,6 +763,18 @@ declare const _default: {
736
763
  'pisell2.text.change.pet.cancel': string;
737
764
  'pisell2.text.booking-list': string;
738
765
  'pisell2.text.edit-booking': string;
766
+ 'pisell2.text.email-error-message': string;
767
+ 'pisell2.text.phone-required-error-message': string;
768
+ 'pisell2.text.email-required-error-message': string;
769
+ 'pisell2.text.send-form-reminder': string;
770
+ 'pisell2.text.send-sms-reminder': string;
771
+ 'pisell2.text.send-email-reminder': string;
772
+ 'pisell2.text.send-form-ok': string;
773
+ 'pisell2.text.send-form-toast': string;
774
+ 'pisell2.text.send-form-reminder-completed': string;
775
+ 'pisell2.text.send-form-reminder-tooltip': string;
776
+ 'pisell2.text.send-form-reminder-refresh': string;
777
+ 'pisell2.text.send-form-reminder-error-message': string;
739
778
  'pisell2.text.goodpass': string;
740
779
  'pisell2.text.goodpass.product-vouchers': string;
741
780
  'pisell2.text.goodpass.view-more': string;
@@ -234,6 +234,7 @@ export default {
234
234
  'page.booking.text.resource.min-length-error': function pageBookingTextResourceMinLengthError(x, y) {
235
235
  return "Select at least ".concat(x, " ").concat(y);
236
236
  },
237
+ 'page.booking.text.resource.check-auto-allocation-tip': "When checked, content will be automatically filled in without manual selection",
237
238
  'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
238
239
  return "Original price of the item:".concat(origin, ",Current price of the item:").concat(current);
239
240
  },
@@ -277,6 +278,18 @@ export default {
277
278
  'pisell2.text.change.pet.cancel': 'Discard (Clear items)',
278
279
  'pisell2.text.booking-list': "List",
279
280
  'pisell2.text.edit-booking': "Edit",
281
+ 'pisell2.text.email-error-message': 'Email format error',
282
+ 'pisell2.text.phone-required-error-message': 'Please enter a phone number',
283
+ 'pisell2.text.email-required-error-message': 'Please enter an email address',
284
+ 'pisell2.text.send-form-reminder': 'Send Form Reminder',
285
+ 'pisell2.text.send-sms-reminder': 'Send SMS Reminder',
286
+ 'pisell2.text.send-email-reminder': 'Send Email Reminder',
287
+ 'pisell2.text.send-form-ok': 'Send',
288
+ 'pisell2.text.send-form-toast': 'Form reminder sent',
289
+ 'pisell2.text.send-form-reminder-completed': 'Requested Forms Completed',
290
+ 'pisell2.text.send-form-reminder-tooltip': 'Refresh forms',
291
+ 'pisell2.text.send-form-reminder-refresh': 'Forms refreshed successfully',
292
+ 'pisell2.text.send-form-reminder-error-message': 'Please select at least one reminder method',
280
293
  'pisell2.text.goodpass': "GoodPass",
281
294
  'pisell2.text.goodpass.product-vouchers': "Product Vouchers",
282
295
  'pisell2.text.goodpass.view-more': "View More",
@@ -523,6 +536,7 @@ export default {
523
536
  'page.booking.text.resource.min-length-error': function pageBookingTextResourceMinLengthError(x, y) {
524
537
  return "\u81F3\u5C11\u9009\u62E9".concat(x, "\u9879").concat(y);
525
538
  },
539
+ 'page.booking.text.resource.check-auto-allocation-tip': "\u52FE\u9009\u540E\u5C06\u81EA\u52A8\u586B\u5165\u5185\u5BB9\uFF0C\u65E0\u9700\u624B\u52A8\u9009\u62E9",
526
540
  'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
527
541
  return "\u5546\u54C1\u539F\u4EF7:".concat(origin, ",\u5546\u54C1\u73B0\u4EF7:").concat(current);
528
542
  },
@@ -566,6 +580,18 @@ export default {
566
580
  'pisell2.text.change.pet.cancel': '不保留(清空商品)',
567
581
  'pisell2.text.booking-list': "列表",
568
582
  'pisell2.text.edit-booking': "编辑",
583
+ 'pisell2.text.email-error-message': '电子邮件格式错误',
584
+ 'pisell2.text.phone-required-error-message': '请输入手机号码',
585
+ 'pisell2.text.email-required-error-message': '请输入邮箱地址',
586
+ 'pisell2.text.send-form-reminder': '发送表单提醒',
587
+ 'pisell2.text.send-sms-reminder': '发送短信提醒',
588
+ 'pisell2.text.send-email-reminder': '发送邮件提醒',
589
+ 'pisell2.text.send-form-ok': '发送',
590
+ 'pisell2.text.send-form-toast': '表单提醒已发送',
591
+ 'pisell2.text.send-form-reminder-completed': '已完成所需表单',
592
+ 'pisell2.text.send-form-reminder-tooltip': '刷新表单',
593
+ 'pisell2.text.send-form-reminder-refresh': '已刷新表单',
594
+ 'pisell2.text.send-form-reminder-error-message': '请至少选择一种提醒方式',
569
595
  'pisell2.text.goodpass': "商品券",
570
596
  'pisell2.text.goodpass.product-vouchers': "商品兑换券",
571
597
  'pisell2.text.goodpass.view-more': "查看更多",
@@ -812,6 +838,7 @@ export default {
812
838
  'page.booking.text.resource.min-length-error': function pageBookingTextResourceMinLengthError(x, y) {
813
839
  return "\u81F3\u5C11\u9078\u64C7".concat(x, "\u9805").concat(y);
814
840
  },
841
+ 'page.booking.text.resource.check-auto-allocation-tip': "\u52FE\u9078\u5F8C\u5C07\u81EA\u52D5\u586B\u5165\u5167\u5BB9\uFF0C\u7121\u9700\u624B\u52D5\u9078\u64C7",
815
842
  'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
816
843
  return "\u5546\u54C1\u539F\u50F9:".concat(origin, ",\u5546\u54C1\u73FE\u50F9:").concat(current);
817
844
  },
@@ -855,6 +882,18 @@ export default {
855
882
  'pisell2.text.change.pet.cancel': '不保留(清空商品)',
856
883
  'pisell2.text.booking-list': "列表",
857
884
  'pisell2.text.edit-booking': "編輯",
885
+ 'pisell2.text.email-error-message': '電子郵件格式錯誤',
886
+ 'pisell2.text.phone-required-error-message': '請輸入手機號碼',
887
+ 'pisell2.text.email-required-error-message': '請輸入電子郵件地址',
888
+ 'pisell2.text.send-form-reminder': '發送表單提醒',
889
+ 'pisell2.text.send-sms-reminder': '發送短信提醒',
890
+ 'pisell2.text.send-email-reminder': '發送郵件提醒',
891
+ 'pisell2.text.send-form-ok': '發送',
892
+ 'pisell2.text.send-form-toast': '表單提醒已發送',
893
+ 'pisell2.text.send-form-reminder-completed': '已完成所需表單',
894
+ 'pisell2.text.send-form-reminder-tooltip': '刷新表單',
895
+ 'pisell2.text.send-form-reminder-refresh': '已刷新表單',
896
+ 'pisell2.text.send-form-reminder-error-message': '請至少選擇一種提醒方式',
858
897
  'pisell2.text.goodpass': "商品券",
859
898
  'pisell2.text.goodpass.product-vouchers': "商品兌換券",
860
899
  'pisell2.text.goodpass.view-more': "查看更多",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface DurationProps extends SelectProps {
4
3
  locale?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from "antd";
3
2
  interface StartTimeProps extends SelectProps {
4
3
  locale?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -105,11 +104,4 @@ export declare const walkInData: {
105
104
  id: number;
106
105
  nickname: string;
107
106
  };
108
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
109
- state: FormState;
110
- } & {
111
- dispatch: (params: {
112
- type: string;
113
- payload: any;
114
- }) => void;
115
- }>;
107
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface InfoProps {
4
3
  isEdit: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface InfoProps {
4
3
  title?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const AddNote: ({ value, onChange, wait, title, placeholder }: any) => JSX.Element;
4
3
  export default AddNote;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -162,10 +162,10 @@ export declare const getProductTotalPrice: (item: any) => number;
162
162
  export declare const getDuration: (duration: number | {
163
163
  type: string;
164
164
  value: number;
165
- }) => number | "flexible" | {
165
+ }) => number | {
166
166
  type: string;
167
167
  value: number;
168
- };
168
+ } | "flexible";
169
169
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
170
170
  export declare const getIsEdit: (state: any) => boolean;
171
171
  export {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioGroupProps } from 'antd';
3
2
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
4
3
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 自定义组件设置
4
3
  * @description: 自定义组件设置
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps } from './const';
3
2
  /**
4
3
  * @title: 支付金额信息配置页
@@ -9,7 +8,7 @@ import { PosProps } from './const';
9
8
  */
10
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
11
10
  className?: string | undefined;
12
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
13
12
  [keys: string]: unknown;
14
13
  } | undefined, other?: any) => void) | undefined;
15
14
  onClose: () => void;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './titlebar.less';
3
2
  declare enum EPopupTitleBarVariantType {
4
3
  BackTitleClose = "back-title-cancel",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusType } from '../../const';
3
2
  declare const _default: (props: {
4
3
  status: StatusType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: {
3
2
  status: string;
4
3
  pedding?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PayProps, PosProps } from './const';
3
2
  import './device.less';
4
3
  /**
@@ -11,7 +10,7 @@ import './device.less';
11
10
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
12
11
  api: PayProps['api'];
13
12
  className?: string | undefined;
14
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
13
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
15
14
  [keys: string]: unknown;
16
15
  } | undefined, other?: any) => void) | undefined;
17
16
  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" | "payo" | "tyro" | "windcave">;
22
+ readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "payo" | "stripe">;
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 { StatusEnum } from '../const';
3
2
  export declare const POS: ({ api, onChange, }: {
4
3
  api: {
@@ -295,15 +295,15 @@ 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?: "pay" | "fullPay" | "refund" | "query" | undefined;
298
+ mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | undefined;
301
- action?: "amount" | "pay" | "deviceList" | undefined;
300
+ eftpos?: "tyro" | "windcave" | "payo" | "stripe" | undefined;
301
+ action?: "amount" | "deviceList" | "pay" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "step" | "unset" | undefined;
306
+ type?: "unset" | "step" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './tip.less';
3
2
  /**
4
3
  * @title: 支付状态未知页面
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 获取 Tyro 资源
4
3
  * @description:
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 按钮操作区
4
3
  * @description: 仅包含签名
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ api, onChange, formatAmount, }: {
3
2
  api: any;
4
3
  onChange: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => JSX.Element;
4
3
  export default ErrorTip;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const EmptyHolderModal: (props: any) => JSX.Element;
4
3
  export default EmptyHolderModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const InformationOptionsModal: (props: any) => JSX.Element;
4
3
  export default InformationOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const OrderProductModal: (props: any) => JSX.Element;
4
3
  export default OrderProductModal;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const RemoveOptionConfirmModal: (props: any) => JSX.Element;
3
2
  export default RemoveOptionConfirmModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type CallToBookProps = {
3
2
  show: boolean;
4
3
  type: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WeekItem: (props: any) => JSX.Element;
4
3
  export default WeekItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CalenDateWeekProps = {
4
3
  currentDate: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DayItem: (props: any) => JSX.Element;
4
3
  export default DayItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { CalendarItemProps } from '../../../../../type';
4
3
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;