@pisell/private-materials 6.4.45 → 6.4.47

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 (249) 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 +146 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +1 -1
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +3 -3
  11. package/es/components/Sales/Summary/utils.d.ts +1 -1
  12. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
  16. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  17. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  18. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  19. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  20. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  21. package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
  22. package/es/components/appointmentBooking/index.d.ts +0 -1
  23. package/es/components/booking/addons/model.d.ts +1 -10
  24. package/es/components/booking/components/footer/amount.js +0 -1
  25. package/es/components/booking/components/footer/index.d.ts +0 -1
  26. package/es/components/booking/components/footer/index.js +22 -13
  27. package/es/components/booking/components/voucher/index.d.ts +0 -1
  28. package/es/components/booking/forms/footer.d.ts +0 -1
  29. package/es/components/booking/forms/model.d.ts +1 -10
  30. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  31. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  32. package/es/components/booking/hooks/useQuotation.d.ts +0 -1
  33. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  34. package/es/components/booking/info/model.d.ts +1 -10
  35. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  36. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  37. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  38. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  39. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
  40. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  41. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  42. package/es/components/booking/model.d.ts +1 -9
  43. package/es/components/booking/notes/model.d.ts +1 -10
  44. package/es/components/booking/payments/model.d.ts +1 -10
  45. package/es/components/booking/utils.js +10 -5
  46. package/es/components/checkout/PaymentModal.js +68 -24
  47. package/es/components/checkout/components/AdditionalModule/index.less +1 -1
  48. package/es/components/checkout/components/AmountSummary/index.js +18 -14
  49. package/es/components/checkout/components/AmountSummary/index.less +13 -0
  50. package/es/components/checkout/components/CashPaymentModule/index.js +4 -2
  51. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +48 -44
  52. package/es/components/checkout/components/PaymentOptionsModule/index.less +0 -6
  53. package/es/components/checkout/components/PaymentResultToast/index.js +38 -8
  54. package/es/components/checkout/components/PaymentResultToast/types.d.ts +2 -0
  55. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
  56. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  57. package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
  58. package/es/components/checkout/components/WalletPassModule/utils.js +6 -5
  59. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  60. package/es/components/checkout/hooks/useWalletPass.js +9 -4
  61. package/es/components/checkout/locales.d.ts +3 -0
  62. package/es/components/checkout/locales.js +4 -1
  63. package/es/components/eftposPay/amount.d.ts +1 -1
  64. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  65. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  66. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  67. package/es/components/eftposPay/device.d.ts +1 -1
  68. package/es/components/eftposPay/hooks.d.ts +1 -1
  69. package/es/components/eftposPay/index.d.ts +0 -1
  70. package/es/components/eftposPay/pay.d.ts +0 -1
  71. package/es/components/eftposPay/store/index.d.ts +4 -4
  72. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  73. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  74. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  75. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  76. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  77. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  78. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  79. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  80. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  81. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  82. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  83. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  84. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  85. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  86. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  87. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  88. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  89. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  90. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  91. package/es/components/pay/toB/components/Cache/index.d.ts +0 -1
  92. package/es/components/pay/toB/components/Card/index.d.ts +0 -1
  93. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -1
  94. package/es/components/pay/toB/components/Content/Footer.d.ts +0 -1
  95. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  96. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  97. package/es/components/pay/toC/model.d.ts +1 -9
  98. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  99. package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
  100. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
  101. package/es/components/ruleSetting/index.d.ts +0 -1
  102. package/es/components/schedules/model.d.ts +1 -9
  103. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
  104. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  105. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  106. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  107. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  108. package/es/components/ticketBooking/components/menuBar/index.js +3 -1
  109. package/es/components/ticketBooking/components/menuBar/index.less +7 -0
  110. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  111. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  112. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  113. package/es/components/wallet/Detail/model.d.ts +1 -13
  114. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  115. package/es/components/wallet/PointCard/model.d.ts +1 -13
  116. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  117. package/es/components/wallet/Voucher/model.d.ts +1 -13
  118. package/es/components/wallet/model.d.ts +1 -9
  119. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  120. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  121. package/es/plus/noteModal/AddTempModal.d.ts +0 -1
  122. package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  123. package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -1
  124. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +0 -1
  125. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +36 -15
  126. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +55 -32
  127. package/es/pro/priceKeyboard/components/discountKeyboard/locales.js +3 -3
  128. package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
  129. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
  130. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  131. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  132. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  133. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  134. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
  135. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  136. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  137. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  138. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  139. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  140. package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
  141. package/lib/components/appointmentBooking/index.d.ts +0 -1
  142. package/lib/components/booking/addons/model.d.ts +1 -10
  143. package/lib/components/booking/components/footer/amount.js +0 -1
  144. package/lib/components/booking/components/footer/index.d.ts +0 -1
  145. package/lib/components/booking/components/footer/index.js +8 -1
  146. package/lib/components/booking/components/voucher/index.d.ts +0 -1
  147. package/lib/components/booking/forms/footer.d.ts +0 -1
  148. package/lib/components/booking/forms/model.d.ts +1 -10
  149. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  150. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  151. package/lib/components/booking/hooks/useQuotation.d.ts +0 -1
  152. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  153. package/lib/components/booking/info/model.d.ts +1 -10
  154. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  155. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  156. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  157. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  158. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
  159. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  160. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  161. package/lib/components/booking/model.d.ts +1 -9
  162. package/lib/components/booking/notes/model.d.ts +1 -10
  163. package/lib/components/booking/payments/model.d.ts +1 -10
  164. package/lib/components/booking/utils.js +10 -5
  165. package/lib/components/checkout/PaymentModal.js +58 -20
  166. package/lib/components/checkout/components/AdditionalModule/index.less +1 -1
  167. package/lib/components/checkout/components/AmountSummary/index.js +7 -11
  168. package/lib/components/checkout/components/AmountSummary/index.less +13 -0
  169. package/lib/components/checkout/components/CashPaymentModule/index.js +3 -1
  170. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +47 -56
  171. package/lib/components/checkout/components/PaymentOptionsModule/index.less +0 -6
  172. package/lib/components/checkout/components/PaymentResultToast/index.js +26 -1
  173. package/lib/components/checkout/components/PaymentResultToast/types.d.ts +2 -0
  174. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
  175. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  176. package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
  177. package/lib/components/checkout/components/WalletPassModule/utils.js +5 -4
  178. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  179. package/lib/components/checkout/hooks/useWalletPass.js +9 -6
  180. package/lib/components/checkout/locales.d.ts +3 -0
  181. package/lib/components/checkout/locales.js +4 -1
  182. package/lib/components/eftposPay/amount.d.ts +1 -1
  183. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  184. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  185. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  186. package/lib/components/eftposPay/device.d.ts +1 -1
  187. package/lib/components/eftposPay/hooks.d.ts +1 -1
  188. package/lib/components/eftposPay/index.d.ts +0 -1
  189. package/lib/components/eftposPay/pay.d.ts +0 -1
  190. package/lib/components/eftposPay/store/index.d.ts +4 -4
  191. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  192. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  193. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  194. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  195. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  196. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  197. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  198. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  199. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  200. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  201. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  202. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  203. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  204. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  205. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  206. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  207. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  208. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  209. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  210. package/lib/components/pay/toB/components/Cache/index.d.ts +0 -1
  211. package/lib/components/pay/toB/components/Card/index.d.ts +0 -1
  212. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -1
  213. package/lib/components/pay/toB/components/Content/Footer.d.ts +0 -1
  214. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  215. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  216. package/lib/components/pay/toC/model.d.ts +1 -9
  217. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  218. package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
  219. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
  220. package/lib/components/ruleSetting/index.d.ts +0 -1
  221. package/lib/components/schedules/model.d.ts +1 -9
  222. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
  223. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  224. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  225. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  226. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  227. package/lib/components/ticketBooking/components/menuBar/index.js +1 -1
  228. package/lib/components/ticketBooking/components/menuBar/index.less +7 -0
  229. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  230. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  231. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  232. package/lib/components/wallet/Detail/model.d.ts +1 -13
  233. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  234. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  235. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  236. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  237. package/lib/components/wallet/model.d.ts +1 -9
  238. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  239. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  240. package/lib/plus/noteModal/AddTempModal.d.ts +0 -1
  241. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  242. package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -1
  243. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +0 -1
  244. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +66 -38
  245. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +51 -32
  246. package/lib/pro/priceKeyboard/components/discountKeyboard/locales.js +3 -3
  247. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
  248. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
  249. package/package.json +12 -12
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const InformationOptionsModal: (props: any) => JSX.Element;
4
3
  export default InformationOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const OrderProductModal: (props: any) => JSX.Element;
4
3
  export default OrderProductModal;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const RemoveOptionConfirmModal: (props: any) => JSX.Element;
3
2
  export default RemoveOptionConfirmModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Resource: () => JSX.Element;
4
3
  export default Resource;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CallToBookProps = {
4
3
  show: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WeekItem: (props: any) => JSX.Element;
4
3
  export default WeekItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CalenDateWeekProps = {
4
3
  currentDate: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingOptions: (props: {
3
2
  onChangeBookingOption?: ((bookingOption: any) => void) | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from '../../type';
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ScheduleTimeItem: ({ timeList }: any) => JSX.Element;
4
3
  export default ScheduleTimeItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ToBPayCache: (props: {
4
3
  open: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PayMethod } from '../../types';
3
2
  import './index.less';
4
3
  declare const ToBPayCard: ({ data, onChange, }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Payment } from '../../types';
3
2
  import './index.less';
4
3
  declare const ConfirmedPayment: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const ToBPayFooter: (props: {
3
2
  loading: boolean;
4
3
  submitDisabled: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
4
3
  export default SetupForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
3
2
  import './index.less';
4
3
  interface WalletUseListProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -29,11 +28,4 @@ export interface PayGroup {
29
28
  pay_number?: string;
30
29
  _order: any;
31
30
  }
32
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
33
- state: FormState;
34
- } & {
35
- dispatch: (params: {
36
- type: string;
37
- payload: any;
38
- }) => void;
39
- }>;
31
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface CustomerListProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PopoverProps } from 'antd';
3
2
  import { CustomerCardProps } from './CustomerCard';
4
3
  import './index.less';
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TabProduct: (props: any) => JSX.Element;
3
2
  export default TabProduct;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface RuleSettingProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
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
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: () => JSX.Element;
4
3
  export default Cart;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useAddService: (id?: number, type?: string) => JSX.Element | null;
3
2
  export default useAddService;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useClearCart: (key?: number | undefined) => JSX.Element | null;
3
2
  export default useClearCart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface AddServiceProps {
4
3
  onEdit?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const index: () => JSX.Element;
4
3
  export default index;
@@ -72,7 +72,9 @@ var index = function index() {
72
72
  "stroke-width": "1.5",
73
73
  "stroke-linecap": "round",
74
74
  "stroke-linejoin": "round"
75
- }))))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ConfigProvider, {
75
+ }))))), /*#__PURE__*/React.createElement("div", {
76
+ className: "menu-wrapper"
77
+ }, /*#__PURE__*/React.createElement(ConfigProvider, {
76
78
  theme: {
77
79
  components: {
78
80
  Menu: {
@@ -88,4 +88,11 @@
88
88
  background: #3f9e4d;
89
89
  }
90
90
  }
91
+
92
+ .menu-wrapper {
93
+ position: fixed;
94
+ bottom: 44px;
95
+ left: 6px;
96
+ z-index: 99999;
97
+ }
91
98
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const _formatBookingDetail: (data: any, modalState: any) => any;
4
3
  declare const TicketBooking: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { Dayjs } from 'dayjs';
3
2
  import './index.less';
4
3
  interface ITimeBarProps {
@@ -41,7 +41,7 @@ declare type ScanData = {
41
41
  };
42
42
  };
43
43
  export declare const formatScanCustomer: (data: ScanData) => {
44
- searchType: "wallet" | "walletPass" | "product" | "customer" | "local_product";
44
+ searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
45
45
  data: any;
46
46
  scanCode: string;
47
47
  } | null;
@@ -1,13 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -1,14 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -1,29 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from './serve';
3
2
  export interface WalletCardItemProps {
4
3
  id: string;
@@ -27,11 +26,4 @@ export interface WalletListProps {
27
26
  currentSearchListItemCode?: string;
28
27
  [key: string]: any;
29
28
  }
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
- }>;
29
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
3
2
  import './index.less';
4
3
  interface ModalProps extends AntModalProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './../../index.less';
3
2
  declare const Search: () => JSX.Element;
4
3
  export default Search;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AddTempModal: ({ open, onCancel, onConfirm, }: {
4
3
  open: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../index.less';
3
2
  declare const VertifyEmail: (props: {
4
3
  email: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PopoverProps } from 'antd';
3
2
  import './index.less';
4
3
  interface PisellPhoneKeyboardProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CashKeyboardBaseProps } from './types';
3
2
  import './index.less';
4
3
  declare const CashKeyboardIntact: (props: CashKeyboardBaseProps) => JSX.Element;
@@ -21,12 +21,14 @@ import { useControllableValue } from 'ahooks';
21
21
  import { merge, omit } from 'lodash';
22
22
  //@ts-ignore
23
23
  import { locales } from '@pisell/utils';
24
- import { PisellText, VirtualInput } from '@pisell/materials';
24
+ import { VirtualInput } from '@pisell/materials';
25
25
  import Shortcuts from "../shortcuts";
26
26
  import CashKeyboardSimple from "./CashKeyboardSimple";
27
27
  import { setKeyboardTheme } from "../../utils";
28
28
  import "./index.less";
29
29
  import Decimal from 'decimal.js';
30
+ import { AutoResizeText } from '@pisell/materials';
31
+ import { formatAmountWithOptions } from '@pisell/utils';
30
32
  var CashKeyboardIntact = function CashKeyboardIntact(props) {
31
33
  var _mergedDisplayField$b, _mergedDisplayField$c, _mergedDisplayField$c2;
32
34
  var amountSymbol = props.amountSymbol,
@@ -230,32 +232,47 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
230
232
  className: "pisell-cash-keyboard-intact-container-top-label"
231
233
  }, mergedDisplayField.balanceDue.label), /*#__PURE__*/React.createElement("div", {
232
234
  className: "pisell-cash-keyboard-intact-container-top-value"
233
- }, /*#__PURE__*/React.createElement(PisellText.Amount, {
234
- value: originalValue || '',
235
- hideDecimalForWholeNumbers: false,
236
- precision: 2
237
- }))), ((_mergedDisplayField$c = mergedDisplayField.cashReceived) === null || _mergedDisplayField$c === void 0 ? void 0 : _mergedDisplayField$c.visible) && /*#__PURE__*/React.createElement(VirtualInput, {
238
- showCursor: false,
239
- focused: true,
240
- wrapperStyle: _objectSpread(_objectSpread({}, getGridStyle(1)), {}, {
235
+ }, /*#__PURE__*/React.createElement(AutoResizeText, {
236
+ minFontSizePx: 10,
237
+ maxFontSizePx: 14,
238
+ fontSizePrecisionPx: 0.5
239
+ }, formatAmountWithOptions(originalValue || '', '', {
240
+ precision: 2,
241
+ hideDecimalForWholeNumbers: false
242
+ })))), ((_mergedDisplayField$c = mergedDisplayField.cashReceived) === null || _mergedDisplayField$c === void 0 ? void 0 : _mergedDisplayField$c.visible) && /*#__PURE__*/React.createElement("div", {
243
+ style: _objectSpread(_objectSpread({}, getGridStyle(1)), {}, {
241
244
  padding: '6px 16px',
242
245
  borderRadius: '8px',
243
246
  backgroundColor: 'white',
244
247
  boxShadow: '0px 1px 2px rgba(16, 24, 40, 0.06)',
245
248
  overflow: 'hidden',
246
- maxWidth: 188
249
+ maxWidth: 188,
250
+ cursor: 'pointer'
247
251
  }),
252
+ onClick: function onClick() {
253
+ setIsShowModal(true);
254
+ }
255
+ }, /*#__PURE__*/React.createElement(VirtualInput, {
256
+ showCursor: false,
257
+ focused: true,
258
+ wrapperStyle: {
259
+ width: '100%'
260
+ },
248
261
  topContent: /*#__PURE__*/React.createElement("div", {
249
262
  style: {
250
263
  fontSize: '14px',
251
264
  color: '#667085'
252
265
  }
253
266
  }, mergedDisplayField.cashReceived.label),
254
- value: internalValue ? /*#__PURE__*/React.createElement(PisellText.Amount, {
267
+ value: internalValue ? /*#__PURE__*/React.createElement(AutoResizeText, {
268
+ minFontSizePx: 10,
269
+ maxFontSizePx: 14,
270
+ fontSizePrecisionPx: 0.5
271
+ }, formatAmountWithOptions(internalValue || '', '', {
255
272
  value: internalValue,
256
273
  hideDecimalForWholeNumbers: false,
257
274
  precision: 2
258
- }) : '',
275
+ })) : '',
259
276
  height: 30,
260
277
  fontSize: 20,
261
278
  placeholder: placeholder,
@@ -266,7 +283,7 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
266
283
  background: 'transparent',
267
284
  width: '100%'
268
285
  }
269
- }), ((_mergedDisplayField$c2 = mergedDisplayField.changeDue) === null || _mergedDisplayField$c2 === void 0 ? void 0 : _mergedDisplayField$c2.visible) && /*#__PURE__*/React.createElement("div", {
286
+ })), ((_mergedDisplayField$c2 = mergedDisplayField.changeDue) === null || _mergedDisplayField$c2 === void 0 ? void 0 : _mergedDisplayField$c2.visible) && /*#__PURE__*/React.createElement("div", {
270
287
  className: "pisell-cash-keyboard-intact-container-top",
271
288
  style: _objectSpread(_objectSpread({}, getGridStyle(2)), {}, {
272
289
  overflow: 'hidden'
@@ -275,11 +292,15 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
275
292
  className: "pisell-cash-keyboard-intact-container-top-label"
276
293
  }, mergedDisplayField.changeDue.label), /*#__PURE__*/React.createElement("div", {
277
294
  className: "pisell-cash-keyboard-intact-container-top-value"
278
- }, /*#__PURE__*/React.createElement(PisellText.Amount, {
295
+ }, /*#__PURE__*/React.createElement(AutoResizeText, {
296
+ minFontSizePx: 10,
297
+ maxFontSizePx: 14,
298
+ fontSizePrecisionPx: 0.5
299
+ }, formatAmountWithOptions(hiddenChangeDue ? 0 : changeDue, '', {
279
300
  value: hiddenChangeDue ? 0 : changeDue,
280
301
  hideDecimalForWholeNumbers: false,
281
302
  precision: 2
282
- })))), /*#__PURE__*/React.createElement(Shortcuts, {
303
+ }))))), /*#__PURE__*/React.createElement(Shortcuts, {
283
304
  presets: getDefaultPresets(),
284
305
  onChange: setInternalValue,
285
306
  disabled: disabled
@@ -29,6 +29,11 @@ import { setKeyboardTheme } from "../../utils";
29
29
  import useEngineContext from "../../../../hooks/useEngineContext";
30
30
  import localeTexts from "./locales";
31
31
  import "./index.less";
32
+ var TIP_COLORS = {
33
+ positive: '#CA8504',
34
+ negative: '#1570EF',
35
+ overflow: '#D92D20'
36
+ };
32
37
 
33
38
  /**
34
39
  * originalValue: 当前订单原始值
@@ -120,10 +125,16 @@ var DiscountKeyboardBase = function DiscountKeyboardBase(props) {
120
125
  }
121
126
  return discountAmount.toNumber();
122
127
  }, [updateMode, discountMode, internalValue, discountValue, originalValue]);
123
- var isDiscountError = useMemo(function () {
124
- var _discountAmount = new Decimal(discountAmount || 0);
125
- return _discountAmount.lessThan(0) || _discountAmount.greaterThan(new Decimal(originalValue || 0));
126
- }, [discountAmount, originalValue]);
128
+ var isDiscountOverflow = useMemo(function () {
129
+ var _original = new Decimal(originalValue || 0);
130
+ if (updateMode === 'priceOverride') {
131
+ return new Decimal(internalValue || 0).greaterThan(_original);
132
+ }
133
+ if (discountMode === 'amount') {
134
+ return new Decimal(discountValue || 0).greaterThan(_original);
135
+ }
136
+ return false;
137
+ }, [updateMode, discountMode, internalValue, discountValue, originalValue]);
127
138
  var payableAmount = useMemo(function () {
128
139
  return new Decimal(originalValue || 0).minus(discountAmount).toNumber();
129
140
  }, [originalValue, discountAmount]);
@@ -134,7 +145,7 @@ var DiscountKeyboardBase = function DiscountKeyboardBase(props) {
134
145
  return;
135
146
  }
136
147
  // 折扣模式、或一口价有限额,则进行折扣值的校验
137
- if (isDiscountError) {
148
+ if (isDiscountOverflow) {
138
149
  return;
139
150
  }
140
151
  onEnter === null || onEnter === void 0 || onEnter(String(discountAmount));
@@ -155,7 +166,9 @@ var DiscountKeyboardBase = function DiscountKeyboardBase(props) {
155
166
  var rightItems = useRightItems({
156
167
  rightItemsStyle: {
157
168
  doneButtonStyle: {
158
- boxShadow: '0px 0px 1px #898A8D'
169
+ boxShadow: '0px 0px 1px #898A8D',
170
+ cursor: updateMode !== 'priceOverride' && isDiscountOverflow ? 'not-allowed' : undefined,
171
+ backgroundColor: updateMode !== 'priceOverride' && isDiscountOverflow ? '#D0D5DD' : undefined
159
172
  }
160
173
  },
161
174
  doneText: doneText || locales.getText('discount-keyboard-done'),
@@ -182,39 +195,46 @@ var DiscountKeyboardBase = function DiscountKeyboardBase(props) {
182
195
  }
183
196
  }, [amountSymbol, updateMode, discountMode]);
184
197
  var renderBottomContent = function renderBottomContent() {
185
- var style = {
186
- color: isDiscountError ? '#D92D20' : '#079455'
187
- };
188
- var sign = new Decimal(discountAmount).greaterThan(0) ? '+' : new Decimal(discountAmount).lessThan(0) ? '-' : '';
189
- var _maxDiscount = /*#__PURE__*/React.createElement("div", {
190
- style: isDiscountError && !isFirstInput ? style : {},
198
+ // 没改价,则为空
199
+ if (new Decimal(discountAmount).equals(0)) {
200
+ return /*#__PURE__*/React.createElement("div", null, "\xA0");
201
+ }
202
+ if (updateMode === 'priceOverride' || discountMode === 'percentage') {
203
+ var color;
204
+ var sign = '';
205
+ // 折扣为正值, 展示为负
206
+ if (new Decimal(discountAmount).greaterThan(0)) {
207
+ color = TIP_COLORS.negative;
208
+ sign = '-';
209
+ } else {
210
+ sign = '+';
211
+ color = TIP_COLORS.positive;
212
+ }
213
+ var style = {
214
+ color: color
215
+ };
216
+ return /*#__PURE__*/React.createElement("div", {
217
+ style: style,
218
+ className: "ellipsis"
219
+ }, /*#__PURE__*/React.createElement("span", null, sign, /*#__PURE__*/React.createElement(PisellText.Amount, {
220
+ hideDecimalForWholeNumbers: false,
221
+ precision: 2,
222
+ value: Math.abs(discountAmount)
223
+ })));
224
+ }
225
+ return /*#__PURE__*/React.createElement("div", {
226
+ style: {
227
+ color: isDiscountOverflow ? TIP_COLORS.overflow : ''
228
+ },
191
229
  className: "ellipsis"
192
230
  }, locales.getText('discount-keyboard-max-discount'), ":", ' ', /*#__PURE__*/React.createElement(PisellText.Amount, {
193
231
  hideDecimalForWholeNumbers: false,
194
232
  precision: 2,
195
233
  value: originalValue
196
234
  }));
197
- var _discountText = /*#__PURE__*/React.createElement("div", {
198
- style: style,
199
- className: "ellipsis"
200
- }, locales.getText('discount-keyboard-discount-amount'), ":", ' ', /*#__PURE__*/React.createElement("span", null, sign, /*#__PURE__*/React.createElement(PisellText.Amount, {
201
- hideDecimalForWholeNumbers: false,
202
- precision: 2,
203
- value: Math.abs(discountAmount)
204
- })));
205
- if (updateMode === 'priceOverride') {
206
- if (isFirstInput) {
207
- return _maxDiscount;
208
- } else {
209
- return _discountText;
210
- }
211
- }
212
- if (updateMode === 'discount' && discountMode === 'amount') {
213
- return _maxDiscount;
214
- }
215
- return _discountText;
216
235
  };
217
236
  var customDisplay = function customDisplay() {
237
+ var _color = updateMode === 'discount' && discountMode === 'amount' && isDiscountOverflow ? TIP_COLORS.overflow : undefined;
218
238
  return /*#__PURE__*/React.createElement("div", {
219
239
  style: {
220
240
  display: 'flex',
@@ -231,6 +251,9 @@ var DiscountKeyboardBase = function DiscountKeyboardBase(props) {
231
251
  flex: '2',
232
252
  overflow: 'hidden'
233
253
  },
254
+ style: {
255
+ color: _color
256
+ },
234
257
  placeholder: placeholder,
235
258
  bottomContent: renderBottomContent()
236
259
  }), /*#__PURE__*/React.createElement("div", {
@@ -277,7 +300,7 @@ var DiscountKeyboardBase = function DiscountKeyboardBase(props) {
277
300
  }
278
301
  }, locales.getText('discount-keyboard-payable')), /*#__PURE__*/React.createElement("div", {
279
302
  style: {
280
- color: isDiscountError ? '#f56565' : '#475467',
303
+ color: '#475467',
281
304
  fontSize: 14,
282
305
  fontWeight: 700,
283
306
  wordWrap: 'break-word'