@pisell/private-materials 6.3.114 → 6.3.116

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 (281) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/booking/addons/model.d.ts +1 -10
  8. package/es/components/booking/forms/model.d.ts +1 -10
  9. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  10. package/es/components/booking/info/model.d.ts +1 -10
  11. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  12. package/es/components/booking/info/service2/utils.d.ts +1 -1
  13. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  14. package/es/components/booking/model.d.ts +1 -9
  15. package/es/components/booking/notes/model.d.ts +1 -10
  16. package/es/components/booking/payments/model.d.ts +1 -10
  17. package/es/components/eftpos/index.js +3 -3
  18. package/es/components/eftposPay/aggregatePayment/utils/payment.js +7 -1
  19. package/es/components/eftposPay/device.js +7 -3
  20. package/es/components/eftposPay/hooks.d.ts +2 -2
  21. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  22. package/es/components/pay/toC/model.d.ts +1 -9
  23. package/es/components/schedules/model.d.ts +1 -9
  24. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  25. package/lib/components/booking/addons/model.d.ts +1 -10
  26. package/lib/components/booking/forms/model.d.ts +1 -10
  27. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  28. package/lib/components/booking/info/model.d.ts +1 -10
  29. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  30. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  31. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  32. package/lib/components/booking/model.d.ts +1 -9
  33. package/lib/components/booking/notes/model.d.ts +1 -10
  34. package/lib/components/booking/payments/model.d.ts +1 -10
  35. package/lib/components/eftpos/index.js +3 -3
  36. package/lib/components/eftposPay/aggregatePayment/utils/payment.js +6 -1
  37. package/lib/components/eftposPay/device.js +24 -21
  38. package/lib/components/eftposPay/hooks.d.ts +2 -2
  39. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  40. package/lib/components/pay/toC/model.d.ts +1 -9
  41. package/lib/components/schedules/model.d.ts +1 -9
  42. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  43. package/package.json +3 -3
  44. package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
  45. package/es/components/appointmentBooking/locales.d.ts +0 -366
  46. package/es/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
  47. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
  48. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
  49. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
  50. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
  51. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
  52. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
  53. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
  54. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
  55. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
  56. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
  57. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
  58. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
  59. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
  60. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
  61. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
  62. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  63. package/es/components/booking/dashboard/serve.d.ts +0 -1
  64. package/es/components/booking/editBookingModal/locales.d.ts +0 -21
  65. package/es/components/booking/editBookingModal/mock.d.ts +0 -807
  66. package/es/components/booking/forms/serve.d.ts +0 -18
  67. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  68. package/es/components/booking/info/client/serve.d.ts +0 -2
  69. package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  70. package/es/components/booking/info/pet/serve.d.ts +0 -1
  71. package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  72. package/es/components/booking/info/service/serve.d.ts +0 -20
  73. package/es/components/booking/info2/serve.d.ts +0 -6
  74. package/es/components/booking/info2/service/addService/mock.d.ts +0 -214
  75. package/es/components/booking/locales.d.ts +0 -846
  76. package/es/components/eftpos/PairModal/hooks.d.ts +0 -27
  77. package/es/components/eftpos/SettlementModal/Action.d.ts +0 -8
  78. package/es/components/eftpos/SettlementModal/types.d.ts +0 -138
  79. package/es/components/eftpos/const.d.ts +0 -66
  80. package/es/components/eftpos/hooks.d.ts +0 -46
  81. package/es/components/eftpos/locales.d.ts +0 -138
  82. package/es/components/eftposPay/aggregatePayment/index.d.ts +0 -3
  83. package/es/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
  84. package/es/components/eftposPay/aggregatePayment/types.d.ts +0 -101
  85. package/es/components/eftposPay/app.d.ts +0 -11
  86. package/es/components/eftposPay/const.d.ts +0 -191
  87. package/es/components/eftposPay/locales.d.ts +0 -333
  88. package/es/components/eftposPay/mx51/Action.d.ts +0 -7
  89. package/es/components/eftposPay/mx51/types.d.ts +0 -138
  90. package/es/components/eftposPay/mx51/utils.d.ts +0 -10
  91. package/es/components/eftposPay/store/index.d.ts +0 -355
  92. package/es/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
  93. package/es/components/eventBooking/locales.d.ts +0 -246
  94. package/es/components/kioskSkuDetail/locales.d.ts +0 -27
  95. package/es/components/login/locales.d.ts +0 -24
  96. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  97. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  98. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  99. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
  100. package/es/components/pay/toC/locales.d.ts +0 -307
  101. package/es/components/pinModal/locales.d.ts +0 -27
  102. package/es/components/pinVerifyModal/locales.d.ts +0 -24
  103. package/es/components/pisellSelectCustomerModal/locales.d.ts +0 -81
  104. package/es/components/productExtension/locales.d.ts +0 -48
  105. package/es/components/productSelect/locales.d.ts +0 -18
  106. package/es/components/ruleSetting/locales.d.ts +0 -48
  107. package/es/components/schedules/locales.d.ts +0 -87
  108. package/es/components/shoppingCart/Provider.d.ts +0 -3
  109. package/es/components/shoppingCart/locales.d.ts +0 -33
  110. package/es/components/shoppingCart/mock.d.ts +0 -40
  111. package/es/components/shoppingCart/type.d.ts +0 -48
  112. package/es/components/shoppingCart/utils.d.ts +0 -63
  113. package/es/components/stepController/locales.d.ts +0 -27
  114. package/es/components/subTotal/locales.d.ts +0 -42
  115. package/es/components/systemSettings/registry/locales.d.ts +0 -272
  116. package/es/components/systemSettings/registry/services.d.ts +0 -77
  117. package/es/components/systemSettings/registry/types.d.ts +0 -126
  118. package/es/components/taxSelect/locales.d.ts +0 -24
  119. package/es/components/ticketBooking/locales.d.ts +0 -174
  120. package/es/components/wallet/utils.d.ts +0 -48
  121. package/es/components/walletList/locales.d.ts +0 -27
  122. package/es/components/walletList/types/index.d.ts +0 -194
  123. package/es/hooks/useEngineContext.d.ts +0 -10
  124. package/es/hooks/useLocale.d.ts +0 -2
  125. package/es/hooks/useWindowSize.d.ts +0 -5
  126. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
  127. package/es/plus/contactInfo/locales.d.ts +0 -15
  128. package/es/plus/contactInfoModal/locales.d.ts +0 -66
  129. package/es/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
  130. package/es/plus/productSelect/locales.d.ts +0 -18
  131. package/es/plus/saasCreateOrganization/locales.d.ts +0 -15
  132. package/es/plus/saasLogin/locales.d.ts +0 -51
  133. package/es/plus/saasRegister/locales.d.ts +0 -117
  134. package/es/plus/selectHolder/locales.d.ts +0 -21
  135. package/es/plus/skuOptionsSelection/locales.d.ts +0 -33
  136. package/es/plus/skuOptionsSelection/store/store.d.ts +0 -4
  137. package/es/plus/skuOptionsSelection/types.d.ts +0 -429
  138. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
  139. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  140. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  141. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
  142. package/es/plus/walletEditor/locales.d.ts +0 -135
  143. package/es/plus/walletEditor/types.d.ts +0 -52
  144. package/es/plus/walletPassGallery/locales.d.ts +0 -285
  145. package/es/plus/walletPassGallery/utils.d.ts +0 -48
  146. package/es/pro/Login2.0/locales.d.ts +0 -543
  147. package/es/pro/Login2.0/shared/types.d.ts +0 -232
  148. package/es/pro/NumericStepper/index.d.ts +0 -43
  149. package/es/pro/Selector/BatchSelectorDemo.d.ts +0 -3
  150. package/es/pro/Selector/Item.d.ts +0 -14
  151. package/es/pro/Selector/components/Card/index.d.ts +0 -57
  152. package/es/pro/Selector/components/Indicator/index.d.ts +0 -19
  153. package/es/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
  154. package/es/pro/Selector/components/Media/index.d.ts +0 -6
  155. package/es/pro/Selector/demo.d.ts +0 -3
  156. package/es/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
  157. package/es/pro/Selector/hooks/usePresetProps.d.ts +0 -24
  158. package/es/pro/Selector/locales.d.ts +0 -36
  159. package/es/pro/Selector/types.d.ts +0 -173
  160. package/es/pro/Selector/utils/index.d.ts +0 -49
  161. package/es/pro/numberKeyboard/locales.d.ts +0 -12
  162. package/es/pro/pisellNumberSelector/example.d.ts +0 -3
  163. package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
  164. package/lib/components/appointmentBooking/locales.d.ts +0 -366
  165. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
  166. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
  167. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
  168. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
  169. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
  170. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
  171. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
  172. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
  173. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
  174. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
  175. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
  176. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
  177. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
  178. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
  179. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
  180. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
  181. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  182. package/lib/components/booking/dashboard/serve.d.ts +0 -1
  183. package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
  184. package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
  185. package/lib/components/booking/forms/serve.d.ts +0 -18
  186. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  187. package/lib/components/booking/info/client/serve.d.ts +0 -2
  188. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  189. package/lib/components/booking/info/pet/serve.d.ts +0 -1
  190. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  191. package/lib/components/booking/info/service/serve.d.ts +0 -20
  192. package/lib/components/booking/info2/serve.d.ts +0 -6
  193. package/lib/components/booking/info2/service/addService/mock.d.ts +0 -214
  194. package/lib/components/booking/locales.d.ts +0 -846
  195. package/lib/components/eftpos/PairModal/hooks.d.ts +0 -27
  196. package/lib/components/eftpos/SettlementModal/Action.d.ts +0 -8
  197. package/lib/components/eftpos/SettlementModal/types.d.ts +0 -138
  198. package/lib/components/eftpos/const.d.ts +0 -66
  199. package/lib/components/eftpos/hooks.d.ts +0 -46
  200. package/lib/components/eftpos/locales.d.ts +0 -138
  201. package/lib/components/eftposPay/aggregatePayment/index.d.ts +0 -3
  202. package/lib/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
  203. package/lib/components/eftposPay/aggregatePayment/types.d.ts +0 -101
  204. package/lib/components/eftposPay/app.d.ts +0 -11
  205. package/lib/components/eftposPay/const.d.ts +0 -191
  206. package/lib/components/eftposPay/locales.d.ts +0 -333
  207. package/lib/components/eftposPay/mx51/Action.d.ts +0 -7
  208. package/lib/components/eftposPay/mx51/types.d.ts +0 -138
  209. package/lib/components/eftposPay/mx51/utils.d.ts +0 -10
  210. package/lib/components/eftposPay/store/index.d.ts +0 -355
  211. package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
  212. package/lib/components/eventBooking/locales.d.ts +0 -246
  213. package/lib/components/kioskSkuDetail/locales.d.ts +0 -27
  214. package/lib/components/login/locales.d.ts +0 -24
  215. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  216. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  217. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  218. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
  219. package/lib/components/pay/toC/locales.d.ts +0 -307
  220. package/lib/components/pinModal/locales.d.ts +0 -27
  221. package/lib/components/pinVerifyModal/locales.d.ts +0 -24
  222. package/lib/components/pisellSelectCustomerModal/locales.d.ts +0 -81
  223. package/lib/components/productExtension/locales.d.ts +0 -48
  224. package/lib/components/productSelect/locales.d.ts +0 -18
  225. package/lib/components/ruleSetting/locales.d.ts +0 -48
  226. package/lib/components/schedules/locales.d.ts +0 -87
  227. package/lib/components/shoppingCart/Provider.d.ts +0 -3
  228. package/lib/components/shoppingCart/locales.d.ts +0 -33
  229. package/lib/components/shoppingCart/mock.d.ts +0 -40
  230. package/lib/components/shoppingCart/type.d.ts +0 -48
  231. package/lib/components/shoppingCart/utils.d.ts +0 -63
  232. package/lib/components/stepController/locales.d.ts +0 -27
  233. package/lib/components/subTotal/locales.d.ts +0 -42
  234. package/lib/components/systemSettings/registry/locales.d.ts +0 -272
  235. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  236. package/lib/components/systemSettings/registry/types.d.ts +0 -126
  237. package/lib/components/taxSelect/locales.d.ts +0 -24
  238. package/lib/components/ticketBooking/locales.d.ts +0 -174
  239. package/lib/components/wallet/utils.d.ts +0 -48
  240. package/lib/components/walletList/locales.d.ts +0 -27
  241. package/lib/components/walletList/types/index.d.ts +0 -194
  242. package/lib/hooks/useEngineContext.d.ts +0 -10
  243. package/lib/hooks/useLocale.d.ts +0 -2
  244. package/lib/hooks/useWindowSize.d.ts +0 -5
  245. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
  246. package/lib/plus/contactInfo/locales.d.ts +0 -15
  247. package/lib/plus/contactInfoModal/locales.d.ts +0 -66
  248. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
  249. package/lib/plus/productSelect/locales.d.ts +0 -18
  250. package/lib/plus/saasCreateOrganization/locales.d.ts +0 -15
  251. package/lib/plus/saasLogin/locales.d.ts +0 -51
  252. package/lib/plus/saasRegister/locales.d.ts +0 -117
  253. package/lib/plus/selectHolder/locales.d.ts +0 -21
  254. package/lib/plus/skuOptionsSelection/locales.d.ts +0 -33
  255. package/lib/plus/skuOptionsSelection/store/store.d.ts +0 -4
  256. package/lib/plus/skuOptionsSelection/types.d.ts +0 -429
  257. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
  258. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  259. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  260. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
  261. package/lib/plus/walletEditor/locales.d.ts +0 -135
  262. package/lib/plus/walletEditor/types.d.ts +0 -52
  263. package/lib/plus/walletPassGallery/locales.d.ts +0 -285
  264. package/lib/plus/walletPassGallery/utils.d.ts +0 -48
  265. package/lib/pro/Login2.0/locales.d.ts +0 -543
  266. package/lib/pro/Login2.0/shared/types.d.ts +0 -232
  267. package/lib/pro/NumericStepper/index.d.ts +0 -43
  268. package/lib/pro/Selector/BatchSelectorDemo.d.ts +0 -3
  269. package/lib/pro/Selector/Item.d.ts +0 -14
  270. package/lib/pro/Selector/components/Card/index.d.ts +0 -57
  271. package/lib/pro/Selector/components/Indicator/index.d.ts +0 -19
  272. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
  273. package/lib/pro/Selector/components/Media/index.d.ts +0 -6
  274. package/lib/pro/Selector/demo.d.ts +0 -3
  275. package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
  276. package/lib/pro/Selector/hooks/usePresetProps.d.ts +0 -24
  277. package/lib/pro/Selector/locales.d.ts +0 -36
  278. package/lib/pro/Selector/types.d.ts +0 -173
  279. package/lib/pro/Selector/utils/index.d.ts +0 -49
  280. package/lib/pro/numberKeyboard/locales.d.ts +0 -12
  281. package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
@@ -1,429 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * SKU Card 文本样式配置
4
- */
5
- export interface SkuCardTextConfig {
6
- /** 是否显示 */
7
- visible?: boolean;
8
- /** 字体大小 */
9
- fontSize?: number;
10
- /** 颜色 */
11
- color?: string;
12
- /** 字体粗细 */
13
- fontWeight?: 'normal' | 'bold' | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
14
- /** 展示行数 */
15
- lineClamp?: number;
16
- }
17
- /**
18
- * SKU Card 图片配置
19
- */
20
- export interface SkuCardImageConfig {
21
- /** 是否显示 */
22
- visible?: boolean;
23
- /** 宽度 */
24
- width?: number;
25
- /** 高度 */
26
- height?: number;
27
- /** 圆角 */
28
- borderRadius?: number | string;
29
- /** 边框 */
30
- border?: string;
31
- }
32
- /**
33
- * SKU Card 配置
34
- */
35
- export interface SkuCardConfig {
36
- /** 主标题配置 */
37
- title?: SkuCardTextConfig;
38
- /** 副标题配置 */
39
- subTitle?: SkuCardTextConfig;
40
- /** 价格配置 */
41
- price?: Omit<SkuCardTextConfig, 'lineClamp'>;
42
- /** 图片配置 */
43
- image?: SkuCardImageConfig;
44
- /**
45
- * @description 是否在「组合规格选项卡片(VariantCard)」展示价格
46
- * - 默认不展示,避免影响现有业务 UI
47
- */
48
- variantPriceVisible?: boolean;
49
- }
50
- /**
51
- * SKU store状态类型
52
- */
53
- export interface SkuSelectionState {
54
- /** 数据源 */
55
- dataSource: any;
56
- /** 原始值 */
57
- value: Record<string | number, any>;
58
- /** 配置 */
59
- config: {
60
- overSold?: boolean;
61
- };
62
- /** 货币符号 */
63
- symbol: string;
64
- /** Selector数据源 */
65
- selectorDataSource: any[];
66
- /** Selector识别的值 */
67
- selectorValue: Record<string | number, any>;
68
- /** SKU Card 配置 */
69
- skuCardConfig: SkuCardConfig;
70
- style?: React.CSSProperties;
71
- /** 样式配置 */
72
- customConfig?: {
73
- /** 弹窗宽度 */
74
- modalWidth?: number | string;
75
- };
76
- }
77
- /** SKU Card 默认配置 */
78
- export declare const defaultSkuCardConfig: SkuCardConfig;
79
- export interface IProps {
80
- /** 数据源 */
81
- dataSource: DataSource;
82
- /** 原始值 */
83
- value: SkuValue;
84
- /** 配置 */
85
- config?: {
86
- /** 是否禁用 */
87
- overSold?: 0 | 1;
88
- };
89
- /** SKU Card 配置 */
90
- skuCardConfig?: SkuCardConfig;
91
- /** 选中变更回调 */
92
- onChange: (value: SkuValue) => void;
93
- /** 自定义滚动容器 */
94
- customScrollParent?: HTMLElement | string;
95
- /** 自定义样式 */
96
- style?: React.CSSProperties;
97
- /** 自定义配置 */
98
- customConfig?: {
99
- /** 弹窗宽度 */
100
- modalWidth?: number | string;
101
- };
102
- }
103
- export interface DataSource {
104
- /** 单规格组数据 */
105
- option_group?: Array<OptionGroupItem>;
106
- /** 组合规格组装后的数据 */
107
- variant?: Array<VariantProductItem>;
108
- /** 组合规格组数据 */
109
- variant_group?: Array<VariantGroupItem>;
110
- /** 套餐商品组数据 */
111
- bundle_group?: Array<BundleItem>;
112
- }
113
- /**
114
- * 单规格组数据
115
- */
116
- export interface OptionGroupItem {
117
- /** 创建者id */
118
- create_account_id?: number;
119
- /** 创建时间 */
120
- created_at?: string;
121
- /** 删除时间 */
122
- deleted_at?: string | null;
123
- /** 模板id */
124
- template_id?: number;
125
- /** 更新者id */
126
- update_account_id?: number;
127
- /** 更新时间 */
128
- updated_at?: string;
129
- /** 单规格组id */
130
- id?: number;
131
- /** 是否启用 */
132
- is_enabled?: 0 | 1;
133
- /** 是否多选 */
134
- is_multiple?: 0 | 1;
135
- /** 最大选择数量 */
136
- max_quantity?: number;
137
- /** 最小选择数量 */
138
- min_quantity?: number;
139
- /** 单规格组名称 */
140
- name?: string;
141
- /** 单规格组下规格数据 */
142
- option_item?: Array<OptionItem>;
143
- /** 商品id */
144
- product_id?: number;
145
- /** 是否必选 */
146
- required?: 0 | 1;
147
- /** 店铺id */
148
- shop_id?: number;
149
- /** 排序 */
150
- sort?: number;
151
- /** 状态 */
152
- status?: 0 | 1;
153
- }
154
- /**
155
- * 单规格组下选项数据
156
- */
157
- export interface OptionItem {
158
- /** 创建者id */
159
- create_account_id?: number;
160
- /** 创建时间 */
161
- created_at?: string;
162
- /** 删除时间 */
163
- deleted_at?: string | null;
164
- /** 模板id */
165
- template_id?: number;
166
- /** 更新者id */
167
- update_account_id?: number;
168
- /** 更新时间 */
169
- updated_at?: string;
170
- /** 加价 */
171
- add_price?: string;
172
- /** 封面 */
173
- cover?: string;
174
- /** 描述 */
175
- description?: string;
176
- /** 规格id */
177
- id?: number;
178
- /** 是否启用 */
179
- is_enabled?: 0 | 1;
180
- /** 最大选择数量 */
181
- max_quantity?: number;
182
- /** 规格名称 */
183
- name?: string;
184
- /** 规格组id */
185
- option_group_id?: number;
186
- /** 原价 */
187
- original_price?: string;
188
- /** 商品id */
189
- product_id?: number;
190
- /** 店铺id */
191
- shop_id?: number;
192
- /** 排序 */
193
- sort?: number;
194
- /** 状态 */
195
- status?: 0 | 1;
196
- }
197
- /**
198
- * 组合规格组数据
199
- */
200
- export interface VariantGroupItem {
201
- /** 创建者id */
202
- create_account_id?: number;
203
- /** 创建时间 */
204
- created_at?: string;
205
- /** 删除时间 */
206
- deleted_at?: string | null;
207
- /** 更新者id */
208
- update_account_id?: number;
209
- /** 更新时间 */
210
- updated_at?: string;
211
- /** 组合规格组id */
212
- id?: number;
213
- /** 组合规格组名称 */
214
- name?: string;
215
- /** 位置id */
216
- position_id?: number;
217
- /** 商品id */
218
- product_id?: number;
219
- /** 店铺id */
220
- shop_id?: number;
221
- /** 排序 */
222
- sort?: number;
223
- /** 状态 */
224
- status?: 0 | 1;
225
- /** 组合规格组下选项数据 */
226
- variant_item?: Array<VariantItem>;
227
- }
228
- /**
229
- * 组合规格组下选项数据
230
- */
231
- export interface VariantItem {
232
- /** 创建者id */
233
- create_account_id?: number;
234
- /** 创建时间 */
235
- created_at?: string;
236
- /** 删除时间 */
237
- deleted_at?: string | null;
238
- /** 更新者id */
239
- update_account_id?: number;
240
- /** 更新时间 */
241
- updated_at?: string;
242
- /** 店铺id */
243
- shop_id?: number;
244
- /** 排序 */
245
- sort?: number;
246
- /** 规格id */
247
- id?: number;
248
- /** 是否默认 */
249
- is_default?: 0 | 1;
250
- /** 变体名称 */
251
- name?: string;
252
- /** 位置id */
253
- position_id?: number;
254
- /** 商品id */
255
- product_id?: number;
256
- /** 状态 */
257
- status?: 0 | 1;
258
- /** 组合规格组id */
259
- variant_group_id?: number;
260
- }
261
- /**
262
- * 组合规格商品数据
263
- */
264
- export interface VariantProductItem {
265
- /** 创建者id */
266
- create_account_id?: number;
267
- /** 创建时间 */
268
- created_at?: string;
269
- /** 更新者id */
270
- update_account_id?: number;
271
- /** 更新时间 */
272
- updated_at?: string;
273
- /** 条形码 */
274
- barcode?: string;
275
- /** 基础价格 */
276
- base_price?: string;
277
- /** 箱规数量 */
278
- box_specification_quantity?: number;
279
- /** 编码 */
280
- code?: string;
281
- /** 成本价格 */
282
- cost_price?: string;
283
- /** 封面 */
284
- cover?: string;
285
- /** 描述 */
286
- description?: string | null;
287
- /** 是否禁用 */
288
- disabled?: 0 | 1;
289
- /** 组合规格商品id */
290
- id?: number;
291
- /** 是否收税 */
292
- is_charge_tax?: 0 | 1;
293
- /** 是否发货 */
294
- is_delivery?: 0 | 1;
295
- /** 是否收税 */
296
- is_gst?: 0 | 1;
297
- /** 是否跟踪库存 */
298
- is_track?: 0 | 1;
299
- /** 名称 */
300
- name?: Record<string, string>;
301
- /** 开售重量 */
302
- open_sold_weight?: number;
303
- /** 原价 */
304
- original_price?: string;
305
- /** 是否超卖 */
306
- over_sold?: 0 | 1;
307
- /** 价格 */
308
- price?: string;
309
- /** 商品id */
310
- product_id?: number;
311
- /** 折扣类型 */
312
- rebate_type?: string;
313
- /** 折扣值 */
314
- rebate_value?: number;
315
- /** 标题 */
316
- title?: Record<string, string>;
317
- /** 单位 */
318
- unit?: string;
319
- /** 单位值 */
320
- unit_value?: number;
321
- /** 重量单位 */
322
- weight_unit?: string;
323
- /** 重量值 */
324
- weight_value?: string;
325
- }
326
- /**
327
- * 套餐商品组数据
328
- */
329
- export interface BundleGroupItem {
330
- /** 店铺id */
331
- shop_id?: number;
332
- /** 排序 */
333
- sort?: number;
334
- /** 套餐id */
335
- id?: number;
336
- /** 最大选择数量 */
337
- max_quantity?: number;
338
- /** 最小选择数量 */
339
- min_quantity?: number;
340
- /** 套餐名称 */
341
- name?: string;
342
- /** 商品id */
343
- product_id?: number;
344
- /** 套餐商品组数据 */
345
- bundle_item?: Array<BundleItem>;
346
- }
347
- /**
348
- * 套餐商品组下选项数据
349
- */
350
- export interface BundleItem {
351
- /** 店铺id */
352
- shop_id?: number;
353
- /** 排序 */
354
- sort?: number;
355
- /** 条形码 */
356
- barcode?: string;
357
- /** 套餐商品id */
358
- bundle_product_id?: number;
359
- /** 套餐商品变体id */
360
- bundle_variant_id?: number;
361
- /** 编码 */
362
- code?: string;
363
- /** 封面 */
364
- cover?: string;
365
- /** 扩展id */
366
- extension_id?: number;
367
- /** 扩展类型 */
368
- extension_type?: string;
369
- /** 套餐商品组id */
370
- group_id?: number;
371
- /** 套餐商品id */
372
- id: string | number;
373
- /** 是否跟踪库存 */
374
- is_track?: 0 | 1;
375
- /** 最大选择数量 */
376
- max_quantity?: number;
377
- /** 单规格组数据 */
378
- option_group?: Array<OptionGroupItem>;
379
- /** 是否允许超卖 */
380
- over_sold?: 0 | 1;
381
- /** 价格 */
382
- price?: string;
383
- /** 价格类型: mark_up==>加价 | mark_down==>减价 */
384
- price_type?: 'mark_up' | 'mark_down';
385
- /** 价格类型扩展: product_price==>商品价格 */
386
- price_type_ext?: '' | 'product_price';
387
- /** 商品id */
388
- product_id?: number;
389
- /** 商品价格 */
390
- product_price?: string;
391
- /** 商品副标题 */
392
- product_subtitle?: string;
393
- /** 库存数量 */
394
- stock_quantity?: number;
395
- /** 标题 */
396
- title?: string;
397
- }
398
- /**
399
- * sku value
400
- */
401
- export interface SkuValue {
402
- /** 商品id */
403
- product_id: number;
404
- /** 多规格商品id */
405
- product_variant_id: number;
406
- /** 多规格商品选项字符串 */
407
- product_option_string?: string;
408
- /** 套餐商品组数据 */
409
- bundle: Array<any>;
410
- /** 单规格组数据 */
411
- option: Array<OptionItem & {
412
- num: number;
413
- price: string;
414
- product_option_item_id: number;
415
- }>;
416
- }
417
- /**
418
- * Selector值原子类型
419
- */
420
- export interface SelectorValueAtom {
421
- /** 数据 */
422
- data: Record<string, any>;
423
- /** 数量 */
424
- quantity: number;
425
- /** 总价 */
426
- totalPrice: string | number;
427
- /** 值 */
428
- value: number | string;
429
- }
@@ -1 +0,0 @@
1
- export declare const transformOptionGroup: (optionGroup: any[]) => any[];
@@ -1,4 +0,0 @@
1
- /**
2
- * 将SelectorValue转换为Value
3
- */
4
- export declare const transformSelectorValueToValue: (selectorValue: any) => {};
@@ -1,4 +0,0 @@
1
- /**
2
- * 将value转换为SelectorGroup需要的格式
3
- */
4
- export declare const transformValueToSelectorValue: (value: any, dataSource: any) => any;
@@ -1 +0,0 @@
1
- export declare const transformVariantGroup: (variantGroup: any[]) => any[];
@@ -1,135 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- walletName: string;
4
- validityPeriod: string;
5
- linkedPasses: string;
6
- linkedPassesDesc: string;
7
- sort: string;
8
- status: string;
9
- distributionConditions: string;
10
- selectPasses: string;
11
- backgroundImage: string;
12
- advancedSettings: string;
13
- sendConfig: string;
14
- displaySettings: string;
15
- viewPreview: string;
16
- coverImage: string;
17
- icon: string;
18
- upload: string;
19
- enable: string;
20
- disable: string;
21
- barCode: string;
22
- qrCode: string;
23
- day: string;
24
- days: string;
25
- month: string;
26
- months: string;
27
- year: string;
28
- years: string;
29
- forever: string;
30
- custom: string;
31
- balance: string;
32
- point: string;
33
- voucher: string;
34
- discount: string;
35
- rechargeable: string;
36
- pleaseInputWalletName: string;
37
- enterCoverImageURL: string;
38
- enterJSONConfig: string;
39
- selectValidityPeriod: string;
40
- selectCustomDate: string;
41
- registerToIssue: string;
42
- 'pisell2.wallet-editor.holder': string;
43
- 'pisell2.wallet-editor.holder.required': string;
44
- 'pisell2.wallet-editor.holder.invalid': string;
45
- };
46
- 'zh-CN': {
47
- walletName: string;
48
- validityPeriod: string;
49
- linkedPasses: string;
50
- linkedPassesDesc: string;
51
- sort: string;
52
- status: string;
53
- distributionConditions: string;
54
- selectPasses: string;
55
- backgroundImage: string;
56
- advancedSettings: string;
57
- sendConfig: string;
58
- displaySettings: string;
59
- viewPreview: string;
60
- coverImage: string;
61
- icon: string;
62
- upload: string;
63
- enable: string;
64
- disable: string;
65
- barCode: string;
66
- qrCode: string;
67
- day: string;
68
- days: string;
69
- month: string;
70
- months: string;
71
- year: string;
72
- years: string;
73
- forever: string;
74
- custom: string;
75
- balance: string;
76
- point: string;
77
- voucher: string;
78
- discount: string;
79
- rechargeable: string;
80
- pleaseInputWalletName: string;
81
- enterCoverImageURL: string;
82
- enterJSONConfig: string;
83
- selectValidityPeriod: string;
84
- selectCustomDate: string;
85
- registerToIssue: string;
86
- 'pisell2.wallet-editor.holder': string;
87
- 'pisell2.wallet-editor.holder.required': string;
88
- 'pisell2.wallet-editor.holder.invalid': string;
89
- };
90
- 'zh-HK': {
91
- walletName: string;
92
- validityPeriod: string;
93
- linkedPasses: string;
94
- linkedPassesDesc: string;
95
- sort: string;
96
- status: string;
97
- distributionConditions: string;
98
- selectPasses: string;
99
- backgroundImage: string;
100
- advancedSettings: string;
101
- sendConfig: string;
102
- displaySettings: string;
103
- viewPreview: string;
104
- coverImage: string;
105
- icon: string;
106
- upload: string;
107
- enable: string;
108
- disable: string;
109
- barCode: string;
110
- qrCode: string;
111
- day: string;
112
- days: string;
113
- month: string;
114
- months: string;
115
- year: string;
116
- years: string;
117
- forever: string;
118
- custom: string;
119
- balance: string;
120
- point: string;
121
- voucher: string;
122
- discount: string;
123
- rechargeable: string;
124
- pleaseInputWalletName: string;
125
- enterCoverImageURL: string;
126
- enterJSONConfig: string;
127
- selectValidityPeriod: string;
128
- selectCustomDate: string;
129
- registerToIssue: string;
130
- 'pisell2.wallet-editor.holder': string;
131
- 'pisell2.wallet-editor.holder.required': string;
132
- 'pisell2.wallet-editor.holder.invalid': string;
133
- };
134
- };
135
- export default _default;
@@ -1,52 +0,0 @@
1
- /// <reference types="react" />
2
- import { FormInstance } from 'antd';
3
- export interface MultiLanguageTitle {
4
- original?: string;
5
- 'zh-CN'?: string;
6
- 'zh-HK'?: string;
7
- en?: string;
8
- }
9
- export interface ValidForConfig {
10
- unit: string;
11
- unit_type: 'day' | 'month' | 'year';
12
- type: 'normal' | 'custom' | 'forever';
13
- custom_date?: string;
14
- }
15
- export declare type WalletPassType = 'balance' | 'point' | 'voucher' | 'discount' | 'rechargeable';
16
- export interface ShowcaseWalletPassItem {
17
- type: WalletPassType;
18
- display: 0 | 1;
19
- name?: MultiLanguageTitle;
20
- custom_title?: MultiLanguageTitle;
21
- }
22
- export interface SendConfig {
23
- type: string;
24
- [key: string]: any;
25
- }
26
- export interface WalletMetadata {
27
- showcaseWalletPass?: string[];
28
- showcaseWalletPassNew?: ShowcaseWalletPassItem[];
29
- welcomeText?: string;
30
- customerName?: string;
31
- coverImage?: string;
32
- send_config?: SendConfig;
33
- }
34
- export interface WalletEditorValue {
35
- name?: MultiLanguageTitle;
36
- status: 'enable' | 'disable';
37
- valid_for: ValidForConfig;
38
- metadata: WalletMetadata;
39
- }
40
- export interface WalletEditorRef {
41
- form: FormInstance;
42
- setInitialValues: (values: WalletEditorValue) => void;
43
- getValues: () => WalletEditorValue;
44
- }
45
- export interface WalletEditorProps {
46
- value?: WalletEditorValue;
47
- onChange?: (value: WalletEditorValue) => void;
48
- onValuesChange?: (changedValue: any, values: WalletEditorValue) => void;
49
- disabled?: boolean;
50
- className?: string;
51
- style?: React.CSSProperties;
52
- }