@pisell/private-materials 6.11.136 → 6.11.138

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 (279) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/businessModel/SalesModel/index.d.ts +1 -0
  8. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  9. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  10. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  11. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  12. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  13. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  14. package/es/components/booking/components/footer/index.js +12 -6
  15. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  16. package/es/components/booking/forms/table/index.d.ts +0 -1
  17. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  18. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  19. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  20. package/es/components/booking/info/index.d.ts +1 -0
  21. package/es/components/booking/info/notes/index.d.ts +1 -0
  22. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  23. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  24. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  25. package/es/components/booking/info/service/like/index.d.ts +0 -1
  26. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  27. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  28. package/es/components/booking/info/service2/Group/utils.js +30 -1
  29. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  30. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  31. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  32. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  33. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  34. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  35. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  36. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  37. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  38. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  39. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  40. package/es/components/booking/utils.d.ts +2 -2
  41. package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  42. package/es/components/ecocup/components/CupInfoCard/index.d.ts +0 -1
  43. package/es/components/ecocup/components/CustomerCard/index.d.ts +0 -1
  44. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  45. package/es/components/eftpos/form/index.d.ts +0 -1
  46. package/es/components/eftpos/group/index.d.ts +0 -1
  47. package/es/components/eftpos/hooks.d.ts +0 -1
  48. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  49. package/es/components/eftpos/icon/device.d.ts +0 -1
  50. package/es/components/eftpos/index.d.ts +0 -1
  51. package/es/components/eftpos/pos.d.ts +0 -1
  52. package/es/components/eftpos/receipt/index.d.ts +0 -1
  53. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  54. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  55. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  56. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  57. package/es/components/eftposPay/hooks.d.ts +1 -1
  58. package/es/components/eftposPay/store/index.d.ts +3 -3
  59. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  60. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  61. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  62. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  63. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  64. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  65. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  66. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  67. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  68. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  69. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  70. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  71. package/es/components/login/index.d.ts +0 -1
  72. package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
  73. package/es/components/pay/toB/components/Card/index.d.ts +1 -0
  74. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  75. package/es/components/pay/toB/components/Content/Footer.d.ts +1 -0
  76. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  77. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  78. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  79. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  80. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  81. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  82. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  83. package/es/components/productExtension/index.d.ts +1 -0
  84. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  85. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  86. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  87. package/es/components/schedules/calendar/index.d.ts +0 -1
  88. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  89. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  90. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  91. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  92. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  93. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  94. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  95. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  96. package/es/components/schedules/products/index.d.ts +0 -1
  97. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  98. package/es/components/schedules/products/list/index.d.ts +0 -1
  99. package/es/components/schedules/resources/index.d.ts +0 -1
  100. package/es/components/schedules/resources/list/index.d.ts +0 -1
  101. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  102. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  103. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  104. package/es/components/schedules/schedules/index.d.ts +0 -1
  105. package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +1 -0
  106. package/es/components/ticketBooking/components/ticketBooking/index.js +8 -0
  107. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  108. package/es/components/ticketBooking/dialog.d.ts +23 -4
  109. package/es/components/ticketBooking/dialog.js +46 -12
  110. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  111. package/es/hooks/usePaymentLogger.d.ts +0 -1
  112. package/es/plus/clientName/index.d.ts +0 -1
  113. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  114. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  115. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
  116. package/es/plus/noteModal/AddTempModal.d.ts +1 -0
  117. package/es/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
  118. package/es/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +1 -0
  119. package/es/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +1 -0
  120. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  121. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  122. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  123. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  124. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  125. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -0
  126. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  127. package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  128. package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  129. package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  130. package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
  131. package/es/plus/saasRegister/components/Header.d.ts +0 -1
  132. package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
  133. package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  134. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
  135. package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  136. package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  137. package/es/pro/Selector/Selector.d.ts +1 -1
  138. package/es/pro/Selector/demo.d.ts +0 -1
  139. package/es/pro/pisellPaymentList/example.d.ts +0 -1
  140. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  141. package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -0
  142. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
  143. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  144. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  145. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  146. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  147. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  148. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  149. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  150. package/lib/components/booking/components/footer/index.js +3 -2
  151. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  152. package/lib/components/booking/forms/table/index.d.ts +0 -1
  153. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  154. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  155. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  156. package/lib/components/booking/info/index.d.ts +1 -0
  157. package/lib/components/booking/info/notes/index.d.ts +1 -0
  158. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  159. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  160. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  161. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  162. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  163. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  164. package/lib/components/booking/info/service2/Group/utils.js +42 -3
  165. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  166. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  167. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  168. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  169. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  170. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  171. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  172. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  173. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  174. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  175. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  176. package/lib/components/booking/utils.d.ts +2 -2
  177. package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  178. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +0 -1
  179. package/lib/components/ecocup/components/CustomerCard/index.d.ts +0 -1
  180. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  181. package/lib/components/eftpos/form/index.d.ts +0 -1
  182. package/lib/components/eftpos/group/index.d.ts +0 -1
  183. package/lib/components/eftpos/hooks.d.ts +0 -1
  184. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  185. package/lib/components/eftpos/icon/device.d.ts +0 -1
  186. package/lib/components/eftpos/index.d.ts +0 -1
  187. package/lib/components/eftpos/pos.d.ts +0 -1
  188. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  189. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  190. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  191. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  192. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  193. package/lib/components/eftposPay/hooks.d.ts +1 -1
  194. package/lib/components/eftposPay/store/index.d.ts +3 -3
  195. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  196. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  197. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  198. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  199. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  200. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  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/Item/DayItem/index.d.ts +0 -1
  203. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  204. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  205. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  206. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  207. package/lib/components/login/index.d.ts +0 -1
  208. package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
  209. package/lib/components/pay/toB/components/Card/index.d.ts +1 -0
  210. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  211. package/lib/components/pay/toB/components/Content/Footer.d.ts +1 -0
  212. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  213. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  214. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  215. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  216. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  217. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  218. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  219. package/lib/components/productExtension/index.d.ts +1 -0
  220. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  221. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  222. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  223. package/lib/components/schedules/calendar/index.d.ts +0 -1
  224. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  225. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  226. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  227. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  228. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  229. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  230. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  231. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  232. package/lib/components/schedules/products/index.d.ts +0 -1
  233. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  234. package/lib/components/schedules/products/list/index.d.ts +0 -1
  235. package/lib/components/schedules/resources/index.d.ts +0 -1
  236. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  237. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  238. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  239. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  240. package/lib/components/schedules/schedules/index.d.ts +0 -1
  241. package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +1 -0
  242. package/lib/components/ticketBooking/components/ticketBooking/index.js +3 -0
  243. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  244. package/lib/components/ticketBooking/dialog.d.ts +23 -4
  245. package/lib/components/ticketBooking/dialog.js +29 -5
  246. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  247. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  248. package/lib/plus/clientName/index.d.ts +0 -1
  249. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  250. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  251. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
  252. package/lib/plus/noteModal/AddTempModal.d.ts +1 -0
  253. package/lib/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
  254. package/lib/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +1 -0
  255. package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +1 -0
  256. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  257. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  258. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  259. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  260. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  261. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -0
  262. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  263. package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  264. package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  265. package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  266. package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
  267. package/lib/plus/saasRegister/components/Header.d.ts +0 -1
  268. package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
  269. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  270. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
  271. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  272. package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  273. package/lib/pro/Selector/Selector.d.ts +1 -1
  274. package/lib/pro/Selector/demo.d.ts +0 -1
  275. package/lib/pro/pisellPaymentList/example.d.ts +0 -1
  276. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  277. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -0
  278. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
  279. package/package.json +2 -2
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormState } from '../../../model';
3
2
  interface useClientFnParams {
4
3
  state: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
3
2
  export default useIsLowSpeedNetwork;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InfoProps } from './main';
2
3
  declare const APP: (props: InfoProps) => JSX.Element;
3
4
  export default APP;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Notes: () => JSX.Element | null;
2
3
  export default Notes;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const BookingList: ({ items }: {
2
3
  items: any[];
3
4
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Like: ({ status, onChange, className, style, }: {
4
3
  style?: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, resourceItem, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
4
  export default ServiceItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,6 +1,8 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __export = (target, all) => {
6
8
  for (var name in all)
@@ -14,6 +16,14 @@ var __copyProps = (to, from, except, desc) => {
14
16
  }
15
17
  return to;
16
18
  };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
17
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
28
 
19
29
  // src/components/booking/info/service2/Group/utils.ts
@@ -31,7 +41,9 @@ module.exports = __toCommonJS(utils_exports);
31
41
  var import_utils = require("@pisell/utils");
32
42
  var import_utils2 = require("../../../utils");
33
43
  var import_distributeDiscount = require("../../service/serviceManager/distributeDiscount");
34
- var import_utils3 = require("../../../../ticketBooking/utils");
44
+ var import_utils3 = require("../../../info2/service/editService/utils");
45
+ var import_utils4 = require("../../../../ticketBooking/utils");
46
+ var import_decimal = __toESM(require("decimal.js"));
35
47
  var getGroupTotalPrice = (items) => {
36
48
  return items.reduce((prev, next) => {
37
49
  prev.duration += next._extend.duration;
@@ -104,7 +116,7 @@ var createBookingItemsByGroup = (item, isBatchEdit) => {
104
116
  cacheItem._extend.total = totalPrice;
105
117
  cacheItem._extend.origin_total = totalPrice;
106
118
  cacheItem._extend.items = void 0;
107
- cacheItem._serviceKey = (0, import_utils3.genServiceKey)(cacheItem);
119
+ cacheItem._serviceKey = (0, import_utils4.genServiceKey)(cacheItem);
108
120
  bookings.push(cacheItem);
109
121
  }
110
122
  if (isBatchEdit) {
@@ -112,7 +124,34 @@ var createBookingItemsByGroup = (item, isBatchEdit) => {
112
124
  const groupOriginTotalPrice = item._extend.origin_total;
113
125
  const discountAmount = (groupOriginTotalPrice - groupTotalPrice) * -1;
114
126
  if (discountAmount !== 0) {
115
- bookings = (0, import_distributeDiscount.distributeDiscountOrIncrease)(bookings, discountAmount, groupOriginTotalPrice);
127
+ if (groupOriginTotalPrice !== 0) {
128
+ bookings = (0, import_distributeDiscount.distributeDiscountOrIncrease)(bookings, discountAmount, groupOriginTotalPrice);
129
+ bookings = bookings.map((booking) => {
130
+ var _a2, _b2;
131
+ return (0, import_utils3.setProductPrice)(booking, {
132
+ newTotal: (_a2 = booking == null ? void 0 : booking._extend) == null ? void 0 : _a2.total,
133
+ origin_total: (_b2 = booking == null ? void 0 : booking._extend) == null ? void 0 : _b2.origin_total
134
+ });
135
+ });
136
+ } else {
137
+ const count = bookings.length;
138
+ const avgTotal = new import_decimal.default(groupTotalPrice).div(count).toDecimalPlaces(2, import_decimal.default.ROUND_HALF_UP);
139
+ let assignedSum = new import_decimal.default(0);
140
+ bookings = bookings.map((booking, i) => {
141
+ const newTotal = i === count - 1 ? new import_decimal.default(groupTotalPrice).sub(assignedSum).toNumber() : avgTotal.toNumber();
142
+ if (i !== count - 1) {
143
+ assignedSum = assignedSum.add(avgTotal);
144
+ }
145
+ return {
146
+ ...booking,
147
+ _extend: {
148
+ ...booking._extend,
149
+ total: newTotal,
150
+ price: newTotal
151
+ }
152
+ };
153
+ });
154
+ }
116
155
  }
117
156
  }
118
157
  console.log("bookings", bookings);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../info/service/actions/index.less';
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
4
  export default ServiceItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type ContactType = {
4
3
  country_calling_code: string;
@@ -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
  import "./index.less";
3
2
  export interface InfoProps {
4
3
  isEdit: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface InfoProps {
3
4
  title?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const AddNote: ({ value, onChange, title, placeholder }: any) => JSX.Element;
3
4
  export default AddNote;
@@ -175,10 +175,10 @@ export declare const getProductTotalPrice: (item: any, options?: {
175
175
  export declare const getDuration: (duration: number | {
176
176
  type: string;
177
177
  value: number;
178
- }) => number | "flexible" | {
178
+ }) => number | {
179
179
  type: string;
180
180
  value: number;
181
- };
181
+ } | "flexible";
182
182
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
183
183
  export declare const getIsEdit: (state: any) => boolean;
184
184
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface DiscountWalletProps {
3
4
  isCardMode: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface IProps {
4
3
  type: 'rentInfo' | 'markInfo' | 'belongInfo' | 'otherBelongInfo';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ICustomer } from '../../types';
4
3
  interface IProps extends Partial<ICustomer> {
@@ -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
  /**
3
2
  * @title: 递归循环表单数据
4
3
  * @Author: hongbing.wang
@@ -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
  import { Eftpos } from './const';
3
2
  /**
4
3
  * @title: tyro 设备连接
@@ -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
  import { Eftpos, DeviceStatus } from './const';
3
2
  import './index.less';
4
3
  interface PosProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DeviceProp } from "./const";
3
2
  interface PosProps {
4
3
  eftposName: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 自定义组件设置
4
3
  * @description: 自定义组件设置
@@ -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;
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "reject" | "init" | "fail" | "pedding" | "resove" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "fail" | "init" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
@@ -176,7 +176,7 @@ export declare const updateCustom: (payload: {
176
176
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
177
177
  type: EActionTypes;
178
178
  payload: {
179
- status: "loading" | "success" | "warn" | "fail" | "question";
179
+ status: "loading" | "warn" | "success" | "fail" | "question";
180
180
  };
181
181
  };
182
182
  /**
@@ -300,7 +300,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
300
300
  mode?: "refund" | "fullPay" | "pay" | "query" | undefined;
301
301
  order_id?: string | number | undefined;
302
302
  eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | "huifu" | undefined;
303
- action?: "deviceList" | "amount" | "pay" | undefined;
303
+ action?: "amount" | "deviceList" | "pay" | undefined;
304
304
  key?: number | undefined;
305
305
  step?: number | undefined;
306
306
  title?: string | undefined;
@@ -310,7 +310,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
310
310
  net?: boolean | undefined;
311
311
  component?: string | undefined;
312
312
  form?: string | undefined;
313
- status?: "loading" | "success" | "warn" | "reject" | "init" | "fail" | "pedding" | "resove" | "question" | undefined;
313
+ status?: "loading" | "warn" | "success" | "fail" | "init" | "pedding" | "resove" | "reject" | "question" | undefined;
314
314
  warn?: string | undefined;
315
315
  steps?: {
316
316
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 获取 Tyro 资源
4
3
  * @description:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
3
4
  export default Total;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CartItem: () => JSX.Element;
3
4
  export default CartItem;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Information: () => JSX.Element;
4
3
  export default Information;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type CallToBookProps = {
3
4
  show: boolean;
@@ -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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type Item = any;
4
3
  interface ProductItemProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem } from '../../type';
2
3
  declare type CalendarItemProps = {
3
4
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface LoginProps {
4
3
  title: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ToBPayCache: (props: {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayMethod } from '../../types';
2
3
  import './index.less';
3
4
  declare const ToBPayCard: ({ data, onChange, }: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayMethod, PayMethodGroup } from '../../types';
2
3
  import './index.less';
3
4
  declare const ToBPayCardGroup: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const ToBPayFooter: (props: {
2
3
  loading: boolean;
3
4
  submitDisabled: boolean;
@@ -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,2 @@
1
- /// <reference types="react" />
2
1
  declare const DateSectionCom: ({ value, onChange, showTime, className, style, useSpace, format, itemStyle, }: any) => JSX.Element;
3
2
  export default DateSectionCom;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const GenderField: (props: any) => JSX.Element;
3
2
  export default GenderField;
@@ -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 RightPanelProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PopoverProps } from 'antd';
2
3
  import { CustomerCardProps } from './CustomerCard';
3
4
  import './index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductItemPreview: ({ item, onClick, onRemove, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItemPreview;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface ProductExtensionProps {
3
4
  onDataChange: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const TabProduct: (props: any) => JSX.Element;
2
3
  export default TabProduct;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface RuleSettingProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from "../type";
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Calendar: () => JSX.Element;
4
3
  export default Calendar;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type CurrentDayProps = {
4
3
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ScheduleItem } from "../../type";
3
2
  import "./index.less";
4
3
  declare type ScheduleDetailListPropsType = {
@@ -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
  declare const ResourcesModule: ({ product }: {
3
2
  product: any;
4
3
  }) => 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 ProductDetailByDate: () => JSX.Element;
4
3
  export default ProductDetailByDate;
@@ -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 type Item = any;
4
3
  interface ProductItemProps {