@pisell/private-materials 6.6.5 → 6.6.6

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 (411) 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 +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Services/index.js +25 -22
  14. package/es/components/appointmentBooking/components/Voucher/index.js +15 -1
  15. package/es/components/booking/addons/index.js +25 -17
  16. package/es/components/booking/components/actionButtons/index.js +3 -1
  17. package/es/components/booking/components/footer/amount.d.ts +1 -0
  18. package/es/components/booking/components/footer/amount.js +548 -84
  19. package/es/components/booking/components/footer/index.js +36 -33
  20. package/es/components/booking/components/footer/utils.d.ts +19 -0
  21. package/es/components/booking/components/footer/utils.js +166 -67
  22. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  23. package/es/components/booking/components/voucher/index.js +53 -15
  24. package/es/components/booking/forms/table/index.d.ts +0 -1
  25. package/es/components/booking/hooks/useQuotation.js +4 -1
  26. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  27. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  28. package/es/components/booking/info/service/like/index.d.ts +0 -1
  29. package/es/components/booking/info/service2/utils.js +1 -0
  30. package/es/components/booking/info2/cartClientCard/index.js +5 -3
  31. package/es/components/booking/info2/service/addService/index.js +9 -9
  32. package/es/components/booking/info2/service/editNormalService/index.js +6 -0
  33. package/es/components/booking/info2/service/editService/index.js +27 -17
  34. package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
  35. package/es/components/booking/info2/service/editService/utils.js +66 -0
  36. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  37. package/es/components/booking/utils.d.ts +1 -0
  38. package/es/components/booking/utils.js +15 -2
  39. package/es/components/checkout/components/AmountSummary/index.less +4 -5
  40. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  41. package/es/components/eftpos/form/index.d.ts +0 -1
  42. package/es/components/eftpos/group/index.d.ts +0 -1
  43. package/es/components/eftpos/hooks.d.ts +0 -1
  44. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  45. package/es/components/eftpos/icon/device.d.ts +0 -1
  46. package/es/components/eftpos/receipt/index.d.ts +0 -1
  47. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  48. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  49. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  50. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  51. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
  52. package/es/components/eftposPay/payo/config.d.ts +1 -0
  53. package/es/components/eftposPay/payo/config.js +70 -32
  54. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  55. package/es/components/eftposPay/payo/payment.js +579 -0
  56. package/es/components/eftposPay/store/index.d.ts +1 -1
  57. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  58. package/es/components/eftposPay/utils/log/index.d.ts +110 -0
  59. package/es/components/eftposPay/utils/log/index.js +371 -0
  60. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  61. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  62. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  63. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  64. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  65. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  66. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  67. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  68. package/es/components/index.d.ts +2 -2
  69. package/es/components/index.js +2 -2
  70. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
  71. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  72. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  73. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +2 -0
  74. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  75. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  76. package/es/components/pay/toC/index.js +7 -4
  77. package/es/components/pay/toC/locales.d.ts +3 -0
  78. package/es/components/pay/toC/locales.js +6 -3
  79. package/es/components/pay/toC/status.d.ts +1 -0
  80. package/es/components/pay/toC/status.js +3 -0
  81. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  82. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  83. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  84. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  85. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  86. package/es/components/schedules/products/index.d.ts +0 -1
  87. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  88. package/es/components/subTotal/index.js +1 -1
  89. package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  90. package/es/components/{wallet/serve.js → systemSettings/registry/components/GroupModal.js} +145 -190
  91. package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  92. package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
  93. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  94. package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
  95. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  96. package/es/components/systemSettings/registry/components/SectionList.js +174 -0
  97. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  98. package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
  99. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  100. package/es/components/systemSettings/registry/components/index.js +4 -0
  101. package/es/components/systemSettings/registry/index.d.ts +5 -0
  102. package/es/components/systemSettings/registry/index.js +1059 -0
  103. package/es/components/systemSettings/registry/index.less +410 -0
  104. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  105. package/es/components/systemSettings/registry/locales.js +300 -0
  106. package/es/components/systemSettings/registry/services.d.ts +77 -0
  107. package/es/components/systemSettings/registry/services.js +472 -0
  108. package/es/components/systemSettings/registry/types.d.ts +126 -0
  109. package/es/components/systemSettings/registry/types.js +1 -0
  110. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  111. package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
  112. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  113. package/es/components/systemSettings/registry/utils/validators.js +44 -0
  114. package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -5
  115. package/es/components/ticketBooking/utils/index.d.ts +5 -1
  116. package/es/components/ticketBooking/utils/index.js +37 -17
  117. package/es/components/walletList/index.d.ts +0 -25
  118. package/es/components/walletList/index.js +173 -41
  119. package/es/components/walletList/locales.d.ts +9 -0
  120. package/es/components/walletList/locales.js +12 -3
  121. package/es/components/walletList/serve.d.ts +19 -0
  122. package/es/components/walletList/serve.js +94 -5
  123. package/es/components/walletList/tempHolderSelector/index.d.ts +14 -0
  124. package/es/components/walletList/tempHolderSelector/index.js +196 -0
  125. package/es/components/walletList/tempHolderSelector/index.less +63 -0
  126. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  127. package/es/index.d.ts +3 -2
  128. package/es/index.js +4 -3
  129. package/es/plus/clientName/index.d.ts +0 -1
  130. package/es/plus/walletEditor/WalletEditor.js +60 -2
  131. package/es/plus/walletEditor/locales.d.ts +9 -0
  132. package/es/plus/walletEditor/locales.js +12 -3
  133. package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
  134. package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
  135. package/es/plus/walletPassGallery/components/passDetail/index.js +5 -1
  136. package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
  137. package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  138. package/es/plus/walletPassGallery/components/passList/index.js +17 -5
  139. package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
  140. package/es/plus/walletPassGallery/index.js +226 -42
  141. package/es/plus/walletPassGallery/locales.d.ts +15 -0
  142. package/es/plus/walletPassGallery/locales.js +29 -5
  143. package/es/plus/walletPassGallery/serve.d.ts +15 -1
  144. package/es/plus/walletPassGallery/serve.js +59 -2
  145. package/es/plus/walletPassGallery/utils.d.ts +48 -0
  146. package/es/plus/walletPassGallery/utils.js +342 -0
  147. package/es/pro/Login2.0/index.less +15 -8
  148. package/es/pro/pisellPaymentList/example.d.ts +0 -1
  149. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +35 -30
  150. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  151. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  152. package/lib/components/appointmentBooking/components/Services/index.js +5 -2
  153. package/lib/components/appointmentBooking/components/Voucher/index.js +13 -1
  154. package/lib/components/booking/addons/index.js +15 -7
  155. package/lib/components/booking/components/actionButtons/index.js +4 -2
  156. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  157. package/lib/components/booking/components/footer/amount.js +293 -41
  158. package/lib/components/booking/components/footer/index.js +5 -2
  159. package/lib/components/booking/components/footer/utils.d.ts +19 -0
  160. package/lib/components/booking/components/footer/utils.js +111 -35
  161. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  162. package/lib/components/booking/components/voucher/index.js +56 -16
  163. package/lib/components/booking/forms/table/index.d.ts +0 -1
  164. package/lib/components/booking/hooks/useQuotation.js +2 -1
  165. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  166. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  167. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  168. package/lib/components/booking/info/service2/utils.js +1 -0
  169. package/lib/components/booking/info2/cartClientCard/index.js +4 -2
  170. package/lib/components/booking/info2/service/addService/index.js +1 -1
  171. package/lib/components/booking/info2/service/editNormalService/index.js +6 -0
  172. package/lib/components/booking/info2/service/editService/index.js +30 -8
  173. package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
  174. package/lib/components/booking/info2/service/editService/utils.js +40 -3
  175. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  176. package/lib/components/booking/utils.d.ts +1 -0
  177. package/lib/components/booking/utils.js +11 -0
  178. package/lib/components/checkout/components/AmountSummary/index.less +4 -5
  179. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  180. package/lib/components/eftpos/form/index.d.ts +0 -1
  181. package/lib/components/eftpos/group/index.d.ts +0 -1
  182. package/lib/components/eftpos/hooks.d.ts +0 -1
  183. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  184. package/lib/components/eftpos/icon/device.d.ts +0 -1
  185. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  186. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  187. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  188. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  189. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  190. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
  191. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  192. package/lib/components/eftposPay/payo/config.js +98 -73
  193. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  194. package/lib/components/eftposPay/payo/payment.js +357 -0
  195. package/lib/components/eftposPay/store/index.d.ts +1 -1
  196. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  197. package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
  198. package/lib/components/eftposPay/utils/log/index.js +294 -0
  199. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  200. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  201. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  202. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  203. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  204. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  205. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  206. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  207. package/lib/components/index.d.ts +2 -2
  208. package/lib/components/index.js +3 -3
  209. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
  210. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  211. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  212. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
  213. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  214. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  215. package/lib/components/pay/toC/index.js +4 -1
  216. package/lib/components/pay/toC/locales.d.ts +3 -0
  217. package/lib/components/pay/toC/locales.js +6 -3
  218. package/lib/components/pay/toC/status.d.ts +1 -0
  219. package/lib/components/pay/toC/status.js +5 -0
  220. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  221. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  222. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  223. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  224. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  225. package/lib/components/schedules/products/index.d.ts +0 -1
  226. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  227. package/lib/components/subTotal/index.js +1 -1
  228. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  229. package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
  230. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  231. package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
  232. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  233. package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
  234. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  235. package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
  236. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  237. package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
  238. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  239. package/lib/components/{wallet → systemSettings/registry}/components/index.js +13 -10
  240. package/lib/components/systemSettings/registry/index.d.ts +5 -0
  241. package/lib/components/systemSettings/registry/index.js +529 -0
  242. package/lib/components/systemSettings/registry/index.less +410 -0
  243. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  244. package/lib/components/systemSettings/registry/locales.js +324 -0
  245. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  246. package/lib/components/systemSettings/registry/services.js +290 -0
  247. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  248. package/lib/components/{wallet/RechargeableCard/serve.js → systemSettings/registry/types.js} +3 -19
  249. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  250. package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
  251. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  252. package/lib/components/systemSettings/registry/utils/validators.js +54 -0
  253. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +9 -7
  254. package/lib/components/ticketBooking/utils/index.d.ts +5 -1
  255. package/lib/components/ticketBooking/utils/index.js +21 -6
  256. package/lib/components/walletList/index.d.ts +0 -25
  257. package/lib/components/walletList/index.js +100 -4
  258. package/lib/components/walletList/locales.d.ts +9 -0
  259. package/lib/components/walletList/locales.js +12 -3
  260. package/lib/components/walletList/serve.d.ts +19 -0
  261. package/lib/components/walletList/serve.js +26 -3
  262. package/lib/components/walletList/tempHolderSelector/index.d.ts +14 -0
  263. package/lib/components/walletList/tempHolderSelector/index.js +166 -0
  264. package/lib/components/walletList/tempHolderSelector/index.less +63 -0
  265. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  266. package/lib/index.d.ts +3 -2
  267. package/lib/index.js +5 -2
  268. package/lib/plus/clientName/index.d.ts +0 -1
  269. package/lib/plus/walletEditor/WalletEditor.js +53 -0
  270. package/lib/plus/walletEditor/locales.d.ts +9 -0
  271. package/lib/plus/walletEditor/locales.js +12 -3
  272. package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
  273. package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
  274. package/lib/plus/walletPassGallery/components/passDetail/index.js +4 -1
  275. package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
  276. package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  277. package/lib/plus/walletPassGallery/components/passList/index.js +16 -4
  278. package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
  279. package/lib/plus/walletPassGallery/index.js +157 -28
  280. package/lib/plus/walletPassGallery/locales.d.ts +15 -0
  281. package/lib/plus/walletPassGallery/locales.js +32 -5
  282. package/lib/plus/walletPassGallery/serve.d.ts +15 -1
  283. package/lib/plus/walletPassGallery/serve.js +17 -5
  284. package/lib/plus/walletPassGallery/utils.d.ts +48 -0
  285. package/lib/plus/walletPassGallery/utils.js +287 -0
  286. package/lib/pro/Login2.0/index.less +15 -8
  287. package/lib/pro/pisellPaymentList/example.d.ts +0 -1
  288. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +34 -39
  289. package/lowcode/settings-registry/meta.ts +29 -0
  290. package/package.json +3 -3
  291. package/es/components/wallet/Detail/index.d.ts +0 -42
  292. package/es/components/wallet/Detail/index.js +0 -1182
  293. package/es/components/wallet/Detail/index.less +0 -386
  294. package/es/components/wallet/Detail/locales.d.ts +0 -153
  295. package/es/components/wallet/Detail/locales.js +0 -170
  296. package/es/components/wallet/Detail/model.d.ts +0 -13
  297. package/es/components/wallet/Detail/model.js +0 -22
  298. package/es/components/wallet/Detail/serve.d.ts +0 -39
  299. package/es/components/wallet/Detail/serve.js +0 -64
  300. package/es/components/wallet/DetailContext.d.ts +0 -25
  301. package/es/components/wallet/DetailContext.js +0 -162
  302. package/es/components/wallet/DiscountCard/index.d.ts +0 -3
  303. package/es/components/wallet/DiscountCard/index.js +0 -218
  304. package/es/components/wallet/DiscountCard/index.less +0 -9
  305. package/es/components/wallet/DiscountCard/model.d.ts +0 -14
  306. package/es/components/wallet/DiscountCard/model.js +0 -22
  307. package/es/components/wallet/PointCard/index.d.ts +0 -3
  308. package/es/components/wallet/PointCard/index.js +0 -169
  309. package/es/components/wallet/PointCard/index.less +0 -9
  310. package/es/components/wallet/PointCard/model.d.ts +0 -13
  311. package/es/components/wallet/PointCard/model.js +0 -22
  312. package/es/components/wallet/RechargeableCard/index.d.ts +0 -13
  313. package/es/components/wallet/RechargeableCard/index.js +0 -463
  314. package/es/components/wallet/RechargeableCard/index.less +0 -108
  315. package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
  316. package/es/components/wallet/RechargeableCard/model.js +0 -28
  317. package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
  318. package/es/components/wallet/RechargeableCard/serve.js +0 -32
  319. package/es/components/wallet/Voucher/index.d.ts +0 -12
  320. package/es/components/wallet/Voucher/index.js +0 -131
  321. package/es/components/wallet/Voucher/index.less +0 -9
  322. package/es/components/wallet/Voucher/locales.d.ts +0 -21
  323. package/es/components/wallet/Voucher/locales.js +0 -20
  324. package/es/components/wallet/Voucher/model.d.ts +0 -13
  325. package/es/components/wallet/Voucher/model.js +0 -22
  326. package/es/components/wallet/carouselArrow.png +0 -0
  327. package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
  328. package/es/components/wallet/components/FooterButtons/index.js +0 -81
  329. package/es/components/wallet/components/FooterButtons/index.less +0 -91
  330. package/es/components/wallet/components/UsageRules/index.d.ts +0 -23
  331. package/es/components/wallet/components/UsageRules/index.js +0 -147
  332. package/es/components/wallet/components/UsageRules/index.less +0 -157
  333. package/es/components/wallet/components/WalletBar/index.d.ts +0 -8
  334. package/es/components/wallet/components/WalletBar/index.js +0 -19
  335. package/es/components/wallet/components/WalletBar/index.less +0 -36
  336. package/es/components/wallet/components/WalletCard.d.ts +0 -11
  337. package/es/components/wallet/components/WalletCard.js +0 -91
  338. package/es/components/wallet/components/index.d.ts +0 -3
  339. package/es/components/wallet/components/index.js +0 -4
  340. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -34
  341. package/es/components/wallet/hooks/useWalletCard.js +0 -147
  342. package/es/components/wallet/index.d.ts +0 -10
  343. package/es/components/wallet/index.js +0 -807
  344. package/es/components/wallet/index.less +0 -151
  345. package/es/components/wallet/locales.d.ts +0 -132
  346. package/es/components/wallet/locales.js +0 -139
  347. package/es/components/wallet/model.d.ts +0 -37
  348. package/es/components/wallet/model.js +0 -86
  349. package/es/components/wallet/serve.d.ts +0 -150
  350. package/es/components/wallet/utils/formatUtils.d.ts +0 -36
  351. package/es/components/wallet/utils/formatUtils.js +0 -73
  352. package/lib/components/wallet/Detail/index.d.ts +0 -42
  353. package/lib/components/wallet/Detail/index.js +0 -874
  354. package/lib/components/wallet/Detail/index.less +0 -386
  355. package/lib/components/wallet/Detail/locales.d.ts +0 -153
  356. package/lib/components/wallet/Detail/locales.js +0 -194
  357. package/lib/components/wallet/Detail/model.d.ts +0 -13
  358. package/lib/components/wallet/Detail/model.js +0 -43
  359. package/lib/components/wallet/Detail/serve.d.ts +0 -39
  360. package/lib/components/wallet/Detail/serve.js +0 -44
  361. package/lib/components/wallet/DetailContext.d.ts +0 -25
  362. package/lib/components/wallet/DetailContext.js +0 -118
  363. package/lib/components/wallet/DiscountCard/index.d.ts +0 -3
  364. package/lib/components/wallet/DiscountCard/index.js +0 -209
  365. package/lib/components/wallet/DiscountCard/index.less +0 -9
  366. package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
  367. package/lib/components/wallet/DiscountCard/model.js +0 -43
  368. package/lib/components/wallet/PointCard/index.d.ts +0 -3
  369. package/lib/components/wallet/PointCard/index.js +0 -190
  370. package/lib/components/wallet/PointCard/index.less +0 -9
  371. package/lib/components/wallet/PointCard/model.d.ts +0 -13
  372. package/lib/components/wallet/PointCard/model.js +0 -43
  373. package/lib/components/wallet/RechargeableCard/index.d.ts +0 -13
  374. package/lib/components/wallet/RechargeableCard/index.js +0 -380
  375. package/lib/components/wallet/RechargeableCard/index.less +0 -108
  376. package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
  377. package/lib/components/wallet/RechargeableCard/model.js +0 -49
  378. package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
  379. package/lib/components/wallet/Voucher/index.d.ts +0 -12
  380. package/lib/components/wallet/Voucher/index.js +0 -146
  381. package/lib/components/wallet/Voucher/index.less +0 -9
  382. package/lib/components/wallet/Voucher/locales.d.ts +0 -21
  383. package/lib/components/wallet/Voucher/locales.js +0 -44
  384. package/lib/components/wallet/Voucher/model.d.ts +0 -13
  385. package/lib/components/wallet/Voucher/model.js +0 -43
  386. package/lib/components/wallet/carouselArrow.png +0 -0
  387. package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
  388. package/lib/components/wallet/components/FooterButtons/index.js +0 -109
  389. package/lib/components/wallet/components/FooterButtons/index.less +0 -91
  390. package/lib/components/wallet/components/UsageRules/index.d.ts +0 -23
  391. package/lib/components/wallet/components/UsageRules/index.js +0 -113
  392. package/lib/components/wallet/components/UsageRules/index.less +0 -157
  393. package/lib/components/wallet/components/WalletBar/index.d.ts +0 -8
  394. package/lib/components/wallet/components/WalletBar/index.js +0 -49
  395. package/lib/components/wallet/components/WalletBar/index.less +0 -36
  396. package/lib/components/wallet/components/WalletCard.d.ts +0 -11
  397. package/lib/components/wallet/components/WalletCard.js +0 -97
  398. package/lib/components/wallet/components/index.d.ts +0 -3
  399. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -34
  400. package/lib/components/wallet/hooks/useWalletCard.js +0 -111
  401. package/lib/components/wallet/index.d.ts +0 -10
  402. package/lib/components/wallet/index.js +0 -580
  403. package/lib/components/wallet/index.less +0 -151
  404. package/lib/components/wallet/locales.d.ts +0 -132
  405. package/lib/components/wallet/locales.js +0 -163
  406. package/lib/components/wallet/model.d.ts +0 -37
  407. package/lib/components/wallet/model.js +0 -91
  408. package/lib/components/wallet/serve.d.ts +0 -150
  409. package/lib/components/wallet/serve.js +0 -85
  410. package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
  411. package/lib/components/wallet/utils/formatUtils.js +0 -73
@@ -16,6 +16,7 @@ export interface IWalletListParmsProps {
16
16
  num?: number;
17
17
  skip?: number;
18
18
  filter_wallet_id?: string;
19
+ filter_holder_id?: string;
19
20
  available: 0 | 1;
20
21
  with?: string[];
21
22
  }
@@ -86,7 +87,7 @@ export declare type ErrorCallback = () => void;
86
87
  * @returns Promise<{list: IWalletListItemProps[], count: number}> 钱包列表和总数
87
88
  * @throws 请求失败时抛出错误
88
89
  */
89
- export declare const getWalletList: (params?: IWalletListParmsProps) => Promise<{
90
+ export declare const getWalletPassList: (params?: IWalletListParmsProps) => Promise<{
90
91
  list: IWalletListItemProps[];
91
92
  count: number;
92
93
  }>;
@@ -218,4 +219,17 @@ export declare const orderRechargeProduct: (params: OrderParams) => Promise<Orde
218
219
  * @date: 2025-11-03 15:30
219
220
  */
220
221
  export declare const getWalletDetail: (id: string | number) => Promise<any>;
222
+ /**
223
+ * 更新卡券持有人
224
+ * @param id 卡券ID
225
+ * @param params 更新参数
226
+ * @returns 更新结果
227
+ */
228
+ export declare const updateWalletPassHolder: (id: string, params: any) => Promise<any>;
229
+ /**
230
+ * 获取卡券详情
231
+ * @param id 卡券ID
232
+ * @returns 卡券详情
233
+ */
234
+ export declare const getWalletPassDetail: (id: string, params: any) => Promise<any>;
221
235
  export {};
@@ -35,7 +35,7 @@ import { locales } from '@pisell/utils';
35
35
  * @returns Promise<{list: IWalletListItemProps[], count: number}> 钱包列表和总数
36
36
  * @throws 请求失败时抛出错误
37
37
  */
38
- export var getWalletList = /*#__PURE__*/function () {
38
+ export var getWalletPassList = /*#__PURE__*/function () {
39
39
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
40
40
  var _yield$request$getReq, data;
41
41
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -65,7 +65,7 @@ export var getWalletList = /*#__PURE__*/function () {
65
65
  }
66
66
  }, _callee, null, [[0, 8]]);
67
67
  }));
68
- return function getWalletList(_x) {
68
+ return function getWalletPassList(_x) {
69
69
  return _ref.apply(this, arguments);
70
70
  };
71
71
  }();
@@ -288,4 +288,61 @@ export var getWalletDetail = /*#__PURE__*/function () {
288
288
  return function getWalletDetail(_x8) {
289
289
  return _ref8.apply(this, arguments);
290
290
  };
291
+ }();
292
+
293
+ /**
294
+ * 更新卡券持有人
295
+ * @param id 卡券ID
296
+ * @param params 更新参数
297
+ * @returns 更新结果
298
+ */
299
+ export var updateWalletPassHolder = /*#__PURE__*/function () {
300
+ var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(id, params) {
301
+ var _yield$request$getReq8, data;
302
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
303
+ while (1) switch (_context9.prev = _context9.next) {
304
+ case 0:
305
+ _context9.next = 2;
306
+ return request.getRequest().post("/h5/machinecode/".concat(id, "/bind-holder"), params);
307
+ case 2:
308
+ _yield$request$getReq8 = _context9.sent;
309
+ data = _yield$request$getReq8.data;
310
+ return _context9.abrupt("return", data);
311
+ case 5:
312
+ case "end":
313
+ return _context9.stop();
314
+ }
315
+ }, _callee9);
316
+ }));
317
+ return function updateWalletPassHolder(_x9, _x10) {
318
+ return _ref9.apply(this, arguments);
319
+ };
320
+ }();
321
+
322
+ /**
323
+ * 获取卡券详情
324
+ * @param id 卡券ID
325
+ * @returns 卡券详情
326
+ */
327
+ export var getWalletPassDetail = /*#__PURE__*/function () {
328
+ var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(id, params) {
329
+ var _yield$request$getReq9, data;
330
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
331
+ while (1) switch (_context10.prev = _context10.next) {
332
+ case 0:
333
+ _context10.next = 2;
334
+ return request.getRequest().get("/h5/machinecode/lowcode/detail/".concat(id), params);
335
+ case 2:
336
+ _yield$request$getReq9 = _context10.sent;
337
+ data = _yield$request$getReq9.data;
338
+ return _context10.abrupt("return", data);
339
+ case 5:
340
+ case "end":
341
+ return _context10.stop();
342
+ }
343
+ }, _callee10);
344
+ }));
345
+ return function getWalletPassDetail(_x11, _x12) {
346
+ return _ref10.apply(this, arguments);
347
+ };
291
348
  }();
@@ -0,0 +1,48 @@
1
+ interface ScheduleTextResult {
2
+ validityTexts: string[];
3
+ excluded_date: string[];
4
+ included_date: string[];
5
+ }
6
+ declare type Locale = 'en' | 'zh-CN' | 'zh-HK';
7
+ interface ScheduleItem {
8
+ id: number;
9
+ name: string | {
10
+ [key: string]: string;
11
+ };
12
+ type: 'standard' | 'time-slots' | 'designation';
13
+ start_time: string | null;
14
+ end_time: string | null;
15
+ repeat_type: 'none' | 'daily' | 'weekly';
16
+ repeat_rule: {
17
+ end: {
18
+ type: 'never' | 'date' | 'occurrence';
19
+ end_date: string | null;
20
+ occurrence: number | null;
21
+ };
22
+ frequency: number;
23
+ excluded_date: Array<{
24
+ start: string;
25
+ end: string;
26
+ }>;
27
+ included_date: any[];
28
+ frequency_date: number[];
29
+ } | null;
30
+ designation: Array<{
31
+ start_date: string;
32
+ start_time: string;
33
+ end_date: string;
34
+ end_time: string;
35
+ }> | null;
36
+ is_all: number;
37
+ time_slot: Array<{
38
+ start_time: string;
39
+ end_time: string;
40
+ }>;
41
+ }
42
+ /**
43
+ * 根据scheduleList格式化文案展示
44
+ * @param scheduleList 日程列表
45
+ * @returns 格式化后的文案结果数组,每个日程对应一个结果
46
+ */
47
+ export declare function formatScheduleText(scheduleList: ScheduleItem[], locale?: Locale): ScheduleTextResult[];
48
+ export {};
@@ -0,0 +1,342 @@
1
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
2
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
5
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
7
+ // 日程文案格式化接口
8
+
9
+ // 日程项接口定义
10
+
11
+ // 格式化日期时间函数
12
+ function formatDateTime(dateTime) {
13
+ var isAll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
14
+ var locale = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'zh-CN';
15
+ var date = new Date(dateTime);
16
+ var year = date.getFullYear();
17
+ var month = String(date.getMonth() + 1).padStart(2, '0');
18
+ var day = String(date.getDate()).padStart(2, '0');
19
+ var hours = date.getHours();
20
+ var minutes = String(date.getMinutes()).padStart(2, '0');
21
+ if (isAll) {
22
+ // 全天情况下的日期格式
23
+ if (locale === 'en') {
24
+ return "".concat(day, "/").concat(month, "/").concat(year);
25
+ } else {
26
+ return "".concat(year, "-").concat(month, "-").concat(day);
27
+ }
28
+ }
29
+
30
+ // 非全天情况下的日期时间格式
31
+ if (locale === 'en') {
32
+ // DD/MM/YYYY h:mm A 格式
33
+ var period = hours >= 12 ? 'PM' : 'AM';
34
+ var displayHours = hours === 0 ? 12 : hours > 12 ? hours - 12 : hours;
35
+ return "".concat(day, "/").concat(month, "/").concat(year, " ").concat(displayHours, ":").concat(minutes, " ").concat(period);
36
+ } else {
37
+ // YYYY-MM-DD HH:mm 格式
38
+ var _displayHours = String(hours).padStart(2, '0');
39
+ return "".concat(year, "-").concat(month, "-").concat(day, " ").concat(_displayHours, ":").concat(minutes);
40
+ }
41
+ }
42
+
43
+ // 多语言文案配置
44
+ var textConfig = {
45
+ 'zh-HK': {
46
+ weekdays: ['日', '一', '二', '三', '四', '五', '六'],
47
+ separator: '、',
48
+ timeSeparator: '–',
49
+ rangeSeparator: ' 至 ',
50
+ periodSeparator: ';',
51
+ timeSlotSeparator: ',',
52
+ every: '每',
53
+ day: '天',
54
+ week: '周',
55
+ month: '月',
56
+ year: '年',
57
+ available: '可用',
58
+ unlimited: '无限期',
59
+ weekPrefix: '周'
60
+ },
61
+ 'zh-CN': {
62
+ weekdays: ['日', '一', '二', '三', '四', '五', '六'],
63
+ separator: '、',
64
+ timeSeparator: '–',
65
+ rangeSeparator: ' 至 ',
66
+ periodSeparator: ';',
67
+ timeSlotSeparator: ',',
68
+ every: '每',
69
+ day: '天',
70
+ week: '周',
71
+ month: '月',
72
+ year: '年',
73
+ available: '可用',
74
+ unlimited: '无限期',
75
+ weekPrefix: '周'
76
+ },
77
+ 'en': {
78
+ weekdays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
79
+ separator: ', ',
80
+ timeSeparator: '–',
81
+ rangeSeparator: ' - ',
82
+ periodSeparator: '; ',
83
+ timeSlotSeparator: ', ',
84
+ every: 'every ',
85
+ day: 'day',
86
+ week: 'week',
87
+ month: 'month',
88
+ year: 'year',
89
+ available: 'available',
90
+ unlimited: 'unlimited',
91
+ weekPrefix: ''
92
+ }
93
+ };
94
+
95
+ // 获取星期几的表示
96
+ function getWeekdayText(dayNumbers, locale) {
97
+ var config = textConfig[locale];
98
+ return dayNumbers.map(function (day) {
99
+ return config.weekdays[day];
100
+ }).join(config.separator);
101
+ }
102
+
103
+ // 获取重复频率文案
104
+ function getRepeatFrequencyText(repeatType, frequency, locale) {
105
+ var config = textConfig[locale];
106
+ var typeMap = {
107
+ 'daily': config.day,
108
+ 'weekly': config.week,
109
+ 'monthly': config.month,
110
+ 'yearly': config.year
111
+ };
112
+ if (locale === 'en') {
113
+ if (frequency === 1) {
114
+ return "".concat(config.every).concat(typeMap[repeatType]);
115
+ }
116
+ return "".concat(config.every).concat(frequency, " ").concat(typeMap[repeatType], "s");
117
+ } else {
118
+ if (frequency === 1) {
119
+ return "".concat(config.every).concat(typeMap[repeatType]);
120
+ }
121
+ return "".concat(config.every).concat(frequency).concat(typeMap[repeatType]);
122
+ }
123
+ }
124
+
125
+ /**
126
+ * 根据scheduleList格式化文案展示
127
+ * @param scheduleList 日程列表
128
+ * @returns 格式化后的文案结果数组,每个日程对应一个结果
129
+ */
130
+ export function formatScheduleText(scheduleList) {
131
+ var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en';
132
+ var results = [];
133
+ var config = textConfig[locale];
134
+ scheduleList.forEach(function (schedule) {
135
+ var _schedule$repeat_rule, _schedule$repeat_rule2;
136
+ var validityTexts = [];
137
+ var excluded_date = [];
138
+ var included_date = [];
139
+
140
+ // 处理排除日期
141
+ if ((_schedule$repeat_rule = schedule.repeat_rule) !== null && _schedule$repeat_rule !== void 0 && _schedule$repeat_rule.excluded_date) {
142
+ schedule.repeat_rule.excluded_date.forEach(function (excludeItem) {
143
+ var startDate = formatDateTime(excludeItem.start, true, locale);
144
+ var endDate = formatDateTime(excludeItem.end, true, locale);
145
+ if (excludeItem.start === excludeItem.end) {
146
+ // 开始和结束日期相同,只显示开始日期
147
+ excluded_date.push(startDate);
148
+ } else {
149
+ // 开始和结束日期不同,显示范围格式
150
+ excluded_date.push("".concat(startDate).concat(config.rangeSeparator).concat(endDate));
151
+ }
152
+ });
153
+ }
154
+
155
+ // 处理包含日期
156
+ if ((_schedule$repeat_rule2 = schedule.repeat_rule) !== null && _schedule$repeat_rule2 !== void 0 && _schedule$repeat_rule2.included_date) {
157
+ schedule.repeat_rule.included_date.forEach(function (includeItem) {
158
+ var startDate = formatDateTime(includeItem.start, true, locale);
159
+ var endDate = formatDateTime(includeItem.end, true, locale);
160
+ if (includeItem.start === includeItem.end) {
161
+ // 开始和结束日期相同,只显示开始日期
162
+ included_date.push(startDate);
163
+ } else {
164
+ // 开始和结束日期不同,显示范围格式
165
+ included_date.push("".concat(startDate).concat(config.rangeSeparator).concat(endDate));
166
+ }
167
+ });
168
+ }
169
+ var isAllDay = schedule.is_all === 1;
170
+ var validityText = '';
171
+
172
+ // 1. 非循环日程处理
173
+ if (schedule.repeat_type === 'none') {
174
+ // 1.1 单个标准日程(单日单段)
175
+ if (schedule.type === 'standard') {
176
+ var startDateTime = formatDateTime(schedule.start_time, isAllDay, locale);
177
+ var endDateTime = formatDateTime(schedule.end_time, isAllDay, locale);
178
+ validityText = "".concat(startDateTime).concat(config.rangeSeparator).concat(endDateTime);
179
+ }
180
+ // 1.2 多时间段日程(单日多段)
181
+ else if (schedule.type === 'time-slots' && schedule.time_slot.length > 0) {
182
+ var baseDate = formatDateTime(schedule.start_time, true, locale);
183
+ if (isAllDay) {
184
+ // 全天情况下,不显示时分
185
+ validityText = "".concat(baseDate);
186
+ } else {
187
+ // 非全天情况下,按新格式显示时间段
188
+ var timeSlots = schedule.time_slot.map(function (slot) {
189
+ return "".concat(slot.start_time).concat(config.timeSeparator).concat(slot.end_time);
190
+ });
191
+ validityText = "".concat(baseDate, " ").concat(timeSlots.join(config.timeSlotSeparator));
192
+ }
193
+ } else if (schedule.type === 'designation' && schedule.designation) {
194
+ var designationTexts = schedule.designation.map(function (item) {
195
+ if (isAllDay || item.start_time === '00:00' && item.end_time === '23:59') {
196
+ // 全天情况:只显示日期
197
+ var startDate = formatDateTime(item.start_date, true, locale);
198
+ var endDate = formatDateTime(item.end_date, true, locale);
199
+ return "".concat(startDate).concat(config.rangeSeparator).concat(endDate);
200
+ } else {
201
+ // 非全天情况:按新格式显示日期时间
202
+ var _startDate = formatDateTime(item.start_date, true, locale);
203
+ return "".concat(_startDate, " ").concat(item.start_time).concat(config.timeSeparator).concat(item.end_time);
204
+ }
205
+ });
206
+ validityTexts.push.apply(validityTexts, _toConsumableArray(designationTexts));
207
+ }
208
+ }
209
+
210
+ // 2. 循环日程处理
211
+ else if (schedule.repeat_rule) {
212
+ var _schedule$repeat_rule3 = schedule.repeat_rule,
213
+ frequency = _schedule$repeat_rule3.frequency,
214
+ frequency_date = _schedule$repeat_rule3.frequency_date;
215
+
216
+ // 根据 is_all 决定是否显示时分
217
+ var startText = isAllDay ? formatDateTime(schedule.start_time, true, locale) : formatDateTime(schedule.start_time, false, locale);
218
+
219
+ // 结束日期处理
220
+ var endDateText = '';
221
+ if (schedule.repeat_rule.end.type === 'never') {
222
+ endDateText = config.unlimited;
223
+ } else if (schedule.repeat_rule.end.end_date) {
224
+ endDateText = formatDateTime(schedule.repeat_rule.end.end_date, true, locale);
225
+ }
226
+
227
+ // 2.1 标准类型循环日程
228
+ if (schedule.type === 'standard') {
229
+ // 按天循环
230
+ if (schedule.repeat_type === 'daily') {
231
+ if (isAllDay) {
232
+ var frequencyText = getRepeatFrequencyText('daily', frequency, locale);
233
+ if (locale === 'en') {
234
+ validityText = "".concat(startText).concat(config.rangeSeparator).concat(endDateText, ", ").concat(config.available, " ").concat(frequencyText);
235
+ } else {
236
+ validityText = "".concat(startText).concat(config.rangeSeparator).concat(endDateText, "\uFF0C").concat(frequencyText).concat(config.available);
237
+ }
238
+ } else {
239
+ var startTime = formatDateTime(schedule.start_time, false, locale);
240
+ var endTime = formatDateTime(schedule.end_time, false, locale);
241
+ var timeRange = locale === 'en' ? "".concat(startTime.split(' ')[1], " ").concat(startTime.split(' ')[2]).concat(config.timeSeparator).concat(endTime.split(' ')[1], " ").concat(endTime.split(' ')[2]) : "".concat(startTime.split(' ')[1]).concat(config.timeSeparator).concat(endTime.split(' ')[1]);
242
+ var _frequencyText = getRepeatFrequencyText('daily', frequency, locale);
243
+ var dateRange = locale === 'en' ? "".concat(startTime.split(' ')[0]).concat(config.rangeSeparator).concat(endDateText) : "".concat(startText.split(' ')[0]).concat(config.rangeSeparator).concat(endDateText);
244
+ if (locale === 'en') {
245
+ validityText = "".concat(dateRange, ", ").concat(config.available, " ").concat(_frequencyText, " ").concat(timeRange);
246
+ } else {
247
+ validityText = "".concat(dateRange, "\uFF0C").concat(_frequencyText, " ").concat(timeRange, " ").concat(config.available);
248
+ }
249
+ }
250
+ }
251
+
252
+ // 按周循环
253
+ else if (schedule.repeat_type === 'weekly') {
254
+ var weekdaysText = getWeekdayText(frequency_date, locale);
255
+ if (isAllDay) {
256
+ if (locale === 'en') {
257
+ var _frequencyText2 = frequency === 1 ? 'every week' : "every ".concat(frequency, " weeks");
258
+ validityText = "".concat(startText).concat(config.rangeSeparator).concat(endDateText, ", ").concat(_frequencyText2, " on ").concat(weekdaysText, " ");
259
+ } else {
260
+ var _frequencyText3 = frequency === 1 ? '每周' : "\u6BCF".concat(frequency, "\u5468\u7684");
261
+ validityText = "".concat(startText).concat(config.rangeSeparator).concat(endDateText, "\uFF0C").concat(_frequencyText3).concat(config.weekPrefix).concat(weekdaysText).concat(config.available);
262
+ }
263
+ } else {
264
+ var _startTime = formatDateTime(schedule.start_time, false, locale);
265
+ var _endTime = formatDateTime(schedule.end_time, false, locale);
266
+ var _timeRange = locale === 'en' ? "".concat(_startTime.split(' ')[1], " ").concat(_startTime.split(' ')[2]).concat(config.timeSeparator).concat(_endTime.split(' ')[1], " ").concat(_endTime.split(' ')[2]) : "".concat(_startTime.split(' ')[1]).concat(config.timeSeparator).concat(_endTime.split(' ')[1]);
267
+ var _dateRange = locale === 'en' ? "".concat(_startTime.split(' ')[0]).concat(config.rangeSeparator).concat(endDateText) : "".concat(startText.split(' ')[0]).concat(config.rangeSeparator).concat(endDateText);
268
+ if (locale === 'en') {
269
+ var _frequencyText4 = frequency === 1 ? 'every week' : "every ".concat(frequency, " weeks");
270
+ validityText = "".concat(_dateRange, ", ").concat(_frequencyText4, " on ").concat(weekdaysText, " ").concat(_timeRange);
271
+ } else {
272
+ var _frequencyText5 = frequency === 1 ? '每周' : "\u6BCF".concat(frequency, "\u5468\u7684");
273
+ validityText = "".concat(_dateRange, "\uFF0C").concat(_frequencyText5).concat(config.weekPrefix).concat(weekdaysText, " ").concat(_timeRange);
274
+ }
275
+ }
276
+ }
277
+ }
278
+
279
+ // 2.2 多时间段类型循环日程
280
+ else if (schedule.type === 'time-slots' && schedule.time_slot.length > 0) {
281
+ var _baseDate = formatDateTime(schedule.start_time, true, locale);
282
+
283
+ // 格式化时间段
284
+ var _timeSlots = schedule.time_slot.map(function (slot) {
285
+ return "".concat(slot.start_time).concat(config.timeSeparator).concat(slot.end_time);
286
+ });
287
+ var timeSlotsText = _timeSlots.join(config.timeSlotSeparator);
288
+
289
+ // 按天循环
290
+ if (schedule.repeat_type === 'daily') {
291
+ var _frequencyText6 = getRepeatFrequencyText('daily', frequency, locale);
292
+ if (locale === 'en') {
293
+ validityText = "".concat(_baseDate).concat(config.rangeSeparator).concat(endDateText, ", ").concat(config.available, " ").concat(_frequencyText6, " ").concat(timeSlotsText);
294
+ } else {
295
+ validityText = "".concat(_baseDate).concat(config.rangeSeparator).concat(endDateText, "\uFF0C").concat(_frequencyText6, " ").concat(timeSlotsText, " ").concat(config.available);
296
+ }
297
+ }
298
+
299
+ // 按周循环
300
+ else if (schedule.repeat_type === 'weekly') {
301
+ var _weekdaysText = getWeekdayText(frequency_date, locale);
302
+ if (locale === 'en') {
303
+ var _frequencyText7 = frequency === 1 ? 'every week' : "every ".concat(frequency, " weeks");
304
+ validityText = "".concat(_baseDate).concat(config.rangeSeparator).concat(endDateText, ", ").concat(_frequencyText7, " on ").concat(_weekdaysText, " ").concat(timeSlotsText);
305
+ } else {
306
+ var _frequencyText8 = frequency === 1 ? '每周' : "\u6BCF".concat(frequency, "\u5468\u7684");
307
+ validityText = "".concat(_baseDate).concat(config.rangeSeparator).concat(endDateText, "\uFF0C").concat(_frequencyText8).concat(config.weekPrefix).concat(_weekdaysText, " ").concat(timeSlotsText, " ").concat(config.available);
308
+ }
309
+ }
310
+ }
311
+ }
312
+
313
+ // 4. 指定日期日程(多天多段)
314
+ else if (schedule.type === 'designation' && schedule.designation) {
315
+ var _designationTexts = schedule.designation.map(function (item) {
316
+ if (isAllDay || item.start_time === '00:00' && item.end_time === '23:59') {
317
+ // 全天情况:只显示日期
318
+ var startDate = formatDateTime(item.start_date, true, locale);
319
+ var endDate = formatDateTime(item.end_date, true, locale);
320
+ return "".concat(startDate).concat(config.rangeSeparator).concat(endDate);
321
+ } else {
322
+ // 非全天情况:按新格式显示日期时间
323
+ var _startDate2 = formatDateTime(item.start_date, true, locale);
324
+ return "".concat(_startDate2, " ").concat(item.start_time).concat(config.timeSeparator).concat(item.end_time);
325
+ }
326
+ });
327
+ // 多天多段情况,每个时间段作为独立元素添加到validityTexts中
328
+ validityTexts.push.apply(validityTexts, _toConsumableArray(_designationTexts));
329
+ }
330
+ if (validityText) {
331
+ validityTexts.push(validityText);
332
+ }
333
+
334
+ // 为每个日程创建一个结果
335
+ results.push({
336
+ validityTexts: validityTexts,
337
+ excluded_date: excluded_date,
338
+ included_date: included_date
339
+ });
340
+ });
341
+ return results;
342
+ }
@@ -15,6 +15,14 @@
15
15
 
16
16
  /* 默认底部内边距 */
17
17
  padding-bottom: 24px;
18
+
19
+ // 加载状态优化
20
+ .pisell-lowcode-btn-loading-icon {
21
+ .anticon {
22
+ color: #ffffff !important;
23
+ }
24
+ }
25
+
18
26
 
19
27
  /* 在弹窗模式下不需要额外的底部内边距,因为使用 sticky 定位 */
20
28
  .pisell-lowcode-modal-body & {
@@ -462,6 +470,13 @@
462
470
  .login-lm-drawer-popover & {
463
471
  padding-bottom: 100px;
464
472
  }
473
+ // 加载状态优化
474
+ .pisell-lowcode-btn-loading-icon {
475
+ .anticon {
476
+ color: #ffffff !important;
477
+ }
478
+ }
479
+
465
480
  }
466
481
 
467
482
  // 错误提示样式优化
@@ -521,14 +536,6 @@
521
536
  // }
522
537
  // }
523
538
  // }
524
-
525
- // 加载状态优化
526
- .pisell-lowcode-btn-loading-icon {
527
- .anticon {
528
- color: #ffffff !important;
529
- }
530
- }
531
-
532
539
  // 切换认证方式按钮
533
540
  .login2-switch-button {
534
541
  margin-top: 0;
@@ -4,7 +4,6 @@
4
4
  * 这个文件演示了如何使用 PisellPaymentList 和 PisellPaymentListItem 组件
5
5
  * 包括如何通过 Context 访问父组件配置
6
6
  */
7
- /// <reference types="react" />
8
7
  export declare const BasicExample: () => JSX.Element;
9
8
  export declare const ChildrenExample: () => JSX.Element;
10
9
  export declare const CustomItemExample: () => JSX.Element;
@@ -22,7 +22,6 @@ import { useControllableValue } from 'ahooks';
22
22
  import { merge, omit } from 'lodash';
23
23
  //@ts-ignore
24
24
  import { locales } from '@pisell/utils';
25
- import { VirtualInput } from '@pisell/materials';
26
25
  import Shortcuts from "../shortcuts";
27
26
  import CashKeyboardSimple from "./CashKeyboardSimple";
28
27
  import { setKeyboardTheme } from "../../utils";
@@ -30,6 +29,7 @@ import "./index.less";
30
29
  import Decimal from 'decimal.js';
31
30
  import { AutoResizeText } from '@pisell/materials';
32
31
  import { formatAmountWithOptions } from '@pisell/utils';
32
+ import { Iconfont } from '@pisell/materials';
33
33
  var CashKeyboardIntact = function CashKeyboardIntact(props) {
34
34
  var _mergedDisplayField$b, _mergedDisplayField$c, _mergedDisplayField$c2;
35
35
  var amountSymbol = props.amountSymbol,
@@ -251,47 +251,52 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
251
251
  showCurrencySymbol: true
252
252
  }))))), ((_mergedDisplayField$c = mergedDisplayField.cashReceived) === null || _mergedDisplayField$c === void 0 ? void 0 : _mergedDisplayField$c.visible) && /*#__PURE__*/React.createElement("div", {
253
253
  style: _objectSpread(_objectSpread({}, getGridStyle(1)), {}, {
254
- padding: '6px 16px',
254
+ padding: '0px 16px',
255
255
  borderRadius: '8px',
256
256
  backgroundColor: 'white',
257
257
  boxShadow: 'inset 0 2px 4px rgba(16, 24, 40, 0.08), inset 0 -2px 4px rgba(16, 24, 40, 0.08), inset 2px 0 4px rgba(16, 24, 40, 0.08), inset -2px 0 4px rgba(16, 24, 40, 0.08)',
258
258
  overflow: 'hidden',
259
259
  maxWidth: 188,
260
260
  cursor: 'pointer',
261
- border: '1px solid #7f56da'
261
+ border: '1px solid #7f56da',
262
+ borderBottom: '1px solid #7f56da'
262
263
  }),
263
264
  onClick: function onClick() {
264
265
  setIsShowModal(true);
265
266
  }
266
- }, /*#__PURE__*/React.createElement(VirtualInput, {
267
- showCursor: false,
268
- focused: true,
269
- wrapperStyle: {
270
- width: '100%'
271
- },
272
- topContent: /*#__PURE__*/React.createElement("div", {
273
- style: {
274
- fontSize: '14px',
275
- color: '#667085'
276
- }
277
- }, mergedDisplayField.cashReceived.label),
278
- value: internalValue ? formatAmountWithOptions(internalValue || '', amountSymbol, {
279
- value: internalValue,
280
- hideDecimalForWholeNumbers: false,
281
- precision: 2,
282
- showCurrencySymbol: true
283
- }) : '',
284
- height: 30,
285
- fontSize: 20,
286
- placeholder: placeholder,
267
+ }, /*#__PURE__*/React.createElement("div", {
268
+ className: "pisell-cash-keyboard-intact-container-top",
269
+ style: _objectSpread(_objectSpread({}, getGridStyle(0)), {}, {
270
+ overflow: 'hidden',
271
+ padding: '5px 0'
272
+ })
273
+ }, /*#__PURE__*/React.createElement("div", {
274
+ className: "pisell-cash-keyboard-intact-container-top-label"
275
+ }, mergedDisplayField.cashReceived.label), /*#__PURE__*/React.createElement("div", {
276
+ className: "pisell-cash-keyboard-intact-container-top-value"
277
+ }, /*#__PURE__*/React.createElement(AutoResizeText, {
278
+ minFontSizePx: 10,
279
+ maxFontSizePx: 18,
280
+ fontSizePrecisionPx: 0.5,
281
+ style: {
282
+ color: '#7f56da',
283
+ textDecoration: 'underline',
284
+ textUnderlineOffset: '3px'
285
+ }
286
+ }, internalValue ? formatAmountWithOptions(internalValue || '', amountSymbol, {
287
+ value: internalValue,
288
+ hideDecimalForWholeNumbers: false,
289
+ precision: 2,
290
+ showCurrencySymbol: true
291
+ }) : ''), /*#__PURE__*/React.createElement(Iconfont, {
292
+ type: "pisell2-edit-05",
287
293
  style: {
288
- fontSize: '24px',
289
- fontWeight: 'bold',
290
- border: 'none',
291
- background: 'transparent',
292
- width: '100%'
294
+ color: '#7f56da',
295
+ fontSize: '18px',
296
+ marginLeft: '4px',
297
+ marginTop: '4px'
293
298
  }
294
- })), ((_mergedDisplayField$c2 = mergedDisplayField.changeDue) === null || _mergedDisplayField$c2 === void 0 ? void 0 : _mergedDisplayField$c2.visible) && /*#__PURE__*/React.createElement("div", {
299
+ })))), ((_mergedDisplayField$c2 = mergedDisplayField.changeDue) === null || _mergedDisplayField$c2 === void 0 ? void 0 : _mergedDisplayField$c2.visible) && /*#__PURE__*/React.createElement("div", {
295
300
  className: "pisell-cash-keyboard-intact-container-top",
296
301
  style: _objectSpread(_objectSpread({}, getGridStyle(2)), {}, {
297
302
  overflow: 'hidden'
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
4
3
  export default Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const GuestOptionsModal: (props: any) => JSX.Element;
4
3
  export default GuestOptionsModal;