@pisell/private-materials 3.4.22 → 3.4.24

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 (307) 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.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/Sales/Summary/utils.d.ts +1 -1
  13. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +27 -3
  16. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  17. package/es/components/appointmentBooking/components/Content/index.js +3 -3
  18. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  19. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  20. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  21. package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  22. package/es/components/appointmentBooking/components/Voucher/index.js +6 -5
  23. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  24. package/es/components/appointmentBooking/hooks.js +4 -2
  25. package/es/components/appointmentBooking/index.d.ts +1 -0
  26. package/es/components/appointmentBooking/index.js +10 -0
  27. package/es/components/booking/addons/model.d.ts +1 -10
  28. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  29. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  30. package/es/components/booking/components/footer/index.d.ts +1 -0
  31. package/es/components/booking/components/voucher/index.js +8 -5
  32. package/es/components/booking/deposit/index.d.ts +1 -0
  33. package/es/components/booking/forms/model.d.ts +1 -10
  34. package/es/components/booking/forms/single/index.d.ts +1 -0
  35. package/es/components/booking/hooks/useQuotation.d.ts +1 -0
  36. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  37. package/es/components/booking/info/header/index.d.ts +1 -0
  38. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  39. package/es/components/booking/info/index.d.ts +1 -0
  40. package/es/components/booking/info/model.d.ts +1 -10
  41. package/es/components/booking/info/service/Lists.d.ts +1 -0
  42. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  43. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  44. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  45. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  46. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  47. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  48. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  49. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  50. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  51. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  52. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  53. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  54. package/es/components/booking/model.d.ts +1 -9
  55. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  56. package/es/components/booking/notes/model.d.ts +1 -10
  57. package/es/components/booking/payments/model.d.ts +1 -10
  58. package/es/components/booking/utils.d.ts +2 -2
  59. package/es/components/eftpos/form/index.d.ts +1 -0
  60. package/es/components/eftpos/hooks.d.ts +1 -0
  61. package/es/components/eftpos/index.d.ts +1 -0
  62. package/es/components/eftpos/pos.d.ts +1 -0
  63. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  64. package/es/components/eftposPay/amount.d.ts +2 -1
  65. package/es/components/eftposPay/app.d.ts +1 -0
  66. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  67. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  68. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  69. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  70. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  71. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  72. package/es/components/eftposPay/device.d.ts +2 -1
  73. package/es/components/eftposPay/hooks.d.ts +2 -2
  74. package/es/components/eftposPay/index.d.ts +1 -0
  75. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  76. package/es/components/eftposPay/pay.d.ts +1 -0
  77. package/es/components/eftposPay/store/index.d.ts +4 -4
  78. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  79. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +34 -8
  80. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  81. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  82. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  83. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  84. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  85. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  86. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  87. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  88. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  89. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  90. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  91. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  92. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  93. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  94. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  95. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  96. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  97. package/es/components/eventBooking/index.d.ts +1 -0
  98. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  99. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  100. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  101. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  102. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  103. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  104. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  105. package/es/components/pay/toC/model.d.ts +1 -9
  106. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  107. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  108. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  109. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  110. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  111. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  112. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  113. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  114. package/es/components/productExtension/index.d.ts +1 -0
  115. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  116. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  117. package/es/components/ruleSetting/index.d.ts +1 -0
  118. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  119. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  120. package/es/components/schedules/model.d.ts +1 -9
  121. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  122. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  123. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  124. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  125. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  126. package/es/components/schedules/products/index.d.ts +1 -0
  127. package/es/components/schedules/resources/index.d.ts +1 -0
  128. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  129. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  130. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  131. package/es/components/schedules/schedules/index.d.ts +1 -0
  132. package/es/components/schedules/utils.d.ts +1 -1
  133. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  134. package/es/components/taxSelect/index.d.ts +1 -0
  135. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  136. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  137. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  138. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  139. package/es/components/wallet/Detail/index.js +251 -63
  140. package/es/components/wallet/Detail/locales.d.ts +51 -0
  141. package/es/components/wallet/Detail/locales.js +57 -3
  142. package/es/components/wallet/Detail/model.d.ts +1 -13
  143. package/es/components/wallet/Detail/serve.js +5 -1
  144. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  145. package/es/components/wallet/PointCard/model.d.ts +1 -13
  146. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  147. package/es/components/wallet/Voucher/model.d.ts +1 -13
  148. package/es/components/wallet/components/UsageRules/index.d.ts +23 -0
  149. package/es/components/wallet/components/UsageRules/index.js +147 -0
  150. package/es/components/wallet/components/UsageRules/index.less +157 -0
  151. package/es/components/wallet/components/WalletCard.js +8 -3
  152. package/es/components/wallet/components/index.d.ts +1 -0
  153. package/es/components/wallet/components/index.js +2 -1
  154. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  155. package/es/components/wallet/model.d.ts +1 -9
  156. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  157. package/es/plus/saasCreateOrganization/index.d.ts +1 -0
  158. package/es/utils/index.d.ts +1 -1
  159. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  160. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  161. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  162. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  163. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +22 -2
  164. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  165. package/lib/components/appointmentBooking/components/Content/index.js +2 -2
  166. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  167. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  168. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  169. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  170. package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
  171. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  172. package/lib/components/appointmentBooking/hooks.js +4 -2
  173. package/lib/components/appointmentBooking/index.d.ts +1 -0
  174. package/lib/components/appointmentBooking/index.js +6 -0
  175. package/lib/components/booking/addons/model.d.ts +1 -10
  176. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  177. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  178. package/lib/components/booking/components/footer/index.d.ts +1 -0
  179. package/lib/components/booking/components/voucher/index.js +3 -1
  180. package/lib/components/booking/deposit/index.d.ts +1 -0
  181. package/lib/components/booking/forms/model.d.ts +1 -10
  182. package/lib/components/booking/forms/single/index.d.ts +1 -0
  183. package/lib/components/booking/hooks/useQuotation.d.ts +1 -0
  184. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  185. package/lib/components/booking/info/header/index.d.ts +1 -0
  186. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  187. package/lib/components/booking/info/index.d.ts +1 -0
  188. package/lib/components/booking/info/model.d.ts +1 -10
  189. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  190. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  191. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  192. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  193. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  194. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  195. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  196. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  197. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  198. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  199. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  200. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  201. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  202. package/lib/components/booking/model.d.ts +1 -9
  203. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  204. package/lib/components/booking/notes/model.d.ts +1 -10
  205. package/lib/components/booking/payments/model.d.ts +1 -10
  206. package/lib/components/booking/utils.d.ts +2 -2
  207. package/lib/components/eftpos/form/index.d.ts +1 -0
  208. package/lib/components/eftpos/hooks.d.ts +1 -0
  209. package/lib/components/eftpos/index.d.ts +1 -0
  210. package/lib/components/eftpos/pos.d.ts +1 -0
  211. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  212. package/lib/components/eftposPay/amount.d.ts +2 -1
  213. package/lib/components/eftposPay/app.d.ts +1 -0
  214. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  215. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  216. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  217. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  218. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  219. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  220. package/lib/components/eftposPay/device.d.ts +2 -1
  221. package/lib/components/eftposPay/hooks.d.ts +2 -2
  222. package/lib/components/eftposPay/index.d.ts +1 -0
  223. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  224. package/lib/components/eftposPay/pay.d.ts +1 -0
  225. package/lib/components/eftposPay/store/index.d.ts +4 -4
  226. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  227. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +30 -8
  228. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  229. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  230. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  231. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  232. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  233. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  234. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  235. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  236. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  237. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  238. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  239. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  240. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  241. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  242. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  243. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  244. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  245. package/lib/components/eventBooking/index.d.ts +1 -0
  246. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  247. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  248. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  249. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  250. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  251. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  252. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  253. package/lib/components/pay/toC/model.d.ts +1 -9
  254. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  255. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  256. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  257. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  258. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  259. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  260. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  261. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  262. package/lib/components/productExtension/index.d.ts +1 -0
  263. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  264. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  265. package/lib/components/ruleSetting/index.d.ts +1 -0
  266. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  267. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  268. package/lib/components/schedules/model.d.ts +1 -9
  269. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  270. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  271. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  272. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  273. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  274. package/lib/components/schedules/products/index.d.ts +1 -0
  275. package/lib/components/schedules/resources/index.d.ts +1 -0
  276. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  277. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  278. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  279. package/lib/components/schedules/schedules/index.d.ts +1 -0
  280. package/lib/components/schedules/utils.d.ts +1 -1
  281. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  282. package/lib/components/taxSelect/index.d.ts +1 -0
  283. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  284. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  285. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  286. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  287. package/lib/components/wallet/Detail/index.js +140 -8
  288. package/lib/components/wallet/Detail/locales.d.ts +51 -0
  289. package/lib/components/wallet/Detail/locales.js +57 -3
  290. package/lib/components/wallet/Detail/model.d.ts +1 -13
  291. package/lib/components/wallet/Detail/serve.js +6 -1
  292. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  293. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  294. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  295. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  296. package/lib/components/wallet/components/UsageRules/index.d.ts +23 -0
  297. package/lib/components/wallet/components/UsageRules/index.js +113 -0
  298. package/lib/components/wallet/components/UsageRules/index.less +157 -0
  299. package/lib/components/wallet/components/WalletCard.js +3 -1
  300. package/lib/components/wallet/components/index.d.ts +1 -0
  301. package/lib/components/wallet/components/index.js +3 -0
  302. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  303. package/lib/components/wallet/model.d.ts +1 -9
  304. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  305. package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
  306. package/lib/utils/index.d.ts +1 -1
  307. package/package.json +2 -2
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
2
3
  export * from './Sales';
3
4
  export default SalesModel;
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
30
  * @return {*}
31
31
  * @Author: xiangfeng.xue
32
32
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
3
4
  export default Total;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CartItem: ({ onNext }: any) => JSX.Element;
3
4
  export default CartItem;
@@ -7,7 +7,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
7
7
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
8
8
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
9
9
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
10
- import React, { forwardRef, useImperativeHandle, useEffect } from 'react';
10
+ import React, { forwardRef, useImperativeHandle, useEffect, useRef } from 'react';
11
11
  import { locales, isMobile } from '@pisell/utils';
12
12
  import useEngineContext from "../../../../hooks/useEngineContext";
13
13
  import { useAppointmentBookingContext } from "../../context";
@@ -18,9 +18,12 @@ import { getFormParams } from "./utils";
18
18
  import "./index.less";
19
19
  var ConfirmInformation = /*#__PURE__*/forwardRef(function (props, ref) {
20
20
  var _context$appHelper;
21
+ // 用于跟踪是否已经订阅了事件,避免重复订阅
22
+ var hasSubscribedRef = useRef(false);
21
23
  var context = useEngineContext();
22
24
  var config = (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.constants) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.config) || {};
23
25
  var utils = contextUtils();
26
+ var pubsub = context.appHelper.utils.pubsub;
24
27
  var _ref = useAppointmentBookingContext(),
25
28
  appointmentBooking = _ref.appointmentBooking,
26
29
  summary = _ref.summary,
@@ -252,15 +255,36 @@ var ConfirmInformation = /*#__PURE__*/forwardRef(function (props, ref) {
252
255
  return _ref4.apply(this, arguments);
253
256
  };
254
257
  }();
258
+ var handleSubmit = function handleSubmit() {
259
+ var _utils$businessUtils, _utils$businessUtils$;
260
+ // 如果用户是guest用户,下单时则拉起注册弹窗
261
+ if (utils !== null && utils !== void 0 && (_utils$businessUtils = utils.businessUtils) !== null && _utils$businessUtils !== void 0 && (_utils$businessUtils$ = _utils$businessUtils.isGuestUser) !== null && _utils$businessUtils$ !== void 0 && _utils$businessUtils$.call(_utils$businessUtils)) {
262
+ var _utils$businessUtils2, _utils$businessUtils3;
263
+ // 避免重复订阅
264
+ if (!hasSubscribedRef.current) {
265
+ pubsub.subscribe('bind.guest.user', handleNext);
266
+ hasSubscribedRef.current = true;
267
+ }
268
+ utils === null || utils === void 0 || (_utils$businessUtils2 = utils.businessUtils) === null || _utils$businessUtils2 === void 0 || (_utils$businessUtils3 = _utils$businessUtils2.openRegisterModal) === null || _utils$businessUtils3 === void 0 || _utils$businessUtils3.call(_utils$businessUtils2, true);
269
+ return;
270
+ }
271
+ handleNext();
272
+ };
273
+ useEffect(function () {
274
+ return function () {
275
+ pubsub.unsubscribe('bind.guest.user', handleNext);
276
+ hasSubscribedRef.current = false;
277
+ };
278
+ }, []);
255
279
  useImperativeHandle(ref, function () {
256
280
  return {
257
- next: handleNext
281
+ next: handleSubmit
258
282
  };
259
283
  });
260
284
  return /*#__PURE__*/React.createElement("div", {
261
285
  className: "appointment-confirm-information-wrap"
262
286
  }, isMobile() ? /*#__PURE__*/React.createElement(CartItem, {
263
- onNext: handleNext
287
+ onNext: handleSubmit
264
288
  }) : /*#__PURE__*/React.createElement("div", {
265
289
  className: "appointment-confirm-information-content"
266
290
  }, /*#__PURE__*/React.createElement("div", {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -87,7 +87,7 @@ var Layout = function Layout() {
87
87
  var pubsub = context.appHelper.utils.pubsub;
88
88
  useEffect(function () {
89
89
  var handleLoginSuccess = /*#__PURE__*/function () {
90
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
90
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
91
91
  var _utils$storage, user, currentUser, accountLists, meAccount;
92
92
  return _regeneratorRuntime().wrap(function _callee$(_context) {
93
93
  while (1) switch (_context.prev = _context.next) {
@@ -118,13 +118,13 @@ var Layout = function Layout() {
118
118
  }
119
119
  }, _callee);
120
120
  }));
121
- return function handleLoginSuccess() {
121
+ return function handleLoginSuccess(_x) {
122
122
  return _ref2.apply(this, arguments);
123
123
  };
124
124
  }();
125
125
  pubsub.subscribe('pisell1.login.success', handleLoginSuccess);
126
126
  return function () {
127
- pubsub.unsubscribe('pisell1.login.success');
127
+ pubsub.unsubscribe('pisell1.login.success', handleLoginSuccess);
128
128
  };
129
129
  }, []);
130
130
  useEffect(function () {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const DepositContent: (props: {
3
4
  isAgreeDepositPolicy: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../booking/components/voucher/index.less';
2
3
  import './index.less';
3
4
  declare const VoucherCard: (props: any) => JSX.Element;
@@ -136,13 +136,14 @@ var VoucherCard = function VoucherCard(props) {
136
136
  // // apply code
137
137
  var onScanCode = /*#__PURE__*/function () {
138
138
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
139
- var val;
139
+ var customerId, val;
140
140
  return _regeneratorRuntime().wrap(function _callee$(_context) {
141
141
  while (1) switch (_context.prev = _context.next) {
142
142
  case 0:
143
- _context.next = 2;
144
- return shopDiscount.scanCode(code);
145
- case 2:
143
+ customerId = currentUser.id;
144
+ _context.next = 3;
145
+ return shopDiscount.scanCode(code, customerId);
146
+ case 3:
146
147
  val = _context.sent;
147
148
  if (val !== null && val !== void 0 && val.isAvailable) {
148
149
  batchUpdateCart(val.productList);
@@ -152,7 +153,7 @@ var VoucherCard = function VoucherCard(props) {
152
153
  content: val.type === 'server' ? locales.getText('pisell2.text.goodpass.code-invalid') : locales.getText('pisell2.text.goodpass.code-invalid-cart')
153
154
  });
154
155
  }
155
- case 4:
156
+ case 5:
156
157
  case "end":
157
158
  return _context.stop();
158
159
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Deposit: (props: any) => JSX.Element;
3
4
  export default Deposit;
@@ -357,8 +357,10 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
357
357
  }
358
358
  // const accountLists = await appointmentBooking.getAccounts()
359
359
  pubsub = utils.pubsub;
360
- pubsub.once('pisell1.login.success', function () {
361
- checkHolder();
360
+ pubsub.once('pisell1.login.success', function (res) {
361
+ if (res === 'success') {
362
+ checkHolder();
363
+ }
362
364
  });
363
365
  return _context3.abrupt("return", openLoginModal({
364
366
  callback: function callback(status) {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AppointmentBooking: () => JSX.Element;
3
4
  export default AppointmentBooking;
@@ -24,6 +24,16 @@ var AppointmentBooking = function AppointmentBooking() {
24
24
  if (!data.length) {
25
25
  var currentUser = formatCurrentUser(utils);
26
26
  appointmentBooking.addAccounts([currentUser]);
27
+ } else if (data.length >= 1) {
28
+ var meAccount = data === null || data === void 0 ? void 0 : data.find(function (d) {
29
+ return !(d !== null && d !== void 0 && d.isGuest);
30
+ });
31
+ // 如果 length >= 1 找到非 guest 账号,检测这个账号是否跟 localStorage 里已登录的账号 id 一致
32
+ // 如果不一致的话,则setLoginAccount ls 里的账号
33
+ var _currentUser = formatCurrentUser(utils);
34
+ if (_currentUser && meAccount.id !== _currentUser.id) {
35
+ appointmentBooking.setLoginAccount(meAccount.id, _currentUser);
36
+ }
27
37
  }
28
38
  });
29
39
  }, []);
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface TabProductProps {
3
4
  list: any[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 底部
@@ -206,13 +206,16 @@ var VoucherCard = function VoucherCard(props) {
206
206
  // apply code
207
207
  var onScanCode = /*#__PURE__*/function () {
208
208
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
209
- var val;
209
+ var _state$client$value2;
210
+ var customerId, val;
210
211
  return _regeneratorRuntime().wrap(function _callee$(_context) {
211
212
  while (1) switch (_context.prev = _context.next) {
212
213
  case 0:
213
- _context.next = 2;
214
- return shopDiscount.scanCode(code);
215
- case 2:
214
+ //'7d1163c32c01f288'
215
+ customerId = (_state$client$value2 = state.client.value) === null || _state$client$value2 === void 0 ? void 0 : _state$client$value2.id;
216
+ _context.next = 3;
217
+ return shopDiscount.scanCode(code, customerId);
218
+ case 3:
216
219
  val = _context.sent;
217
220
  console.log(val);
218
221
  if (val !== null && val !== void 0 && val.isAvailable) {
@@ -223,7 +226,7 @@ var VoucherCard = function VoucherCard(props) {
223
226
  content: val.type === 'server' ? locales.getText('pisell2.text.goodpass.code-invalid') : locales.getText('pisell2.text.goodpass.code-invalid-cart')
224
227
  });
225
228
  }
226
- case 5:
229
+ case 6:
227
230
  case "end":
228
231
  return _context.stop();
229
232
  }
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: (props: any) => JSX.Element;
2
3
  export default Deposit;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 表单选择器
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const calculateTotalPrice: (data: any) => number;
2
3
  declare const useQuotation: (state: any, dispatch: any) => {
3
4
  dom: JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const header: ({ state, dispatch }: any) => JSX.Element;
3
4
  export default header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EditServiceRef } from "../service/editService";
2
3
  declare const useInfoHolder: (state: any, dispatch: any) => {
3
4
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InfoProps } from './main';
2
3
  declare const APP: (props: InfoProps) => JSX.Element;
3
4
  export default APP;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
2
3
  export default Lists;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import './index.less';
3
4
  interface AddServiceProps {
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const BookingList: ({ items }: {
2
3
  items: any[];
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, resourceItem, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
4
  export default ServiceItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
2
3
  export default Lists;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/addTimeModal/index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
4
  export default ServiceItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type ContactType = {
3
4
  country_calling_code: string;
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const AddNote: ({ value, onChange, wait, title, placeholder }: any) => JSX.Element;
3
4
  export default AddNote;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | "flexible" | {
168
+ }) => number | {
169
169
  type: string;
170
170
  value: number;
171
- };
171
+ } | "flexible";
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 递归循环表单数据
3
4
  * @Author: hongbing.wang
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos } from './const';
2
3
  /**
3
4
  * @title: tyro 设备连接
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos, DeviceStatus } from './const';
2
3
  import './index.less';
3
4
  interface PosProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DeviceProp } from "./const";
2
3
  interface PosProps {
3
4
  eftposName: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.css';
2
3
  /**
3
4
  * @title: 自定义组件设置
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from './const';
2
3
  /**
3
4
  * @title: 支付金额信息配置页
@@ -8,7 +9,7 @@ import { PosProps } from './const';
8
9
  */
9
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
11
  className?: string | undefined;
11
- onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
13
  [keys: string]: unknown;
13
14
  } | undefined, other?: any) => void) | undefined;
14
15
  onClose: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps, RouteType } from './const';
2
3
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
3
4
  action: RouteType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 断网(客户端)提示页
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 支付状态未知页面
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  import './index.less';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 取消签名确认页