@pisell/private-materials 6.6.25 → 6.6.26

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 (498) 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/render/default/view.css +1 -1
  7. package/build/lowcode/render/default/view.js +1 -1
  8. package/build/lowcode/view.css +1 -1
  9. package/build/lowcode/view.js +1 -1
  10. package/es/businessModel/SalesModel/index.d.ts +0 -1
  11. package/es/components/Sales/Cart/utils.d.ts +63 -0
  12. package/es/components/Sales/Summary/utils.d.ts +51 -0
  13. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/Voucher/index.js +22 -7
  16. package/es/components/appointmentBooking/locales.d.ts +363 -0
  17. package/es/components/booking/addons/index.js +3 -2
  18. package/es/components/booking/components/footer/amount.js +1 -1
  19. package/es/components/booking/components/footer/index.js +7 -0
  20. package/es/components/booking/components/footer/utils.d.ts +1 -1
  21. package/es/components/booking/components/footer/utils.js +7 -5
  22. package/es/components/booking/components/voucher/index.js +6 -0
  23. package/es/components/booking/components/voucher/index.less +4 -1
  24. package/es/components/booking/components/voucherModal/index.less +1 -0
  25. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  26. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  27. package/es/components/booking/forms/serve.d.ts +18 -0
  28. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  29. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  30. package/es/components/booking/info/client/serve.d.ts +2 -0
  31. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  32. package/es/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
  33. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  34. package/es/components/booking/info/index.d.ts +0 -1
  35. package/es/components/booking/info/pet/serve.d.ts +1 -0
  36. package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  37. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  38. package/es/components/booking/info/service/serve.d.ts +34 -0
  39. package/es/components/booking/info/service2/utils.d.ts +1 -1
  40. package/es/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  41. package/es/components/booking/info2/cartClientCard/types.d.ts +18 -0
  42. package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  43. package/es/components/booking/info2/serve.d.ts +6 -0
  44. package/es/components/booking/info2/service/editService/index.js +33 -2
  45. package/es/components/booking/locales.d.ts +951 -0
  46. package/es/components/checkout/PaymentModal.js +42 -2
  47. package/es/components/checkout/components/AdditionalModule/locales.d.ts +36 -0
  48. package/es/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
  49. package/es/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
  50. package/es/components/checkout/components/ScrollableList/index.d.ts +5 -0
  51. package/es/components/checkout/components/ScrollableList/types.d.ts +53 -0
  52. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  53. package/es/components/checkout/components/WalletPassModule/index.js +1 -0
  54. package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
  55. package/es/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
  56. package/es/components/checkout/components/WalletPassModule/utils.js +17 -3
  57. package/es/components/checkout/constants.d.ts +2 -0
  58. package/es/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
  59. package/es/components/checkout/hooks/useWalletPass.d.ts +2 -2
  60. package/es/components/checkout/hooks/useWalletPass.js +322 -194
  61. package/es/components/checkout/locales.d.ts +513 -0
  62. package/es/components/checkout/styles.d.ts +67 -0
  63. package/es/components/checkout/types.d.ts +130 -0
  64. package/es/components/checkout/utils.d.ts +3 -0
  65. package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  66. package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
  67. package/es/components/eftposPay/amount.d.ts +1 -1
  68. package/es/components/eftposPay/app.d.ts +0 -1
  69. package/es/components/eftposPay/component/fail/failCustom.js +1 -1
  70. package/es/components/eftposPay/const.d.ts +195 -0
  71. package/es/components/eftposPay/device.d.ts +1 -1
  72. package/es/components/eftposPay/hooks.d.ts +2 -2
  73. package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
  74. package/es/components/eftposPay/huifu/types.d.ts +14 -0
  75. package/es/components/eftposPay/locales.d.ts +366 -0
  76. package/es/components/eftposPay/manufacturer.d.ts +8 -0
  77. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  78. package/es/components/eftposPay/store/index.d.ts +362 -0
  79. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  80. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  81. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  82. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  83. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  84. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  85. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  86. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
  87. package/es/components/list/components/ListItemSkeleton/index.d.ts +2 -0
  88. package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
  89. package/es/components/list/components/ScrollLoader/index.d.ts +2 -0
  90. package/es/components/list/components/Tab/Tab.d.ts +5 -0
  91. package/es/components/list/components/Tab/index.d.ts +2 -0
  92. package/es/components/list/components/Tab/types.d.ts +14 -0
  93. package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
  94. package/es/components/list/components/TabSkeleton/index.d.ts +2 -0
  95. package/es/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
  96. package/es/components/list/components/WaterfallList/index.d.ts +2 -0
  97. package/es/components/list/hooks/index.d.ts +5 -0
  98. package/es/components/list/hooks/useDevice.d.ts +24 -0
  99. package/es/components/list/hooks/useListState.d.ts +43 -0
  100. package/es/components/list/hooks/useWaterfall.d.ts +34 -0
  101. package/es/components/list/locales.d.ts +66 -0
  102. package/es/components/list/types.d.ts +177 -0
  103. package/es/components/list/utils/getText.d.ts +53 -0
  104. package/es/components/list/utils/index.d.ts +4 -0
  105. package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  106. package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
  107. package/es/components/pay/toB/hooks.d.ts +12 -0
  108. package/es/components/pay/toB/locales.d.ts +54 -0
  109. package/es/components/pay/toB/store/context.d.ts +3 -0
  110. package/es/components/pay/toB/store/index.d.ts +3 -0
  111. package/es/components/pay/toB/store/provider.d.ts +4 -0
  112. package/es/components/pay/toB/types/index.d.ts +61 -0
  113. package/es/components/pay/toB/types/storeTypes.d.ts +143 -0
  114. package/es/components/pay/toC/PaymentList/utils.d.ts +36 -0
  115. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
  116. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
  117. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
  118. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
  119. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  120. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  121. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  122. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +166 -145
  123. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  124. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
  125. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  126. package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
  127. package/es/components/pay/toC/index.js +66 -27
  128. package/es/components/pay/toC/locales.d.ts +307 -0
  129. package/es/components/pay/toC/model.d.ts +1 -0
  130. package/es/components/pay/toC/serve.d.ts +18 -0
  131. package/es/components/pay/toC/serve.js +29 -1
  132. package/es/components/pay/toC/status.d.ts +13 -0
  133. package/es/components/pay/toC/utils.d.ts +2 -2
  134. package/es/components/pay/toC/utils.js +4 -0
  135. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  136. package/es/components/ruleSetting/locales.d.ts +48 -0
  137. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  138. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  139. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  140. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  141. package/es/components/shoppingCart/locales.d.ts +36 -0
  142. package/es/components/shoppingCart/type.d.ts +50 -0
  143. package/es/components/subTotal/locales.d.ts +42 -0
  144. package/es/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
  145. package/es/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
  146. package/es/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
  147. package/es/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
  148. package/es/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
  149. package/es/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
  150. package/es/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
  151. package/es/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
  152. package/es/components/systemSettings/registry/components/docs/images/image.png +0 -0
  153. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  154. package/es/components/systemSettings/registry/services.d.ts +77 -0
  155. package/es/components/systemSettings/registry/types.d.ts +126 -0
  156. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  157. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  158. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  159. package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -4
  160. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  161. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  162. package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  163. package/es/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
  164. package/es/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  165. package/es/components/ticketBooking/context/index.d.ts +2 -0
  166. package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
  167. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  168. package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
  169. package/es/components/ticketBooking/locales.d.ts +198 -0
  170. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  171. package/es/components/ticketBooking/utils/productCache.d.ts +75 -0
  172. package/es/components/wallet/utils.d.ts +48 -0
  173. package/es/components/walletList/locales.d.ts +27 -0
  174. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  175. package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
  176. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  177. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  178. package/es/hooks/useEngineContext.d.ts +3 -0
  179. package/es/hooks/useLogger.d.ts +2 -0
  180. package/es/hooks/useToast.d.ts +2 -0
  181. package/es/hooks/useTranslationOriginal.d.ts +1 -0
  182. package/es/hooks/useWindowSize.d.ts +5 -0
  183. package/es/plus/clientCard/locales.d.ts +18 -0
  184. package/es/plus/clientCard/types.d.ts +134 -0
  185. package/es/plus/clientCard/utils.d.ts +8 -0
  186. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  187. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  188. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  189. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  190. package/es/plus/clinetSearch/locales.d.ts +108 -0
  191. package/es/plus/clinetSearch/types.d.ts +70 -0
  192. package/es/plus/noteModal/locales.d.ts +33 -0
  193. package/es/plus/noteModal/types.d.ts +19 -0
  194. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
  195. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
  196. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
  197. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
  198. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
  199. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
  200. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  201. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
  202. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
  203. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  204. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
  205. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
  206. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  207. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
  208. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
  209. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  210. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
  211. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
  212. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
  213. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
  214. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
  215. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
  216. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
  217. package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
  218. package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
  219. package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
  220. package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
  221. package/es/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
  222. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  223. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  224. package/es/plus/selectHolder/locales.d.ts +24 -0
  225. package/es/plus/selectHolder/types.d.ts +104 -0
  226. package/es/plus/selectHolder/utils.d.ts +9 -0
  227. package/es/plus/walletEditor/locales.d.ts +135 -0
  228. package/es/plus/walletPassGallery/locales.d.ts +285 -0
  229. package/es/plus/walletPassGallery/utils.d.ts +48 -0
  230. package/es/pro/Login2.0/shared/types.d.ts +232 -0
  231. package/es/pro/NumberKeyboardPopover/types.d.ts +31 -0
  232. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  233. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  234. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  235. package/es/pro/comprehensiveSearch/locales.d.ts +15 -0
  236. package/es/pro/comprehensiveSearch/types.d.ts +32 -0
  237. package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
  238. package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  239. package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  240. package/es/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
  241. package/es/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
  242. package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
  243. package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
  244. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
  245. package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
  246. package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
  247. package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
  248. package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
  249. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
  250. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
  251. package/es/pro/skuDetailModal/locales.d.ts +48 -0
  252. package/es/pro/skuDetailModal/types.d.ts +348 -0
  253. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  254. package/lib/components/Sales/Cart/utils.d.ts +63 -0
  255. package/lib/components/Sales/Summary/utils.d.ts +51 -0
  256. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  257. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  258. package/lib/components/appointmentBooking/components/Voucher/index.js +10 -2
  259. package/lib/components/appointmentBooking/locales.d.ts +363 -0
  260. package/lib/components/booking/addons/index.js +3 -2
  261. package/lib/components/booking/components/footer/amount.js +1 -1
  262. package/lib/components/booking/components/footer/index.js +9 -0
  263. package/lib/components/booking/components/footer/utils.d.ts +1 -1
  264. package/lib/components/booking/components/footer/utils.js +5 -3
  265. package/lib/components/booking/components/voucher/index.js +6 -0
  266. package/lib/components/booking/components/voucher/index.less +4 -1
  267. package/lib/components/booking/components/voucherModal/index.less +1 -0
  268. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  269. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  270. package/lib/components/booking/forms/serve.d.ts +18 -0
  271. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  272. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  273. package/lib/components/booking/info/client/serve.d.ts +2 -0
  274. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  275. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
  276. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  277. package/lib/components/booking/info/index.d.ts +0 -1
  278. package/lib/components/booking/info/pet/serve.d.ts +1 -0
  279. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  280. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  281. package/lib/components/booking/info/service/serve.d.ts +34 -0
  282. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  283. package/lib/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  284. package/lib/components/booking/info2/cartClientCard/types.d.ts +18 -0
  285. package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  286. package/lib/components/booking/info2/serve.d.ts +6 -0
  287. package/lib/components/booking/info2/service/editService/index.js +48 -24
  288. package/lib/components/booking/locales.d.ts +951 -0
  289. package/lib/components/checkout/PaymentModal.js +24 -1
  290. package/lib/components/checkout/components/AdditionalModule/locales.d.ts +36 -0
  291. package/lib/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
  292. package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
  293. package/lib/components/checkout/components/ScrollableList/index.d.ts +5 -0
  294. package/lib/components/checkout/components/ScrollableList/types.d.ts +53 -0
  295. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  296. package/lib/components/checkout/components/WalletPassModule/index.js +1 -0
  297. package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
  298. package/lib/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
  299. package/lib/components/checkout/components/WalletPassModule/utils.js +18 -2
  300. package/lib/components/checkout/constants.d.ts +2 -0
  301. package/lib/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
  302. package/lib/components/checkout/hooks/useWalletPass.d.ts +2 -2
  303. package/lib/components/checkout/hooks/useWalletPass.js +160 -107
  304. package/lib/components/checkout/locales.d.ts +513 -0
  305. package/lib/components/checkout/styles.d.ts +67 -0
  306. package/lib/components/checkout/types.d.ts +130 -0
  307. package/lib/components/checkout/utils.d.ts +3 -0
  308. package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  309. package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
  310. package/lib/components/eftposPay/amount.d.ts +1 -1
  311. package/lib/components/eftposPay/app.d.ts +0 -1
  312. package/lib/components/eftposPay/component/fail/failCustom.js +1 -1
  313. package/lib/components/eftposPay/const.d.ts +195 -0
  314. package/lib/components/eftposPay/device.d.ts +1 -1
  315. package/lib/components/eftposPay/hooks.d.ts +2 -2
  316. package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
  317. package/lib/components/eftposPay/huifu/types.d.ts +14 -0
  318. package/lib/components/eftposPay/locales.d.ts +366 -0
  319. package/lib/components/eftposPay/manufacturer.d.ts +8 -0
  320. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  321. package/lib/components/eftposPay/store/index.d.ts +362 -0
  322. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  323. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  324. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  325. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  326. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  327. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  328. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  329. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
  330. package/lib/components/list/components/ListItemSkeleton/index.d.ts +2 -0
  331. package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
  332. package/lib/components/list/components/ScrollLoader/index.d.ts +2 -0
  333. package/lib/components/list/components/Tab/Tab.d.ts +5 -0
  334. package/lib/components/list/components/Tab/index.d.ts +2 -0
  335. package/lib/components/list/components/Tab/types.d.ts +14 -0
  336. package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
  337. package/lib/components/list/components/TabSkeleton/index.d.ts +2 -0
  338. package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
  339. package/lib/components/list/components/WaterfallList/index.d.ts +2 -0
  340. package/lib/components/list/hooks/index.d.ts +5 -0
  341. package/lib/components/list/hooks/useDevice.d.ts +24 -0
  342. package/lib/components/list/hooks/useListState.d.ts +43 -0
  343. package/lib/components/list/hooks/useWaterfall.d.ts +34 -0
  344. package/lib/components/list/locales.d.ts +66 -0
  345. package/lib/components/list/types.d.ts +177 -0
  346. package/lib/components/list/utils/getText.d.ts +53 -0
  347. package/lib/components/list/utils/index.d.ts +4 -0
  348. package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  349. package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
  350. package/lib/components/pay/toB/hooks.d.ts +12 -0
  351. package/lib/components/pay/toB/locales.d.ts +54 -0
  352. package/lib/components/pay/toB/store/context.d.ts +3 -0
  353. package/lib/components/pay/toB/store/index.d.ts +3 -0
  354. package/lib/components/pay/toB/store/provider.d.ts +4 -0
  355. package/lib/components/pay/toB/types/index.d.ts +61 -0
  356. package/lib/components/pay/toB/types/storeTypes.d.ts +143 -0
  357. package/lib/components/pay/toC/PaymentList/utils.d.ts +36 -0
  358. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
  359. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
  360. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
  361. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
  362. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  363. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  364. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  365. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -103
  366. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  367. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
  368. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  369. package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
  370. package/lib/components/pay/toC/index.js +52 -11
  371. package/lib/components/pay/toC/locales.d.ts +307 -0
  372. package/lib/components/pay/toC/model.d.ts +1 -0
  373. package/lib/components/pay/toC/serve.d.ts +18 -0
  374. package/lib/components/pay/toC/serve.js +6 -0
  375. package/lib/components/pay/toC/status.d.ts +13 -0
  376. package/lib/components/pay/toC/utils.d.ts +2 -2
  377. package/lib/components/pay/toC/utils.js +4 -0
  378. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  379. package/lib/components/ruleSetting/locales.d.ts +48 -0
  380. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  381. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  382. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  383. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  384. package/lib/components/shoppingCart/locales.d.ts +36 -0
  385. package/lib/components/shoppingCart/type.d.ts +50 -0
  386. package/lib/components/subTotal/locales.d.ts +42 -0
  387. package/lib/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
  388. package/lib/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
  389. package/lib/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
  390. package/lib/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
  391. package/lib/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
  392. package/lib/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
  393. package/lib/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
  394. package/lib/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
  395. package/lib/components/systemSettings/registry/components/docs/images/image.png +0 -0
  396. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  397. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  398. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  399. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  400. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  401. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  402. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +11 -7
  403. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  404. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  405. package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  406. package/lib/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
  407. package/lib/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  408. package/lib/components/ticketBooking/context/index.d.ts +2 -0
  409. package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
  410. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  411. package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
  412. package/lib/components/ticketBooking/locales.d.ts +198 -0
  413. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  414. package/lib/components/ticketBooking/utils/productCache.d.ts +75 -0
  415. package/lib/components/wallet/utils.d.ts +48 -0
  416. package/lib/components/walletList/locales.d.ts +27 -0
  417. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  418. package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
  419. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  420. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  421. package/lib/hooks/useEngineContext.d.ts +3 -0
  422. package/lib/hooks/useLogger.d.ts +2 -0
  423. package/lib/hooks/useToast.d.ts +2 -0
  424. package/lib/hooks/useTranslationOriginal.d.ts +1 -0
  425. package/lib/hooks/useWindowSize.d.ts +5 -0
  426. package/lib/plus/clientCard/locales.d.ts +18 -0
  427. package/lib/plus/clientCard/types.d.ts +134 -0
  428. package/lib/plus/clientCard/utils.d.ts +8 -0
  429. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  430. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  431. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  432. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  433. package/lib/plus/clinetSearch/locales.d.ts +108 -0
  434. package/lib/plus/clinetSearch/types.d.ts +70 -0
  435. package/lib/plus/noteModal/locales.d.ts +33 -0
  436. package/lib/plus/noteModal/types.d.ts +19 -0
  437. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
  438. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
  439. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
  440. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
  441. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
  442. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
  443. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  444. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
  445. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
  446. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  447. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
  448. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
  449. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  450. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
  451. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
  452. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  453. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
  454. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
  455. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
  456. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
  457. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
  458. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
  459. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
  460. package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
  461. package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
  462. package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
  463. package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
  464. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
  465. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  466. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  467. package/lib/plus/selectHolder/locales.d.ts +24 -0
  468. package/lib/plus/selectHolder/types.d.ts +104 -0
  469. package/lib/plus/selectHolder/utils.d.ts +9 -0
  470. package/lib/plus/walletEditor/locales.d.ts +135 -0
  471. package/lib/plus/walletPassGallery/locales.d.ts +285 -0
  472. package/lib/plus/walletPassGallery/utils.d.ts +48 -0
  473. package/lib/pro/Login2.0/shared/types.d.ts +232 -0
  474. package/lib/pro/NumberKeyboardPopover/types.d.ts +31 -0
  475. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  476. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  477. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  478. package/lib/pro/comprehensiveSearch/locales.d.ts +15 -0
  479. package/lib/pro/comprehensiveSearch/types.d.ts +32 -0
  480. package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
  481. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  482. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  483. package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
  484. package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
  485. package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
  486. package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
  487. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
  488. package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
  489. package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
  490. package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
  491. package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
  492. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
  493. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
  494. package/lib/pro/skuDetailModal/locales.d.ts +48 -0
  495. package/lib/pro/skuDetailModal/types.d.ts +348 -0
  496. package/lowcode/eco-cup-list/meta.ts +63 -0
  497. package/lowcode/eco-customer-list/meta.ts +63 -0
  498. package/package.json +2 -2
@@ -0,0 +1,75 @@
1
+ /**
2
+ * 产品数据缓存工具
3
+ * 使用 localStorage 实现类似 SWR 的缓存功能
4
+ */
5
+ /**
6
+ * 缓存类型
7
+ */
8
+ export declare type CacheType = 'product' | 'boardConfig';
9
+ /**
10
+ * 通用缓存获取函数
11
+ * @param osKey - OS 实例的唯一标识
12
+ * @param cacheType - 缓存类型
13
+ * @param maxAge - 缓存最大有效期(毫秒),默认不限制
14
+ */
15
+ export declare const getCache: <T = any>(osKey: string, cacheType?: CacheType, maxAge?: number) => T | null;
16
+ /**
17
+ * 从缓存中获取产品数据(兼容旧接口)
18
+ * @param osKey - OS 实例的唯一标识
19
+ * @param maxAge - 缓存最大有效期(毫秒),默认不限制
20
+ */
21
+ export declare const getProductCache: <T = any>(osKey: string, maxAge?: number) => T | null;
22
+ /**
23
+ * 通用缓存设置函数
24
+ * @param osKey - OS 实例的唯一标识
25
+ * @param data - 要缓存的数据
26
+ * @param cacheType - 缓存类型
27
+ */
28
+ export declare const setCache: <T = any>(osKey: string, data: T, cacheType?: CacheType) => void;
29
+ /**
30
+ * 设置产品缓存数据(兼容旧接口)
31
+ * @param osKey - OS 实例的唯一标识
32
+ * @param data - 要缓存的数据
33
+ */
34
+ export declare const setProductCache: <T = any>(osKey: string, data: T) => void;
35
+ /**
36
+ * 清除指定类型的缓存
37
+ * @param osKey - OS 实例的唯一标识
38
+ * @param cacheType - 缓存类型
39
+ */
40
+ export declare const clearCache: (osKey: string, cacheType?: CacheType) => void;
41
+ /**
42
+ * 清除指定 osKey 的产品缓存(兼容旧接口)
43
+ * @param osKey - OS 实例的唯一标识
44
+ */
45
+ export declare const clearProductCache: (osKey: string) => void;
46
+ /**
47
+ * 清除指定 osKey 的 BoardConfig 缓存
48
+ * @param osKey - OS 实例的唯一标识
49
+ */
50
+ export declare const clearBoardConfigCache: (osKey: string) => void;
51
+ /**
52
+ * 清除指定 osKey 的所有类型缓存
53
+ * @param osKey - OS 实例的唯一标识
54
+ */
55
+ export declare const clearAllCacheByOsKey: (osKey: string) => void;
56
+ /**
57
+ * 清除所有产品缓存
58
+ */
59
+ export declare const clearAllProductCache: () => void;
60
+ /**
61
+ * 清除所有类型的缓存
62
+ */
63
+ export declare const clearAllCache: () => void;
64
+ /**
65
+ * 获取 BoardConfig 缓存
66
+ * @param osKey - OS 实例的唯一标识
67
+ * @param maxAge - 缓存最大有效期(毫秒),默认不限制
68
+ */
69
+ export declare const getBoardConfigCache: <T = any>(osKey: string, maxAge?: number) => T | null;
70
+ /**
71
+ * 设置 BoardConfig 缓存
72
+ * @param osKey - OS 实例的唯一标识
73
+ * @param data - 要缓存的数据
74
+ */
75
+ export declare const setBoardConfigCache: <T = any>(osKey: string, data: T) => void;
@@ -0,0 +1,48 @@
1
+ interface ScheduleTextResult {
2
+ validityTexts: string[];
3
+ excluded_date: string[];
4
+ included_date: string[];
5
+ }
6
+ declare type Locale = 'en' | 'zh-CN' | 'zh-HK';
7
+ interface ScheduleItem {
8
+ id: number;
9
+ name: string | {
10
+ [key: string]: string;
11
+ };
12
+ type: 'standard' | 'time-slots' | 'designation';
13
+ start_time: string | null;
14
+ end_time: string | null;
15
+ repeat_type: 'none' | 'daily' | 'weekly';
16
+ repeat_rule: {
17
+ end: {
18
+ type: 'never' | 'date' | 'occurrence';
19
+ end_date: string | null;
20
+ occurrence: number | null;
21
+ };
22
+ frequency: number;
23
+ excluded_date: Array<{
24
+ start: string;
25
+ end: string;
26
+ }>;
27
+ included_date: any[];
28
+ frequency_date: number[];
29
+ } | null;
30
+ designation: Array<{
31
+ start_date: string;
32
+ start_time: string;
33
+ end_date: string;
34
+ end_time: string;
35
+ }> | null;
36
+ is_all: number;
37
+ time_slot: Array<{
38
+ start_time: string;
39
+ end_time: string;
40
+ }>;
41
+ }
42
+ /**
43
+ * 根据scheduleList格式化文案展示
44
+ * @param scheduleList 日程列表
45
+ * @returns 格式化后的文案结果数组,每个日程对应一个结果
46
+ */
47
+ export declare function formatScheduleText(scheduleList: ScheduleItem[], locale?: Locale): ScheduleTextResult[];
48
+ export {};
@@ -0,0 +1,27 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'page.wallet.guide.title': string;
4
+ 'page.wallet.guide.subtitle': string;
5
+ 'page.wallet.guide.button': string;
6
+ 'page.wallet.tempHolderSelector.title': string;
7
+ 'page.wallet.tempHolderSelector.create': string;
8
+ 'page.wallet.tempHolderSelector.confirm': string;
9
+ };
10
+ 'zh-CN': {
11
+ 'page.wallet.guide.title': string;
12
+ 'page.wallet.guide.subtitle': string;
13
+ 'page.wallet.guide.button': string;
14
+ 'page.wallet.tempHolderSelector.title': string;
15
+ 'page.wallet.tempHolderSelector.create': string;
16
+ 'page.wallet.tempHolderSelector.confirm': string;
17
+ };
18
+ 'zh-HK': {
19
+ 'page.wallet.guide.title': string;
20
+ 'page.wallet.guide.subtitle': string;
21
+ 'page.wallet.guide.button': string;
22
+ 'page.wallet.tempHolderSelector.title': string;
23
+ 'page.wallet.tempHolderSelector.create': string;
24
+ 'page.wallet.tempHolderSelector.confirm': string;
25
+ };
26
+ };
27
+ export default _default;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface IconItem {
3
+ name: string;
4
+ icon: React.ComponentType;
5
+ }
6
+ export declare const icons: IconItem[];
7
+ export declare const iconMap: Record<string, React.ComponentType>;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ import { MenuProps } from 'antd';
2
+ export declare const items: MenuProps['items'];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
3
2
  import './index.less';
4
3
  interface ModalProps extends AntModalProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './../../index.less';
3
2
  declare const Search: () => JSX.Element;
4
3
  export default Search;
@@ -0,0 +1,3 @@
1
+ declare const useEngineContext: () => any;
2
+ export declare const usePisellOS: () => any;
3
+ export default useEngineContext;
@@ -0,0 +1,2 @@
1
+ declare const useLogger: () => any;
2
+ export default useLogger;
@@ -0,0 +1,2 @@
1
+ declare const useToast: () => any;
2
+ export default useToast;
@@ -0,0 +1 @@
1
+ export default function useTranslationOriginal(): any;
@@ -0,0 +1,5 @@
1
+ interface UseWindowSizeOptions {
2
+ debounceMs?: number;
3
+ }
4
+ export declare const useWindowSize: (options?: UseWindowSizeOptions) => void;
5
+ export default useWindowSize;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.text.add-client': string;
4
+ 'pisell2.text.change-client': string;
5
+ 'pisell2.text.remove-client': string;
6
+ };
7
+ 'zh-CN': {
8
+ 'pisell2.text.add-client': string;
9
+ 'pisell2.text.change-client': string;
10
+ 'pisell2.text.remove-client': string;
11
+ };
12
+ 'zh-HK': {
13
+ 'pisell2.text.add-client': string;
14
+ 'pisell2.text.change-client': string;
15
+ 'pisell2.text.remove-client': string;
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,134 @@
1
+ import React, { ReactElement } from 'react';
2
+ export interface ClientData {
3
+ id: number;
4
+ shop_id: number;
5
+ display_name?: string;
6
+ nickname?: string;
7
+ email?: string;
8
+ phone?: string;
9
+ country_calling_code?: string;
10
+ channel?: string;
11
+ created_at: string;
12
+ updated_at: string;
13
+ waiver_form?: any;
14
+ avatar?: string;
15
+ birthday?: string;
16
+ address?: string;
17
+ tags?: string[];
18
+ [key: string]: any;
19
+ }
20
+ export declare type CardType = 'b1' | 'b2' | 'b5' | 'b9';
21
+ export declare type Direction = 'horizontal' | 'vertical';
22
+ export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | number | string;
23
+ export declare type AvatarShape = 'circle' | 'square';
24
+ export interface AvatarConfig {
25
+ icon?: string;
26
+ shape?: AvatarShape;
27
+ borderRadius?: number | string;
28
+ size?: AvatarSize;
29
+ useTextAvatar?: boolean;
30
+ children?: string;
31
+ }
32
+ export interface StatusConfig {
33
+ color?: string;
34
+ }
35
+ export interface NameStyle {
36
+ fontSize?: number | string;
37
+ fontWeight?: number | string;
38
+ color?: string;
39
+ textDecoration?: string;
40
+ }
41
+ export interface TagItem {
42
+ children: string;
43
+ color: string;
44
+ }
45
+ export interface TagConfig {
46
+ placement?: 'separate' | 'inline';
47
+ flexWrap?: 'nowrap' | 'wrap';
48
+ gap?: number | string;
49
+ }
50
+ export interface ExtraField {
51
+ label?: string;
52
+ value?: string;
53
+ isShowLabel?: boolean;
54
+ isShowValue?: boolean;
55
+ icon?: string;
56
+ iconSize?: number;
57
+ iconColor?: string;
58
+ }
59
+ export interface Slots {
60
+ top?: React.ReactNode;
61
+ bottom?: React.ReactNode;
62
+ left?: React.ReactNode;
63
+ right?: React.ReactNode;
64
+ }
65
+ export interface StyleConfig {
66
+ width?: number | string;
67
+ border?: 'solid' | 'unset';
68
+ borderWidth?: number | string;
69
+ borderColor?: string;
70
+ borderRadius?: number | string;
71
+ padding?: number | string;
72
+ [key: string]: any;
73
+ }
74
+ export interface FieldNames {
75
+ id?: string | ((data: any) => any);
76
+ name?: string | ((data: any) => any);
77
+ cover?: string | ((data: any) => any);
78
+ phone?: string | ((data: any) => any);
79
+ email?: string | ((data: any) => any);
80
+ birthday?: string | ((data: any) => any);
81
+ address?: string | ((data: any) => any);
82
+ tags?: string | ((data: any) => any);
83
+ [key: string]: string | ((data: any) => any) | undefined;
84
+ }
85
+ export interface DisplayConfig {
86
+ isShowAvatar?: boolean;
87
+ isShowName?: boolean;
88
+ isShowPhone?: boolean;
89
+ isShowEmail?: boolean;
90
+ isShowBirthday?: boolean;
91
+ isShowAddress?: boolean;
92
+ isShowTag?: boolean;
93
+ isShowStatus?: boolean;
94
+ }
95
+ export interface ClientCardProps extends DisplayConfig {
96
+ type?: CardType;
97
+ direction?: Direction;
98
+ dataSource?: ClientData | any;
99
+ fieldNames?: FieldNames;
100
+ style?: StyleConfig;
101
+ horizontalGap?: number | string;
102
+ verticalGap?: number | string;
103
+ avatar?: AvatarConfig;
104
+ status?: StatusConfig;
105
+ dropdown?: {
106
+ open?: boolean;
107
+ buttonProps?: {
108
+ icon?: ReactElement;
109
+ onClick?: (e: Event) => void;
110
+ style?: React.CSSProperties;
111
+ };
112
+ };
113
+ defaultName?: string;
114
+ nameStyle?: NameStyle;
115
+ tags?: Array<TagItem | string>;
116
+ tag?: TagConfig;
117
+ extraFields?: ExtraField[];
118
+ slots?: Slots;
119
+ onAddClient?: () => void;
120
+ onChangeClient?: (data: ClientData) => void;
121
+ onRemoveClient?: (data: ClientData) => void;
122
+ onViewClient?: (data: ClientData) => void;
123
+ }
124
+ export interface ProcessedClientData {
125
+ id: any;
126
+ name: string;
127
+ cover?: string;
128
+ phone?: string;
129
+ email?: string;
130
+ birthday?: string;
131
+ address?: string;
132
+ tags?: string[];
133
+ [key: string]: any;
134
+ }
@@ -0,0 +1,8 @@
1
+ interface FieldMapping<T = any, R = any> {
2
+ [key: string]: string | ((data: T) => R) | undefined;
3
+ }
4
+ export declare function getFieldValue<T, R = any>(data: T, fieldKey: string): R | undefined;
5
+ export declare function getFieldValue<T, R = any>(data: T, fieldKey: string, mapping: FieldMapping<T, R>): R | undefined;
6
+ export declare const getAvatarText: (name: string) => string;
7
+ export declare const isWalkIn: (customer_id?: number | string) => boolean;
8
+ export {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
3
2
  export default PhoneField;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { InfiniteScrollProps } from './types';
3
+ declare const InfiniteScroll: React.FC<InfiniteScrollProps>;
4
+ export default InfiniteScroll;
5
+ export type { InfiniteScrollProps };
@@ -0,0 +1,2 @@
1
+ export { default } from './InfiniteScroll';
2
+ export type { InfiniteScrollProps, ScrollPosition, TouchInfo, InfiniteScrollState } from './types';
@@ -0,0 +1,46 @@
1
+ import { ReactNode, CSSProperties } from 'react';
2
+ /**
3
+ * 无限滚动组件的属性接口
4
+ */
5
+ export interface InfiniteScrollProps {
6
+ /** 数据长度,用于判断是否需要加载更多 */
7
+ dataLength: number;
8
+ /** 加载更多数据的函数 */
9
+ next: () => void;
10
+ /** 是否还有更多数据 */
11
+ hasMore: boolean;
12
+ /** 加载中显示的组件 */
13
+ loader?: ReactNode;
14
+ /** 没有更多数据时显示的组件 */
15
+ endMessage?: ReactNode;
16
+ /** 滚动容器的高度 */
17
+ height?: number | string;
18
+ /** 滚动阈值,0-1之间的数值或像素值 */
19
+ scrollThreshold?: number | string;
20
+ /** 滚动事件回调 */
21
+ onScroll?: (event: Event) => void;
22
+ /** 自定义样式 */
23
+ style?: CSSProperties;
24
+ /** 自定义类名 */
25
+ className?: string;
26
+ /** 指定滚动容器的目标元素ID */
27
+ scrollableTarget?: string;
28
+ /** 子元素 */
29
+ children: ReactNode;
30
+ /** 是否反向滚动 */
31
+ inverse?: boolean;
32
+ }
33
+ /**
34
+ * 滚动位置信息
35
+ */
36
+ export interface ScrollPosition {
37
+ scrollTop: number;
38
+ scrollHeight: number;
39
+ clientHeight: number;
40
+ }
41
+ /**
42
+ * 组件内部状态
43
+ */
44
+ export interface InfiniteScrollState {
45
+ isLoading: boolean;
46
+ }
@@ -0,0 +1,108 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.text.leave-empty-for-walk-in': string;
4
+ 'pisell2.text.date-year-text': string;
5
+ 'pisell2.text.date-month-text': string;
6
+ 'pisell2.text.date-day-text': string;
7
+ 'pisell2.text.gender': string;
8
+ 'pisell2.text.gender.male': string;
9
+ 'pisell2.text.gender.female': string;
10
+ 'pisell2.text.birthday': string;
11
+ 'pisell2.text.phone': string;
12
+ 'pisell2.text.email': string;
13
+ 'pisell2.text.lastname': string;
14
+ 'pisell2.text.firstname': string;
15
+ 'pisell2.text.email-error-message': string;
16
+ 'pisell2.text.notes': string;
17
+ 'pisell2.text.save': string;
18
+ 'pisell2.text.save-and-select': string;
19
+ 'pisell2.text.no-results-found': string;
20
+ 'pisell2.text.create-new-client': string;
21
+ 'pisell2.text.result-found': string;
22
+ 'pisell2.text.personnel-list': string;
23
+ 'pisell2.text.load-more': string;
24
+ 'pisell2.text.add-client.confirm': string;
25
+ 'pisell2.text.search-customer-by-phone-number': string;
26
+ 'pisell2.text.create': string;
27
+ 'pisell2.text.loading': string;
28
+ 'pisell2.text.no-more-data': string;
29
+ 'pisell2.text.client-search.name': string;
30
+ 'pisell2.text.client-search.register-time': string;
31
+ 'pisell2.text.client-search.phone': string;
32
+ 'pisell2.text.client-search.email': string;
33
+ 'pisell2.text.client-search.membership': string;
34
+ 'pisell2.text.client-search.contact-info': string;
35
+ 'pisell2.text.client-search.holder': string;
36
+ };
37
+ 'zh-CN': {
38
+ 'pisell2.text.leave-empty-for-walk-in': string;
39
+ 'pisell2.text.date-year-text': string;
40
+ 'pisell2.text.date-month-text': string;
41
+ 'pisell2.text.date-day-text': string;
42
+ 'pisell2.text.gender': string;
43
+ 'pisell2.text.gender.male': string;
44
+ 'pisell2.text.gender.female': string;
45
+ 'pisell2.text.birthday': string;
46
+ 'pisell2.text.phone': string;
47
+ 'pisell2.text.email': string;
48
+ 'pisell2.text.lastname': string;
49
+ 'pisell2.text.firstname': string;
50
+ 'pisell2.text.email-error-message': string;
51
+ 'pisell2.text.notes': string;
52
+ 'pisell2.text.save': string;
53
+ 'pisell2.text.save-and-select': string;
54
+ 'pisell2.text.no-results-found': string;
55
+ 'pisell2.text.create-new-client': string;
56
+ 'pisell2.text.result-found': string;
57
+ 'pisell2.text.personnel-list': string;
58
+ 'pisell2.text.add-client.confirm': string;
59
+ 'pisell2.text.load-more': string;
60
+ 'pisell2.text.search-customer-by-phone-number': string;
61
+ 'pisell2.text.create': string;
62
+ 'pisell2.text.loading': string;
63
+ 'pisell2.text.no-more-data': string;
64
+ 'pisell2.text.client-search.name': string;
65
+ 'pisell2.text.client-search.register-time': string;
66
+ 'pisell2.text.client-search.phone': string;
67
+ 'pisell2.text.client-search.email': string;
68
+ 'pisell2.text.client-search.membership': string;
69
+ 'pisell2.text.client-search.contact-info': string;
70
+ 'pisell2.text.client-search.holder': string;
71
+ };
72
+ 'zh-HK': {
73
+ 'pisell2.text.leave-empty-for-walk-in': string;
74
+ 'pisell2.text.date-year-text': string;
75
+ 'pisell2.text.date-month-text': string;
76
+ 'pisell2.text.date-day-text': string;
77
+ 'pisell2.text.gender': string;
78
+ 'pisell2.text.gender.male': string;
79
+ 'pisell2.text.gender.female': string;
80
+ 'pisell2.text.birthday': string;
81
+ 'pisell2.text.phone': string;
82
+ 'pisell2.text.email': string;
83
+ 'pisell2.text.lastname': string;
84
+ 'pisell2.text.firstname': string;
85
+ 'pisell2.text.email-error-message': string;
86
+ 'pisell2.text.notes': string;
87
+ 'pisell2.text.save': string;
88
+ 'pisell2.text.save-and-select': string;
89
+ 'pisell2.text.no-results-found': string;
90
+ 'pisell2.text.create-new-client': string;
91
+ 'pisell2.text.result-found': string;
92
+ 'pisell2.text.personnel-list': string;
93
+ 'pisell2.text.add-client.confirm': string;
94
+ 'pisell2.text.load-more': string;
95
+ 'pisell2.text.search-customer-by-phone-number': string;
96
+ 'pisell2.text.create': string;
97
+ 'pisell2.text.loading': string;
98
+ 'pisell2.text.no-more-data': string;
99
+ 'pisell2.text.client-search.name': string;
100
+ 'pisell2.text.client-search.register-time': string;
101
+ 'pisell2.text.client-search.phone': string;
102
+ 'pisell2.text.client-search.email': string;
103
+ 'pisell2.text.client-search.membership': string;
104
+ 'pisell2.text.client-search.contact-info': string;
105
+ 'pisell2.text.client-search.holder': string;
106
+ };
107
+ };
108
+ export default _default;
@@ -0,0 +1,70 @@
1
+ /// <reference types="react" />
2
+ export interface FormRecord {
3
+ form_id: number;
4
+ id: number;
5
+ main_field: string;
6
+ data?: {
7
+ [key: string]: any;
8
+ };
9
+ }
10
+ export interface ClientData {
11
+ id: number;
12
+ display_name: string;
13
+ created_at: string;
14
+ phone: string;
15
+ email: string;
16
+ channel: string;
17
+ country_calling_code: string;
18
+ nickname: string;
19
+ shop_id: number;
20
+ updated_at: string;
21
+ contacts_info: {
22
+ value: {
23
+ first_name?: string;
24
+ last_name?: string;
25
+ phone?: {
26
+ phone?: string;
27
+ country_calling_code?: string;
28
+ country_code?: string;
29
+ };
30
+ email?: string;
31
+ };
32
+ };
33
+ form_record: FormRecord[];
34
+ }
35
+ export interface ClientSearchProps {
36
+ dataSource?: any;
37
+ isShowScanner?: boolean;
38
+ isShowCamera?: boolean;
39
+ isShowNFC?: boolean;
40
+ isShowNewButton?: boolean;
41
+ newButtonAlign?: 'left' | 'center' | 'right';
42
+ newButtonText?: string;
43
+ renderType?: 'modal' | 'drawer' | 'portal' | '';
44
+ containerProps?: Record<string, any>;
45
+ isShowSearch?: boolean;
46
+ isShowSearchCamera?: boolean;
47
+ searchIcon?: string;
48
+ placeholder?: string;
49
+ isShowSearchButton?: boolean;
50
+ resultSort?: 'asc' | 'desc' | 'custom';
51
+ sortBy?: string;
52
+ style?: React.CSSProperties;
53
+ onChange?: (value: string) => void;
54
+ onSearch?: (value: string) => void;
55
+ onAdd?: () => void;
56
+ onDataChange?: (data: any) => void;
57
+ onRowClick?: (record: ClientData, index: number) => void;
58
+ }
59
+ export interface ClientFormData {
60
+ display_name: string;
61
+ phone?: string;
62
+ email?: string;
63
+ nickname?: string;
64
+ }
65
+ export interface ClientSearchState {
66
+ modalVisible: boolean;
67
+ loading: boolean;
68
+ searchResults: ClientData[];
69
+ searchValue: string;
70
+ }
@@ -0,0 +1,33 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.text.note': string;
4
+ 'pisell2.text.note.modal.title': string;
5
+ 'pisell2.text.note.modal.btn.confirm': string;
6
+ 'pisell2.text.note.modal.btn.cancel': string;
7
+ 'pisell2.text.note.modal.btn.delete': string;
8
+ 'pisell2.text.note.modal.btn.add.template': string;
9
+ 'pisell2.text.note.modal.placeholder': string;
10
+ 'pisell2.text.note.modal.add.template.title': string;
11
+ };
12
+ 'zh-CN': {
13
+ 'pisell2.text.note': string;
14
+ 'pisell2.text.note.modal.title': string;
15
+ 'pisell2.text.note.modal.btn.confirm': string;
16
+ 'pisell2.text.note.modal.btn.cancel': string;
17
+ 'pisell2.text.note.modal.btn.delete': string;
18
+ 'pisell2.text.note.modal.btn.add.template': string;
19
+ 'pisell2.text.note.modal.placeholder': string;
20
+ 'pisell2.text.note.modal.add.template.title': string;
21
+ };
22
+ 'zh-HK': {
23
+ 'pisell2.text.note': string;
24
+ 'pisell2.text.note.modal.title': string;
25
+ 'pisell2.text.note.modal.btn.confirm': string;
26
+ 'pisell2.text.note.modal.btn.cancel': string;
27
+ 'pisell2.text.note.modal.btn.delete': string;
28
+ 'pisell2.text.note.modal.btn.add.template': string;
29
+ 'pisell2.text.note.modal.placeholder': string;
30
+ 'pisell2.text.note.modal.add.template.title': string;
31
+ };
32
+ };
33
+ export default _default;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ export interface NoteModalProps {
3
+ /** 是否显示弹窗 */
4
+ open?: boolean;
5
+ /** 弹窗标题 */
6
+ title?: string;
7
+ /** 初始内容 */
8
+ value?: string;
9
+ /** 确认回调 */
10
+ onConfirm?: (value: string) => void;
11
+ /** 删除回调 */
12
+ onDelete?: () => void;
13
+ /** 取消回调 */
14
+ onCancel?: () => void;
15
+ /** 弹窗层级 */
16
+ zIndex?: number;
17
+ }
18
+ export interface NoteModalComponent extends React.FC<NoteModalProps> {
19
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SkuCardA1: (props: any) => JSX.Element;
4
3
  export default SkuCardA1;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SkuCardA2: (props: any) => JSX.Element;
4
3
  export default SkuCardA2;