@pisell/private-materials 6.8.84 → 6.8.85

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 (295) 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 +150 -164
  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/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  12. package/es/components/booking/addons/model.d.ts +10 -1
  13. package/es/components/booking/components/footer/index.d.ts +0 -1
  14. package/es/components/booking/dashboard/serve.d.ts +1 -0
  15. package/es/components/booking/forms/model.d.ts +10 -1
  16. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  17. package/es/components/booking/forms/serve.d.ts +18 -0
  18. package/es/components/booking/info/client/serve.d.ts +2 -0
  19. package/es/components/booking/info/hooks/useInfoHolder.d.ts +11 -0
  20. package/es/components/booking/info/model.d.ts +10 -1
  21. package/es/components/booking/info/pet/serve.d.ts +1 -0
  22. package/es/components/booking/info/service/Lists.d.ts +3 -0
  23. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  24. package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  25. package/es/components/booking/info/service/serve.d.ts +34 -0
  26. package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
  27. package/es/components/booking/info/service2/utils.d.ts +219 -0
  28. package/es/components/booking/info2/serve.d.ts +6 -0
  29. package/es/components/booking/info2/service/addService/utils.d.ts +106 -0
  30. package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  31. package/es/components/booking/info2/service/editService/utils.d.ts +28 -0
  32. package/es/components/booking/info2/service/openNormalService.d.ts +34 -0
  33. package/es/components/booking/info2/utilsByBooking.d.ts +36 -0
  34. package/es/components/booking/model.d.ts +121 -0
  35. package/es/components/booking/notes/model.d.ts +10 -1
  36. package/es/components/booking/payments/model.d.ts +10 -1
  37. package/es/components/booking/utils.d.ts +182 -0
  38. package/es/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
  39. package/es/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
  40. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
  41. package/es/components/checkout/components/ScrollableList/index.d.ts +5 -0
  42. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  43. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
  44. package/es/components/eftposPay/amount.d.ts +2 -1
  45. package/es/components/eftposPay/app.d.ts +2 -1
  46. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  47. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  48. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  49. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  50. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  51. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  52. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  53. package/es/components/eftposPay/device.d.ts +1 -1
  54. package/es/components/eftposPay/hooks.d.ts +1 -1
  55. package/es/components/eftposPay/index.d.ts +1 -0
  56. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  57. package/es/components/eftposPay/pay.d.ts +1 -0
  58. package/es/components/eftposPay/payo/config.d.ts +1 -0
  59. package/es/components/eftposPay/store/index.d.ts +5 -5
  60. package/es/components/eftposPay/tip.d.ts +1 -0
  61. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  62. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  63. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  64. package/es/components/eventBooking/index.d.ts +1 -0
  65. package/es/components/list/types.d.ts +178 -0
  66. package/es/components/list/utils/index.d.ts +19 -0
  67. package/es/components/pay/toB/components/Cache/index.d.ts +0 -1
  68. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  69. package/es/components/pay/toC/model.d.ts +9 -1
  70. package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
  71. package/es/components/schedules/model.d.ts +9 -1
  72. package/es/components/shoppingCart/components/Cart/Product.js +1 -1
  73. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  74. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +84 -0
  75. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +11 -0
  76. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +9 -0
  77. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  78. package/es/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  79. package/es/components/ticketBooking/context/index.d.ts +2 -0
  80. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  81. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
  82. package/es/components/ticketBooking/locales.d.ts +201 -0
  83. package/es/components/ticketBooking/serve.d.ts +288 -0
  84. package/es/components/ticketBooking/utils/index.d.ts +101 -0
  85. package/es/hooks/printer.d.ts +4 -0
  86. package/es/hooks/useEngineContext.d.ts +4 -0
  87. package/es/plus/productSelect/CategoryTabs/index.d.ts +21 -0
  88. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  89. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  90. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  91. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  92. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  93. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  94. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  95. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +7 -0
  96. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  97. package/es/plus/productSelect/ProductCard/index.d.ts +47 -0
  98. package/es/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
  99. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  100. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
  101. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +4 -0
  102. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  103. package/es/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
  104. package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
  105. package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
  106. package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
  107. package/es/plus/skuOptionsSelection/store/actions.d.ts +22 -0
  108. package/es/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
  109. package/es/plus/skuOptionsSelection/store/index.d.ts +2 -0
  110. package/es/plus/skuOptionsSelection/store/store.d.ts +4 -0
  111. package/es/plus/skuOptionsSelection/types.d.ts +431 -0
  112. package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
  113. package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
  114. package/es/plus/skuOptionsSelection/utils/index.d.ts +7 -0
  115. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  116. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  117. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  118. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  119. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  120. package/es/plus/webPosLogin/WebPosLoginCpt.d.ts +9 -0
  121. package/es/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
  122. package/es/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
  123. package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  124. package/es/plus/webPosLogin/index.d.ts +12 -0
  125. package/es/plus/webPosLogin/locales.d.ts +49 -0
  126. package/es/plus/webPosLogin/types.d.ts +286 -0
  127. package/es/pro/Cards/index.d.ts +1 -0
  128. package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  129. package/es/pro/Selector/Item.d.ts +14 -0
  130. package/es/pro/Selector/Selector.d.ts +14 -0
  131. package/es/pro/Selector/Selector.stories.d.ts +78 -0
  132. package/es/pro/Selector/SelectorGroup.d.ts +11 -0
  133. package/es/pro/Selector/components/Card/index.d.ts +57 -0
  134. package/es/pro/Selector/components/Card/types.d.ts +1 -0
  135. package/es/pro/Selector/components/Indicator/index.d.ts +20 -0
  136. package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  137. package/es/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
  138. package/es/pro/Selector/components/Media/index.d.ts +6 -0
  139. package/es/pro/Selector/components/Media/types.d.ts +47 -0
  140. package/es/pro/Selector/components/index.d.ts +4 -0
  141. package/es/pro/Selector/demo.d.ts +3 -0
  142. package/es/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
  143. package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
  144. package/es/pro/Selector/hooks/useSelectionController.d.ts +49 -0
  145. package/es/pro/Selector/index.d.ts +11 -0
  146. package/es/pro/Selector/locales.d.ts +36 -0
  147. package/es/pro/Selector/types.d.ts +212 -0
  148. package/es/pro/Selector/utils/index.d.ts +49 -0
  149. package/es/pro/skuDetailModal/locales.d.ts +103 -0
  150. package/es/pro/skuDetailModal/types.d.ts +354 -0
  151. package/es/pro/skuDetailModal/utils.d.ts +4 -0
  152. package/es/test/setup.d.ts +1 -0
  153. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  154. package/lib/components/booking/addons/model.d.ts +10 -1
  155. package/lib/components/booking/components/footer/index.d.ts +0 -1
  156. package/lib/components/booking/dashboard/serve.d.ts +1 -0
  157. package/lib/components/booking/forms/model.d.ts +10 -1
  158. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  159. package/lib/components/booking/forms/serve.d.ts +18 -0
  160. package/lib/components/booking/info/client/serve.d.ts +2 -0
  161. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +11 -0
  162. package/lib/components/booking/info/model.d.ts +10 -1
  163. package/lib/components/booking/info/pet/serve.d.ts +1 -0
  164. package/lib/components/booking/info/service/Lists.d.ts +3 -0
  165. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  166. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  167. package/lib/components/booking/info/service/serve.d.ts +34 -0
  168. package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
  169. package/lib/components/booking/info/service2/utils.d.ts +219 -0
  170. package/lib/components/booking/info2/serve.d.ts +6 -0
  171. package/lib/components/booking/info2/service/addService/utils.d.ts +106 -0
  172. package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  173. package/lib/components/booking/info2/service/editService/utils.d.ts +28 -0
  174. package/lib/components/booking/info2/service/openNormalService.d.ts +34 -0
  175. package/lib/components/booking/info2/utilsByBooking.d.ts +36 -0
  176. package/lib/components/booking/model.d.ts +121 -0
  177. package/lib/components/booking/notes/model.d.ts +10 -1
  178. package/lib/components/booking/payments/model.d.ts +10 -1
  179. package/lib/components/booking/utils.d.ts +182 -0
  180. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
  181. package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
  182. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
  183. package/lib/components/checkout/components/ScrollableList/index.d.ts +5 -0
  184. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  185. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
  186. package/lib/components/eftposPay/amount.d.ts +2 -1
  187. package/lib/components/eftposPay/app.d.ts +2 -1
  188. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  189. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  190. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  191. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  192. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  193. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  194. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  195. package/lib/components/eftposPay/device.d.ts +1 -1
  196. package/lib/components/eftposPay/hooks.d.ts +1 -1
  197. package/lib/components/eftposPay/index.d.ts +1 -0
  198. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  199. package/lib/components/eftposPay/pay.d.ts +1 -0
  200. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  201. package/lib/components/eftposPay/store/index.d.ts +5 -5
  202. package/lib/components/eftposPay/tip.d.ts +1 -0
  203. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  204. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  205. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  206. package/lib/components/eventBooking/index.d.ts +1 -0
  207. package/lib/components/list/types.d.ts +178 -0
  208. package/lib/components/list/utils/index.d.ts +19 -0
  209. package/lib/components/pay/toB/components/Cache/index.d.ts +0 -1
  210. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  211. package/lib/components/pay/toC/model.d.ts +9 -1
  212. package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
  213. package/lib/components/schedules/model.d.ts +9 -1
  214. package/lib/components/shoppingCart/components/Cart/Product.js +1 -1
  215. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  216. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +84 -0
  217. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +11 -0
  218. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +9 -0
  219. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  220. package/lib/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  221. package/lib/components/ticketBooking/context/index.d.ts +2 -0
  222. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  223. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
  224. package/lib/components/ticketBooking/locales.d.ts +201 -0
  225. package/lib/components/ticketBooking/serve.d.ts +288 -0
  226. package/lib/components/ticketBooking/utils/index.d.ts +101 -0
  227. package/lib/hooks/printer.d.ts +4 -0
  228. package/lib/hooks/useEngineContext.d.ts +4 -0
  229. package/lib/plus/productSelect/CategoryTabs/index.d.ts +21 -0
  230. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  231. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  232. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  233. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  234. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  235. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  236. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  237. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +7 -0
  238. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  239. package/lib/plus/productSelect/ProductCard/index.d.ts +47 -0
  240. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
  241. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  242. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
  243. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +4 -0
  244. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  245. package/lib/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
  246. package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
  247. package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
  248. package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
  249. package/lib/plus/skuOptionsSelection/store/actions.d.ts +22 -0
  250. package/lib/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
  251. package/lib/plus/skuOptionsSelection/store/index.d.ts +2 -0
  252. package/lib/plus/skuOptionsSelection/store/store.d.ts +4 -0
  253. package/lib/plus/skuOptionsSelection/types.d.ts +431 -0
  254. package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
  255. package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
  256. package/lib/plus/skuOptionsSelection/utils/index.d.ts +7 -0
  257. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  258. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  259. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  260. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  261. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  262. package/lib/plus/webPosLogin/WebPosLoginCpt.d.ts +9 -0
  263. package/lib/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
  264. package/lib/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
  265. package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  266. package/lib/plus/webPosLogin/index.d.ts +12 -0
  267. package/lib/plus/webPosLogin/locales.d.ts +49 -0
  268. package/lib/plus/webPosLogin/types.d.ts +286 -0
  269. package/lib/pro/Cards/index.d.ts +1 -0
  270. package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  271. package/lib/pro/Selector/Item.d.ts +14 -0
  272. package/lib/pro/Selector/Selector.d.ts +14 -0
  273. package/lib/pro/Selector/Selector.stories.d.ts +78 -0
  274. package/lib/pro/Selector/SelectorGroup.d.ts +11 -0
  275. package/lib/pro/Selector/components/Card/index.d.ts +57 -0
  276. package/lib/pro/Selector/components/Card/types.d.ts +1 -0
  277. package/lib/pro/Selector/components/Indicator/index.d.ts +20 -0
  278. package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  279. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
  280. package/lib/pro/Selector/components/Media/index.d.ts +6 -0
  281. package/lib/pro/Selector/components/Media/types.d.ts +47 -0
  282. package/lib/pro/Selector/components/index.d.ts +4 -0
  283. package/lib/pro/Selector/demo.d.ts +3 -0
  284. package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
  285. package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
  286. package/lib/pro/Selector/hooks/useSelectionController.d.ts +49 -0
  287. package/lib/pro/Selector/index.d.ts +11 -0
  288. package/lib/pro/Selector/locales.d.ts +36 -0
  289. package/lib/pro/Selector/types.d.ts +212 -0
  290. package/lib/pro/Selector/utils/index.d.ts +49 -0
  291. package/lib/pro/skuDetailModal/locales.d.ts +103 -0
  292. package/lib/pro/skuDetailModal/types.d.ts +354 -0
  293. package/lib/pro/skuDetailModal/utils.d.ts +4 -0
  294. package/lib/test/setup.d.ts +1 -0
  295. package/package.json +1 -1
@@ -0,0 +1,121 @@
1
+ /// <reference types="react" />
2
+ export interface FormState {
3
+ amountSymbol: string;
4
+ apis: {
5
+ getClients: (par?: any) => any;
6
+ getClientsEs: (par?: any) => any;
7
+ getServices: (par?: any) => any;
8
+ getResources: (par?: any) => any;
9
+ getProducts: (par?: any) => any;
10
+ getPets: (par?: any) => any;
11
+ getForms: (par?: any) => any;
12
+ getFormData: (par?: any) => any;
13
+ getAddonsByOrderId: (par?: any) => any;
14
+ saveAddonsByOrderId: (par?: any) => any;
15
+ getNotesByOrder: (par?: any) => any;
16
+ saveBookingFormData: (par?: any) => any;
17
+ getPetsData: (par?: any) => any;
18
+ };
19
+ client: {
20
+ showModal: boolean;
21
+ value: any;
22
+ clients: any[];
23
+ clientsParams: {
24
+ skip: number;
25
+ num: number;
26
+ search: string;
27
+ };
28
+ edit: boolean;
29
+ };
30
+ contacts_info: {
31
+ edit: boolean;
32
+ value: any;
33
+ };
34
+ date: {
35
+ value: any;
36
+ end_date: any;
37
+ edit: boolean;
38
+ };
39
+ service: {
40
+ addModal: boolean;
41
+ editModal: boolean;
42
+ services: any[];
43
+ resources: any[];
44
+ resourcesOrigin: any[];
45
+ reloadResourceModal: false;
46
+ value: any[];
47
+ cacheItem: any;
48
+ edit: boolean;
49
+ addTimeModal: boolean;
50
+ changeService: any;
51
+ };
52
+ pet: {
53
+ showModal: boolean;
54
+ pets: any[];
55
+ value: any[];
56
+ formData: any;
57
+ originValue: any;
58
+ edit: boolean;
59
+ };
60
+ addons: {
61
+ showModal: boolean;
62
+ value: any[];
63
+ productList: any[];
64
+ originData: any[];
65
+ edit: boolean;
66
+ };
67
+ notes: {
68
+ orderNote: string;
69
+ internalNotes: any[];
70
+ edit: boolean;
71
+ };
72
+ form: {
73
+ value: any;
74
+ forms: any[];
75
+ edit: boolean;
76
+ };
77
+ setGlobalState: () => void;
78
+ disabledEdit: boolean;
79
+ bookingConfig: any;
80
+ action: any;
81
+ bookingId: string | number;
82
+ bookingDetail: any;
83
+ channelDisabledEdit: boolean;
84
+ renderType?: 'eventBooking' | 'dayBooking';
85
+ modalOpen?: boolean;
86
+ isTerminal?: boolean;
87
+ isFranchisee?: boolean;
88
+ addTimeProducts: any[];
89
+ eventOtherParams?: {
90
+ relation_id: number;
91
+ number: number;
92
+ registration_type: 'single' | 'all' | 'extra_include';
93
+ start_date: string;
94
+ start_time: string;
95
+ end_date: string;
96
+ end_time: string;
97
+ productIds: number[];
98
+ };
99
+ disableEventBookingEdit?: boolean;
100
+ /** 关闭自动打开选择服务弹窗 */
101
+ closeAutoOpenService?: boolean;
102
+ /** 是否terminal创建booking页面 */
103
+ isBookingCreatePage?: boolean;
104
+ loading: boolean;
105
+ isTerminalDayBookingPage?: boolean;
106
+ activeCartId?: any[];
107
+ isDayBooking: boolean;
108
+ paymentPaid: any;
109
+ }
110
+ export declare const walkInData: {
111
+ id: number;
112
+ nickname: string;
113
+ };
114
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
115
+ state: FormState;
116
+ } & {
117
+ dispatch: (params: {
118
+ type: string;
119
+ payload: any;
120
+ }) => void;
121
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -0,0 +1,182 @@
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 {};
@@ -0,0 +1,26 @@
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;
@@ -0,0 +1,38 @@
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;
@@ -0,0 +1,85 @@
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 };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ScrollableListProps } from './types';
3
+ import './index.less';
4
+ declare const ScrollableList: React.FC<ScrollableListProps>;
5
+ export default ScrollableList;
@@ -17,7 +17,7 @@ export declare const useWalletPass: (props: {
17
17
  cardData: any;
18
18
  handleSelectWallet: (value: number[]) => void;
19
19
  selectedWalletIds: any[];
20
- expiredWalletIds: any;
20
+ expiredWalletIds: any[];
21
21
  expiredWalletData: any;
22
22
  disabledWalletData: any[];
23
23
  clearAllSelectedWallet: () => void;
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import { StatusClassName, ActionButtonGroupList } from '../components/PaymentResultToast';
3
+ export interface PaymentResultToastConfig {
4
+ context: any;
5
+ pisellos: any;
6
+ getData: (key: string) => any;
7
+ interaction: any;
8
+ Toast: any;
9
+ onToastClose?: () => void;
10
+ }
11
+ export interface PaymentResultToastParams {
12
+ paymentStatus: string;
13
+ orderTotalAmount: number;
14
+ gapAmount: number;
15
+ failureReason?: string;
16
+ autoCloseConfig?: {
17
+ autoClose: boolean;
18
+ autoCloseDelay: number;
19
+ };
20
+ actionButtons?: ActionButtonGroupList;
21
+ }
22
+ export declare const formatCurrency: (amount: number, amountSymbol?: string) => string | number;
23
+ export declare const calculateTitle: (status: string, failureReason?: string) => string;
24
+ export declare const calculateSubtitle: (status: string, amount: number, gapAmount?: number, getData?: ((key: string) => any) | undefined) => React.ReactNode;
25
+ export declare const calculateStatusClassName: (status: string) => StatusClassName;
26
+ export declare const calculateAutoCloseConfig: (status: string, hasChangeDue: boolean) => {
27
+ autoClose: boolean;
28
+ autoCloseDelay: number;
29
+ maskClosable: boolean;
30
+ };
31
+ export declare const displayPaymentResultToast: (params: PaymentResultToastParams, config: PaymentResultToastConfig) => Promise<void>;
32
+ export declare const createShowSuccessToast: (config: PaymentResultToastConfig, getActionButtons?: ((paymentStatus: string) => ActionButtonGroupList) | undefined) => (result: any) => Promise<void>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from './const';
2
3
  /**
3
4
  * @title: 支付金额信息配置页
@@ -8,7 +9,7 @@ import { PosProps } from './const';
8
9
  */
9
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
11
  className?: string | undefined;
11
- onChange?: ((status: "fail" | "success" | "page" | "print" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
13
  [keys: string]: unknown;
13
14
  } | undefined, other?: any) => void) | undefined;
14
15
  onClose: () => void;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps, RouteType } from './const';
2
- declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "getApi" | "type" | "mode"> & {
3
+ declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
3
4
  action: RouteType;
4
5
  device_number: string | number;
5
6
  api: ReturnType<PosProps['getApi']>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 断网(客户端)提示页
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 支付状态未知页面
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  import './index.less';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 取消签名确认页
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StatusType } from '../../const';
2
3
  declare const _default: (props: {
3
4
  status: StatusType;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "fail" | "success" | "page" | "print" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"init" | "loading" | "warn" | "fail" | "success" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "init" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from './const';
2
3
  import './index.less';
3
4
  declare const _default: (props: PosProps) => JSX.Element | null;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Linkly: ({ api, onChange }: any) => JSX.Element;
2
3
  export default Linkly;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayProps } from './const';
2
3
  import './index.less';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StatusEnum } from '../const';
2
3
  export declare const POS: ({ api, onChange, }: {
3
4
  api: {