@pisell/private-materials 6.3.55 → 6.3.57

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 (302) 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 +2 -2
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/components/appointmentBooking/components/Services/index.js +27 -24
  12. package/es/components/appointmentBooking/components/Voucher/index.js +14 -0
  13. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  14. package/es/components/booking/components/voucher/index.js +29 -9
  15. package/es/components/eftpos/form/index.d.ts +0 -1
  16. package/es/components/eftpos/hooks.d.ts +0 -1
  17. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  18. package/es/components/eftposPay/hooks.d.ts +1 -1
  19. package/es/components/eftposPay/store/index.d.ts +1 -1
  20. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  21. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  22. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  23. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  24. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +165 -145
  25. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  26. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
  27. package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
  28. package/es/components/pay/toC/index.js +65 -31
  29. package/es/components/pay/toC/model.d.ts +1 -0
  30. package/es/components/pay/toC/serve.d.ts +18 -0
  31. package/es/components/pay/toC/serve.js +29 -1
  32. package/es/components/pay/toC/utils.d.ts +2 -2
  33. package/es/components/pay/toC/utils.js +4 -0
  34. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  35. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  36. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  37. package/es/components/ticketBooking/components/timeBar/index.js +9 -12
  38. package/es/components/walletList/index.js +173 -39
  39. package/es/components/walletList/locales.js +12 -3
  40. package/es/components/walletList/serve.d.ts +19 -0
  41. package/es/components/walletList/serve.js +94 -5
  42. package/es/components/walletList/tempHolderSelector/index.d.ts +14 -0
  43. package/es/components/walletList/tempHolderSelector/index.js +196 -0
  44. package/es/components/walletList/tempHolderSelector/index.less +63 -0
  45. package/es/index.d.ts +2 -1
  46. package/es/index.js +3 -2
  47. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
  48. package/es/plus/selectHolder/components/ErrorTip/index.js +14 -0
  49. package/es/plus/selectHolder/components/ErrorTip/index.less +51 -0
  50. package/es/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
  51. package/es/plus/selectHolder/components/HolderItem/index.js +77 -0
  52. package/es/plus/selectHolder/components/HolderItem/index.less +105 -0
  53. package/es/plus/selectHolder/components/HolderList/index.d.ts +30 -0
  54. package/es/plus/selectHolder/components/HolderList/index.js +43 -0
  55. package/es/plus/selectHolder/index.d.ts +7 -0
  56. package/es/plus/selectHolder/index.js +236 -0
  57. package/es/plus/selectHolder/index.less +117 -0
  58. package/es/plus/selectHolder/locales.d.ts +21 -0
  59. package/es/plus/selectHolder/locales.js +20 -0
  60. package/es/plus/selectHolder/types.js +1 -0
  61. package/es/plus/selectHolder/utils.js +16 -0
  62. package/es/plus/walletEditor/WalletEditor.js +60 -2
  63. package/es/plus/walletEditor/locales.js +12 -3
  64. package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  65. package/es/plus/walletPassGallery/components/passList/index.js +17 -5
  66. package/es/plus/walletPassGallery/index.js +223 -41
  67. package/es/plus/walletPassGallery/locales.js +29 -5
  68. package/es/plus/walletPassGallery/serve.d.ts +15 -1
  69. package/es/plus/walletPassGallery/serve.js +59 -2
  70. package/es/plus/walletPassGallery/utils.js +342 -0
  71. package/lib/components/appointmentBooking/components/Services/index.js +5 -2
  72. package/lib/components/appointmentBooking/components/Voucher/index.js +12 -0
  73. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  74. package/lib/components/booking/components/voucher/index.js +29 -6
  75. package/lib/components/eftpos/form/index.d.ts +0 -1
  76. package/lib/components/eftpos/hooks.d.ts +0 -1
  77. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  78. package/lib/components/eftposPay/hooks.d.ts +1 -1
  79. package/lib/components/eftposPay/store/index.d.ts +1 -1
  80. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  81. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  82. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  83. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  84. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -103
  85. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  86. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
  87. package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
  88. package/lib/components/pay/toC/index.js +52 -19
  89. package/lib/components/pay/toC/model.d.ts +1 -0
  90. package/lib/components/pay/toC/serve.d.ts +18 -0
  91. package/lib/components/pay/toC/serve.js +6 -0
  92. package/lib/components/pay/toC/utils.d.ts +2 -2
  93. package/lib/components/pay/toC/utils.js +4 -0
  94. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  95. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  96. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  97. package/lib/components/ticketBooking/components/timeBar/index.js +2 -5
  98. package/lib/components/walletList/index.js +100 -4
  99. package/lib/components/walletList/locales.js +12 -3
  100. package/lib/components/walletList/serve.d.ts +19 -0
  101. package/lib/components/walletList/serve.js +26 -3
  102. package/lib/components/walletList/tempHolderSelector/index.d.ts +14 -0
  103. package/lib/components/walletList/tempHolderSelector/index.js +166 -0
  104. package/lib/components/walletList/tempHolderSelector/index.less +63 -0
  105. package/lib/index.d.ts +2 -1
  106. package/lib/index.js +6 -3
  107. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
  108. package/lib/{components/wallet/PointCard/model.js → plus/selectHolder/components/ErrorTip/index.js} +10 -23
  109. package/lib/plus/selectHolder/components/ErrorTip/index.less +51 -0
  110. package/lib/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
  111. package/lib/plus/selectHolder/components/HolderItem/index.js +101 -0
  112. package/lib/plus/selectHolder/components/HolderItem/index.less +105 -0
  113. package/lib/plus/selectHolder/components/HolderList/index.d.ts +30 -0
  114. package/lib/{components/wallet/components/WalletBar → plus/selectHolder/components/HolderList}/index.js +29 -15
  115. package/lib/plus/selectHolder/index.d.ts +7 -0
  116. package/lib/plus/selectHolder/index.js +202 -0
  117. package/lib/plus/selectHolder/index.less +117 -0
  118. package/lib/plus/selectHolder/locales.d.ts +21 -0
  119. package/lib/{components/wallet/Voucher → plus/selectHolder}/locales.js +15 -15
  120. package/lib/plus/selectHolder/types.js +17 -0
  121. package/lib/{components/wallet/RechargeableCard/serve.js → plus/selectHolder/utils.js} +11 -10
  122. package/lib/plus/walletEditor/WalletEditor.js +53 -0
  123. package/lib/plus/walletEditor/locales.js +12 -3
  124. package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  125. package/lib/plus/walletPassGallery/components/passList/index.js +16 -4
  126. package/lib/plus/walletPassGallery/index.js +154 -27
  127. package/lib/plus/walletPassGallery/locales.js +32 -5
  128. package/lib/plus/walletPassGallery/serve.d.ts +15 -1
  129. package/lib/plus/walletPassGallery/serve.js +17 -5
  130. package/lib/plus/walletPassGallery/utils.js +287 -0
  131. package/lowcode/event-select-holder/meta.ts +2 -2
  132. package/lowcode/select-holder/meta.ts +220 -0
  133. package/lowcode/select-holder/snippets.ts +41 -0
  134. package/package.json +2 -2
  135. package/es/components/booking/info/service/editService/constants.d.ts +0 -1
  136. package/es/components/pay/toC/locales.d.ts +0 -301
  137. package/es/components/pay/toC/status.d.ts +0 -13
  138. package/es/components/systemSettings/registry/locales.d.ts +0 -272
  139. package/es/components/systemSettings/registry/services.d.ts +0 -77
  140. package/es/components/systemSettings/registry/types.d.ts +0 -126
  141. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  142. package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
  143. package/es/components/wallet/Detail/index.d.ts +0 -42
  144. package/es/components/wallet/Detail/index.js +0 -1182
  145. package/es/components/wallet/Detail/index.less +0 -386
  146. package/es/components/wallet/Detail/locales.d.ts +0 -153
  147. package/es/components/wallet/Detail/locales.js +0 -170
  148. package/es/components/wallet/Detail/model.d.ts +0 -13
  149. package/es/components/wallet/Detail/model.js +0 -22
  150. package/es/components/wallet/Detail/serve.d.ts +0 -39
  151. package/es/components/wallet/Detail/serve.js +0 -64
  152. package/es/components/wallet/DetailContext.d.ts +0 -25
  153. package/es/components/wallet/DetailContext.js +0 -162
  154. package/es/components/wallet/DiscountCard/index.d.ts +0 -3
  155. package/es/components/wallet/DiscountCard/index.js +0 -218
  156. package/es/components/wallet/DiscountCard/index.less +0 -9
  157. package/es/components/wallet/DiscountCard/model.d.ts +0 -14
  158. package/es/components/wallet/DiscountCard/model.js +0 -22
  159. package/es/components/wallet/PointCard/index.d.ts +0 -3
  160. package/es/components/wallet/PointCard/index.js +0 -169
  161. package/es/components/wallet/PointCard/index.less +0 -9
  162. package/es/components/wallet/PointCard/model.d.ts +0 -13
  163. package/es/components/wallet/PointCard/model.js +0 -22
  164. package/es/components/wallet/RechargeableCard/index.d.ts +0 -13
  165. package/es/components/wallet/RechargeableCard/index.js +0 -463
  166. package/es/components/wallet/RechargeableCard/index.less +0 -108
  167. package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
  168. package/es/components/wallet/RechargeableCard/model.js +0 -28
  169. package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
  170. package/es/components/wallet/RechargeableCard/serve.js +0 -32
  171. package/es/components/wallet/Voucher/index.d.ts +0 -12
  172. package/es/components/wallet/Voucher/index.js +0 -131
  173. package/es/components/wallet/Voucher/index.less +0 -9
  174. package/es/components/wallet/Voucher/locales.d.ts +0 -21
  175. package/es/components/wallet/Voucher/locales.js +0 -20
  176. package/es/components/wallet/Voucher/model.d.ts +0 -13
  177. package/es/components/wallet/Voucher/model.js +0 -22
  178. package/es/components/wallet/carouselArrow.png +0 -0
  179. package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
  180. package/es/components/wallet/components/FooterButtons/index.js +0 -81
  181. package/es/components/wallet/components/FooterButtons/index.less +0 -91
  182. package/es/components/wallet/components/UsageRules/index.d.ts +0 -23
  183. package/es/components/wallet/components/UsageRules/index.js +0 -147
  184. package/es/components/wallet/components/UsageRules/index.less +0 -157
  185. package/es/components/wallet/components/WalletBar/index.d.ts +0 -8
  186. package/es/components/wallet/components/WalletBar/index.js +0 -19
  187. package/es/components/wallet/components/WalletBar/index.less +0 -36
  188. package/es/components/wallet/components/WalletCard.d.ts +0 -11
  189. package/es/components/wallet/components/WalletCard.js +0 -91
  190. package/es/components/wallet/components/index.d.ts +0 -3
  191. package/es/components/wallet/components/index.js +0 -4
  192. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -33
  193. package/es/components/wallet/hooks/useWalletCard.js +0 -147
  194. package/es/components/wallet/index.d.ts +0 -10
  195. package/es/components/wallet/index.js +0 -807
  196. package/es/components/wallet/index.less +0 -151
  197. package/es/components/wallet/locales.d.ts +0 -132
  198. package/es/components/wallet/locales.js +0 -139
  199. package/es/components/wallet/model.d.ts +0 -37
  200. package/es/components/wallet/model.js +0 -86
  201. package/es/components/wallet/serve.d.ts +0 -150
  202. package/es/components/wallet/serve.js +0 -205
  203. package/es/components/wallet/utils/formatUtils.d.ts +0 -36
  204. package/es/components/wallet/utils/formatUtils.js +0 -73
  205. package/es/components/wallet/utils.d.ts +0 -48
  206. package/es/components/walletList/locales.d.ts +0 -18
  207. package/es/components/walletList/types/index.d.ts +0 -194
  208. package/es/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
  209. package/es/plus/walletEditor/locales.d.ts +0 -126
  210. package/es/plus/walletEditor/types.d.ts +0 -52
  211. package/es/plus/walletPassGallery/locales.d.ts +0 -270
  212. package/es/pro/Login2.0/hooks/index.d.ts +0 -2
  213. package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
  214. package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +0 -39
  215. package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +0 -9
  216. package/es/pro/Login2.0/locales.d.ts +0 -543
  217. package/es/pro/Login2.0/shared/Header.d.ts +0 -11
  218. package/es/pro/Login2.0/shared/registerFlow.d.ts +0 -116
  219. package/es/pro/Login2.0/shared/types.d.ts +0 -232
  220. package/es/pro/Login2.0/types.d.ts +0 -167
  221. package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
  222. package/lib/components/pay/toC/locales.d.ts +0 -301
  223. package/lib/components/pay/toC/status.d.ts +0 -13
  224. package/lib/components/systemSettings/registry/locales.d.ts +0 -272
  225. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  226. package/lib/components/systemSettings/registry/types.d.ts +0 -126
  227. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  228. package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
  229. package/lib/components/wallet/Detail/index.d.ts +0 -42
  230. package/lib/components/wallet/Detail/index.js +0 -874
  231. package/lib/components/wallet/Detail/index.less +0 -386
  232. package/lib/components/wallet/Detail/locales.d.ts +0 -153
  233. package/lib/components/wallet/Detail/locales.js +0 -194
  234. package/lib/components/wallet/Detail/model.d.ts +0 -13
  235. package/lib/components/wallet/Detail/model.js +0 -43
  236. package/lib/components/wallet/Detail/serve.d.ts +0 -39
  237. package/lib/components/wallet/Detail/serve.js +0 -44
  238. package/lib/components/wallet/DetailContext.d.ts +0 -25
  239. package/lib/components/wallet/DetailContext.js +0 -118
  240. package/lib/components/wallet/DiscountCard/index.d.ts +0 -3
  241. package/lib/components/wallet/DiscountCard/index.js +0 -209
  242. package/lib/components/wallet/DiscountCard/index.less +0 -9
  243. package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
  244. package/lib/components/wallet/DiscountCard/model.js +0 -43
  245. package/lib/components/wallet/PointCard/index.d.ts +0 -3
  246. package/lib/components/wallet/PointCard/index.js +0 -190
  247. package/lib/components/wallet/PointCard/index.less +0 -9
  248. package/lib/components/wallet/PointCard/model.d.ts +0 -13
  249. package/lib/components/wallet/RechargeableCard/index.d.ts +0 -13
  250. package/lib/components/wallet/RechargeableCard/index.js +0 -380
  251. package/lib/components/wallet/RechargeableCard/index.less +0 -108
  252. package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
  253. package/lib/components/wallet/RechargeableCard/model.js +0 -49
  254. package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
  255. package/lib/components/wallet/Voucher/index.d.ts +0 -12
  256. package/lib/components/wallet/Voucher/index.js +0 -146
  257. package/lib/components/wallet/Voucher/index.less +0 -9
  258. package/lib/components/wallet/Voucher/locales.d.ts +0 -21
  259. package/lib/components/wallet/Voucher/model.d.ts +0 -13
  260. package/lib/components/wallet/Voucher/model.js +0 -43
  261. package/lib/components/wallet/carouselArrow.png +0 -0
  262. package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
  263. package/lib/components/wallet/components/FooterButtons/index.js +0 -109
  264. package/lib/components/wallet/components/FooterButtons/index.less +0 -91
  265. package/lib/components/wallet/components/UsageRules/index.d.ts +0 -23
  266. package/lib/components/wallet/components/UsageRules/index.js +0 -113
  267. package/lib/components/wallet/components/UsageRules/index.less +0 -157
  268. package/lib/components/wallet/components/WalletBar/index.d.ts +0 -8
  269. package/lib/components/wallet/components/WalletBar/index.less +0 -36
  270. package/lib/components/wallet/components/WalletCard.d.ts +0 -11
  271. package/lib/components/wallet/components/WalletCard.js +0 -97
  272. package/lib/components/wallet/components/index.d.ts +0 -3
  273. package/lib/components/wallet/components/index.js +0 -45
  274. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -33
  275. package/lib/components/wallet/hooks/useWalletCard.js +0 -111
  276. package/lib/components/wallet/index.d.ts +0 -10
  277. package/lib/components/wallet/index.js +0 -580
  278. package/lib/components/wallet/index.less +0 -151
  279. package/lib/components/wallet/locales.d.ts +0 -132
  280. package/lib/components/wallet/locales.js +0 -163
  281. package/lib/components/wallet/model.d.ts +0 -37
  282. package/lib/components/wallet/model.js +0 -91
  283. package/lib/components/wallet/serve.d.ts +0 -150
  284. package/lib/components/wallet/serve.js +0 -85
  285. package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
  286. package/lib/components/wallet/utils/formatUtils.js +0 -73
  287. package/lib/components/wallet/utils.d.ts +0 -48
  288. package/lib/components/walletList/locales.d.ts +0 -18
  289. package/lib/components/walletList/types/index.d.ts +0 -194
  290. package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
  291. package/lib/plus/walletEditor/locales.d.ts +0 -126
  292. package/lib/plus/walletEditor/types.d.ts +0 -52
  293. package/lib/plus/walletPassGallery/locales.d.ts +0 -270
  294. package/lib/pro/Login2.0/hooks/index.d.ts +0 -2
  295. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
  296. package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +0 -39
  297. package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +0 -9
  298. package/lib/pro/Login2.0/locales.d.ts +0 -543
  299. package/lib/pro/Login2.0/shared/Header.d.ts +0 -11
  300. package/lib/pro/Login2.0/shared/registerFlow.d.ts +0 -116
  301. package/lib/pro/Login2.0/shared/types.d.ts +0 -232
  302. package/lib/pro/Login2.0/types.d.ts +0 -167
@@ -1,157 +0,0 @@
1
- .usage-rules {
2
- padding: 16px;
3
- background: #ffffff;
4
- border-radius: 8px;
5
- border: 1px solid #f0f0f0;
6
- margin-top: 16px;
7
- margin-bottom: 20px;
8
-
9
- // 确保所有Text组件都是块级元素
10
- .ant-typography {
11
- display: block !important;
12
- width: 100% !important;
13
- margin-bottom: 0 !important;
14
- }
15
-
16
- &-title {
17
- font-size: 18px;
18
- font-weight: 600;
19
- color: #000000;
20
- line-height: 24px;
21
- margin-bottom: 8px;
22
- display: block;
23
- width: 100%;
24
- }
25
-
26
- &-subtitle {
27
- font-size: 14px;
28
- color: #6B7280;
29
- line-height: 20px;
30
- margin-bottom: 24px;
31
- display: block;
32
- width: 100%;
33
- }
34
-
35
- &-section {
36
- margin-bottom: 24px;
37
-
38
- &:last-child {
39
- margin-bottom: 0;
40
- }
41
-
42
- &-title {
43
- font-size: 16px;
44
- font-weight: 500;
45
- color: #6B7280;
46
- line-height: 20px;
47
- margin-bottom: 16px;
48
- display: block;
49
- width: 100%;
50
- }
51
- }
52
-
53
- &-list {
54
- display: flex;
55
- flex-direction: column;
56
- gap: 16px;
57
- }
58
-
59
- &-item {
60
- position: relative;
61
- display: flex;
62
- align-items: flex-start;
63
-
64
- &::before {
65
- content: '•';
66
- color: #697281;
67
- font-size: 16px;
68
- line-height: 20px;
69
- font-weight: bold;
70
- margin-right: 8px;
71
- flex-shrink: 0;
72
- margin-top: 0;
73
- }
74
-
75
- &-content {
76
- flex: 1;
77
- min-width: 0;
78
- }
79
-
80
- &-main-line {
81
- margin-bottom: 4px;
82
- }
83
-
84
- &-label {
85
- font-size: 14px;
86
- font-weight: 600;
87
- color: #000000;
88
- line-height: 20px;
89
- display: inline;
90
- margin-right: 4px;
91
- }
92
-
93
- &-description {
94
- font-size: 14px;
95
- color: #000000;
96
- line-height: 20px;
97
- display: inline;
98
- word-wrap: break-word;
99
- }
100
-
101
- &-reset {
102
- font-size: 14px;
103
- color: #000000;
104
- line-height: 20px;
105
- display: block;
106
- width: 100%;
107
- }
108
-
109
- &-note {
110
- font-size: 14px;
111
- color: #000000;
112
- line-height: 20px;
113
- margin-top: 4px;
114
- display: block;
115
- width: 100%;
116
- }
117
- }
118
-
119
- }
120
-
121
- // 响应式设计
122
- @media (max-width: 768px) {
123
- .usage-rules {
124
- padding: 12px;
125
- margin-top: 12px;
126
-
127
- &-title {
128
- font-size: 16px;
129
- }
130
-
131
- &-subtitle {
132
- font-size: 13px;
133
- }
134
-
135
- &-section {
136
- margin-bottom: 20px;
137
-
138
- &-title {
139
- font-size: 15px;
140
- }
141
- }
142
-
143
- &-item {
144
- &::before {
145
- font-size: 14px;
146
- margin-right: 6px;
147
- }
148
-
149
- &-label,
150
- &-description,
151
- &-reset,
152
- &-note {
153
- font-size: 13px;
154
- }
155
- }
156
- }
157
- }
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface WalletBarProps {
4
- setup?: 'menu' | 'list' | 'detail';
5
- onBack?: () => void;
6
- }
7
- declare const WalletBar: React.FC<WalletBarProps>;
8
- export default WalletBar;
@@ -1,36 +0,0 @@
1
- .pisell-lowcode-wallet-bar {
2
- height: 44px;
3
- display: flex;
4
- align-items: center;
5
- padding: 0 0;
6
- background: #fff;
7
- font-size: 16px;
8
- font-weight: 500;
9
- color: #101828;
10
- border-bottom: 1px solid #EAECF0;
11
- position: fixed;
12
- top: 0;
13
- left: 0;
14
- right: 0;
15
- z-index: 100;
16
- transform: translateZ(0); // 强制创建新的层叠上下文
17
-
18
- .pisell-lowcode-wallet-header-bar-arrow {
19
- width: 24px;
20
- height: 24px;
21
- display: flex;
22
- align-items: center;
23
- justify-content: center;
24
- font-size: 20px;
25
- cursor: pointer;
26
- }
27
-
28
- .header-title {
29
- flex: 1;
30
- text-align: center;
31
- font-size: 16px;
32
- font-weight: 500;
33
- line-height: 24px;
34
- margin-left: -24px; // 抵消返回按钮宽度,保持文字居中
35
- }
36
- }
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { IWalletListItemProps } from '../serve';
3
- export interface WalletCardProps {
4
- item: IWalletListItemProps;
5
- currentId?: string | number;
6
- isDiscountCard?: boolean;
7
- onClick?: () => void;
8
- balanceTitle?: string;
9
- }
10
- declare const _default: React.NamedExoticComponent<WalletCardProps>;
11
- export default _default;
@@ -1,97 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/components/wallet/components/WalletCard.tsx
30
- var WalletCard_exports = {};
31
- __export(WalletCard_exports, {
32
- default: () => WalletCard_default
33
- });
34
- module.exports = __toCommonJS(WalletCard_exports);
35
- var import_react = __toESM(require("react"));
36
- var import_materials = require("@pisell/materials");
37
- var import_utils = require("@pisell/utils");
38
- var WalletCard = ({
39
- item,
40
- currentId,
41
- isDiscountCard = false,
42
- onClick,
43
- balanceTitle
44
- }) => {
45
- const {
46
- id,
47
- tag,
48
- product_title = "",
49
- balance = 0,
50
- code = "",
51
- encoded = "",
52
- expire_date = "",
53
- shop = { name: "" },
54
- limit_status,
55
- product_cover = "",
56
- par_value = "",
57
- unified_messages = {},
58
- custom_schedule_snapshot,
59
- metadata,
60
- ...rest
61
- } = item;
62
- const platform = (0, import_react.useMemo)(() => (0, import_utils.isMobile)() ? "h5" : "pc", []);
63
- const { title: disabledReason = "" } = unified_messages;
64
- const { name: storeName = "" } = shop;
65
- const isActive = id === currentId && platform === "pc";
66
- const isDisabled = limit_status !== "enable";
67
- return /* @__PURE__ */ import_react.default.createElement(
68
- import_materials.PisellWalletPassCard,
69
- {
70
- ...rest,
71
- scheduleList: (custom_schedule_snapshot == null ? void 0 : custom_schedule_snapshot.data) || [],
72
- validDateBySchedule: (metadata == null ? void 0 : metadata.validity_type) === "custom_schedule_validity",
73
- balanceTitle,
74
- showDetail: false,
75
- showRedeem: false,
76
- showQrCode: true,
77
- showBalance: !isDiscountCard,
78
- cover: product_cover,
79
- disabled: isDisabled,
80
- showDisabledReason: isDisabled,
81
- disabledReason,
82
- style: { marginBottom: 16, width: "100%" },
83
- showBalanceSymbol: !["point_card", "good_pass"].includes(tag),
84
- active: isActive,
85
- name: product_title,
86
- qrCode: code,
87
- storeName,
88
- balance: Number(balance),
89
- discount: isDiscountCard ? Number(par_value) : void 0,
90
- showDiscount: isDiscountCard,
91
- code: encoded,
92
- validDate: expire_date,
93
- onClick
94
- }
95
- );
96
- };
97
- var WalletCard_default = import_react.default.memo(WalletCard);
@@ -1,3 +0,0 @@
1
- export { default as WalletBar } from './WalletBar';
2
- export { default as FooterButtons } from './FooterButtons';
3
- export { default as UsageRules } from './UsageRules';
@@ -1,45 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/components/wallet/components/index.ts
30
- var components_exports = {};
31
- __export(components_exports, {
32
- FooterButtons: () => import_FooterButtons.default,
33
- UsageRules: () => import_UsageRules.default,
34
- WalletBar: () => import_WalletBar.default
35
- });
36
- module.exports = __toCommonJS(components_exports);
37
- var import_WalletBar = __toESM(require("./WalletBar"));
38
- var import_FooterButtons = __toESM(require("./FooterButtons"));
39
- var import_UsageRules = __toESM(require("./UsageRules"));
40
- // Annotate the CommonJS export names for ESM import in node:
41
- 0 && (module.exports = {
42
- FooterButtons,
43
- UsageRules,
44
- WalletBar
45
- });
@@ -1,33 +0,0 @@
1
- import { IWalletListItemProps } from '../serve';
2
- /**
3
- * 钱包卡片Hook的参数
4
- */
5
- export interface UseWalletCardParams {
6
- globalState: any;
7
- setGlobalState: (state: any) => void;
8
- walletContext: any;
9
- cardList: IWalletListItemProps[];
10
- cardType: string;
11
- isDiscountCard?: boolean;
12
- valueField?: string;
13
- setupValue?: 'menu' | 'list' | 'detail';
14
- }
15
- /**
16
- * 钱包卡片Hook
17
- * 封装了钱包卡片组件的通用逻辑
18
- */
19
- export declare function useWalletCard({ globalState, setGlobalState, walletContext, cardList, cardType, isDiscountCard, valueField, setupValue }: UseWalletCardParams): {
20
- platform: string;
21
- currentId: any;
22
- currentDetail: any;
23
- isEmpty: boolean;
24
- state: any;
25
- dispatch: any;
26
- handleRowClick: (detail: IWalletListItemProps) => void;
27
- renderCardDetail: () => import("react").ReactNode;
28
- formatData: () => {
29
- title: any;
30
- dataSource: IWalletListItemProps[];
31
- }[];
32
- };
33
- export default useWalletCard;
@@ -1,111 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/components/wallet/hooks/useWalletCard.ts
20
- var useWalletCard_exports = {};
21
- __export(useWalletCard_exports, {
22
- default: () => useWalletCard_default,
23
- useWalletCard: () => useWalletCard
24
- });
25
- module.exports = __toCommonJS(useWalletCard_exports);
26
- var import_react = require("react");
27
- var import_utils = require("@pisell/utils");
28
- var import_formatUtils = require("../utils/formatUtils");
29
- var import_DetailContext = require("../DetailContext");
30
- function useWalletCard({
31
- globalState,
32
- setGlobalState,
33
- walletContext,
34
- cardList,
35
- cardType,
36
- isDiscountCard = false,
37
- valueField = "balance",
38
- setupValue = "detail"
39
- }) {
40
- const { state, dispatch } = walletContext;
41
- const { currentId, currentDetail } = globalState;
42
- const { openDetail, renderDetail } = (0, import_DetailContext.useDetail)();
43
- const platform = (0, import_react.useMemo)(() => (0, import_utils.isMobile)() ? "h5" : "pc", []);
44
- (0, import_react.useEffect)(() => {
45
- const total = (0, import_formatUtils.calculateTotalValue)(cardList, valueField);
46
- dispatch({
47
- type: "setState",
48
- payload: { total }
49
- });
50
- }, [cardList, dispatch, valueField]);
51
- (0, import_react.useEffect)(() => {
52
- if (currentId) {
53
- const detail = cardList.find((item) => item.id === currentId);
54
- if (detail) {
55
- dispatch({
56
- type: "setState",
57
- payload: { currentDetail: detail }
58
- });
59
- }
60
- }
61
- }, [currentId, cardList, dispatch]);
62
- const handleRowClick = (detail) => {
63
- setGlobalState({
64
- currentId: detail.id || "",
65
- currentDetail: detail,
66
- setup: platform === "h5" ? setupValue : void 0
67
- // 设置状态为detail
68
- });
69
- const detailToOpen = {
70
- ...detail,
71
- isDiscoundCard: isDiscountCard,
72
- showWalletBar: platform === "h5",
73
- // 添加显示WalletBar的标志
74
- onBack: () => {
75
- setGlobalState({ setup: "list" });
76
- }
77
- };
78
- openDetail(detailToOpen);
79
- };
80
- const renderCardDetail = () => {
81
- if (!(currentDetail == null ? void 0 : currentDetail.id)) return null;
82
- const detailToRender = {
83
- ...currentDetail,
84
- isDiscoundCard: isDiscountCard,
85
- showWalletBar: platform === "h5",
86
- // 添加显示WalletBar的标志
87
- onBack: () => {
88
- setGlobalState({ setup: "list" });
89
- }
90
- };
91
- return renderDetail(detailToRender);
92
- };
93
- const formatData = () => (0, import_formatUtils.formatDataToGroups)(cardList);
94
- const isEmpty = !(0, import_formatUtils.hasAvailableCards)(cardList);
95
- return {
96
- platform,
97
- currentId,
98
- currentDetail,
99
- isEmpty,
100
- state,
101
- dispatch,
102
- handleRowClick,
103
- renderCardDetail,
104
- formatData
105
- };
106
- }
107
- var useWalletCard_default = useWalletCard;
108
- // Annotate the CommonJS export names for ESM import in node:
109
- 0 && (module.exports = {
110
- useWalletCard
111
- });
@@ -1,10 +0,0 @@
1
- import './index.less';
2
- import { DetailProvider, useDetail } from './DetailContext';
3
- export { default as WalletCard } from './components/WalletCard';
4
- export * from './utils/formatUtils';
5
- export * from './hooks/useWalletCard';
6
- export * from './serve';
7
- export * from './model';
8
- export { DetailProvider, useDetail };
9
- declare const Wallet: any;
10
- export default Wallet;