@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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.module.less';
2
3
  declare const StripePayment: () => JSX.Element;
3
4
  export default StripePayment;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  platform: 'pc' | 'h5' | '' | undefined;
3
4
  order: any;
@@ -24,4 +25,11 @@ export interface PayGroup {
24
25
  pay_number?: string;
25
26
  _order: any;
26
27
  }
27
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
2
3
  export default PhoneField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface AddClientProps {
3
4
  onChange: (value: any) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface RightPanelProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const Actor: ({ name }: {
2
3
  name: string;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface valueType {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SelectResourcesTable: ({ value, onChange }: any) => JSX.Element;
3
4
  export default SelectResourcesTable;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface ProductExtensionProps {
3
4
  onDataChange: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface RuleSettingProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem, ScheduleItem } from "./type";
2
3
  import dayjs from "dayjs";
3
4
  export interface FormState {
@@ -68,4 +69,11 @@ export interface FormState {
68
69
  };
69
70
  setGlobalState: Function | null;
70
71
  }
71
- export declare const Provider: any, Context: any;
72
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
+ state: FormState;
74
+ } & {
75
+ dispatch: (params: {
76
+ type: string;
77
+ payload: any;
78
+ }) => void;
79
+ }>;
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
17
17
  export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
18
18
  export declare const saveConfirm: () => Promise<{
19
19
  destroy: () => void;
20
- update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
20
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
21
  }>;
22
22
  export { modal };
@@ -27,8 +27,8 @@ __export(utils_exports, {
27
27
  module.exports = __toCommonJS(utils_exports);
28
28
  var import_utils = require("@pisell/utils");
29
29
  var Request = class {
30
- request = {};
31
30
  constructor() {
31
+ this.request = {};
32
32
  }
33
33
  setRequest(val) {
34
34
  this.request = val;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Empty: (props: any) => JSX.Element;
3
4
  export default Empty;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Content: () => JSX.Element;
3
4
  export default Content;
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ addWalletCard: any;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ walletDetailState: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,14 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ setup?: 'menu' | 'list' | 'detail' | string;
5
+ }
6
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
+ state: RechargeState;
8
+ } & {
9
+ dispatch: (params: {
10
+ type: string;
11
+ payload: any;
12
+ }) => void;
13
+ }>;
14
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,29 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ selectedGiftOptionId: string | null;
4
+ cardList: Array<{
5
+ id: string;
6
+ name: string;
7
+ price: number;
8
+ }>;
9
+ selectedItem: {
10
+ id?: string;
11
+ gift_price?: number;
12
+ price?: number;
13
+ name?: string;
14
+ variant_id?: string;
15
+ };
16
+ productId?: string;
17
+ detailId?: string;
18
+ total: string | number;
19
+ rechargeModalOpen: boolean;
20
+ }
21
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
+ state: RechargeState;
23
+ } & {
24
+ dispatch: (params: {
25
+ type: string;
26
+ payload: any;
27
+ }) => void;
28
+ }>;
29
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: 0;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from '../serve';
2
3
  /**
3
4
  * 钱包卡片Hook的参数
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from './serve';
2
3
  export interface WalletCardItemProps {
3
4
  id: string;
@@ -26,4 +27,11 @@ export interface WalletListProps {
26
27
  currentSearchListItemCode?: string;
27
28
  [key: string]: any;
28
29
  }
29
- export declare const Provider: any, Context: any;
30
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
+ global_wallet: WalletListProps;
32
+ } & {
33
+ dispatch: (params: {
34
+ type: string;
35
+ payload: any;
36
+ }) => void;
37
+ }>;
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
18
18
  export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
19
19
  export declare const saveConfirm: () => Promise<{
20
20
  destroy: () => void;
21
- update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
21
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
22
22
  }>;
23
23
  export { modal };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.3.8",
3
+ "version": "3.3.9",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -60,9 +60,9 @@
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
62
  "@pisell/utils": "1.0.42",
63
+ "@pisell/icon": "0.0.11",
63
64
  "@pisell/date-picker": "3.0.2",
64
- "@pisell/materials": "3.3.5",
65
- "@pisell/icon": "0.0.11"
65
+ "@pisell/materials": "3.3.5"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- interface EventData {
3
- currentEventItem: any;
4
- eventList: any[];
5
- }
6
- interface EventContextType {
7
- eventData: EventData;
8
- getEventList: {
9
- run: (params: any) => void;
10
- loading: boolean;
11
- data?: EventData['eventList'];
12
- };
13
- getEventListByTitle: (title: string) => any;
14
- selectEvent: (eventItem: any) => void;
15
- }
16
- interface EventProviderProps {
17
- children: React.ReactNode;
18
- }
19
- export declare const EventContext: React.Context<EventContextType | undefined>;
20
- export declare const EventProvider: React.FC<EventProviderProps>;
21
- /**
22
- * 使用步骤管理的Hook
23
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
24
- * @returns {StepContextType} 步骤管理上下文
25
- */
26
- export declare const useEvent: () => EventContextType;
27
- declare const _default: {
28
- defaultState: EventData;
29
- };
30
- export default _default;
@@ -1,151 +0,0 @@
1
- /**
2
- * @title: 获取背景色
3
- * @description:
4
- * @param {string} colors
5
- * @return {*}
6
- * @Author: WangHan
7
- * @Date: 2025-01-11 22:44
8
- */
9
- export declare const formatBackgroundColors: (colors: string[]) => string;
10
- /**
11
- * @title: 获取可用的 schedule
12
- * @description:
13
- * @param {any} schedule
14
- * @return {*}
15
- * @Author: zhiwei.Wang
16
- * @Date: 2024-03-05 18:05
17
- */
18
- export declare const getUsableSchedules: (schedule: any) => boolean;
19
- /**
20
- * @title: 获取 schedules 的所有颜色
21
- * @description:
22
- * @param {any} schedules
23
- * @return {*}
24
- * @Author: zhiwei.Wang
25
- * @Date: 2024-03-05 18:02
26
- */
27
- export declare const getScheduleColors: (schedules: any[]) => string;
28
- /**
29
- * @title: 格式化日期头部日期显示
30
- * @description:
31
- * @param {string} dateString
32
- * @return {*}
33
- * @Author: WangHan
34
- * @Date: 2025-01-12 11:55
35
- */
36
- export declare const formatMonthDisplay: (dateString: string) => string;
37
- /**
38
- * @title: 资源名称
39
- * @description:
40
- * @param {any} data
41
- * @return {*}
42
- * @Author: WangHan
43
- * @Date: 2025-02-11 13:39
44
- */
45
- export declare const resourceTitle: (data: any) => any;
46
- export declare const formatHolder: (data: any[]) => any[];
47
- export declare const formatGuest: (data: any[], products: any) => any[];
48
- export declare const formatCarts: (data: any[], resources: any[], accountLists?: any) => any[];
49
- /**
50
- * @title: 对资源进行排序
51
- * @description:
52
- * @param {any} currentResourcesMap
53
- * @param {any} resourceSort
54
- * @return {*}
55
- * @Author: WangHan
56
- * @Date: 2025-04-14 11:16
57
- */
58
- export declare const sortResources: (resources: any[], resourceSort: any[]) => any[] | undefined;
59
- export declare const getMeAccount: (val: any[]) => any;
60
- export declare const getCustomer: () => any;
61
- export declare const formatCustomer: (val: any) => {
62
- id: any;
63
- username: string;
64
- };
65
- export declare const formatCurrentUser: () => {
66
- id: any;
67
- username: string;
68
- };
69
- /**
70
- * @title: 检查是否有空的账户
71
- * @description:
72
- * @param {any} carts
73
- * @param {any} accounts
74
- * @return {*}
75
- * @Author: WangHan
76
- * @Date: 2025-04-15 17:05
77
- */
78
- export declare const isEmptyGuest: (carts: any[], accounts: any[]) => boolean;
79
- /**
80
- * @title: 购物车中是否有空的资源数据
81
- * @description:
82
- * @param {any} carts
83
- * @return {*}
84
- * @Author: WangHan
85
- * @Date: 2025-04-15 21:51
86
- */
87
- export declare const isEmptyCartsResourceId: (carts: any[]) => boolean;
88
- /**
89
- * @title: 定金合并的标点符号
90
- * @description:
91
- * @return {*}
92
- * @Author: WangHan
93
- * @Date: 2025-04-21 17:52
94
- */
95
- export declare const getPunctuationMark: (index: number, totalLength: number, isEn: boolean) => any;
96
- /**
97
- * @title: 判断当前选中的资源中是否有 resource_form_id 表单id,如果有表单则下一步是选择表单
98
- * @description:
99
- * @param {any} array
100
- * @param {any} resources
101
- * @return {*}
102
- * @Author: WangHan
103
- * @Date: 2025-04-25 19:05
104
- */
105
- export declare const hasResourceFormId: (array: any[]) => boolean | undefined;
106
- export declare const formatForms: (array: any[]) => ({
107
- form_id: any;
108
- policy_id: any;
109
- id: any;
110
- cart_id: any;
111
- } | null)[];
112
- /**
113
- * @title: 打开表单
114
- * @description:
115
- * @param {string} title
116
- * @param {any} callback
117
- * @return {*}
118
- * @Author: WangHan
119
- * @Date: 2025-04-26 15:26
120
- */
121
- export declare const openForm: ({ form_id, title, callback, utils }: any) => void;
122
- /**
123
- * @title: 更新数组
124
- * @description:
125
- * @return {*}
126
- * @Author: WangHan
127
- * @Date: 2025-04-26 18:13
128
- */
129
- export declare function updateLists<T extends Record<string, any>>(list: T[], key: string, value: any, newData: Partial<T>): T[];
130
- /**
131
- * @title: 检查表单是否有未完成或错误
132
- * @description:
133
- * @param {any} formStatus
134
- * @param {any} formLists
135
- * @return {*}
136
- * @Author: WangHan
137
- * @Date: 2025-04-26 18:52
138
- */
139
- export declare function hasFormError(formStatus: any[], formLists: any[]): boolean;
140
- /**
141
- * @title: 更新表单存储
142
- * @description:
143
- * @param {any} bookingForm
144
- * @param {number} id
145
- * @param {any} newData
146
- * @return {*}
147
- * @Author: WangHan
148
- * @Date: 2025-04-27 17:27
149
- */
150
- export declare const updateBookingFormStorage: (bookingForm: any, id: number, newData: any) => any;
151
- export declare const Toast: (text: string) => void;
@@ -1,17 +0,0 @@
1
- /**
2
- * @title: 添加额外商品
3
- * @description:
4
- * @return {*}
5
- * @Author: zhiwei.Wang
6
- * @Date: 2024-01-30 16:33
7
- */
8
- import './index.less';
9
- export interface InfoProps {
10
- title?: string;
11
- style?: any;
12
- globalState: any;
13
- setGlobalState: any;
14
- }
15
- export declare const formatProducts: (values: any) => any;
16
- declare const Addons: any;
17
- export default Addons;
@@ -1,11 +0,0 @@
1
- import './index.less';
2
- /**
3
- * @title: 底部
4
- * @description:
5
- * @param {any} props
6
- * @return {*}
7
- * @Author: zhiwei.Wang
8
- * @Date: 2024-01-30 16:51
9
- */
10
- declare const Footer: (props: any) => JSX.Element;
11
- export default Footer;
@@ -1,30 +0,0 @@
1
- /**
2
- * @title: 套餐单规格信息
3
- * @description:
4
- * @param {any} option
5
- * @return {*}
6
- * @Author: zhiwei.Wang
7
- * @Date: 2024-02-19 09:26
8
- */
9
- export declare const formatProductOption: (option: any) => any;
10
- /**
11
- * @title: 套餐信息
12
- * @description:
13
- * @param {any} bundle
14
- * @return {*}
15
- * @Author: zhiwei.Wang
16
- * @Date: 2024-02-19 09:26
17
- */
18
- export declare const formatProductBundle: (bundle: any) => any;
19
- export interface ResourceItem {
20
- [key: string]: any;
21
- }
22
- /**
23
- * @title: 传入资源,如果有子资源,会根据组合资源的 capacity 计算修改子资源的 capacity
24
- * @description:
25
- * @param {object} resource
26
- * @return {*}
27
- * @Author: jinglin.tan
28
- */
29
- export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
30
- export declare const formatValues: (state: any) => any;
@@ -1,6 +0,0 @@
1
- declare const useCreateBookingPageHeader: (state: any) => {
2
- createHeader: any;
3
- isBookingCreatePage: any;
4
- isBookingCreatePageCreateMode: any;
5
- };
6
- export default useCreateBookingPageHeader;
@@ -1,2 +0,0 @@
1
- declare const useAddHolder: (state: any, dispatch: any) => () => void;
2
- export default useAddHolder;
@@ -1,9 +0,0 @@
1
- declare const useHolderConfig: (state: any) => {
2
- appointment_subject: any;
3
- holder: any;
4
- isFormSubject: boolean;
5
- isCustomerSubject: boolean;
6
- isWalkInBol: boolean;
7
- isShowChangeHolder: boolean;
8
- };
9
- export default useHolderConfig;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { EditServiceRef } from "../service/editService";
3
- declare const useInfoHolder: (state: any, dispatch: any) => {
4
- detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
5
- handleEdit: (cacheItem: any) => void;
6
- dispatchService: (type: string, payload: any) => void;
7
- handleAction: (dataSource: any) => void;
8
- showAddTimeModal: boolean;
9
- };
10
- export default useInfoHolder;
@@ -1,3 +0,0 @@
1
- import { InfoProps } from './main';
2
- declare const APP: (props: InfoProps) => JSX.Element;
3
- export default APP;
@@ -1,12 +0,0 @@
1
- import './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,14 +0,0 @@
1
- import React from 'react';
2
- import { InfoProps } from '../../forms/forms';
3
- import './index.less';
4
- interface PetProps {
5
- state?: any;
6
- dispatch?: any;
7
- hideTitle?: boolean;
8
- addButtonProps?: InfoProps['addButtonProps'];
9
- handleOpenModal?: () => void;
10
- clientChangeNotSetPet?: boolean;
11
- previewItemTitleRender?: (item: any, index: number, values: any[]) => React.ReactNode;
12
- }
13
- declare const Pet: (props: PetProps) => JSX.Element;
14
- export default Pet;
@@ -1,2 +0,0 @@
1
- declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
2
- export default Lists;
@@ -1,11 +0,0 @@
1
- import { PisellDrawerProps } from '../../../components/drawer';
2
- import './index.less';
3
- interface AddServiceProps {
4
- onEdit?: any;
5
- dispatch?: any;
6
- state?: any;
7
- drawerProps?: PisellDrawerProps;
8
- renderMode?: 'current' | 'drawer';
9
- }
10
- declare const Info: (props: AddServiceProps) => JSX.Element;
11
- export default Info;
@@ -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 './index.less';
3
- declare const _default: React.MemoExoticComponent<() => JSX.Element>;
4
- export default _default;
@@ -1,20 +0,0 @@
1
- export declare const useService: ({ renderMode, onEdit, state, dispatch, }: {
2
- renderMode?: any;
3
- onEdit?: any;
4
- state?: any;
5
- dispatch?: any;
6
- }) => {
7
- createBookingData: ({ product }: any) => Promise<any>;
8
- editBookingData: ({ changeValues }: {
9
- changeValues: any;
10
- }) => Promise<any>;
11
- createBooking: ({ booking }: {
12
- booking: any;
13
- }) => Promise<void>;
14
- editBooking: ({ booking }: {
15
- booking: any;
16
- }) => Promise<void>;
17
- goEditPanel: ({ booking }: {
18
- booking: any;
19
- }) => void;
20
- };
@@ -1,14 +0,0 @@
1
- export declare const getGroupTotalPrice: (items: any[]) => any;
2
- /**
3
- * @title: 创建一个虚拟的组
4
- * @description:
5
- * @param {any} items
6
- * @return {*}
7
- * @Author: zhiwei.Wang
8
- */
9
- export declare const concatBookings: (items: any[]) => any;
10
- export declare const createBookingItemsByGroup: (item: any, isBatchEdit?: any) => any[];
11
- export declare const isGroupBooking: (_id: any) => boolean;
12
- export declare const getProductByGroupId: (groupId: string, items: any[]) => any[];
13
- export declare const getGroupBooking: (groupId: string, items: any[]) => any;
14
- export declare const filterItemByGroupId: (groupId: string, items: any[]) => any[];