@pisell/private-materials 6.7.5 → 6.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +5 -5
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  16. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  17. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  18. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  19. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  20. package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  21. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  22. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  23. package/es/components/appointmentBooking/index.d.ts +1 -0
  24. package/es/components/booking/addons/index.js +1 -1
  25. package/es/components/booking/components/footer/amount.d.ts +37 -0
  26. package/es/components/booking/components/footer/amount.js +48 -34
  27. package/es/components/booking/components/footer/index.d.ts +1 -0
  28. package/es/components/booking/components/footer/utils.js +38 -38
  29. package/es/components/booking/components/voucher/index.d.ts +1 -0
  30. package/es/components/booking/components/voucher/index.js +3 -1
  31. package/es/components/booking/deposit/index.d.ts +1 -0
  32. package/es/components/booking/forms/footer.d.ts +1 -0
  33. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  34. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  35. package/es/components/booking/hooks/useQuotation.d.ts +1 -0
  36. package/es/components/booking/hooks/useQuotation.js +4 -1
  37. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  38. package/es/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  39. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  40. package/es/components/booking/info/header/index.d.ts +1 -0
  41. package/es/components/booking/info/index.d.ts +1 -0
  42. package/es/components/booking/info/service/Lists.d.ts +1 -0
  43. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  44. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  45. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  46. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  47. package/es/components/booking/info/service2/utils.d.ts +251 -0
  48. package/es/components/booking/info2/service/addService/index.d.ts +12 -0
  49. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  50. package/es/components/booking/info2/service/editNormalService/index.js +6 -0
  51. package/es/components/booking/info2/service/editService/index.js +16 -6
  52. package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
  53. package/es/components/booking/info2/service/editService/utils.js +66 -0
  54. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  55. package/es/components/booking/utils.d.ts +174 -0
  56. package/es/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
  57. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +16 -0
  58. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
  59. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  60. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
  61. package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  62. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  63. package/es/components/checkout/locales.d.ts +513 -0
  64. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
  65. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  66. package/es/components/eftposPay/amount.d.ts +1 -1
  67. package/es/components/eftposPay/device.d.ts +1 -1
  68. package/es/components/eftposPay/hooks.d.ts +2 -2
  69. package/es/components/eftposPay/index.d.ts +1 -0
  70. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  71. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  72. package/es/components/eftposPay/payo/config.d.ts +13 -0
  73. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  74. package/es/components/eftposPay/store/index.d.ts +4 -4
  75. package/es/components/eftposPay/tyro/index.d.ts +9 -0
  76. package/es/components/eftposPay/utils/log/index.d.ts +110 -0
  77. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  78. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  79. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  80. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  81. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  82. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  83. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  84. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  85. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  86. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  87. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  88. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  89. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  90. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  91. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  92. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  93. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  94. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  95. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  96. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  97. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  98. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  99. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  100. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  101. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  102. package/es/components/eventBooking/index.d.ts +1 -0
  103. package/es/components/index.d.ts +24 -0
  104. package/es/components/list/List.js +56 -40
  105. package/es/components/list/hooks/useListState.d.ts +5 -3
  106. package/es/components/list/hooks/useListState.js +17 -2
  107. package/es/components/list/styles/header.less +3 -3
  108. package/es/components/list/utils/index.d.ts +13 -1
  109. package/es/components/list/utils/index.js +43 -1
  110. package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
  111. package/es/components/pay/toB/components/Card/index.d.ts +1 -0
  112. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  113. package/es/components/pay/toB/components/Content/Footer.d.ts +1 -0
  114. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  115. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
  116. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  117. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  118. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +155 -0
  119. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  120. package/es/components/pay/toC/locales.d.ts +301 -0
  121. package/es/components/pay/toC/status.d.ts +13 -0
  122. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  123. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  124. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  125. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  126. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  127. package/es/components/productExtension/index.d.ts +1 -0
  128. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  129. package/es/components/ruleSetting/index.d.ts +1 -0
  130. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  131. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  132. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  133. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  134. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  135. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  136. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  137. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  138. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  139. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  140. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  141. package/es/components/systemSettings/registry/services.d.ts +77 -0
  142. package/es/components/systemSettings/registry/types.d.ts +126 -0
  143. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  144. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  145. package/es/components/taxSelect/index.d.ts +1 -0
  146. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +1 -0
  147. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +33 -2
  148. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +139 -36
  149. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  150. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  151. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  152. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  153. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  154. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
  155. package/es/components/ticketBooking/index.d.ts +1 -0
  156. package/es/components/ticketBooking/locales.d.ts +198 -0
  157. package/es/components/ticketBooking/utils/index.d.ts +93 -0
  158. package/es/components/wallet/Detail/locales.d.ts +153 -0
  159. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  160. package/es/components/wallet/serve.d.ts +150 -0
  161. package/es/components/wallet/utils.d.ts +48 -0
  162. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  163. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  164. package/es/plus/clientCard/locales.d.ts +18 -0
  165. package/es/plus/clinetSearch/index.d.ts +17 -0
  166. package/es/plus/clinetSearch/locales.d.ts +105 -0
  167. package/es/plus/clinetSearch/types.d.ts +61 -0
  168. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
  169. package/es/plus/noteModal/AddTempModal.d.ts +1 -0
  170. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -0
  171. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  172. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  173. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  174. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -0
  175. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -0
  176. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  177. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  178. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -0
  179. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -0
  180. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  181. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  182. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +1 -0
  183. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -0
  184. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  185. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +1 -0
  186. package/es/plus/saasCreateOrganization/index.d.ts +1 -0
  187. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  188. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  189. package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  190. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  191. package/es/plus/walletPassGallery/index.d.ts +1 -0
  192. package/es/plus/walletPassGallery/serve.d.ts +221 -0
  193. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  194. package/es/pro/comprehensiveSearch/locales.d.ts +15 -0
  195. package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  196. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -0
  197. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +13 -0
  198. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
  199. package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -0
  200. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
  201. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
  202. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  203. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  204. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  205. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  206. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  207. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  208. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  209. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  210. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  211. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  212. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  213. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  214. package/lib/components/appointmentBooking/index.d.ts +1 -0
  215. package/lib/components/booking/components/footer/amount.d.ts +37 -0
  216. package/lib/components/booking/components/footer/amount.js +29 -15
  217. package/lib/components/booking/components/footer/index.d.ts +1 -0
  218. package/lib/components/booking/components/footer/utils.js +8 -8
  219. package/lib/components/booking/components/voucher/index.d.ts +1 -0
  220. package/lib/components/booking/components/voucher/index.js +4 -2
  221. package/lib/components/booking/deposit/index.d.ts +1 -0
  222. package/lib/components/booking/forms/footer.d.ts +1 -0
  223. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  224. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  225. package/lib/components/booking/hooks/useQuotation.d.ts +1 -0
  226. package/lib/components/booking/hooks/useQuotation.js +2 -1
  227. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  228. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  229. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  230. package/lib/components/booking/info/header/index.d.ts +1 -0
  231. package/lib/components/booking/info/index.d.ts +1 -0
  232. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  233. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  234. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  235. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  236. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  237. package/lib/components/booking/info/service2/utils.d.ts +251 -0
  238. package/lib/components/booking/info2/service/addService/index.d.ts +12 -0
  239. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  240. package/lib/components/booking/info2/service/editNormalService/index.js +6 -0
  241. package/lib/components/booking/info2/service/editService/index.js +12 -3
  242. package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
  243. package/lib/components/booking/info2/service/editService/utils.js +40 -3
  244. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  245. package/lib/components/booking/utils.d.ts +174 -0
  246. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
  247. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +16 -0
  248. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
  249. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  250. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
  251. package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  252. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  253. package/lib/components/checkout/locales.d.ts +513 -0
  254. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
  255. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  256. package/lib/components/eftposPay/amount.d.ts +1 -1
  257. package/lib/components/eftposPay/device.d.ts +1 -1
  258. package/lib/components/eftposPay/hooks.d.ts +2 -2
  259. package/lib/components/eftposPay/index.d.ts +1 -0
  260. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  261. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  262. package/lib/components/eftposPay/payo/config.d.ts +13 -0
  263. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  264. package/lib/components/eftposPay/store/index.d.ts +4 -4
  265. package/lib/components/eftposPay/tyro/index.d.ts +9 -0
  266. package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
  267. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  268. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  269. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  270. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  271. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  272. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  273. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  274. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  275. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  276. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  277. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  278. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  279. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  280. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  281. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  282. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  283. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  284. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  285. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  286. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  287. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  288. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  289. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  290. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  291. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  292. package/lib/components/eventBooking/index.d.ts +1 -0
  293. package/lib/components/index.d.ts +24 -0
  294. package/lib/components/list/List.js +34 -16
  295. package/lib/components/list/hooks/useListState.d.ts +5 -3
  296. package/lib/components/list/hooks/useListState.js +14 -1
  297. package/lib/components/list/styles/header.less +3 -3
  298. package/lib/components/list/utils/index.d.ts +13 -1
  299. package/lib/components/list/utils/index.js +27 -0
  300. package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
  301. package/lib/components/pay/toB/components/Card/index.d.ts +1 -0
  302. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  303. package/lib/components/pay/toB/components/Content/Footer.d.ts +1 -0
  304. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  305. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
  306. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  307. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  308. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +155 -0
  309. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  310. package/lib/components/pay/toC/locales.d.ts +301 -0
  311. package/lib/components/pay/toC/status.d.ts +13 -0
  312. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  313. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  314. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  315. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  316. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  317. package/lib/components/productExtension/index.d.ts +1 -0
  318. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  319. package/lib/components/ruleSetting/index.d.ts +1 -0
  320. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  321. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  322. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  323. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  324. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  325. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  326. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  327. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  328. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  329. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  330. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  331. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  332. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  333. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  334. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  335. package/lib/components/taxSelect/index.d.ts +1 -0
  336. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +1 -0
  337. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +33 -2
  338. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +84 -24
  339. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  340. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  341. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  342. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  343. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  344. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
  345. package/lib/components/ticketBooking/index.d.ts +1 -0
  346. package/lib/components/ticketBooking/locales.d.ts +198 -0
  347. package/lib/components/ticketBooking/utils/index.d.ts +93 -0
  348. package/lib/components/wallet/Detail/locales.d.ts +153 -0
  349. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  350. package/lib/components/wallet/serve.d.ts +150 -0
  351. package/lib/components/wallet/utils.d.ts +48 -0
  352. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  353. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  354. package/lib/plus/clientCard/locales.d.ts +18 -0
  355. package/lib/plus/clinetSearch/index.d.ts +17 -0
  356. package/lib/plus/clinetSearch/locales.d.ts +105 -0
  357. package/lib/plus/clinetSearch/types.d.ts +61 -0
  358. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
  359. package/lib/plus/noteModal/AddTempModal.d.ts +1 -0
  360. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -0
  361. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  362. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  363. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  364. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -0
  365. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -0
  366. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  367. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  368. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -0
  369. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -0
  370. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  371. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  372. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +1 -0
  373. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -0
  374. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  375. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +1 -0
  376. package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
  377. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  378. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  379. package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  380. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  381. package/lib/plus/walletPassGallery/index.d.ts +1 -0
  382. package/lib/plus/walletPassGallery/serve.d.ts +221 -0
  383. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  384. package/lib/pro/comprehensiveSearch/locales.d.ts +15 -0
  385. package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  386. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -0
  387. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +13 -0
  388. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
  389. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -0
  390. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
  391. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
  392. package/package.json +2 -2
@@ -1,3 +1,7 @@
1
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
2
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
4
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
1
5
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
6
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
7
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -34,55 +38,32 @@ export var formatSkuDataSource = function formatSkuDataSource(dataSource) {
34
38
  * 产品项接口
35
39
  */
36
40
 
41
+ /**
42
+ * 分类树节点接口(Switch 模式返回值)
43
+ */
44
+
37
45
  /**
38
46
  * 根据产品数据生成分类 Tabs(Switch 模式)
39
47
  * 参考 TestResponsiveWrapper 的 generateSimpleTabItems 函数
40
48
  *
41
49
  * @param products 产品列表
42
50
  * @param tabStyle tab 样式类型
43
- * @returns TabItem 数组
51
+ * @returns Switch 模式返回 CategoryTreeNode[],Anchor 模式返回 TabItem[]
44
52
  */
45
53
  export var generateProductTabs = function generateProductTabs(products) {
46
54
  var tabStyle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'switch';
47
55
  if (!products || products.length === 0) {
56
+ if (tabStyle === 'switch') {
57
+ return [];
58
+ }
48
59
  return [{
49
60
  key: 'all',
50
61
  label: locales.getText('pisell2.ticket-booking.all')
51
62
  }];
52
63
  }
53
64
  if (tabStyle === 'switch') {
54
- // 切换模式:提取产品的分类信息,不显示动态数量
55
- var categoryMap = new Map();
56
-
57
- // 收集所有分类
58
- products.forEach(function (product) {
59
- if (product.category && Array.isArray(product.category)) {
60
- product.category.forEach(function (cat) {
61
- if (!categoryMap.has(cat.id)) {
62
- categoryMap.set(cat.id, cat);
63
- }
64
- });
65
- }
66
- });
67
-
68
- // 按 sort 字段排序(降序,sort 越大越靠前)
69
- var sortedCategories = Array.from(categoryMap.values()).sort(function (a, b) {
70
- return (b.sort || 0) - (a.sort || 0);
71
- });
72
-
73
- // 生成 tabs
74
- var tabs = [{
75
- key: 'all',
76
- label: locales.getText('pisell2.ticket-booking.all')
77
- }];
78
- sortedCategories.forEach(function (category) {
79
- tabs.push({
80
- key: String(category.id),
81
- label: category.name,
82
- group: String(category.id)
83
- });
84
- });
85
- return tabs;
65
+ // 切换模式:构建多级分类树形结构
66
+ return buildCategoryTree(products);
86
67
  } else {
87
68
  // 锚点模式:基于实际数据统计数量
88
69
  var categoryCount = products.reduce(function (acc, product) {
@@ -102,7 +83,7 @@ export var generateProductTabs = function generateProductTabs(products) {
102
83
  }, {});
103
84
 
104
85
  // 生成 tabs
105
- var _tabs = [{
86
+ var tabs = [{
106
87
  key: 'all',
107
88
  label: "".concat(locales.getText('pisell2.ticket-booking.all'), " (").concat(products.length, ")")
108
89
  }];
@@ -121,12 +102,134 @@ export var generateProductTabs = function generateProductTabs(products) {
121
102
  _ref6$ = _ref6[1],
122
103
  count = _ref6$.count,
123
104
  category = _ref6$.category;
124
- _tabs.push({
105
+ tabs.push({
125
106
  key: key,
126
107
  label: "".concat(category.name, " (").concat(count, ")"),
127
108
  group: key
128
109
  });
129
110
  });
130
- return _tabs;
111
+ return tabs;
112
+ }
113
+ };
114
+
115
+ /**
116
+ * 构建分类树形结构(Switch 模式专用)
117
+ *
118
+ * @param products 产品列表
119
+ * @returns CategoryTreeNode[] 树形分类结构
120
+ */
121
+ var buildCategoryTree = function buildCategoryTree(products) {
122
+ // 1. 收集所有分类及其对应的商品 ID
123
+ var categoryMap = new Map();
124
+ var categoryProductMap = new Map();
125
+ products.forEach(function (product) {
126
+ if (product.category && Array.isArray(product.category)) {
127
+ product.category.forEach(function (cat) {
128
+ // 收集分类信息
129
+ if (!categoryMap.has(cat.id)) {
130
+ categoryMap.set(cat.id, cat);
131
+ }
132
+ // 收集分类对应的商品 ID
133
+ if (!categoryProductMap.has(cat.id)) {
134
+ categoryProductMap.set(cat.id, new Set());
135
+ }
136
+ categoryProductMap.get(cat.id).add(product.id);
137
+ });
138
+ }
139
+ });
140
+
141
+ // 2. 构建父子关系映射
142
+ var childrenMap = new Map();
143
+ var rootCategories = [];
144
+ categoryMap.forEach(function (category, id) {
145
+ var parentId = category.parent_id;
146
+ // parent_id 为 0、null 或 undefined 表示一级分类
147
+ if (!parentId || parentId === 0) {
148
+ rootCategories.push(id);
149
+ } else {
150
+ if (!childrenMap.has(parentId)) {
151
+ childrenMap.set(parentId, []);
152
+ }
153
+ childrenMap.get(parentId).push(id);
154
+ }
155
+ });
156
+
157
+ // 3. 按 sort 字段排序
158
+ var sortBySort = function sortBySort(ids) {
159
+ return ids.sort(function (a, b) {
160
+ var catA = categoryMap.get(a);
161
+ var catB = categoryMap.get(b);
162
+ return ((catB === null || catB === void 0 ? void 0 : catB.sort) || 0) - ((catA === null || catA === void 0 ? void 0 : catA.sort) || 0);
163
+ });
164
+ };
165
+
166
+ /**
167
+ * 递归构建分类节点
168
+ *
169
+ * @param categoryId 分类 ID
170
+ * @param parentPath 父级路径(用于生成 pid)
171
+ * @returns CategoryTreeNode 分类节点
172
+ */
173
+ var buildNode = function buildNode(categoryId, parentPath) {
174
+ var category = categoryMap.get(categoryId);
175
+ var childIds = childrenMap.get(categoryId) || [];
176
+ var sortedChildIds = sortBySort(_toConsumableArray(childIds));
177
+
178
+ // 当前分类直接关联的商品 ID
179
+ var directProductIds = Array.from(categoryProductMap.get(categoryId) || []);
180
+
181
+ // 计算当前节点的 pid
182
+ var currentPath = parentPath ? "".concat(parentPath, "_").concat(categoryId) : String(categoryId);
183
+ var pid = parentPath || undefined;
184
+
185
+ // 基础节点
186
+ var node = {
187
+ id: categoryId,
188
+ key: categoryId,
189
+ group: categoryId,
190
+ label: category.name,
191
+ name: category.name,
192
+ icon: category.icon,
193
+ productIds: directProductIds
194
+ };
195
+
196
+ // 添加 pid(一级分类没有 pid)
197
+ if (pid) {
198
+ node.pid = pid;
199
+ }
200
+
201
+ // 如果有子分类,递归构建
202
+ if (sortedChildIds.length > 0) {
203
+ var childNodes = sortedChildIds.map(function (childId) {
204
+ return buildNode(childId, currentPath);
205
+ });
206
+
207
+ // 递归汇总所有子分类的商品 ID
208
+ var allChildProductIds = childNodes.reduce(function (acc, child) {
209
+ return acc.concat(child.productIds);
210
+ }, []);
211
+
212
+ // 合并当前分类和所有子分类的商品 ID(去重)
213
+ var mergedProductIds = Array.from(new Set([].concat(directProductIds, _toConsumableArray(allChildProductIds))));
214
+ node.productIds = mergedProductIds;
215
+ node.children = _toConsumableArray(childNodes);
216
+ }
217
+ return node;
218
+ };
219
+
220
+ // 4. 从根分类开始构建树
221
+ var sortedRootIds = sortBySort([].concat(rootCategories));
222
+ var rootNodes = sortedRootIds.map(function (rootId) {
223
+ return buildNode(rootId, '');
224
+ });
225
+
226
+ // 5. 如果有根分类,在根级别追加 All 节点
227
+ if (rootNodes.length > 0) {
228
+ // 汇总所有根分类的商品 ID
229
+ var allProductIds = Array.from(new Set(rootNodes.flatMap(function (node) {
230
+ return node.productIds;
231
+ })));
232
+ return _toConsumableArray(rootNodes);
131
233
  }
234
+ return rootNodes;
132
235
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ProductDisplayConfig, ProductDisplayPresetKey } from '../ProductDisplayAdapter';
2
3
  import './index.less';
3
4
  interface AddServiceProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ProductDisplayConfig, ProductDisplayPresetKey } from '../ProductDisplayAdapter/types';
2
3
  interface AddServiceVariantProps {
3
4
  globalState: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface MenuBarProps {
3
4
  activeNavKey?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ProductDisplayConfig, ProductDisplayPresetKey } from '../ProductDisplayAdapter/types';
3
4
  export declare const _formatBookingDetail: (data: any, modalState: any) => any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Dayjs } from 'dayjs';
2
3
  import './index.less';
3
4
  interface ITimeBarProps {
@@ -0,0 +1,16 @@
1
+ interface IGetProductsParams {
2
+ schedule_date?: string;
3
+ customer_id?: number;
4
+ menu_list_ids?: number[];
5
+ schedule_datetime?: string;
6
+ }
7
+ interface IGetScheduleTimePointsParams {
8
+ menu_list_ids?: number[];
9
+ }
10
+ export declare const useProducts: (notAvailableRef: any) => {
11
+ getScheduleTimePoints: (params?: IGetScheduleTimePointsParams) => Promise<void>;
12
+ getProducts: (params?: IGetProductsParams) => Promise<void>;
13
+ products: any[];
14
+ loading: boolean;
15
+ };
16
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ProductDisplayConfig, ProductDisplayPresetKey } from './components/ProductDisplayAdapter/types';
2
3
  import './index.less';
3
4
  interface TicketBookingProps {
@@ -0,0 +1,198 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.ticket-booking.info': string;
4
+ 'pisell2.ticket-booking.notes': string;
5
+ 'pisell2.ticket-booking.note': string;
6
+ 'pisell2.ticket-booking.forms': string;
7
+ 'pisell2.ticket-booking.sales': string;
8
+ 'pisell2.ticket-booking.payment': string;
9
+ 'pisell2.ticket-booking.unsaved-changes': string;
10
+ 'pisell2.ticket-booking.exit-confirm': string;
11
+ 'pisell2.ticket-booking.go-back': string;
12
+ 'pisell2.ticket-booking.exit': string;
13
+ 'pisell2.ticket-booking.deposit': string;
14
+ 'pisell2.ticket-booking.copy-success': string;
15
+ 'pisell2.ticket-booking.no-data': string;
16
+ 'pisell2.ticket-booking.authorized': string;
17
+ 'pisell2.ticket-booking.paid': string;
18
+ 'pisell2.ticket-booking.partially-paid': string;
19
+ 'pisell2.ticket-booking.partially-refunded': string;
20
+ 'pisell2.ticket-booking.payment-pending': string;
21
+ 'pisell2.ticket-booking.refunded': string;
22
+ 'pisell2.ticket-booking.unpaid': string;
23
+ 'pisell2.ticket-booking.voided': string;
24
+ 'pisell2.ticket-booking.pending': string;
25
+ 'pisell2.ticket-booking.all': string;
26
+ 'pisell2.ticket-booking.not-started': string;
27
+ 'pisell2.ticket-booking.started': string;
28
+ 'pisell2.ticket-booking.finished': string;
29
+ 'pisell2.ticket-booking.canceled': string;
30
+ 'pisell2.ticket-booking.inform': string;
31
+ 'pisell2.ticket-booking.check-management': string;
32
+ 'pisell2.ticket-booking.confirm': string;
33
+ 'pisell2.ticket-booking.dashboard': string;
34
+ 'pisell2.ticket-booking.booking-list': string;
35
+ 'pisell2.ticket-booking.full-data': string;
36
+ 'pisell2.ticket-booking.today': string;
37
+ 'pisell2.ticket-booking.now': string;
38
+ 'pisell2.ticket-booking.start-time': string;
39
+ 'pisell2.ticket-booking.create-time': string;
40
+ 'pisell2.ticket-booking.customer': string;
41
+ 'pisell2.ticket-booking.total': string;
42
+ 'pisell2.ticket-booking.search': string;
43
+ 'pisell2.ticket-booking.refresh-success': string;
44
+ 'pisell2.ticket-booking.loading': string;
45
+ 'pisell2.ticket-booking.appointment-not-found': string;
46
+ 'pisell2.ticket-booking.scan': string;
47
+ 'pisell2.ticket-booking.create-new': string;
48
+ 'pisell2.ticket-booking.add-to-cart': string;
49
+ 'pisell2.ticket-booking.not-available-title': string;
50
+ 'pisell2.ticket-booking.not-available-ok': string;
51
+ 'pisell2.ticket-booking.in-cart': (number: number) => string;
52
+ 'pisell2.product.card.cart-items': (number: number) => string;
53
+ 'pisell2.product.card.subtotal': string;
54
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
55
+ 'pisell2.product.card.day': (val: number) => string;
56
+ 'pisell2.product.card.day.event': (val: number) => string;
57
+ 'pisell2.product.card.minute': (val: number) => string;
58
+ 'pisell2.ticket-booking.reload': string;
59
+ 'pisell2.text.scan-global-failed': string;
60
+ 'pisell2.ticket-booking.terminal-upgrade-title': string;
61
+ 'pisell2.ticket-booking.terminal-upgrade-description': string;
62
+ 'pisell2.ticket-booking.terminal-upgrade-ok': string;
63
+ 'pisell2.ticket-booking.terminal-upgrade-cancel': string;
64
+ 'pisell2.ticket-booking.collapse': string;
65
+ 'pisell2.ticket-booking.expand': string;
66
+ };
67
+ 'zh-CN': {
68
+ 'pisell2.ticket-booking.info': string;
69
+ 'pisell2.ticket-booking.notes': string;
70
+ 'pisell2.ticket-booking.note': string;
71
+ 'pisell2.ticket-booking.forms': string;
72
+ 'pisell2.ticket-booking.sales': string;
73
+ 'pisell2.ticket-booking.payment': string;
74
+ 'pisell2.ticket-booking.unsaved-changes': string;
75
+ 'pisell2.ticket-booking.exit-confirm': string;
76
+ 'pisell2.ticket-booking.go-back': string;
77
+ 'pisell2.ticket-booking.exit': string;
78
+ 'pisell2.ticket-booking.deposit': string;
79
+ 'pisell2.ticket-booking.copy-success': string;
80
+ 'pisell2.ticket-booking.no-data': string;
81
+ 'pisell2.ticket-booking.authorized': string;
82
+ 'pisell2.ticket-booking.paid': string;
83
+ 'pisell2.ticket-booking.partially-paid': string;
84
+ 'pisell2.ticket-booking.partially-refunded': string;
85
+ 'pisell2.ticket-booking.payment-pending': string;
86
+ 'pisell2.ticket-booking.refunded': string;
87
+ 'pisell2.ticket-booking.unpaid': string;
88
+ 'pisell2.ticket-booking.voided': string;
89
+ 'pisell2.ticket-booking.pending': string;
90
+ 'pisell2.ticket-booking.all': string;
91
+ 'pisell2.ticket-booking.not-started': string;
92
+ 'pisell2.ticket-booking.started': string;
93
+ 'pisell2.ticket-booking.finished': string;
94
+ 'pisell2.ticket-booking.canceled': string;
95
+ 'pisell2.ticket-booking.inform': string;
96
+ 'pisell2.ticket-booking.check-management': string;
97
+ 'pisell2.ticket-booking.confirm': string;
98
+ 'pisell2.ticket-booking.dashboard': string;
99
+ 'pisell2.ticket-booking.booking-list': string;
100
+ 'pisell2.ticket-booking.full-data': string;
101
+ 'pisell2.ticket-booking.today': string;
102
+ 'pisell2.ticket-booking.now': string;
103
+ 'pisell2.ticket-booking.start-time': string;
104
+ 'pisell2.ticket-booking.create-time': string;
105
+ 'pisell2.ticket-booking.customer': string;
106
+ 'pisell2.ticket-booking.total': string;
107
+ 'pisell2.ticket-booking.search': string;
108
+ 'pisell2.ticket-booking.refresh-success': string;
109
+ 'pisell2.ticket-booking.loading': string;
110
+ 'pisell2.ticket-booking.appointment-not-found': string;
111
+ 'pisell2.ticket-booking.scan': string;
112
+ 'pisell2.ticket-booking.create-new': string;
113
+ 'pisell2.ticket-booking.add-to-cart': string;
114
+ 'pisell2.ticket-booking.not-available-title': string;
115
+ 'pisell2.ticket-booking.not-available-ok': string;
116
+ 'pisell2.product.card.cart-items': (number: number) => string;
117
+ 'pisell2.product.card.subtotal': string;
118
+ 'pisell2.ticket-booking.in-cart': (number: number) => string;
119
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
120
+ 'pisell2.product.card.day': (val: number) => string;
121
+ 'pisell2.product.card.day.event': (val: number) => string;
122
+ 'pisell2.product.card.minute': (val: number) => string;
123
+ 'pisell2.ticket-booking.reload': string;
124
+ 'pisell2.text.scan-global-failed': string;
125
+ 'pisell2.ticket-booking.terminal-upgrade-title': string;
126
+ 'pisell2.ticket-booking.terminal-upgrade-description': string;
127
+ 'pisell2.ticket-booking.terminal-upgrade-ok': string;
128
+ 'pisell2.ticket-booking.terminal-upgrade-cancel': string;
129
+ 'pisell2.ticket-booking.collapse': string;
130
+ 'pisell2.ticket-booking.expand': string;
131
+ };
132
+ 'zh-HK': {
133
+ 'pisell2.ticket-booking.info': string;
134
+ 'pisell2.ticket-booking.notes': string;
135
+ 'pisell2.ticket-booking.note': string;
136
+ 'pisell2.ticket-booking.forms': string;
137
+ 'pisell2.ticket-booking.sales': string;
138
+ 'pisell2.ticket-booking.payment': string;
139
+ 'pisell2.ticket-booking.unsaved-changes': string;
140
+ 'pisell2.ticket-booking.exit-confirm': string;
141
+ 'pisell2.ticket-booking.go-back': string;
142
+ 'pisell2.ticket-booking.exit': string;
143
+ 'pisell2.ticket-booking.deposit': string;
144
+ 'pisell2.ticket-booking.copy-success': string;
145
+ 'pisell2.ticket-booking.no-data': string;
146
+ 'pisell2.ticket-booking.authorized': string;
147
+ 'pisell2.ticket-booking.paid': string;
148
+ 'pisell2.ticket-booking.partially-paid': string;
149
+ 'pisell2.ticket-booking.partially-refunded': string;
150
+ 'pisell2.ticket-booking.payment-pending': string;
151
+ 'pisell2.ticket-booking.refunded': string;
152
+ 'pisell2.ticket-booking.unpaid': string;
153
+ 'pisell2.ticket-booking.voided': string;
154
+ 'pisell2.ticket-booking.pending': string;
155
+ 'pisell2.ticket-booking.all': string;
156
+ 'pisell2.ticket-booking.not-started': string;
157
+ 'pisell2.ticket-booking.started': string;
158
+ 'pisell2.ticket-booking.finished': string;
159
+ 'pisell2.ticket-booking.canceled': string;
160
+ 'pisell2.ticket-booking.inform': string;
161
+ 'pisell2.ticket-booking.check-management': string;
162
+ 'pisell2.ticket-booking.confirm': string;
163
+ 'pisell2.ticket-booking.dashboard': string;
164
+ 'pisell2.ticket-booking.booking-list': string;
165
+ 'pisell2.ticket-booking.full-data': string;
166
+ 'pisell2.ticket-booking.today': string;
167
+ 'pisell2.ticket-booking.now': string;
168
+ 'pisell2.ticket-booking.start-time': string;
169
+ 'pisell2.ticket-booking.create-time': string;
170
+ 'pisell2.ticket-booking.customer': string;
171
+ 'pisell2.ticket-booking.total': string;
172
+ 'pisell2.ticket-booking.search': string;
173
+ 'pisell2.ticket-booking.refresh-success': string;
174
+ 'pisell2.ticket-booking.loading': string;
175
+ 'pisell2.ticket-booking.appointment-not-found': string;
176
+ 'pisell2.ticket-booking.scan': string;
177
+ 'pisell2.ticket-booking.create-new': string;
178
+ 'pisell2.ticket-booking.add-to-cart': string;
179
+ 'pisell2.ticket-booking.not-available-title': string;
180
+ 'pisell2.ticket-booking.not-available-ok': string;
181
+ 'pisell2.ticket-booking.in-cart': (number: number) => string;
182
+ 'pisell2.product.card.cart-items': (number: number) => string;
183
+ 'pisell2.product.card.subtotal': string;
184
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
185
+ 'pisell2.product.card.day': (val: number) => string;
186
+ 'pisell2.product.card.day.event': (val: number) => string;
187
+ 'pisell2.product.card.minute': (val: number) => string;
188
+ 'pisell2.ticket-booking.reload': string;
189
+ 'pisell2.text.scan-global-failed': string;
190
+ 'pisell2.ticket-booking.terminal-upgrade-title': string;
191
+ 'pisell2.ticket-booking.terminal-upgrade-description': string;
192
+ 'pisell2.ticket-booking.terminal-upgrade-ok': string;
193
+ 'pisell2.ticket-booking.terminal-upgrade-cancel': string;
194
+ 'pisell2.ticket-booking.collapse': string;
195
+ 'pisell2.ticket-booking.expand': string;
196
+ };
197
+ };
198
+ export default _default;
@@ -0,0 +1,93 @@
1
+ import type { Dayjs } from 'dayjs';
2
+ /** dayjs对象格式化为字符串时间 */
3
+ export declare const formatDateToStr: (date: Dayjs[]) => string | string[];
4
+ export declare const getDefaultStartParam: () => string | string[];
5
+ export declare const formatBookingList: (bookingList: any[]) => any[];
6
+ export declare const getNextTimeSlice: (sliceMinutes: number) => Dayjs;
7
+ export declare const getDisabledEdit: ({ shop_discount, bookings, payment_status }: any) => boolean;
8
+ export declare const formatOptions: (detail: any) => any;
9
+ export declare const formatHolder: (detail: any) => any;
10
+ export declare const restoreProductOtherData: (data: any) => {
11
+ product_id: any;
12
+ option: any;
13
+ bundle: any;
14
+ product_variant_id: any;
15
+ quantity: number;
16
+ } | undefined;
17
+ export declare const isSameProduct: (a: any, b: any) => boolean;
18
+ export declare const addService: (list: any[], addItem: any, state: any) => {
19
+ list: any[];
20
+ quantity: any;
21
+ };
22
+ export declare const addServiceScroll: (rowKey: string, cacheItem: any) => void;
23
+ export declare const getCartProductOverlay: (state: any) => any;
24
+ export declare const getIsOverlayProduct: (item: any, state: any) => any;
25
+ export declare const getIsShowNumber: (item: any, state: any) => any;
26
+ export declare const genServiceKey: (item: any) => string;
27
+ export declare const getIsParallelResourcesBooking: (record: any) => boolean;
28
+ declare type ScanData = {
29
+ type: string;
30
+ status: 'success' | 'failed';
31
+ scanType: 'nfc' | 'scanner';
32
+ scanCode: string;
33
+ result: {
34
+ searchType: 'customer' | 'wallet' | 'walletPass' | 'product' | 'local_product';
35
+ response: {
36
+ status: boolean;
37
+ code: number;
38
+ message: string;
39
+ data: any;
40
+ };
41
+ };
42
+ };
43
+ export declare const formatScanCustomer: (data: ScanData) => {
44
+ searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
45
+ data: any;
46
+ scanCode: string;
47
+ } | null;
48
+ export declare const formatScanGlobal: (data: ScanData) => {
49
+ searchType: "wallet";
50
+ data: any;
51
+ scanCode: string;
52
+ } | {
53
+ searchType: "walletPass";
54
+ data: any;
55
+ scanCode: string;
56
+ } | {
57
+ searchType: "product" | "local_product";
58
+ data: any;
59
+ scanCode: string;
60
+ } | null | undefined;
61
+ export declare const createSimpleCacheItem: (item: any, e: any, state: any) => any;
62
+ export declare const getBookingTicketKey: (osKey: string) => string;
63
+ export declare const getShopDiscountKey: (osKey: string) => string;
64
+ export declare const rulesHooks: {
65
+ getProduct(product: Record<string, any>): {
66
+ booking_id: any;
67
+ id: any;
68
+ _id: any;
69
+ price: any;
70
+ total: any;
71
+ discount_list: any;
72
+ origin_total: any;
73
+ num: any;
74
+ quantity: any;
75
+ vouchersApplicable: any;
76
+ startDate: any;
77
+ bundle: any;
78
+ options: any;
79
+ };
80
+ setProduct(product: Record<string, any>, values: {
81
+ total: number;
82
+ discount_list: any[];
83
+ price: number;
84
+ quantity: number;
85
+ _id?: string;
86
+ }): {
87
+ _id: any;
88
+ discount_list: any[];
89
+ _extend: any;
90
+ };
91
+ };
92
+ export { getCache, setCache, clearCache, clearAllCache, clearAllCacheByOsKey, getProductCache, setProductCache, clearProductCache, clearAllProductCache, getBoardConfigCache, setBoardConfigCache, clearBoardConfigCache, } from './productCache';
93
+ export type { CacheType } from './productCache';