@pisell/private-materials 6.7.9 → 6.8.1

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 (421) 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 +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/Voucher/index.js +2 -1
  12. package/es/components/booking/addons/index.js +25 -17
  13. package/es/components/booking/components/footer/amount.d.ts +1 -0
  14. package/es/components/booking/components/footer/amount.js +548 -84
  15. package/es/components/booking/components/footer/index.js +77 -56
  16. package/es/components/booking/components/footer/utils.d.ts +19 -0
  17. package/es/components/booking/components/footer/utils.js +194 -73
  18. package/es/components/booking/components/voucher/index.js +23 -7
  19. package/es/components/booking/hooks/useQuotation.js +4 -1
  20. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  21. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  22. package/es/components/booking/info/service2/utils.js +1 -0
  23. package/es/components/booking/info2/cartClientCard/index.js +30 -6
  24. package/es/components/booking/info2/index.js +1 -1
  25. package/es/components/booking/info2/service/addService/index.js +2 -3
  26. package/es/components/booking/info2/service/editNormalService/index.js +6 -0
  27. package/es/components/booking/info2/service/editService/index.js +16 -6
  28. package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
  29. package/es/components/booking/info2/service/editService/utils.js +66 -0
  30. package/es/components/booking/utils.d.ts +1 -0
  31. package/es/components/booking/utils.js +16 -3
  32. package/es/components/checkout/PaymentModal.d.ts +13 -5
  33. package/es/components/checkout/PaymentModal.js +304 -252
  34. package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  35. package/es/components/checkout/components/AdditionalModule/index.js +52 -12
  36. package/es/components/checkout/components/AmountSummary/index.js +9 -76
  37. package/es/components/checkout/components/AmountSummary/index.less +5 -6
  38. package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  39. package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
  40. package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
  41. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  42. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
  43. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
  44. package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
  45. package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  46. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
  47. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
  48. package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
  49. package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
  50. package/es/components/checkout/components/SearchAndClientModule/index.js +39 -40
  51. package/es/components/checkout/index.less +1 -1
  52. package/es/components/checkout/locales.d.ts +6 -0
  53. package/es/components/checkout/locales.js +6 -0
  54. package/es/components/checkout/plugin.d.ts +2 -0
  55. package/es/components/checkout/plugin.js +303 -0
  56. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
  57. package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  58. package/es/components/eftpos/hooks.d.ts +0 -1
  59. package/es/components/eftposPay/hooks.d.ts +1 -1
  60. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
  61. package/es/components/eftposPay/payo/config.js +70 -32
  62. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  63. package/es/components/eftposPay/payo/payment.js +579 -0
  64. package/es/components/eftposPay/store/index.d.ts +4 -4
  65. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  66. package/es/components/eftposPay/tyro/index.js +12 -0
  67. package/es/components/eftposPay/utils/log/index.d.ts +110 -0
  68. package/es/components/eftposPay/utils/log/index.js +371 -0
  69. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  70. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  71. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  72. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  73. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  74. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  75. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  76. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  77. package/es/components/index.d.ts +2 -1
  78. package/es/components/index.js +2 -1
  79. package/es/components/list/List.js +99 -56
  80. package/es/components/list/hooks/useListState.d.ts +5 -3
  81. package/es/components/list/hooks/useListState.js +10 -2
  82. package/es/components/list/styles/base.less +4 -0
  83. package/es/components/list/styles/content.less +1 -1
  84. package/es/components/list/styles/header.less +4 -4
  85. package/es/components/list/types.d.ts +1 -0
  86. package/es/components/list/utils/index.d.ts +13 -1
  87. package/es/components/list/utils/index.js +43 -1
  88. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +14 -12
  89. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  90. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  91. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  92. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  93. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  94. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +2 -0
  95. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  96. package/es/components/pay/toC/index.js +7 -4
  97. package/es/components/pay/toC/locales.d.ts +3 -0
  98. package/es/components/pay/toC/locales.js +6 -3
  99. package/es/components/pay/toC/status.d.ts +1 -0
  100. package/es/components/pay/toC/status.js +3 -0
  101. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  102. package/es/components/subTotal/index.js +1 -1
  103. package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  104. package/es/components/{checkout/PaymentPlugin.js → systemSettings/registry/components/GroupModal.js} +132 -171
  105. package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  106. package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
  107. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  108. package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
  109. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  110. package/es/components/systemSettings/registry/components/SectionList.js +174 -0
  111. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  112. package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
  113. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  114. package/es/components/systemSettings/registry/components/index.js +4 -0
  115. package/es/components/systemSettings/registry/index.d.ts +5 -0
  116. package/es/components/systemSettings/registry/index.js +1059 -0
  117. package/es/components/systemSettings/registry/index.less +410 -0
  118. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  119. package/es/components/systemSettings/registry/locales.js +300 -0
  120. package/es/components/systemSettings/registry/services.d.ts +77 -0
  121. package/es/components/systemSettings/registry/services.js +472 -0
  122. package/es/components/systemSettings/registry/types.d.ts +126 -0
  123. package/es/components/systemSettings/registry/types.js +1 -0
  124. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  125. package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
  126. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  127. package/es/components/systemSettings/registry/utils/validators.js +44 -0
  128. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +58 -11
  129. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +28 -1
  130. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +35 -2
  131. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +149 -36
  132. package/es/components/ticketBooking/components/addServiceVariant/addService.js +2 -86
  133. package/es/components/ticketBooking/components/menuBar/index.js +109 -12
  134. package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
  135. package/es/components/ticketBooking/components/timeBar/index.js +112 -7
  136. package/es/components/ticketBooking/components/timeBar/index.less +59 -0
  137. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +29 -18
  138. package/es/components/ticketBooking/locales.d.ts +9 -0
  139. package/es/components/ticketBooking/locales.js +12 -3
  140. package/es/components/ticketBooking/utils/index.d.ts +3 -0
  141. package/es/components/ticketBooking/utils/index.js +36 -13
  142. package/es/components/wallet/Detail/index.js +34 -2
  143. package/es/components/wallet/Detail/index.less +11 -0
  144. package/es/components/wallet/Detail/locales.d.ts +6 -0
  145. package/es/components/wallet/Detail/locales.js +14 -2
  146. package/es/components/wallet/Voucher/index.js +11 -10
  147. package/es/components/wallet/components/WalletCard.js +5 -1
  148. package/es/components/wallet/index.js +4 -2
  149. package/es/components/wallet/serve.d.ts +7 -0
  150. package/es/components/wallet/utils.d.ts +48 -0
  151. package/es/components/wallet/utils.js +342 -0
  152. package/es/index.d.ts +5 -0
  153. package/es/index.js +6 -1
  154. package/es/plus/clientCard/locales.js +3 -3
  155. package/es/plus/clinetSearch/index.js +28 -30
  156. package/es/plus/clinetSearch/locales.d.ts +3 -0
  157. package/es/plus/clinetSearch/locales.js +7 -4
  158. package/es/plus/clinetSearch/types.d.ts +12 -0
  159. package/es/plus/productSelect/CategoryTabs/index.d.ts +1 -0
  160. package/es/plus/productSelect/CategoryTabs/index.js +2 -1
  161. package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
  162. package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
  163. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  164. package/es/plus/walletPassGallery/components/passDetail/index.js +84 -31
  165. package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
  166. package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
  167. package/es/plus/walletPassGallery/index.js +7 -3
  168. package/es/plus/walletPassGallery/serve.d.ts +3 -0
  169. package/es/plus/walletPassGallery/serve.js +4 -2
  170. package/es/pro/Login2.0/index.less +15 -8
  171. package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  172. package/es/pro/Selector/BatchSelectorDemo.js +470 -0
  173. package/es/pro/Selector/Selector.d.ts +5 -0
  174. package/es/pro/Selector/Selector.js +283 -0
  175. package/es/pro/Selector/SelectorGroup.d.ts +11 -0
  176. package/es/pro/Selector/SelectorGroup.js +537 -0
  177. package/es/pro/Selector/components/Card/index.d.ts +27 -0
  178. package/es/pro/Selector/components/Card/index.js +96 -0
  179. package/es/pro/Selector/components/Card/index.less +132 -0
  180. package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  181. package/es/pro/Selector/components/IntersectionObserver.js +384 -0
  182. package/es/pro/Selector/components/NumericStepper/index.d.ts +41 -0
  183. package/es/pro/Selector/components/NumericStepper/index.js +198 -0
  184. package/es/pro/Selector/components/NumericStepper/index.less +221 -0
  185. package/es/pro/Selector/components/index.d.ts +2 -0
  186. package/es/pro/Selector/components/index.js +2 -0
  187. package/es/pro/Selector/demo.d.ts +3 -0
  188. package/es/pro/Selector/demo.js +158 -0
  189. package/es/pro/Selector/hooks/useSelectionController.d.ts +42 -0
  190. package/es/pro/Selector/hooks/useSelectionController.js +414 -0
  191. package/es/pro/Selector/index.d.ts +8 -0
  192. package/es/pro/Selector/index.js +5 -0
  193. package/es/pro/Selector/locales.d.ts +42 -0
  194. package/es/pro/Selector/locales.js +80 -0
  195. package/es/pro/Selector/selector.less +3 -0
  196. package/es/pro/Selector/selectorGroup.less +8 -0
  197. package/es/pro/Selector/types.d.ts +114 -0
  198. package/es/pro/Selector/types.js +1 -0
  199. package/es/pro/Selector/utils/index.d.ts +49 -0
  200. package/es/pro/Selector/utils/index.js +229 -0
  201. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  202. package/es/pro/comprehensiveSearch/locales.js +1 -1
  203. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +45 -36
  204. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  205. package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
  206. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
  207. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
  208. package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  209. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
  210. package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
  211. package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  212. package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
  213. package/lib/components/booking/addons/index.js +15 -7
  214. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  215. package/lib/components/booking/components/footer/amount.js +293 -41
  216. package/lib/components/booking/components/footer/index.js +30 -11
  217. package/lib/components/booking/components/footer/utils.d.ts +19 -0
  218. package/lib/components/booking/components/footer/utils.js +138 -41
  219. package/lib/components/booking/components/voucher/index.js +25 -9
  220. package/lib/components/booking/hooks/useQuotation.js +2 -1
  221. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  222. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  223. package/lib/components/booking/info/service2/utils.js +1 -0
  224. package/lib/components/booking/info2/cartClientCard/index.js +25 -5
  225. package/lib/components/booking/info2/index.js +7 -2
  226. package/lib/components/booking/info2/service/addService/index.js +1 -2
  227. package/lib/components/booking/info2/service/editNormalService/index.js +6 -0
  228. package/lib/components/booking/info2/service/editService/index.js +12 -3
  229. package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
  230. package/lib/components/booking/info2/service/editService/utils.js +40 -3
  231. package/lib/components/booking/utils.d.ts +1 -0
  232. package/lib/components/booking/utils.js +11 -0
  233. package/lib/components/checkout/PaymentModal.d.ts +13 -5
  234. package/lib/components/checkout/PaymentModal.js +190 -147
  235. package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  236. package/lib/components/checkout/components/AdditionalModule/index.js +52 -11
  237. package/lib/components/checkout/components/AmountSummary/index.js +5 -46
  238. package/lib/components/checkout/components/AmountSummary/index.less +5 -6
  239. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  240. package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
  241. package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
  242. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  243. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
  244. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
  245. package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
  246. package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  247. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
  248. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
  249. package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
  250. package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
  251. package/lib/components/checkout/components/SearchAndClientModule/index.js +29 -3
  252. package/lib/components/checkout/index.less +1 -1
  253. package/lib/components/checkout/locales.d.ts +6 -0
  254. package/lib/components/checkout/locales.js +6 -0
  255. package/lib/components/checkout/plugin.d.ts +2 -0
  256. package/lib/components/checkout/plugin.js +263 -0
  257. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
  258. package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  259. package/lib/components/eftpos/hooks.d.ts +0 -1
  260. package/lib/components/eftposPay/hooks.d.ts +1 -1
  261. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
  262. package/lib/components/eftposPay/payo/config.js +98 -73
  263. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  264. package/lib/components/eftposPay/payo/payment.js +357 -0
  265. package/lib/components/eftposPay/store/index.d.ts +4 -4
  266. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  267. package/lib/components/eftposPay/tyro/index.js +12 -0
  268. package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
  269. package/lib/components/eftposPay/utils/log/index.js +294 -0
  270. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  271. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  272. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  273. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  274. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  275. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  276. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  277. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  278. package/lib/components/index.d.ts +2 -1
  279. package/lib/components/index.js +3 -0
  280. package/lib/components/list/List.js +58 -36
  281. package/lib/components/list/hooks/useListState.d.ts +5 -3
  282. package/lib/components/list/hooks/useListState.js +9 -1
  283. package/lib/components/list/styles/base.less +4 -0
  284. package/lib/components/list/styles/content.less +1 -1
  285. package/lib/components/list/styles/header.less +4 -4
  286. package/lib/components/list/types.d.ts +1 -0
  287. package/lib/components/list/utils/index.d.ts +13 -1
  288. package/lib/components/list/utils/index.js +27 -0
  289. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +14 -12
  290. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  291. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  292. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  293. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  294. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  295. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
  296. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  297. package/lib/components/pay/toC/index.js +4 -1
  298. package/lib/components/pay/toC/locales.d.ts +3 -0
  299. package/lib/components/pay/toC/locales.js +6 -3
  300. package/lib/components/pay/toC/status.d.ts +1 -0
  301. package/lib/components/pay/toC/status.js +5 -0
  302. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  303. package/lib/components/subTotal/index.js +1 -1
  304. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  305. package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
  306. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  307. package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
  308. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  309. package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
  310. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  311. package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
  312. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  313. package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
  314. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  315. package/lib/components/systemSettings/registry/components/index.js +48 -0
  316. package/lib/components/systemSettings/registry/index.d.ts +5 -0
  317. package/lib/components/systemSettings/registry/index.js +529 -0
  318. package/lib/components/systemSettings/registry/index.less +410 -0
  319. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  320. package/lib/components/systemSettings/registry/locales.js +324 -0
  321. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  322. package/lib/components/systemSettings/registry/services.js +290 -0
  323. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  324. package/lib/components/systemSettings/registry/types.js +17 -0
  325. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  326. package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
  327. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  328. package/lib/components/systemSettings/registry/utils/validators.js +54 -0
  329. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +40 -5
  330. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +28 -1
  331. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +35 -2
  332. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +93 -24
  333. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
  334. package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
  335. package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
  336. package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
  337. package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
  338. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +17 -13
  339. package/lib/components/ticketBooking/locales.d.ts +9 -0
  340. package/lib/components/ticketBooking/locales.js +12 -3
  341. package/lib/components/ticketBooking/utils/index.d.ts +3 -0
  342. package/lib/components/ticketBooking/utils/index.js +20 -6
  343. package/lib/components/wallet/Detail/index.js +31 -3
  344. package/lib/components/wallet/Detail/index.less +11 -0
  345. package/lib/components/wallet/Detail/locales.d.ts +6 -0
  346. package/lib/components/wallet/Detail/locales.js +14 -2
  347. package/lib/components/wallet/Voucher/index.js +8 -8
  348. package/lib/components/wallet/components/WalletCard.js +4 -0
  349. package/lib/components/wallet/index.js +2 -2
  350. package/lib/components/wallet/serve.d.ts +7 -0
  351. package/lib/components/wallet/utils.d.ts +48 -0
  352. package/lib/components/wallet/utils.js +287 -0
  353. package/lib/index.d.ts +5 -0
  354. package/lib/index.js +15 -0
  355. package/lib/plus/clientCard/locales.js +3 -3
  356. package/lib/plus/clinetSearch/index.js +17 -8
  357. package/lib/plus/clinetSearch/locales.d.ts +3 -0
  358. package/lib/plus/clinetSearch/locales.js +7 -4
  359. package/lib/plus/clinetSearch/types.d.ts +12 -0
  360. package/lib/plus/productSelect/CategoryTabs/index.d.ts +1 -0
  361. package/lib/plus/productSelect/CategoryTabs/index.js +2 -1
  362. package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
  363. package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
  364. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  365. package/lib/plus/walletPassGallery/components/passDetail/index.js +54 -15
  366. package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
  367. package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
  368. package/lib/plus/walletPassGallery/index.js +7 -3
  369. package/lib/plus/walletPassGallery/serve.d.ts +3 -0
  370. package/lib/plus/walletPassGallery/serve.js +3 -2
  371. package/lib/pro/Login2.0/index.less +15 -8
  372. package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  373. package/lib/pro/Selector/BatchSelectorDemo.js +376 -0
  374. package/lib/pro/Selector/Selector.d.ts +5 -0
  375. package/lib/pro/Selector/Selector.js +264 -0
  376. package/lib/pro/Selector/SelectorGroup.d.ts +11 -0
  377. package/lib/pro/Selector/SelectorGroup.js +463 -0
  378. package/lib/pro/Selector/components/Card/index.d.ts +27 -0
  379. package/lib/pro/Selector/components/Card/index.js +114 -0
  380. package/lib/pro/Selector/components/Card/index.less +132 -0
  381. package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  382. package/lib/pro/Selector/components/IntersectionObserver.js +281 -0
  383. package/lib/pro/Selector/components/NumericStepper/index.d.ts +41 -0
  384. package/lib/pro/Selector/components/NumericStepper/index.js +221 -0
  385. package/lib/pro/Selector/components/NumericStepper/index.less +221 -0
  386. package/lib/pro/Selector/components/index.d.ts +2 -0
  387. package/lib/pro/Selector/components/index.js +42 -0
  388. package/lib/pro/Selector/demo.d.ts +3 -0
  389. package/lib/pro/Selector/demo.js +102 -0
  390. package/lib/pro/Selector/hooks/useSelectionController.d.ts +42 -0
  391. package/lib/pro/Selector/hooks/useSelectionController.js +338 -0
  392. package/lib/pro/Selector/index.d.ts +8 -0
  393. package/lib/pro/Selector/index.js +39 -0
  394. package/lib/pro/Selector/locales.d.ts +42 -0
  395. package/lib/pro/Selector/locales.js +80 -0
  396. package/lib/pro/Selector/selector.less +3 -0
  397. package/lib/pro/Selector/selectorGroup.less +8 -0
  398. package/lib/pro/Selector/types.d.ts +114 -0
  399. package/lib/pro/Selector/types.js +17 -0
  400. package/lib/pro/Selector/utils/index.d.ts +49 -0
  401. package/lib/pro/Selector/utils/index.js +221 -0
  402. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  403. package/lib/pro/comprehensiveSearch/locales.js +1 -1
  404. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +42 -43
  405. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  406. package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
  407. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
  408. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
  409. package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  410. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
  411. package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
  412. package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  413. package/lowcode/payment-modal/meta.ts +135 -0
  414. package/lowcode/selector/meta.ts +352 -0
  415. package/lowcode/selector.group/meta.ts +200 -0
  416. package/lowcode/settings-registry/meta.ts +29 -0
  417. package/lowcode/wallet-pass-detail/meta.ts +89 -0
  418. package/package.json +4 -4
  419. package/es/components/checkout/PaymentPlugin.d.ts +0 -3
  420. package/lib/components/checkout/PaymentPlugin.d.ts +0 -3
  421. package/lib/components/checkout/PaymentPlugin.js +0 -181
@@ -0,0 +1,114 @@
1
+ /// <reference types="react" />
2
+ export interface ExprRule {
3
+ [key: string]: any;
4
+ }
5
+ export interface RuleConfig {
6
+ autoValidate?: boolean;
7
+ required?: 0 | 1;
8
+ min?: number;
9
+ max?: number;
10
+ mutex?: Array<Array<OptionKey>>;
11
+ customValidator?: (value: SelectionValue) => Promise<void>;
12
+ }
13
+ export interface GroupItem {
14
+ id?: number;
15
+ title?: string;
16
+ mode?: 'single' | 'multiple';
17
+ valueType?: 'primitive' | 'object';
18
+ preserve?: boolean;
19
+ fieldNames?: {
20
+ label?: string;
21
+ value?: string;
22
+ };
23
+ ruleConfig?: RuleConfig;
24
+ dataSource?: OptionItem[];
25
+ }
26
+ export interface OptionItem {
27
+ id?: number;
28
+ title?: string;
29
+ label?: string;
30
+ value?: OptionKey;
31
+ groups?: GroupItem[];
32
+ disabled?: boolean;
33
+ ruleConfig?: {
34
+ min?: number;
35
+ max?: number;
36
+ };
37
+ [key: string]: any;
38
+ }
39
+ export declare type OptionKey = number | string;
40
+ /** 原始值类型:单选时为id,多选时为id[] */
41
+ export declare type SelectionValuePrimitive<T = OptionKey> = T | T[];
42
+ /** 复杂对象值类型:包含id、数量等额外信息 */
43
+ export interface SelectionValueObject<T = OptionKey> {
44
+ value?: T;
45
+ quantity?: number;
46
+ [key: string]: any;
47
+ }
48
+ /** 单选值类型 */
49
+ export declare type SelectionValueSingle<T = OptionKey> = T | SelectionValueObject<T>;
50
+ /** 多选值类型 */
51
+ export declare type SelectionValueMultiple<T = OptionKey> = T[] | SelectionValueObject<T>[];
52
+ /** 选择器值类型 */
53
+ export declare type SelectionValue<T = OptionKey> = SelectionValueSingle<T> | SelectionValueMultiple<T>;
54
+ export declare type GridConfig = {
55
+ align?: 'top' | 'middle' | 'bottom' | 'stretch';
56
+ columns?: number;
57
+ gutter?: number | object | Array<number>;
58
+ justify?: 'start' | 'end' | 'center' | 'space-between' | 'space-around';
59
+ wrap?: boolean;
60
+ colConfig?: {
61
+ [key: string]: any;
62
+ };
63
+ };
64
+ export interface SelectorProps<T = OptionKey> extends GroupItem {
65
+ value?: SelectionValue<T>;
66
+ defaultValue?: SelectionValue<T>;
67
+ onChange?: (value: SelectionValue<T>) => void;
68
+ onClear?: () => void;
69
+ disabled?: boolean;
70
+ grid?: GridConfig;
71
+ variant?: 'default' | 'select' | 'card';
72
+ renderItem?: (props: any) => React.ReactNode;
73
+ item?: {
74
+ bordered?: boolean;
75
+ layout?: 'vertical' | 'horizontal';
76
+ selectedTypeVariant?: 'default' | 'filled' | 'cornered';
77
+ selectedIcon?: React.ReactNode;
78
+ renderContent?: (props: any) => React.ReactNode;
79
+ style?: React.CSSProperties;
80
+ };
81
+ titleProps?: {
82
+ visible?: boolean;
83
+ style?: React.CSSProperties;
84
+ title?: {
85
+ visible?: boolean;
86
+ text?: React.ReactNode;
87
+ style?: React.CSSProperties;
88
+ };
89
+ icon?: {
90
+ visible?: boolean;
91
+ icon?: React.ReactNode;
92
+ style?: React.CSSProperties;
93
+ };
94
+ tip?: {
95
+ visible?: boolean;
96
+ text?: React.ReactNode;
97
+ style?: React.CSSProperties;
98
+ };
99
+ };
100
+ }
101
+ export interface SelectorGroupProps {
102
+ dataSource: GroupItem[];
103
+ linkageRules?: ExprRule[] | Record<string, any>;
104
+ allowedValuesPolicy?: 'relaxed' | 'strict';
105
+ preserve?: boolean;
106
+ value?: Record<string, SelectionValue>;
107
+ defaultValue?: Record<string, SelectionValue>;
108
+ onChange?: (values: Record<string, SelectionValue>) => void;
109
+ tabProps?: {
110
+ visible?: boolean;
111
+ };
112
+ customScrollParent?: HTMLElement;
113
+ [key: string]: any;
114
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,49 @@
1
+ import { SelectionValue, GroupItem } from '../types';
2
+ export declare type OptionEffects = Record<string, {
3
+ allowOnly?: Set<any>;
4
+ requireOneOf?: {
5
+ values: Set<any>;
6
+ message?: string;
7
+ };
8
+ }>;
9
+ export interface Cond {
10
+ groupId: string;
11
+ in?: any[];
12
+ op?: 'in' | 'notIn' | 'eq' | 'neq' | 'contains' | 'range' | 'exists';
13
+ value?: any;
14
+ values?: any[];
15
+ min?: number;
16
+ max?: number;
17
+ }
18
+ export interface Expr {
19
+ allOf?: Array<Cond | Expr>;
20
+ anyOf?: Array<Cond | Expr>;
21
+ noneOf?: Array<Cond | Expr>;
22
+ and?: Array<Cond | Expr>;
23
+ or?: Array<Cond | Expr>;
24
+ not?: Array<Cond | Expr>;
25
+ }
26
+ export interface Action {
27
+ type: 'show' | 'allowOnly' | 'requireOneOf';
28
+ groupId: string;
29
+ values?: any[];
30
+ message?: string;
31
+ }
32
+ export interface Rule {
33
+ type?: 'expr';
34
+ when?: Expr;
35
+ then?: Action[];
36
+ elseThen?: Action[];
37
+ priority?: number;
38
+ stopAfterApply?: boolean;
39
+ }
40
+ export declare const normalizeRules: (linkageRules: any) => Rule[];
41
+ export declare const getSelectedSet: (val: SelectionValue) => Set<any>;
42
+ export declare const evaluateExpr: (expr: Expr | undefined, valuesMap: Record<string, SelectionValue>) => boolean;
43
+ export declare const computeAutoHiddenGroups: (rules: Rule[]) => Set<string>;
44
+ export declare const computeEffects: (dataSource?: GroupItem[], rawRules?: Rule[], valuesMap?: Record<string, SelectionValue>) => {
45
+ visibleGroups: Record<string, boolean>;
46
+ optionEffects: OptionEffects;
47
+ };
48
+ export declare const pruneValuesByAllowOnly: (valuesMap: Record<string, SelectionValue>, effects: OptionEffects) => Record<string, SelectionValue>;
49
+ export declare const generateSimpleUUID: () => string;
@@ -0,0 +1,229 @@
1
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
7
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
+ 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."); }
9
+ 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); }
10
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
+ 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; }
13
+ export var normalizeRules = function normalizeRules(linkageRules) {
14
+ if (Array.isArray(linkageRules)) return _toConsumableArray(linkageRules);
15
+ if (linkageRules && _typeof(linkageRules) === 'object') return Object.values(linkageRules);
16
+ return [];
17
+ };
18
+ export var getSelectedSet = function getSelectedSet(val) {
19
+ var result = new Set();
20
+ if (val == null) return result;
21
+ if (Array.isArray(val)) {
22
+ val.forEach(function (item) {
23
+ if (item && _typeof(item) === 'object') {
24
+ if (item.value !== undefined) result.add(item.value);
25
+ } else {
26
+ result.add(item);
27
+ }
28
+ });
29
+ } else if (_typeof(val) === 'object') {
30
+ if (val.value !== undefined) result.add(val.value);
31
+ } else {
32
+ result.add(val);
33
+ }
34
+ return result;
35
+ };
36
+ var evalCond = function evalCond(cond, valuesMap) {
37
+ var _cond$groupId;
38
+ var gid = String((_cond$groupId = cond.groupId) !== null && _cond$groupId !== void 0 ? _cond$groupId : '');
39
+ var selSet = getSelectedSet(valuesMap[gid]);
40
+ var op = function () {
41
+ if (cond.op) return cond.op;
42
+ if (Array.isArray(cond.in)) return 'in';
43
+ return 'in';
44
+ }();
45
+ if (op === 'in') {
46
+ var _ref, _cond$values;
47
+ var arr = (_ref = (_cond$values = cond.values) !== null && _cond$values !== void 0 ? _cond$values : cond.in) !== null && _ref !== void 0 ? _ref : [];
48
+ return arr.some(function (v) {
49
+ return selSet.has(v);
50
+ });
51
+ }
52
+ if (op === 'notIn') {
53
+ var _ref2, _cond$values2;
54
+ var _arr = (_ref2 = (_cond$values2 = cond.values) !== null && _cond$values2 !== void 0 ? _cond$values2 : cond.in) !== null && _ref2 !== void 0 ? _ref2 : [];
55
+ return _arr.every(function (v) {
56
+ return !selSet.has(v);
57
+ });
58
+ }
59
+ if (op === 'eq' || op === 'contains') {
60
+ return selSet.has(cond.value);
61
+ }
62
+ if (op === 'neq') {
63
+ return !selSet.has(cond.value);
64
+ }
65
+ if (op === 'range') {
66
+ var _cond$min, _cond$max;
67
+ var size = selSet.size;
68
+ var min = (_cond$min = cond.min) !== null && _cond$min !== void 0 ? _cond$min : Number.NEGATIVE_INFINITY;
69
+ var max = (_cond$max = cond.max) !== null && _cond$max !== void 0 ? _cond$max : Number.POSITIVE_INFINITY;
70
+ return size >= min && size <= max;
71
+ }
72
+ if (op === 'exists') {
73
+ return selSet.size > 0;
74
+ }
75
+ return false;
76
+ };
77
+ var isCond = function isCond(item) {
78
+ return item.groupId !== undefined;
79
+ };
80
+ export var evaluateExpr = function evaluateExpr(expr, valuesMap) {
81
+ var _expr$allOf, _expr$anyOf, _expr$noneOf;
82
+ if (!expr) return true;
83
+ var allList = (_expr$allOf = expr.allOf) !== null && _expr$allOf !== void 0 ? _expr$allOf : expr.and;
84
+ var anyList = (_expr$anyOf = expr.anyOf) !== null && _expr$anyOf !== void 0 ? _expr$anyOf : expr.or;
85
+ var noneList = (_expr$noneOf = expr.noneOf) !== null && _expr$noneOf !== void 0 ? _expr$noneOf : expr.not;
86
+ var evalItem = function evalItem(item) {
87
+ if (isCond(item)) return evalCond(item, valuesMap);
88
+ return evaluateExpr(item, valuesMap);
89
+ };
90
+ var everyTrue = function everyTrue(list) {
91
+ if (!Array.isArray(list) || list.length === 0) return true;
92
+ return list.every(function (it) {
93
+ return evalItem(it);
94
+ });
95
+ };
96
+ var someTrue = function someTrue(list) {
97
+ if (!Array.isArray(list) || list.length === 0) return true;
98
+ return list.some(function (it) {
99
+ return evalItem(it);
100
+ });
101
+ };
102
+ var noneTrue = function noneTrue(list) {
103
+ if (!Array.isArray(list) || list.length === 0) return true;
104
+ return list.every(function (it) {
105
+ return !evalItem(it);
106
+ });
107
+ };
108
+ var okAll = everyTrue(allList);
109
+ var okAny = someTrue(anyList);
110
+ var okNone = noneTrue(noneList);
111
+ return okAll && okAny && okNone;
112
+ };
113
+ export var computeAutoHiddenGroups = function computeAutoHiddenGroups(rules) {
114
+ var set = new Set();
115
+ rules.forEach(function (rule) {
116
+ var thenActions = Array.isArray(rule === null || rule === void 0 ? void 0 : rule.then) ? rule.then : [];
117
+ var elseActions = Array.isArray(rule === null || rule === void 0 ? void 0 : rule.elseThen) ? rule.elseThen : [];
118
+ var actions = [].concat(_toConsumableArray(thenActions), _toConsumableArray(elseActions));
119
+ actions.forEach(function (act) {
120
+ if ((act === null || act === void 0 ? void 0 : act.type) === 'show') {
121
+ var _act$groupId;
122
+ var gid = String((_act$groupId = act === null || act === void 0 ? void 0 : act.groupId) !== null && _act$groupId !== void 0 ? _act$groupId : '');
123
+ if (gid) set.add(gid);
124
+ }
125
+ });
126
+ });
127
+ return set;
128
+ };
129
+ export var computeEffects = function computeEffects() {
130
+ var dataSource = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
131
+ var rawRules = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
132
+ var valuesMap = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
133
+ var autoHiddenGroups = computeAutoHiddenGroups(rawRules);
134
+ var visibleGroups = {};
135
+ (dataSource || []).forEach(function (group) {
136
+ var _group$id;
137
+ var gid = String((_group$id = group.id) !== null && _group$id !== void 0 ? _group$id : '');
138
+ visibleGroups[gid] = autoHiddenGroups.has(gid) ? false : true;
139
+ });
140
+ var optionEffects = {};
141
+
142
+ // 优先级调整:数字越大,优先级越高(越先执行)
143
+ var rules = _toConsumableArray(rawRules).sort(function (a, b) {
144
+ return ((b === null || b === void 0 ? void 0 : b.priority) || 0) - ((a === null || a === void 0 ? void 0 : a.priority) || 0);
145
+ });
146
+ for (var i = 0; i < rules.length; i++) {
147
+ var rule = rules[i];
148
+ var hit = evaluateExpr(rule === null || rule === void 0 ? void 0 : rule.when, valuesMap);
149
+ var actions = hit ? Array.isArray(rule === null || rule === void 0 ? void 0 : rule.then) ? rule.then : [] : Array.isArray(rule === null || rule === void 0 ? void 0 : rule.elseThen) ? rule.elseThen : [];
150
+ actions.forEach(function (act) {
151
+ if ((act === null || act === void 0 ? void 0 : act.type) === 'show') {
152
+ var _act$groupId2;
153
+ var gid = String((_act$groupId2 = act === null || act === void 0 ? void 0 : act.groupId) !== null && _act$groupId2 !== void 0 ? _act$groupId2 : '');
154
+ if (gid) {
155
+ visibleGroups[gid] = true;
156
+ }
157
+ } else if ((act === null || act === void 0 ? void 0 : act.type) === 'allowOnly') {
158
+ var _act$groupId3, _optionEffects$_gid;
159
+ var _gid = String((_act$groupId3 = act === null || act === void 0 ? void 0 : act.groupId) !== null && _act$groupId3 !== void 0 ? _act$groupId3 : '');
160
+ if (!_gid) return;
161
+ var prev = ((_optionEffects$_gid = optionEffects[_gid]) === null || _optionEffects$_gid === void 0 ? void 0 : _optionEffects$_gid.allowOnly) || new Set();
162
+ var values = (act === null || act === void 0 ? void 0 : act.values) || [];
163
+ var merged = new Set([].concat(_toConsumableArray(prev), _toConsumableArray(values)));
164
+ optionEffects[_gid] = _objectSpread(_objectSpread({}, optionEffects[_gid] || {}), {}, {
165
+ allowOnly: merged
166
+ });
167
+ } else if ((act === null || act === void 0 ? void 0 : act.type) === 'requireOneOf') {
168
+ var _act$groupId4;
169
+ var _gid2 = String((_act$groupId4 = act === null || act === void 0 ? void 0 : act.groupId) !== null && _act$groupId4 !== void 0 ? _act$groupId4 : '');
170
+ if (!_gid2) return;
171
+ var _values = new Set((act === null || act === void 0 ? void 0 : act.values) || []);
172
+ optionEffects[_gid2] = _objectSpread(_objectSpread({}, optionEffects[_gid2] || {}), {}, {
173
+ requireOneOf: {
174
+ values: _values,
175
+ message: act === null || act === void 0 ? void 0 : act.message
176
+ }
177
+ });
178
+ }
179
+ });
180
+ if (hit && rule !== null && rule !== void 0 && rule.stopAfterApply) break;
181
+ }
182
+ return {
183
+ visibleGroups: visibleGroups,
184
+ optionEffects: optionEffects
185
+ };
186
+ };
187
+
188
+ // 根据 allowOnly 规则清理不允许的已选值(可选的硬约束行为)
189
+ export var pruneValuesByAllowOnly = function pruneValuesByAllowOnly(valuesMap, effects) {
190
+ var next = _objectSpread({}, valuesMap);
191
+ Object.keys(effects).forEach(function (gid) {
192
+ var _effects$gid;
193
+ var allowed = (_effects$gid = effects[gid]) === null || _effects$gid === void 0 ? void 0 : _effects$gid.allowOnly;
194
+ if (!allowed || allowed.size === 0) return;
195
+ var current = next[gid];
196
+ if (current == null) return;
197
+ var pruneArray = function pruneArray(arr) {
198
+ return arr.filter(function (item) {
199
+ if (item && _typeof(item) === 'object') {
200
+ return allowed.has(item.value);
201
+ }
202
+ return allowed.has(item);
203
+ });
204
+ };
205
+ if (Array.isArray(current)) {
206
+ var pruned = pruneArray(current);
207
+ next[gid] = pruned;
208
+ } else if (_typeof(current) === 'object') {
209
+ var hasVal = current.value !== undefined;
210
+ if (hasVal) {
211
+ next[gid] = allowed.has(current.value) ? current : undefined;
212
+ } else {
213
+ next[gid] = current;
214
+ }
215
+ } else {
216
+ next[gid] = allowed.has(current) ? current : undefined;
217
+ }
218
+ });
219
+ return next;
220
+ };
221
+
222
+ // 简版 UUID v4 生成器
223
+ export var generateSimpleUUID = function generateSimpleUUID() {
224
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
225
+ var r = Math.random() * 16 | 0;
226
+ var v = c === 'x' ? r : r & 0x3 | 0x8;
227
+ return v.toString(16);
228
+ });
229
+ };
@@ -1,14 +1,14 @@
1
1
  export default {
2
2
  en: {
3
- 'pisell2.comprehensive-search.placeholder': 'WalletPass Code / Name / Mobile / Email',
3
+ 'pisell2.comprehensive-search.placeholder': 'WalletPass Code / Name / Mobile / Email / Contact info',
4
4
  'pisell2.text.search': 'Search'
5
5
  },
6
6
  'zh-CN': {
7
- 'pisell2.comprehensive-search.placeholder': '钱包码 / 姓名 / 电话 / 电子邮箱',
7
+ 'pisell2.comprehensive-search.placeholder': '钱包码 / 姓名 / 电话 / 电子邮箱 / 联系信息',
8
8
  'pisell2.text.search': '搜索'
9
9
  },
10
10
  'zh-HK': {
11
- 'pisell2.comprehensive-search.placeholder': '錢包碼 / 姓名 / 電話 / 電子郵箱',
11
+ 'pisell2.comprehensive-search.placeholder': '錢包碼 / 姓名 / 電話 / 電子郵箱 / 聯繫信息',
12
12
  'pisell2.text.search': '搜索'
13
13
  }
14
14
  };
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  en: {
3
- 'pisell2.text.new-client': 'New Client',
3
+ 'pisell2.text.new-client': 'New Customer',
4
4
  'pisell2.comprehensive-search.empty': 'No Data'
5
5
  },
6
6
  'zh-CN': {
@@ -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,
@@ -46,7 +46,8 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
46
46
  doneText = props.doneText,
47
47
  resetText = props.resetText,
48
48
  disabled = props.disabled,
49
- hiddenChangeDue = props.hiddenChangeDue;
49
+ hiddenChangeDue = props.hiddenChangeDue,
50
+ shortcutsSize = props.shortcutsSize;
50
51
  var _useControllableValue = useControllableValue(props),
51
52
  _useControllableValue2 = _slicedToArray(_useControllableValue, 2),
52
53
  internalValue = _useControllableValue2[0],
@@ -69,7 +70,7 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
69
70
  setKeyboardTheme(selectType);
70
71
  }, [selectType]);
71
72
 
72
- // 变体2:末尾有三个默认预设项,总数不大于8
73
+ // 变体2:末尾有三个默认预设项,总数不大于7(因为支付占了 2)
73
74
  var getDefaultPresets = function getDefaultPresets() {
74
75
  var defaultEndPresets = [{
75
76
  label: locales.getText('cash-keyboard-other'),
@@ -113,7 +114,8 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
113
114
  value: 'pay',
114
115
  style: {
115
116
  color: 'white',
116
- backgroundColor: '#7F56DA'
117
+ backgroundColor: '#7F56DA',
118
+ gridColumn: 'span 2'
117
119
  },
118
120
  onClick: function onClick() {
119
121
  var _props$onEnter;
@@ -122,8 +124,8 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
122
124
  }];
123
125
  var userPresets = presets || [];
124
126
 
125
- // 计算可用的用户预设数量(总数8 - 默认3个 = 5个)
126
- var maxUserPresets = 8 - defaultEndPresets.length;
127
+ // 计算可用的用户预设数量(总数7 - 默认3个 = 4个)
128
+ var maxUserPresets = 7 - defaultEndPresets.length;
127
129
  var limitedUserPresets = userPresets.slice(0, maxUserPresets);
128
130
  return [].concat(_toConsumableArray(limitedUserPresets), defaultEndPresets);
129
131
  };
@@ -249,46 +251,52 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
249
251
  showCurrencySymbol: true
250
252
  }))))), ((_mergedDisplayField$c = mergedDisplayField.cashReceived) === null || _mergedDisplayField$c === void 0 ? void 0 : _mergedDisplayField$c.visible) && /*#__PURE__*/React.createElement("div", {
251
253
  style: _objectSpread(_objectSpread({}, getGridStyle(1)), {}, {
252
- padding: '6px 16px',
254
+ padding: '0px 16px',
253
255
  borderRadius: '8px',
254
256
  backgroundColor: 'white',
255
- boxShadow: '0px 1px 2px rgba(16, 24, 40, 0.06)',
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)',
256
258
  overflow: 'hidden',
257
259
  maxWidth: 188,
258
- cursor: 'pointer'
260
+ cursor: 'pointer',
261
+ border: '1px solid #7f56da',
262
+ borderBottom: '1px solid #7f56da'
259
263
  }),
260
264
  onClick: function onClick() {
261
265
  setIsShowModal(true);
262
266
  }
263
- }, /*#__PURE__*/React.createElement(VirtualInput, {
264
- showCursor: false,
265
- focused: true,
266
- wrapperStyle: {
267
- width: '100%'
268
- },
269
- topContent: /*#__PURE__*/React.createElement("div", {
270
- style: {
271
- fontSize: '14px',
272
- color: '#667085'
273
- }
274
- }, mergedDisplayField.cashReceived.label),
275
- value: internalValue ? formatAmountWithOptions(internalValue || '', amountSymbol, {
276
- value: internalValue,
277
- hideDecimalForWholeNumbers: false,
278
- precision: 2,
279
- showCurrencySymbol: true
280
- }) : '',
281
- height: 30,
282
- fontSize: 20,
283
- 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",
284
293
  style: {
285
- fontSize: '24px',
286
- fontWeight: 'bold',
287
- border: 'none',
288
- background: 'transparent',
289
- width: '100%'
294
+ color: '#7f56da',
295
+ fontSize: '18px',
296
+ marginLeft: '4px',
297
+ marginTop: '4px'
290
298
  }
291
- })), ((_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", {
292
300
  className: "pisell-cash-keyboard-intact-container-top",
293
301
  style: _objectSpread(_objectSpread({}, getGridStyle(2)), {}, {
294
302
  overflow: 'hidden'
@@ -314,6 +322,7 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
314
322
  hideDecimalForWholeNumbers: false,
315
323
  precision: 2
316
324
  })))))), /*#__PURE__*/React.createElement(Shortcuts, {
325
+ size: shortcutsSize || 'default',
317
326
  presets: getDefaultPresets(),
318
327
  onChange: setInternalValue,
319
328
  disabled: disabled
@@ -7,6 +7,7 @@ export interface CashKeyboardProps extends CashKeyboardBaseProps {
7
7
  [key: string]: any;
8
8
  };
9
9
  variant?: 'intact' | 'simple';
10
+ shortcutsSize?: 'default' | 'large';
10
11
  }
11
12
  declare const CashKeyboard: (props: CashKeyboardProps) => React.JSX.Element;
12
13
  export default CashKeyboard;
@@ -1,4 +1,4 @@
1
- var _excluded = ["variant", "value", "onChange"];
1
+ var _excluded = ["variant", "value", "onChange", "shortcutsSize"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -26,6 +26,7 @@ var CashKeyboard = function CashKeyboard(props) {
26
26
  variant = _props$variant === void 0 ? 'intact' : _props$variant,
27
27
  value = props.value,
28
28
  onChange = props.onChange,
29
+ shortcutsSize = props.shortcutsSize,
29
30
  otherProps = _objectWithoutProperties(props, _excluded);
30
31
  var _useControllableValue = useControllableValue(props),
31
32
  _useControllableValue2 = _slicedToArray(_useControllableValue, 2),
@@ -36,7 +37,8 @@ var CashKeyboard = function CashKeyboard(props) {
36
37
  amountSymbol: amountSymbol,
37
38
  value: internalValue,
38
39
  placeholder: "".concat(amountSymbol, "0"),
39
- onChange: setInternalValue
40
+ onChange: setInternalValue,
41
+ shortcutsSize: shortcutsSize
40
42
  }));
41
43
  }
42
44
  return /*#__PURE__*/React.createElement(CashKeyboardSimple, _extends({}, otherProps, {
@@ -94,4 +94,5 @@ export interface CashKeyboardBaseProps {
94
94
  keyboardButtonBackgroundColor?: string;
95
95
  keyboardButtonTextColor?: string;
96
96
  keyboardButtonHoverColor?: string;
97
+ shortcutsSize?: 'default' | 'large';
97
98
  }
@@ -46,6 +46,7 @@ var DiscountKeyboardBase = function DiscountKeyboardBase(props) {
46
46
  originalValue = props.originalValue,
47
47
  _props$selectType = props.selectType,
48
48
  selectType = _props$selectType === void 0 ? 'light' : _props$selectType,
49
+ tips = props.tips,
49
50
  resetText = props.resetText,
50
51
  doneText = props.doneText,
51
52
  onEnter = props.onEnter,
@@ -309,9 +310,17 @@ var DiscountKeyboardBase = function DiscountKeyboardBase(props) {
309
310
  value: payableAmount
310
311
  })))));
311
312
  };
313
+ var renderTipsContent = function renderTipsContent() {
314
+ if (tips) {
315
+ return /*#__PURE__*/React.createElement("div", {
316
+ className: "pisell-pro-price-keyboard-tips"
317
+ }, tips);
318
+ }
319
+ return null;
320
+ };
312
321
  return /*#__PURE__*/React.createElement("div", {
313
322
  className: "pisell-pro-price-keyboard-discount"
314
- }, /*#__PURE__*/React.createElement(Segmented, {
323
+ }, renderTipsContent(), /*#__PURE__*/React.createElement(Segmented, {
315
324
  size: "large",
316
325
  style: {
317
326
  padding: 6
@@ -7,6 +7,20 @@
7
7
  gap: 10px;
8
8
  background-color: var(--pisell-pro-price-keyboard-bg-color, #ffffff);
9
9
 
10
+ .pisell-pro-price-keyboard-tips {
11
+ background-color: var(
12
+ --pisell-pro-price-keyboard-bg-color-gray-200,
13
+ #eaecf0
14
+ );
15
+ color: #ffffff;
16
+ font-size: 14px;
17
+ font-weight: 600;
18
+ height: 36px;
19
+ line-height: 36px;
20
+ text-align: center;
21
+ border-radius: 8px;
22
+ }
23
+
10
24
  .ellipsis {
11
25
  overflow: hidden;
12
26
  text-overflow: ellipsis;
@@ -12,6 +12,7 @@ export interface ShortcutsProps {
12
12
  presets?: ShortcutsItem[];
13
13
  onChange?: (val: string) => void;
14
14
  disabled?: boolean;
15
+ size?: 'default' | 'large';
15
16
  }
16
17
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ShortcutsProps & React.RefAttributes<HTMLDivElement>>>;
17
18
  export default _default;