@pisell/private-materials 3.3.22 → 3.3.24

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 (223) 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 +3 -3
  6. package/build/lowcode/view.js +5 -5
  7. package/es/businessModel/SalesModel/index.d.ts +1 -0
  8. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +3 -0
  9. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/components/Date/state.d.ts +63 -0
  12. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  14. package/es/components/appointmentBooking/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/locales.d.ts +354 -0
  16. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  17. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  18. package/es/components/booking/components/customSelect/index.d.ts +38 -0
  19. package/es/components/booking/components/footer/index.js +5 -4
  20. package/es/components/booking/deposit/index.d.ts +1 -0
  21. package/es/components/booking/forms/footer.d.ts +6 -0
  22. package/es/components/booking/forms/sendModal/index.d.ts +27 -0
  23. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  24. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  25. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  26. package/es/components/booking/info/clientVariant/utils.d.ts +1 -0
  27. package/es/components/booking/info/date/index.d.ts +1 -0
  28. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  29. package/es/components/booking/info/notes/index.d.ts +1 -0
  30. package/es/components/booking/info/service/Lists.d.ts +1 -0
  31. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  32. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  33. package/es/components/booking/info/service/editService/index.js +39 -15
  34. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  35. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  36. package/es/components/booking/info/utils.d.ts +4 -0
  37. package/es/components/booking/info/utils.js +18 -1
  38. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  39. package/es/components/booking/info2/service/addService/index.js +16 -2
  40. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  41. package/es/components/booking/info2/service/editService/index.js +25 -2
  42. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  43. package/es/components/booking/info2/utils.d.ts +4 -0
  44. package/es/components/booking/locales.d.ts +807 -0
  45. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  46. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  47. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  48. package/es/components/booking/utils.d.ts +2 -2
  49. package/es/components/booking/utils.js +8 -0
  50. package/es/components/eftposPay/amount.d.ts +2 -1
  51. package/es/components/eftposPay/app.d.ts +1 -0
  52. package/es/components/eftposPay/component/fail/failCustom.d.ts +4 -0
  53. package/es/components/eftposPay/component/fail/index.d.ts +4 -0
  54. package/es/components/eftposPay/component/fail/unknow.d.ts +10 -0
  55. package/es/components/eftposPay/device.d.ts +2 -1
  56. package/es/components/eftposPay/hooks.d.ts +35 -0
  57. package/es/components/eftposPay/index.d.ts +5 -0
  58. package/es/components/eftposPay/locales.d.ts +330 -0
  59. package/es/components/eftposPay/pay.d.ts +21 -0
  60. package/es/components/eftposPay/payo/config.d.ts +13 -0
  61. package/es/components/eftposPay/payo/hooks.d.ts +10 -0
  62. package/es/components/eftposPay/store/index.d.ts +4 -4
  63. package/es/components/eftposPay/tyro/index.d.ts +9 -0
  64. package/es/components/eftposPay/windcave/helper.d.ts +23 -0
  65. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  66. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  67. package/es/components/eventBooking/components/Provider/Information/index.d.ts +3 -0
  68. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  69. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  70. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  71. package/es/components/eventBooking/index.d.ts +1 -0
  72. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  73. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
  74. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
  75. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
  76. package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
  77. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
  78. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
  79. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  80. package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
  81. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  82. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
  83. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
  84. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
  85. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +111 -0
  86. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +3 -0
  87. package/es/components/pay/toC/index.d.ts +3 -0
  88. package/es/components/pay/toC/utils.d.ts +49 -0
  89. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  90. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  91. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  92. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  93. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  94. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  95. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  96. package/es/components/productExtension/index.d.ts +1 -0
  97. package/es/components/ruleSetting/index.d.ts +10 -0
  98. package/es/components/ruleSetting/server.d.ts +4 -0
  99. package/es/components/shoppingCart/Provider.d.ts +3 -0
  100. package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  101. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  102. package/es/components/shoppingCart/components/Render/index.d.ts +4 -0
  103. package/es/components/shoppingCart/hooks/useClearCart.d.ts +2 -0
  104. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  105. package/es/components/ticketBooking/index.d.ts +1 -0
  106. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  107. package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +11 -0
  108. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  109. package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
  110. package/es/components/workSpaceList/components/EditableString/index.d.ts +21 -0
  111. package/es/components/workSpaceList/components/SearchBar/index.d.ts +17 -0
  112. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +3 -0
  113. package/es/components/workSpaceList/components/Sort/index.d.ts +7 -0
  114. package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +22 -0
  115. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  116. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +3 -0
  117. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  118. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  119. package/lib/components/appointmentBooking/components/Date/state.d.ts +63 -0
  120. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  121. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  122. package/lib/components/appointmentBooking/index.d.ts +1 -0
  123. package/lib/components/appointmentBooking/locales.d.ts +354 -0
  124. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  125. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  126. package/lib/components/booking/components/customSelect/index.d.ts +38 -0
  127. package/lib/components/booking/components/footer/index.js +6 -9
  128. package/lib/components/booking/deposit/index.d.ts +1 -0
  129. package/lib/components/booking/forms/footer.d.ts +6 -0
  130. package/lib/components/booking/forms/sendModal/index.d.ts +27 -0
  131. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  132. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  133. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  134. package/lib/components/booking/info/clientVariant/utils.d.ts +1 -0
  135. package/lib/components/booking/info/date/index.d.ts +1 -0
  136. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  137. package/lib/components/booking/info/notes/index.d.ts +1 -0
  138. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  139. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  140. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  141. package/lib/components/booking/info/service/editService/index.js +32 -10
  142. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  143. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  144. package/lib/components/booking/info/utils.d.ts +4 -0
  145. package/lib/components/booking/info/utils.js +17 -0
  146. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  147. package/lib/components/booking/info2/service/addService/index.js +12 -2
  148. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  149. package/lib/components/booking/info2/service/editService/index.js +28 -4
  150. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  151. package/lib/components/booking/info2/utils.d.ts +4 -0
  152. package/lib/components/booking/locales.d.ts +807 -0
  153. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  154. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  155. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  156. package/lib/components/booking/utils.d.ts +2 -2
  157. package/lib/components/booking/utils.js +8 -0
  158. package/lib/components/eftposPay/amount.d.ts +2 -1
  159. package/lib/components/eftposPay/app.d.ts +1 -0
  160. package/lib/components/eftposPay/component/fail/failCustom.d.ts +4 -0
  161. package/lib/components/eftposPay/component/fail/index.d.ts +4 -0
  162. package/lib/components/eftposPay/component/fail/unknow.d.ts +10 -0
  163. package/lib/components/eftposPay/device.d.ts +2 -1
  164. package/lib/components/eftposPay/hooks.d.ts +35 -0
  165. package/lib/components/eftposPay/index.d.ts +5 -0
  166. package/lib/components/eftposPay/locales.d.ts +330 -0
  167. package/lib/components/eftposPay/pay.d.ts +21 -0
  168. package/lib/components/eftposPay/payo/config.d.ts +13 -0
  169. package/lib/components/eftposPay/payo/hooks.d.ts +10 -0
  170. package/lib/components/eftposPay/store/index.d.ts +4 -4
  171. package/lib/components/eftposPay/tyro/index.d.ts +9 -0
  172. package/lib/components/eftposPay/windcave/helper.d.ts +23 -0
  173. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  174. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  175. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +3 -0
  176. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  177. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  178. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  179. package/lib/components/eventBooking/index.d.ts +1 -0
  180. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  181. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
  182. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
  183. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
  184. package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
  185. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
  186. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
  187. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  188. package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
  189. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  190. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
  191. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
  192. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
  193. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +111 -0
  194. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +3 -0
  195. package/lib/components/pay/toC/index.d.ts +3 -0
  196. package/lib/components/pay/toC/utils.d.ts +49 -0
  197. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  198. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  199. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  200. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  201. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  202. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  203. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  204. package/lib/components/productExtension/index.d.ts +1 -0
  205. package/lib/components/ruleSetting/index.d.ts +10 -0
  206. package/lib/components/ruleSetting/server.d.ts +4 -0
  207. package/lib/components/shoppingCart/Provider.d.ts +3 -0
  208. package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  209. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  210. package/lib/components/shoppingCart/components/Render/index.d.ts +4 -0
  211. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +2 -0
  212. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  213. package/lib/components/ticketBooking/index.d.ts +1 -0
  214. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  215. package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +11 -0
  216. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  217. package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
  218. package/lib/components/workSpaceList/components/EditableString/index.d.ts +21 -0
  219. package/lib/components/workSpaceList/components/SearchBar/index.d.ts +17 -0
  220. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +3 -0
  221. package/lib/components/workSpaceList/components/Sort/index.d.ts +7 -0
  222. package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +22 -0
  223. package/package.json +4 -4
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Schedule: () => JSX.Element;
2
3
  export default Schedule;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const EventBooking: () => JSX.Element;
3
4
  export default EventBooking;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface GlobePayAliPayH5Ref {
4
+ init: (res: any) => void;
5
+ }
6
+ export interface GlobePayAliPayH5Props {
7
+ onChange?: (values: any) => void;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<GlobePayAliPayH5Props & React.RefAttributes<any>>;
10
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export declare const getReturnUrl: () => string;
2
+ export declare const getAliPayUrl: (orderId: number, values: any) => Promise<any>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface GlobePayPaypalH5Ref {
4
+ init: (res: any) => void;
5
+ }
6
+ export interface GlobePayPaypalH5Props {
7
+ onChange?: (values: any) => void;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<GlobePayPaypalH5Props & React.RefAttributes<any>>;
10
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export declare const getReturnUrl: () => string;
2
+ export declare const getAliPayUrl: (orderId: number, values: any) => Promise<any>;
@@ -0,0 +1,2 @@
1
+ export declare const getReturnUrl: () => string;
2
+ export declare const getAliPayUrl: (orderId: number) => Promise<any>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface GlobePayWxH5Ref {
4
+ init: (res: any) => void;
5
+ }
6
+ export interface GlobePayWxH5Props {
7
+ onChange?: (values: any) => void;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<GlobePayWxH5Props & React.RefAttributes<any>>;
10
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export declare const getReturnUrl: () => string;
2
+ export declare const getAliPayUrl: (orderId: number, values: any) => Promise<any>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.module.less';
2
3
  declare const StripePayment: () => JSX.Element;
3
4
  export default StripePayment;
@@ -0,0 +1,2 @@
1
+ export declare const getReturnUrl: () => string;
2
+ export declare const getAliPayUrl: (orderId: number) => Promise<any>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface SuperPayAliPayH5Ref {
4
+ init: (res: any) => void;
5
+ }
6
+ export interface SuperPayAliPayH5Props {
7
+ onChange?: (values: any) => void;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<SuperPayAliPayH5Props & React.RefAttributes<any>>;
10
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export declare const getReturnUrl: () => string;
2
+ export declare const getAliPayUrl: (orderId: number, values: any) => Promise<any>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface SuperPayWxPayH5Ref {
4
+ init: (res: any) => void;
5
+ }
6
+ export interface SuperPayWxPayH5Props {
7
+ onChange?: (values: any) => void;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<SuperPayWxPayH5Props & React.RefAttributes<any>>;
10
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export declare const getReturnUrl: () => string;
2
+ export declare const getWxPayUrl: (orderId: number, values: any) => Promise<any>;
@@ -0,0 +1,111 @@
1
+ export declare type MachineCodeListParams = {
2
+ order_id: number | string;
3
+ available: number;
4
+ prepare_payments: {
5
+ voucher_id: number;
6
+ amount: number;
7
+ tag: string;
8
+ }[];
9
+ filter_prepare_wallet_pass: 1 | 0;
10
+ sale_channel: string;
11
+ };
12
+ export declare type WalletPassDataType = {
13
+ id: number;
14
+ shop_id: number;
15
+ customer_id: number;
16
+ code: string;
17
+ encoded: string;
18
+ status: string;
19
+ cover: string;
20
+ tag: string;
21
+ relation_type: string;
22
+ product_id: number;
23
+ limit_status: string;
24
+ sales_status: number;
25
+ par_value: string;
26
+ used_par_value: string;
27
+ start_date: string;
28
+ expire_date: string;
29
+ end_time: string;
30
+ start_time: string;
31
+ created_at: string;
32
+ product_name: string;
33
+ expire_time: string;
34
+ available_max_par_value: string;
35
+ available_max_amount: string;
36
+ custom_expire_status: number;
37
+ wallet_pass_usage_unit: WalletPassUsageUnit;
38
+ custom_order_deduct_exhausted: number;
39
+ available_product_status: number;
40
+ available_product_ids: any[];
41
+ available_product_type: string;
42
+ available_num: number;
43
+ available_product_title: string;
44
+ unified_available_status: number;
45
+ unified_messages: UnifiedMessages;
46
+ external_card: any[];
47
+ product: Product;
48
+ shop: Shop;
49
+ wallet_pass_usage?: any;
50
+ balance_par_value: string;
51
+ };
52
+ declare type Shop = {
53
+ id: number;
54
+ name: string;
55
+ default_url: string;
56
+ };
57
+ declare type Product = {
58
+ id: number;
59
+ title: string;
60
+ cover: string;
61
+ is_charge_tax: number;
62
+ };
63
+ declare type UnifiedMessages = {
64
+ title: string;
65
+ desc: string;
66
+ alert: string;
67
+ };
68
+ declare type WalletPassUsageUnit = {
69
+ price: number;
70
+ points: number;
71
+ };
72
+ /**
73
+ * 查询支付识别码列表
74
+ */
75
+ export declare const getMachineCodeList: (params: MachineCodeListParams) => Promise<WalletPassDataType[]>;
76
+ /**
77
+ * 获取推荐的支付识别码
78
+ */
79
+ export declare const getRecommendMachineCodeList: (order_id: number) => Promise<WalletPassDataType[]>;
80
+ /**
81
+ * 搜索支付识别码
82
+ */
83
+ export declare const searchMachineCodeList: (params: {
84
+ order_id: number | string;
85
+ code: string;
86
+ sale_channel: string;
87
+ prepare_payments: {
88
+ voucher_id: number;
89
+ amount: number;
90
+ tag: string;
91
+ }[];
92
+ filter_prepare_wallet_pass: 1 | 0;
93
+ }) => Promise<WalletPassDataType[]>;
94
+ /**
95
+ * walletpass支付
96
+ */
97
+ export declare const walletPassPay: (params: {
98
+ order_id: number | string;
99
+ payment_group_id: number;
100
+ payments: {
101
+ amount: string;
102
+ wallet_pass_use_value: string;
103
+ voucher_id: number;
104
+ tag: string;
105
+ wallet_pass_usage_unit: {
106
+ price: number;
107
+ points: number;
108
+ };
109
+ }[];
110
+ }) => Promise<WalletPassDataType[]>;
111
+ export {};
@@ -0,0 +1,3 @@
1
+ import { WalletPassDataType } from './serve';
2
+ export declare const formatMachineCodeServer2CardList: (data: WalletPassDataType[], selectId?: number[]) => any;
3
+ export declare const getDataByIds: (arr: any[], ids: number[]) => any[];
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const _default: any;
3
+ export default _default;
@@ -0,0 +1,49 @@
1
+ import { PayGroup } from "./model";
2
+ /**
3
+ * 计算walletPass列表数据的总金额
4
+ * @param list
5
+ */
6
+ export declare const calcWalletPassListAmount: (list: any[]) => any;
7
+ /**
8
+ * 将walletPass列表数据转换为prepare_payments需要的数据格式
9
+ * @param list
10
+ */
11
+ export declare const formatWalletPassList2PreparePayments: (list?: any[]) => {
12
+ voucher_id: any;
13
+ amount: number;
14
+ tag: any;
15
+ }[];
16
+ /**
17
+ * walletPass支付params
18
+ * @param payGroup
19
+ */
20
+ export declare const formatWalletPassParams: (payGroup: PayGroup) => {
21
+ order_id: string;
22
+ payment_group_id: number;
23
+ payments: {
24
+ amount: any;
25
+ wallet_pass_use_value: any;
26
+ voucher_id: any;
27
+ tag: any;
28
+ wallet_pass_usage_unit: any;
29
+ }[];
30
+ };
31
+ /**
32
+ * @title: 获取是否walletPass和三方支付的组合支付
33
+ * @description: 三方支付 (stripe 支付宝 微信 苹果 谷歌)
34
+ * @return: *
35
+ * @Author: shengjie.zuo
36
+ * @Date: 2024-08-30 10:06:17
37
+ */
38
+ export declare const getIsWalletPassAndTripartitePayment: (payGroup: PayGroup) => boolean | 0 | undefined;
39
+ export declare const isFranchiseeShop: (path?: any, history?: any) => any;
40
+ /**
41
+ * @title: 获取当前连锁加盟店铺shopid
42
+ * @description:
43
+ * @param {any} param1
44
+ * @return {*}
45
+ * @Author: chensheng.gu
46
+ * @Date: 2024-08-07 10:04
47
+ */
48
+ export declare const getFranchiseeShopId: (path?: any, history?: any) => number;
49
+ export declare const formatFranchiseeRoute: (url: string, history?: any) => string;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
2
3
  export default PhoneField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface AddClientProps {
3
4
  onChange: (value: any) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface RightPanelProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const Actor: ({ name }: {
2
3
  name: string;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface InfoProps {
2
3
  relation_id: any;
3
4
  action: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface valueType {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SelectResourcesTable: ({ value, onChange }: any) => JSX.Element;
3
4
  export default SelectResourcesTable;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface ProductExtensionProps {
3
4
  onDataChange: any;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ interface RuleSettingProps {
4
+ value: any;
5
+ onChange: any;
6
+ className: string;
7
+ style: any;
8
+ }
9
+ declare const RuleSetting: (props: RuleSettingProps) => JSX.Element;
10
+ export default RuleSetting;
@@ -0,0 +1,4 @@
1
+ export declare const getStaffList: () => Promise<any>;
2
+ export declare const getProductChannel: () => Promise<any>;
3
+ export declare const getOrderTypes: () => Promise<any>;
4
+ export declare const getPaymentTypes: () => Promise<any>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const CartContext: React.Context<any>;
3
+ export declare const CartProvider: ({ children, props, onCard, onAction, onChange, onAddProduct, onActiveKey, }: any) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { ProductProps } from '../../type';
2
+ declare const Product: (props: ProductProps) => JSX.Element;
3
+ export default Product;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Empty: (props: any) => JSX.Element;
3
4
  export default Empty;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Content: () => JSX.Element;
4
+ export default Content;
@@ -0,0 +1,2 @@
1
+ declare const useClearCart: (key?: number | undefined) => JSX.Element | null;
2
+ export default useClearCart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const TicketBooking: () => JSX.Element;
3
4
  export default TicketBooking;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface TicketBookingProps {
3
4
  productExtensionType: string[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from '../serve';
2
3
  /**
3
4
  * 钱包卡片Hook的参数
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import './IconPanel.less';
3
+ interface IconPanel {
4
+ name: string;
5
+ color?: string;
6
+ value?: string;
7
+ defaultValue?: string;
8
+ onChange?: (val: string) => void;
9
+ }
10
+ declare const IconPanel: React.FC<IconPanel>;
11
+ export default IconPanel;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface IconItem {
3
+ name: string;
4
+ icon: React.ComponentType;
5
+ }
6
+ export declare const icons: IconItem[];
7
+ export declare const iconMap: Record<string, React.ComponentType>;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ import { MenuProps } from 'antd';
2
+ export declare const items: MenuProps['items'];
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface EditableString {
4
+ text: string;
5
+ style?: React.CSSProperties;
6
+ onChange?: (value: string) => void;
7
+ editable?: boolean;
8
+ editing?: boolean;
9
+ maxLength?: number;
10
+ className?: string;
11
+ ellipsis?: {
12
+ row: number;
13
+ };
14
+ }
15
+ /**
16
+ * 可编辑string
17
+ * @param props
18
+ * @constructor
19
+ */
20
+ declare const EditableString: React.FC<EditableString>;
21
+ export default EditableString;
@@ -0,0 +1,17 @@
1
+ import { CreateBaseModalProps } from './../CreateBaseModal';
2
+ import { SortProps } from './../../../workSpaceList/components/Sort';
3
+ import React from 'react';
4
+ import './index.less';
5
+ export interface SearchBarProps {
6
+ title: string;
7
+ describe?: string;
8
+ onTitleChange?: (value: string) => void;
9
+ onDescribeChange?: (value: string) => void;
10
+ onDelete?: () => void;
11
+ onSort?: SortProps['onChange'];
12
+ isDetail?: boolean;
13
+ onAddBase: CreateBaseModalProps['onAddBase'];
14
+ editingTitle?: boolean;
15
+ }
16
+ declare const SearchBar: React.FC<SearchBarProps>;
17
+ export default SearchBar;
@@ -0,0 +1,3 @@
1
+ import './../../index.less';
2
+ declare const Search: () => JSX.Element;
3
+ export default Search;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface SortProps {
4
+ onChange?: (val: string[]) => void;
5
+ }
6
+ declare const Sort: React.FC<SortProps>;
7
+ export default Sort;
@@ -0,0 +1,22 @@
1
+ import { CardListProps } from './../CardList';
2
+ import { SearchBarProps } from './../SearchBar';
3
+ import { FC } from 'react';
4
+ import './index.less';
5
+ export interface WorkspaceItemProps {
6
+ title: string;
7
+ describe?: string;
8
+ data: any[];
9
+ isDetail?: boolean;
10
+ id: number;
11
+ onSort?: SearchBarProps['onSort'];
12
+ onAddBase: SearchBarProps['onAddBase'];
13
+ onRefresh?: () => void;
14
+ onDelete?: () => void;
15
+ onDeleteBase?: (id: number) => void;
16
+ onUpdateBase?: CardListProps['onUpdateBase'];
17
+ loading?: boolean;
18
+ scrollRef?: any;
19
+ baseCount?: number;
20
+ }
21
+ declare const WorkspaceItem: FC<WorkspaceItemProps>;
22
+ export default WorkspaceItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.3.22",
3
+ "version": "3.3.24",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,10 +59,10 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
- "@pisell/utils": "1.0.42",
63
- "@pisell/icon": "0.0.11",
62
+ "@pisell/materials": "3.3.7",
64
63
  "@pisell/date-picker": "3.0.2",
65
- "@pisell/materials": "3.3.7"
64
+ "@pisell/icon": "0.0.11",
65
+ "@pisell/utils": "1.0.42"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",