@pisell/private-materials 6.8.84 → 6.8.86

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 (431) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/Sales/Summary/utils.d.ts +1 -1
  8. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  9. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  16. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  17. package/es/components/booking/components/voucher/index.d.ts +1 -0
  18. package/es/components/booking/dashboard/serve.d.ts +1 -0
  19. package/es/components/booking/forms/footer.d.ts +1 -0
  20. package/es/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
  21. package/es/components/booking/forms/serve.d.ts +18 -0
  22. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  23. package/es/components/booking/hooks/useQuotation.d.ts +1 -0
  24. package/es/components/booking/info/client/serve.d.ts +2 -0
  25. package/es/components/booking/info/date/index.d.ts +1 -0
  26. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  27. package/es/components/booking/info/hooks/useInfoHolder.d.ts +11 -0
  28. package/es/components/booking/info/pet/serve.d.ts +1 -0
  29. package/es/components/booking/info/service/Lists.d.ts +3 -0
  30. package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  31. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  32. package/es/components/booking/info/service/serve.d.ts +34 -0
  33. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  34. package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
  35. package/es/components/booking/info/service2/utils.d.ts +219 -0
  36. package/es/components/booking/info2/serve.d.ts +6 -0
  37. package/es/components/booking/info2/service/addService/utils.d.ts +106 -0
  38. package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  39. package/es/components/booking/info2/service/editNormalService/index.js +2 -2
  40. package/es/components/booking/info2/service/editService/utils.d.ts +28 -0
  41. package/es/components/booking/info2/service/openNormalService.d.ts +34 -0
  42. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  43. package/es/components/booking/info2/utilsByBooking.d.ts +36 -0
  44. package/es/components/booking/model.d.ts +113 -0
  45. package/es/components/booking/utils.d.ts +182 -0
  46. package/es/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
  47. package/es/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
  48. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
  49. package/es/components/checkout/components/ScrollableList/index.d.ts +5 -0
  50. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  51. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
  52. package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  53. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
  54. package/es/components/eftposPay/amount.d.ts +2 -1
  55. package/es/components/eftposPay/app.d.ts +2 -1
  56. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  57. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  58. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  59. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  60. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  61. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  62. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  63. package/es/components/eftposPay/device.d.ts +1 -1
  64. package/es/components/eftposPay/hooks.d.ts +1 -1
  65. package/es/components/eftposPay/index.d.ts +1 -0
  66. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  67. package/es/components/eftposPay/pay.d.ts +1 -0
  68. package/es/components/eftposPay/payo/config.d.ts +1 -0
  69. package/es/components/eftposPay/store/index.d.ts +5 -5
  70. package/es/components/eftposPay/tip.d.ts +1 -0
  71. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  72. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  73. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  74. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  75. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  76. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  77. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  78. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  79. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  80. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  81. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  82. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  83. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  84. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  85. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  86. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  87. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  88. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  89. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  90. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  91. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  92. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  93. package/es/components/eventBooking/index.d.ts +1 -0
  94. package/es/components/list/types.d.ts +178 -0
  95. package/es/components/list/utils/index.d.ts +19 -0
  96. package/es/components/pay/toB/components/Card/index.d.ts +1 -0
  97. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  98. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  99. package/es/components/pay/toB/components/Content/Footer.d.ts +1 -0
  100. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  101. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  102. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  103. package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
  104. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  105. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  106. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  107. package/es/components/shoppingCart/components/Cart/Product.js +1 -1
  108. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  109. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  110. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  111. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  112. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +84 -0
  113. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  114. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +11 -0
  115. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +9 -0
  116. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  117. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  118. package/es/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  119. package/es/components/ticketBooking/context/index.d.ts +2 -0
  120. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  121. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
  122. package/es/components/ticketBooking/locales.d.ts +201 -0
  123. package/es/components/ticketBooking/serve.d.ts +288 -0
  124. package/es/components/ticketBooking/utils/index.d.ts +101 -0
  125. package/es/components/walletList/index.d.ts +1 -0
  126. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  127. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  128. package/es/hooks/printer.d.ts +4 -0
  129. package/es/hooks/useEngineContext.d.ts +4 -0
  130. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
  131. package/es/plus/noteModal/AddTempModal.d.ts +1 -0
  132. package/es/plus/productSelect/CategoryTabs/index.d.ts +21 -0
  133. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  134. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  135. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  136. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  137. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  138. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -0
  139. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  140. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -0
  141. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -0
  142. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -0
  143. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  144. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +7 -0
  145. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -0
  146. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -0
  147. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  148. package/es/plus/productSelect/ProductCard/index.d.ts +47 -0
  149. package/es/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
  150. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  151. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  152. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  153. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
  154. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +1 -0
  155. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
  156. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
  157. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +4 -0
  158. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  159. package/es/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
  160. package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
  161. package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
  162. package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
  163. package/es/plus/skuOptionsSelection/store/actions.d.ts +22 -0
  164. package/es/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
  165. package/es/plus/skuOptionsSelection/store/index.d.ts +2 -0
  166. package/es/plus/skuOptionsSelection/store/store.d.ts +4 -0
  167. package/es/plus/skuOptionsSelection/types.d.ts +431 -0
  168. package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
  169. package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
  170. package/es/plus/skuOptionsSelection/utils/index.d.ts +7 -0
  171. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  172. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  173. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  174. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +1 -0
  175. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  176. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  177. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  178. package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  179. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  180. package/es/plus/walletPassGallery/index.d.ts +1 -0
  181. package/es/plus/webPosLogin/WebPosLoginCpt.d.ts +9 -0
  182. package/es/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
  183. package/es/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
  184. package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  185. package/es/plus/webPosLogin/index.d.ts +12 -0
  186. package/es/plus/webPosLogin/locales.d.ts +49 -0
  187. package/es/plus/webPosLogin/types.d.ts +286 -0
  188. package/es/pro/Cards/index.d.ts +1 -0
  189. package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  190. package/es/pro/Selector/Item.d.ts +14 -0
  191. package/es/pro/Selector/Selector.d.ts +14 -0
  192. package/es/pro/Selector/Selector.stories.d.ts +78 -0
  193. package/es/pro/Selector/SelectorGroup.d.ts +11 -0
  194. package/es/pro/Selector/components/Card/index.d.ts +57 -0
  195. package/es/pro/Selector/components/Card/types.d.ts +1 -0
  196. package/es/pro/Selector/components/Indicator/index.d.ts +20 -0
  197. package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  198. package/es/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
  199. package/es/pro/Selector/components/Media/index.d.ts +6 -0
  200. package/es/pro/Selector/components/Media/types.d.ts +47 -0
  201. package/es/pro/Selector/components/index.d.ts +4 -0
  202. package/es/pro/Selector/demo.d.ts +3 -0
  203. package/es/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
  204. package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
  205. package/es/pro/Selector/hooks/useSelectionController.d.ts +49 -0
  206. package/es/pro/Selector/index.d.ts +11 -0
  207. package/es/pro/Selector/locales.d.ts +36 -0
  208. package/es/pro/Selector/types.d.ts +212 -0
  209. package/es/pro/Selector/utils/index.d.ts +49 -0
  210. package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  211. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -0
  212. package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -0
  213. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
  214. package/es/pro/skuDetailModal/index.js +2 -2
  215. package/es/pro/skuDetailModal/locales.d.ts +103 -0
  216. package/es/pro/skuDetailModal/types.d.ts +354 -0
  217. package/es/pro/skuDetailModal/utils.d.ts +4 -0
  218. package/es/test/setup.d.ts +1 -0
  219. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  220. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  221. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  222. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  223. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  224. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  225. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  226. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  227. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  228. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  229. package/lib/components/booking/components/voucher/index.d.ts +1 -0
  230. package/lib/components/booking/dashboard/serve.d.ts +1 -0
  231. package/lib/components/booking/forms/footer.d.ts +1 -0
  232. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
  233. package/lib/components/booking/forms/serve.d.ts +18 -0
  234. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  235. package/lib/components/booking/hooks/useQuotation.d.ts +1 -0
  236. package/lib/components/booking/info/client/serve.d.ts +2 -0
  237. package/lib/components/booking/info/date/index.d.ts +1 -0
  238. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  239. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +11 -0
  240. package/lib/components/booking/info/pet/serve.d.ts +1 -0
  241. package/lib/components/booking/info/service/Lists.d.ts +3 -0
  242. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  243. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  244. package/lib/components/booking/info/service/serve.d.ts +34 -0
  245. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  246. package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
  247. package/lib/components/booking/info/service2/utils.d.ts +219 -0
  248. package/lib/components/booking/info2/serve.d.ts +6 -0
  249. package/lib/components/booking/info2/service/addService/utils.d.ts +106 -0
  250. package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  251. package/lib/components/booking/info2/service/editNormalService/index.js +1 -0
  252. package/lib/components/booking/info2/service/editService/utils.d.ts +28 -0
  253. package/lib/components/booking/info2/service/openNormalService.d.ts +34 -0
  254. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  255. package/lib/components/booking/info2/utilsByBooking.d.ts +36 -0
  256. package/lib/components/booking/model.d.ts +113 -0
  257. package/lib/components/booking/utils.d.ts +182 -0
  258. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
  259. package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
  260. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
  261. package/lib/components/checkout/components/ScrollableList/index.d.ts +5 -0
  262. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  263. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
  264. package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  265. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
  266. package/lib/components/eftposPay/amount.d.ts +2 -1
  267. package/lib/components/eftposPay/app.d.ts +2 -1
  268. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  269. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  270. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  271. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  272. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  273. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  274. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  275. package/lib/components/eftposPay/device.d.ts +1 -1
  276. package/lib/components/eftposPay/hooks.d.ts +1 -1
  277. package/lib/components/eftposPay/index.d.ts +1 -0
  278. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  279. package/lib/components/eftposPay/pay.d.ts +1 -0
  280. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  281. package/lib/components/eftposPay/store/index.d.ts +5 -5
  282. package/lib/components/eftposPay/tip.d.ts +1 -0
  283. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  284. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  285. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  286. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  287. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  288. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  289. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  290. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  291. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  292. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  293. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  294. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  295. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  296. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  297. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  298. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  299. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  300. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  301. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  302. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  303. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  304. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  305. package/lib/components/eventBooking/index.d.ts +1 -0
  306. package/lib/components/list/types.d.ts +178 -0
  307. package/lib/components/list/utils/index.d.ts +19 -0
  308. package/lib/components/pay/toB/components/Card/index.d.ts +1 -0
  309. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  310. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  311. package/lib/components/pay/toB/components/Content/Footer.d.ts +1 -0
  312. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  313. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  314. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  315. package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
  316. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  317. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  318. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  319. package/lib/components/shoppingCart/components/Cart/Product.js +1 -1
  320. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  321. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  322. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  323. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  324. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +84 -0
  325. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  326. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +11 -0
  327. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +9 -0
  328. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  329. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  330. package/lib/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  331. package/lib/components/ticketBooking/context/index.d.ts +2 -0
  332. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  333. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
  334. package/lib/components/ticketBooking/locales.d.ts +201 -0
  335. package/lib/components/ticketBooking/serve.d.ts +288 -0
  336. package/lib/components/ticketBooking/utils/index.d.ts +101 -0
  337. package/lib/components/walletList/index.d.ts +1 -0
  338. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  339. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  340. package/lib/hooks/printer.d.ts +4 -0
  341. package/lib/hooks/useEngineContext.d.ts +4 -0
  342. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
  343. package/lib/plus/noteModal/AddTempModal.d.ts +1 -0
  344. package/lib/plus/productSelect/CategoryTabs/index.d.ts +21 -0
  345. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  346. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  347. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  348. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  349. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  350. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -0
  351. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  352. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -0
  353. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -0
  354. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -0
  355. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  356. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +7 -0
  357. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -0
  358. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -0
  359. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  360. package/lib/plus/productSelect/ProductCard/index.d.ts +47 -0
  361. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
  362. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  363. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  364. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  365. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
  366. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +1 -0
  367. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
  368. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
  369. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +4 -0
  370. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  371. package/lib/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
  372. package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
  373. package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
  374. package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
  375. package/lib/plus/skuOptionsSelection/store/actions.d.ts +22 -0
  376. package/lib/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
  377. package/lib/plus/skuOptionsSelection/store/index.d.ts +2 -0
  378. package/lib/plus/skuOptionsSelection/store/store.d.ts +4 -0
  379. package/lib/plus/skuOptionsSelection/types.d.ts +431 -0
  380. package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
  381. package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
  382. package/lib/plus/skuOptionsSelection/utils/index.d.ts +7 -0
  383. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  384. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  385. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  386. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +1 -0
  387. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  388. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  389. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  390. package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  391. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  392. package/lib/plus/walletPassGallery/index.d.ts +1 -0
  393. package/lib/plus/webPosLogin/WebPosLoginCpt.d.ts +9 -0
  394. package/lib/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
  395. package/lib/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
  396. package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  397. package/lib/plus/webPosLogin/index.d.ts +12 -0
  398. package/lib/plus/webPosLogin/locales.d.ts +49 -0
  399. package/lib/plus/webPosLogin/types.d.ts +286 -0
  400. package/lib/pro/Cards/index.d.ts +1 -0
  401. package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  402. package/lib/pro/Selector/Item.d.ts +14 -0
  403. package/lib/pro/Selector/Selector.d.ts +14 -0
  404. package/lib/pro/Selector/Selector.stories.d.ts +78 -0
  405. package/lib/pro/Selector/SelectorGroup.d.ts +11 -0
  406. package/lib/pro/Selector/components/Card/index.d.ts +57 -0
  407. package/lib/pro/Selector/components/Card/types.d.ts +1 -0
  408. package/lib/pro/Selector/components/Indicator/index.d.ts +20 -0
  409. package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  410. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
  411. package/lib/pro/Selector/components/Media/index.d.ts +6 -0
  412. package/lib/pro/Selector/components/Media/types.d.ts +47 -0
  413. package/lib/pro/Selector/components/index.d.ts +4 -0
  414. package/lib/pro/Selector/demo.d.ts +3 -0
  415. package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
  416. package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
  417. package/lib/pro/Selector/hooks/useSelectionController.d.ts +49 -0
  418. package/lib/pro/Selector/index.d.ts +11 -0
  419. package/lib/pro/Selector/locales.d.ts +36 -0
  420. package/lib/pro/Selector/types.d.ts +212 -0
  421. package/lib/pro/Selector/utils/index.d.ts +49 -0
  422. package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  423. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -0
  424. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -0
  425. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
  426. package/lib/pro/skuDetailModal/index.js +1 -0
  427. package/lib/pro/skuDetailModal/locales.d.ts +103 -0
  428. package/lib/pro/skuDetailModal/types.d.ts +354 -0
  429. package/lib/pro/skuDetailModal/utils.d.ts +4 -0
  430. package/lib/test/setup.d.ts +1 -0
  431. package/package.json +1 -1
@@ -0,0 +1,47 @@
1
+ /// <reference types="react" />
2
+ export declare type MediaShape = 'circle' | 'square';
3
+ export declare type MediaSize = 'small' | 'middle' | 'large' | number;
4
+ export declare type MediaCoverType = 'image' | 'text' | 'auto';
5
+ export interface MediaStyles {
6
+ container?: React.CSSProperties | ((props: MediaStyleProps) => React.CSSProperties);
7
+ cover?: React.CSSProperties | ((props: MediaStyleProps) => React.CSSProperties);
8
+ label?: React.CSSProperties | ((props: MediaStyleProps) => React.CSSProperties);
9
+ extra?: React.CSSProperties | ((props: MediaStyleProps) => React.CSSProperties);
10
+ indicator?: React.CSSProperties | ((props: MediaStyleProps) => React.CSSProperties);
11
+ }
12
+ export interface MediaStyleProps {
13
+ selected?: boolean;
14
+ disabled?: boolean;
15
+ shape?: MediaShape;
16
+ size?: MediaSize;
17
+ }
18
+ export interface MediaProps {
19
+ /** 封面内容,可以是图片URL或React节点 */
20
+ cover?: string | React.ReactNode;
21
+ /** 标签文本 */
22
+ label?: React.ReactNode;
23
+ /** 额外内容,通常用于数字选择器等 */
24
+ extra?: React.ReactNode;
25
+ /** 指示器,通常用于勾选图标 */
26
+ indicator?: React.ReactNode;
27
+ /** 选中时是否展示角标,默认为 true */
28
+ showIndicator?: boolean;
29
+ /** 封面类型:image-图片、text-文字、auto-自动(默认) */
30
+ coverType?: MediaCoverType;
31
+ /** 形状 */
32
+ shape?: MediaShape;
33
+ /** 尺寸 */
34
+ size?: MediaSize;
35
+ /** 选中状态 */
36
+ selected?: boolean;
37
+ /** 禁用状态 */
38
+ disabled?: boolean;
39
+ /** 点击事件 */
40
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
41
+ /** 自定义样式 */
42
+ styles?: MediaStyles;
43
+ /** 自定义类名 */
44
+ className?: string;
45
+ /** 自定义样式 */
46
+ style?: React.CSSProperties;
47
+ }
@@ -0,0 +1,4 @@
1
+ export { default as CardItem } from './Card';
2
+ export { default as MediaItem } from './Media';
3
+ export type { CardVariant, CardLayout, SelectedType, ActionsPosition, CardStyles, CardStyleProps, CardProps, } from './Card/types';
4
+ export type { MediaShape, MediaSize, MediaCoverType, MediaStyles, MediaStyleProps, MediaProps, } from './Media/types';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SelectorDemo: () => JSX.Element;
3
+ export default SelectorDemo;
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+ import { ItemProps, ItemLayout, SelectorVariant, PresetConfig } from '../types';
3
+ interface UsePresetItemPropsParams {
4
+ variant?: SelectorVariant;
5
+ itemLayout?: ItemLayout;
6
+ preset?: PresetConfig;
7
+ itemProps?: ItemProps;
8
+ indicator: React.ReactNode;
9
+ numberSelector: React.ReactNode;
10
+ mode?: 'single' | 'multiple';
11
+ disabled?: boolean;
12
+ selected?: boolean;
13
+ }
14
+ interface PresetItemPropsResult {
15
+ mediaProps: Record<string, any>;
16
+ cardProps: Record<string, any>;
17
+ }
18
+ /**
19
+ * 根据预设项生成 option Item 的 props
20
+ *
21
+ * 规则说明:
22
+ * 1. variant='default': 使用 Card,borderless,horizontal,selectedType='none',actionsPosition='left'
23
+ * 1.1 preset.variant='1': renderContent={() => <span>{dataSource._label}</span>}
24
+ * 1.2 preset.variant='2': renderContent={() => <span>{dataSource._label}</span>}
25
+ * 2. variant='media': 使用 MediaItem
26
+ * 2.1 preset.variant='1': size='small', showIndicator=false, 单选shape='circle',多选shape='square'
27
+ * 2.2 preset.variant='2': size='large', showIndicator=true, shape='circle'
28
+ * 3. variant='card': 根据 itemLayout 区分横向和纵向
29
+ * 3.1 横向(horizontal):
30
+ * - preset.variant='2': selectedType='filled'
31
+ * - preset.variant='5': variant='borderless'
32
+ * - 默认样式: styles.container = { padding: 8 }
33
+ * - 使用 lodash merge 深度合并样式,itemProps.styles 优先级更高
34
+ * 3.2 纵向(vertical):
35
+ * - 统一使用 borderless,selectedType='none'
36
+ * - preset.variant='2': indicator 通过 corner 传入
37
+ * 3.3 actions 处理:
38
+ * - 优先使用 numberSelector(如果存在)
39
+ * - 其次使用 indicator
40
+ * - 纵向且 preset.variant='2': indicator 放到 corner,actions 仅展示 numberSelector
41
+ */
42
+ declare const usePresetItemProps: (params: UsePresetItemPropsParams) => PresetItemPropsResult;
43
+ export default usePresetItemProps;
@@ -0,0 +1,24 @@
1
+ import { LayoutConfig, ItemLayout, PresetConfig, SelectorVariant, SelectorProps } from '../types';
2
+ interface UsePresetPropsParams {
3
+ layout?: LayoutConfig;
4
+ mode?: 'single' | 'multiple';
5
+ preset?: PresetConfig;
6
+ itemLayout?: ItemLayout;
7
+ variant?: SelectorVariant;
8
+ indicatorProps?: SelectorProps['indicatorProps'];
9
+ }
10
+ interface UsePresetPropsResult {
11
+ layout: LayoutConfig | null;
12
+ indicatorProps: SelectorProps['indicatorProps'];
13
+ }
14
+ /**
15
+ * 根据预设配置生成 layout 和 indicatorProps
16
+ * Layout 规则:
17
+ * - 根据 variant 和 preset.variant 计算布局样式
18
+ * IndicatorProps 规则:
19
+ * 1. 当 variant='card' 且 preset.variant='2' 时,indicator 默认 variant='filled'
20
+ * 2. 当 variant='media' 时,indicator 默认 variant='filled'
21
+ * 3. 外部传入的 indicatorProps 优先级更高(会合并到预设配置中)
22
+ */
23
+ declare const usePresetProps: ({ layout, mode, preset, itemLayout, variant, indicatorProps, }: UsePresetPropsParams) => UsePresetPropsResult;
24
+ export default usePresetProps;
@@ -0,0 +1,49 @@
1
+ import { RuleConfig, OptionItem, SelectionValuePrimitive, SelectionValue, OptionKey } from '../types';
2
+ declare type ErrorItem = {
3
+ type: 'required' | 'max' | 'min' | 'optionMin' | 'optionMax' | 'requireOneOf' | 'mutex';
4
+ message: string;
5
+ _key?: OptionKey;
6
+ };
7
+ declare type InnerOptionItem = OptionItem & {
8
+ _key: OptionKey;
9
+ _label: string;
10
+ selected: boolean;
11
+ quantity: number;
12
+ disabled: boolean;
13
+ };
14
+ export default function useSelectionController(props: {
15
+ dataSource?: OptionItem[];
16
+ ruleConfig?: RuleConfig;
17
+ fieldNames?: {
18
+ label?: string;
19
+ value?: string;
20
+ cover?: string;
21
+ };
22
+ mode?: 'single' | 'multiple';
23
+ valueType?: 'primitive' | 'object';
24
+ value?: SelectionValuePrimitive | SelectionValue;
25
+ defaultValue?: SelectionValuePrimitive | SelectionValue;
26
+ onChange?: (value: SelectionValuePrimitive | SelectionValue) => void;
27
+ }): {
28
+ state: {
29
+ options: InnerOptionItem[];
30
+ values: SelectionValue;
31
+ errors: Array<ErrorItem>;
32
+ validated: boolean;
33
+ quantityInfo: {
34
+ showQuantity: boolean;
35
+ maxReached: boolean;
36
+ remainingCount: number;
37
+ selectedCount: number;
38
+ };
39
+ };
40
+ actions: {
41
+ toggle: (optionKey: OptionKey) => void;
42
+ update: (optionKey: OptionKey, payload?: any) => void;
43
+ setValue: (value: SelectionValuePrimitive | SelectionValue) => void;
44
+ clear: () => void;
45
+ validate: () => Promise<void>;
46
+ reset: () => void;
47
+ };
48
+ };
49
+ export {};
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { SelectorProps, OptionKey } from './types';
3
+ import Item from './Item';
4
+ import SelectorGroup from './SelectorGroup';
5
+ declare type SelectorComponentType = React.ForwardRefExoticComponent<SelectorProps<OptionKey> & React.RefAttributes<any>> & {
6
+ Group: typeof SelectorGroup;
7
+ Item: typeof Item;
8
+ };
9
+ declare const Selector: SelectorComponentType;
10
+ export * from './types';
11
+ export default Selector;
@@ -0,0 +1,36 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.pro.selector.mode.single': string;
4
+ 'pisell2.pro.selector.mode.multiple': string;
5
+ 'pisell2.pro.selector.validate.required-msg': string;
6
+ 'pisell2.pro.selector.validate.requireOneOf-msg': string;
7
+ 'pisell2.pro.selector.required-tag': string;
8
+ 'pisell2.pro.selector.validate.min-selection': (min: number, label?: string) => string;
9
+ 'pisell2.pro.selector.validate.max-selection': (max: number, label?: string) => string;
10
+ 'pisell2.pro.selector.tip.require-one-option': string;
11
+ 'pisell2.pro.selector.tip.min-max-selection': (min: number, max: number) => string;
12
+ };
13
+ 'zh-CN': {
14
+ 'pisell2.pro.selector.mode.single': string;
15
+ 'pisell2.pro.selector.mode.multiple': string;
16
+ 'pisell2.pro.selector.validate.required-msg': string;
17
+ 'pisell2.pro.selector.validate.requireOneOf-msg': string;
18
+ 'pisell2.pro.selector.required-tag': string;
19
+ 'pisell2.pro.selector.validate.min-selection': (min: number, label?: string) => string;
20
+ 'pisell2.pro.selector.validate.max-selection': (max: number, label?: string) => string;
21
+ 'pisell2.pro.selector.tip.require-one-option': string;
22
+ 'pisell2.pro.selector.tip.min-max-selection': (min: number, max: number) => string;
23
+ };
24
+ 'zh-HK': {
25
+ 'pisell2.pro.selector.mode.single': string;
26
+ 'pisell2.pro.selector.mode.multiple': string;
27
+ 'pisell2.pro.selector.validate.required-msg': string;
28
+ 'pisell2.pro.selector.validate.requireOneOf-msg': string;
29
+ 'pisell2.pro.selector.required-tag': string;
30
+ 'pisell2.pro.selector.validate.min-selection': (min: number, label?: string) => string;
31
+ 'pisell2.pro.selector.validate.max-selection': (max: number, label?: string) => string;
32
+ 'pisell2.pro.selector.tip.require-one-option': string;
33
+ 'pisell2.pro.selector.tip.min-max-selection': (min: number, max: number) => string;
34
+ };
35
+ };
36
+ export default _default;
@@ -0,0 +1,212 @@
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
+ cover?: string;
23
+ };
24
+ ruleConfig?: RuleConfig;
25
+ dataSource?: OptionItem[];
26
+ }
27
+ export interface OptionItem {
28
+ id?: number;
29
+ title?: string;
30
+ label?: string;
31
+ value?: OptionKey;
32
+ cover?: string;
33
+ groups?: GroupItem[];
34
+ disabled?: boolean;
35
+ ruleConfig?: {
36
+ min?: number;
37
+ max?: number;
38
+ };
39
+ [key: string]: any;
40
+ }
41
+ export declare type OptionKey = number | string;
42
+ /** 原始值类型:单选时为id,多选时为id[] */
43
+ export declare type SelectionValuePrimitive<T = OptionKey> = T | T[];
44
+ /** 复杂对象值类型:包含id、数量等额外信息 */
45
+ export interface SelectionValueObject<T = OptionKey> {
46
+ value?: T;
47
+ quantity?: number;
48
+ [key: string]: any;
49
+ }
50
+ /** 单选值类型 */
51
+ export declare type SelectionValueSingle<T = OptionKey> = T | SelectionValueObject<T>;
52
+ /** 多选值类型 */
53
+ export declare type SelectionValueMultiple<T = OptionKey> = T[] | SelectionValueObject<T>[];
54
+ /** 选择器值类型 */
55
+ export declare type SelectionValue<T = OptionKey> = SelectionValueSingle<T> | SelectionValueMultiple<T>;
56
+ export declare type RenderItemProps = {
57
+ dataSource: OptionItem;
58
+ actions: any;
59
+ optionItemValue?: any;
60
+ indicator: React.ReactNode;
61
+ numberSelector: React.ReactNode;
62
+ values: any;
63
+ quantityInfo: {
64
+ maxReached: boolean;
65
+ remainingCount: number;
66
+ selectedCount: number;
67
+ };
68
+ };
69
+ export declare type ItemProps = {
70
+ layout?: 'vertical' | 'horizontal';
71
+ renderContent?: (props: {
72
+ dataSource: OptionItem;
73
+ }) => React.ReactNode;
74
+ styles?: {
75
+ [key: string]: React.CSSProperties;
76
+ };
77
+ [key: string]: any;
78
+ };
79
+ export declare type LayoutType = 'antdGrid' | 'custom';
80
+ /** 单个断点的完整配置 */
81
+ export declare type BreakpointConfig = {
82
+ columns: number;
83
+ gap?: number | string;
84
+ style?: React.CSSProperties;
85
+ };
86
+ /**
87
+ * 断点映射
88
+ * key: 最小宽度(px)
89
+ * value: 列数(简写)或完整配置
90
+ * @example { 0: 1, 420: 2, 630: 3 } // 简写
91
+ * @example { 0: { columns: 1, gap: 12 }, 420: { columns: 2, gap: 16 } } // 完整
92
+ */
93
+ export declare type BreakpointMap = Record<number, number | BreakpointConfig>;
94
+ /** 响应式布局配置 */
95
+ export declare type ResponsiveConfig = {
96
+ /** 每项最小宽度,系统自动计算断点 */
97
+ minWidth?: number;
98
+ /** 最大列数限制 */
99
+ maxColumns?: number;
100
+ /**
101
+ * 显式断点映射,key 为容器最小宽度(px)
102
+ * @example { 0: 1, 420: 2, 630: 3, 841: 4, 1367: 5 }
103
+ * @example { 0: { columns: 1, gap: 12 }, 420: { columns: 2, gap: 16 } }
104
+ */
105
+ breakpoints?: BreakpointMap;
106
+ /** 默认列数(容器宽度小于所有断点时),默认为 1 */
107
+ defaultColumns?: number;
108
+ /** 间距,默认为 16 */
109
+ gap?: number | string;
110
+ /** ResizeObserver 防抖延迟(ms),默认为 0 */
111
+ debounce?: number;
112
+ };
113
+ export declare type LayoutConfig = {
114
+ type?: LayoutType;
115
+ className?: string;
116
+ containerStyle?: React.CSSProperties;
117
+ /**
118
+ * 响应式布局配置
119
+ * 存在此配置时自动启用 ResizeObserver 响应式布局
120
+ */
121
+ responsive?: ResponsiveConfig;
122
+ columns?: number;
123
+ gutter?: number | object | Array<number>;
124
+ align?: 'top' | 'middle' | 'bottom' | 'stretch';
125
+ justify?: 'start' | 'end' | 'center' | 'space-between' | 'space-around';
126
+ wrap?: boolean;
127
+ colConfig?: {
128
+ [key: string]: any;
129
+ };
130
+ };
131
+ export interface PresetConfig {
132
+ variant?: '1' | '2' | '3' | '4' | '5';
133
+ }
134
+ export declare type ItemLayout = 'vertical' | 'horizontal';
135
+ export declare type SelectorVariant = 'default' | 'select' | 'card' | 'media';
136
+ export declare type HeaderProps = {
137
+ visible?: boolean;
138
+ style?: React.CSSProperties;
139
+ title?: {
140
+ visible?: boolean;
141
+ text?: React.ReactNode;
142
+ style?: React.CSSProperties;
143
+ };
144
+ icon?: {
145
+ visible?: boolean;
146
+ icon?: React.ReactNode;
147
+ style?: React.CSSProperties;
148
+ };
149
+ tip?: {
150
+ visible?: boolean;
151
+ text?: React.ReactNode;
152
+ style?: React.CSSProperties;
153
+ };
154
+ renderExtra?: (props: {
155
+ dataSource: OptionItem;
156
+ values: SelectionValue;
157
+ }) => React.ReactNode;
158
+ };
159
+ export interface SelectorProps<T = OptionKey> extends GroupItem {
160
+ className?: string;
161
+ value?: SelectionValue<T>;
162
+ defaultValue?: SelectionValue<T>;
163
+ onChange?: (value: SelectionValue<T>) => void;
164
+ onClear?: () => void;
165
+ disabled?: boolean;
166
+ variant?: SelectorVariant;
167
+ itemLayout?: ItemLayout;
168
+ preset?: PresetConfig;
169
+ layout?: LayoutConfig;
170
+ renderItem?: (props: RenderItemProps) => React.ReactNode;
171
+ itemProps?: ItemProps;
172
+ indicatorProps?: {
173
+ show?: boolean;
174
+ variant?: 'outlined' | 'filled';
175
+ render?: (props: {
176
+ option: OptionItem;
177
+ selected: boolean;
178
+ disabled: boolean;
179
+ actions: any;
180
+ }) => React.ReactNode;
181
+ [key: string]: any;
182
+ };
183
+ showStepper?: true | false | 'auto';
184
+ stepperProps?: {
185
+ size?: 'small' | 'middle' | 'large';
186
+ shape?: 'round' | 'square';
187
+ horizontalPadding?: number | string;
188
+ };
189
+ style?: React.CSSProperties;
190
+ /**
191
+ * @deprecated
192
+ */
193
+ titleProps?: HeaderProps;
194
+ headerProps?: HeaderProps;
195
+ }
196
+ export interface SelectorGroupProps {
197
+ allowedValuesPolicy?: 'relaxed' | 'strict';
198
+ className?: string;
199
+ customScrollParent?: HTMLElement | string;
200
+ dataSource: GroupItem[];
201
+ defaultValue?: Record<string, SelectionValue>;
202
+ linkageRules?: ExprRule[] | Record<string, any>;
203
+ onChange?: (values: Record<string, SelectionValue>) => void;
204
+ preserve?: boolean;
205
+ tabProps?: {
206
+ visible?: boolean;
207
+ };
208
+ style?: React.CSSProperties;
209
+ value?: Record<string, SelectionValue>;
210
+ scrollToFirstError?: boolean;
211
+ [key: string]: any;
212
+ }
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PopoverProps } from 'antd';
2
3
  import './index.less';
3
4
  interface PisellPhoneKeyboardProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CashKeyboardBaseProps } from './types';
2
3
  import './index.less';
3
4
  declare const CashKeyboardIntact: (props: CashKeyboardBaseProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PaymentKeyboardBaseProps } from './types';
2
3
  import './index.less';
3
4
  interface PaymentKeyboardProps extends PaymentKeyboardBaseProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const useRightItems: (props: {
2
3
  rightItemsStyle?: any;
3
4
  doneText?: string;
@@ -1097,11 +1097,11 @@ function getSelectedUnitPrice(params) {
1097
1097
  function getOtherFromSkuValue(params) {
1098
1098
  var productData = params.productData,
1099
1099
  skuValue = params.skuValue;
1100
- var other = {
1100
+ var other = _objectSpread(_objectSpread({}, skuValue || {}), {}, {
1101
1101
  product_variant_id: (skuValue === null || skuValue === void 0 ? void 0 : skuValue.product_variant_id) || 0,
1102
1102
  bundle: (skuValue === null || skuValue === void 0 ? void 0 : skuValue.bundle) || [],
1103
1103
  option: (skuValue === null || skuValue === void 0 ? void 0 : skuValue.option) || []
1104
- };
1104
+ });
1105
1105
  if (other.product_variant_id && productData) {
1106
1106
  var _variant3;
1107
1107
  var variantItem = productData === null || productData === void 0 || (_variant3 = productData.variant) === null || _variant3 === void 0 ? void 0 : _variant3.find(function (item) {
@@ -0,0 +1,103 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.text.sku.detail.modal.quantity': string;
4
+ 'pisell2.text.sku.detail.modal.note': string;
5
+ 'pisell2.text.sku.detail.modal.subtotal': string;
6
+ 'pisell2.text.sku.detail.modal.discount': string;
7
+ 'pisell2.text.sku.detail.modal.manual.price.change': string;
8
+ 'pisell2.text.sku.detail.modal.price.override': string;
9
+ 'pisell2.text.sku.detail.modal.total': string;
10
+ 'pisell2.text.sku.detail.modal.gst.excl': string;
11
+ 'pisell2.text.sku.detail.modal.gst.incl': string;
12
+ 'pisell2.text.sku.detail.modal.btn.add.note': string;
13
+ 'pisell2.text.sku.detail.modal.btn.remove': string;
14
+ 'pisell2.text.sku.detail.modal.btn.confirm': string;
15
+ 'pisell2.text.sku.detail.modal.btn.manual.price.change': string;
16
+ 'pisell2.text.sku.detail.modal.btn.close': string;
17
+ 'pisell2.text.sku.detail.modal.btn.back': string;
18
+ 'pisell2.text.sku.detail.modal.btn.next': string;
19
+ 'pisell2.text.sku.detail.modal.step.details': string;
20
+ 'pisell2.text.sku.detail.modal.step.select.bundle': string;
21
+ 'pisell2.text.sku.detail.modal.stock.alert.title': string;
22
+ 'pisell2.text.sku.detail.modal.stock.alert.desc': string;
23
+ 'pisell2.text.sku.detail.modal.stock.alert.checkbox': string;
24
+ 'pisell2.text.sku.detail.modal.stock.alert.btn.cancel': string;
25
+ 'pisell2.text.sku.detail.modal.stock.alert.btn.continue': string;
26
+ };
27
+ 'zh-CN': {
28
+ 'pisell2.text.sku.detail.modal.quantity': string;
29
+ 'pisell2.text.sku.detail.modal.note': string;
30
+ 'pisell2.text.sku.detail.modal.subtotal': string;
31
+ 'pisell2.text.sku.detail.modal.discount': string;
32
+ 'pisell2.text.sku.detail.modal.manual.price.change': string;
33
+ 'pisell2.text.sku.detail.modal.price.override': string;
34
+ 'pisell2.text.sku.detail.modal.total': string;
35
+ 'pisell2.text.sku.detail.modal.gst.excl': string;
36
+ 'pisell2.text.sku.detail.modal.gst.incl': string;
37
+ 'pisell2.text.sku.detail.modal.btn.add.note': string;
38
+ 'pisell2.text.sku.detail.modal.btn.remove': string;
39
+ 'pisell2.text.sku.detail.modal.btn.confirm': string;
40
+ 'pisell2.text.sku.detail.modal.btn.manual.price.change': string;
41
+ 'pisell2.text.sku.detail.modal.btn.close': string;
42
+ 'pisell2.text.sku.detail.modal.btn.back': string;
43
+ 'pisell2.text.sku.detail.modal.btn.next': string;
44
+ 'pisell2.text.sku.detail.modal.step.details': string;
45
+ 'pisell2.text.sku.detail.modal.step.select.bundle': string;
46
+ 'pisell2.text.sku.detail.modal.stock.alert.title': string;
47
+ 'pisell2.text.sku.detail.modal.stock.alert.desc': string;
48
+ 'pisell2.text.sku.detail.modal.stock.alert.checkbox': string;
49
+ 'pisell2.text.sku.detail.modal.stock.alert.btn.cancel': string;
50
+ 'pisell2.text.sku.detail.modal.stock.alert.btn.continue': string;
51
+ };
52
+ 'zh-HK': {
53
+ 'pisell2.text.sku.detail.modal.quantity': string;
54
+ 'pisell2.text.sku.detail.modal.note': string;
55
+ 'pisell2.text.sku.detail.modal.subtotal': string;
56
+ 'pisell2.text.sku.detail.modal.discount': string;
57
+ 'pisell2.text.sku.detail.modal.manual.price.change': string;
58
+ 'pisell2.text.sku.detail.modal.price.override': string;
59
+ 'pisell2.text.sku.detail.modal.total': string;
60
+ 'pisell2.text.sku.detail.modal.gst.excl': string;
61
+ 'pisell2.text.sku.detail.modal.gst.incl': string;
62
+ 'pisell2.text.sku.detail.modal.btn.add.note': string;
63
+ 'pisell2.text.sku.detail.modal.btn.remove': string;
64
+ 'pisell2.text.sku.detail.modal.btn.confirm': string;
65
+ 'pisell2.text.sku.detail.modal.btn.manual.price.change': string;
66
+ 'pisell2.text.sku.detail.modal.btn.close': string;
67
+ 'pisell2.text.sku.detail.modal.btn.back': string;
68
+ 'pisell2.text.sku.detail.modal.btn.next': string;
69
+ 'pisell2.text.sku.detail.modal.step.details': string;
70
+ 'pisell2.text.sku.detail.modal.step.select.bundle': string;
71
+ 'pisell2.text.sku.detail.modal.stock.alert.title': string;
72
+ 'pisell2.text.sku.detail.modal.stock.alert.desc': string;
73
+ 'pisell2.text.sku.detail.modal.stock.alert.checkbox': string;
74
+ 'pisell2.text.sku.detail.modal.stock.alert.btn.cancel': string;
75
+ 'pisell2.text.sku.detail.modal.stock.alert.btn.continue': string;
76
+ };
77
+ 'zh-TW': {
78
+ 'pisell2.text.sku.detail.modal.quantity': string;
79
+ 'pisell2.text.sku.detail.modal.note': string;
80
+ 'pisell2.text.sku.detail.modal.subtotal': string;
81
+ 'pisell2.text.sku.detail.modal.discount': string;
82
+ 'pisell2.text.sku.detail.modal.manual.price.change': string;
83
+ 'pisell2.text.sku.detail.modal.price.override': string;
84
+ 'pisell2.text.sku.detail.modal.total': string;
85
+ 'pisell2.text.sku.detail.modal.gst.excl': string;
86
+ 'pisell2.text.sku.detail.modal.gst.incl': string;
87
+ 'pisell2.text.sku.detail.modal.btn.add.note': string;
88
+ 'pisell2.text.sku.detail.modal.btn.remove': string;
89
+ 'pisell2.text.sku.detail.modal.btn.confirm': string;
90
+ 'pisell2.text.sku.detail.modal.btn.manual.price.change': string;
91
+ 'pisell2.text.sku.detail.modal.btn.close': string;
92
+ 'pisell2.text.sku.detail.modal.btn.back': string;
93
+ 'pisell2.text.sku.detail.modal.btn.next': string;
94
+ 'pisell2.text.sku.detail.modal.step.details': string;
95
+ 'pisell2.text.sku.detail.modal.step.select.bundle': string;
96
+ 'pisell2.text.sku.detail.modal.stock.alert.title': string;
97
+ 'pisell2.text.sku.detail.modal.stock.alert.desc': string;
98
+ 'pisell2.text.sku.detail.modal.stock.alert.checkbox': string;
99
+ 'pisell2.text.sku.detail.modal.stock.alert.btn.cancel': string;
100
+ 'pisell2.text.sku.detail.modal.stock.alert.btn.continue': string;
101
+ };
102
+ };
103
+ export default _default;