@pisell/private-materials 3.3.3 → 3.3.5

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 (289) 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/appointmentBooking/deposit/components/PolicyModal/index.js +1 -1
  16. package/es/components/appointmentBooking/hooks.js +11 -14
  17. package/es/components/appointmentBooking/index.js +3 -0
  18. package/es/components/booking/addons/index.d.ts +17 -0
  19. package/es/components/booking/addons/model.d.ts +1 -10
  20. package/es/components/booking/addons/model.js +5 -5
  21. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  22. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  23. package/es/components/booking/components/browserSelect/index.js +1 -1
  24. package/es/components/booking/components/footer/index.d.ts +11 -0
  25. package/es/components/booking/components/footer/utils.d.ts +30 -0
  26. package/es/components/booking/components/voucher/index.d.ts +3 -0
  27. package/es/components/booking/components/voucher/index.js +2 -1
  28. package/es/components/booking/forms/model.d.ts +1 -10
  29. package/es/components/booking/forms/model.js +5 -5
  30. package/es/components/booking/hooks/useCreateBookingPageHeader.d.ts +6 -0
  31. package/es/components/booking/info/hooks/useAddHolder.d.ts +2 -0
  32. package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  33. package/es/components/booking/info/hooks/useInfoHolder.d.ts +10 -0
  34. package/es/components/booking/info/index.d.ts +3 -0
  35. package/es/components/booking/info/main.d.ts +12 -0
  36. package/es/components/booking/info/model.d.ts +1 -10
  37. package/es/components/booking/info/pet/index.d.ts +14 -0
  38. package/es/components/booking/info/service/Lists.d.ts +2 -0
  39. package/es/components/booking/info/service/addService/index.d.ts +11 -0
  40. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  41. package/es/components/booking/info/service/editService/index.d.ts +7 -0
  42. package/es/components/booking/info/service/index.d.ts +4 -0
  43. package/es/components/booking/info/service/like/index.js +1 -1
  44. package/es/components/booking/info/service/serviceList/index.d.ts +5 -0
  45. package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
  46. package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
  47. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  48. package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
  49. package/es/components/booking/info/service2/utils.d.ts +241 -0
  50. package/es/components/booking/info/service2/utils.js +2 -1
  51. package/es/components/booking/info/utils.d.ts +46 -0
  52. package/es/components/booking/info2/index.d.ts +12 -0
  53. package/es/components/booking/info2/serve.d.ts +6 -0
  54. package/es/components/booking/info2/service/addService/index.d.ts +12 -0
  55. package/es/components/booking/info2/service/addService/utils.d.ts +88 -0
  56. package/es/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  57. package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +7 -0
  58. package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  59. package/es/components/booking/info2/service/editService/index.d.ts +7 -0
  60. package/es/components/booking/info2/service/index.d.ts +4 -0
  61. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  62. package/es/components/booking/info2/utils.d.ts +4 -0
  63. package/es/components/booking/info2/utilsByBooking.d.ts +34 -0
  64. package/es/components/booking/materiels/holder/index.d.ts +7 -0
  65. package/es/components/booking/materiels/startTime/index.js +1 -1
  66. package/es/components/booking/model.d.ts +1 -9
  67. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  68. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  69. package/es/components/booking/notes/addNote/index.d.ts +4 -0
  70. package/es/components/booking/notes/model.d.ts +1 -10
  71. package/es/components/booking/notes/model.js +5 -5
  72. package/es/components/booking/payments/model.d.ts +1 -10
  73. package/es/components/booking/payments/model.js +5 -5
  74. package/es/components/booking/utils.d.ts +172 -0
  75. package/es/components/eftposPay/hooks.d.ts +1 -1
  76. package/es/components/eftposPay/store/index.d.ts +1 -1
  77. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  78. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  79. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  80. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  81. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  82. package/es/components/eventBooking/index.d.ts +0 -1
  83. package/es/components/index.d.ts +18 -0
  84. package/es/components/listComponent/index.js +5 -5
  85. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  86. package/es/components/pay/toC/model.d.ts +1 -9
  87. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  88. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  89. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  90. package/es/components/productExtension/card/index.js +3 -3
  91. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  92. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  93. package/es/components/productExtension/fields/Forms/index.js +12 -12
  94. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  95. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  96. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  97. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  98. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  99. package/es/components/productExtension/index.d.ts +0 -1
  100. package/es/components/productExtension/server.js +2 -2
  101. package/es/components/productSelect/components/TabProduct/index.d.ts +2 -0
  102. package/es/components/productSelect/components/gridLayout/index.d.ts +9 -0
  103. package/es/components/productSelect/components/productGroup/index.d.ts +34 -0
  104. package/es/components/productSelect/hooks/useToken.d.ts +18 -0
  105. package/es/components/productSelect/index.d.ts +23 -0
  106. package/es/components/productSelect/locales.d.ts +18 -0
  107. package/es/components/productSelect/mock.d.ts +134 -0
  108. package/es/components/productSelect/theme/token.d.ts +17 -0
  109. package/es/components/ruleSetting/index.d.ts +0 -1
  110. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  111. package/es/components/schedules/calendar/index.js +4 -4
  112. package/es/components/schedules/calendar/serve.js +2 -2
  113. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  114. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  115. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  116. package/es/components/schedules/components/ResourceList/index.js +1 -1
  117. package/es/components/schedules/components/Search/index.js +5 -5
  118. package/es/components/schedules/model.d.ts +1 -9
  119. package/es/components/schedules/model.js +5 -5
  120. package/es/components/schedules/openHours/index.js +1 -1
  121. package/es/components/schedules/openHours/serve.js +2 -2
  122. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  123. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  124. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  125. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  126. package/es/components/schedules/products/serve.js +2 -2
  127. package/es/components/schedules/products/utils.js +5 -5
  128. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  129. package/es/components/schedules/resources/detail/index.js +10 -10
  130. package/es/components/schedules/resources/list/index.js +2 -2
  131. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  132. package/es/components/schedules/resources/serve.js +2 -2
  133. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  134. package/es/components/schedules/utils.d.ts +1 -1
  135. package/es/components/schedules/utils.js +4 -4
  136. package/es/components/selectModal/index.js +2 -2
  137. package/es/components/shoppingCart/Provider.d.ts +3 -0
  138. package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  139. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  140. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  141. package/es/components/shoppingCart/hooks/useAddService.d.ts +2 -0
  142. package/es/components/shoppingCart/index.d.ts +3 -0
  143. package/es/components/shoppingCart/type.d.ts +48 -0
  144. package/es/components/subTotal/index.d.ts +22 -0
  145. package/es/components/subTotal/locales.d.ts +42 -0
  146. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  147. package/es/components/ticketBooking/components/addServiceVariant/addService.js +8 -8
  148. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
  149. package/es/components/ticketBooking/components/menuBar/index.d.ts +4 -0
  150. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +3 -0
  151. package/es/components/ticketBooking/components/timeBar/index.d.ts +11 -0
  152. package/es/components/ticketBooking/data.d.ts +58 -0
  153. package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
  154. package/es/components/ticketBooking/index.d.ts +3 -0
  155. package/es/components/ticketBooking/locales.d.ts +144 -0
  156. package/es/components/ticketBooking/miniRedux.d.ts +22 -0
  157. package/es/components/ticketBooking/serve.d.ts +282 -0
  158. package/es/components/ticketBooking/utils/index.d.ts +14 -0
  159. package/es/components/wallet/Detail/index.d.ts +42 -0
  160. package/es/components/wallet/Detail/model.d.ts +1 -13
  161. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  162. package/es/components/wallet/PointCard/model.d.ts +1 -13
  163. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  164. package/es/components/wallet/Voucher/model.d.ts +1 -13
  165. package/es/components/wallet/components/WalletCard.d.ts +11 -0
  166. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  167. package/es/components/wallet/model.d.ts +1 -9
  168. package/es/hooks/useComponents.js +1 -1
  169. package/es/index.d.ts +45 -0
  170. package/es/utils/index.d.ts +1 -1
  171. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  172. package/lib/components/Sales/Event/index.d.ts +30 -0
  173. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  174. package/lib/components/appointmentBooking/components/Date/index.d.ts +3 -0
  175. package/lib/components/appointmentBooking/components/Services/index.d.ts +3 -0
  176. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  177. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -1
  178. package/lib/components/appointmentBooking/hooks.js +0 -1
  179. package/lib/components/appointmentBooking/index.js +1 -0
  180. package/lib/components/booking/addons/index.d.ts +17 -0
  181. package/lib/components/booking/addons/model.d.ts +1 -10
  182. package/lib/components/booking/components/footer/index.d.ts +11 -0
  183. package/lib/components/booking/components/footer/utils.d.ts +30 -0
  184. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  185. package/lib/components/booking/components/voucher/index.js +2 -1
  186. package/lib/components/booking/forms/model.d.ts +1 -10
  187. package/lib/components/booking/hooks/useCreateBookingPageHeader.d.ts +6 -0
  188. package/lib/components/booking/info/hooks/useAddHolder.d.ts +2 -0
  189. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  190. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +10 -0
  191. package/lib/components/booking/info/index.d.ts +3 -0
  192. package/lib/components/booking/info/main.d.ts +12 -0
  193. package/lib/components/booking/info/model.d.ts +1 -10
  194. package/lib/components/booking/info/pet/index.d.ts +14 -0
  195. package/lib/components/booking/info/service/Lists.d.ts +2 -0
  196. package/lib/components/booking/info/service/addService/index.d.ts +11 -0
  197. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  198. package/lib/components/booking/info/service/editService/index.d.ts +7 -0
  199. package/lib/components/booking/info/service/index.d.ts +4 -0
  200. package/lib/components/booking/info/service/serviceList/index.d.ts +5 -0
  201. package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
  202. package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
  203. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  204. package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
  205. package/lib/components/booking/info/service2/utils.d.ts +241 -0
  206. package/lib/components/booking/info/service2/utils.js +2 -1
  207. package/lib/components/booking/info/utils.d.ts +46 -0
  208. package/lib/components/booking/info2/index.d.ts +12 -0
  209. package/lib/components/booking/info2/serve.d.ts +6 -0
  210. package/lib/components/booking/info2/service/addService/index.d.ts +12 -0
  211. package/lib/components/booking/info2/service/addService/utils.d.ts +88 -0
  212. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  213. package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +7 -0
  214. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  215. package/lib/components/booking/info2/service/editService/index.d.ts +7 -0
  216. package/lib/components/booking/info2/service/index.d.ts +4 -0
  217. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  218. package/lib/components/booking/info2/utils.d.ts +4 -0
  219. package/lib/components/booking/info2/utilsByBooking.d.ts +34 -0
  220. package/lib/components/booking/materiels/holder/index.d.ts +7 -0
  221. package/lib/components/booking/model.d.ts +1 -9
  222. package/lib/components/booking/notes/addNote/index.d.ts +4 -0
  223. package/lib/components/booking/notes/model.d.ts +1 -10
  224. package/lib/components/booking/payments/model.d.ts +1 -10
  225. package/lib/components/booking/utils.d.ts +172 -0
  226. package/lib/components/eftposPay/hooks.d.ts +1 -1
  227. package/lib/components/eftposPay/store/index.d.ts +1 -1
  228. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  229. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  230. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  231. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  232. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  233. package/lib/components/eventBooking/index.d.ts +0 -1
  234. package/lib/components/index.d.ts +18 -0
  235. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  236. package/lib/components/pay/toC/model.d.ts +1 -9
  237. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  238. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  239. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  240. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  241. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  242. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  243. package/lib/components/productExtension/index.d.ts +0 -1
  244. package/lib/components/productSelect/components/TabProduct/index.d.ts +2 -0
  245. package/lib/components/productSelect/components/gridLayout/index.d.ts +9 -0
  246. package/lib/components/productSelect/components/productGroup/index.d.ts +34 -0
  247. package/lib/components/productSelect/hooks/useToken.d.ts +18 -0
  248. package/lib/components/productSelect/index.d.ts +23 -0
  249. package/lib/components/productSelect/locales.d.ts +18 -0
  250. package/lib/components/productSelect/mock.d.ts +134 -0
  251. package/lib/components/productSelect/theme/token.d.ts +17 -0
  252. package/lib/components/ruleSetting/index.d.ts +0 -1
  253. package/lib/components/schedules/model.d.ts +1 -9
  254. package/lib/components/schedules/utils.d.ts +1 -1
  255. package/lib/components/schedules/utils.js +1 -1
  256. package/lib/components/shoppingCart/Provider.d.ts +3 -0
  257. package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  258. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  259. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  260. package/lib/components/shoppingCart/hooks/useAddService.d.ts +2 -0
  261. package/lib/components/shoppingCart/index.d.ts +3 -0
  262. package/lib/components/shoppingCart/type.d.ts +48 -0
  263. package/lib/components/subTotal/index.d.ts +22 -0
  264. package/lib/components/subTotal/locales.d.ts +42 -0
  265. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  266. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +3 -3
  267. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
  268. package/lib/components/ticketBooking/components/menuBar/index.d.ts +4 -0
  269. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +3 -0
  270. package/lib/components/ticketBooking/components/timeBar/index.d.ts +11 -0
  271. package/lib/components/ticketBooking/data.d.ts +58 -0
  272. package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
  273. package/lib/components/ticketBooking/index.d.ts +3 -0
  274. package/lib/components/ticketBooking/locales.d.ts +144 -0
  275. package/lib/components/ticketBooking/miniRedux.d.ts +22 -0
  276. package/lib/components/ticketBooking/serve.d.ts +282 -0
  277. package/lib/components/ticketBooking/utils/index.d.ts +14 -0
  278. package/lib/components/wallet/Detail/index.d.ts +42 -0
  279. package/lib/components/wallet/Detail/model.d.ts +1 -13
  280. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  281. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  282. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  283. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  284. package/lib/components/wallet/components/WalletCard.d.ts +11 -0
  285. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  286. package/lib/components/wallet/model.d.ts +1 -9
  287. package/lib/index.d.ts +45 -0
  288. package/lib/utils/index.d.ts +1 -1
  289. package/package.json +4 -4
@@ -0,0 +1,241 @@
1
+ import dayjs from 'dayjs';
2
+ export declare const formatActiveKey: (lists: any[], platform: string, isEdit: boolean) => any[];
3
+ /**
4
+ * @title: 获取资源名称
5
+ * @description:
6
+ * @param {any} id
7
+ * @param {any} state
8
+ * @return {*}
9
+ * @Author: WangHan
10
+ * @Date: 2024-11-29 18:02
11
+ */
12
+ export declare const getResourceItem: (id: any, state: any) => any;
13
+ /**
14
+ * @title: 错误提示
15
+ * @description:
16
+ * @param {any} service
17
+ * @param {any} resourceItem
18
+ * @return {*}
19
+ * @Author: WangHan
20
+ * @Date: 2024-11-29 18:41
21
+ */
22
+ export declare const getErrorMessage: (service: any, resourceItem: any, isDay?: boolean) => any;
23
+ /**
24
+ * @title: 格式化主体列表
25
+ * @description:
26
+ * @param {any} lists
27
+ * @param {boolean} isOpenGroup
28
+ * @return {*}
29
+ * @Author: WangHan
30
+ * @Date: 2024-12-04 11:27
31
+ */
32
+ export declare const formatHolderLists: (lists: any) => any;
33
+ export declare const isBookingProduct: (extension_type: any, bol?: boolean) => boolean | undefined;
34
+ /**
35
+ * @title: 是否是预约商品
36
+ * @description:
37
+ * @return {*}
38
+ * @Author: WangHan
39
+ * @Date: 2024-12-06 11:24
40
+ */
41
+ export declare const isDayBookingProduct: (item: any, state: any) => boolean | undefined;
42
+ /**
43
+ * @title: 更新商品数据
44
+ * @description:
45
+ * @param {any} state
46
+ * @param currentItem
47
+ * @param {string} type
48
+ * @param {any} other
49
+ * @param actions
50
+ * @return {*}
51
+ * @Author: WangHan
52
+ * @Date: 2025-01-03 15:00
53
+ */
54
+ export declare const updateServices: (state: any, currentItem: any, type?: string, other?: any, actions?: any) => any;
55
+ export declare const formItems: (items: any[]) => any[];
56
+ /**
57
+ * @title: 格式化商品数据
58
+ * @description:
59
+ * @param {any} lists
60
+ * @return {*}
61
+ * @Author: WangHan
62
+ * @Date: 2024-11-29 17:36
63
+ */
64
+ export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean, isGeneral?: boolean, isParallelResource?: boolean) => {
65
+ _origin: any;
66
+ id: any;
67
+ _id: any;
68
+ name: any;
69
+ price: any;
70
+ total: any;
71
+ origin_total: any;
72
+ num: any;
73
+ image: any;
74
+ isShowNote: boolean;
75
+ note: any;
76
+ like_status: any;
77
+ bundle: any;
78
+ options: any;
79
+ errorMessage: string;
80
+ product_option_string: any;
81
+ discount_reason: any;
82
+ resource_id: any;
83
+ relation_form_name: any;
84
+ holder_title: any;
85
+ start_date: any;
86
+ end_date: any;
87
+ holder_id: any;
88
+ isNormalProduct: boolean;
89
+ locale: any;
90
+ symbol: any;
91
+ items: any[];
92
+ }[];
93
+ /**
94
+ * @title: 禁用日期
95
+ * @description:
96
+ * @param {any} current
97
+ * @param {string} position
98
+ * @param {any} startDate
99
+ * @return {*}
100
+ * @Author: WangHan
101
+ * @Date: 2024-12-03 17:51
102
+ */
103
+ export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
104
+ /**
105
+ * @title: 是否是跨日预约
106
+ * @description:
107
+ * @param {any} state
108
+ * @return {*}
109
+ * @Author: WangHan
110
+ * @Date: 2024-12-04 09:49
111
+ */
112
+ export declare const isDayBooking: (state: any) => boolean;
113
+ export declare const isDaysBooking: (state: any) => boolean;
114
+ export declare const isEventBooking: (state: any) => boolean;
115
+ export declare const isAppointmentProduct: (item: any) => boolean;
116
+ /**
117
+ * @title: 是否是terminal上的跨日预约
118
+ * @description:
119
+ * @param {any} state
120
+ * @return {*}
121
+ * @Author: WangHan
122
+ * @Date: 2024-12-04 15:31
123
+ */
124
+ export declare const isTerminalDayBooking: (state: any) => any;
125
+ export declare const formatDayDate: (_extend: any) => any;
126
+ /**
127
+ * @title: 根据营业日时间格式化时间
128
+ * @description:
129
+ * @param {any} state
130
+ * @return {*}
131
+ * @Author: WangHan
132
+ * @Date: 2024-12-04 12:07
133
+ */
134
+ export declare const formatDayTime: ({ startDate, endDate }: any) => {
135
+ startDateTime: dayjs.Dayjs;
136
+ endDateTime: dayjs.Dayjs;
137
+ };
138
+ export declare const formatDateTime: (start_date: any, end_date: any) => {
139
+ value: dayjs.Dayjs;
140
+ end_date: dayjs.Dayjs;
141
+ };
142
+ /**
143
+ * @title: 初始化日期
144
+ * @description:
145
+ * @return {*}
146
+ * @Author: WangHan
147
+ * @Date: 2024-12-06 17:24
148
+ */
149
+ export declare const initDate: () => {
150
+ value: dayjs.Dayjs;
151
+ end_date: dayjs.Dayjs;
152
+ };
153
+ /**
154
+ * @title: 是否有预约商品
155
+ * @description:
156
+ * @return {*}
157
+ * @Author: WangHan
158
+ * @Date: 2024-12-12 15:47
159
+ */
160
+ export declare const isHasDayAppointmentProduct: (state: any) => boolean;
161
+ /**
162
+ * @title: 过滤出如果是预约商品,则只获取跨日的预约商品
163
+ * @description:
164
+ * @param {any} lists
165
+ * @return {*}
166
+ * @Author: WangHan
167
+ * @Date: 2024-12-13 16:44
168
+ */
169
+ export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
170
+ /**
171
+ * @title: 格式化表单数据
172
+ * @description:
173
+ * @param {any} state
174
+ * @return {*}
175
+ * @Author: WangHan
176
+ * @Date: 2024-12-30 22:19
177
+ */
178
+ export declare const getPets: (state: any) => any;
179
+ /**
180
+ * @title: 得出预约商品
181
+ * @description:
182
+ * @param {any} state
183
+ * @return {*}
184
+ * @Author: WangHan
185
+ * @Date: 2024-12-30 22:26
186
+ */
187
+ export declare const getAppointmentService: (state: any) => any;
188
+ /**
189
+ * @title: 判断是否打开删除宠物弹窗
190
+ * @description:
191
+ * @param {any} state
192
+ * @param {any} newVal
193
+ * @return {*}
194
+ * @Author: WangHan
195
+ * @Date: 2024-12-16 16:12
196
+ */
197
+ export declare const isOpenDeletePet: (state: any, newVal: any) => {
198
+ ids: any;
199
+ lists: any;
200
+ };
201
+ /**
202
+ * @title: 当前选中的表单id
203
+ * @description:
204
+ * @param {any} state
205
+ * @return {*}
206
+ * @Author: WangHan
207
+ * @Date: 2024-12-17 14:40
208
+ */
209
+ export declare const holderId: (state: any) => number;
210
+ /**
211
+ * @title: 更新套餐的价格
212
+ * @description:
213
+ * @param {any} currentValue
214
+ * @param {any} newBundleData
215
+ * @return {*}
216
+ * @Author: WangHan
217
+ * @Date: 2024-12-31 15:16
218
+ */
219
+ export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
220
+ /**
221
+ * @title: 更新预约商品报价单
222
+ * @description:
223
+ * @param {any} state
224
+ * @param {any} cacheItem
225
+ * @return {*}
226
+ * @Author: WangHan
227
+ * @Date: 2024-12-25 16:41
228
+ */
229
+ export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
230
+ multiDayPrices: any;
231
+ price: number;
232
+ }>;
233
+ /**
234
+ * @title: 更新普通商品报价单价格
235
+ * @description:
236
+ * @param {any} state
237
+ * @return {*}
238
+ * @Author: WangHan
239
+ * @Date: 2024-12-24 11:32
240
+ */
241
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];
@@ -552,7 +552,8 @@ var getGeneralParams = function getGeneralParams(item, state, isParallelResource
552
552
  return val.relation_id;
553
553
  }),
554
554
  status: (value === null || value === void 0 || (_value$ = value[0]) === null || _value$ === void 0 ? void 0 : _value$.like_status) || 'common',
555
- lists: detail !== null && detail !== void 0 && detail.renderList ? mapListItems(detail === null || detail === void 0 ? void 0 : detail.renderList) : []
555
+ lists: detail !== null && detail !== void 0 && detail.renderList ? mapListItems(detail === null || detail === void 0 ? void 0 : detail.renderList) : [],
556
+ disabled: state.disabledEdit || state.disableEventBookingEdit
556
557
  };
557
558
  });
558
559
  } else {
@@ -0,0 +1,46 @@
1
+ export declare const getIsBundleOrCombination: (productDetail: any) => boolean;
2
+ export declare const uniqueByField: (arr: any[], field: string) => any[];
3
+ export declare const moveItemToFront: (arr: any[], targetId: string | number) => any[];
4
+ /**
5
+ * @title: 判断两个时间是否在同一个时间段内
6
+ * @description:
7
+ * @param {number} time1 开始时间
8
+ * @param {number} time2 结束时间
9
+ * @param {number} interval 时间间隔
10
+ * @return {*}
11
+ * @Author: zhiwei.Wang
12
+ * @Date: 2024-08-13 19:37
13
+ */
14
+ export declare const isInterval: (time1: number, time2: number, interval?: number) => boolean;
15
+ /**
16
+ * @title: 根据时间间隔格式化服务列表
17
+ * @description: 防止短时间内添加多个相同服务, 如果两个服务的时间间隔小于1秒,则合并为一个服务
18
+ * @param {any} list 服务列表
19
+ * @return {*}
20
+ * @Author: zhiwei.Wang
21
+ * @Date: 2024-08-13 19:36
22
+ */
23
+ export declare const formatServiceListByTime: (list: any[]) => any[];
24
+ export declare const isBooking4Shop: (shopId: number, renderType?: string) => boolean;
25
+ declare type DataEntry = {
26
+ total: number;
27
+ origin_total: number;
28
+ num: number;
29
+ quotation_id: number;
30
+ start_date: string;
31
+ end_date: string;
32
+ };
33
+ declare type ResultStructure = Record<string, Record<string, any>>;
34
+ export declare const getMultiDayPrices: (data: DataEntry[]) => ResultStructure;
35
+ /**
36
+ * @title: 是否是跨日预约
37
+ * @description:
38
+ * @param {number} shopId
39
+ * @return {*}
40
+ * @Author: WangHan
41
+ * @Date: 2024-11-29 11:19
42
+ */
43
+ export declare const isDayBooking: (shopId: number) => boolean;
44
+ export declare const isOpenAddTime: (state: any) => boolean;
45
+ export declare const isShowAddTime: (state: any, currentService: any) => boolean;
46
+ export {};
@@ -0,0 +1,12 @@
1
+ import '../info/index.less';
2
+ export interface InfoProps {
3
+ style: any;
4
+ globalState: any;
5
+ callback: any;
6
+ setGlobalState: any;
7
+ modules: any;
8
+ slot: any;
9
+ setState: any;
10
+ }
11
+ declare const Info: any;
12
+ export default Info;
@@ -0,0 +1,6 @@
1
+ export declare const getResourceList: (params: any, bookingId?: number) => Promise<{
2
+ list: any[];
3
+ listMap: any;
4
+ }>;
5
+ export declare const createBookings: (params: any) => Promise<any>;
6
+ export declare const editBookings: (params: any, id?: number) => Promise<any>;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { PisellDrawerProps } from '../../../components/drawer';
3
+ import '../../../info/service/addService/index.less';
4
+ interface AddServiceProps {
5
+ onEdit: any;
6
+ dispatch?: any;
7
+ state?: any;
8
+ drawerProps?: PisellDrawerProps;
9
+ renderMode?: 'current' | 'drawer';
10
+ }
11
+ declare const Info: (props: AddServiceProps) => JSX.Element;
12
+ export default Info;
@@ -0,0 +1,88 @@
1
+ import dayjs from 'dayjs';
2
+ export declare const getUsableTime: (cacheItem: any) => any;
3
+ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResource, slice, }: any) => {
4
+ startDate: dayjs.Dayjs;
5
+ usableTime: any;
6
+ duration: string | number | {
7
+ type: string;
8
+ value: number;
9
+ };
10
+ locale: string;
11
+ slice: any;
12
+ selectProps: {
13
+ size: string;
14
+ };
15
+ };
16
+ /**
17
+ * @title: 灵活时长选项
18
+ * @description:
19
+ * @param {*} useMemo
20
+ * @return {*}
21
+ * @Author: zhiwei.Wang
22
+ * @Date: 2024-02-23 10:10
23
+ */
24
+ export declare const getFlexibleOption: ({ cacheItem, useStartTime, currentResource, slice, durationProps, }: any) => {
25
+ label: any;
26
+ value: any;
27
+ } | null;
28
+ export declare const getTimeSlices: ({ state }: any) => {
29
+ timeSlices: {
30
+ label: string;
31
+ value: string;
32
+ }[];
33
+ };
34
+ /**
35
+ * @title: 时间切片
36
+ * @description:
37
+ * @return {*}
38
+ * @Author: zhiwei.Wang
39
+ * @Date: 2024-01-09 13:37
40
+ */
41
+ export declare const getTimeObj: ({ cacheItem, useStartTime, currentResource, state, useDuration, durationProps, }: any) => {
42
+ timeSlices: {
43
+ label: string;
44
+ value: string;
45
+ }[];
46
+ durationSlicesBasedOnTime: {
47
+ label: string;
48
+ value: number;
49
+ }[];
50
+ };
51
+ /**
52
+ * @title: 获取资源列表
53
+ * @description:
54
+ * @return {*}
55
+ * @Author: zhiwei.Wang
56
+ * @Date: 2024-01-09 13:38
57
+ */
58
+ export declare const formatResources: ({ cacheItem, resourcesOrigin }: any) => {
59
+ list: any[];
60
+ maps: any;
61
+ };
62
+ export declare const setDefaultResource: ({ cacheItem, resources }: any) => any;
63
+ /**
64
+ * @title: 设置默认容量
65
+ * @description:
66
+ * @param {any} param1
67
+ * @return {*}
68
+ * @Author: zhiwei.Wang
69
+ * @Date: 2024-09-19 20:26
70
+ */
71
+ export declare const setDefaultCapacitys: ({ capacitys, cacheItem }: any) => any;
72
+ /**
73
+ * @title: 预生成服务的 extend
74
+ * @description:
75
+ * @param {any} param1
76
+ * @return {*}
77
+ * @Author: zhiwei.Wang
78
+ * @Date: 2024-06-01 13:25
79
+ */
80
+ export declare const getProductExtend: ({ cacheItem, state }: any) => any;
81
+ /**
82
+ * @title: 格式化服务列表
83
+ * @description: 后端列表返回的product_resource.resources 的optional_resource等不是最新数据
84
+ * 使用with resourceRelation后 返回的resource_relation是实时数据
85
+ * 这里做一次转换
86
+ * @param list
87
+ */
88
+ export declare const transServiceList: (list: any[]) => any[];
@@ -0,0 +1,3 @@
1
+ import '../../../info/service/addTimeModal/index.less';
2
+ declare const AddTimeModal: () => JSX.Element;
3
+ export default AddTimeModal;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { SelectProps } from 'antd';
3
+ interface MaxLengthSelectProps<T> extends SelectProps<T> {
4
+ maxLength: number;
5
+ }
6
+ declare const _default: import("react").ForwardRefExoticComponent<Partial<MaxLengthSelectProps<any>> & import("react").RefAttributes<unknown>>;
7
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
4
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface EditServiceRef {
4
+ init: (cacheItem?: any) => void;
5
+ }
6
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
7
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import '../../info/service/index.less';
3
+ declare const _default: React.MemoExoticComponent<() => JSX.Element>;
4
+ export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceList: ({ onEdit }: {
4
3
  onEdit: any;
@@ -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;
@@ -25,7 +25,7 @@ var StartTime = function StartTime(props) {
25
25
  return sliceDayIntoFiveMinutes(slice, locale);
26
26
  }, [slice, locale]);
27
27
  useEffect(function () {
28
- timeObjChange === null || timeObjChange === void 0 ? void 0 : timeObjChange(timeObj);
28
+ timeObjChange === null || timeObjChange === void 0 || timeObjChange(timeObj);
29
29
  }, [timeObj]);
30
30
  var renderOptions = useCallback(function (array) {
31
31
  var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "value";
@@ -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;
@@ -18,7 +18,7 @@ var NoteItem = function NoteItem(props) {
18
18
  _props$menus = props.menus,
19
19
  menus = _props$menus === void 0 ? defaultMenus : _props$menus;
20
20
  var menuChange = function menuChange(e) {
21
- onChange === null || onChange === void 0 ? void 0 : onChange(item, e.key);
21
+ onChange === null || onChange === void 0 || onChange(item, e.key);
22
22
  };
23
23
  return /*#__PURE__*/React.createElement("div", {
24
24
  className: "pisell-lowcode__booking-notes-item"