@pisell/private-materials 6.3.31 → 6.3.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +151 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +1 -1
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/components/Sales/Summary/utils.d.ts +1 -1
  12. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  13. package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
  14. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  15. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  16. package/es/components/appointmentBooking/hooks.d.ts +107 -0
  17. package/es/components/appointmentBooking/locales.d.ts +363 -0
  18. package/es/components/booking/addons/model.d.ts +1 -10
  19. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  20. package/es/components/booking/components/footer/index.d.ts +0 -1
  21. package/es/components/booking/components/footer/utils.d.ts +41 -0
  22. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  23. package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  24. package/es/components/booking/components/voucher/index.d.ts +3 -0
  25. package/es/components/booking/forms/model.d.ts +1 -10
  26. package/es/components/booking/forms/table/index.d.ts +0 -1
  27. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +43 -0
  28. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  29. package/es/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  30. package/es/components/booking/info/main.d.ts +12 -0
  31. package/es/components/booking/info/model.d.ts +5 -0
  32. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  33. package/es/components/booking/info/service/editService/constants.d.ts +1 -0
  34. package/es/components/booking/info/service/editService/index.d.ts +7 -0
  35. package/es/components/booking/info/service/like/index.d.ts +0 -1
  36. package/es/components/booking/info/service2/utils.d.ts +1 -1
  37. package/es/components/booking/info2/index.d.ts +12 -0
  38. package/es/components/booking/info2/service/addService/index.d.ts +11 -0
  39. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  40. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  41. package/es/components/booking/info2/service/contactInfoMode/index.js +1 -0
  42. package/es/components/booking/locales.d.ts +840 -0
  43. package/es/components/booking/model.d.ts +112 -0
  44. package/es/components/booking/notes/model.d.ts +1 -10
  45. package/es/components/booking/payments/model.d.ts +1 -10
  46. package/es/components/booking/utils.d.ts +2 -2
  47. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  48. package/es/components/eftpos/form/index.d.ts +0 -1
  49. package/es/components/eftpos/group/index.d.ts +0 -1
  50. package/es/components/eftpos/hooks.d.ts +0 -1
  51. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  52. package/es/components/eftpos/icon/device.d.ts +0 -1
  53. package/es/components/eftpos/receipt/index.d.ts +0 -1
  54. package/es/components/eftposPay/amount.d.ts +1 -1
  55. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  56. package/es/components/eftposPay/component/fail/index.d.ts +3 -0
  57. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  58. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  59. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  60. package/es/components/eftposPay/device.d.ts +1 -1
  61. package/es/components/eftposPay/hooks.d.ts +2 -2
  62. package/es/components/eftposPay/store/index.d.ts +6 -6
  63. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  64. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  65. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  66. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  67. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  68. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  69. package/es/components/index.d.ts +22 -0
  70. package/es/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
  71. package/es/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
  72. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  73. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  74. package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  75. package/es/components/pay/toC/model.d.ts +1 -9
  76. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  77. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  78. package/es/components/ruleSetting/locales.d.ts +48 -0
  79. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  80. package/es/components/schedules/model.d.ts +1 -9
  81. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  82. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  83. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  84. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  85. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  86. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  87. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  88. package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
  89. package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  90. package/es/components/ticketBooking/index.d.ts +7 -0
  91. package/es/components/wallet/Detail/model.d.ts +1 -13
  92. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  93. package/es/components/wallet/PointCard/model.d.ts +1 -13
  94. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  95. package/es/components/wallet/Voucher/model.d.ts +1 -13
  96. package/es/components/wallet/model.d.ts +1 -9
  97. package/es/plus/clientName/index.d.ts +4 -0
  98. package/es/plus/clientName/type.d.ts +13 -0
  99. package/es/plus/clientName/utils.d.ts +2 -0
  100. package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  101. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  102. package/es/plus/contactInfo/index.d.ts +6 -0
  103. package/es/plus/contactInfo/locales.d.ts +15 -0
  104. package/es/plus/contactInfo/types.d.ts +91 -0
  105. package/es/plus/contactInfo/utils.d.ts +7 -0
  106. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  107. package/es/plus/contactInfoModal/index.d.ts +40 -0
  108. package/es/plus/contactInfoModal/locales.d.ts +66 -0
  109. package/es/plus/productSelect/ProductCard/index.d.ts +47 -0
  110. package/es/plus/productSelect/index.d.ts +32 -0
  111. package/es/pro/Login2.0/AuthModal.js +14 -8
  112. package/es/pro/Login2.0/Login2.js +55 -35
  113. package/es/pro/Login2.0/Register2.js +1 -1
  114. package/es/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  115. package/es/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  116. package/es/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  117. package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  118. package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  119. package/es/pro/Login2.0/components/phoneValidation.js +1 -1
  120. package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  121. package/es/pro/Login2.0/index.less +11 -2
  122. package/es/pro/Login2.0/locales.d.ts +543 -0
  123. package/es/pro/Login2.0/locales.js +19 -19
  124. package/es/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  125. package/es/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  126. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  127. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  128. package/es/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  129. package/es/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  130. package/es/pro/Login2.0/steps/SetPassword.js +7 -7
  131. package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  132. package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  133. package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  134. package/es/pro/Login2.0/steps/index.d.ts +19 -0
  135. package/es/pro/Login2.0/types.d.ts +167 -0
  136. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  137. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  138. package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
  139. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  140. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  141. package/lib/components/appointmentBooking/hooks.d.ts +107 -0
  142. package/lib/components/appointmentBooking/locales.d.ts +363 -0
  143. package/lib/components/booking/addons/model.d.ts +1 -10
  144. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  145. package/lib/components/booking/components/footer/index.d.ts +0 -1
  146. package/lib/components/booking/components/footer/utils.d.ts +41 -0
  147. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  148. package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  149. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  150. package/lib/components/booking/forms/model.d.ts +1 -10
  151. package/lib/components/booking/forms/table/index.d.ts +0 -1
  152. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +43 -0
  153. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  154. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  155. package/lib/components/booking/info/main.d.ts +12 -0
  156. package/lib/components/booking/info/model.d.ts +5 -0
  157. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  158. package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
  159. package/lib/components/booking/info/service/editService/index.d.ts +7 -0
  160. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  161. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  162. package/lib/components/booking/info2/index.d.ts +12 -0
  163. package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
  164. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  165. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  166. package/lib/components/booking/info2/service/contactInfoMode/index.js +8 -1
  167. package/lib/components/booking/locales.d.ts +840 -0
  168. package/lib/components/booking/model.d.ts +112 -0
  169. package/lib/components/booking/notes/model.d.ts +1 -10
  170. package/lib/components/booking/payments/model.d.ts +1 -10
  171. package/lib/components/booking/utils.d.ts +2 -2
  172. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  173. package/lib/components/eftpos/form/index.d.ts +0 -1
  174. package/lib/components/eftpos/group/index.d.ts +0 -1
  175. package/lib/components/eftpos/hooks.d.ts +0 -1
  176. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  177. package/lib/components/eftpos/icon/device.d.ts +0 -1
  178. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  179. package/lib/components/eftposPay/amount.d.ts +1 -1
  180. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  181. package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
  182. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  183. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  184. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  185. package/lib/components/eftposPay/device.d.ts +1 -1
  186. package/lib/components/eftposPay/hooks.d.ts +2 -2
  187. package/lib/components/eftposPay/store/index.d.ts +6 -6
  188. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  189. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  190. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  191. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  192. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  193. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  194. package/lib/components/index.d.ts +22 -0
  195. package/lib/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
  196. package/lib/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
  197. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  198. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  199. package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  200. package/lib/components/pay/toC/model.d.ts +1 -9
  201. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  202. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  203. package/lib/components/ruleSetting/locales.d.ts +48 -0
  204. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  205. package/lib/components/schedules/model.d.ts +1 -9
  206. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  207. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  208. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  209. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  210. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  211. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  212. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  213. package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
  214. package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  215. package/lib/components/ticketBooking/index.d.ts +7 -0
  216. package/lib/components/wallet/Detail/model.d.ts +1 -13
  217. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  218. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  219. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  220. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  221. package/lib/components/wallet/model.d.ts +1 -9
  222. package/lib/plus/clientName/index.d.ts +4 -0
  223. package/lib/plus/clientName/type.d.ts +13 -0
  224. package/lib/plus/clientName/utils.d.ts +2 -0
  225. package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  226. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  227. package/lib/plus/contactInfo/index.d.ts +6 -0
  228. package/lib/plus/contactInfo/locales.d.ts +15 -0
  229. package/lib/plus/contactInfo/types.d.ts +91 -0
  230. package/lib/plus/contactInfo/utils.d.ts +7 -0
  231. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  232. package/lib/plus/contactInfoModal/index.d.ts +40 -0
  233. package/lib/plus/contactInfoModal/locales.d.ts +66 -0
  234. package/lib/plus/productSelect/ProductCard/index.d.ts +47 -0
  235. package/lib/plus/productSelect/index.d.ts +32 -0
  236. package/lib/pro/Login2.0/AuthModal.js +16 -11
  237. package/lib/pro/Login2.0/Login2.js +18 -11
  238. package/lib/pro/Login2.0/Register2.js +1 -1
  239. package/lib/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  240. package/lib/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  241. package/lib/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  242. package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  243. package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  244. package/lib/pro/Login2.0/components/phoneValidation.js +1 -1
  245. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  246. package/lib/pro/Login2.0/index.less +11 -2
  247. package/lib/pro/Login2.0/locales.d.ts +543 -0
  248. package/lib/pro/Login2.0/locales.js +19 -19
  249. package/lib/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  250. package/lib/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  251. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  252. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  253. package/lib/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  254. package/lib/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  255. package/lib/pro/Login2.0/steps/SetPassword.js +7 -7
  256. package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  257. package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  258. package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  259. package/lib/pro/Login2.0/steps/index.d.ts +19 -0
  260. package/lib/pro/Login2.0/types.d.ts +167 -0
  261. package/package.json +4 -4
@@ -1,29 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- selectedGiftOptionId: string | null;
4
- cardList: Array<{
5
- id: string;
6
- name: string;
7
- price: number;
8
- }>;
9
- selectedItem: {
10
- id?: string;
11
- gift_price?: number;
12
- price?: number;
13
- name?: string;
14
- variant_id?: string;
15
- };
16
- productId?: string;
17
- detailId?: string;
18
- total: string | number;
19
- rechargeModalOpen: boolean;
20
- }
21
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
- state: RechargeState;
23
- } & {
24
- dispatch: (params: {
25
- type: string;
26
- payload: any;
27
- }) => void;
28
- }>;
29
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: 0;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from './serve';
3
2
  export interface WalletCardItemProps {
4
3
  id: string;
@@ -27,11 +26,4 @@ export interface WalletListProps {
27
26
  currentSearchListItemCode?: string;
28
27
  [key: string]: any;
29
28
  }
30
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
- global_wallet: WalletListProps;
32
- } & {
33
- dispatch: (params: {
34
- type: string;
35
- payload: any;
36
- }) => void;
37
- }>;
29
+ export declare const Provider: any, Context: any;
@@ -0,0 +1,4 @@
1
+ import './index.less';
2
+ import { IClientNameProps } from './type';
3
+ declare const ClientName: ({ className, dataSource, style }: IClientNameProps) => JSX.Element | null;
4
+ export default ClientName;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ export declare type ClientData = {
3
+ display_name?: string;
4
+ nickname?: string;
5
+ first_name?: string;
6
+ last_name?: string;
7
+ [key: string]: any;
8
+ };
9
+ export interface IClientNameProps {
10
+ dataSource?: string | ClientData | null;
11
+ className?: string;
12
+ style?: React.CSSProperties;
13
+ }
@@ -0,0 +1,2 @@
1
+ import { ClientData } from './type';
2
+ export declare const getClientName: (dataSource: string | ClientData | null) => string | null;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { AvatarConfig } from '../../types';
3
+ import '../../index.less';
4
+ interface AvatarProps {
5
+ config?: AvatarConfig;
6
+ name: string;
7
+ cover?: string;
8
+ }
9
+ declare const Avatar: React.FC<AvatarProps>;
10
+ export default Avatar;
@@ -0,0 +1,46 @@
1
+ import type { ReactNode } from 'react';
2
+ import React from 'react';
3
+ declare type NativeProps<S extends string = never> = {
4
+ className?: string;
5
+ style?: React.CSSProperties & Partial<Record<S, string>>;
6
+ };
7
+ declare type PropagationEvent = 'click';
8
+ import './index.less';
9
+ declare type SideType = 'left' | 'right';
10
+ export declare type SwipeActionRef = {
11
+ close: () => void;
12
+ show: (side?: SideType) => void;
13
+ };
14
+ declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
15
+ export declare type Action = {
16
+ key: string | number;
17
+ text: ReactNode;
18
+ color?: ActionColor | string;
19
+ onClick?: (e: React.MouseEvent) => void;
20
+ style?: React.CSSProperties;
21
+ };
22
+ export declare type SwipeActionProps = {
23
+ rightActions?: Action[];
24
+ leftActions?: Action[];
25
+ onAction?: (action: Action, e: React.MouseEvent) => void;
26
+ closeOnTouchOutside?: boolean;
27
+ closeOnAction?: boolean;
28
+ children: ReactNode;
29
+ stopPropagation?: PropagationEvent[];
30
+ onActionsReveal?: (side: SideType) => void;
31
+ onClose?: () => void;
32
+ escapeDom?: string;
33
+ } & NativeProps<'--background'>;
34
+ export declare const SwipeAction: React.ForwardRefExoticComponent<{
35
+ rightActions?: Action[] | undefined;
36
+ leftActions?: Action[] | undefined;
37
+ onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
38
+ closeOnTouchOutside?: boolean | undefined;
39
+ closeOnAction?: boolean | undefined;
40
+ children: ReactNode;
41
+ stopPropagation?: "click"[] | undefined;
42
+ onActionsReveal?: ((side: SideType) => void) | undefined;
43
+ onClose?: (() => void) | undefined;
44
+ escapeDom?: string | undefined;
45
+ } & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
46
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { ContactInfoProps } from './types';
3
+ import './index.less';
4
+ export declare const PREFIX = "pisell-plus-contact-info";
5
+ declare const ContactInfo: React.FC<ContactInfoProps>;
6
+ export default ContactInfo;
@@ -0,0 +1,15 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.text.contact-info.placeholder': string;
4
+ 'pisell2.text.contact-info.actions.delete': string;
5
+ };
6
+ 'zh-CN': {
7
+ 'pisell2.text.contact-info.placeholder': string;
8
+ 'pisell2.text.contact-info.actions.delete': string;
9
+ };
10
+ 'zh-HK': {
11
+ 'pisell2.text.contact-info.placeholder': string;
12
+ 'pisell2.text.contact-info.actions.delete': string;
13
+ };
14
+ };
15
+ export default _default;
@@ -0,0 +1,91 @@
1
+ import React, { CSSProperties } from 'react';
2
+ /**
3
+ * 联系信息数据
4
+ */
5
+ export interface ContactInfoData {
6
+ first_name?: string;
7
+ last_name?: string;
8
+ phone?: {
9
+ phone: string;
10
+ country_calling_code: string;
11
+ country_code?: string;
12
+ };
13
+ email?: string;
14
+ avatar?: string;
15
+ }
16
+ /**
17
+ * 卡片布局类型
18
+ */
19
+ export declare type Direction = 'horizontal' | 'vertical';
20
+ /**
21
+ * 头像尺寸类型
22
+ */
23
+ export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
24
+ /**
25
+ * 头像形状类型
26
+ */
27
+ export declare type AvatarShape = 'circle' | 'square';
28
+ /**
29
+ * 头像配置
30
+ */
31
+ export interface AvatarConfig {
32
+ shape?: AvatarShape;
33
+ borderRadius?: number;
34
+ size?: AvatarSize;
35
+ useTextAvatar?: boolean;
36
+ children?: string;
37
+ }
38
+ /**
39
+ * 姓名样式配置
40
+ */
41
+ export interface NameStyle {
42
+ fontSize?: number | string;
43
+ fontWeight?: number | string;
44
+ color?: string;
45
+ textDecoration?: string;
46
+ }
47
+ export interface StyleConfig {
48
+ width?: number | string;
49
+ border?: 'solid' | 'unset';
50
+ borderWidth?: number | string;
51
+ borderColor?: string;
52
+ borderRadius?: number | string;
53
+ padding?: number | string;
54
+ [key: string]: any;
55
+ }
56
+ /**
57
+ * 文本样式配置
58
+ */
59
+ export interface TextStyle {
60
+ fontSize?: number | string;
61
+ fontWeight?: number | string;
62
+ color?: string;
63
+ }
64
+ /**
65
+ * ContactInfo 组件属性接口
66
+ */
67
+ export interface ContactInfoProps {
68
+ dataSource?: ContactInfoData;
69
+ defaultName?: string;
70
+ placeholder?: string | React.ReactNode;
71
+ isShowDelete?: boolean;
72
+ children?: React.ReactNode;
73
+ direction?: Direction;
74
+ horizontalGap?: number | string;
75
+ verticalGap?: number | string;
76
+ isShowAvatar?: boolean;
77
+ isShowPhone?: boolean;
78
+ isShowEmail?: boolean;
79
+ avatar?: AvatarConfig;
80
+ style?: StyleConfig;
81
+ nameStyle?: NameStyle;
82
+ textStyle?: TextStyle;
83
+ placeholderStyle?: CSSProperties;
84
+ button?: {
85
+ addButtonIcon?: string;
86
+ editButtonIcon?: string;
87
+ };
88
+ onSave?: (value: any) => void;
89
+ onDelete?: () => void;
90
+ onCancel?: () => void;
91
+ }
@@ -0,0 +1,7 @@
1
+ interface FieldMapping<T = any, R = any> {
2
+ [key: string]: string | ((data: T) => R) | undefined;
3
+ }
4
+ export declare function getFieldValue<T, R = any>(data: T, fieldKey: string): R | undefined;
5
+ export declare function getFieldValue<T, R = any>(data: T, fieldKey: string, mapping: FieldMapping<T, R>): R | undefined;
6
+ export declare const getAvatarText: (name: string) => string;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const ContactInfoContent: (props: any) => JSX.Element;
3
+ export default ContactInfoContent;
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface ContactInfoModalProps {
4
+ open: boolean;
5
+ title?: string;
6
+ onCancel: () => void;
7
+ onSave: (values: any) => void;
8
+ isShowDelete?: boolean;
9
+ onDelete: () => void;
10
+ dataSource?: {
11
+ first_name?: string;
12
+ last_name?: string;
13
+ email?: string;
14
+ phone?: {
15
+ phone: string;
16
+ country_calling_code: string;
17
+ country_code?: string;
18
+ };
19
+ };
20
+ config?: {
21
+ first_name?: {
22
+ visible?: boolean;
23
+ required?: boolean;
24
+ };
25
+ last_name?: {
26
+ visible?: boolean;
27
+ required?: boolean;
28
+ };
29
+ phone?: {
30
+ visible?: boolean;
31
+ required?: boolean;
32
+ };
33
+ email?: {
34
+ visible?: boolean;
35
+ required?: boolean;
36
+ };
37
+ };
38
+ }
39
+ declare const ContactInfoModal: React.FC<ContactInfoModalProps>;
40
+ export default ContactInfoModal;
@@ -0,0 +1,66 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.text.button.save': string;
4
+ 'pisell2.text.button.delete': string;
5
+ 'pisell2.text.button.cancel': string;
6
+ 'pisell2.text.contact-info.actions.delete': string;
7
+ 'pisell2.text.contact-info.modal.title': string;
8
+ 'pisell2.text.contact-info.modal.first-name': string;
9
+ 'pisell2.text.contact-info.modal.first-name-placeholder': string;
10
+ 'pisell2.text.contact-info.modal.first-name-required': string;
11
+ 'pisell2.text.contact-info.modal.last-name': string;
12
+ 'pisell2.text.contact-info.modal.last-name-placeholder': string;
13
+ 'pisell2.text.contact-info.modal.last-name-required': string;
14
+ 'pisell2.text.contact-info.modal.mobile': string;
15
+ 'pisell2.text.contact-info.modal.mobile-placeholder': string;
16
+ 'pisell2.text.contact-info.modal.mobile-required': string;
17
+ 'pisell2.text.contact-info.modal.mobile-error': string;
18
+ 'pisell2.text.contact-info.modal.email': string;
19
+ 'pisell2.text.contact-info.modal.email-placeholder': string;
20
+ 'pisell2.text.contact-info.modal.email-required': string;
21
+ 'pisell2.text.contact-info.modal.email-error': string;
22
+ };
23
+ 'zh-CN': {
24
+ 'pisell2.text.button.save': string;
25
+ 'pisell2.text.button.delete': string;
26
+ 'pisell2.text.button.cancel': string;
27
+ 'pisell2.text.contact-info.actions.delete': string;
28
+ 'pisell2.text.contact-info.modal.title': string;
29
+ 'pisell2.text.contact-info.modal.first-name': string;
30
+ 'pisell2.text.contact-info.modal.first-name-placeholder': string;
31
+ 'pisell2.text.contact-info.modal.first-name-required': string;
32
+ 'pisell2.text.contact-info.modal.last-name': string;
33
+ 'pisell2.text.contact-info.modal.last-name-placeholder': string;
34
+ 'pisell2.text.contact-info.modal.last-name-required': string;
35
+ 'pisell2.text.contact-info.modal.mobile': string;
36
+ 'pisell2.text.contact-info.modal.mobile-placeholder': string;
37
+ 'pisell2.text.contact-info.modal.mobile-required': string;
38
+ 'pisell2.text.contact-info.modal.mobile-error': string;
39
+ 'pisell2.text.contact-info.modal.email': string;
40
+ 'pisell2.text.contact-info.modal.email-placeholder': string;
41
+ 'pisell2.text.contact-info.modal.email-required': string;
42
+ 'pisell2.text.contact-info.modal.email-error': string;
43
+ };
44
+ 'zh-HK': {
45
+ 'pisell2.text.button.save': string;
46
+ 'pisell2.text.button.delete': string;
47
+ 'pisell2.text.button.cancel': string;
48
+ 'pisell2.text.contact-info.actions.delete': string;
49
+ 'pisell2.text.contact-info.modal.title': string;
50
+ 'pisell2.text.contact-info.modal.first-name': string;
51
+ 'pisell2.text.contact-info.modal.first-name-placeholder': string;
52
+ 'pisell2.text.contact-info.modal.first-name-required': string;
53
+ 'pisell2.text.contact-info.modal.last-name': string;
54
+ 'pisell2.text.contact-info.modal.last-name-placeholder': string;
55
+ 'pisell2.text.contact-info.modal.last-name-required': string;
56
+ 'pisell2.text.contact-info.modal.mobile': string;
57
+ 'pisell2.text.contact-info.modal.mobile-placeholder': string;
58
+ 'pisell2.text.contact-info.modal.mobile-required': string;
59
+ 'pisell2.text.contact-info.modal.mobile-error': string;
60
+ 'pisell2.text.contact-info.modal.email': string;
61
+ 'pisell2.text.contact-info.modal.email-placeholder': string;
62
+ 'pisell2.text.contact-info.modal.email-required': string;
63
+ 'pisell2.text.contact-info.modal.email-error': string;
64
+ };
65
+ };
66
+ export default _default;
@@ -0,0 +1,47 @@
1
+ import React from 'react';
2
+ import ProductCardSkeleton from './ProductCardSkeleton';
3
+ import './index.less';
4
+ declare type BoolConfigVal = 0 | 1;
5
+ export interface ProductCardConfig {
6
+ isProductCover?: BoolConfigVal;
7
+ imgWidth?: string;
8
+ imgHeight?: string;
9
+ radius?: number;
10
+ isTitle?: BoolConfigVal;
11
+ isSubtitle?: BoolConfigVal;
12
+ showSpec?: boolean;
13
+ isTag?: BoolConfigVal;
14
+ isPrice?: BoolConfigVal;
15
+ isOriginPrice?: BoolConfigVal;
16
+ showZeroPrice?: boolean;
17
+ showMarketingTag?: boolean;
18
+ showRemark?: boolean;
19
+ isStock?: BoolConfigVal;
20
+ }
21
+ export interface ProductCardProps {
22
+ item: any;
23
+ index: number;
24
+ context?: {
25
+ onItemIntersectionIn: (item: any) => void;
26
+ onItemIntersectionOut: (item: any) => void;
27
+ };
28
+ className?: string;
29
+ onSelectProduct?: (item: any) => void;
30
+ currentProductId?: number;
31
+ onSelect?: (item: any) => void;
32
+ onSelectCover?: (item: any) => void;
33
+ onSelectInfo?: (item: any) => void;
34
+ isSelected?: boolean;
35
+ decorateConfig?: ProductCardConfig;
36
+ }
37
+ export declare const ProductCard: React.MemoExoticComponent<({ item, index, context, onSelect, onSelectCover, onSelectInfo, isSelected, className, decorateConfig, }: ProductCardProps) => JSX.Element>;
38
+ export declare const DefaultItemContent: React.MemoExoticComponent<(props: {
39
+ item: any;
40
+ index: number;
41
+ context?: {
42
+ onItemIntersectionIn: (item: any) => void;
43
+ onItemIntersectionOut: (item: any) => void;
44
+ } | undefined;
45
+ }) => JSX.Element>;
46
+ export default ProductCard;
47
+ export { ProductCardSkeleton };
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface ProductSelectProps {
4
+ dataSource: any[];
5
+ showSearch?: boolean;
6
+ showTab?: boolean;
7
+ layout?: {
8
+ grid: boolean;
9
+ config: string;
10
+ };
11
+ onChange: (value: any, type?: string) => void;
12
+ value?: number;
13
+ loading?: boolean;
14
+ style?: React.CSSProperties;
15
+ emptyDescription?: string;
16
+ /** 当前滚动元素 */
17
+ scrollDom?: string;
18
+ /** 商品列表上方的其它组件 */
19
+ offsetDom?: any;
20
+ /** 样式变量 */
21
+ token?: Partial<any>;
22
+ /** 后台装修单选模式下的已选中项 */
23
+ selectedItems?: Array<any>;
24
+ /** 后台装修配置 */
25
+ productListSetting?: Partial<any>;
26
+ /** 兼容scrollDom */
27
+ customScrollParent?: HTMLElement | string;
28
+ hideCategoryWhenOne?: boolean;
29
+ }
30
+ export declare const PREFIX = "pisell-product-select";
31
+ declare const index: ({ dataSource, emptyDescription, showSearch, scrollDom, offsetDom, style, token: customToken, onChange, value, selectedItems, productListSetting, customScrollParent, loading, layout, hideCategoryWhenOne, ...rest }: ProductSelectProps) => JSX.Element;
32
+ export default index;
@@ -186,23 +186,29 @@ var AuthModal = function AuthModal() {
186
186
  if (type === 'email') {
187
187
  var _methodConfig$setting, _loginMethod$password, _loginMethod$code, _loginMethod$link;
188
188
  var verificationMethods = [];
189
- var loginMethod = (methodConfig === null || methodConfig === void 0 || (_methodConfig$setting = methodConfig.setting) === null || _methodConfig$setting === void 0 ? void 0 : _methodConfig$setting.login_method) || {}; // 添加安全访问保护
189
+ var loginMethod = (methodConfig === null || methodConfig === void 0 || (_methodConfig$setting = methodConfig.setting) === null || _methodConfig$setting === void 0 ? void 0 : _methodConfig$setting.login_method) || {
190
+ "password": {
191
+ enabled: true,
192
+ sort: 1
193
+ }
194
+ }; // 添加安全访问保护
190
195
 
191
196
  // 收集启用的验证方式并按 sort 排序
192
197
  var enabledVerificationMethods = [];
193
- if ((_loginMethod$password = loginMethod.password) !== null && _loginMethod$password !== void 0 && _loginMethod$password.enabled) {
198
+ if (loginMethod !== null && loginMethod !== void 0 && (_loginMethod$password = loginMethod.password) !== null && _loginMethod$password !== void 0 && _loginMethod$password.enabled) {
199
+ var _loginMethod$password2;
194
200
  enabledVerificationMethods.push({
195
201
  type: 'password',
196
- sort: loginMethod.password.sort || 0 // 添加默认值保护
202
+ sort: ((_loginMethod$password2 = loginMethod.password) === null || _loginMethod$password2 === void 0 ? void 0 : _loginMethod$password2.sort) || 0 // 添加默认值保护
197
203
  });
198
204
  }
199
- if ((_loginMethod$code = loginMethod.code) !== null && _loginMethod$code !== void 0 && _loginMethod$code.enabled) {
205
+ if (loginMethod !== null && loginMethod !== void 0 && (_loginMethod$code = loginMethod.code) !== null && _loginMethod$code !== void 0 && _loginMethod$code.enabled) {
200
206
  enabledVerificationMethods.push({
201
207
  type: 'verification_code',
202
208
  sort: loginMethod.code.sort || 0 // 添加默认值保护
203
209
  });
204
210
  }
205
- if ((_loginMethod$link = loginMethod.link) !== null && _loginMethod$link !== void 0 && _loginMethod$link.enabled) {
211
+ if (loginMethod !== null && loginMethod !== void 0 && (_loginMethod$link = loginMethod.link) !== null && _loginMethod$link !== void 0 && _loginMethod$link.enabled) {
206
212
  enabledVerificationMethods.push({
207
213
  type: 'verification_code',
208
214
  // link 映射为 verification_code
@@ -223,18 +229,18 @@ var AuthModal = function AuthModal() {
223
229
  });
224
230
  }
225
231
  } else if (type === 'phone') {
226
- var _methodConfig$setting2, _loginMethod$password2, _loginMethod$code2;
232
+ var _methodConfig$setting2, _loginMethod$password3, _loginMethod$code2;
227
233
  var _verificationMethods = [];
228
234
  var _loginMethod = (methodConfig === null || methodConfig === void 0 || (_methodConfig$setting2 = methodConfig.setting) === null || _methodConfig$setting2 === void 0 ? void 0 : _methodConfig$setting2.login_method) || {}; // 添加安全访问保护
229
235
 
230
236
  var _enabledVerificationMethods = [];
231
- if ((_loginMethod$password2 = _loginMethod.password) !== null && _loginMethod$password2 !== void 0 && _loginMethod$password2.enabled) {
237
+ if (_loginMethod !== null && _loginMethod !== void 0 && (_loginMethod$password3 = _loginMethod.password) !== null && _loginMethod$password3 !== void 0 && _loginMethod$password3.enabled) {
232
238
  _enabledVerificationMethods.push({
233
239
  type: 'password',
234
240
  sort: _loginMethod.password.sort || 0 // 添加默认值保护
235
241
  });
236
242
  }
237
- if ((_loginMethod$code2 = _loginMethod.code) !== null && _loginMethod$code2 !== void 0 && _loginMethod$code2.enabled) {
243
+ if (_loginMethod !== null && _loginMethod !== void 0 && (_loginMethod$code2 = _loginMethod.code) !== null && _loginMethod$code2 !== void 0 && _loginMethod$code2.enabled) {
238
244
  _enabledVerificationMethods.push({
239
245
  type: 'verification_code',
240
246
  sort: _loginMethod.code.sort || 0 // 添加默认值保护