@pisell/private-materials 6.3.66 → 6.3.67

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 (393) 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 +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/businessModel/SalesModel/index.d.ts +0 -1
  12. package/es/components/Sales/Summary/utils.d.ts +51 -0
  13. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/locales.d.ts +363 -0
  16. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  17. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  18. package/es/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  19. package/es/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  20. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  21. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  22. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  23. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  24. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  25. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  26. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  27. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  28. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  29. package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  30. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  31. package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  32. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  33. package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  34. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  35. package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  36. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  37. package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  38. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  39. package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  40. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  41. package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  42. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  43. package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  44. package/es/components/authentication/index.d.ts +0 -0
  45. package/es/components/booking/addons/model.d.ts +10 -1
  46. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  47. package/es/components/booking/components/tabPane/index.d.ts +4 -0
  48. package/es/components/booking/dashboard/serve.d.ts +1 -0
  49. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  50. package/es/components/booking/forms/model.d.ts +10 -1
  51. package/es/components/booking/forms/serve.d.ts +18 -0
  52. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  53. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  54. package/es/components/booking/info/client/serve.d.ts +2 -0
  55. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  56. package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  57. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  58. package/es/components/booking/info/index.d.ts +0 -1
  59. package/es/components/booking/info/model.d.ts +10 -1
  60. package/es/components/booking/info/pet/serve.d.ts +1 -0
  61. package/es/components/booking/info/service/Lists.d.ts +0 -1
  62. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  63. package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  64. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  65. package/es/components/booking/info/service/editService/constants.d.ts +1 -0
  66. package/es/components/booking/info/service/serve.d.ts +20 -0
  67. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  68. package/es/components/booking/info/service2/utils.d.ts +1 -1
  69. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  70. package/es/components/booking/locales.d.ts +843 -0
  71. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  72. package/es/components/booking/model.d.ts +9 -1
  73. package/es/components/booking/notes/model.d.ts +10 -1
  74. package/es/components/booking/payments/model.d.ts +10 -1
  75. package/es/components/eftposPay/amount.d.ts +1 -1
  76. package/es/components/eftposPay/const.d.ts +184 -0
  77. package/es/components/eftposPay/device.d.ts +1 -1
  78. package/es/components/eftposPay/hooks.d.ts +1 -1
  79. package/es/components/eftposPay/locales.d.ts +330 -0
  80. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  81. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  82. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  83. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  84. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  85. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  86. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  87. package/es/components/pay/toC/PaymentList/index.d.ts +1 -1
  88. package/es/components/pay/toC/PaymentList/index.js +54 -5
  89. package/es/components/pay/toC/PaymentList/index.less +58 -1
  90. package/es/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
  91. package/es/components/pay/toC/PaymentList/payment/visa.png +0 -0
  92. package/es/components/pay/toC/PaymentList/serve.d.ts +1 -1
  93. package/es/components/pay/toC/PaymentList/serve.js +7 -0
  94. package/es/components/pay/toC/PaymentList/utils.d.ts +31 -0
  95. package/es/components/pay/toC/PaymentList/utils.js +165 -5
  96. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
  97. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
  98. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
  99. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +2 -0
  100. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  101. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  102. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  103. package/es/components/pay/toC/index.js +2 -1
  104. package/es/components/pay/toC/locales.d.ts +307 -0
  105. package/es/components/pay/toC/locales.js +9 -3
  106. package/es/components/pay/toC/model.d.ts +9 -1
  107. package/es/components/pay/toC/status.d.ts +13 -0
  108. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  109. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  110. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  111. package/es/components/ruleSetting/locales.d.ts +48 -0
  112. package/es/components/schedules/model.d.ts +9 -1
  113. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  114. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  115. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  116. package/es/components/shoppingCart/locales.d.ts +33 -0
  117. package/es/components/shoppingCart/type.d.ts +48 -0
  118. package/es/components/subTotal/locales.d.ts +42 -0
  119. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  120. package/es/components/systemSettings/registry/services.d.ts +77 -0
  121. package/es/components/systemSettings/registry/types.d.ts +126 -0
  122. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  123. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  124. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  125. package/es/components/ticketBooking/locales.d.ts +174 -0
  126. package/es/components/wallet/utils.d.ts +48 -0
  127. package/es/components/walletList/locales.d.ts +27 -0
  128. package/es/components/walletList/types/index.d.ts +194 -0
  129. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  130. package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
  131. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  132. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  133. package/es/hooks/useEngineContext.d.ts +10 -0
  134. package/es/hooks/useWindowSize.d.ts +5 -0
  135. package/es/plus/clientName/index.d.ts +4 -0
  136. package/es/plus/clientName/type.d.ts +13 -0
  137. package/es/plus/clientName/utils.d.ts +2 -0
  138. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  139. package/es/plus/contactInfo/locales.d.ts +15 -0
  140. package/es/plus/contactInfo/types.d.ts +91 -0
  141. package/es/plus/contactInfo/utils.d.ts +7 -0
  142. package/es/plus/contactInfoModal/locales.d.ts +66 -0
  143. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  144. package/es/plus/productSelect/index.js +5 -1
  145. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  146. package/es/plus/selectHolder/locales.d.ts +21 -0
  147. package/es/plus/selectHolder/types.d.ts +104 -0
  148. package/es/plus/selectHolder/utils.d.ts +9 -0
  149. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
  150. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
  151. package/es/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
  152. package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
  153. package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
  154. package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
  155. package/es/plus/skuOptionsSelection/locales.d.ts +30 -0
  156. package/es/plus/skuOptionsSelection/store/actions.d.ts +22 -0
  157. package/es/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
  158. package/es/plus/skuOptionsSelection/store/index.d.ts +2 -0
  159. package/es/plus/skuOptionsSelection/store/store.d.ts +4 -0
  160. package/es/plus/skuOptionsSelection/types.d.ts +424 -0
  161. package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
  162. package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
  163. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  164. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  165. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  166. package/es/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
  167. package/es/plus/walletEditor/locales.d.ts +135 -0
  168. package/es/plus/walletEditor/types.d.ts +52 -0
  169. package/es/plus/walletPassGallery/locales.d.ts +285 -0
  170. package/es/plus/walletPassGallery/utils.d.ts +48 -0
  171. package/es/pro/Login2.0/hooks/index.d.ts +2 -0
  172. package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  173. package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  174. package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  175. package/es/pro/Login2.0/locales.d.ts +543 -0
  176. package/es/pro/Login2.0/shared/Header.d.ts +11 -0
  177. package/es/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  178. package/es/pro/Login2.0/shared/types.d.ts +232 -0
  179. package/es/pro/Login2.0/steps/CodeInput.js +37 -7
  180. package/es/pro/Login2.0/types.d.ts +167 -0
  181. package/es/pro/NumericStepper/index.d.ts +43 -0
  182. package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  183. package/es/pro/Selector/Item.d.ts +14 -0
  184. package/es/pro/Selector/Selector.stories.d.ts +78 -0
  185. package/es/pro/Selector/components/Card/index.d.ts +57 -0
  186. package/es/pro/Selector/components/Card/types.d.ts +1 -0
  187. package/es/pro/Selector/components/Indicator/index.d.ts +19 -0
  188. package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  189. package/es/pro/Selector/components/LayoutContainer/index.d.ts +16 -0
  190. package/es/pro/Selector/components/Media/index.d.ts +6 -0
  191. package/es/pro/Selector/components/Media/types.d.ts +47 -0
  192. package/es/pro/Selector/components/index.d.ts +4 -0
  193. package/es/pro/Selector/demo.d.ts +2 -0
  194. package/es/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
  195. package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
  196. package/es/pro/Selector/index.d.ts +11 -0
  197. package/es/pro/Selector/locales.d.ts +36 -0
  198. package/es/pro/Selector/types.d.ts +173 -0
  199. package/es/pro/Selector/utils/index.d.ts +49 -0
  200. package/es/pro/pisellPaymentList/example.d.ts +19 -0
  201. package/es/test/setup.d.ts +1 -0
  202. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  203. package/lib/components/Sales/Summary/utils.d.ts +51 -0
  204. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  205. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  206. package/lib/components/appointmentBooking/locales.d.ts +363 -0
  207. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  208. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  209. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  210. package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  211. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  212. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  213. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  214. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  215. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  216. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  217. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  218. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  219. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  220. package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  221. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  222. package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  223. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  224. package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  225. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  226. package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  227. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  228. package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  229. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  230. package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  231. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  232. package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  233. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  234. package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  235. package/lib/components/authentication/index.d.ts +0 -0
  236. package/lib/components/booking/addons/model.d.ts +10 -1
  237. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  238. package/lib/components/booking/components/tabPane/index.d.ts +4 -0
  239. package/lib/components/booking/dashboard/serve.d.ts +1 -0
  240. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  241. package/lib/components/booking/forms/model.d.ts +10 -1
  242. package/lib/components/booking/forms/serve.d.ts +18 -0
  243. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  244. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  245. package/lib/components/booking/info/client/serve.d.ts +2 -0
  246. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  247. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  248. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  249. package/lib/components/booking/info/index.d.ts +0 -1
  250. package/lib/components/booking/info/model.d.ts +10 -1
  251. package/lib/components/booking/info/pet/serve.d.ts +1 -0
  252. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  253. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  254. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  255. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  256. package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
  257. package/lib/components/booking/info/service/serve.d.ts +20 -0
  258. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  259. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  260. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  261. package/lib/components/booking/locales.d.ts +843 -0
  262. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  263. package/lib/components/booking/model.d.ts +9 -1
  264. package/lib/components/booking/notes/model.d.ts +10 -1
  265. package/lib/components/booking/payments/model.d.ts +10 -1
  266. package/lib/components/eftposPay/amount.d.ts +1 -1
  267. package/lib/components/eftposPay/const.d.ts +184 -0
  268. package/lib/components/eftposPay/device.d.ts +1 -1
  269. package/lib/components/eftposPay/hooks.d.ts +1 -1
  270. package/lib/components/eftposPay/locales.d.ts +330 -0
  271. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  272. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  273. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  274. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  275. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  276. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  277. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  278. package/lib/components/pay/toC/PaymentList/index.d.ts +1 -1
  279. package/lib/components/pay/toC/PaymentList/index.js +36 -5
  280. package/lib/components/pay/toC/PaymentList/index.less +58 -1
  281. package/lib/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
  282. package/lib/components/pay/toC/PaymentList/payment/visa.png +0 -0
  283. package/lib/components/pay/toC/PaymentList/serve.d.ts +1 -1
  284. package/lib/components/pay/toC/PaymentList/serve.js +5 -1
  285. package/lib/components/pay/toC/PaymentList/utils.d.ts +31 -0
  286. package/lib/components/pay/toC/PaymentList/utils.js +134 -6
  287. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
  288. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
  289. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
  290. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +2 -0
  291. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  292. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  293. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  294. package/lib/components/pay/toC/index.js +2 -1
  295. package/lib/components/pay/toC/locales.d.ts +307 -0
  296. package/lib/components/pay/toC/locales.js +9 -3
  297. package/lib/components/pay/toC/model.d.ts +9 -1
  298. package/lib/components/pay/toC/status.d.ts +13 -0
  299. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  300. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  301. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  302. package/lib/components/ruleSetting/locales.d.ts +48 -0
  303. package/lib/components/schedules/model.d.ts +9 -1
  304. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  305. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  306. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  307. package/lib/components/shoppingCart/locales.d.ts +33 -0
  308. package/lib/components/shoppingCart/type.d.ts +48 -0
  309. package/lib/components/subTotal/locales.d.ts +42 -0
  310. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  311. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  312. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  313. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  314. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  315. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  316. package/lib/components/ticketBooking/locales.d.ts +174 -0
  317. package/lib/components/wallet/utils.d.ts +48 -0
  318. package/lib/components/walletList/locales.d.ts +27 -0
  319. package/lib/components/walletList/types/index.d.ts +194 -0
  320. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  321. package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
  322. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  323. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  324. package/lib/hooks/useEngineContext.d.ts +10 -0
  325. package/lib/hooks/useWindowSize.d.ts +5 -0
  326. package/lib/plus/clientName/index.d.ts +4 -0
  327. package/lib/plus/clientName/type.d.ts +13 -0
  328. package/lib/plus/clientName/utils.d.ts +2 -0
  329. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  330. package/lib/plus/contactInfo/locales.d.ts +15 -0
  331. package/lib/plus/contactInfo/types.d.ts +91 -0
  332. package/lib/plus/contactInfo/utils.d.ts +7 -0
  333. package/lib/plus/contactInfoModal/locales.d.ts +66 -0
  334. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  335. package/lib/plus/productSelect/index.js +4 -1
  336. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  337. package/lib/plus/selectHolder/locales.d.ts +21 -0
  338. package/lib/plus/selectHolder/types.d.ts +104 -0
  339. package/lib/plus/selectHolder/utils.d.ts +9 -0
  340. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
  341. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
  342. package/lib/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
  343. package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
  344. package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
  345. package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
  346. package/lib/plus/skuOptionsSelection/locales.d.ts +30 -0
  347. package/lib/plus/skuOptionsSelection/store/actions.d.ts +22 -0
  348. package/lib/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
  349. package/lib/plus/skuOptionsSelection/store/index.d.ts +2 -0
  350. package/lib/plus/skuOptionsSelection/store/store.d.ts +4 -0
  351. package/lib/plus/skuOptionsSelection/types.d.ts +424 -0
  352. package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
  353. package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
  354. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  355. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  356. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  357. package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
  358. package/lib/plus/walletEditor/locales.d.ts +135 -0
  359. package/lib/plus/walletEditor/types.d.ts +52 -0
  360. package/lib/plus/walletPassGallery/locales.d.ts +285 -0
  361. package/lib/plus/walletPassGallery/utils.d.ts +48 -0
  362. package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
  363. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  364. package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  365. package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  366. package/lib/pro/Login2.0/locales.d.ts +543 -0
  367. package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
  368. package/lib/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  369. package/lib/pro/Login2.0/shared/types.d.ts +232 -0
  370. package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
  371. package/lib/pro/Login2.0/types.d.ts +167 -0
  372. package/lib/pro/NumericStepper/index.d.ts +43 -0
  373. package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  374. package/lib/pro/Selector/Item.d.ts +14 -0
  375. package/lib/pro/Selector/Selector.stories.d.ts +78 -0
  376. package/lib/pro/Selector/components/Card/index.d.ts +57 -0
  377. package/lib/pro/Selector/components/Card/types.d.ts +1 -0
  378. package/lib/pro/Selector/components/Indicator/index.d.ts +19 -0
  379. package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  380. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +16 -0
  381. package/lib/pro/Selector/components/Media/index.d.ts +6 -0
  382. package/lib/pro/Selector/components/Media/types.d.ts +47 -0
  383. package/lib/pro/Selector/components/index.d.ts +4 -0
  384. package/lib/pro/Selector/demo.d.ts +2 -0
  385. package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
  386. package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
  387. package/lib/pro/Selector/index.d.ts +11 -0
  388. package/lib/pro/Selector/locales.d.ts +36 -0
  389. package/lib/pro/Selector/types.d.ts +173 -0
  390. package/lib/pro/Selector/utils/index.d.ts +49 -0
  391. package/lib/pro/pisellPaymentList/example.d.ts +19 -0
  392. package/lib/test/setup.d.ts +1 -0
  393. package/package.json +4 -4
@@ -0,0 +1,174 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.ticket-booking.info': string;
4
+ 'pisell2.ticket-booking.notes': string;
5
+ 'pisell2.ticket-booking.forms': string;
6
+ 'pisell2.ticket-booking.sales': string;
7
+ 'pisell2.ticket-booking.payment': string;
8
+ 'pisell2.ticket-booking.unsaved-changes': string;
9
+ 'pisell2.ticket-booking.exit-confirm': string;
10
+ 'pisell2.ticket-booking.go-back': string;
11
+ 'pisell2.ticket-booking.exit': string;
12
+ 'pisell2.ticket-booking.deposit': string;
13
+ 'pisell2.ticket-booking.copy-success': string;
14
+ 'pisell2.ticket-booking.no-data': string;
15
+ 'pisell2.ticket-booking.authorized': string;
16
+ 'pisell2.ticket-booking.paid': string;
17
+ 'pisell2.ticket-booking.partially-paid': string;
18
+ 'pisell2.ticket-booking.partially-refunded': string;
19
+ 'pisell2.ticket-booking.payment-pending': string;
20
+ 'pisell2.ticket-booking.refunded': string;
21
+ 'pisell2.ticket-booking.unpaid': string;
22
+ 'pisell2.ticket-booking.voided': string;
23
+ 'pisell2.ticket-booking.pending': string;
24
+ 'pisell2.ticket-booking.all': string;
25
+ 'pisell2.ticket-booking.not-started': string;
26
+ 'pisell2.ticket-booking.started': string;
27
+ 'pisell2.ticket-booking.finished': string;
28
+ 'pisell2.ticket-booking.canceled': string;
29
+ 'pisell2.ticket-booking.inform': string;
30
+ 'pisell2.ticket-booking.check-management': string;
31
+ 'pisell2.ticket-booking.confirm': string;
32
+ 'pisell2.ticket-booking.dashboard': string;
33
+ 'pisell2.ticket-booking.booking-list': string;
34
+ 'pisell2.ticket-booking.full-data': string;
35
+ 'pisell2.ticket-booking.today': string;
36
+ 'pisell2.ticket-booking.now': string;
37
+ 'pisell2.ticket-booking.start-time': string;
38
+ 'pisell2.ticket-booking.create-time': string;
39
+ 'pisell2.ticket-booking.customer': string;
40
+ 'pisell2.ticket-booking.total': string;
41
+ 'pisell2.ticket-booking.search': string;
42
+ 'pisell2.ticket-booking.refresh-success': string;
43
+ 'pisell2.ticket-booking.loading': string;
44
+ 'pisell2.ticket-booking.appointment-not-found': string;
45
+ 'pisell2.ticket-booking.scan': string;
46
+ 'pisell2.ticket-booking.create-new': string;
47
+ 'pisell2.ticket-booking.add-to-cart': string;
48
+ 'pisell2.ticket-booking.not-available-title': string;
49
+ 'pisell2.ticket-booking.not-available-ok': string;
50
+ 'pisell2.ticket-booking.in-cart': (number: number) => string;
51
+ 'pisell2.product.card.cart-items': (number: number) => string;
52
+ 'pisell2.product.card.subtotal': string;
53
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
54
+ 'pisell2.product.card.day': (val: number) => string;
55
+ 'pisell2.product.card.day.event': (val: number) => string;
56
+ 'pisell2.product.card.minute': (val: number) => string;
57
+ "pisell2.ticket-booking.reload": string;
58
+ };
59
+ 'zh-CN': {
60
+ 'pisell2.ticket-booking.info': string;
61
+ 'pisell2.ticket-booking.notes': string;
62
+ 'pisell2.ticket-booking.forms': string;
63
+ 'pisell2.ticket-booking.sales': string;
64
+ 'pisell2.ticket-booking.payment': string;
65
+ 'pisell2.ticket-booking.unsaved-changes': string;
66
+ 'pisell2.ticket-booking.exit-confirm': string;
67
+ 'pisell2.ticket-booking.go-back': string;
68
+ 'pisell2.ticket-booking.exit': string;
69
+ 'pisell2.ticket-booking.deposit': string;
70
+ 'pisell2.ticket-booking.copy-success': string;
71
+ 'pisell2.ticket-booking.no-data': string;
72
+ 'pisell2.ticket-booking.authorized': string;
73
+ 'pisell2.ticket-booking.paid': string;
74
+ 'pisell2.ticket-booking.partially-paid': string;
75
+ 'pisell2.ticket-booking.partially-refunded': string;
76
+ 'pisell2.ticket-booking.payment-pending': string;
77
+ 'pisell2.ticket-booking.refunded': string;
78
+ 'pisell2.ticket-booking.unpaid': string;
79
+ 'pisell2.ticket-booking.voided': string;
80
+ 'pisell2.ticket-booking.pending': string;
81
+ 'pisell2.ticket-booking.all': string;
82
+ 'pisell2.ticket-booking.not-started': string;
83
+ 'pisell2.ticket-booking.started': string;
84
+ 'pisell2.ticket-booking.finished': string;
85
+ 'pisell2.ticket-booking.canceled': string;
86
+ 'pisell2.ticket-booking.inform': string;
87
+ 'pisell2.ticket-booking.check-management': string;
88
+ 'pisell2.ticket-booking.confirm': string;
89
+ 'pisell2.ticket-booking.dashboard': string;
90
+ 'pisell2.ticket-booking.booking-list': string;
91
+ 'pisell2.ticket-booking.full-data': string;
92
+ 'pisell2.ticket-booking.today': string;
93
+ 'pisell2.ticket-booking.now': string;
94
+ 'pisell2.ticket-booking.start-time': string;
95
+ 'pisell2.ticket-booking.create-time': string;
96
+ 'pisell2.ticket-booking.customer': string;
97
+ 'pisell2.ticket-booking.total': string;
98
+ 'pisell2.ticket-booking.search': string;
99
+ 'pisell2.ticket-booking.refresh-success': string;
100
+ 'pisell2.ticket-booking.loading': string;
101
+ 'pisell2.ticket-booking.appointment-not-found': string;
102
+ 'pisell2.ticket-booking.scan': string;
103
+ 'pisell2.ticket-booking.create-new': string;
104
+ 'pisell2.ticket-booking.add-to-cart': string;
105
+ 'pisell2.ticket-booking.not-available-title': string;
106
+ 'pisell2.ticket-booking.not-available-ok': string;
107
+ 'pisell2.product.card.cart-items': (number: number) => string;
108
+ 'pisell2.product.card.subtotal': string;
109
+ 'pisell2.ticket-booking.in-cart': (number: number) => string;
110
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
111
+ 'pisell2.product.card.day': (val: number) => string;
112
+ 'pisell2.product.card.day.event': (val: number) => string;
113
+ 'pisell2.product.card.minute': (val: number) => string;
114
+ "pisell2.ticket-booking.reload": string;
115
+ };
116
+ 'zh-HK': {
117
+ 'pisell2.ticket-booking.info': string;
118
+ 'pisell2.ticket-booking.notes': string;
119
+ 'pisell2.ticket-booking.forms': string;
120
+ 'pisell2.ticket-booking.sales': string;
121
+ 'pisell2.ticket-booking.payment': string;
122
+ 'pisell2.ticket-booking.unsaved-changes': string;
123
+ 'pisell2.ticket-booking.exit-confirm': string;
124
+ 'pisell2.ticket-booking.go-back': string;
125
+ 'pisell2.ticket-booking.exit': string;
126
+ 'pisell2.ticket-booking.deposit': string;
127
+ 'pisell2.ticket-booking.copy-success': string;
128
+ 'pisell2.ticket-booking.no-data': string;
129
+ 'pisell2.ticket-booking.authorized': string;
130
+ 'pisell2.ticket-booking.paid': string;
131
+ 'pisell2.ticket-booking.partially-paid': string;
132
+ 'pisell2.ticket-booking.partially-refunded': string;
133
+ 'pisell2.ticket-booking.payment-pending': string;
134
+ 'pisell2.ticket-booking.refunded': string;
135
+ 'pisell2.ticket-booking.unpaid': string;
136
+ 'pisell2.ticket-booking.voided': string;
137
+ 'pisell2.ticket-booking.pending': string;
138
+ 'pisell2.ticket-booking.all': string;
139
+ 'pisell2.ticket-booking.not-started': string;
140
+ 'pisell2.ticket-booking.started': string;
141
+ 'pisell2.ticket-booking.finished': string;
142
+ 'pisell2.ticket-booking.canceled': string;
143
+ 'pisell2.ticket-booking.inform': string;
144
+ 'pisell2.ticket-booking.check-management': string;
145
+ 'pisell2.ticket-booking.confirm': string;
146
+ 'pisell2.ticket-booking.dashboard': string;
147
+ 'pisell2.ticket-booking.booking-list': string;
148
+ 'pisell2.ticket-booking.full-data': string;
149
+ 'pisell2.ticket-booking.today': string;
150
+ 'pisell2.ticket-booking.now': string;
151
+ 'pisell2.ticket-booking.start-time': string;
152
+ 'pisell2.ticket-booking.create-time': string;
153
+ 'pisell2.ticket-booking.customer': string;
154
+ 'pisell2.ticket-booking.total': string;
155
+ 'pisell2.ticket-booking.search': string;
156
+ 'pisell2.ticket-booking.refresh-success': string;
157
+ 'pisell2.ticket-booking.loading': string;
158
+ 'pisell2.ticket-booking.appointment-not-found': string;
159
+ 'pisell2.ticket-booking.scan': string;
160
+ 'pisell2.ticket-booking.create-new': string;
161
+ 'pisell2.ticket-booking.add-to-cart': string;
162
+ 'pisell2.ticket-booking.not-available-title': string;
163
+ 'pisell2.ticket-booking.not-available-ok': string;
164
+ 'pisell2.ticket-booking.in-cart': (number: number) => string;
165
+ 'pisell2.product.card.cart-items': (number: number) => string;
166
+ 'pisell2.product.card.subtotal': string;
167
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
168
+ 'pisell2.product.card.day': (val: number) => string;
169
+ 'pisell2.product.card.day.event': (val: number) => string;
170
+ 'pisell2.product.card.minute': (val: number) => string;
171
+ "pisell2.ticket-booking.reload": string;
172
+ };
173
+ };
174
+ export default _default;
@@ -0,0 +1,48 @@
1
+ interface ScheduleTextResult {
2
+ validityTexts: string[];
3
+ excluded_date: string[];
4
+ included_date: string[];
5
+ }
6
+ declare type Locale = 'en' | 'zh-CN' | 'zh-HK';
7
+ interface ScheduleItem {
8
+ id: number;
9
+ name: string | {
10
+ [key: string]: string;
11
+ };
12
+ type: 'standard' | 'time-slots' | 'designation';
13
+ start_time: string | null;
14
+ end_time: string | null;
15
+ repeat_type: 'none' | 'daily' | 'weekly';
16
+ repeat_rule: {
17
+ end: {
18
+ type: 'never' | 'date' | 'occurrence';
19
+ end_date: string | null;
20
+ occurrence: number | null;
21
+ };
22
+ frequency: number;
23
+ excluded_date: Array<{
24
+ start: string;
25
+ end: string;
26
+ }>;
27
+ included_date: any[];
28
+ frequency_date: number[];
29
+ } | null;
30
+ designation: Array<{
31
+ start_date: string;
32
+ start_time: string;
33
+ end_date: string;
34
+ end_time: string;
35
+ }> | null;
36
+ is_all: number;
37
+ time_slot: Array<{
38
+ start_time: string;
39
+ end_time: string;
40
+ }>;
41
+ }
42
+ /**
43
+ * 根据scheduleList格式化文案展示
44
+ * @param scheduleList 日程列表
45
+ * @returns 格式化后的文案结果数组,每个日程对应一个结果
46
+ */
47
+ export declare function formatScheduleText(scheduleList: ScheduleItem[], locale?: Locale): ScheduleTextResult[];
48
+ export {};
@@ -0,0 +1,27 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'page.wallet.guide.title': string;
4
+ 'page.wallet.guide.subtitle': string;
5
+ 'page.wallet.guide.button': string;
6
+ 'page.wallet.tempHolderSelector.title': string;
7
+ 'page.wallet.tempHolderSelector.create': string;
8
+ 'page.wallet.tempHolderSelector.confirm': string;
9
+ };
10
+ 'zh-CN': {
11
+ 'page.wallet.guide.title': string;
12
+ 'page.wallet.guide.subtitle': string;
13
+ 'page.wallet.guide.button': string;
14
+ 'page.wallet.tempHolderSelector.title': string;
15
+ 'page.wallet.tempHolderSelector.create': string;
16
+ 'page.wallet.tempHolderSelector.confirm': string;
17
+ };
18
+ 'zh-HK': {
19
+ 'page.wallet.guide.title': string;
20
+ 'page.wallet.guide.subtitle': string;
21
+ 'page.wallet.guide.button': string;
22
+ 'page.wallet.tempHolderSelector.title': string;
23
+ 'page.wallet.tempHolderSelector.create': string;
24
+ 'page.wallet.tempHolderSelector.confirm': string;
25
+ };
26
+ };
27
+ export default _default;
@@ -0,0 +1,194 @@
1
+ import React from 'react';
2
+ export interface MultiLanguageName {
3
+ original: string;
4
+ 'zh-CN': string;
5
+ 'zh-HK': string;
6
+ en: string;
7
+ [key: string]: string;
8
+ }
9
+ declare type WalletPassType = 'rechargeable' | 'point' | 'voucher' | 'discount';
10
+ export interface WalletMetadata {
11
+ name: MultiLanguageName;
12
+ welcomeText?: string | MultiLanguageName;
13
+ customerName?: string;
14
+ coverImage?: string;
15
+ icon?: string;
16
+ showcaseWalletPassNew?: Array<{
17
+ type: WalletPassType;
18
+ custom_title?: string | MultiLanguageName;
19
+ display?: 0 | 1;
20
+ }>;
21
+ }
22
+ export interface Shop {
23
+ id: number;
24
+ name: string;
25
+ default_url: string;
26
+ }
27
+ export interface Wallet {
28
+ id: string | null;
29
+ shop_id: string | null;
30
+ shop?: Shop;
31
+ status: string | null;
32
+ name: MultiLanguageName;
33
+ valid_for: {
34
+ type: string;
35
+ unit?: string;
36
+ unit_type?: string;
37
+ custom_date?: string;
38
+ };
39
+ metadata: WalletMetadata;
40
+ created_at: string | null;
41
+ }
42
+ export interface WalletPass {
43
+ id: string | null;
44
+ shop_id: string | null;
45
+ code: string;
46
+ status: string | null;
47
+ wallet_id: string | null;
48
+ customer_id: string | null;
49
+ expired_at: string | null;
50
+ created_at: string;
51
+ shop: Shop;
52
+ wallet: Wallet;
53
+ icon?: string;
54
+ isLogin?: boolean;
55
+ showIcon?: boolean;
56
+ }
57
+ export interface WalletBalance {
58
+ gift_card_balance: number;
59
+ point_card_balance: number;
60
+ voucher_count: number;
61
+ discount_card_count: number;
62
+ }
63
+ export interface WalletCardItem {
64
+ type: WalletPassType;
65
+ custom_title?: string | MultiLanguageName;
66
+ display: 0 | 1;
67
+ value?: number;
68
+ }
69
+ export interface State {
70
+ list: WalletPass[];
71
+ balance: WalletBalance | null;
72
+ loading: boolean;
73
+ error: Error | null;
74
+ authError?: boolean;
75
+ hasAttempted: boolean;
76
+ isLoggedIn?: boolean;
77
+ }
78
+ export interface Action {
79
+ type: string;
80
+ payload: Partial<State>;
81
+ }
82
+ export interface Balance {
83
+ gift_card_balance: number;
84
+ point_card_balance: number;
85
+ voucher_count: number;
86
+ discount_card_count: number;
87
+ }
88
+ export interface IWallList {
89
+ tag?: string;
90
+ sales_status?: string;
91
+ machine_search?: string;
92
+ createdDate?: string;
93
+ limit_status?: string;
94
+ relation_id?: string;
95
+ relation_type?: string;
96
+ customer_id?: string;
97
+ sort?: string;
98
+ order_by?: string;
99
+ used_status?: string;
100
+ num?: number;
101
+ skip?: number;
102
+ }
103
+ export interface WalletListProps {
104
+ globalState?: {
105
+ platform?: 'pc' | 'h5' | 'ipad';
106
+ mode?: 'dark' | 'light';
107
+ cardStyle?: 'normal' | 'full';
108
+ codeType?: 'barCode' | 'qrCode';
109
+ codeDirection?: 'bottom' | 'top';
110
+ shopName?: boolean;
111
+ showWalletName?: boolean;
112
+ showShopName?: boolean;
113
+ cardNo?: string;
114
+ showCardNo?: boolean;
115
+ showCode?: boolean;
116
+ points?: boolean;
117
+ balance?: boolean;
118
+ coupon?: boolean;
119
+ pointsValue?: number;
120
+ balanceValue?: number;
121
+ couponValue?: number;
122
+ symbol?: string;
123
+ showIcon?: boolean;
124
+ iconImg?: string;
125
+ customBackgroundImage?: string;
126
+ walletName?: string;
127
+ };
128
+ }
129
+ export interface WalletCardProps {
130
+ platform?: 'pc' | 'h5' | 'ipad';
131
+ mode?: 'dark' | 'light';
132
+ cardStyle?: 'normal' | 'full';
133
+ codeType?: 'barCode' | 'qrCode';
134
+ codeDirection?: 'bottom' | 'top';
135
+ shopName?: boolean;
136
+ showIcon?: boolean;
137
+ iconImg?: string;
138
+ showWalletName?: boolean;
139
+ showShopName?: boolean;
140
+ cardNo?: string;
141
+ showCardNo?: boolean;
142
+ showCode?: boolean;
143
+ points?: boolean;
144
+ balance?: boolean;
145
+ coupon?: boolean;
146
+ pointsValue?: number;
147
+ balanceValue?: number;
148
+ couponValue?: number;
149
+ isLogin?: boolean;
150
+ items: WalletCardItem[];
151
+ }
152
+ export interface DivProps extends React.HTMLAttributes<HTMLDivElement> {
153
+ children?: React.ReactNode;
154
+ }
155
+ export interface WalletListContextType {
156
+ state: State;
157
+ dispatch: React.Dispatch<Action>;
158
+ }
159
+ export declare const DEFAULT_CARD_CONFIG: {
160
+ readonly mode: "light";
161
+ readonly cardStyle: "normal";
162
+ readonly codeDirection: "bottom";
163
+ readonly showShopName: true;
164
+ readonly showWalletName: true;
165
+ readonly showIcon: true;
166
+ readonly iconImg: "";
167
+ readonly showCardNo: true;
168
+ readonly showCode: true;
169
+ readonly points: true;
170
+ readonly balance: true;
171
+ readonly coupon: true;
172
+ };
173
+ export interface CarouselSettings {
174
+ className: string;
175
+ arrows: boolean;
176
+ infinite: boolean;
177
+ slidesToShow: number;
178
+ slidesToScroll: number;
179
+ centerMode: boolean;
180
+ centerPadding: string;
181
+ autoplay: boolean;
182
+ autoplaySpeed: number;
183
+ dots: boolean;
184
+ appendDots?: (dots: React.ReactNode) => React.ReactNode;
185
+ responsive?: Array<{
186
+ breakpoint: number;
187
+ settings: {
188
+ slidesToShow: number;
189
+ slidesToScroll: number;
190
+ centerPadding: string;
191
+ };
192
+ }>;
193
+ }
194
+ export {};
@@ -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'];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
3
2
  import './index.less';
4
3
  interface ModalProps extends AntModalProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './../../index.less';
3
2
  declare const Search: () => JSX.Element;
4
3
  export default Search;
@@ -0,0 +1,10 @@
1
+ declare type IEngineContext = {
2
+ appHelper: any;
3
+ engine: any;
4
+ blockContext: any;
5
+ components: any;
6
+ pageContext: any;
7
+ };
8
+ declare const useEngineContext: () => IEngineContext;
9
+ export declare const usePisellOS: () => any;
10
+ export default useEngineContext;
@@ -0,0 +1,5 @@
1
+ interface UseWindowSizeOptions {
2
+ debounceMs?: number;
3
+ }
4
+ export declare const useWindowSize: (options?: UseWindowSizeOptions) => void;
5
+ export {};
@@ -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,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,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 {};