@pisell/private-materials 3.4.67 → 3.4.68

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 (261) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  8. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  9. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  10. package/es/components/booking/components/footer/index.d.ts +1 -0
  11. package/es/components/booking/forms/footer.d.ts +0 -1
  12. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -2
  13. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  14. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  15. package/es/components/booking/info/index.d.ts +1 -0
  16. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  17. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  18. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  19. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  20. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  21. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  22. package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -3
  23. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  24. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  25. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  26. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  27. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  28. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  29. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  30. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  31. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  32. package/es/components/shoppingCart/index.d.ts +0 -1
  33. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  34. package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  35. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  36. package/es/plus/walletPassGallery/components/passList/index.d.ts +0 -1
  37. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
  38. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  39. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  40. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  41. package/lib/components/booking/components/footer/index.d.ts +1 -0
  42. package/lib/components/booking/forms/footer.d.ts +0 -1
  43. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -2
  44. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  45. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  46. package/lib/components/booking/info/index.d.ts +1 -0
  47. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  48. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  49. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  50. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  51. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  52. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  53. package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -1
  54. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  55. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  56. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  57. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  58. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  59. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  60. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  61. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  62. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  63. package/lib/components/shoppingCart/index.d.ts +0 -1
  64. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  65. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  66. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  67. package/lib/plus/walletPassGallery/components/passList/index.d.ts +0 -1
  68. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
  69. package/package.json +4 -4
  70. package/es/components/Sales/Cart/utils.d.ts +0 -68
  71. package/es/components/Sales/Checkout/utils.d.ts +0 -41
  72. package/es/components/Sales/Summary/utils.d.ts +0 -51
  73. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -3
  74. package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
  75. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -2
  76. package/es/components/appointmentBooking/hooks.d.ts +0 -107
  77. package/es/components/appointmentBooking/locales.d.ts +0 -366
  78. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +0 -6
  79. package/es/components/booking/components/footer/amount.d.ts +0 -25
  80. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  81. package/es/components/booking/dashboard/serve.d.ts +0 -1
  82. package/es/components/booking/deposit/ClientItem/index.d.ts +0 -18
  83. package/es/components/booking/deposit/DepositItem/index.d.ts +0 -25
  84. package/es/components/booking/deposit/index.d.ts +0 -2
  85. package/es/components/booking/forms/forms.d.ts +0 -30
  86. package/es/components/booking/forms/serve.d.ts +0 -18
  87. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  88. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
  89. package/es/components/booking/info/client/index.d.ts +0 -4
  90. package/es/components/booking/info/client/serve.d.ts +0 -2
  91. package/es/components/booking/info/clientVariant/utils.d.ts +0 -1
  92. package/es/components/booking/info/date/index.d.ts +0 -5
  93. package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  94. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  95. package/es/components/booking/info/model.d.ts +0 -14
  96. package/es/components/booking/info/pet/serve.d.ts +0 -1
  97. package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  98. package/es/components/booking/info/service/addTimeModal/utils.d.ts +0 -31
  99. package/es/components/booking/info/service/serve.d.ts +0 -20
  100. package/es/components/booking/info/service/serviceList/index.d.ts +0 -5
  101. package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
  102. package/es/components/booking/info/service2/Group/utils.d.ts +0 -14
  103. package/es/components/booking/info/service2/utils.d.ts +0 -248
  104. package/es/components/booking/info/utils.d.ts +0 -50
  105. package/es/components/booking/info2/serve.d.ts +0 -6
  106. package/es/components/booking/info2/service/addService/index.d.ts +0 -11
  107. package/es/components/booking/info2/service/addService/utils.d.ts +0 -98
  108. package/es/components/booking/info2/service/editService/utils.d.ts +0 -13
  109. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -5
  110. package/es/components/booking/info2/utilsByBooking.d.ts +0 -35
  111. package/es/components/booking/locales.d.ts +0 -837
  112. package/es/components/booking/model.d.ts +0 -119
  113. package/es/components/booking/notes/addNote/index.d.ts +0 -3
  114. package/es/components/booking/utils.d.ts +0 -175
  115. package/es/components/eftposPay/app.d.ts +0 -10
  116. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -3
  117. package/es/components/eftposPay/component/fail/index.d.ts +0 -3
  118. package/es/components/eftposPay/const.d.ts +0 -184
  119. package/es/components/eftposPay/device.d.ts +0 -23
  120. package/es/components/eftposPay/hooks.d.ts +0 -35
  121. package/es/components/eftposPay/index.d.ts +0 -4
  122. package/es/components/eftposPay/locales.d.ts +0 -330
  123. package/es/components/eftposPay/manufacturer.d.ts +0 -7
  124. package/es/components/eftposPay/pay.d.ts +0 -20
  125. package/es/components/eftposPay/store/index.d.ts +0 -355
  126. package/es/components/eftposPay/tyro/index.d.ts +0 -9
  127. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  128. package/es/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
  129. package/es/components/pay/toC/PaymentList/utils.d.ts +0 -36
  130. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  131. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  132. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  133. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -2
  134. package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +0 -10
  135. package/es/components/pay/toC/model.d.ts +0 -40
  136. package/es/components/pay/toC/utils.d.ts +0 -57
  137. package/es/components/shoppingCart/locales.d.ts +0 -33
  138. package/es/components/shoppingCart/type.d.ts +0 -48
  139. package/es/components/subTotal/locales.d.ts +0 -42
  140. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  141. package/es/components/ticketBooking/locales.d.ts +0 -174
  142. package/es/components/ticketBooking/utils/index.d.ts +0 -25
  143. package/es/hooks/useEngineContext.d.ts +0 -10
  144. package/es/hooks/useWindowSize.d.ts +0 -5
  145. package/es/plus/productSelect/CategoryTabs/index.d.ts +0 -21
  146. package/es/plus/productSelect/ProductCard/index.d.ts +0 -47
  147. package/es/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
  148. package/es/plus/selectHolder/locales.d.ts +0 -21
  149. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -5
  150. package/es/plus/skuOptionsSelection/index.d.ts +0 -5
  151. package/es/plus/skuOptionsSelection/types.d.ts +0 -429
  152. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
  153. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
  154. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  155. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  156. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
  157. package/es/pro/NumericStepper/index.d.ts +0 -43
  158. package/es/pro/Selector/Selector.d.ts +0 -14
  159. package/es/pro/Selector/components/Card/index.d.ts +0 -57
  160. package/es/pro/Selector/components/Indicator/index.d.ts +0 -19
  161. package/es/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
  162. package/es/pro/Selector/demo.d.ts +0 -2
  163. package/es/pro/Selector/hooks/usePresetProps.d.ts +0 -24
  164. package/es/pro/Selector/types.d.ts +0 -173
  165. package/es/pro/pisellNumberSelector/example.d.ts +0 -3
  166. package/lib/components/Sales/Cart/utils.d.ts +0 -68
  167. package/lib/components/Sales/Checkout/utils.d.ts +0 -41
  168. package/lib/components/Sales/Summary/utils.d.ts +0 -51
  169. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -3
  170. package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
  171. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -2
  172. package/lib/components/appointmentBooking/hooks.d.ts +0 -107
  173. package/lib/components/appointmentBooking/locales.d.ts +0 -366
  174. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +0 -6
  175. package/lib/components/booking/components/footer/amount.d.ts +0 -25
  176. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  177. package/lib/components/booking/dashboard/serve.d.ts +0 -1
  178. package/lib/components/booking/deposit/ClientItem/index.d.ts +0 -18
  179. package/lib/components/booking/deposit/DepositItem/index.d.ts +0 -25
  180. package/lib/components/booking/deposit/index.d.ts +0 -2
  181. package/lib/components/booking/forms/forms.d.ts +0 -30
  182. package/lib/components/booking/forms/serve.d.ts +0 -18
  183. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  184. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
  185. package/lib/components/booking/info/client/index.d.ts +0 -4
  186. package/lib/components/booking/info/client/serve.d.ts +0 -2
  187. package/lib/components/booking/info/clientVariant/utils.d.ts +0 -1
  188. package/lib/components/booking/info/date/index.d.ts +0 -5
  189. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  190. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  191. package/lib/components/booking/info/model.d.ts +0 -14
  192. package/lib/components/booking/info/pet/serve.d.ts +0 -1
  193. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  194. package/lib/components/booking/info/service/addTimeModal/utils.d.ts +0 -31
  195. package/lib/components/booking/info/service/serve.d.ts +0 -20
  196. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -5
  197. package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
  198. package/lib/components/booking/info/service2/Group/utils.d.ts +0 -14
  199. package/lib/components/booking/info/service2/utils.d.ts +0 -248
  200. package/lib/components/booking/info/utils.d.ts +0 -50
  201. package/lib/components/booking/info2/serve.d.ts +0 -6
  202. package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
  203. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -98
  204. package/lib/components/booking/info2/service/editService/utils.d.ts +0 -13
  205. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -5
  206. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -35
  207. package/lib/components/booking/locales.d.ts +0 -837
  208. package/lib/components/booking/model.d.ts +0 -119
  209. package/lib/components/booking/notes/addNote/index.d.ts +0 -3
  210. package/lib/components/booking/utils.d.ts +0 -175
  211. package/lib/components/eftposPay/app.d.ts +0 -10
  212. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -3
  213. package/lib/components/eftposPay/component/fail/index.d.ts +0 -3
  214. package/lib/components/eftposPay/const.d.ts +0 -184
  215. package/lib/components/eftposPay/device.d.ts +0 -23
  216. package/lib/components/eftposPay/hooks.d.ts +0 -35
  217. package/lib/components/eftposPay/index.d.ts +0 -4
  218. package/lib/components/eftposPay/locales.d.ts +0 -330
  219. package/lib/components/eftposPay/manufacturer.d.ts +0 -7
  220. package/lib/components/eftposPay/pay.d.ts +0 -20
  221. package/lib/components/eftposPay/store/index.d.ts +0 -355
  222. package/lib/components/eftposPay/tyro/index.d.ts +0 -9
  223. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  224. package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
  225. package/lib/components/pay/toC/PaymentList/utils.d.ts +0 -36
  226. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  227. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  228. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  229. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -2
  230. package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +0 -10
  231. package/lib/components/pay/toC/model.d.ts +0 -40
  232. package/lib/components/pay/toC/utils.d.ts +0 -57
  233. package/lib/components/shoppingCart/locales.d.ts +0 -33
  234. package/lib/components/shoppingCart/type.d.ts +0 -48
  235. package/lib/components/subTotal/locales.d.ts +0 -42
  236. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  237. package/lib/components/ticketBooking/locales.d.ts +0 -174
  238. package/lib/components/ticketBooking/utils/index.d.ts +0 -25
  239. package/lib/hooks/useEngineContext.d.ts +0 -10
  240. package/lib/hooks/useWindowSize.d.ts +0 -5
  241. package/lib/plus/productSelect/CategoryTabs/index.d.ts +0 -21
  242. package/lib/plus/productSelect/ProductCard/index.d.ts +0 -47
  243. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
  244. package/lib/plus/selectHolder/locales.d.ts +0 -21
  245. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -5
  246. package/lib/plus/skuOptionsSelection/index.d.ts +0 -5
  247. package/lib/plus/skuOptionsSelection/types.d.ts +0 -429
  248. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
  249. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
  250. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  251. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  252. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
  253. package/lib/pro/NumericStepper/index.d.ts +0 -43
  254. package/lib/pro/Selector/Selector.d.ts +0 -14
  255. package/lib/pro/Selector/components/Card/index.d.ts +0 -57
  256. package/lib/pro/Selector/components/Indicator/index.d.ts +0 -19
  257. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
  258. package/lib/pro/Selector/demo.d.ts +0 -2
  259. package/lib/pro/Selector/hooks/usePresetProps.d.ts +0 -24
  260. package/lib/pro/Selector/types.d.ts +0 -173
  261. package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
@@ -1,355 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { DeviceStatusType, StatusType, ModeType, RouteType, ClientEnum } from '../const';
3
- import { ThunkDispatch } from './useThunkReducer';
4
- export declare enum EActionTypes {
5
- UPDATE_INIT = "UPDATE_INIT",
6
- UPDATE_CUSTOM = "UPDATE_CUSTOM",
7
- UPDATE_KEY = "UPDATE_KEY",
8
- UPDATE_STEP_KEY = "UPDATE_STEP_KEY",
9
- UPDATE_DEVICE = "UPDATE_DEVICE",
10
- UPDATE_NEXT_STEP = "UPDATE_NEXT_STEP",
11
- UPDATE_STATUS = "UPDATE_STATUS",
12
- UPDATE_TITLE = "UPDATE_TITLE",
13
- UPDATE_LOADING = "UPDATE_LOADING",
14
- UPDATE_COMPONENT = "UPDATE_COMPONENT",
15
- UPDATE_STEPS = "UPDATE_STEPS",
16
- UPDATE_STEP_CURRENT_ITEM_CUSTOM = "UPDATE_STEP_CURRENT_ITEM_CUSTOM",
17
- UPDATE_STEP_ITEM = "UPDATE_STEP_ITEM",
18
- BACKUP_PRODUCTION = "BACKUP_PRODUCTION",
19
- BACKUP_FREE = "BACKUP_FREE",
20
- UPDATE_CLIENT = "UPDATE_CLIENT"
21
- }
22
- export declare type State = {
23
- /** 支付名称 */
24
- name: string;
25
- /** 金额单位 */
26
- symbol: string;
27
- /** 支付原始金额 */
28
- amount: string | number;
29
- /** 模式 */
30
- mode: ModeType;
31
- /** 订单号 */
32
- order_id: string | number;
33
- /** 厂商 */
34
- eftpos: DeviceStatusType;
35
- action?: RouteType;
36
- /** 用于重置页面特指 =》全部步骤 */
37
- key: number;
38
- /** 当前执行到哪一步了 */
39
- step: number;
40
- /** 标题 */
41
- title: string;
42
- /** 标题 */
43
- subTitle?: string;
44
- /** step : 常规步骤页面 ,unset 自定义页面 */
45
- type: 'step' | 'unset';
46
- render: boolean;
47
- /** 网络 */
48
- net?: boolean;
49
- /** 上面 unset 自定义页面,这里需要指定到具体页面 */
50
- component: string;
51
- form?: string;
52
- /** 页面状态 */
53
- status: StatusType;
54
- /** 警告文案 */
55
- warn: string;
56
- steps: {
57
- /** 用于重置当前步骤 */
58
- key: number;
59
- title?: string;
60
- text?: string;
61
- warn?: string;
62
- tip?: string;
63
- success?: string;
64
- fail?: string;
65
- loading?: string;
66
- /** 步骤状态 */
67
- status: StatusType;
68
- custom?: {
69
- /** 步骤自定义 */
70
- [key: string]: unknown;
71
- };
72
- }[];
73
- /** 支付流水号 */
74
- number?: string | number;
75
- /** 设备信息 */
76
- device?: {
77
- [key: string]: unknown;
78
- };
79
- /** 支付信息 */
80
- pay?: {
81
- [key: string]: unknown;
82
- };
83
- custom?: {
84
- [key: string]: unknown;
85
- };
86
- manual?: {
87
- title: string;
88
- text: string;
89
- status?: boolean;
90
- money?: number;
91
- };
92
- backup?: Omit<State, 'backup'>;
93
- client: ClientEnum;
94
- };
95
- export declare type Action = {
96
- type: EActionTypes;
97
- payload: Partial<State>;
98
- };
99
- /**
100
- * @title: 刷新 key
101
- * @description: 用户重置组件生命周期,
102
- * @param {number} key
103
- * @Author: hongbing.wang
104
- * @Date: 2024-08-19 09:56
105
- */
106
- export declare const updateKey: (key: number) => {
107
- type: EActionTypes;
108
- payload: {
109
- key: number;
110
- };
111
- };
112
- /**
113
- * @title: 更新设备信息
114
- * @description: 用户选择设备将回填到此处
115
- * @param {object} payload
116
- * @Author: hongbing.wang
117
- * @Date: 2024-08-19 09:57
118
- */
119
- export declare const updateDevice: (payload: {
120
- device: State['device'];
121
- }) => {
122
- type: EActionTypes;
123
- payload: {
124
- device: State['device'];
125
- };
126
- };
127
- /**
128
- * @title: 刷新 步骤key
129
- * @description: 重置某一步生命周期
130
- * @Author: hongbing.wang
131
- * @Date: 2024-08-19 09:58
132
- */
133
- export declare const updateStepKey: () => {
134
- type: EActionTypes;
135
- payload: {};
136
- };
137
- /**
138
- * @title: 更新至下一步
139
- * @description: 更新至下一步
140
- * @param {string} warn?: 错误信息
141
- * @Author: hongbing.wang
142
- * @Date: 2024-08-19 09:58
143
- */
144
- export declare const updateNextStep: (warn?: string) => {
145
- type: EActionTypes;
146
- payload: {
147
- warn: string;
148
- } | {
149
- warn?: undefined;
150
- };
151
- };
152
- /**
153
- * @title: 更新自定义信息
154
- * @description: 更新自定义信息
155
- * @param {object} payload
156
- * @Author: hongbing.wang
157
- * @Date: 2024-08-19 10:03
158
- */
159
- export declare const updateCustom: (payload: {
160
- [key: string]: unknown;
161
- }) => {
162
- type: EActionTypes;
163
- payload: {
164
- [key: string]: unknown;
165
- };
166
- };
167
- /**
168
- * @title: 更新 全局状态
169
- * @description: 更新 全局状态
170
- * @param {string} status : 状态
171
- * * @Author: hongbing.wang
172
- * @Date: 2024-08-19 10:03
173
- */
174
- export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
- type: EActionTypes;
176
- payload: {
177
- status: "warn" | "success" | "loading" | "fail" | "question";
178
- };
179
- };
180
- /**
181
- * @title: 更新自定义组件
182
- * @description: 更新自定义组件
183
- * @param {string} component 组件名称
184
- * @param {boolean} render : true : 隐藏 原组件(维持原组件内状态) ;false : 卸载
185
- * @return {*}
186
- * @Author: hongbing.wang
187
- * @Date: 2024-08-19 10:04
188
- */
189
- export declare const updateComponent: (component: string, render?: boolean) => {
190
- type: EActionTypes;
191
- payload: {
192
- readonly component: string;
193
- readonly type: "unset";
194
- readonly render: boolean;
195
- } | {
196
- readonly type: "step";
197
- readonly render: boolean;
198
- readonly component?: undefined;
199
- };
200
- };
201
- /**
202
- * @title: 更新步骤信息
203
- * @description: 更新某一步骤信息
204
- * @param {State} steps 某一步骤信息
205
- * @Author: hongbing.wang
206
- * @Date: 2024-08-19 10:07
207
- */
208
- export declare const updateSteps: (steps: State['steps']) => {
209
- type: EActionTypes;
210
- payload: {
211
- steps: {
212
- /** 用于重置当前步骤 */
213
- key: number;
214
- title?: string | undefined;
215
- text?: string | undefined;
216
- warn?: string | undefined;
217
- tip?: string | undefined;
218
- success?: string | undefined;
219
- fail?: string | undefined;
220
- loading?: string | undefined;
221
- /** 步骤状态 */
222
- status: StatusType;
223
- custom?: {
224
- [key: string]: unknown;
225
- } | undefined;
226
- }[];
227
- };
228
- };
229
- /**
230
- * @title: 更新状态管理信息
231
- * @description: 更新状态管理信息
232
- * @param {Partial} payload
233
- * @return {*}
234
- * @Author: hongbing.wang
235
- * @Date: 2024-08-19 10:08
236
- */
237
- export declare const updateState: (payload: Partial<State>) => {
238
- type: EActionTypes;
239
- payload: Partial<State>;
240
- };
241
- /**
242
- * @title: 更新当前步骤自定义信息
243
- * @description: 更新当前步骤自定义信息
244
- * @Author: hongbing.wang
245
- * @Date: 2024-08-19 10:09
246
- */
247
- export declare const updateCurrentCustomStemItem: (payload: NonNullable<Partial<State['steps'][number]['custom']>>) => {
248
- type: EActionTypes;
249
- payload: Partial<{
250
- [key: string]: unknown;
251
- }>;
252
- };
253
- /**
254
- * @title: 更新当前步骤信息
255
- * @description: 更新当前步骤信息
256
- * @Author: hongbing.wang
257
- * @Date: 2024-08-19 10:09
258
- */
259
- export declare const updateCurrentStemItem: (payload: any) => {
260
- type: EActionTypes;
261
- payload: any;
262
- };
263
- /**
264
- * @title: 更新当前步骤信息
265
- * @description: 更新当前步骤信息
266
- * @Author: hongbing.wang
267
- * @Date: 2024-08-19 10:09
268
- */
269
- export declare const updateClient: (payload: ClientEnum) => {
270
- type: EActionTypes;
271
- payload: {
272
- client: ClientEnum;
273
- };
274
- };
275
- /**
276
- * @title: 更新备份信息
277
- * @description: 更新备份信息
278
- * @Author: hongbing.wang
279
- * @Date: 2024-08-19 10:25
280
- */
281
- export declare const backUpProduction: (payload: Partial<State>) => {
282
- type: EActionTypes;
283
- payload: Partial<State>;
284
- };
285
- /**
286
- * @title: 释放备份信息
287
- * @description: 释放备份信息
288
- * @param {Partial} payload
289
- * @Author: hongbing.wang
290
- * @Date: 2024-08-19 10:27
291
- */
292
- export declare const backUpFree: (payload: Partial<State>) => {
293
- type: EActionTypes;
294
- payload: {
295
- name?: string | undefined;
296
- symbol?: string | undefined;
297
- amount?: string | number | undefined;
298
- mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
- order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "tyro" | "windcave" | "payo" | "linkly" | undefined;
301
- action?: "amount" | "pay" | "deviceList" | undefined;
302
- key?: number | undefined;
303
- step?: number | undefined;
304
- title?: string | undefined;
305
- subTitle?: string | undefined;
306
- type?: "unset" | "step" | undefined;
307
- render?: boolean | undefined;
308
- net?: boolean | undefined;
309
- component?: string | undefined;
310
- form?: string | undefined;
311
- status?: "warn" | "success" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
- warn?: string | undefined;
313
- steps?: {
314
- /** 用于重置当前步骤 */
315
- key: number;
316
- title?: string | undefined;
317
- text?: string | undefined;
318
- warn?: string | undefined;
319
- tip?: string | undefined;
320
- success?: string | undefined;
321
- fail?: string | undefined;
322
- loading?: string | undefined;
323
- /** 步骤状态 */
324
- status: StatusType;
325
- custom?: {
326
- [key: string]: unknown;
327
- } | undefined;
328
- }[] | undefined;
329
- number?: string | number | undefined;
330
- device?: {
331
- [key: string]: unknown;
332
- } | undefined;
333
- pay?: {
334
- [key: string]: unknown;
335
- } | undefined;
336
- custom?: {
337
- [key: string]: unknown;
338
- } | undefined;
339
- manual?: {
340
- title: string;
341
- text: string;
342
- status?: boolean | undefined;
343
- money?: number | undefined;
344
- } | undefined;
345
- backup?: Omit<State, "backup"> | undefined;
346
- client?: ClientEnum | undefined;
347
- };
348
- };
349
- export declare function reducers(state: State, action: Action): State;
350
- export declare const Provider: ({ children, state: providerState, }: {
351
- children: ReactNode;
352
- state?: State | undefined;
353
- }) => JSX.Element;
354
- export declare function useContextData(): State;
355
- export declare function useDispatch(): ThunkDispatch<State, Action>;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- declare const _default: ({ api, onChange, children, url, version, }: {
3
- api: any;
4
- onChange: any;
5
- children?: React.ReactNode;
6
- url?: string | undefined;
7
- version?: string | undefined;
8
- }) => JSX.Element;
9
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const Deposit: () => JSX.Element;
2
- export default Deposit;
@@ -1,39 +0,0 @@
1
- /**
2
- * Voucher 组件多语言配置
3
- */
4
- declare const _default: {
5
- en: {
6
- 'pisell2.voucher.title': string;
7
- 'pisell2.voucher.details': string;
8
- 'pisell2.voucher.login': string;
9
- 'pisell2.voucher.login-tip': string;
10
- 'pisell2.voucher.code': string;
11
- 'pisell2.voucher.enter-code': string;
12
- 'pisell2.voucher.apply': string;
13
- 'pisell2.voucher.code-invalid': string;
14
- 'pisell2.voucher.code-invalid-cart': string;
15
- };
16
- 'zh-CN': {
17
- 'pisell2.voucher.title': string;
18
- 'pisell2.voucher.details': string;
19
- 'pisell2.voucher.login': string;
20
- 'pisell2.voucher.login-tip': string;
21
- 'pisell2.voucher.code': string;
22
- 'pisell2.voucher.enter-code': string;
23
- 'pisell2.voucher.apply': string;
24
- 'pisell2.voucher.code-invalid': string;
25
- 'pisell2.voucher.code-invalid-cart': string;
26
- };
27
- 'zh-HK': {
28
- 'pisell2.voucher.title': string;
29
- 'pisell2.voucher.details': string;
30
- 'pisell2.voucher.login': string;
31
- 'pisell2.voucher.login-tip': string;
32
- 'pisell2.voucher.code': string;
33
- 'pisell2.voucher.enter-code': string;
34
- 'pisell2.voucher.apply': string;
35
- 'pisell2.voucher.code-invalid': string;
36
- 'pisell2.voucher.code-invalid-cart': string;
37
- };
38
- };
39
- export default _default;
@@ -1,36 +0,0 @@
1
- /**
2
- * @description: visa/master手续费是否一致
3
- * @param {any} creditCardConfig
4
- * @return {*}
5
- */
6
- export declare const isCreditCardSurchargeSame: (creditCardConfig: any[]) => boolean;
7
- /**
8
- * @description: 格式化visa/master手续费
9
- * @param {any} item 支付列表项
10
- * @param {number} amount 订单金额
11
- * @param {boolean} isSame 手续费是否一致
12
- * @return {*}
13
- */
14
- export declare const formatCreditCardSurcharge: (item: any, amount: number, isSame: boolean) => any;
15
- /**
16
- * @description: 格式化visa/master手续费列表
17
- * @param {any} item
18
- * @param {number} amount
19
- * @return {*}
20
- */
21
- export declare const formatCreditCardSurchargeList: (item: any, amount: number) => any;
22
- /**
23
- * @description: 格式化visa/master手续费文案,只显示百分比区间
24
- * @return {*}
25
- */
26
- export declare const formatCreditCardSurchargeText: (surcharge_config: any[], surcharge_text: string) => string;
27
- /**
28
- * @title: 计算支付列表的手续费
29
- * @description:
30
- * @param {any} paymentList
31
- * @param {number} amount
32
- * @return {*}
33
- * @Author: zhiwei.Wang
34
- * @Date: 2024-08-18 09:30
35
- */
36
- export declare const calculateSurcharge: (paymentList: any[], amount: number) => any[];
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- declare type PaymentStatusProps = {
3
- onChange: (status: 'succeeded' | 'processing' | 'requires_payment_method' | 'error') => void;
4
- };
5
- declare const PaymentStatus: React.FC<PaymentStatusProps>;
6
- export default PaymentStatus;
@@ -1,2 +0,0 @@
1
- declare const StripePayment: () => JSX.Element;
2
- export default StripePayment;
@@ -1,2 +0,0 @@
1
- declare const PageLoading: () => JSX.Element;
2
- export default PageLoading;
@@ -1,2 +0,0 @@
1
- declare const PaymentRequestForm: () => JSX.Element | null;
2
- export default PaymentRequestForm;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface StripePayRef {
4
- init: (res: any) => void;
5
- }
6
- export interface StripePayProps {
7
- onChange?: (values: any) => void;
8
- }
9
- declare const _default: React.ForwardRefExoticComponent<StripePayProps & React.RefAttributes<any>>;
10
- export default _default;
@@ -1,40 +0,0 @@
1
- /// <reference types="react" />
2
- export interface FormState {
3
- platform: 'pc' | 'h5' | '' | undefined;
4
- order: any;
5
- status: 'init' | 'ready' | 'loading' | 'success' | 'error';
6
- payCallback: (res?: any) => void;
7
- history?: any;
8
- payGroup?: PayGroup;
9
- walletSetting: {
10
- name: string;
11
- popup_status: 0 | 1 | null;
12
- };
13
- }
14
- export interface PayGroup {
15
- order_id?: string;
16
- total_amount?: number;
17
- walletPass?: {
18
- amount: number;
19
- cards: any[];
20
- [key: string]: any;
21
- paid?: boolean;
22
- };
23
- otherPayment?: {
24
- [key: string]: any;
25
- };
26
- wait_amount?: number;
27
- payment_group_id?: number;
28
- payment_priority?: string[];
29
- pay_number?: string;
30
- _order: any;
31
- front_order_uuid?: string;
32
- }
33
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
34
- state: FormState;
35
- } & {
36
- dispatch: (params: {
37
- type: string;
38
- payload: any;
39
- }) => void;
40
- }>;
@@ -1,57 +0,0 @@
1
- import { PayGroup } from "./model";
2
- import { WalletPassDataType } from "./PaymentMethods/WalletPass/serve";
3
- /**
4
- * 计算walletPass列表数据的总金额
5
- * @param list
6
- */
7
- export declare const calcWalletPassListAmount: (list: any[]) => any;
8
- /**
9
- * 将walletPass列表数据转换为prepare_payments需要的数据格式
10
- * @param list
11
- */
12
- export declare const formatWalletPassList2PreparePayments: (list?: any[]) => {
13
- voucher_id: any;
14
- amount: number;
15
- tag: any;
16
- }[];
17
- /**
18
- * walletPass支付params
19
- * @param payGroup
20
- */
21
- export declare const formatWalletPassParams: (payGroup: PayGroup) => {
22
- order_id: string;
23
- payment_group_id: number;
24
- payments: {
25
- amount: string;
26
- wallet_pass_use_value: any;
27
- voucher_id: any;
28
- tag: any;
29
- wallet_pass_usage_unit: any;
30
- }[];
31
- };
32
- /**
33
- * @title: 获取是否walletPass和三方支付的组合支付
34
- * @description: 三方支付 (stripe 支付宝 微信 苹果 谷歌)
35
- * @return: *
36
- * @Author: shengjie.zuo
37
- * @Date: 2024-08-30 10:06:17
38
- */
39
- export declare const getIsWalletPassAndTripartitePayment: (payGroup: PayGroup) => boolean | 0 | undefined;
40
- export declare const isFranchiseeShop: (path?: any, history?: any) => any;
41
- /**
42
- * @title: 获取当前连锁加盟店铺shopid
43
- * @description:
44
- * @param {any} param1
45
- * @return {*}
46
- * @Author: chensheng.gu
47
- * @Date: 2024-08-07 10:04
48
- */
49
- export declare const getFranchiseeShopId: (path?: any, history?: any) => number;
50
- export declare const formatFranchiseeRoute: (url: string, history?: any) => string;
51
- export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string;
52
- export declare const clientPayment: (params: {
53
- order_id: number;
54
- type: "aliPay" | "wxPay" | 'google_pay';
55
- values: any;
56
- interaction?: any;
57
- }) => void;
@@ -1,33 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.text.shopping-cart.item': (num: number) => string;
4
- 'pisell2.text.shopping-cart.clear.cart': string;
5
- 'pisell2.text.shopping-cart.add.service': string;
6
- 'pisell2.text.shopping-cart.add.more': string;
7
- 'pisell2.text.shopping-cart.no.selected': string;
8
- 'pisell2.text.shopping-cart.confirm': string;
9
- 'pisell2.text.shopping-cart.cancel': string;
10
- 'pisell2.text.shopping-cart.select.holder.modal.title': string;
11
- };
12
- 'zh-CN': {
13
- 'pisell2.text.shopping-cart.item': (num: number) => string;
14
- 'pisell2.text.shopping-cart.clear.cart': string;
15
- 'pisell2.text.shopping-cart.add.service': string;
16
- 'pisell2.text.shopping-cart.add.more': string;
17
- 'pisell2.text.shopping-cart.no.selected': string;
18
- 'pisell2.text.shopping-cart.confirm': string;
19
- 'pisell2.text.shopping-cart.cancel': string;
20
- 'pisell2.text.shopping-cart.select.holder.modal.title': string;
21
- };
22
- 'zh-HK': {
23
- 'pisell2.text.shopping-cart.item': (num: number) => string;
24
- 'pisell2.text.shopping-cart.clear.cart': string;
25
- 'pisell2.text.shopping-cart.add.service': string;
26
- 'pisell2.text.shopping-cart.add.more': string;
27
- 'pisell2.text.shopping-cart.no.selected': string;
28
- 'pisell2.text.shopping-cart.confirm': string;
29
- 'pisell2.text.shopping-cart.cancel': string;
30
- 'pisell2.text.shopping-cart.select.holder.modal.title': string;
31
- };
32
- };
33
- export default _default;
@@ -1,48 +0,0 @@
1
- import { CollapseProps } from 'antd';
2
- export interface productProps {
3
- hideAddBtn?: boolean;
4
- isShowNote?: boolean;
5
- isShowPackageNote?: boolean;
6
- products?: any[];
7
- holders?: any[];
8
- isEdit?: boolean;
9
- disabledEdit?: boolean;
10
- isShowChangeResource?: boolean;
11
- isShowDelete?: boolean;
12
- isShowChangeHolder?: boolean;
13
- isShowHolder?: boolean;
14
- isShowAddHolderButton?: boolean;
15
- }
16
- export interface shoppingCartProps {
17
- isOpenGroup?: boolean;
18
- carts?: any[];
19
- platform?: 'shop' | 'h5';
20
- emptyText?: string;
21
- activeKey?: string[] | number[];
22
- defaultActiveKey?: string[] | number[];
23
- className?: string;
24
- onCard?: (e: any) => void;
25
- onAction?: (e: any) => void;
26
- onChange?: (items: any, type?: string, other?: any) => void;
27
- onAddProduct?: (e?: any) => void;
28
- onActiveKey?: (e: any) => void;
29
- isShowImage?: boolean;
30
- isShowHolder?: boolean;
31
- isShowDelete?: boolean;
32
- collapseParams?: CollapseProps;
33
- productParams?: productProps;
34
- isHideClearCart?: boolean;
35
- isParallelResource?: boolean;
36
- }
37
- /**
38
- * @title: 商品卡片
39
- * @description:
40
- * @return {*}
41
- * @Author: WangHan
42
- * @Date: 2024-11-29 09:52
43
- */
44
- export interface ProductProps {
45
- id?: any;
46
- lists: any[];
47
- isAdd?: boolean;
48
- }