@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
  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;
@@ -116,7 +116,7 @@ var index = () => {
116
116
  "stroke-linejoin": "round"
117
117
  }
118
118
  )
119
- )))), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
119
+ )))), /* @__PURE__ */ import_react.default.createElement("div", { className: "menu-wrapper" }, /* @__PURE__ */ import_react.default.createElement(
120
120
  import_materials.ConfigProvider,
121
121
  {
122
122
  theme: {
@@ -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;
@@ -42,6 +42,8 @@ var import_CashKeyboardSimple = __toESM(require("./CashKeyboardSimple"));
42
42
  var import_utils2 = require("../../utils");
43
43
  var import_index = require("./index.less");
44
44
  var import_decimal = __toESM(require("decimal.js"));
45
+ var import_materials2 = require("@pisell/materials");
46
+ var import_utils3 = require("@pisell/utils");
45
47
  var CashKeyboardIntact = (props) => {
46
48
  var _a, _b, _c;
47
49
  const {
@@ -232,56 +234,77 @@ var CashKeyboardIntact = (props) => {
232
234
  },
233
235
  /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-cash-keyboard-intact-container-top-label" }, mergedDisplayField.balanceDue.label),
234
236
  /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-cash-keyboard-intact-container-top-value" }, /* @__PURE__ */ import_react.default.createElement(
235
- import_materials.PisellText.Amount,
237
+ import_materials2.AutoResizeText,
236
238
  {
237
- value: originalValue || "",
238
- hideDecimalForWholeNumbers: false,
239
- precision: 2
240
- }
239
+ minFontSizePx: 10,
240
+ maxFontSizePx: 14,
241
+ fontSizePrecisionPx: 0.5
242
+ },
243
+ (0, import_utils3.formatAmountWithOptions)(originalValue || "", "", {
244
+ precision: 2,
245
+ hideDecimalForWholeNumbers: false
246
+ })
241
247
  ))
242
248
  ), ((_b = mergedDisplayField.cashReceived) == null ? void 0 : _b.visible) && /* @__PURE__ */ import_react.default.createElement(
243
- import_materials.VirtualInput,
249
+ "div",
244
250
  {
245
- showCursor: false,
246
- focused: true,
247
- wrapperStyle: {
251
+ style: {
248
252
  ...getGridStyle(1),
249
253
  padding: "6px 16px",
250
254
  borderRadius: "8px",
251
255
  backgroundColor: "white",
252
256
  boxShadow: "0px 1px 2px rgba(16, 24, 40, 0.06)",
253
257
  overflow: "hidden",
254
- maxWidth: 188
258
+ maxWidth: 188,
259
+ cursor: "pointer"
255
260
  },
256
- topContent: /* @__PURE__ */ import_react.default.createElement(
257
- "div",
258
- {
259
- style: {
260
- fontSize: "14px",
261
- color: "#667085"
262
- }
261
+ onClick: () => {
262
+ setIsShowModal(true);
263
+ }
264
+ },
265
+ /* @__PURE__ */ import_react.default.createElement(
266
+ import_materials.VirtualInput,
267
+ {
268
+ showCursor: false,
269
+ focused: true,
270
+ wrapperStyle: {
271
+ width: "100%"
263
272
  },
264
- mergedDisplayField.cashReceived.label
265
- ),
266
- value: internalValue ? /* @__PURE__ */ import_react.default.createElement(
267
- import_materials.PisellText.Amount,
268
- {
269
- value: internalValue,
270
- hideDecimalForWholeNumbers: false,
271
- precision: 2
273
+ topContent: /* @__PURE__ */ import_react.default.createElement(
274
+ "div",
275
+ {
276
+ style: {
277
+ fontSize: "14px",
278
+ color: "#667085"
279
+ }
280
+ },
281
+ mergedDisplayField.cashReceived.label
282
+ ),
283
+ value: internalValue ? /* @__PURE__ */ import_react.default.createElement(
284
+ import_materials2.AutoResizeText,
285
+ {
286
+ minFontSizePx: 10,
287
+ maxFontSizePx: 14,
288
+ fontSizePrecisionPx: 0.5
289
+ },
290
+ (0, import_utils3.formatAmountWithOptions)(internalValue || "", "", {
291
+ value: internalValue,
292
+ hideDecimalForWholeNumbers: false,
293
+ precision: 2
294
+ })
295
+ ) : "",
296
+ height: 30,
297
+ fontSize: 20,
298
+ placeholder,
299
+ style: {
300
+ fontSize: "24px",
301
+ fontWeight: "bold",
302
+ border: "none",
303
+ background: "transparent",
304
+ width: "100%"
272
305
  }
273
- ) : "",
274
- height: 30,
275
- fontSize: 20,
276
- placeholder,
277
- style: {
278
- fontSize: "24px",
279
- fontWeight: "bold",
280
- border: "none",
281
- background: "transparent",
282
- width: "100%"
283
306
  }
284
- }
307
+ )
285
308
  ), ((_c = mergedDisplayField.changeDue) == null ? void 0 : _c.visible) && /* @__PURE__ */ import_react.default.createElement(
286
309
  "div",
287
310
  {
@@ -290,12 +313,17 @@ var CashKeyboardIntact = (props) => {
290
313
  },
291
314
  /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-cash-keyboard-intact-container-top-label" }, mergedDisplayField.changeDue.label),
292
315
  /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-cash-keyboard-intact-container-top-value" }, /* @__PURE__ */ import_react.default.createElement(
293
- import_materials.PisellText.Amount,
316
+ import_materials2.AutoResizeText,
294
317
  {
318
+ minFontSizePx: 10,
319
+ maxFontSizePx: 14,
320
+ fontSizePrecisionPx: 0.5
321
+ },
322
+ (0, import_utils3.formatAmountWithOptions)(hiddenChangeDue ? 0 : changeDue, "", {
295
323
  value: hiddenChangeDue ? 0 : changeDue,
296
324
  hideDecimalForWholeNumbers: false,
297
325
  precision: 2
298
- }
326
+ })
299
327
  ))
300
328
  )), /* @__PURE__ */ import_react.default.createElement(
301
329
  import_shortcuts.default,
@@ -44,6 +44,11 @@ var import_utils2 = require("../../utils");
44
44
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
45
45
  var import_locales = __toESM(require("./locales"));
46
46
  var import_index = require("./index.less");
47
+ var TIP_COLORS = {
48
+ positive: "#CA8504",
49
+ negative: "#1570EF",
50
+ overflow: "#D92D20"
51
+ };
47
52
  var DiscountKeyboardBase = (props) => {
48
53
  var _a, _b, _c, _d, _e, _f, _g;
49
54
  const {
@@ -117,10 +122,16 @@ var DiscountKeyboardBase = (props) => {
117
122
  }
118
123
  return discountAmount2.toNumber();
119
124
  }, [updateMode, discountMode, internalValue, discountValue, originalValue]);
120
- const isDiscountError = (0, import_react.useMemo)(() => {
121
- const _discountAmount = new import_decimal.default(discountAmount || 0);
122
- return _discountAmount.lessThan(0) || _discountAmount.greaterThan(new import_decimal.default(originalValue || 0));
123
- }, [discountAmount, originalValue]);
125
+ const isDiscountOverflow = (0, import_react.useMemo)(() => {
126
+ const _original = new import_decimal.default(originalValue || 0);
127
+ if (updateMode === "priceOverride") {
128
+ return new import_decimal.default(internalValue || 0).greaterThan(_original);
129
+ }
130
+ if (discountMode === "amount") {
131
+ return new import_decimal.default(discountValue || 0).greaterThan(_original);
132
+ }
133
+ return false;
134
+ }, [updateMode, discountMode, internalValue, discountValue, originalValue]);
124
135
  const payableAmount = (0, import_react.useMemo)(() => {
125
136
  return new import_decimal.default(originalValue || 0).minus(discountAmount).toNumber();
126
137
  }, [originalValue, discountAmount]);
@@ -129,7 +140,7 @@ var DiscountKeyboardBase = (props) => {
129
140
  onEnter == null ? void 0 : onEnter(String(discountAmount));
130
141
  return;
131
142
  }
132
- if (isDiscountError) {
143
+ if (isDiscountOverflow) {
133
144
  return;
134
145
  }
135
146
  onEnter == null ? void 0 : onEnter(String(discountAmount));
@@ -149,7 +160,9 @@ var DiscountKeyboardBase = (props) => {
149
160
  const rightItems = (0, import_rightItems.default)({
150
161
  rightItemsStyle: {
151
162
  doneButtonStyle: {
152
- boxShadow: "0px 0px 1px #898A8D"
163
+ boxShadow: "0px 0px 1px #898A8D",
164
+ cursor: updateMode !== "priceOverride" && isDiscountOverflow ? "not-allowed" : void 0,
165
+ backgroundColor: updateMode !== "priceOverride" && isDiscountOverflow ? "#D0D5DD" : void 0
153
166
  }
154
167
  },
155
168
  doneText: doneText || import_utils.locales.getText("discount-keyboard-done"),
@@ -176,14 +189,35 @@ var DiscountKeyboardBase = (props) => {
176
189
  }
177
190
  }, [amountSymbol, updateMode, discountMode]);
178
191
  const renderBottomContent = () => {
179
- const style = {
180
- color: isDiscountError ? "#D92D20" : "#079455"
181
- };
182
- const sign = new import_decimal.default(discountAmount).greaterThan(0) ? "+" : new import_decimal.default(discountAmount).lessThan(0) ? "-" : "";
183
- const _maxDiscount = /* @__PURE__ */ import_react.default.createElement(
192
+ if (new import_decimal.default(discountAmount).equals(0)) {
193
+ return /* @__PURE__ */ import_react.default.createElement("div", null, " ");
194
+ }
195
+ if (updateMode === "priceOverride" || discountMode === "percentage") {
196
+ let color;
197
+ let sign = "";
198
+ if (new import_decimal.default(discountAmount).greaterThan(0)) {
199
+ color = TIP_COLORS.negative;
200
+ sign = "-";
201
+ } else {
202
+ sign = "+";
203
+ color = TIP_COLORS.positive;
204
+ }
205
+ const style = {
206
+ color
207
+ };
208
+ return /* @__PURE__ */ import_react.default.createElement("div", { style, className: "ellipsis" }, /* @__PURE__ */ import_react.default.createElement("span", null, sign, /* @__PURE__ */ import_react.default.createElement(
209
+ import_materials.PisellText.Amount,
210
+ {
211
+ hideDecimalForWholeNumbers: false,
212
+ precision: 2,
213
+ value: Math.abs(discountAmount)
214
+ }
215
+ )));
216
+ }
217
+ return /* @__PURE__ */ import_react.default.createElement(
184
218
  "div",
185
219
  {
186
- style: isDiscountError && !isFirstInput ? style : {},
220
+ style: { color: isDiscountOverflow ? TIP_COLORS.overflow : "" },
187
221
  className: "ellipsis"
188
222
  },
189
223
  import_utils.locales.getText("discount-keyboard-max-discount"),
@@ -198,27 +232,9 @@ var DiscountKeyboardBase = (props) => {
198
232
  }
199
233
  )
200
234
  );
201
- const _discountText = /* @__PURE__ */ import_react.default.createElement("div", { style, className: "ellipsis" }, import_utils.locales.getText("discount-keyboard-discount-amount"), ":", " ", /* @__PURE__ */ import_react.default.createElement("span", null, sign, /* @__PURE__ */ import_react.default.createElement(
202
- import_materials.PisellText.Amount,
203
- {
204
- hideDecimalForWholeNumbers: false,
205
- precision: 2,
206
- value: Math.abs(discountAmount)
207
- }
208
- )));
209
- if (updateMode === "priceOverride") {
210
- if (isFirstInput) {
211
- return _maxDiscount;
212
- } else {
213
- return _discountText;
214
- }
215
- }
216
- if (updateMode === "discount" && discountMode === "amount") {
217
- return _maxDiscount;
218
- }
219
- return _discountText;
220
235
  };
221
236
  const customDisplay = () => {
237
+ const _color = updateMode === "discount" && discountMode === "amount" && isDiscountOverflow ? TIP_COLORS.overflow : void 0;
222
238
  return /* @__PURE__ */ import_react.default.createElement(
223
239
  "div",
224
240
  {
@@ -240,6 +256,9 @@ var DiscountKeyboardBase = (props) => {
240
256
  flex: "2",
241
257
  overflow: "hidden"
242
258
  },
259
+ style: {
260
+ color: _color
261
+ },
243
262
  placeholder,
244
263
  bottomContent: renderBottomContent()
245
264
  }
@@ -313,7 +332,7 @@ var DiscountKeyboardBase = (props) => {
313
332
  "div",
314
333
  {
315
334
  style: {
316
- color: isDiscountError ? "#f56565" : "#475467",
335
+ color: "#475467",
317
336
  fontSize: 14,
318
337
  fontWeight: 700,
319
338
  wordWrap: "break-word"
@@ -29,7 +29,7 @@ var locales_default = {
29
29
  "discount-keyboard-discount": "Discount",
30
30
  "discount-keyboard-amount": "Amount",
31
31
  "discount-keyboard-percentage": "Percentage",
32
- "discount-keyboard-max-discount": "Max Discount",
32
+ "discount-keyboard-max-discount": "Max",
33
33
  "discount-keyboard-discount-amount": "Discount Amount",
34
34
  "discount-keyboard-total": "Total",
35
35
  "discount-keyboard-payable": "Payable",
@@ -43,7 +43,7 @@ var locales_default = {
43
43
  "discount-keyboard-discount": "折扣",
44
44
  "discount-keyboard-amount": "金额",
45
45
  "discount-keyboard-percentage": "百分比",
46
- "discount-keyboard-max-discount": "最高折扣",
46
+ "discount-keyboard-max-discount": "最高",
47
47
  "discount-keyboard-discount-amount": "折扣金额",
48
48
  "discount-keyboard-total": "待支付金额",
49
49
  "discount-keyboard-payable": "需支付金额",
@@ -57,7 +57,7 @@ var locales_default = {
57
57
  "discount-keyboard-discount": "折扣",
58
58
  "discount-keyboard-amount": "金額",
59
59
  "discount-keyboard-percentage": "百分比",
60
- "discount-keyboard-max-discount": "最高折扣",
60
+ "discount-keyboard-max-discount": "最高",
61
61
  "discount-keyboard-discount-amount": "折扣金額",
62
62
  "discount-keyboard-total": "待支付金額",
63
63
  "discount-keyboard-payable": "需支付金額",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PaymentKeyboardBaseProps } from './types';
3
2
  import './index.less';
4
3
  interface PaymentKeyboardProps extends PaymentKeyboardBaseProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const useRightItems: (props: {
3
2
  rightItemsStyle?: any;
4
3
  doneText?: string;
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.4.45",
3
+ "version": "6.4.47",
4
+ "scripts": {
5
+ "dev": "father dev",
6
+ "build": "father build",
7
+ "lowcode:dev": "build-scripts start --config ./build.lowcode.js",
8
+ "lowcode:build": " build-scripts build --config ./build.lowcode.js"
9
+ },
4
10
  "main": "./lib/index.js",
5
11
  "module": "./es/index.js",
6
12
  "types": "./lib/index.d.ts",
@@ -50,6 +56,10 @@
50
56
  "@dnd-kit/modifiers": "^6.0.1",
51
57
  "@dnd-kit/sortable": "^7.0.2",
52
58
  "@dnd-kit/utilities": "^3.2.1",
59
+ "@pisell/date-picker": "workspace:*",
60
+ "@pisell/icon": "workspace:*",
61
+ "@pisell/materials": "workspace:*",
62
+ "@pisell/utils": "workspace:*",
53
63
  "ahooks": "^3.7.6",
54
64
  "antd": "^5.6.3",
55
65
  "classnames": "^2.3.2",
@@ -58,11 +68,7 @@
58
68
  "rc-virtual-list": "^3.11.3",
59
69
  "react-infinite-scroll-component": "^6.1.0",
60
70
  "react-resizable": "^3.0.5",
61
- "styled-components": "^6.0.0-rc.3",
62
- "@pisell/date-picker": "3.0.7",
63
- "@pisell/icon": "0.0.11",
64
- "@pisell/materials": "6.4.9",
65
- "@pisell/utils": "3.0.2"
71
+ "styled-components": "^6.0.0-rc.3"
66
72
  },
67
73
  "peerDependencies": {
68
74
  "react": "^18.0.0",
@@ -70,11 +76,5 @@
70
76
  },
71
77
  "componentConfig": {
72
78
  "materialSchema": "https://unpkg.com/@pisell/materials@1.0.1/build/lowcode/assets-prod.json"
73
- },
74
- "scripts": {
75
- "dev": "father dev",
76
- "build": "father build",
77
- "lowcode:dev": "build-scripts start --config ./build.lowcode.js",
78
- "lowcode:build": " build-scripts build --config ./build.lowcode.js"
79
79
  }
80
80
  }