@pisell/private-materials 3.3.3 → 3.3.4

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 +13 -13
  7. package/build/lowcode/render/default/view.js +5 -5
  8. package/build/lowcode/view.js +8 -8
  9. package/es/businessModel/SalesModel/index.d.ts +0 -1
  10. package/es/components/Sales/Event/index.d.ts +30 -0
  11. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  12. package/es/components/appointmentBooking/components/Date/index.d.ts +3 -0
  13. package/es/components/appointmentBooking/components/Services/index.d.ts +3 -0
  14. package/es/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  15. package/es/components/booking/addons/index.d.ts +17 -0
  16. package/es/components/booking/addons/model.d.ts +1 -10
  17. package/es/components/booking/addons/model.js +5 -5
  18. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  19. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  20. package/es/components/booking/components/browserSelect/index.js +1 -1
  21. package/es/components/booking/components/footer/index.d.ts +11 -0
  22. package/es/components/booking/components/footer/utils.d.ts +30 -0
  23. package/es/components/booking/components/voucher/index.d.ts +3 -0
  24. package/es/components/booking/components/voucher/index.js +2 -1
  25. package/es/components/booking/forms/model.d.ts +1 -10
  26. package/es/components/booking/forms/model.js +5 -5
  27. package/es/components/booking/hooks/useCreateBookingPageHeader.d.ts +6 -0
  28. package/es/components/booking/info/hooks/useAddHolder.d.ts +2 -0
  29. package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  30. package/es/components/booking/info/hooks/useInfoHolder.d.ts +10 -0
  31. package/es/components/booking/info/index.d.ts +3 -0
  32. package/es/components/booking/info/main.d.ts +12 -0
  33. package/es/components/booking/info/model.d.ts +1 -10
  34. package/es/components/booking/info/pet/index.d.ts +14 -0
  35. package/es/components/booking/info/service/Lists.d.ts +2 -0
  36. package/es/components/booking/info/service/addService/index.d.ts +11 -0
  37. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  38. package/es/components/booking/info/service/editService/index.d.ts +7 -0
  39. package/es/components/booking/info/service/index.d.ts +4 -0
  40. package/es/components/booking/info/service/like/index.js +1 -1
  41. package/es/components/booking/info/service/serviceList/index.d.ts +5 -0
  42. package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
  43. package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
  44. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  45. package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
  46. package/es/components/booking/info/service2/utils.d.ts +241 -0
  47. package/es/components/booking/info/service2/utils.js +2 -1
  48. package/es/components/booking/info/utils.d.ts +46 -0
  49. package/es/components/booking/info2/index.d.ts +12 -0
  50. package/es/components/booking/info2/serve.d.ts +6 -0
  51. package/es/components/booking/info2/service/addService/index.d.ts +12 -0
  52. package/es/components/booking/info2/service/addService/utils.d.ts +88 -0
  53. package/es/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  54. package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +7 -0
  55. package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  56. package/es/components/booking/info2/service/editService/index.d.ts +7 -0
  57. package/es/components/booking/info2/service/index.d.ts +4 -0
  58. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  59. package/es/components/booking/info2/utils.d.ts +4 -0
  60. package/es/components/booking/info2/utilsByBooking.d.ts +34 -0
  61. package/es/components/booking/materiels/holder/index.d.ts +7 -0
  62. package/es/components/booking/materiels/startTime/index.js +1 -1
  63. package/es/components/booking/model.d.ts +1 -9
  64. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  65. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  66. package/es/components/booking/notes/addNote/index.d.ts +4 -0
  67. package/es/components/booking/notes/model.d.ts +1 -10
  68. package/es/components/booking/notes/model.js +5 -5
  69. package/es/components/booking/payments/model.d.ts +1 -10
  70. package/es/components/booking/payments/model.js +5 -5
  71. package/es/components/booking/utils.d.ts +172 -0
  72. package/es/components/eftposPay/hooks.d.ts +1 -1
  73. package/es/components/eftposPay/store/index.d.ts +1 -1
  74. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  75. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  76. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  77. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  78. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  79. package/es/components/eventBooking/index.d.ts +0 -1
  80. package/es/components/index.d.ts +18 -0
  81. package/es/components/listComponent/index.js +5 -5
  82. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  83. package/es/components/pay/toC/model.d.ts +1 -9
  84. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  85. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  86. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  87. package/es/components/productExtension/card/index.js +3 -3
  88. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  89. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  90. package/es/components/productExtension/fields/Forms/index.js +12 -12
  91. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  92. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  93. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  94. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  95. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  96. package/es/components/productExtension/index.d.ts +0 -1
  97. package/es/components/productExtension/server.js +2 -2
  98. package/es/components/productSelect/components/TabProduct/index.d.ts +2 -0
  99. package/es/components/productSelect/components/gridLayout/index.d.ts +9 -0
  100. package/es/components/productSelect/components/productGroup/index.d.ts +34 -0
  101. package/es/components/productSelect/hooks/useToken.d.ts +18 -0
  102. package/es/components/productSelect/index.d.ts +23 -0
  103. package/es/components/productSelect/locales.d.ts +18 -0
  104. package/es/components/productSelect/mock.d.ts +134 -0
  105. package/es/components/productSelect/theme/token.d.ts +17 -0
  106. package/es/components/ruleSetting/index.d.ts +0 -1
  107. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  108. package/es/components/schedules/calendar/index.js +4 -4
  109. package/es/components/schedules/calendar/serve.js +2 -2
  110. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  111. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  112. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  113. package/es/components/schedules/components/ResourceList/index.js +1 -1
  114. package/es/components/schedules/components/Search/index.js +5 -5
  115. package/es/components/schedules/model.d.ts +1 -9
  116. package/es/components/schedules/model.js +5 -5
  117. package/es/components/schedules/openHours/index.js +1 -1
  118. package/es/components/schedules/openHours/serve.js +2 -2
  119. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  120. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  121. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  122. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  123. package/es/components/schedules/products/serve.js +2 -2
  124. package/es/components/schedules/products/utils.js +5 -5
  125. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  126. package/es/components/schedules/resources/detail/index.js +10 -10
  127. package/es/components/schedules/resources/list/index.js +2 -2
  128. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  129. package/es/components/schedules/resources/serve.js +2 -2
  130. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  131. package/es/components/schedules/utils.d.ts +1 -1
  132. package/es/components/schedules/utils.js +4 -4
  133. package/es/components/selectModal/index.js +2 -2
  134. package/es/components/shoppingCart/Provider.d.ts +3 -0
  135. package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  136. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  137. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  138. package/es/components/shoppingCart/hooks/useAddService.d.ts +2 -0
  139. package/es/components/shoppingCart/index.d.ts +3 -0
  140. package/es/components/shoppingCart/type.d.ts +48 -0
  141. package/es/components/subTotal/index.d.ts +22 -0
  142. package/es/components/subTotal/locales.d.ts +42 -0
  143. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  144. package/es/components/ticketBooking/components/addServiceVariant/addService.js +8 -8
  145. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
  146. package/es/components/ticketBooking/components/menuBar/index.d.ts +4 -0
  147. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +3 -0
  148. package/es/components/ticketBooking/components/timeBar/index.d.ts +11 -0
  149. package/es/components/ticketBooking/data.d.ts +58 -0
  150. package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
  151. package/es/components/ticketBooking/index.d.ts +3 -0
  152. package/es/components/ticketBooking/locales.d.ts +144 -0
  153. package/es/components/ticketBooking/miniRedux.d.ts +22 -0
  154. package/es/components/ticketBooking/serve.d.ts +282 -0
  155. package/es/components/ticketBooking/utils/index.d.ts +14 -0
  156. package/es/components/wallet/Detail/index.d.ts +42 -0
  157. package/es/components/wallet/Detail/model.d.ts +1 -13
  158. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  159. package/es/components/wallet/PointCard/model.d.ts +1 -13
  160. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  161. package/es/components/wallet/Voucher/model.d.ts +1 -13
  162. package/es/components/wallet/components/WalletCard.d.ts +11 -0
  163. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  164. package/es/components/wallet/model.d.ts +1 -9
  165. package/es/hooks/useComponents.js +1 -1
  166. package/es/index.d.ts +45 -0
  167. package/es/utils/index.d.ts +1 -1
  168. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  169. package/lib/components/Sales/Event/index.d.ts +30 -0
  170. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  171. package/lib/components/appointmentBooking/components/Date/index.d.ts +3 -0
  172. package/lib/components/appointmentBooking/components/Services/index.d.ts +3 -0
  173. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  174. package/lib/components/booking/addons/index.d.ts +17 -0
  175. package/lib/components/booking/addons/model.d.ts +1 -10
  176. package/lib/components/booking/components/footer/index.d.ts +11 -0
  177. package/lib/components/booking/components/footer/utils.d.ts +30 -0
  178. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  179. package/lib/components/booking/components/voucher/index.js +2 -1
  180. package/lib/components/booking/forms/model.d.ts +1 -10
  181. package/lib/components/booking/hooks/useCreateBookingPageHeader.d.ts +6 -0
  182. package/lib/components/booking/info/hooks/useAddHolder.d.ts +2 -0
  183. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  184. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +10 -0
  185. package/lib/components/booking/info/index.d.ts +3 -0
  186. package/lib/components/booking/info/main.d.ts +12 -0
  187. package/lib/components/booking/info/model.d.ts +1 -10
  188. package/lib/components/booking/info/pet/index.d.ts +14 -0
  189. package/lib/components/booking/info/service/Lists.d.ts +2 -0
  190. package/lib/components/booking/info/service/addService/index.d.ts +11 -0
  191. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  192. package/lib/components/booking/info/service/editService/index.d.ts +7 -0
  193. package/lib/components/booking/info/service/index.d.ts +4 -0
  194. package/lib/components/booking/info/service/serviceList/index.d.ts +5 -0
  195. package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
  196. package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
  197. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  198. package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
  199. package/lib/components/booking/info/service2/utils.d.ts +241 -0
  200. package/lib/components/booking/info/service2/utils.js +2 -1
  201. package/lib/components/booking/info/utils.d.ts +46 -0
  202. package/lib/components/booking/info2/index.d.ts +12 -0
  203. package/lib/components/booking/info2/serve.d.ts +6 -0
  204. package/lib/components/booking/info2/service/addService/index.d.ts +12 -0
  205. package/lib/components/booking/info2/service/addService/utils.d.ts +88 -0
  206. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  207. package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +7 -0
  208. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  209. package/lib/components/booking/info2/service/editService/index.d.ts +7 -0
  210. package/lib/components/booking/info2/service/index.d.ts +4 -0
  211. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  212. package/lib/components/booking/info2/utils.d.ts +4 -0
  213. package/lib/components/booking/info2/utilsByBooking.d.ts +34 -0
  214. package/lib/components/booking/materiels/holder/index.d.ts +7 -0
  215. package/lib/components/booking/model.d.ts +1 -9
  216. package/lib/components/booking/notes/addNote/index.d.ts +4 -0
  217. package/lib/components/booking/notes/model.d.ts +1 -10
  218. package/lib/components/booking/payments/model.d.ts +1 -10
  219. package/lib/components/booking/utils.d.ts +172 -0
  220. package/lib/components/eftposPay/hooks.d.ts +1 -1
  221. package/lib/components/eftposPay/store/index.d.ts +1 -1
  222. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  223. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  224. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  225. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  226. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  227. package/lib/components/eventBooking/index.d.ts +0 -1
  228. package/lib/components/index.d.ts +18 -0
  229. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  230. package/lib/components/pay/toC/model.d.ts +1 -9
  231. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  232. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  233. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  234. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  235. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  236. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  237. package/lib/components/productExtension/index.d.ts +0 -1
  238. package/lib/components/productSelect/components/TabProduct/index.d.ts +2 -0
  239. package/lib/components/productSelect/components/gridLayout/index.d.ts +9 -0
  240. package/lib/components/productSelect/components/productGroup/index.d.ts +34 -0
  241. package/lib/components/productSelect/hooks/useToken.d.ts +18 -0
  242. package/lib/components/productSelect/index.d.ts +23 -0
  243. package/lib/components/productSelect/locales.d.ts +18 -0
  244. package/lib/components/productSelect/mock.d.ts +134 -0
  245. package/lib/components/productSelect/theme/token.d.ts +17 -0
  246. package/lib/components/ruleSetting/index.d.ts +0 -1
  247. package/lib/components/schedules/model.d.ts +1 -9
  248. package/lib/components/schedules/utils.d.ts +1 -1
  249. package/lib/components/schedules/utils.js +1 -1
  250. package/lib/components/shoppingCart/Provider.d.ts +3 -0
  251. package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  252. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  253. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  254. package/lib/components/shoppingCart/hooks/useAddService.d.ts +2 -0
  255. package/lib/components/shoppingCart/index.d.ts +3 -0
  256. package/lib/components/shoppingCart/type.d.ts +48 -0
  257. package/lib/components/subTotal/index.d.ts +22 -0
  258. package/lib/components/subTotal/locales.d.ts +42 -0
  259. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  260. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +3 -3
  261. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
  262. package/lib/components/ticketBooking/components/menuBar/index.d.ts +4 -0
  263. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +3 -0
  264. package/lib/components/ticketBooking/components/timeBar/index.d.ts +11 -0
  265. package/lib/components/ticketBooking/data.d.ts +58 -0
  266. package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
  267. package/lib/components/ticketBooking/index.d.ts +3 -0
  268. package/lib/components/ticketBooking/locales.d.ts +144 -0
  269. package/lib/components/ticketBooking/miniRedux.d.ts +22 -0
  270. package/lib/components/ticketBooking/serve.d.ts +282 -0
  271. package/lib/components/ticketBooking/utils/index.d.ts +14 -0
  272. package/lib/components/wallet/Detail/index.d.ts +42 -0
  273. package/lib/components/wallet/Detail/model.d.ts +1 -13
  274. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  275. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  276. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  277. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  278. package/lib/components/wallet/components/WalletCard.d.ts +11 -0
  279. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  280. package/lib/components/wallet/model.d.ts +1 -9
  281. package/lib/index.d.ts +45 -0
  282. package/lib/utils/index.d.ts +1 -1
  283. package/package.json +4 -4
@@ -0,0 +1,4 @@
1
+ export declare const getFormatResourceListAndMap: (data: any[], bookingId?: number) => {
2
+ list: any[];
3
+ listMap: any;
4
+ };
@@ -0,0 +1,34 @@
1
+ export declare const getResourceTimeIsUsable: (item: any, cacheItem: any, resourceItem: any) => any;
2
+ export declare const getSumCapacity: ({ cacheItem }: any) => number;
3
+ /**
4
+ * @title: 查找是否有可用的time
5
+ * @description:
6
+ * @param {any} resourceItem
7
+ * @return {*}
8
+ * @Author: zhiwei.Wang
9
+ * @Date: 2024-01-09 13:57
10
+ */
11
+ export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
12
+ export declare const getErrorList: (resource: any, cacheItem: any) => {
13
+ label: any;
14
+ type: string;
15
+ }[];
16
+ /**
17
+ * @title: 格式化资源, 添加自定义参数
18
+ * @description:
19
+ * @param {any} resourceItem
20
+ * @return {*}
21
+ * @Author: zhiwei.Wang
22
+ * @Date: 2024-01-09 13:40
23
+ */
24
+ export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
25
+ /**
26
+ * @title: 创建服务的开始时间和结束时间
27
+ * @description:
28
+ * @param {any} state
29
+ * @param {any} item
30
+ * @return {*}
31
+ * @Author: zhiwei.Wang
32
+ * @Date: 2024-01-26 14:09
33
+ */
34
+ export declare const getServiceStartTimeAndEndTime: (state: any, cacheItem: any, timeObj: any) => any;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { SelectProps } from 'antd';
3
+ interface HolderProps extends SelectProps {
4
+ selectProps?: SelectProps;
5
+ }
6
+ declare const Holder: (props: HolderProps) => JSX.Element;
7
+ export default Holder;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -105,11 +104,4 @@ export declare const walkInData: {
105
104
  id: number;
106
105
  nickname: string;
107
106
  };
108
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
109
- state: FormState;
110
- } & {
111
- dispatch: (params: {
112
- type: string;
113
- payload: any;
114
- }) => void;
115
- }>;
107
+ export declare const Provider: any, Context: any;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const AddNote: ({ value, onChange, wait, title, placeholder }: any) => JSX.Element;
4
+ export default AddNote;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -0,0 +1,172 @@
1
+ import dayjs from 'dayjs';
2
+ declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
3
+ declare class Request {
4
+ private request;
5
+ constructor();
6
+ setRequest(val: any): void;
7
+ getRequest(): {
8
+ get: RType;
9
+ post: RType;
10
+ put: RType;
11
+ remove: RType;
12
+ custom: RType;
13
+ };
14
+ }
15
+ export declare const request: Request;
16
+ /**
17
+ * @title: 格式化持续时长用于展示
18
+ * @description:
19
+ * @param {number} service_times
20
+ * @return {*}
21
+ * @Author: zhiwei.Wang
22
+ * @Date: 2024-04-26 14:00
23
+ */
24
+ export declare const getDiscountTime: (service_times: number, isDay?: boolean) => string;
25
+ /**
26
+ * @title: 时间切片
27
+ * @description:
28
+ * @param {any} config
29
+ * @param {string} locale
30
+ * @return {*}
31
+ * @Author: zhiwei.Wang
32
+ * @Date: 2024-04-26 13:59
33
+ */
34
+ export declare const sliceDayIntoFiveMinutes: (config: any, locale: string, isDay?: boolean) => {
35
+ timeSlices: {
36
+ label: string;
37
+ value: string;
38
+ }[];
39
+ durationSlicesBasedOnTime: {
40
+ label: string;
41
+ value: number;
42
+ }[];
43
+ };
44
+ export declare const getNowTime: () => string;
45
+ export declare const isNowTime: (time: string) => boolean;
46
+ /**
47
+ * @title: 获取服务的开始时间, 如果是now 转换为当前的时间
48
+ * @description:
49
+ * @param {string} start_time
50
+ * @return {*}
51
+ * @Author: zhiwei.Wang
52
+ * @Date: 2024-04-26 14:03
53
+ */
54
+ export declare const getServeStartTime: (start_time: string) => string;
55
+ /**
56
+ * @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
57
+ * @description:
58
+ * @param {any} item
59
+ * @param {any} currentDate
60
+ * @return {*}
61
+ * @Author: zhiwei.Wang
62
+ * @Date: 2024-04-26 14:04
63
+ */
64
+ export declare const getServiceTime: (item: any, currentDate: any) => string;
65
+ export declare const findNextSlice: ({ timeSlices, index, date, }: {
66
+ timeSlices: any[];
67
+ index?: number | undefined;
68
+ date?: string | undefined;
69
+ }) => any;
70
+ export declare const findNextDuration: (current: any, array: any, defaultValue?: any) => any;
71
+ export declare const formatProductListByCategory: (list: any, filterItem: any) => unknown[];
72
+ export declare const getResourceTimeIsUsable: (item: any, cacheItem: any) => any;
73
+ /**
74
+ * @title: 查找是否有可用的time
75
+ * @description:
76
+ * @param {any} resourceItem
77
+ * @return {*}
78
+ * @Author: zhiwei.Wang
79
+ * @Date: 2024-01-09 13:57
80
+ */
81
+ export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
82
+ /**
83
+ * @title: 获取店铺的营业结束时间
84
+ * @description:
85
+ * @return {*}
86
+ * @Author: zhiwei.Wang
87
+ * @Date: 2024-02-23 10:00
88
+ */
89
+ export declare const getShopOpeningHours: () => string;
90
+ /**
91
+ * @title: 对灵活时长进行处理
92
+ * @description:
93
+ * @return {*}
94
+ * @Author: zhiwei.Wang
95
+ * @Date: 2024-02-23 10:00
96
+ */
97
+ export declare const flexibleObj: {
98
+ create: (num: number) => any;
99
+ getValue: (str: string | number) => number;
100
+ isFlexible: (str: string | number) => boolean;
101
+ add: (current: number | string, duration: number) => any;
102
+ };
103
+ /**
104
+ * @title: 获取结束时间
105
+ * @description: 取 endDate | 店铺营业时间 最小的那一个
106
+ * @param {any} startDate
107
+ * @param {string} duration
108
+ * @param {any} endDate
109
+ * @return {*}
110
+ * @Author: zhiwei.Wang
111
+ * @Date: 2024-02-23 10:01
112
+ */
113
+ export declare const getEndDate: (startDate: any, duration: string | number, endDate: any) => any;
114
+ export declare const getServiceTimes: (service: any) => {
115
+ startDate: dayjs.Dayjs;
116
+ endDate: dayjs.Dayjs;
117
+ };
118
+ export declare const getErrorList: (resource: any, cacheItem: any, isDay?: boolean) => {
119
+ label: any;
120
+ type: string;
121
+ }[];
122
+ /**
123
+ * @title: 格式化资源, 添加自定义参数
124
+ * @description:
125
+ * @param {any} resourceItem
126
+ * @return {*}
127
+ * @Author: zhiwei.Wang
128
+ * @Date: 2024-01-09 13:40
129
+ */
130
+ export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
131
+ export declare const getLastServer: (list: any) => any;
132
+ export declare const getCacheParams: () => any;
133
+ export declare const deleteCacheParams: () => void;
134
+ /**
135
+ * @title: 获取跨日预约的时长
136
+ * @description:
137
+ * @param {any} cacheItem
138
+ * @return {*}
139
+ * @Author: WangHan
140
+ * @Date: 2024-12-01 22:43
141
+ */
142
+ export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
143
+ export declare const isSessionProduct: (cacheItem: any) => boolean;
144
+ /**
145
+ * @title: 创建一个服务商品
146
+ * @description:
147
+ * @param {any} state
148
+ * @param {any} item
149
+ * @return {*}
150
+ * @Author: zhiwei.Wang
151
+ * @Date: 2024-01-26 14:09
152
+ */
153
+ export declare const getServerItemExtend: (state: any, cacheItem: any, timeObj: any) => any;
154
+ export declare const getProductTotalPrice: (item: any) => number;
155
+ /**
156
+ * @title: 判断 duration
157
+ * @description: 用于处理不同格式的duration
158
+ * @param {number} duration
159
+ * @return {*}
160
+ * @Author: zhiwei.Wang
161
+ * @Date: 2024-02-23 10:02
162
+ */
163
+ export declare const getDuration: (duration: number | {
164
+ type: string;
165
+ value: number;
166
+ }) => number | "flexible" | {
167
+ type: string;
168
+ value: number;
169
+ };
170
+ export declare const isWalkIn: (customer_id?: number | string) => boolean;
171
+ export declare const getIsEdit: (state: any) => boolean;
172
+ export {};
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | undefined;
301
301
  action?: "amount" | "deviceList" | "pay" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -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 Header: () => JSX.Element;
4
3
  export default Header;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SelectHolderModal: (props: any) => JSX.Element;
3
2
  export default SelectHolderModal;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Resource: (props: any) => JSX.Element;
3
2
  export default Resource;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Schedule: () => JSX.Element;
3
2
  export default Schedule;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const EventBooking: () => JSX.Element;
4
3
  export default EventBooking;
@@ -0,0 +1,18 @@
1
+ import Login from './login';
2
+ import BookingInfo from './booking/info/index';
3
+ import Booking from './booking';
4
+ import BookingNotes from './booking/notes';
5
+ import BookingAddons from './booking/addons';
6
+ import BookingForms from './booking/forms';
7
+ import Schedules from './schedules';
8
+ import ProductExtension from './productExtension';
9
+ import RuleSetting from './ruleSetting';
10
+ import TaxSelect from './taxSelect';
11
+ import ToCPay from './pay/toC';
12
+ import Wallet from './wallet';
13
+ import WalletList from './walletList';
14
+ import WorkspaceListDetail from './workSpaceListDetail/';
15
+ import WorkspaceList from './workSpaceList';
16
+ import PisellSelectCustomerModal from './pisellSelectCustomerModal';
17
+ import SubTotal from './subTotal';
18
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -25,11 +24,4 @@ export interface PayGroup {
25
24
  pay_number?: string;
26
25
  _order: any;
27
26
  }
28
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
29
- state: FormState;
30
- } & {
31
- dispatch: (params: {
32
- type: string;
33
- payload: any;
34
- }) => void;
35
- }>;
27
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
3
2
  export default PhoneField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface AddClientProps {
4
3
  onChange: (value: any) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface RightPanelProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface valueType {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SelectResourcesTable: ({ value, onChange }: any) => JSX.Element;
4
3
  export default SelectResourcesTable;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface ProductExtensionProps {
4
3
  onDataChange: any;
@@ -0,0 +1,2 @@
1
+ declare const TabProduct: (props: any) => JSX.Element;
2
+ export default TabProduct;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface GridLayoutProps {
4
+ gridConfig?: string;
5
+ items: any[];
6
+ renderItem: (item: any) => React.ReactNode;
7
+ }
8
+ declare const GridLayout: React.FC<GridLayoutProps>;
9
+ export default GridLayout;
@@ -0,0 +1,34 @@
1
+ import './index.less';
2
+ export interface ProductCardConfig {
3
+ showImg: boolean;
4
+ imgWidth: string;
5
+ imgHeight: string;
6
+ showTitle: boolean;
7
+ showSpec: boolean;
8
+ showTags: boolean;
9
+ showPrice: boolean;
10
+ showOriginalPrice: boolean;
11
+ showZeroPrice: boolean;
12
+ showMarketingTag: boolean;
13
+ showRemark: boolean;
14
+ showStock: boolean;
15
+ }
16
+ interface ProductGroupProps {
17
+ data: {
18
+ icon: string;
19
+ id: number;
20
+ name: string;
21
+ products: any[];
22
+ slug: string;
23
+ sort: number;
24
+ };
25
+ layout: {
26
+ grid: boolean;
27
+ config?: string;
28
+ };
29
+ onSelectProduct?: (id: number) => void;
30
+ currentProductId?: number;
31
+ }
32
+ declare const ProductGroup: ({ data, layout, onSelectProduct, currentProductId, showImg, imgWidth, imgHeight, showTitle, showSpec, showTags, showPrice, showOriginalPrice, showZeroPrice, showMarketingTag, showRemark, showStock, }: ProductGroupProps & ProductCardConfig) => JSX.Element;
33
+ export declare const ProductGroupSkeleton: ({ layout }: any) => JSX.Element;
34
+ export default ProductGroup;
@@ -0,0 +1,18 @@
1
+ import { ProductSelectToken } from '../theme/token';
2
+ export declare function useToken(customToken?: Partial<ProductSelectToken>): {
3
+ colorPrimary: string;
4
+ colorText: string;
5
+ colorTextSecondary: string;
6
+ searchInputColor: string;
7
+ containerBg: string;
8
+ tabItemBg: string;
9
+ tabItemHoverBg: string;
10
+ tabItemActiveBg: string;
11
+ categoryTextColor: string;
12
+ cardBg: string;
13
+ cardHoverBg: string;
14
+ cardSelectedBg: string;
15
+ cardSelectedTextColor: string;
16
+ cardSelectedSecondaryTextColor: string;
17
+ };
18
+ export declare function genCSSVars(token: ProductSelectToken): Record<string, string>;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { ProductCardConfig } from './components/productGroup';
3
+ import type { ProductSelectToken } from './theme/token';
4
+ import './index.less';
5
+ interface ProductSelectProps {
6
+ dataSource: any[];
7
+ theme?: 'light' | 'dark';
8
+ showSearch?: boolean;
9
+ showTab?: boolean;
10
+ layout?: {
11
+ grid: boolean;
12
+ config: string;
13
+ };
14
+ onChange: (value: any) => void;
15
+ value?: number;
16
+ loading?: boolean;
17
+ scrollDom?: string;
18
+ style?: React.CSSProperties;
19
+ emptyDescription?: string;
20
+ token?: Partial<ProductSelectToken>;
21
+ }
22
+ declare const index: ({ dataSource, theme, showSearch, scrollDom, style, token: customToken, ...rest }: ProductSelectProps & Partial<ProductCardConfig>) => JSX.Element;
23
+ export default index;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.product-select.search': string;
4
+ 'pisell2.product-select.stock': string;
5
+ 'pisell2.product-select.empty': string;
6
+ };
7
+ 'zh-CN': {
8
+ 'pisell2.product-select.search': string;
9
+ 'pisell2.product-select.stock': string;
10
+ 'pisell2.product-select.empty': string;
11
+ };
12
+ 'zh-HK': {
13
+ 'pisell2.product-select.search': string;
14
+ 'pisell2.product-select.stock': string;
15
+ 'pisell2.product-select.empty': string;
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,134 @@
1
+ declare const products: {
2
+ id: number;
3
+ extension_id: number;
4
+ extension_type: string;
5
+ shop_id: number;
6
+ title: string;
7
+ slug: string;
8
+ status: string;
9
+ stock_quantity: number;
10
+ sales_quantity: number;
11
+ sum_stock: number;
12
+ price: string;
13
+ original_price: string;
14
+ cost_price: string;
15
+ cover: string;
16
+ channel_application: string[];
17
+ is_track: number;
18
+ over_sold: number;
19
+ is_gst: number;
20
+ code: string;
21
+ barcode: string;
22
+ is_delivery: number;
23
+ weight_unit: string;
24
+ weight_value: string;
25
+ type: string;
26
+ unit: string;
27
+ sort: number;
28
+ bundle_group_count: number;
29
+ option_group_count: number;
30
+ is_variant: number;
31
+ variant_count: number;
32
+ cut_off_time: {
33
+ unit: number;
34
+ unit_type: string;
35
+ future_day: number;
36
+ type: string;
37
+ ongoing: {
38
+ type: string;
39
+ unit: number;
40
+ };
41
+ };
42
+ policy: number;
43
+ machine_code: {
44
+ make_over: number;
45
+ beforehand: number;
46
+ limit_count: number;
47
+ customer: number;
48
+ send_action: string;
49
+ hide_recharge: number;
50
+ distributor_automatic: number;
51
+ };
52
+ duration: {
53
+ type: string;
54
+ value: number;
55
+ };
56
+ product_resource: {
57
+ resources: ({
58
+ id: number;
59
+ title: string;
60
+ status: number;
61
+ code: string;
62
+ created_at: string;
63
+ updated_at: string;
64
+ type: string;
65
+ optional_resource: number[];
66
+ default_resource: never[];
67
+ select_type: {
68
+ type: string;
69
+ min: number;
70
+ max: number;
71
+ };
72
+ resource_type_id: number;
73
+ } | {
74
+ id: number;
75
+ title: string;
76
+ status: number;
77
+ code: string;
78
+ created_at: string;
79
+ updated_at: null;
80
+ type: string;
81
+ optional_resource: never[];
82
+ default_resource: never[];
83
+ select_type: {
84
+ type: string;
85
+ min: number;
86
+ max: number;
87
+ };
88
+ resource_type_id: number;
89
+ })[];
90
+ };
91
+ capacity: {
92
+ type: string;
93
+ custom: {
94
+ name: {
95
+ en: string;
96
+ "zh-CN": string;
97
+ "zh-HK": string;
98
+ original: string;
99
+ };
100
+ min: number;
101
+ max: number;
102
+ id: string;
103
+ }[];
104
+ package: never[];
105
+ };
106
+ product_display_setting: {
107
+ kiosk: {
108
+ use_display_mode: number;
109
+ product_option_mode: null;
110
+ product_option_mode_paging: null;
111
+ product_bundle_mode: null;
112
+ product_bundle_mode_paging: null;
113
+ };
114
+ };
115
+ shelf_product_datas: never[];
116
+ step_value: number;
117
+ min_num_unit: number;
118
+ is_charge_tax: number;
119
+ base_price: string;
120
+ variant: never[];
121
+ category: {
122
+ id: number;
123
+ name: string;
124
+ icon: string;
125
+ slug: string;
126
+ sort: number;
127
+ }[];
128
+ collection: {
129
+ id: number;
130
+ title: string;
131
+ cover: string;
132
+ }[];
133
+ }[];
134
+ export default products;