@pisell/private-materials 3.3.8 → 3.3.9

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 (285) 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 +4 -4
  8. package/build/lowcode/view.js +8 -8
  9. package/es/businessModel/SalesModel/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +8 -0
  11. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +3 -0
  12. package/es/components/appointmentBooking/components/Cart/utils.d.ts +77 -0
  13. package/es/components/appointmentBooking/components/Content/index.d.ts +3 -0
  14. package/es/components/appointmentBooking/components/Date/index.d.ts +3 -0
  15. package/es/components/appointmentBooking/components/Date/index.js +5 -3
  16. package/es/components/appointmentBooking/components/Footer/index.d.ts +3 -0
  17. package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -0
  18. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  19. package/es/components/appointmentBooking/deposit/index.d.ts +3 -0
  20. package/es/components/appointmentBooking/hooks.d.ts +105 -0
  21. package/es/components/appointmentBooking/hooks.js +3 -1
  22. package/es/components/appointmentBooking/index.d.ts +3 -0
  23. package/es/components/appointmentBooking/locales.d.ts +345 -0
  24. package/es/components/booking/addons/model.d.ts +10 -1
  25. package/es/components/booking/addons/model.js +5 -5
  26. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  27. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  28. package/es/components/booking/components/browserSelect/index.js +1 -1
  29. package/es/components/booking/forms/model.d.ts +10 -1
  30. package/es/components/booking/forms/model.js +5 -5
  31. package/es/components/booking/info/model.d.ts +10 -1
  32. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  33. package/es/components/booking/info/service/like/index.js +1 -1
  34. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  35. package/es/components/booking/info/service2/utils.d.ts +1 -1
  36. package/es/components/booking/info/utils.js +1 -1
  37. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  38. package/es/components/booking/materiels/startTime/index.js +1 -1
  39. package/es/components/booking/model.d.ts +9 -1
  40. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  41. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  42. package/es/components/booking/notes/model.d.ts +10 -1
  43. package/es/components/booking/notes/model.js +5 -5
  44. package/es/components/booking/payments/model.d.ts +10 -1
  45. package/es/components/booking/payments/model.js +5 -5
  46. package/es/components/eftposPay/hooks.d.ts +1 -1
  47. package/es/components/eftposPay/store/index.d.ts +1 -1
  48. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  49. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  50. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  51. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  52. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  53. package/es/components/eventBooking/index.d.ts +1 -0
  54. package/es/components/listComponent/index.js +5 -5
  55. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  56. package/es/components/pay/toC/model.d.ts +9 -1
  57. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  58. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  59. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  60. package/es/components/productExtension/card/index.js +3 -3
  61. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  62. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  63. package/es/components/productExtension/fields/Forms/index.js +12 -12
  64. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  65. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  66. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  67. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  68. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  69. package/es/components/productExtension/index.d.ts +1 -0
  70. package/es/components/productExtension/server.js +2 -2
  71. package/es/components/ruleSetting/index.d.ts +1 -0
  72. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  73. package/es/components/schedules/calendar/index.js +4 -4
  74. package/es/components/schedules/calendar/serve.js +2 -2
  75. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  76. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  77. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  78. package/es/components/schedules/components/ResourceList/index.js +1 -1
  79. package/es/components/schedules/components/Search/index.js +5 -5
  80. package/es/components/schedules/model.d.ts +9 -1
  81. package/es/components/schedules/model.js +5 -5
  82. package/es/components/schedules/openHours/index.js +1 -1
  83. package/es/components/schedules/openHours/serve.js +2 -2
  84. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  85. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  86. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  87. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  88. package/es/components/schedules/products/serve.js +2 -2
  89. package/es/components/schedules/products/utils.js +5 -5
  90. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  91. package/es/components/schedules/resources/detail/index.js +10 -10
  92. package/es/components/schedules/resources/list/index.js +2 -2
  93. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  94. package/es/components/schedules/resources/serve.js +2 -2
  95. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  96. package/es/components/schedules/utils.d.ts +1 -1
  97. package/es/components/schedules/utils.js +4 -4
  98. package/es/components/selectModal/index.js +2 -2
  99. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  100. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  101. package/es/components/wallet/Detail/model.d.ts +13 -1
  102. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  103. package/es/components/wallet/PointCard/model.d.ts +13 -1
  104. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  105. package/es/components/wallet/Voucher/model.d.ts +13 -1
  106. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  107. package/es/components/wallet/model.d.ts +9 -1
  108. package/es/hooks/useComponents.js +1 -1
  109. package/es/utils/index.d.ts +1 -1
  110. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  111. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +8 -0
  112. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +3 -0
  113. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +77 -0
  114. package/lib/components/appointmentBooking/components/Content/index.d.ts +3 -0
  115. package/lib/components/appointmentBooking/components/Date/index.d.ts +3 -0
  116. package/lib/components/appointmentBooking/components/Date/index.js +4 -3
  117. package/lib/components/appointmentBooking/components/Footer/index.d.ts +3 -0
  118. package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -0
  119. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  120. package/lib/components/appointmentBooking/deposit/index.d.ts +3 -0
  121. package/lib/components/appointmentBooking/hooks.d.ts +105 -0
  122. package/lib/components/appointmentBooking/hooks.js +2 -1
  123. package/lib/components/appointmentBooking/index.d.ts +3 -0
  124. package/lib/components/appointmentBooking/locales.d.ts +345 -0
  125. package/lib/components/booking/addons/model.d.ts +10 -1
  126. package/lib/components/booking/forms/model.d.ts +10 -1
  127. package/lib/components/booking/info/model.d.ts +10 -1
  128. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  129. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  130. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  131. package/lib/components/booking/info/utils.js +1 -1
  132. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  133. package/lib/components/booking/model.d.ts +9 -1
  134. package/lib/components/booking/notes/model.d.ts +10 -1
  135. package/lib/components/booking/payments/model.d.ts +10 -1
  136. package/lib/components/eftposPay/hooks.d.ts +1 -1
  137. package/lib/components/eftposPay/store/index.d.ts +1 -1
  138. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  139. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  140. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  141. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  142. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  143. package/lib/components/eventBooking/index.d.ts +1 -0
  144. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  145. package/lib/components/pay/toC/model.d.ts +9 -1
  146. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  147. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  148. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  149. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  150. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  151. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  152. package/lib/components/productExtension/index.d.ts +1 -0
  153. package/lib/components/ruleSetting/index.d.ts +1 -0
  154. package/lib/components/schedules/model.d.ts +9 -1
  155. package/lib/components/schedules/utils.d.ts +1 -1
  156. package/lib/components/schedules/utils.js +1 -1
  157. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  158. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  159. package/lib/components/wallet/Detail/model.d.ts +13 -1
  160. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  161. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  162. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  163. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  164. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  165. package/lib/components/wallet/model.d.ts +9 -1
  166. package/lib/utils/index.d.ts +1 -1
  167. package/package.json +3 -3
  168. package/es/components/Sales/Event/index.d.ts +0 -30
  169. package/es/components/appointmentBooking/utils.d.ts +0 -151
  170. package/es/components/booking/addons/index.d.ts +0 -17
  171. package/es/components/booking/components/footer/index.d.ts +0 -11
  172. package/es/components/booking/components/footer/utils.d.ts +0 -30
  173. package/es/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
  174. package/es/components/booking/info/hooks/useAddHolder.d.ts +0 -2
  175. package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  176. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -10
  177. package/es/components/booking/info/index.d.ts +0 -3
  178. package/es/components/booking/info/main.d.ts +0 -12
  179. package/es/components/booking/info/pet/index.d.ts +0 -14
  180. package/es/components/booking/info/service/Lists.d.ts +0 -2
  181. package/es/components/booking/info/service/addService/index.d.ts +0 -11
  182. package/es/components/booking/info/service/editService/index.d.ts +0 -7
  183. package/es/components/booking/info/service/index.d.ts +0 -4
  184. package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
  185. package/es/components/booking/info/service2/Group/utils.d.ts +0 -14
  186. package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
  187. package/es/components/booking/info2/index.d.ts +0 -12
  188. package/es/components/booking/info2/serve.d.ts +0 -6
  189. package/es/components/booking/info2/service/addService/index.d.ts +0 -12
  190. package/es/components/booking/info2/service/addService/utils.d.ts +0 -88
  191. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
  192. package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
  193. package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
  194. package/es/components/booking/info2/service/editService/index.d.ts +0 -7
  195. package/es/components/booking/info2/service/index.d.ts +0 -4
  196. package/es/components/booking/info2/utils.d.ts +0 -4
  197. package/es/components/booking/info2/utilsByBooking.d.ts +0 -34
  198. package/es/components/booking/materiels/holder/index.d.ts +0 -7
  199. package/es/components/booking/notes/addNote/index.d.ts +0 -4
  200. package/es/components/index.d.ts +0 -18
  201. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
  202. package/es/components/productSelect/components/gridLayout/index.d.ts +0 -9
  203. package/es/components/productSelect/components/productGroup/index.d.ts +0 -34
  204. package/es/components/productSelect/hooks/useToken.d.ts +0 -18
  205. package/es/components/productSelect/index.d.ts +0 -23
  206. package/es/components/productSelect/locales.d.ts +0 -18
  207. package/es/components/productSelect/mock.d.ts +0 -134
  208. package/es/components/productSelect/theme/token.d.ts +0 -17
  209. package/es/components/shoppingCart/Provider.d.ts +0 -3
  210. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  211. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -2
  212. package/es/components/shoppingCart/index.d.ts +0 -3
  213. package/es/components/shoppingCart/type.d.ts +0 -48
  214. package/es/components/subTotal/index.d.ts +0 -22
  215. package/es/components/subTotal/locales.d.ts +0 -42
  216. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  217. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -4
  218. package/es/components/ticketBooking/data.d.ts +0 -58
  219. package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
  220. package/es/components/ticketBooking/index.d.ts +0 -3
  221. package/es/components/ticketBooking/locales.d.ts +0 -144
  222. package/es/components/ticketBooking/miniRedux.d.ts +0 -22
  223. package/es/components/ticketBooking/serve.d.ts +0 -282
  224. package/es/components/ticketBooking/utils/index.d.ts +0 -14
  225. package/es/components/wallet/Detail/index.d.ts +0 -42
  226. package/es/index.d.ts +0 -45
  227. package/lib/components/Sales/Event/index.d.ts +0 -30
  228. package/lib/components/appointmentBooking/utils.d.ts +0 -151
  229. package/lib/components/booking/addons/index.d.ts +0 -17
  230. package/lib/components/booking/components/footer/index.d.ts +0 -11
  231. package/lib/components/booking/components/footer/utils.d.ts +0 -30
  232. package/lib/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
  233. package/lib/components/booking/info/hooks/useAddHolder.d.ts +0 -2
  234. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  235. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -10
  236. package/lib/components/booking/info/index.d.ts +0 -3
  237. package/lib/components/booking/info/main.d.ts +0 -12
  238. package/lib/components/booking/info/pet/index.d.ts +0 -14
  239. package/lib/components/booking/info/service/Lists.d.ts +0 -2
  240. package/lib/components/booking/info/service/addService/index.d.ts +0 -11
  241. package/lib/components/booking/info/service/editService/index.d.ts +0 -7
  242. package/lib/components/booking/info/service/index.d.ts +0 -4
  243. package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
  244. package/lib/components/booking/info/service2/Group/utils.d.ts +0 -14
  245. package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
  246. package/lib/components/booking/info2/index.d.ts +0 -12
  247. package/lib/components/booking/info2/serve.d.ts +0 -6
  248. package/lib/components/booking/info2/service/addService/index.d.ts +0 -12
  249. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -88
  250. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
  251. package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
  252. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
  253. package/lib/components/booking/info2/service/editService/index.d.ts +0 -7
  254. package/lib/components/booking/info2/service/index.d.ts +0 -4
  255. package/lib/components/booking/info2/utils.d.ts +0 -4
  256. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -34
  257. package/lib/components/booking/materiels/holder/index.d.ts +0 -7
  258. package/lib/components/booking/notes/addNote/index.d.ts +0 -4
  259. package/lib/components/index.d.ts +0 -18
  260. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
  261. package/lib/components/productSelect/components/gridLayout/index.d.ts +0 -9
  262. package/lib/components/productSelect/components/productGroup/index.d.ts +0 -34
  263. package/lib/components/productSelect/hooks/useToken.d.ts +0 -18
  264. package/lib/components/productSelect/index.d.ts +0 -23
  265. package/lib/components/productSelect/locales.d.ts +0 -18
  266. package/lib/components/productSelect/mock.d.ts +0 -134
  267. package/lib/components/productSelect/theme/token.d.ts +0 -17
  268. package/lib/components/shoppingCart/Provider.d.ts +0 -3
  269. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  270. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -2
  271. package/lib/components/shoppingCart/index.d.ts +0 -3
  272. package/lib/components/shoppingCart/type.d.ts +0 -48
  273. package/lib/components/subTotal/index.d.ts +0 -22
  274. package/lib/components/subTotal/locales.d.ts +0 -42
  275. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  276. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -4
  277. package/lib/components/ticketBooking/data.d.ts +0 -58
  278. package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
  279. package/lib/components/ticketBooking/index.d.ts +0 -3
  280. package/lib/components/ticketBooking/locales.d.ts +0 -144
  281. package/lib/components/ticketBooking/miniRedux.d.ts +0 -22
  282. package/lib/components/ticketBooking/serve.d.ts +0 -282
  283. package/lib/components/ticketBooking/utils/index.d.ts +0 -14
  284. package/lib/components/wallet/Detail/index.d.ts +0 -42
  285. package/lib/index.d.ts +0 -45
@@ -1,6 +0,0 @@
1
- declare const useSelectPet: (state: any) => {
2
- petLists: any;
3
- holderLists: any;
4
- getHolderName: (id: number) => any;
5
- };
6
- export default useSelectPet;
@@ -1,12 +0,0 @@
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;
@@ -1,6 +0,0 @@
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>;
@@ -1,12 +0,0 @@
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;
@@ -1,88 +0,0 @@
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[];
@@ -1,3 +0,0 @@
1
- import '../../../info/service/addTimeModal/index.less';
2
- declare const AddTimeModal: () => JSX.Element;
3
- export default AddTimeModal;
@@ -1,7 +0,0 @@
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;
@@ -1,4 +0,0 @@
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;
@@ -1,7 +0,0 @@
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;
@@ -1,4 +0,0 @@
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 +0,0 @@
1
- export declare const getFormatResourceListAndMap: (data: any[], bookingId?: number) => {
2
- list: any[];
3
- listMap: any;
4
- };
@@ -1,34 +0,0 @@
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;
@@ -1,7 +0,0 @@
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 +0,0 @@
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,18 +0,0 @@
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,2 +0,0 @@
1
- declare const TabProduct: (props: any) => JSX.Element;
2
- export default TabProduct;
@@ -1,9 +0,0 @@
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;
@@ -1,34 +0,0 @@
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;
@@ -1,18 +0,0 @@
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>;
@@ -1,23 +0,0 @@
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;
@@ -1,18 +0,0 @@
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;
@@ -1,134 +0,0 @@
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;
@@ -1,17 +0,0 @@
1
- export interface ProductSelectToken {
2
- colorPrimary: string;
3
- colorText: string;
4
- colorTextSecondary: string;
5
- searchInputColor: string;
6
- containerBg: string;
7
- tabItemBg: string;
8
- tabItemHoverBg: string;
9
- tabItemActiveBg: string;
10
- categoryTextColor: string;
11
- cardBg: string;
12
- cardHoverBg: string;
13
- cardSelectedBg: string;
14
- cardSelectedTextColor: string;
15
- cardSelectedSecondaryTextColor: string;
16
- }
17
- export declare const defaultToken: ProductSelectToken;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export declare const CartContext: React.Context<any>;
3
- export declare const CartProvider: ({ children, props, onCard, onAction, onChange, onAddProduct, onActiveKey, }: any) => JSX.Element;
@@ -1,3 +0,0 @@
1
- import { ProductProps } from '../../type';
2
- declare const Product: (props: ProductProps) => JSX.Element;
3
- export default Product;
@@ -1,2 +0,0 @@
1
- declare const useAddService: (id?: number, type?: string) => JSX.Element | null;
2
- export default useAddService;
@@ -1,3 +0,0 @@
1
- import { shoppingCartProps } from './type';
2
- declare const shoppingCart: ({ onCard, onAction, onChange, onAddProduct, onActiveKey, ...props }: shoppingCartProps) => JSX.Element;
3
- export default shoppingCart;
@@ -1,48 +0,0 @@
1
- import { CollapseProps } from 'antd';
2
- export interface productProps {
3
- hideAddBtn?: boolean;
4
- isShowNote?: boolean;
5
- isShowPackageNote?: boolean;
6
- products?: any[];
7
- holders?: any[];
8
- isEdit?: boolean;
9
- disabledEdit?: boolean;
10
- isShowChangeResource?: boolean;
11
- isShowDelete?: boolean;
12
- isShowChangeHolder?: boolean;
13
- isShowHolder?: boolean;
14
- isShowAddHolderButton?: boolean;
15
- }
16
- export interface shoppingCartProps {
17
- isOpenGroup?: boolean;
18
- carts?: any[];
19
- platform?: 'shop' | 'h5';
20
- emptyText?: string;
21
- activeKey?: string[] | number[];
22
- defaultActiveKey?: string[] | number[];
23
- className?: string;
24
- onCard?: (e: any) => void;
25
- onAction?: (e: any) => void;
26
- onChange?: (items: any, type?: string, other?: any) => void;
27
- onAddProduct?: (e?: any) => void;
28
- onActiveKey?: (e: any) => void;
29
- isShowImage?: boolean;
30
- isShowHolder?: boolean;
31
- isShowDelete?: boolean;
32
- collapseParams?: CollapseProps;
33
- productParams?: productProps;
34
- isHideClearCart?: boolean;
35
- isParallelResource?: boolean;
36
- }
37
- /**
38
- * @title: 商品卡片
39
- * @description:
40
- * @return {*}
41
- * @Author: WangHan
42
- * @Date: 2024-11-29 09:52
43
- */
44
- export interface ProductProps {
45
- id?: any;
46
- lists: any[];
47
- isAdd?: boolean;
48
- }
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare type SubTotalKey = 'deposit' | 'total' | 'sub_total' | 'tax' | 'delivery_fee' | 'discount' | 'point_deduction' | 'member_deduction' | 'custom' | string;
4
- export interface SubTotalItem extends React.HTMLAttributes<HTMLDivElement> {
5
- key: SubTotalKey;
6
- label?: string | React.ReactNode;
7
- value: number;
8
- count?: number;
9
- hidden?: boolean;
10
- tax?: {
11
- rate?: number;
12
- is_price_include_tax?: boolean;
13
- title?: string;
14
- };
15
- }
16
- interface SubTotalProps extends React.HTMLAttributes<HTMLDivElement> {
17
- list: SubTotalItem[];
18
- mode?: 'column1' | 'column2';
19
- describe?: string;
20
- }
21
- declare const SubTotal: (props: SubTotalProps) => JSX.Element;
22
- export default SubTotal;
@@ -1,42 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.subtotal.deposit': string;
4
- 'pisell2.subtotal.total': string;
5
- 'pisell2.subtotal.subtotal': string;
6
- 'pisell2.subtotal.tax': string;
7
- 'pisell2.subtotal.delivery-fee': string;
8
- 'pisell2.subtotal.discount': string;
9
- 'pisell2.subtotal.point-deduction': string;
10
- 'pisell2.subtotal.member-deduction': string;
11
- 'pisell2.subtotal.items': string;
12
- 'pisell2.subtotal.not-contain': string;
13
- 'pisell2.subtotal.included': string;
14
- };
15
- 'zh-CN': {
16
- 'pisell2.subtotal.deposit': string;
17
- 'pisell2.subtotal.total': string;
18
- 'pisell2.subtotal.subtotal': string;
19
- 'pisell2.subtotal.tax': string;
20
- 'pisell2.subtotal.delivery-fee': string;
21
- 'pisell2.subtotal.discount': string;
22
- 'pisell2.subtotal.point-deduction': string;
23
- 'pisell2.subtotal.member-deduction': string;
24
- 'pisell2.subtotal.items': string;
25
- 'pisell2.subtotal.not-contain': string;
26
- 'pisell2.subtotal.included': string;
27
- };
28
- 'zh-HK': {
29
- 'pisell2.subtotal.deposit': string;
30
- 'pisell2.subtotal.total': string;
31
- 'pisell2.subtotal.subtotal': string;
32
- 'pisell2.subtotal.tax': string;
33
- 'pisell2.subtotal.delivery-fee': string;
34
- 'pisell2.subtotal.discount': string;
35
- 'pisell2.subtotal.point-deduction': string;
36
- 'pisell2.subtotal.member-deduction': string;
37
- 'pisell2.subtotal.items': string;
38
- 'pisell2.subtotal.not-contain': string;
39
- 'pisell2.subtotal.included': string;
40
- };
41
- };
42
- export default _default;
@@ -1,6 +0,0 @@
1
- interface AddServiceVariantProps {
2
- globalState: any;
3
- setGlobalState: any;
4
- }
5
- declare const AddServiceVariant: (props: AddServiceVariantProps) => JSX.Element;
6
- export default AddServiceVariant;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const index: () => JSX.Element;
4
- export default index;