@pisell/private-materials 6.2.26 → 6.2.27

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 +3 -3
@@ -0,0 +1,12 @@
1
+ import { PopoverProps } from 'antd';
2
+ import './index.less';
3
+ interface PisellPhoneKeyboardProps {
4
+ value?: string;
5
+ onChange: (e: string) => void;
6
+ popoverProps: PopoverProps;
7
+ virtualKeyboardProps?: any;
8
+ keyboardProps?: any;
9
+ virtualKeyInputProps?: any;
10
+ }
11
+ declare const PisellPhoneKeyboard: (props: PisellPhoneKeyboardProps) => JSX.Element;
12
+ export default PisellPhoneKeyboard;
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.text.confirm': string;
4
+ };
5
+ 'zh-CN': {
6
+ 'pisell2.text.confirm': string;
7
+ };
8
+ 'zh-HK': {
9
+ 'pisell2.text.confirm': string;
10
+ };
11
+ };
12
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import './PisellPriceKeyboardModal.less';
3
+ import { PisellPriceKeyboardModalProps } from './types';
4
+ declare const PisellPriceKeyboardModal: React.FC<PisellPriceKeyboardModalProps>;
5
+ export default PisellPriceKeyboardModal;
@@ -0,0 +1,2 @@
1
+ export { default } from './PisellPriceKeyboardModal';
2
+ export type { PisellPriceKeyboardModalProps, KeyboardPosition } from './types';
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ export interface PisellPriceKeyboardModalProps {
3
+ /** 是否显示键盘 */
4
+ visible?: boolean;
5
+ /** 当前价格值 */
6
+ value?: string | number;
7
+ /** 价格变化回调(合并了 onChange 和 onEnter) */
8
+ onChange?: (value: string | number) => void;
9
+ /** 关闭键盘回调 */
10
+ onClose?: () => void;
11
+ /** 触发元素的 ref,用于计算位置 */
12
+ triggerRef?: React.RefObject<HTMLElement>;
13
+ /** 货币符号显示 */
14
+ showCurrencySymbol?: boolean;
15
+ /** 是否使用千分位分隔符 */
16
+ useThousandsSeparator?: boolean;
17
+ /** 自定义类名 */
18
+ className?: string;
19
+ /** 自定义样式 */
20
+ style?: React.CSSProperties;
21
+ }
22
+ export interface KeyboardPosition {
23
+ top: number;
24
+ left: number;
25
+ }
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellPriceRadioProps {
4
+ /** 是否选中 */
5
+ checked?: boolean;
6
+ /** 点击选中回调 */
7
+ onSelect?: () => void;
8
+ /** 价格值 */
9
+ value?: string;
10
+ /** 价格变化回调 */
11
+ onChange?: (value: string) => void;
12
+ /** 标题 */
13
+ title?: string;
14
+ /** 货币符号 */
15
+ currencySymbol?: string;
16
+ /** 主题颜色 */
17
+ theme?: 'purple' | 'red';
18
+ /** 是否显示负号 */
19
+ showMinus?: boolean;
20
+ /** 是否禁用 */
21
+ disabled?: boolean;
22
+ /** 占位符 */
23
+ placeholder?: string;
24
+ }
25
+ declare const PisellPriceRadio: React.FC<PisellPriceRadioProps>;
26
+ export default PisellPriceRadio;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { SkuDetailModalProps, SkuDetailModalRef } from './types';
3
+ import './index.less';
4
+ declare const _default: React.ForwardRefExoticComponent<SkuDetailModalProps & React.RefAttributes<SkuDetailModalRef>>;
5
+ export default _default;
@@ -0,0 +1,48 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.text.sku.detail.modal.quantity': string;
4
+ 'pisell2.text.sku.detail.modal.note': string;
5
+ 'pisell2.text.sku.detail.modal.subtotal': string;
6
+ 'pisell2.text.sku.detail.modal.discount': string;
7
+ 'pisell2.text.sku.detail.modal.manual.price.change': string;
8
+ 'pisell2.text.sku.detail.modal.price.override': string;
9
+ 'pisell2.text.sku.detail.modal.total': string;
10
+ 'pisell2.text.sku.detail.modal.gst.excl': string;
11
+ 'pisell2.text.sku.detail.modal.gst.incl': string;
12
+ 'pisell2.text.sku.detail.modal.btn.add.note': string;
13
+ 'pisell2.text.sku.detail.modal.btn.remove': string;
14
+ 'pisell2.text.sku.detail.modal.btn.confirm': string;
15
+ 'pisell2.text.sku.detail.modal.btn.manual.price.change': string;
16
+ };
17
+ 'zh-CN': {
18
+ 'pisell2.text.sku.detail.modal.quantity': string;
19
+ 'pisell2.text.sku.detail.modal.note': string;
20
+ 'pisell2.text.sku.detail.modal.subtotal': string;
21
+ 'pisell2.text.sku.detail.modal.discount': string;
22
+ 'pisell2.text.sku.detail.modal.manual.price.change': string;
23
+ 'pisell2.text.sku.detail.modal.price.override': string;
24
+ 'pisell2.text.sku.detail.modal.total': string;
25
+ 'pisell2.text.sku.detail.modal.gst.excl': string;
26
+ 'pisell2.text.sku.detail.modal.gst.incl': string;
27
+ 'pisell2.text.sku.detail.modal.btn.add.note': string;
28
+ 'pisell2.text.sku.detail.modal.btn.remove': string;
29
+ 'pisell2.text.sku.detail.modal.btn.confirm': string;
30
+ 'pisell2.text.sku.detail.modal.btn.manual.price.change': string;
31
+ };
32
+ 'zh-HK': {
33
+ 'pisell2.text.sku.detail.modal.quantity': string;
34
+ 'pisell2.text.sku.detail.modal.note': string;
35
+ 'pisell2.text.sku.detail.modal.subtotal': string;
36
+ 'pisell2.text.sku.detail.modal.discount': string;
37
+ 'pisell2.text.sku.detail.modal.manual.price.change': string;
38
+ 'pisell2.text.sku.detail.modal.price.override': string;
39
+ 'pisell2.text.sku.detail.modal.total': string;
40
+ 'pisell2.text.sku.detail.modal.gst.excl': string;
41
+ 'pisell2.text.sku.detail.modal.gst.incl': string;
42
+ 'pisell2.text.sku.detail.modal.btn.add.note': string;
43
+ 'pisell2.text.sku.detail.modal.btn.remove': string;
44
+ 'pisell2.text.sku.detail.modal.btn.confirm': string;
45
+ 'pisell2.text.sku.detail.modal.btn.manual.price.change': string;
46
+ };
47
+ };
48
+ export default _default;
@@ -0,0 +1,347 @@
1
+ export declare type ChannelApplication = 'online-store' | 'pos' | 'wholesalebusiness' | 'kiosk';
2
+ export declare type ProductType = 'physical' | 'virtual';
3
+ export declare type WeightUnit = 'KILOGRAMS' | 'GRAMS' | 'POUNDS' | 'OUNCES';
4
+ export declare type DurationType = 'minutes' | 'hours' | 'days';
5
+ export declare type ResourceType = 'single' | 'multiple';
6
+ export declare type RelationType = 'form';
7
+ export declare type EventType = 'schedule_event';
8
+ export declare type MaxParticipantsType = 'custom-limit' | 'unlimited';
9
+ export interface TimeSlice {
10
+ label: string;
11
+ value: string;
12
+ }
13
+ export interface DurationSlice {
14
+ label: string;
15
+ value: number;
16
+ }
17
+ export interface MultiLanguageName {
18
+ en?: string;
19
+ 'zh-CN'?: string;
20
+ 'zh-HK'?: string;
21
+ original?: string;
22
+ auto?: string;
23
+ }
24
+ export interface MultiLanguageTitle {
25
+ label: {
26
+ type: 'i18n';
27
+ 'en-US': string;
28
+ 'zh-CN': string;
29
+ };
30
+ }
31
+ export interface SelectType {
32
+ type: 'single' | 'multiple';
33
+ min: number;
34
+ max: number;
35
+ }
36
+ export interface Duration {
37
+ type: DurationType;
38
+ value: number;
39
+ }
40
+ export interface CutOffTime {
41
+ unit: number;
42
+ unit_type: DurationType;
43
+ future_day: number;
44
+ type: 'advance';
45
+ ongoing: {
46
+ type: 'before_end';
47
+ unit: number;
48
+ };
49
+ }
50
+ export interface MachineCode {
51
+ make_over: number;
52
+ beforehand: number;
53
+ limit_count: number;
54
+ customer: number;
55
+ send_action: string;
56
+ hide_recharge: number;
57
+ distributor_automatic: number;
58
+ }
59
+ export interface Form {
60
+ id: number;
61
+ shop_id: number;
62
+ title: string;
63
+ navigation_display: number;
64
+ button: string;
65
+ describe: string;
66
+ status: 'published' | 'draft';
67
+ resource_sort: number;
68
+ code: string;
69
+ type: 'manual' | 'auto';
70
+ version: number;
71
+ setting: any;
72
+ created_at: string;
73
+ updated_at: string;
74
+ }
75
+ export interface PartyroomPackage {
76
+ type: 'product_all' | 'product_part';
77
+ }
78
+ export interface EventListItem {
79
+ id: number;
80
+ start_date?: string;
81
+ start_time?: string;
82
+ end_date?: string;
83
+ end_time?: string;
84
+ relation_id: number;
85
+ number?: number;
86
+ start_at?: string;
87
+ end_at?: string;
88
+ keys?: string;
89
+ pax: number;
90
+ type: EventType;
91
+ pax_list: Record<string, number>;
92
+ }
93
+ export interface TimeConfig {
94
+ keys: string;
95
+ schedule_id: number;
96
+ item_type: string;
97
+ item_id: number;
98
+ start_date: string;
99
+ end_date: string;
100
+ start_time: string;
101
+ end_time: string;
102
+ is_all: number;
103
+ relation_type: RelationType;
104
+ start_at: string;
105
+ end_at: string;
106
+ event_list: EventListItem[];
107
+ max_participants_type?: MaxParticipantsType;
108
+ max_participants_limit?: number;
109
+ is_blocked?: number;
110
+ blocked_times?: any[];
111
+ order_event_count?: number;
112
+ unique?: string;
113
+ _extend?: {
114
+ isMaxLimitRange: boolean;
115
+ isDateRange: boolean;
116
+ isCountRange: boolean;
117
+ isUsable: boolean;
118
+ };
119
+ }
120
+ export interface ResourceMetadata {
121
+ combined_resource: any;
122
+ }
123
+ export interface ResourceItem {
124
+ id: number;
125
+ main_field: string;
126
+ sort: number;
127
+ form_id: number;
128
+ times: TimeConfig[];
129
+ capacity: number;
130
+ combined_resource: any;
131
+ resource_form_id: string | number;
132
+ form_code: string;
133
+ resourceType: ResourceType;
134
+ children: any[];
135
+ metadata: ResourceMetadata;
136
+ form_tag?: any;
137
+ policy?: number;
138
+ partyroom_package?: PartyroomPackage;
139
+ status?: string;
140
+ description?: string;
141
+ media?: string;
142
+ subtitle?: string;
143
+ room_name?: string;
144
+ labelText?: string;
145
+ form_record_id?: number;
146
+ item_type?: string;
147
+ form_resource_sort?: number;
148
+ form_title?: string;
149
+ form?: Form;
150
+ _extend?: {
151
+ usableTime?: TimeConfig;
152
+ };
153
+ usable?: boolean;
154
+ label?: any;
155
+ }
156
+ export interface ResourceTypeInfo {
157
+ id: number;
158
+ title: string;
159
+ status: number;
160
+ code: string;
161
+ created_at: string;
162
+ updated_at: string | null;
163
+ type: ResourceType;
164
+ optional_resource: number[];
165
+ default_resource: any[];
166
+ select_type: SelectType;
167
+ resource_type_id: number;
168
+ renderList?: ResourceItem[];
169
+ form_id?: number;
170
+ renderListMaps?: Record<string, ResourceItem>;
171
+ }
172
+ export interface ProductResource {
173
+ resources: ResourceTypeInfo[];
174
+ }
175
+ export interface CapacityCustom {
176
+ name: MultiLanguageName;
177
+ min: number;
178
+ max: number;
179
+ id: string;
180
+ }
181
+ export interface CapacityPackage {
182
+ }
183
+ export interface Capacity {
184
+ type: 'product' | 'package';
185
+ custom: CapacityCustom[];
186
+ package: CapacityPackage[];
187
+ }
188
+ export interface ProductDisplaySetting {
189
+ kiosk: {
190
+ use_display_mode: number;
191
+ product_option_mode: any;
192
+ product_option_mode_paging: any;
193
+ product_bundle_mode: any;
194
+ product_bundle_mode_paging: any;
195
+ };
196
+ }
197
+ export interface ShelfProductData {
198
+ }
199
+ export interface Category {
200
+ id: number;
201
+ name: string;
202
+ icon: string;
203
+ slug: string;
204
+ sort: number;
205
+ }
206
+ export interface Collection {
207
+ id: number;
208
+ title: string;
209
+ cover: string;
210
+ }
211
+ export interface ExtendData {
212
+ duration: number;
213
+ start_time: string;
214
+ start_date: string;
215
+ quantity: number;
216
+ price: string;
217
+ product_name: string;
218
+ other: {
219
+ bundle: any[];
220
+ key: number;
221
+ option: any[];
222
+ product_id: number;
223
+ product_variant_id: number;
224
+ quantity: number;
225
+ rowKey: number;
226
+ session: any;
227
+ unique: string;
228
+ };
229
+ total: number;
230
+ origin_total: number;
231
+ startDate: string;
232
+ endDate: string;
233
+ capacity: Array<{
234
+ id: number;
235
+ value: number;
236
+ name: string;
237
+ }>;
238
+ resource: Record<string, Array<{
239
+ children: any[];
240
+ form_id: number;
241
+ relation_id: number;
242
+ like_status: string;
243
+ errors: any[];
244
+ metadata: {
245
+ form_name: string;
246
+ resource_name: string;
247
+ };
248
+ }>>;
249
+ note?: string;
250
+ }
251
+ export interface TimeObj {
252
+ timeSlices: TimeSlice[];
253
+ durationSlicesBasedOnTime: DurationSlice[];
254
+ }
255
+ export interface DataObj {
256
+ timeObj: TimeObj;
257
+ capacitys: Capacity;
258
+ resourcesOrigin: ResourceTypeInfo[];
259
+ resources: ResourceTypeInfo[];
260
+ resourceMaps: Record<string, ResourceTypeInfo>;
261
+ }
262
+ export interface DiscountItem {
263
+ amount: number;
264
+ type: 'discount_card' | 'discount_code' | 'discount_package';
265
+ discount: {
266
+ resource_id: number;
267
+ title: MultiLanguageTitle;
268
+ original_amount: number;
269
+ product_id: number;
270
+ percent: string;
271
+ };
272
+ num: number;
273
+ }
274
+ export interface ProductData {
275
+ id: number;
276
+ extension_id: number;
277
+ extension_type: string;
278
+ shop_id: number;
279
+ title: string;
280
+ slug: string;
281
+ status: 'published' | 'draft' | 'archived';
282
+ stock_quantity: number;
283
+ sales_quantity: number;
284
+ sum_stock: number;
285
+ price: string;
286
+ original_price: string;
287
+ cost_price: string;
288
+ cover: string;
289
+ channel_application: ChannelApplication[];
290
+ is_track: number;
291
+ over_sold: number;
292
+ is_gst: number;
293
+ code: string;
294
+ barcode: string;
295
+ is_delivery: number;
296
+ weight_unit: WeightUnit;
297
+ weight_value: string;
298
+ type: ProductType;
299
+ unit: string;
300
+ sort: number;
301
+ subtitle: string;
302
+ minimum_markup_price: string;
303
+ is_bundle: number;
304
+ bundle_group_count: number;
305
+ option_group_count: number;
306
+ is_variant: number;
307
+ variant_count: number;
308
+ cut_off_time: CutOffTime;
309
+ policy: number;
310
+ machine_code: MachineCode;
311
+ duration: Duration;
312
+ product_resource: ProductResource;
313
+ capacity: Capacity;
314
+ product_display_setting: ProductDisplaySetting;
315
+ shelf_product_datas: ShelfProductData[];
316
+ step_value: number;
317
+ min_num_unit: number;
318
+ schedules: any[];
319
+ is_charge_tax: number;
320
+ base_price: string;
321
+ variant: any[];
322
+ category: Category[];
323
+ collection: Collection[];
324
+ product_id: number;
325
+ _id: string;
326
+ _key: number;
327
+ _extend: ExtendData;
328
+ new: number;
329
+ currentDefaultTime: string;
330
+ _data: DataObj;
331
+ autoClose: boolean;
332
+ _serviceKey: string;
333
+ discount_list: DiscountItem[];
334
+ }
335
+ export declare type SkuDetailModalData = ProductData;
336
+ export interface SkuDetailModalProps {
337
+ /** 确认回调 */
338
+ onConfirm?: (data: ProductData) => void;
339
+ /** 删除回调 */
340
+ onRemove?: (productData: ProductData) => void;
341
+ /** 关闭回调 */
342
+ onClose?: () => void;
343
+ }
344
+ export interface SkuDetailModalRef {
345
+ /** 打开弹窗 */
346
+ open: (data: ProductData) => void;
347
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.2.26",
3
+ "version": "6.2.27",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,10 +59,10 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "react-resizable": "^3.0.5",
61
61
  "styled-components": "^6.0.0-rc.3",
62
- "@pisell/date-picker": "3.0.4",
63
62
  "@pisell/icon": "0.0.11",
64
63
  "@pisell/utils": "3.0.0",
65
- "@pisell/materials": "6.2.26"
64
+ "@pisell/materials": "6.2.27",
65
+ "@pisell/date-picker": "3.0.4"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",