@pisell/private-materials 6.2.26 → 6.2.28

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 (283) 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 +143 -159
  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/Sales/Cart/index.d.ts +53 -0
  12. package/es/components/booking/addons/index.d.ts +17 -0
  13. package/es/components/booking/components/actionButtons/index.d.ts +29 -0
  14. package/es/components/booking/components/clearCartModal/index.d.ts +10 -0
  15. package/es/components/booking/components/customiseItemModal/index.d.ts +28 -0
  16. package/es/components/booking/components/customiseItemModal/index.js +5 -1
  17. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  18. package/es/components/booking/components/tabPane/index.d.ts +4 -0
  19. package/es/components/booking/components/voucher/index.d.ts +3 -0
  20. package/es/components/booking/dashboard/index.d.ts +20 -0
  21. package/es/components/booking/forms/table/index.d.ts +0 -1
  22. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  23. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  24. package/es/components/booking/info/index.d.ts +0 -1
  25. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  26. package/es/components/booking/info/service/like/index.d.ts +0 -1
  27. package/es/components/booking/info/service/serviceItem/index.d.ts +3 -0
  28. package/es/components/booking/info/service2/utils.d.ts +1 -1
  29. package/es/components/booking/info/service2/utils.js +9 -0
  30. package/es/components/booking/info2/cartClientCard/index.d.ts +6 -0
  31. package/es/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  32. package/es/components/booking/info2/cartClientCard/types.d.ts +13 -0
  33. package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  34. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  35. package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  36. package/es/components/booking/info2/service/serviceItem/index.d.ts +3 -0
  37. package/es/components/booking/info2/utilsByBooking.js +2 -1
  38. package/es/components/booking/locales.d.ts +903 -0
  39. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  40. package/es/components/booking/notes/addNote/index.d.ts +3 -0
  41. package/es/components/booking/utils.d.ts +2 -2
  42. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  43. package/es/components/eftpos/form/index.d.ts +0 -1
  44. package/es/components/eftpos/group/index.d.ts +0 -1
  45. package/es/components/eftpos/hooks.d.ts +0 -1
  46. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  47. package/es/components/eftpos/icon/device.d.ts +0 -1
  48. package/es/components/eftpos/receipt/index.d.ts +0 -1
  49. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  50. package/es/components/eftposPay/amount.d.ts +1 -1
  51. package/es/components/eftposPay/app.d.ts +0 -1
  52. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  53. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  54. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  55. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  56. package/es/components/eftposPay/device.d.ts +1 -1
  57. package/es/components/eftposPay/hooks.d.ts +2 -2
  58. package/es/components/eftposPay/store/index.d.ts +5 -5
  59. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  60. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  61. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  62. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  63. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  64. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  65. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  66. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  67. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  68. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  69. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  70. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  71. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  72. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  73. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  74. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  75. package/es/components/schedules/products/index.d.ts +0 -1
  76. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  77. package/es/components/shoppingCart/components/Cart/Product.js +26 -4
  78. package/es/components/shoppingCart/components/Cart/index.less +14 -0
  79. package/es/components/shoppingCart/type.d.ts +49 -0
  80. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  81. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
  82. package/es/components/ticketBooking/components/addServiceVariant/utils.js +4 -3
  83. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
  84. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
  85. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  86. package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
  87. package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
  88. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
  89. package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  90. package/es/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
  91. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
  92. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
  93. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  94. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
  95. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
  96. package/es/components/ticketBooking/index.less +1 -1
  97. package/es/components/ticketBooking/locales.d.ts +177 -0
  98. package/es/components/ticketBooking/serve.d.ts +287 -0
  99. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  100. package/es/components/ticketBooking/utils/index.js +13 -8
  101. package/es/hooks/useToast.d.ts +2 -0
  102. package/es/hooks/useTranslationOriginal.d.ts +1 -0
  103. package/es/index.d.ts +51 -0
  104. package/es/plus/clientCard/index.d.ts +7 -0
  105. package/es/plus/clientCard/line/index.d.ts +9 -0
  106. package/es/plus/clientCard/locales.d.ts +18 -0
  107. package/es/plus/clientCard/types.d.ts +126 -0
  108. package/es/plus/clientCard/utils.d.ts +8 -0
  109. package/es/plus/clientName/index.d.ts +4 -0
  110. package/es/plus/clientName/type.d.ts +13 -0
  111. package/es/plus/clientName/utils.d.ts +2 -0
  112. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
  113. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
  114. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
  115. package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  116. package/es/plus/clinetSearch/Add/index.d.ts +18 -0
  117. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  118. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  119. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  120. package/es/plus/clinetSearch/index.d.ts +18 -0
  121. package/es/plus/clinetSearch/locales.d.ts +102 -0
  122. package/es/plus/clinetSearch/serve.d.ts +1 -0
  123. package/es/plus/clinetSearch/types.d.ts +49 -0
  124. package/es/plus/noteModal/AddTempModal.d.ts +7 -0
  125. package/es/plus/noteModal/index.d.ts +4 -0
  126. package/es/plus/noteModal/locales.d.ts +33 -0
  127. package/es/plus/noteModal/types.d.ts +17 -0
  128. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  129. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  130. package/es/pro/comprehensiveSearch/index.d.ts +9 -0
  131. package/es/pro/comprehensiveSearch/locales.d.ts +18 -0
  132. package/es/pro/comprehensiveSearch/types.d.ts +31 -0
  133. package/es/pro/numberKeyboard/index.d.ts +28 -0
  134. package/es/pro/numberKeyboard/locales.d.ts +12 -0
  135. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  136. package/es/pro/pisellNumberSelector/index.d.ts +26 -0
  137. package/es/pro/pisellNumberSelector/index.less +1 -1
  138. package/es/pro/pisellPhoneKeyboard/index.d.ts +12 -0
  139. package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  140. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
  141. package/es/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
  142. package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  143. package/es/pro/pisellPriceRadio/index.d.ts +26 -0
  144. package/es/pro/skuDetailModal/index.d.ts +5 -0
  145. package/es/pro/skuDetailModal/locales.d.ts +48 -0
  146. package/es/pro/skuDetailModal/types.d.ts +347 -0
  147. package/lib/components/Sales/Cart/index.d.ts +53 -0
  148. package/lib/components/booking/addons/index.d.ts +17 -0
  149. package/lib/components/booking/components/actionButtons/index.d.ts +29 -0
  150. package/lib/components/booking/components/clearCartModal/index.d.ts +10 -0
  151. package/lib/components/booking/components/customiseItemModal/index.d.ts +28 -0
  152. package/lib/components/booking/components/customiseItemModal/index.js +7 -1
  153. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  154. package/lib/components/booking/components/tabPane/index.d.ts +4 -0
  155. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  156. package/lib/components/booking/dashboard/index.d.ts +20 -0
  157. package/lib/components/booking/forms/table/index.d.ts +0 -1
  158. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  159. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  160. package/lib/components/booking/info/index.d.ts +0 -1
  161. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  162. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  163. package/lib/components/booking/info/service/serviceItem/index.d.ts +3 -0
  164. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  165. package/lib/components/booking/info/service2/utils.js +9 -0
  166. package/lib/components/booking/info2/cartClientCard/index.d.ts +6 -0
  167. package/lib/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  168. package/lib/components/booking/info2/cartClientCard/types.d.ts +13 -0
  169. package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  170. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  171. package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  172. package/lib/components/booking/info2/service/serviceItem/index.d.ts +3 -0
  173. package/lib/components/booking/info2/utilsByBooking.js +2 -1
  174. package/lib/components/booking/locales.d.ts +903 -0
  175. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  176. package/lib/components/booking/notes/addNote/index.d.ts +3 -0
  177. package/lib/components/booking/utils.d.ts +2 -2
  178. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  179. package/lib/components/eftpos/form/index.d.ts +0 -1
  180. package/lib/components/eftpos/group/index.d.ts +0 -1
  181. package/lib/components/eftpos/hooks.d.ts +0 -1
  182. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  183. package/lib/components/eftpos/icon/device.d.ts +0 -1
  184. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  185. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  186. package/lib/components/eftposPay/amount.d.ts +1 -1
  187. package/lib/components/eftposPay/app.d.ts +0 -1
  188. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  189. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  190. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  191. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  192. package/lib/components/eftposPay/device.d.ts +1 -1
  193. package/lib/components/eftposPay/hooks.d.ts +2 -2
  194. package/lib/components/eftposPay/store/index.d.ts +5 -5
  195. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  196. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  197. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  198. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  199. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  200. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  201. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  202. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  203. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  204. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  205. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  206. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  207. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  208. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  209. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  210. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  211. package/lib/components/schedules/products/index.d.ts +0 -1
  212. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  213. package/lib/components/shoppingCart/components/Cart/Product.js +28 -5
  214. package/lib/components/shoppingCart/components/Cart/index.less +14 -0
  215. package/lib/components/shoppingCart/type.d.ts +49 -0
  216. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  217. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
  218. package/lib/components/ticketBooking/components/addServiceVariant/utils.js +2 -1
  219. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
  220. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
  221. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  222. package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
  223. package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
  224. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
  225. package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  226. package/lib/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
  227. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
  228. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
  229. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  230. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
  231. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
  232. package/lib/components/ticketBooking/index.less +1 -1
  233. package/lib/components/ticketBooking/locales.d.ts +177 -0
  234. package/lib/components/ticketBooking/serve.d.ts +287 -0
  235. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  236. package/lib/components/ticketBooking/utils/index.js +4 -4
  237. package/lib/hooks/useToast.d.ts +2 -0
  238. package/lib/hooks/useTranslationOriginal.d.ts +1 -0
  239. package/lib/index.d.ts +51 -0
  240. package/lib/plus/clientCard/index.d.ts +7 -0
  241. package/lib/plus/clientCard/line/index.d.ts +9 -0
  242. package/lib/plus/clientCard/locales.d.ts +18 -0
  243. package/lib/plus/clientCard/types.d.ts +126 -0
  244. package/lib/plus/clientCard/utils.d.ts +8 -0
  245. package/lib/plus/clientName/index.d.ts +4 -0
  246. package/lib/plus/clientName/type.d.ts +13 -0
  247. package/lib/plus/clientName/utils.d.ts +2 -0
  248. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
  249. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
  250. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
  251. package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  252. package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
  253. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  254. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  255. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  256. package/lib/plus/clinetSearch/index.d.ts +18 -0
  257. package/lib/plus/clinetSearch/locales.d.ts +102 -0
  258. package/lib/plus/clinetSearch/serve.d.ts +1 -0
  259. package/lib/plus/clinetSearch/types.d.ts +49 -0
  260. package/lib/plus/noteModal/AddTempModal.d.ts +7 -0
  261. package/lib/plus/noteModal/index.d.ts +4 -0
  262. package/lib/plus/noteModal/locales.d.ts +33 -0
  263. package/lib/plus/noteModal/types.d.ts +17 -0
  264. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  265. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  266. package/lib/pro/comprehensiveSearch/index.d.ts +9 -0
  267. package/lib/pro/comprehensiveSearch/locales.d.ts +18 -0
  268. package/lib/pro/comprehensiveSearch/types.d.ts +31 -0
  269. package/lib/pro/numberKeyboard/index.d.ts +28 -0
  270. package/lib/pro/numberKeyboard/locales.d.ts +12 -0
  271. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  272. package/lib/pro/pisellNumberSelector/index.d.ts +26 -0
  273. package/lib/pro/pisellNumberSelector/index.less +1 -1
  274. package/lib/pro/pisellPhoneKeyboard/index.d.ts +12 -0
  275. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  276. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
  277. package/lib/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
  278. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  279. package/lib/pro/pisellPriceRadio/index.d.ts +26 -0
  280. package/lib/pro/skuDetailModal/index.d.ts +5 -0
  281. package/lib/pro/skuDetailModal/locales.d.ts +48 -0
  282. package/lib/pro/skuDetailModal/types.d.ts +347 -0
  283. package/package.json +4 -4
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from "antd";
3
2
  interface StartTimeProps extends SelectProps {
4
3
  locale?: string;
@@ -0,0 +1,3 @@
1
+ import "./index.less";
2
+ declare const AddNote: ({ value, onChange, title, placeholder }: any) => JSX.Element;
3
+ export default AddNote;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | {
168
+ }) => number | "flexible" | {
169
169
  type: string;
170
170
  value: number;
171
- } | "flexible";
171
+ };
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  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
  /**
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
  /**
3
2
  * @title: 自定义组件设置
4
3
  * @description: 自定义组件设置
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.css';
3
2
  /**
4
3
  * @title: 自定义组件设置
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps, RouteType } from './const';
3
2
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
4
3
  action: RouteType;
@@ -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;
@@ -10,7 +10,7 @@ import './device.less';
10
10
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
11
11
  api: PayProps['api'];
12
12
  className?: string | undefined;
13
- onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
13
+ onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
14
  [keys: string]: unknown;
15
15
  } | undefined, other?: any) => void) | undefined;
16
16
  onClose: () => void;
@@ -15,11 +15,11 @@ 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" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "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>;
22
- readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "loading" | "success" | "warn" | "fail" | "question";
177
+ status: "success" | "warn" | "loading" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,10 +295,10 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
298
+ mode?: "query" | "pay" | "fullPay" | "refund" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
- action?: "amount" | "pay" | "deviceList" | undefined;
300
+ eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
+ action?: "amount" | "deviceList" | "pay" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -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
  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 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,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const StripePayment: () => JSX.Element;
3
2
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PageLoading: () => JSX.Element;
3
2
  export default PageLoading;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PaymentRequestForm: () => JSX.Element | null;
3
2
  export default PaymentRequestForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InfoProps {
3
2
  relation_id: any;
4
3
  action: 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 type CurrentDayProps = {
4
3
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ScheduleItem } from '../../../type';
4
3
  declare type Item = any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./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 Products: () => JSX.Element;
4
3
  export default Products;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const RelationProduct: ({ value, onChange, }: {
4
3
  value?: any;
@@ -1,11 +1,12 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
  import React, { useMemo } from 'react';
3
- import { ProductCard } from '@pisell/materials';
4
- // import ProductCard from '../../../../../../materials/src/components/productCard';
3
+ // import { ProductCard } from '@pisell/materials';
4
+ import ProductCard from "../../../../../../materials/src/components/productCard";
5
5
  import useClearCart from "../../hooks/useClearCart";
6
6
  import { useContext } from "../../hooks/useContext";
7
7
  import useAddService from "../../hooks/useAddService";
8
8
  import { isNormalProductByDurationSchedule } from "../../../booking/info/service2/utils";
9
+ import PisellNumberSelector from "../../../../pro/pisellNumberSelector";
9
10
  import { useMemoizedFn } from "ahooks";
10
11
  var Product = function Product(props) {
11
12
  var id = props.id,
@@ -56,13 +57,13 @@ var Product = function Product(props) {
56
57
  isShowEditProduct: isShowEditProduct
57
58
  };
58
59
  }, [isShowNote, isShowPackageNote, disabledEdit, isShowChangeResource, isShowDelete, isShowHolder, isShowAddHolderButton, isShowChangeHolder, isShowEditProduct]);
59
- var getProductCardStyleProps = function getProductCardStyleProps(type) {
60
+ var getProductCardStyleProps = useMemoizedFn(function (type) {
60
61
  var conf = productCardStyleConfig["".concat(type, "_product_card_style")];
61
62
  return {
62
63
  isShowImage: conf === null || conf === void 0 ? void 0 : conf.show_product_image,
63
64
  isShowDelete: conf === null || conf === void 0 ? void 0 : conf.show_remove_button
64
65
  };
65
- };
66
+ });
66
67
  return useMemo(function () {
67
68
  console.log('render cart');
68
69
  return /*#__PURE__*/React.createElement("div", {
@@ -76,6 +77,27 @@ var Product = function Product(props) {
76
77
  }
77
78
  return /*#__PURE__*/React.createElement(Comp, _extends({
78
79
  type: isRetail ? 'a2' : undefined,
80
+ rightActions: [{
81
+ key: 'update_number',
82
+ text: /*#__PURE__*/React.createElement(PisellNumberSelector, {
83
+ enablePriceAdjust: true,
84
+ min: 1,
85
+ className: "pisell-sku-card__pisell-number-setter",
86
+ value: item === null || item === void 0 ? void 0 : item.num,
87
+ onChange: function onChange(value) {
88
+ if (value < 1) {
89
+ handleChange(item, 'num', {
90
+ num: 1
91
+ });
92
+ } else {
93
+ handleChange(item, 'num', {
94
+ num: value
95
+ });
96
+ }
97
+ }
98
+ }),
99
+ color: '#667085'
100
+ }],
79
101
  key: item._id,
80
102
  dataSource: item,
81
103
  onAction: function onAction(e) {
@@ -66,3 +66,17 @@
66
66
  // align-items: start;
67
67
  //}
68
68
  }
69
+
70
+ .pisell-sku-card__pisell-number-setter {
71
+ width: 110px;
72
+
73
+ .pisell-number-selector-btn {
74
+ flex-shrink: 0;
75
+ }
76
+
77
+ .pisell-number-selector-number {
78
+ min-width: unset !important;
79
+ padding: 0 !important;
80
+ flex: 1;
81
+ }
82
+ }
@@ -0,0 +1,49 @@
1
+ import { CollapseProps } from 'antd';
2
+ export interface productProps {
3
+ hideAddBtn?: boolean;
4
+ isShowNote?: boolean;
5
+ isShowPackageNote?: boolean;
6
+ products?: any[];
7
+ holders?: any[];
8
+ isEdit?: boolean;
9
+ disabledEdit?: boolean;
10
+ isShowChangeResource?: boolean;
11
+ isShowDelete?: boolean;
12
+ isShowChangeHolder?: boolean;
13
+ isShowHolder?: boolean;
14
+ isShowAddHolderButton?: boolean;
15
+ }
16
+ export interface shoppingCartProps {
17
+ isOpenGroup?: boolean;
18
+ carts?: any[];
19
+ platform?: 'shop' | 'h5';
20
+ emptyText?: string;
21
+ activeKey?: string[] | number[];
22
+ defaultActiveKey?: string[] | number[];
23
+ className?: string;
24
+ onCard?: (e: any) => void;
25
+ onAction?: (e: any) => void;
26
+ onChange?: (items: any, type?: string, other?: any) => void;
27
+ onAddProduct?: (e?: any) => void;
28
+ onActiveKey?: (e: any) => void;
29
+ isShowImage?: boolean;
30
+ isShowHolder?: boolean;
31
+ isShowDelete?: boolean;
32
+ collapseParams?: CollapseProps;
33
+ productParams?: productProps;
34
+ isHideClearCart?: boolean;
35
+ isParallelResource?: boolean;
36
+ scenario?: 'booking2';
37
+ }
38
+ /**
39
+ * @title: 商品卡片
40
+ * @description:
41
+ * @return {*}
42
+ * @Author: WangHan
43
+ * @Date: 2024-11-29 09:52
44
+ */
45
+ export interface ProductProps {
46
+ id?: any;
47
+ lists: any[];
48
+ isAdd?: boolean;
49
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -0,0 +1,8 @@
1
+ export declare const formatVariantGroupTitle: (title: any, variant_group?: never[]) => string | undefined;
2
+ export declare const createCacheItem: (detail: any, values: any, state: any) => any;
3
+ export declare const isVariant: (item: any) => boolean;
4
+ export declare const isOption: (item: any) => boolean;
5
+ export declare const isBundle: (item: any) => boolean;
6
+ export declare const genValues: (item: any, code: string) => any;
7
+ export declare const setHandleSetService: (fn: ((list: any[], code: string) => void) | null) => void;
8
+ export declare const getHandleSetService: () => ((list: any[], code: string) => void) | null;
@@ -148,7 +148,8 @@ export var isVariant = function isVariant(item) {
148
148
 
149
149
  // 单规格
150
150
  export var isOption = function isOption(item) {
151
- return (item === null || item === void 0 ? void 0 : item.option_group_count) > 0;
151
+ var _item$option_group;
152
+ return (item === null || item === void 0 ? void 0 : item.option_group_count) > 0 || (item === null || item === void 0 || (_item$option_group = item.option_group) === null || _item$option_group === void 0 ? void 0 : _item$option_group.length) > 0;
152
153
  };
153
154
 
154
155
  // 套餐
@@ -156,7 +157,7 @@ export var isBundle = function isBundle(item) {
156
157
  return (item === null || item === void 0 ? void 0 : item.bundle_group_count) > 0;
157
158
  };
158
159
  export var genValues = function genValues(item, code) {
159
- var _item$variant_group, _item$option_group;
160
+ var _item$variant_group, _item$option_group2;
160
161
  var params = {
161
162
  bundle: [],
162
163
  option: [],
@@ -168,7 +169,7 @@ export var genValues = function genValues(item, code) {
168
169
  rowKey: "",
169
170
  session: null
170
171
  };
171
- if (item !== null && item !== void 0 && (_item$variant_group = item.variant_group) !== null && _item$variant_group !== void 0 && _item$variant_group.length || item !== null && item !== void 0 && (_item$option_group = item.option_group) !== null && _item$option_group !== void 0 && _item$option_group.length) {
172
+ if (item !== null && item !== void 0 && (_item$variant_group = item.variant_group) !== null && _item$variant_group !== void 0 && _item$variant_group.length || item !== null && item !== void 0 && (_item$option_group2 = item.option_group) !== null && _item$option_group2 !== void 0 && _item$option_group2.length) {
172
173
  var variantItem = item.variant.find(function (item) {
173
174
  return item.code === code || item.barcode === code;
174
175
  });
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface BookingDashboardProps {
4
+ bookingTimeStartBetween: string[];
5
+ }
6
+ declare const BookingDashboard: React.ForwardRefExoticComponent<BookingDashboardProps & React.RefAttributes<unknown>>;
7
+ export default BookingDashboard;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface BookingListProps {
4
+ bookingTimeStartBetween: string[];
5
+ onBookingClick: (booking: any) => void;
6
+ bookingId?: number;
7
+ }
8
+ export interface BookingListRef {
9
+ refresh: () => void;
10
+ }
11
+ declare const BookingList: React.ForwardRefExoticComponent<BookingListProps & React.RefAttributes<BookingListRef>>;
12
+ export default BookingList;
@@ -0,0 +1,6 @@
1
+ export declare const formatShowList: (list: any[], options: {
2
+ search: string;
3
+ listSelectType: string;
4
+ sort: string;
5
+ }) => any[];
6
+ export declare const getBookingType: (record: any) => "pisell2" | "pisell1";
@@ -0,0 +1,22 @@
1
+ export declare const getPayStatusMap: () => {
2
+ authorized: any;
3
+ paid: any;
4
+ partially_paid: any;
5
+ partially_refunded: any;
6
+ payment_pending: any;
7
+ refunded: any;
8
+ unpaid: any;
9
+ voided: any;
10
+ payment_processing: any;
11
+ };
12
+ export declare const payStatusColorMap: {
13
+ authorized: string;
14
+ paid: string;
15
+ partially_paid: string;
16
+ partially_refunded: string;
17
+ payment_pending: string;
18
+ refunded: string;
19
+ unpaid: string;
20
+ voided: string;
21
+ payment_processing: string;
22
+ };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface BookingDataPanelProps {
4
+ currentDate: string;
5
+ onBookingClick: (booking: any) => void;
6
+ bookingId?: number;
7
+ }
8
+ declare const BookingDataPanel: React.ForwardRefExoticComponent<BookingDataPanelProps & React.RefAttributes<unknown>>;
9
+ export default BookingDataPanel;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ interface PisellFloatingPanelProps {
3
+ currentDate: string;
4
+ onBookingClick: (booking: any) => void;
5
+ bookingId?: number;
6
+ }
7
+ export interface PisellFloatingPanelRef {
8
+ open: () => void;
9
+ close: () => void;
10
+ refresh: () => void;
11
+ getIsOpen: () => boolean;
12
+ }
13
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<PisellFloatingPanelProps & React.RefAttributes<PisellFloatingPanelRef>>>;
14
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface FloatButtonsProps {
4
+ items: {
5
+ icon: React.ReactNode;
6
+ onClick: () => void;
7
+ key: string;
8
+ }[];
9
+ }
10
+ declare const FloatButtons: (props: FloatButtonsProps) => JSX.Element;
11
+ export default FloatButtons;
@@ -0,0 +1 @@
1
+ export declare const useBookingTicket: () => any;
@@ -0,0 +1,3 @@
1
+ export * from './bookingTicket';
2
+ export * from './useProducts';
3
+ export * from './useCustomer';
@@ -0,0 +1,25 @@
1
+ import { ClientData } from '../../../booking/info2/cartClientCard/types';
2
+ export declare const useCustomer: (props: {
3
+ changeCustomerToGlobalState?: ((value: ClientData) => void) | undefined;
4
+ }) => {
5
+ customers: never[];
6
+ selectedCustomer: ClientData | null;
7
+ loading: boolean;
8
+ error: null;
9
+ pagination: {
10
+ page: number;
11
+ pageSize: number;
12
+ total: number;
13
+ };
14
+ loadCustomers: (params?: {
15
+ skip?: number;
16
+ num?: number;
17
+ search?: string;
18
+ }) => Promise<void>;
19
+ changePage: (page: number, pageSize: number) => Promise<void>;
20
+ selectCustomer: (customer: ClientData | null) => void;
21
+ addCustomerToFirst: (customer: ClientData) => void;
22
+ initLoad: (this: any, keyword?: any) => Promise<void>;
23
+ hasMore: boolean;
24
+ loadMore: () => Promise<void>;
25
+ };
@@ -0,0 +1,12 @@
1
+ interface IGetProductsParams {
2
+ schedule_date?: string;
3
+ customer_id?: number;
4
+ menu_list_ids?: number[];
5
+ schedule_datetime?: string;
6
+ }
7
+ export declare const useProducts: () => {
8
+ getProducts: (params?: IGetProductsParams) => Promise<void>;
9
+ products: any[];
10
+ loading: boolean;
11
+ };
12
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const useScanGlobalHandle: () => (data: any) => void;
2
+ export default useScanGlobalHandle;
@@ -1,4 +1,4 @@
1
1
  .pisell-ticket-booking-wrapper {
2
2
  display: flex;
3
- height: 100vh;
3
+ height: 100%;
4
4
  }