@pisell/private-materials 6.8.32 → 6.8.33

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 (399) 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 +164 -150
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  13. package/es/components/booking/deposit/index.d.ts +1 -0
  14. package/es/components/booking/forms/model.d.ts +1 -10
  15. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  16. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  17. package/es/components/booking/info/index.d.ts +1 -0
  18. package/es/components/booking/info/model.d.ts +1 -10
  19. package/es/components/booking/info/notes/index.d.ts +1 -0
  20. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  21. package/es/components/booking/info/service/like/index.d.ts +1 -0
  22. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  23. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  24. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  25. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  26. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  27. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  28. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  29. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  30. package/es/components/booking/notes/model.d.ts +1 -10
  31. package/es/components/booking/payments/model.d.ts +1 -10
  32. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  33. package/es/components/eftpos/form/index.d.ts +1 -0
  34. package/es/components/eftpos/group/index.d.ts +1 -0
  35. package/es/components/eftpos/hooks.d.ts +1 -0
  36. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  37. package/es/components/eftpos/icon/device.d.ts +1 -0
  38. package/es/components/eftpos/receipt/index.d.ts +1 -0
  39. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  40. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  41. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  42. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  43. package/es/components/eftposPay/hooks.d.ts +1 -1
  44. package/es/components/eftposPay/store/index.d.ts +1 -1
  45. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  46. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  47. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  48. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  49. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  50. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  51. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  52. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  53. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  54. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  55. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  56. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  57. package/es/components/pay/toC/model.d.ts +1 -9
  58. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  59. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  60. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  61. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  62. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  63. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  64. package/es/components/productExtension/index.d.ts +1 -0
  65. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  66. package/es/components/schedules/model.d.ts +1 -9
  67. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  68. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  69. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  70. package/es/components/shoppingCart/index.d.ts +1 -0
  71. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  72. package/es/components/ticketBooking/utils/index.js +5 -1
  73. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  74. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  75. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  76. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  77. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  78. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  79. package/lib/components/booking/deposit/index.d.ts +1 -0
  80. package/lib/components/booking/forms/model.d.ts +1 -10
  81. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  82. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  83. package/lib/components/booking/info/index.d.ts +1 -0
  84. package/lib/components/booking/info/model.d.ts +1 -10
  85. package/lib/components/booking/info/notes/index.d.ts +1 -0
  86. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  87. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  88. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  89. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  90. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  91. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  92. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  93. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  94. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  95. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  96. package/lib/components/booking/notes/model.d.ts +1 -10
  97. package/lib/components/booking/payments/model.d.ts +1 -10
  98. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  99. package/lib/components/eftpos/form/index.d.ts +1 -0
  100. package/lib/components/eftpos/group/index.d.ts +1 -0
  101. package/lib/components/eftpos/hooks.d.ts +1 -0
  102. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  103. package/lib/components/eftpos/icon/device.d.ts +1 -0
  104. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  105. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  106. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  107. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  108. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  109. package/lib/components/eftposPay/hooks.d.ts +1 -1
  110. package/lib/components/eftposPay/store/index.d.ts +1 -1
  111. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  112. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  113. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  114. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  115. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  116. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  117. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  118. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  119. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  120. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  121. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  122. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  123. package/lib/components/pay/toC/model.d.ts +1 -9
  124. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  125. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  126. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  127. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  128. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  129. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  130. package/lib/components/productExtension/index.d.ts +1 -0
  131. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  132. package/lib/components/schedules/model.d.ts +1 -9
  133. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  134. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  135. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  136. package/lib/components/shoppingCart/index.d.ts +1 -0
  137. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  138. package/lib/components/ticketBooking/utils/index.js +4 -1
  139. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  140. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  141. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  142. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  143. package/package.json +3 -3
  144. package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
  145. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
  146. package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +0 -5
  147. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +0 -22
  148. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +0 -11
  149. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +0 -13
  150. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +0 -13
  151. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +0 -14
  152. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +0 -13
  153. package/es/components/authentication/admin/AuthMethods/components/index.d.ts +0 -10
  154. package/es/components/authentication/admin/AuthMethods/constants.d.ts +0 -22
  155. package/es/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
  156. package/es/components/authentication/admin/AuthMethods/types.d.ts +0 -76
  157. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
  158. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
  159. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +0 -6
  160. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
  161. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
  162. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
  163. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +0 -25
  164. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
  165. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
  166. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
  167. package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +0 -36
  168. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
  169. package/es/components/authentication/admin/CustomerAuth/types.d.ts +0 -16
  170. package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +0 -6
  171. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
  172. package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +0 -22
  173. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
  174. package/es/components/authentication/admin/DeviceAuth/types.d.ts +0 -16
  175. package/es/components/authentication/admin/OAuthConfig/index.d.ts +0 -6
  176. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
  177. package/es/components/authentication/admin/OAuthConfig/types.d.ts +0 -22
  178. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
  179. package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +0 -16
  180. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
  181. package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +0 -16
  182. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
  183. package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +0 -16
  184. package/es/components/authentication/index.d.ts +0 -0
  185. package/es/components/booking/addons/model.d.ts +0 -10
  186. package/es/components/booking/components/actionButtons/index.d.ts +0 -31
  187. package/es/components/booking/components/customSelect/index.d.ts +0 -38
  188. package/es/components/booking/components/footer/index.d.ts +0 -11
  189. package/es/components/booking/components/footer/utils.d.ts +0 -67
  190. package/es/components/booking/components/voucher/index.d.ts +0 -3
  191. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  192. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
  193. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -43
  194. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -25
  195. package/es/components/booking/info/service/Lists.d.ts +0 -2
  196. package/es/components/booking/info/service/serve.d.ts +0 -34
  197. package/es/components/booking/info/service2/utils.d.ts +0 -219
  198. package/es/components/booking/info/utils.d.ts +0 -50
  199. package/es/components/booking/info2/service/addService/utils.d.ts +0 -106
  200. package/es/components/booking/info2/service/editService/utils.d.ts +0 -28
  201. package/es/components/booking/info2/utilsByBooking.d.ts +0 -36
  202. package/es/components/booking/utils.d.ts +0 -182
  203. package/es/components/checkout/PaymentModal.d.ts +0 -39
  204. package/es/components/checkout/components/AdditionalModule/index.d.ts +0 -15
  205. package/es/components/checkout/components/CashPaymentModule/index.d.ts +0 -26
  206. package/es/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
  207. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
  208. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +0 -14
  209. package/es/components/checkout/hooks/useWalletPass.d.ts +0 -40
  210. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -32
  211. package/es/components/eftposPay/utils/log/index.d.ts +0 -110
  212. package/es/components/kioskSkuDetail/index.d.ts +0 -36
  213. package/es/components/list/List.d.ts +0 -5
  214. package/es/components/list/hooks/useListState.d.ts +0 -45
  215. package/es/components/pay/toB/components/MX51/index.d.ts +0 -3
  216. package/es/components/pay/toB/types/index.d.ts +0 -72
  217. package/es/components/pay/toC/locales.d.ts +0 -301
  218. package/es/components/pay/toC/status.d.ts +0 -13
  219. package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
  220. package/es/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
  221. package/es/components/systemSettings/registry/locales.d.ts +0 -272
  222. package/es/components/systemSettings/registry/services.d.ts +0 -77
  223. package/es/components/systemSettings/registry/types.d.ts +0 -126
  224. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  225. package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
  226. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
  227. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
  228. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -14
  229. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
  230. package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
  231. package/es/components/ticketBooking/serve.d.ts +0 -288
  232. package/es/components/wallet/utils.d.ts +0 -48
  233. package/es/components/walletList/types/index.d.ts +0 -194
  234. package/es/plus/clientName/index.d.ts +0 -4
  235. package/es/plus/clientName/type.d.ts +0 -13
  236. package/es/plus/clientName/utils.d.ts +0 -2
  237. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
  238. package/es/plus/contactInfo/locales.d.ts +0 -15
  239. package/es/plus/contactInfo/types.d.ts +0 -91
  240. package/es/plus/contactInfo/utils.d.ts +0 -7
  241. package/es/plus/contactInfoModal/locales.d.ts +0 -66
  242. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
  243. package/es/plus/productSelect/ProductCard/index.d.ts +0 -47
  244. package/es/plus/productSelect/utils.d.ts +0 -39
  245. package/es/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
  246. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +0 -20
  247. package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -7
  248. package/es/plus/walletEditor/types.d.ts +0 -52
  249. package/es/plus/webPosLogin/WebPosLogin.d.ts +0 -11
  250. package/es/plus/webPosLogin/WebPosLoginCpt.d.ts +0 -9
  251. package/es/plus/webPosLogin/components/BrandPanel/index.d.ts +0 -9
  252. package/es/plus/webPosLogin/components/LoginPanel/index.d.ts +0 -21
  253. package/es/plus/webPosLogin/components/MediaDisplay/index.d.ts +0 -12
  254. package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
  255. package/es/plus/webPosLogin/components/SelectDevice/index.d.ts +0 -28
  256. package/es/plus/webPosLogin/components/SelectStore/index.d.ts +0 -24
  257. package/es/plus/webPosLogin/components/UserFooter/index.d.ts +0 -28
  258. package/es/plus/webPosLogin/index.d.ts +0 -12
  259. package/es/plus/webPosLogin/locales.d.ts +0 -49
  260. package/es/plus/webPosLogin/service.d.ts +0 -44
  261. package/es/plus/webPosLogin/types.d.ts +0 -286
  262. package/es/pro/Login2.0/Login2.d.ts +0 -61
  263. package/es/pro/Login2.0/components/phoneValidation.d.ts +0 -17
  264. package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
  265. package/es/pro/Login2.0/locales.d.ts +0 -543
  266. package/es/pro/Login2.0/shared/registerFlow.d.ts +0 -116
  267. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +0 -12
  268. package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +0 -8
  269. package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +0 -7
  270. package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +0 -18
  271. package/es/pro/Login2.0/types.d.ts +0 -167
  272. package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
  273. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
  274. package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +0 -5
  275. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +0 -22
  276. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +0 -11
  277. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +0 -13
  278. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +0 -13
  279. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +0 -14
  280. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +0 -13
  281. package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +0 -10
  282. package/lib/components/authentication/admin/AuthMethods/constants.d.ts +0 -22
  283. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
  284. package/lib/components/authentication/admin/AuthMethods/types.d.ts +0 -76
  285. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
  286. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
  287. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +0 -6
  288. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
  289. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
  290. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
  291. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +0 -25
  292. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
  293. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
  294. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
  295. package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +0 -36
  296. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
  297. package/lib/components/authentication/admin/CustomerAuth/types.d.ts +0 -16
  298. package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +0 -6
  299. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
  300. package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +0 -22
  301. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
  302. package/lib/components/authentication/admin/DeviceAuth/types.d.ts +0 -16
  303. package/lib/components/authentication/admin/OAuthConfig/index.d.ts +0 -6
  304. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
  305. package/lib/components/authentication/admin/OAuthConfig/types.d.ts +0 -22
  306. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
  307. package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +0 -16
  308. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
  309. package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +0 -16
  310. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
  311. package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +0 -16
  312. package/lib/components/authentication/index.d.ts +0 -0
  313. package/lib/components/booking/addons/model.d.ts +0 -10
  314. package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
  315. package/lib/components/booking/components/customSelect/index.d.ts +0 -38
  316. package/lib/components/booking/components/footer/index.d.ts +0 -11
  317. package/lib/components/booking/components/footer/utils.d.ts +0 -67
  318. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  319. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  320. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
  321. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -43
  322. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -25
  323. package/lib/components/booking/info/service/Lists.d.ts +0 -2
  324. package/lib/components/booking/info/service/serve.d.ts +0 -34
  325. package/lib/components/booking/info/service2/utils.d.ts +0 -219
  326. package/lib/components/booking/info/utils.d.ts +0 -50
  327. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -106
  328. package/lib/components/booking/info2/service/editService/utils.d.ts +0 -28
  329. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -36
  330. package/lib/components/booking/utils.d.ts +0 -182
  331. package/lib/components/checkout/PaymentModal.d.ts +0 -39
  332. package/lib/components/checkout/components/AdditionalModule/index.d.ts +0 -15
  333. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +0 -26
  334. package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
  335. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
  336. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +0 -14
  337. package/lib/components/checkout/hooks/useWalletPass.d.ts +0 -40
  338. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -32
  339. package/lib/components/eftposPay/utils/log/index.d.ts +0 -110
  340. package/lib/components/kioskSkuDetail/index.d.ts +0 -36
  341. package/lib/components/list/List.d.ts +0 -5
  342. package/lib/components/list/hooks/useListState.d.ts +0 -45
  343. package/lib/components/pay/toB/components/MX51/index.d.ts +0 -3
  344. package/lib/components/pay/toB/types/index.d.ts +0 -72
  345. package/lib/components/pay/toC/locales.d.ts +0 -301
  346. package/lib/components/pay/toC/status.d.ts +0 -13
  347. package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
  348. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
  349. package/lib/components/systemSettings/registry/locales.d.ts +0 -272
  350. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  351. package/lib/components/systemSettings/registry/types.d.ts +0 -126
  352. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  353. package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
  354. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
  355. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
  356. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -14
  357. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
  358. package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
  359. package/lib/components/ticketBooking/serve.d.ts +0 -288
  360. package/lib/components/wallet/utils.d.ts +0 -48
  361. package/lib/components/walletList/types/index.d.ts +0 -194
  362. package/lib/plus/clientName/index.d.ts +0 -4
  363. package/lib/plus/clientName/type.d.ts +0 -13
  364. package/lib/plus/clientName/utils.d.ts +0 -2
  365. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
  366. package/lib/plus/contactInfo/locales.d.ts +0 -15
  367. package/lib/plus/contactInfo/types.d.ts +0 -91
  368. package/lib/plus/contactInfo/utils.d.ts +0 -7
  369. package/lib/plus/contactInfoModal/locales.d.ts +0 -66
  370. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
  371. package/lib/plus/productSelect/ProductCard/index.d.ts +0 -47
  372. package/lib/plus/productSelect/utils.d.ts +0 -39
  373. package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
  374. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +0 -20
  375. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -7
  376. package/lib/plus/walletEditor/types.d.ts +0 -52
  377. package/lib/plus/webPosLogin/WebPosLogin.d.ts +0 -11
  378. package/lib/plus/webPosLogin/WebPosLoginCpt.d.ts +0 -9
  379. package/lib/plus/webPosLogin/components/BrandPanel/index.d.ts +0 -9
  380. package/lib/plus/webPosLogin/components/LoginPanel/index.d.ts +0 -21
  381. package/lib/plus/webPosLogin/components/MediaDisplay/index.d.ts +0 -12
  382. package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
  383. package/lib/plus/webPosLogin/components/SelectDevice/index.d.ts +0 -28
  384. package/lib/plus/webPosLogin/components/SelectStore/index.d.ts +0 -24
  385. package/lib/plus/webPosLogin/components/UserFooter/index.d.ts +0 -28
  386. package/lib/plus/webPosLogin/index.d.ts +0 -12
  387. package/lib/plus/webPosLogin/locales.d.ts +0 -49
  388. package/lib/plus/webPosLogin/service.d.ts +0 -44
  389. package/lib/plus/webPosLogin/types.d.ts +0 -286
  390. package/lib/pro/Login2.0/Login2.d.ts +0 -61
  391. package/lib/pro/Login2.0/components/phoneValidation.d.ts +0 -17
  392. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
  393. package/lib/pro/Login2.0/locales.d.ts +0 -543
  394. package/lib/pro/Login2.0/shared/registerFlow.d.ts +0 -116
  395. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +0 -12
  396. package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +0 -8
  397. package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +0 -7
  398. package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +0 -18
  399. package/lib/pro/Login2.0/types.d.ts +0 -167
@@ -1,50 +0,0 @@
1
- export declare const getIsBundleOrCombination: (productDetail: any) => boolean;
2
- export declare const uniqueByField: (arr: any[], field: string) => any[];
3
- export declare const moveItemToFront: (arr: any[], targetId: string | number) => any[];
4
- /**
5
- * @title: 判断两个时间是否在同一个时间段内
6
- * @description:
7
- * @param {number} time1 开始时间
8
- * @param {number} time2 结束时间
9
- * @param {number} interval 时间间隔
10
- * @return {*}
11
- * @Author: zhiwei.Wang
12
- * @Date: 2024-08-13 19:37
13
- */
14
- export declare const isInterval: (time1: number, time2: number, interval?: number) => boolean;
15
- /**
16
- * @title: 根据时间间隔格式化服务列表
17
- * @description: 防止短时间内添加多个相同服务, 如果两个服务的时间间隔小于1秒,则合并为一个服务
18
- * @param {any} list 服务列表
19
- * @return {*}
20
- * @Author: zhiwei.Wang
21
- * @Date: 2024-08-13 19:36
22
- */
23
- export declare const formatServiceListByTime: (list: any[]) => any[];
24
- export declare const isBooking4Shop: (shopId: number, renderType?: string, businessUtils?: any) => any;
25
- declare type DataEntry = {
26
- total: number;
27
- origin_total: number;
28
- num: number;
29
- quotation_id: number;
30
- start_date: string;
31
- end_date: string;
32
- };
33
- declare type ResultStructure = Record<string, Record<string, any>>;
34
- export declare const getMultiDayPrices: (data: DataEntry[]) => ResultStructure;
35
- /**
36
- * @title: 是否是跨日预约
37
- * @description:
38
- * @param {number} shopId
39
- * @return {*}
40
- * @Author: WangHan
41
- * @Date: 2024-11-29 11:19
42
- */
43
- export declare const isDayBooking: (shopId: number) => boolean;
44
- export declare const isOpenAddTime: (state: any) => boolean;
45
- export declare const isShowAddTime: (state: any, currentService: any) => boolean;
46
- export declare const editSessionProduct: (cacheItem: any, session: any) => {
47
- duration: any;
48
- start_time: any;
49
- } | undefined;
50
- export {};
@@ -1,106 +0,0 @@
1
- import dayjs from 'dayjs';
2
- export declare const getUsableTime: (cacheItem: any) => any;
3
- export declare const getDurationProps: ({ cacheItem, useStartTime, currentResource, slice, }: any) => {
4
- startDate: dayjs.Dayjs;
5
- usableTime: any;
6
- duration: string | number | {
7
- type: string;
8
- value: number;
9
- };
10
- locale: any;
11
- slice: any;
12
- selectProps: {
13
- size: string;
14
- };
15
- };
16
- /**
17
- * @title: 灵活时长选项
18
- * @description:
19
- * @param {*} useMemo
20
- * @return {*}
21
- * @Author: zhiwei.Wang
22
- * @Date: 2024-02-23 10:10
23
- */
24
- export declare const getFlexibleOption: ({ cacheItem, useStartTime, currentResource, slice, durationProps, }: any) => {
25
- label: any;
26
- value: any;
27
- } | null;
28
- export declare const getTimeSlices: ({ state }: any) => {
29
- timeSlices: {
30
- label: string;
31
- value: string;
32
- }[];
33
- };
34
- /**
35
- * @title: 时间切片
36
- * @description:
37
- * @return {*}
38
- * @Author: zhiwei.Wang
39
- * @Date: 2024-01-09 13:37
40
- */
41
- export declare const getTimeObj: ({ cacheItem, useStartTime, currentResource, state, useDuration, durationProps, }: any) => {
42
- timeSlices: {
43
- label: string;
44
- value: string;
45
- }[];
46
- durationSlicesBasedOnTime: {
47
- label: string;
48
- value: number;
49
- }[];
50
- };
51
- /**
52
- * @title: 获取资源列表
53
- * @description:
54
- * @return {*}
55
- * @Author: zhiwei.Wang
56
- * @Date: 2024-01-09 13:38
57
- */
58
- export declare const formatResources: ({ cacheItem, resourcesOrigin, id }: any) => {
59
- list: any;
60
- maps: any;
61
- };
62
- export declare const setDefaultResource: ({ cacheItem, resources }: any) => any;
63
- /**
64
- * @title: 设置默认容量
65
- * @description:
66
- * @param {any} param1
67
- * @return {*}
68
- * @Author: zhiwei.Wang
69
- * @Date: 2024-09-19 20:26
70
- */
71
- export declare const setDefaultCapacitys: ({ capacitys, cacheItem }: any) => any;
72
- /**
73
- * @title: 将商品内关联的资源id还原成数据
74
- * @description:
75
- * @param {any} resourcesOriginMap
76
- * @param {any} cacheItem
77
- * @return {*}
78
- * @Author: zhiwei.Wang
79
- * @Date: 2024-09-19 20:23
80
- */
81
- export declare const getResourceByIds: (resourcesOriginMap: any, cacheItem: any, extraParams?: any) => any[];
82
- /**
83
- * @title: 是否是跨日商品
84
- * @description:
85
- * @param {any} cacheItem
86
- * @return {*}
87
- */
88
- export declare const isMultiDayProduct: (product: any) => boolean;
89
- export declare const getMultiDay: ({ start_date, end_date, state, cacheItem, }: any) => Promise<any>;
90
- /**
91
- * @title: 预生成服务的 extend
92
- * @description:
93
- * @param {any} param1
94
- * @return {*}
95
- * @Author: zhiwei.Wang
96
- * @Date: 2024-06-01 13:25
97
- */
98
- export declare const getProductExtend: ({ cacheItem, state, isDisabledTime }: any) => any;
99
- /**
100
- * @title: 格式化服务列表
101
- * @description: 后端列表返回的product_resource.resources 的optional_resource等不是最新数据
102
- * 使用with resourceRelation后 返回的resource_relation是实时数据
103
- * 这里做一次转换
104
- * @param list
105
- */
106
- export declare const transServiceList: (list: any[]) => any[];
@@ -1,28 +0,0 @@
1
- /**
2
- 1. 在进入编辑服务前
3
-
4
- 计算出各种需要的列表
5
-
6
- 设置默认值
7
-
8
- 判断是否需要进入编辑服务页
9
- */
10
- export declare const getAutoAllocationStorage: (id: string | number) => any;
11
- export declare const setAutoAllocationStorage: (data: {
12
- [key: string]: boolean;
13
- }) => void;
14
- /**
15
- * 手动折扣后给商品价格和子商品价格重新计算
16
- *
17
- * 计算逻辑:
18
- * 1. 子商品(bundle + option)按折扣比例计算,直接截取两位小数(不四舍五入)
19
- * 2. 主商品价格 = newTotal - 所有子商品价格总和(确保总价精确等于 newTotal)
20
- *
21
- * @param cacheItem - 缓存的商品项
22
- * @param newTotal - 折扣后的新总价
23
- * @param origin_total - 原始总价
24
- */
25
- export declare const setProductPrice: (cacheItem: any, { newTotal, origin_total }: {
26
- newTotal: number;
27
- origin_total: number;
28
- }) => any;
@@ -1,36 +0,0 @@
1
- export declare const getResourceTimeIsUsable: (item: any, cacheItem: any, resourceItem: any) => any;
2
- export declare const getSumCapacity: ({ cacheItem }: any, isCalcQuantity?: boolean) => number;
3
- /**
4
- * @title: 查找是否有可用的time
5
- * @description:
6
- * @param {any} resourceItem
7
- * @return {*}
8
- * @Author: zhiwei.Wang
9
- * @Date: 2024-01-09 13:57
10
- */
11
- export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
12
- export declare const getErrorList: (resource: any, cacheItem: any) => {
13
- label: any;
14
- type: string;
15
- }[];
16
- /**
17
- * @title: 格式化资源, 添加自定义参数
18
- * @description:
19
- * @param {any} resourceItem
20
- * @return {*}
21
- * @Author: zhiwei.Wang
22
- * @Date: 2024-01-09 13:40
23
- */
24
- export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
25
- export declare const getAppointmentTimingPreference: (state: any) => any;
26
- /**
27
- * @title: 创建服务的开始时间和结束时间
28
- * @description:
29
- * @param {any} state
30
- * @param {any} item
31
- * @return {*}
32
- * @Author: zhiwei.Wang
33
- * @Date: 2024-01-26 14:09
34
- */
35
- export declare const getServiceStartTimeAndEndTime: (state: any, cacheItem: any, timeObj: any) => any;
36
- export declare const getIsNoSpecAndPackage: (product: any) => boolean;
@@ -1,182 +0,0 @@
1
- import dayjs from 'dayjs';
2
- /**
3
- * @title: 高阶函数结果缓存(Memoization)
4
- */
5
- export declare function memoize<T extends (...args: any[]) => any>(fn: T): T;
6
- declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
7
- declare class Request {
8
- private request;
9
- constructor();
10
- setRequest(val: any): void;
11
- getRequest(): {
12
- get: RType;
13
- post: RType;
14
- put: RType;
15
- remove: RType;
16
- custom: RType;
17
- };
18
- }
19
- export declare const request: Request;
20
- /**
21
- * @title: 格式化持续时长用于展示
22
- * @description:
23
- * @param {number} service_times
24
- * @return {*}
25
- * @Author: zhiwei.Wang
26
- * @Date: 2024-04-26 14:00
27
- */
28
- export declare const getDiscountTime: (service_times: number, isDay?: boolean) => string;
29
- /**
30
- * @title: 格式化跨日预约的时长用于展示
31
- * @description:
32
- * @param {number} days
33
- * @param {number} minutes
34
- * @return {*}
35
- */
36
- export declare const getDiscountTimeByDayMinutes: (days: number, minutes: number) => string;
37
- /**
38
- * @title: 时间切片(带缓存版本)
39
- * @description: 使用 memoize 高阶函数包裹 sliceDayIntoFiveMinutes,相同参数时直接返回缓存结果
40
- */
41
- export declare const sliceDayIntoFiveMinutes: (config: any, locale: string, isDay?: boolean) => {
42
- timeSlices: {
43
- label: string;
44
- value: string;
45
- }[];
46
- durationSlicesBasedOnTime: {
47
- label: string;
48
- value: number;
49
- }[];
50
- };
51
- export declare const getNowTime: () => string;
52
- export declare const isNowTime: (time: string) => boolean;
53
- /**
54
- * @title: 获取服务的开始时间, 如果是now 转换为当前的时间
55
- * @description:
56
- * @param {string} start_time
57
- * @return {*}
58
- * @Author: zhiwei.Wang
59
- * @Date: 2024-04-26 14:03
60
- */
61
- export declare const getServeStartTime: (start_time: string) => string;
62
- /**
63
- * @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
64
- * @description:
65
- * @param {any} item
66
- * @param {any} currentDate
67
- * @return {*}
68
- * @Author: zhiwei.Wang
69
- * @Date: 2024-04-26 14:04
70
- */
71
- export declare const getServiceTime: (item: any, currentDate: any) => string;
72
- export declare const findNextSlice: ({ timeSlices, index, date, }: {
73
- timeSlices: any[];
74
- index?: number | undefined;
75
- date?: string | undefined;
76
- }) => any;
77
- export declare const findNextDuration: (current: any, array: any, defaultValue?: any) => any;
78
- export declare const formatProductListByCategory: (list: any, filterItem: any) => unknown[];
79
- export declare const getResourceTimeIsUsable: (item: any, cacheItem: any) => any;
80
- /**
81
- * @title: 查找是否有可用的time
82
- * @description:
83
- * @param {any} resourceItem
84
- * @return {*}
85
- * @Author: zhiwei.Wang
86
- * @Date: 2024-01-09 13:57
87
- */
88
- export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
89
- /**
90
- * @title: 获取店铺的营业结束时间
91
- * @description:
92
- * @return {*}
93
- * @Author: zhiwei.Wang
94
- * @Date: 2024-02-23 10:00
95
- */
96
- export declare const getShopOpeningHours: () => string;
97
- /**
98
- * @title: 对灵活时长进行处理
99
- * @description:
100
- * @return {*}
101
- * @Author: zhiwei.Wang
102
- * @Date: 2024-02-23 10:00
103
- */
104
- export declare const flexibleObj: {
105
- create: (num: number) => any;
106
- getValue: (str: string | number) => number;
107
- isFlexible: (str: string | number) => boolean;
108
- add: (current: number | string, duration: number) => any;
109
- };
110
- /**
111
- * @title: 获取结束时间
112
- * @description: 取 endDate | 店铺营业时间 最小的那一个
113
- * @param {any} startDate
114
- * @param {string} duration
115
- * @param {any} endDate
116
- * @return {*}
117
- * @Author: zhiwei.Wang
118
- * @Date: 2024-02-23 10:01
119
- */
120
- export declare const getEndDate: (startDate: any, duration: string | number, endDate: any) => any;
121
- export declare const getServiceTimes: (service: any) => {
122
- startDate: dayjs.Dayjs;
123
- endDate: any;
124
- };
125
- export declare const getErrorList: (resource: any, cacheItem: any, isDay?: boolean) => {
126
- label: any;
127
- type: string;
128
- }[];
129
- /**
130
- * @title: 格式化资源, 添加自定义参数
131
- * @description:
132
- * @param {any} resourceItem
133
- * @return {*}
134
- * @Author: zhiwei.Wang
135
- * @Date: 2024-01-09 13:40
136
- */
137
- export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
138
- export declare const getLastServer: (list: any) => any;
139
- export declare const getCacheParams: () => any;
140
- export declare const deleteCacheParams: () => void;
141
- /**
142
- * @title: 获取跨日预约的时长
143
- * @description:
144
- * @param {any} cacheItem
145
- * @return {*}
146
- * @Author: WangHan
147
- * @Date: 2024-12-01 22:43
148
- */
149
- export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
150
- export declare const isSessionProduct: (cacheItem: any) => boolean;
151
- export declare const getIsEject: (item: any, type: 'select' | 'detail') => boolean;
152
- export declare const getIsOnlySession: (item: any) => boolean;
153
- /**
154
- * @title: 创建一个服务商品
155
- * @description:
156
- * @param {any} state
157
- * @param {any} item
158
- * @return {*}
159
- * @Author: zhiwei.Wang
160
- * @Date: 2024-01-26 14:09
161
- */
162
- export declare const getServerItemExtend: (state: any, cacheItem: any, timeObj: any) => any;
163
- export declare const getMainPrice: (item: any, price?: number) => number;
164
- export declare const getProductTotalPrice: (item: any) => number;
165
- /**
166
- * @title: 判断 duration
167
- * @description: 用于处理不同格式的duration
168
- * @param {number} duration
169
- * @return {*}
170
- * @Author: zhiwei.Wang
171
- * @Date: 2024-02-23 10:02
172
- */
173
- export declare const getDuration: (duration: number | {
174
- type: string;
175
- value: number;
176
- }) => number | {
177
- type: string;
178
- value: number;
179
- } | "flexible";
180
- export declare const isWalkIn: (customer_id?: number | string) => boolean;
181
- export declare const getIsEdit: (state: any) => boolean;
182
- export {};
@@ -1,39 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface PaymentModalData {
4
- order_info: any;
5
- subtotal_info: {
6
- subTotalList: any[];
7
- orderTotalList: any[];
8
- total: number;
9
- showDetail: boolean;
10
- };
11
- total: any;
12
- }
13
- interface PaymentModalProps {
14
- open?: boolean;
15
- data?: PaymentModalData;
16
- callback?: (result: any) => void;
17
- onClose?: (reset?: boolean) => void;
18
- paymentResultDisplayMode?: string;
19
- shopDiscount?: number;
20
- client?: any;
21
- currentTotalPrice?: number;
22
- config?: any;
23
- onChangeShopDiscount?: (discount: string) => void;
24
- onChangeOrderNote?: (note: string) => void;
25
- onDeleteOrderNote?: () => void;
26
- }
27
- interface PaymentModalMainProps extends PaymentModalProps {
28
- onClose?: (reset?: boolean) => void;
29
- setEditCartMode?: (order_id: number, payData: any, closeModal: boolean) => void;
30
- editOrderId?: number;
31
- config?: {
32
- showHeaderCenter?: boolean;
33
- showHeaderRightButton?: boolean;
34
- disabledSwitchClient?: boolean;
35
- };
36
- }
37
- declare const PaymentModal: React.FC<PaymentModalMainProps>;
38
- export type { PaymentModalData, PaymentModalProps };
39
- export default PaymentModal;
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- import { CurrentOrderInfo } from '../../types';
4
- interface AdditionalModuleProps {
5
- orderInfo?: CurrentOrderInfo;
6
- customAmount?: string;
7
- handleButtonClick: (key: string) => void;
8
- hasOrderNote?: boolean;
9
- disabled?: boolean;
10
- showCashPayment?: boolean;
11
- isFullWidth?: boolean;
12
- showMore?: boolean;
13
- }
14
- declare function AdditionalModule({ orderInfo, customAmount, handleButtonClick, hasOrderNote, disabled, showCashPayment, isFullWidth, showMore }: AdditionalModuleProps): JSX.Element;
15
- export default AdditionalModule;
@@ -1,26 +0,0 @@
1
- /// <reference types="react" />
2
- import { CurrentOrderInfo } from '../../types';
3
- import './index.less';
4
- export interface CashPaymentModuleProps {
5
- amountSymbol?: string;
6
- orderInfo?: CurrentOrderInfo;
7
- onPaymentComplete?: (result: any) => void;
8
- amountButtons?: number[];
9
- customAmount?: string;
10
- disabled?: boolean;
11
- roundingFunction?: (amount: number) => Promise<{
12
- roundedAmount: number;
13
- roundingDifference: number;
14
- }>;
15
- balanceDueAmount?: string;
16
- balanceDueTotalAmount?: string;
17
- syncingLock?: boolean;
18
- shortcutsSize?: 'default' | 'large';
19
- }
20
- export declare function CashPaymentModule({ amountSymbol, orderInfo, onPaymentComplete, customAmount, amountButtons, // 按钮列表,默认5个推荐金额
21
- disabled, // 禁用状态
22
- roundingFunction, balanceDueAmount, // 当前阶段剩余支付金额(定金或普通支付)
23
- balanceDueTotalAmount, // 完整订单剩余待付金额
24
- syncingLock, // 是否锁定
25
- shortcutsSize, }: CashPaymentModuleProps): JSX.Element;
26
- export default CashPaymentModule;
@@ -1,38 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- interface SummaryItem {
4
- key: string;
5
- value: number;
6
- label?: string;
7
- hidden?: boolean;
8
- tax?: any;
9
- }
10
- declare type SubTotalKey = 'deposit' | 'total' | 'sub_total' | 'tax' | 'delivery_fee' | 'discount' | 'point_deduction' | 'member_deduction' | 'expect_amount';
11
- interface PaymentItem {
12
- uuid: string;
13
- amount: number;
14
- code: string;
15
- name: string;
16
- status: string;
17
- voucher_id?: string;
18
- [key: string]: any;
19
- }
20
- interface PaymentDetailModalProps {
21
- amountSymbol?: string;
22
- orderInfo?: any;
23
- onClose: () => void;
24
- summaryData?: SummaryItem[];
25
- labelMaps?: Record<SubTotalKey, string>;
26
- paymentItems?: PaymentItem[];
27
- customAmount?: string;
28
- voidPayment?: (paymentItem: PaymentItem) => void;
29
- cartData?: any;
30
- walletPassData?: {
31
- selectedWallet?: any[];
32
- availableDiscountList?: any[];
33
- selectedDiscountList?: number[];
34
- };
35
- clientInfo?: any;
36
- }
37
- declare function PaymentDetailModal({ amountSymbol, orderInfo, cartData, onClose, summaryData, labelMaps, paymentItems, customAmount, voidPayment, walletPassData, clientInfo, }: PaymentDetailModalProps): JSX.Element;
38
- export default PaymentDetailModal;
@@ -1,85 +0,0 @@
1
- import React from 'react';
2
- import { StatusClassName, ActionButtonGroupList } from './types';
3
- interface ShowPaymentResultToastConfig {
4
- /** 状态样式类名 */
5
- statusClassName: StatusClassName;
6
- /** 标题 */
7
- title: string;
8
- /** 副标题 */
9
- subtitle?: React.ReactNode;
10
- /** 找零文本 */
11
- changeDueText?: string;
12
- /** 操作按钮 */
13
- actionButtons?: ActionButtonGroupList;
14
- /** 自动关闭配置 */
15
- autoClose?: boolean;
16
- /** 自动关闭延迟时间(秒) */
17
- autoCloseDelay?: number;
18
- /** 是否显示倒计时进度 */
19
- showCountdownProgress?: boolean;
20
- /** 倒计时完成回调 */
21
- onCountdownComplete?: () => void;
22
- /** 自定义关闭回调 */
23
- onClose?: () => void;
24
- /** 是否显示右上角关闭按钮 */
25
- closable?: boolean;
26
- /** 是否启用点击外部区域关闭弹窗(使用纯JS实现) */
27
- clickOutsideToClose?: boolean;
28
- /** 是否显示遮罩 */
29
- mask?: boolean;
30
- }
31
- interface PaymentResultToastContextType {
32
- /** 显示成功弹窗 */
33
- showSuccess: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => string;
34
- /** 显示失败弹窗 */
35
- showFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => string;
36
- /** 显示钱包通行证失败弹窗 */
37
- showWalletPassFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => string;
38
- /** 显示部分支付弹窗 */
39
- showPartiallyPaid: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => string;
40
- /** 显示自定义状态弹窗 */
41
- showToast: (config: ShowPaymentResultToastConfig) => string;
42
- /** 关闭弹窗 */
43
- closeToast: () => void;
44
- /** 是否正在显示弹窗 */
45
- isVisible: boolean;
46
- }
47
- export declare const PaymentResultToastProvider: React.FC<{
48
- children: React.ReactNode;
49
- }>;
50
- export declare const usePaymentResultToast: () => PaymentResultToastContextType;
51
- declare class GlobalToastManager {
52
- private instances;
53
- private nextId;
54
- private readonly TOAST_HEIGHT;
55
- private readonly TOAST_MARGIN;
56
- private readonly BOTTOM_OFFSET;
57
- private readonly LEFT_OFFSET;
58
- private cachedBottomOffset;
59
- private cachedCenterOffset;
60
- private tillButton;
61
- setTillButton(tillButton: any): void;
62
- private generateId;
63
- private calculateAndCacheBottomOffset;
64
- private calculateAndCacheCenterOffset;
65
- private resetBottomOffsetCache;
66
- private calculateBottomPosition;
67
- private updatePositions;
68
- addToast(config: ShowPaymentResultToastConfig): string;
69
- removeToast(id: string): void;
70
- clearAll(): void;
71
- getCount(): number;
72
- initializeResizeListener(): () => void;
73
- }
74
- declare const globalToastManager: GlobalToastManager;
75
- export declare const showPaymentResultToastSuccess: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => Promise<string>;
76
- export declare const showPaymentResultToastFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => Promise<string>;
77
- export declare const showPaymentResultToastWalletPassFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => Promise<string>;
78
- export declare const showPaymentResultToastPartiallyPaid: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => Promise<string>;
79
- export declare const showPaymentResultToast: (config: ShowPaymentResultToastConfig) => Promise<string>;
80
- export declare const closePaymentResultToast: (id?: string) => void;
81
- export declare const clearAllPaymentResultToasts: () => void;
82
- export declare const getPaymentResultToastCount: () => number;
83
- export type { ShowPaymentResultToastConfig, PaymentResultToastContextType };
84
- export declare const setTillButton: (tillButton: any) => void;
85
- export { globalToastManager };
@@ -1,14 +0,0 @@
1
- import './index.less';
2
- export interface IScanResult {
3
- status: 'success' | 'failed';
4
- scanType: string;
5
- scanCode: string;
6
- result: any;
7
- }
8
- interface IProps {
9
- disabledSwitch?: boolean;
10
- onSearch: (keyword: string) => void | Promise<any>;
11
- onClientChange: () => void;
12
- }
13
- declare const SearchAndClientModule: (props: IProps) => JSX.Element;
14
- export default SearchAndClientModule;
@@ -1,40 +0,0 @@
1
- /**
2
- * 自定义Hook:使用WalletPass功能
3
- */
4
- export declare const useWalletPass: (props: {
5
- onSelectChange?: ((select: {
6
- voucher_id: number;
7
- amount: number;
8
- code: string;
9
- }[]) => void) | undefined;
10
- customAmount?: string | undefined;
11
- clientId?: number | undefined;
12
- }) => {
13
- walletRecommendList: any[];
14
- userIdentificationCodes: any[];
15
- loading: boolean;
16
- error: string | null;
17
- cardData: any;
18
- handleSelectWallet: (value: number[]) => void;
19
- selectedWalletIds: any[];
20
- expiredWalletIds: any[];
21
- expiredWalletData: any;
22
- disabledWalletData: any[];
23
- clearAllSelectedWallet: () => void;
24
- clearDisabledWalletData: () => void;
25
- handleBeforeEditAmount: (value: any, index: number, data: any) => Promise<boolean>;
26
- handleBestSaving: () => void;
27
- handleSearchIdentificationCode: (value: string) => any;
28
- availableDiscountList: any;
29
- selectedDiscountList: any;
30
- handleSelectDiscount: (value: number[], option: any) => void;
31
- customerName: any;
32
- fetchWalletRecommendList: (params: any) => Promise<any>;
33
- fetchUserIdentificationCodes: (params: any) => Promise<any>;
34
- getCachedWalletRecommendList: () => any;
35
- getCachedUserIdentificationCodes: () => any;
36
- clearWalletRecommendList: () => void;
37
- clearUserIdentificationCodes: () => void;
38
- clearAllCache: () => void;
39
- handleConfirmEditAmount: (value: number, id: number, data: any) => void;
40
- };