@pisell/private-materials 6.3.107 → 6.3.108

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 (1206) 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 +2 -2
  6. package/build/lowcode/preview.js +152 -152
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -18
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -18
  11. package/es/components/appointmentBooking/components/Date/state.js +1 -3
  12. package/es/components/appointmentBooking/locales.d.ts +0 -240
  13. package/es/components/appointmentBooking/locales.js +0 -276
  14. package/es/components/authentication/admin/AuthMethods/locales.d.ts +0 -164
  15. package/es/components/authentication/admin/AuthMethods/locales.js +0 -164
  16. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +9 -27
  17. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -54
  18. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +0 -54
  19. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -2
  20. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +0 -2
  21. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -46
  22. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +0 -46
  23. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -2
  24. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +9 -17
  25. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -16
  26. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +0 -16
  27. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +2 -10
  28. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -42
  29. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +0 -42
  30. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -2
  31. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +9 -17
  32. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -24
  33. package/es/components/authentication/admin/ChannelAuthSetting/locales.js +0 -24
  34. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +0 -42
  35. package/es/components/authentication/admin/CustomerAuth/locales.js +0 -42
  36. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -70
  37. package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +0 -70
  38. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +0 -36
  39. package/es/components/authentication/admin/DeviceAuth/locales.js +0 -36
  40. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +0 -58
  41. package/es/components/authentication/admin/OAuthConfig/locales.js +0 -58
  42. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -34
  43. package/es/components/authentication/admin/OrgAdminAuth/locales.js +0 -34
  44. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -30
  45. package/es/components/authentication/admin/POSOperatorAuth/locales.js +0 -30
  46. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -34
  47. package/es/components/authentication/admin/SaaSAdminAuth/locales.js +0 -34
  48. package/es/components/booking/addons/model.d.ts +1 -10
  49. package/es/components/booking/components/footer/index.js +20 -26
  50. package/es/components/booking/editBookingModal/locales.d.ts +0 -12
  51. package/es/components/booking/editBookingModal/locales.js +0 -12
  52. package/es/components/booking/editBookingModal/mock.d.ts +2 -186
  53. package/es/components/booking/editBookingModal/mock.js +0 -22
  54. package/es/components/booking/forms/model.d.ts +1 -10
  55. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  56. package/es/components/booking/info/header/index.js +7 -7
  57. package/es/components/booking/info/header/index.less +5 -5
  58. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  59. package/es/components/booking/info/model.d.ts +1 -10
  60. package/es/components/booking/info2/service/addService/mock.d.ts +0 -2
  61. package/es/components/booking/info2/service/addService/mock.js +0 -4
  62. package/es/components/booking/locales.d.ts +0 -628
  63. package/es/components/booking/locales.js +0 -722
  64. package/es/components/booking/model.d.ts +1 -9
  65. package/es/components/booking/notes/NoteBlock/index.js +2 -3
  66. package/es/components/booking/notes/model.d.ts +1 -10
  67. package/es/components/booking/payments/model.d.ts +1 -10
  68. package/es/components/eftpos/PairModal/hooks.d.ts +27 -0
  69. package/es/components/eftpos/PairModal/hooks.js +67 -0
  70. package/es/components/eftpos/PairModal/index.d.ts +11 -0
  71. package/es/components/{ecocup/components/AddCustomerModal → eftpos/PairModal}/index.js +189 -159
  72. package/es/components/eftpos/PairModal/index.less +70 -0
  73. package/es/components/eftpos/SettlementModal/Action.d.ts +8 -0
  74. package/es/components/eftpos/SettlementModal/Action.js +141 -0
  75. package/es/components/eftpos/SettlementModal/index.d.ts +8 -0
  76. package/es/components/eftpos/SettlementModal/index.js +135 -0
  77. package/es/components/eftpos/SettlementModal/index.less +33 -0
  78. package/es/components/eftpos/SettlementModal/serve.d.ts +8 -0
  79. package/es/components/eftpos/SettlementModal/serve.js +171 -0
  80. package/es/components/eftpos/SettlementModal/types.d.ts +138 -0
  81. package/es/components/eftpos/SettlementModal/types.js +35 -0
  82. package/es/components/eftpos/SettlementModal/utils.d.ts +18 -0
  83. package/es/components/eftpos/SettlementModal/utils.js +351 -0
  84. package/es/components/eftpos/assets/mx51SCI.svg +15 -0
  85. package/es/components/eftpos/const.d.ts +3 -1
  86. package/es/components/eftpos/const.js +2 -0
  87. package/es/components/eftpos/device.d.ts +3 -1
  88. package/es/components/eftpos/device.js +5 -3
  89. package/es/components/eftpos/hooks.d.ts +13 -0
  90. package/es/components/eftpos/hooks.js +35 -0
  91. package/es/components/eftpos/index.js +184 -25
  92. package/es/components/eftpos/index.less +26 -1
  93. package/es/components/eftpos/locales.d.ts +39 -64
  94. package/es/components/eftpos/locales.js +104 -85
  95. package/es/components/eftpos/table.js +47 -3
  96. package/es/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +6 -0
  97. package/es/components/eftposPay/aggregatePayment/hooks/usePayment.js +125 -0
  98. package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  99. package/es/components/eftposPay/aggregatePayment/index.js +3 -0
  100. package/es/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
  101. package/es/components/eftposPay/aggregatePayment/mock.js +567 -0
  102. package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  103. package/es/components/eftposPay/aggregatePayment/service.js +70 -0
  104. package/es/components/eftposPay/aggregatePayment/types.d.ts +101 -0
  105. package/es/components/eftposPay/aggregatePayment/types.js +61 -0
  106. package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  107. package/es/components/eftposPay/aggregatePayment/utils/logs.js +385 -0
  108. package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +132 -0
  109. package/es/components/eftposPay/aggregatePayment/utils/payment.js +1140 -0
  110. package/es/components/eftposPay/app.d.ts +1 -1
  111. package/es/components/eftposPay/component/fail/failCustom.js +12 -17
  112. package/es/components/eftposPay/component/fail/index.js +4 -5
  113. package/es/components/eftposPay/const.d.ts +7 -2
  114. package/es/components/eftposPay/const.js +2 -0
  115. package/es/components/eftposPay/device.js +36 -208
  116. package/es/components/eftposPay/hooks.d.ts +1 -1
  117. package/es/components/eftposPay/index.js +1 -5
  118. package/es/components/eftposPay/linkly/const.js +1 -1
  119. package/es/components/eftposPay/linkly/index.js +1 -0
  120. package/es/components/eftposPay/locales.d.ts +3 -242
  121. package/es/components/eftposPay/locales.js +5 -328
  122. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  123. package/es/components/eftposPay/manufacturer.js +4 -0
  124. package/es/components/eftposPay/mx51/Action.d.ts +7 -0
  125. package/es/components/eftposPay/mx51/Action.js +139 -0
  126. package/es/components/eftposPay/mx51/Result.d.ts +5 -0
  127. package/es/components/eftposPay/mx51/Result.js +46 -0
  128. package/es/components/eftposPay/mx51/const.d.ts +5 -0
  129. package/es/components/eftposPay/mx51/const.js +69 -0
  130. package/es/components/eftposPay/mx51/index.d.ts +6 -0
  131. package/es/components/eftposPay/mx51/index.js +401 -0
  132. package/es/components/eftposPay/mx51/types.d.ts +138 -0
  133. package/es/components/eftposPay/mx51/types.js +30 -0
  134. package/es/components/eftposPay/mx51/utils.d.ts +10 -0
  135. package/es/components/eftposPay/mx51/utils.js +121 -0
  136. package/es/components/eftposPay/pay.js +7 -2
  137. package/es/components/eftposPay/payo/config.js +0 -1
  138. package/es/components/eftposPay/payo/const.js +1 -1
  139. package/es/components/eftposPay/store/index.d.ts +2 -5
  140. package/es/components/eftposPay/tyro/const.js +1 -1
  141. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  142. package/es/components/eftposPay/windcave/const.js +1 -1
  143. package/es/components/eftposPay/windcave/windcave.js +9 -9
  144. package/es/components/eventBooking/components/Voucher/components/locales.d.ts +0 -22
  145. package/es/components/eventBooking/components/Voucher/components/locales.js +0 -22
  146. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  147. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  148. package/es/components/eventBooking/locales.d.ts +0 -162
  149. package/es/components/eventBooking/locales.js +0 -186
  150. package/es/components/kioskSkuDetail/index.js +10 -39
  151. package/es/components/kioskSkuDetail/locales.d.ts +0 -21
  152. package/es/components/kioskSkuDetail/locales.js +3 -24
  153. package/es/components/login/locales.d.ts +0 -14
  154. package/es/components/login/locales.js +0 -14
  155. package/es/components/pay/toC/PaymentList/serve.js +2 -2
  156. package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +16 -32
  157. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +11 -17
  158. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  159. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  160. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  161. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -1
  162. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +7 -18
  163. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -5
  164. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +145 -167
  165. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
  166. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
  167. package/es/components/pay/toC/WalletPassBlock/index.js +1 -3
  168. package/es/components/pay/toC/index.js +31 -65
  169. package/es/components/pay/toC/locales.d.ts +0 -204
  170. package/es/components/pay/toC/locales.js +0 -244
  171. package/es/components/pay/toC/model.d.ts +1 -10
  172. package/es/components/pay/toC/serve.d.ts +0 -20
  173. package/es/components/pay/toC/serve.js +3 -31
  174. package/es/components/pay/toC/utils.d.ts +2 -2
  175. package/es/components/pay/toC/utils.js +0 -4
  176. package/es/components/pinModal/locales.d.ts +0 -16
  177. package/es/components/pinModal/locales.js +0 -16
  178. package/es/components/pinVerifyModal/locales.d.ts +0 -14
  179. package/es/components/pinVerifyModal/locales.js +0 -14
  180. package/es/components/pisellSelectCustomerModal/locales.d.ts +0 -52
  181. package/es/components/pisellSelectCustomerModal/locales.js +0 -52
  182. package/es/components/productExtension/locales.d.ts +0 -30
  183. package/es/components/productExtension/locales.js +0 -30
  184. package/es/components/productSelect/components/pisellPriceText/index.js +4 -8
  185. package/es/components/productSelect/locales.d.ts +0 -20
  186. package/es/components/productSelect/locales.js +3 -23
  187. package/es/components/ruleSetting/locales.d.ts +0 -30
  188. package/es/components/ruleSetting/locales.js +0 -30
  189. package/es/components/schedules/locales.d.ts +0 -56
  190. package/es/components/schedules/locales.js +0 -56
  191. package/es/components/schedules/model.d.ts +1 -9
  192. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  193. package/es/components/shoppingCart/locales.d.ts +0 -20
  194. package/es/components/shoppingCart/locales.js +0 -24
  195. package/es/components/stepController/locales.d.ts +0 -16
  196. package/es/components/stepController/locales.js +0 -20
  197. package/es/components/subTotal/locales.d.ts +0 -26
  198. package/es/components/subTotal/locales.js +0 -26
  199. package/es/components/systemSettings/registry/components/ItemModal.js +47 -251
  200. package/es/components/systemSettings/registry/index.js +16 -20
  201. package/es/components/systemSettings/registry/index.less +7 -6
  202. package/es/components/systemSettings/registry/locales.d.ts +0 -262
  203. package/es/components/systemSettings/registry/locales.js +3 -274
  204. package/es/components/systemSettings/registry/services.d.ts +0 -20
  205. package/es/components/systemSettings/registry/types.d.ts +2 -16
  206. package/es/components/taxSelect/locales.d.ts +0 -14
  207. package/es/components/taxSelect/locales.js +0 -14
  208. package/es/components/ticketBooking/locales.d.ts +0 -130
  209. package/es/components/ticketBooking/locales.js +0 -156
  210. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -2
  211. package/es/components/ticketBooking/utils/formatTime.js +2 -8
  212. package/es/components/wallet/utils.d.ts +1 -1
  213. package/es/components/walletList/index.js +0 -10
  214. package/es/components/walletList/locales.d.ts +0 -16
  215. package/es/components/walletList/locales.js +0 -16
  216. package/es/components/walletList/types/index.d.ts +0 -2
  217. package/es/hooks/useEngineContext.d.ts +0 -1
  218. package/es/hooks/useEngineContext.js +0 -7
  219. package/es/hooks/useLocale.js +1 -8
  220. package/es/index.d.ts +3 -16
  221. package/es/index.js +1 -13
  222. package/es/plus/contactInfo/components/SwipeAction/index.js +1 -1
  223. package/es/plus/contactInfo/locales.d.ts +0 -8
  224. package/es/plus/contactInfo/locales.js +0 -8
  225. package/es/plus/contactInfoModal/locales.d.ts +0 -42
  226. package/es/plus/contactInfoModal/locales.js +0 -42
  227. package/es/plus/productSelect/components/pisellPriceText/index.js +4 -8
  228. package/es/plus/productSelect/locales.d.ts +0 -20
  229. package/es/plus/productSelect/locales.js +3 -23
  230. package/es/plus/saasCreateOrganization/locales.d.ts +0 -8
  231. package/es/plus/saasCreateOrganization/locales.js +0 -8
  232. package/es/plus/saasLogin/locales.d.ts +0 -32
  233. package/es/plus/saasLogin/locales.js +0 -32
  234. package/es/plus/saasRegister/locales.d.ts +0 -76
  235. package/es/plus/saasRegister/locales.js +0 -76
  236. package/es/plus/selectHolder/locales.d.ts +0 -14
  237. package/es/plus/selectHolder/locales.js +0 -18
  238. package/es/plus/skuOptionsSelection/components/NormalCard/index.js +5 -6
  239. package/es/plus/skuOptionsSelection/components/OptionsCard/index.js +2 -3
  240. package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +0 -2
  241. package/es/plus/skuOptionsSelection/index.js +2 -2
  242. package/es/plus/skuOptionsSelection/locales.d.ts +0 -20
  243. package/es/plus/skuOptionsSelection/locales.js +0 -20
  244. package/es/plus/skuOptionsSelection/store/store.js +1 -2
  245. package/es/plus/skuOptionsSelection/types.d.ts +0 -14
  246. package/es/plus/skuOptionsSelection/types.js +0 -4
  247. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +1 -10
  248. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +1 -10
  249. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +2 -9
  250. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +4 -8
  251. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +2 -8
  252. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +0 -2
  253. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +4 -12
  254. package/es/plus/walletEditor/locales.d.ts +0 -88
  255. package/es/plus/walletEditor/locales.js +0 -100
  256. package/es/plus/walletEditor/types.d.ts +0 -2
  257. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  258. package/es/plus/walletPassGallery/components/passDetail/index.js +39 -80
  259. package/es/plus/walletPassGallery/components/passList/index.js +4 -12
  260. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -2
  261. package/es/plus/walletPassGallery/components/timelineSection/index.js +2 -19
  262. package/es/plus/walletPassGallery/index.d.ts +0 -4
  263. package/es/plus/walletPassGallery/index.js +46 -95
  264. package/es/plus/walletPassGallery/locales.d.ts +0 -188
  265. package/es/plus/walletPassGallery/locales.js +0 -192
  266. package/es/plus/walletPassGallery/serve.d.ts +1 -3
  267. package/es/plus/walletPassGallery/serve.js +13 -13
  268. package/es/plus/walletPassGallery/utils.d.ts +1 -1
  269. package/es/pro/Cards/components/SKUCard/index.d.ts +56 -1
  270. package/es/pro/Cards/components/SKUCard/index.js +20 -50
  271. package/es/pro/Cards/components/SKUCard/index.less +2 -23
  272. package/es/pro/Login2.0/Login2.js +8 -8
  273. package/es/pro/Login2.0/locales.d.ts +0 -365
  274. package/es/pro/Login2.0/locales.js +0 -365
  275. package/es/pro/Login2.0/shared/types.d.ts +0 -2
  276. package/es/pro/NumericStepper/index.d.ts +3 -33
  277. package/es/pro/NumericStepper/index.js +107 -181
  278. package/es/pro/NumericStepper/index.less +143 -287
  279. package/es/pro/Selector/BatchSelectorDemo.js +12 -2
  280. package/es/pro/Selector/Selector.js +30 -39
  281. package/es/pro/Selector/SelectorGroup.d.ts +1 -1
  282. package/es/pro/Selector/SelectorGroup.js +1 -5
  283. package/es/pro/Selector/components/Card/index.js +10 -11
  284. package/es/pro/Selector/components/Card/index.less +14 -30
  285. package/es/pro/Selector/components/Indicator/index.d.ts +0 -1
  286. package/es/pro/Selector/components/Indicator/index.js +2 -3
  287. package/es/pro/Selector/components/Indicator/index.less +13 -16
  288. package/es/pro/Selector/components/LayoutContainer/index.d.ts +3 -5
  289. package/es/pro/Selector/components/LayoutContainer/index.js +9 -226
  290. package/es/pro/Selector/components/Media/index.d.ts +1 -1
  291. package/es/pro/Selector/components/Media/index.less +1 -1
  292. package/es/pro/Selector/demo.js +1 -1
  293. package/es/pro/Selector/hooks/usePresetItemProps.js +0 -2
  294. package/es/pro/Selector/hooks/usePresetProps.js +6 -60
  295. package/es/pro/Selector/locales.d.ts +0 -22
  296. package/es/pro/Selector/locales.js +0 -58
  297. package/es/pro/Selector/selector.less +64 -0
  298. package/es/pro/Selector/selectorGroup.less +1 -9
  299. package/es/pro/Selector/types.d.ts +0 -50
  300. package/es/pro/numberKeyboard/locales.d.ts +0 -6
  301. package/es/pro/numberKeyboard/locales.js +0 -6
  302. package/lib/components/appointmentBooking/components/Date/state.js +1 -3
  303. package/lib/components/appointmentBooking/locales.d.ts +0 -240
  304. package/lib/components/appointmentBooking/locales.js +0 -240
  305. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +0 -164
  306. package/lib/components/authentication/admin/AuthMethods/locales.js +0 -164
  307. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +9 -17
  308. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -54
  309. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +0 -54
  310. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -2
  311. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +0 -2
  312. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -46
  313. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +0 -46
  314. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -2
  315. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +6 -14
  316. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -16
  317. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +0 -16
  318. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +2 -10
  319. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -42
  320. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +0 -42
  321. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -2
  322. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +6 -14
  323. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -24
  324. package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +0 -24
  325. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +0 -42
  326. package/lib/components/authentication/admin/CustomerAuth/locales.js +0 -42
  327. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -70
  328. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +0 -70
  329. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +0 -36
  330. package/lib/components/authentication/admin/DeviceAuth/locales.js +0 -36
  331. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +0 -58
  332. package/lib/components/authentication/admin/OAuthConfig/locales.js +0 -58
  333. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -34
  334. package/lib/components/authentication/admin/OrgAdminAuth/locales.js +0 -34
  335. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -30
  336. package/lib/components/authentication/admin/POSOperatorAuth/locales.js +0 -30
  337. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -34
  338. package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +0 -34
  339. package/lib/components/booking/addons/model.d.ts +1 -10
  340. package/lib/components/booking/components/footer/index.js +0 -5
  341. package/lib/components/booking/editBookingModal/locales.d.ts +0 -12
  342. package/lib/components/booking/editBookingModal/locales.js +0 -12
  343. package/lib/components/booking/editBookingModal/mock.d.ts +2 -186
  344. package/lib/components/booking/editBookingModal/mock.js +0 -22
  345. package/lib/components/booking/forms/model.d.ts +1 -10
  346. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  347. package/lib/components/booking/info/header/index.js +7 -7
  348. package/lib/components/booking/info/header/index.less +5 -5
  349. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  350. package/lib/components/booking/info/model.d.ts +1 -10
  351. package/lib/components/booking/info2/service/addService/mock.d.ts +0 -2
  352. package/lib/components/booking/info2/service/addService/mock.js +0 -4
  353. package/lib/components/booking/locales.d.ts +0 -628
  354. package/lib/components/booking/locales.js +0 -680
  355. package/lib/components/booking/model.d.ts +1 -9
  356. package/lib/components/booking/notes/NoteBlock/index.js +1 -2
  357. package/lib/components/booking/notes/model.d.ts +1 -10
  358. package/lib/components/booking/payments/model.d.ts +1 -10
  359. package/lib/components/eftpos/PairModal/hooks.d.ts +27 -0
  360. package/lib/components/eftpos/PairModal/hooks.js +70 -0
  361. package/lib/components/eftpos/PairModal/index.d.ts +11 -0
  362. package/lib/components/eftpos/PairModal/index.js +197 -0
  363. package/lib/components/eftpos/PairModal/index.less +70 -0
  364. package/lib/components/eftpos/SettlementModal/Action.d.ts +8 -0
  365. package/lib/components/eftpos/SettlementModal/Action.js +153 -0
  366. package/lib/components/eftpos/SettlementModal/index.d.ts +8 -0
  367. package/lib/components/eftpos/SettlementModal/index.js +170 -0
  368. package/lib/components/eftpos/SettlementModal/index.less +33 -0
  369. package/lib/components/eftpos/SettlementModal/serve.d.ts +8 -0
  370. package/lib/{plus/saasAttendance/settings → components/eftpos/SettlementModal}/serve.js +16 -25
  371. package/lib/components/eftpos/SettlementModal/types.d.ts +138 -0
  372. package/lib/components/eftpos/SettlementModal/types.js +43 -0
  373. package/lib/components/eftpos/SettlementModal/utils.d.ts +18 -0
  374. package/lib/components/eftpos/SettlementModal/utils.js +248 -0
  375. package/lib/components/eftpos/assets/mx51SCI.svg +15 -0
  376. package/lib/components/eftpos/const.d.ts +3 -1
  377. package/lib/components/eftpos/const.js +2 -0
  378. package/lib/components/eftpos/device.d.ts +3 -1
  379. package/lib/components/eftpos/device.js +3 -3
  380. package/lib/components/eftpos/hooks.d.ts +13 -0
  381. package/lib/components/eftpos/hooks.js +30 -0
  382. package/lib/components/eftpos/index.js +106 -8
  383. package/lib/components/eftpos/index.less +26 -1
  384. package/lib/components/eftpos/locales.d.ts +39 -64
  385. package/lib/components/eftpos/locales.js +101 -78
  386. package/lib/components/eftpos/table.js +30 -2
  387. package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +6 -0
  388. package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.js +152 -0
  389. package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  390. package/lib/{plus/clinetSearch/serve.js → components/eftposPay/aggregatePayment/index.js} +10 -11
  391. package/lib/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
  392. package/lib/components/eftposPay/aggregatePayment/mock.js +679 -0
  393. package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  394. package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
  395. package/lib/components/eftposPay/aggregatePayment/types.d.ts +101 -0
  396. package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
  397. package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  398. package/lib/components/eftposPay/aggregatePayment/utils/logs.js +302 -0
  399. package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +132 -0
  400. package/lib/components/eftposPay/aggregatePayment/utils/payment.js +755 -0
  401. package/lib/components/eftposPay/app.d.ts +1 -1
  402. package/lib/components/eftposPay/component/fail/failCustom.js +9 -15
  403. package/lib/components/eftposPay/component/fail/index.js +1 -4
  404. package/lib/components/eftposPay/const.d.ts +7 -2
  405. package/lib/components/eftposPay/const.js +2 -0
  406. package/lib/components/eftposPay/device.js +23 -108
  407. package/lib/components/eftposPay/hooks.d.ts +1 -1
  408. package/lib/components/eftposPay/index.js +1 -5
  409. package/lib/components/eftposPay/linkly/const.js +1 -1
  410. package/lib/components/eftposPay/linkly/index.js +1 -0
  411. package/lib/components/eftposPay/locales.d.ts +3 -242
  412. package/lib/components/eftposPay/locales.js +5 -252
  413. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  414. package/lib/components/eftposPay/manufacturer.js +6 -0
  415. package/lib/components/eftposPay/mx51/Action.d.ts +7 -0
  416. package/lib/components/eftposPay/mx51/Action.js +152 -0
  417. package/lib/components/eftposPay/mx51/Result.d.ts +5 -0
  418. package/lib/components/{ecocup/components/MoreDropdown/index.js → eftposPay/mx51/Result.js} +43 -31
  419. package/lib/components/eftposPay/mx51/const.d.ts +5 -0
  420. package/lib/components/eftposPay/mx51/const.js +85 -0
  421. package/lib/components/eftposPay/mx51/index.d.ts +6 -0
  422. package/lib/components/eftposPay/mx51/index.js +360 -0
  423. package/lib/components/eftposPay/mx51/types.d.ts +138 -0
  424. package/lib/components/{ecocup/customerList/hooks/index.js → eftposPay/mx51/types.js} +18 -10
  425. package/lib/components/eftposPay/mx51/utils.d.ts +10 -0
  426. package/lib/components/eftposPay/mx51/utils.js +115 -0
  427. package/lib/components/eftposPay/pay.js +4 -2
  428. package/lib/components/eftposPay/payo/config.js +0 -1
  429. package/lib/components/eftposPay/payo/const.js +1 -1
  430. package/lib/components/eftposPay/store/index.d.ts +2 -5
  431. package/lib/components/eftposPay/tyro/const.js +1 -1
  432. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  433. package/lib/components/eftposPay/windcave/const.js +1 -1
  434. package/lib/components/eftposPay/windcave/windcave.js +9 -9
  435. package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +0 -22
  436. package/lib/components/eventBooking/components/Voucher/components/locales.js +0 -22
  437. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  438. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  439. package/lib/components/eventBooking/locales.d.ts +0 -162
  440. package/lib/components/eventBooking/locales.js +0 -162
  441. package/lib/components/kioskSkuDetail/index.js +3 -27
  442. package/lib/components/kioskSkuDetail/locales.d.ts +0 -21
  443. package/lib/components/kioskSkuDetail/locales.js +3 -24
  444. package/lib/components/login/locales.d.ts +0 -14
  445. package/lib/components/login/locales.js +0 -14
  446. package/lib/components/pay/toC/PaymentList/serve.js +1 -1
  447. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +11 -19
  448. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +23 -22
  449. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  450. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  451. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  452. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -1
  453. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +1 -7
  454. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -5
  455. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +103 -92
  456. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
  457. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
  458. package/lib/components/pay/toC/WalletPassBlock/index.js +1 -3
  459. package/lib/components/pay/toC/index.js +19 -52
  460. package/lib/components/pay/toC/locales.d.ts +0 -204
  461. package/lib/components/pay/toC/locales.js +0 -204
  462. package/lib/components/pay/toC/model.d.ts +1 -10
  463. package/lib/components/pay/toC/serve.d.ts +0 -20
  464. package/lib/components/pay/toC/serve.js +1 -7
  465. package/lib/components/pay/toC/utils.d.ts +2 -2
  466. package/lib/components/pay/toC/utils.js +0 -4
  467. package/lib/components/pinModal/locales.d.ts +0 -16
  468. package/lib/components/pinModal/locales.js +0 -16
  469. package/lib/components/pinVerifyModal/locales.d.ts +0 -14
  470. package/lib/components/pinVerifyModal/locales.js +0 -14
  471. package/lib/components/pisellSelectCustomerModal/locales.d.ts +0 -52
  472. package/lib/components/pisellSelectCustomerModal/locales.js +0 -52
  473. package/lib/components/productExtension/locales.d.ts +0 -30
  474. package/lib/components/productExtension/locales.js +0 -30
  475. package/lib/components/productSelect/components/pisellPriceText/index.js +4 -6
  476. package/lib/components/productSelect/locales.d.ts +0 -20
  477. package/lib/components/productSelect/locales.js +3 -23
  478. package/lib/components/ruleSetting/locales.d.ts +0 -30
  479. package/lib/components/ruleSetting/locales.js +0 -30
  480. package/lib/components/schedules/locales.d.ts +0 -56
  481. package/lib/components/schedules/locales.js +0 -56
  482. package/lib/components/schedules/model.d.ts +1 -9
  483. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  484. package/lib/components/shoppingCart/locales.d.ts +0 -20
  485. package/lib/components/shoppingCart/locales.js +0 -20
  486. package/lib/components/stepController/locales.d.ts +0 -16
  487. package/lib/components/stepController/locales.js +0 -16
  488. package/lib/components/subTotal/locales.d.ts +0 -26
  489. package/lib/components/subTotal/locales.js +0 -26
  490. package/lib/components/systemSettings/registry/components/ItemModal.js +224 -347
  491. package/lib/components/systemSettings/registry/index.js +16 -20
  492. package/lib/components/systemSettings/registry/index.less +7 -6
  493. package/lib/components/systemSettings/registry/locales.d.ts +0 -262
  494. package/lib/components/systemSettings/registry/locales.js +3 -274
  495. package/lib/components/systemSettings/registry/services.d.ts +0 -20
  496. package/lib/components/systemSettings/registry/types.d.ts +2 -16
  497. package/lib/components/taxSelect/locales.d.ts +0 -14
  498. package/lib/components/taxSelect/locales.js +0 -14
  499. package/lib/components/ticketBooking/locales.d.ts +0 -130
  500. package/lib/components/ticketBooking/locales.js +0 -136
  501. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -2
  502. package/lib/components/ticketBooking/utils/formatTime.js +2 -8
  503. package/lib/components/wallet/utils.d.ts +1 -1
  504. package/lib/components/walletList/index.js +0 -10
  505. package/lib/components/walletList/locales.d.ts +0 -16
  506. package/lib/components/walletList/locales.js +0 -16
  507. package/lib/components/walletList/types/index.d.ts +0 -2
  508. package/lib/hooks/useEngineContext.d.ts +0 -1
  509. package/lib/hooks/useEngineContext.js +2 -10
  510. package/lib/hooks/useLocale.js +2 -7
  511. package/lib/index.d.ts +3 -16
  512. package/lib/index.js +3 -39
  513. package/lib/plus/contactInfo/components/SwipeAction/index.js +23 -23
  514. package/lib/plus/contactInfo/locales.d.ts +0 -8
  515. package/lib/plus/contactInfo/locales.js +0 -8
  516. package/lib/plus/contactInfoModal/locales.d.ts +0 -42
  517. package/lib/plus/contactInfoModal/locales.js +0 -42
  518. package/lib/plus/productSelect/components/pisellPriceText/index.js +4 -6
  519. package/lib/plus/productSelect/locales.d.ts +0 -20
  520. package/lib/plus/productSelect/locales.js +3 -23
  521. package/lib/plus/saasCreateOrganization/locales.d.ts +0 -8
  522. package/lib/plus/saasCreateOrganization/locales.js +0 -8
  523. package/lib/plus/saasLogin/locales.d.ts +0 -32
  524. package/lib/plus/saasLogin/locales.js +0 -32
  525. package/lib/plus/saasRegister/locales.d.ts +0 -76
  526. package/lib/plus/saasRegister/locales.js +0 -76
  527. package/lib/plus/selectHolder/locales.d.ts +0 -14
  528. package/lib/plus/selectHolder/locales.js +0 -14
  529. package/lib/plus/skuOptionsSelection/components/NormalCard/index.js +10 -11
  530. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.js +2 -3
  531. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +0 -2
  532. package/lib/plus/skuOptionsSelection/index.js +2 -2
  533. package/lib/plus/skuOptionsSelection/locales.d.ts +0 -20
  534. package/lib/plus/skuOptionsSelection/locales.js +0 -20
  535. package/lib/plus/skuOptionsSelection/store/store.js +1 -2
  536. package/lib/plus/skuOptionsSelection/types.d.ts +0 -14
  537. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +9 -15
  538. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +6 -9
  539. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +2 -9
  540. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +3 -7
  541. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +7 -8
  542. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +0 -2
  543. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +4 -12
  544. package/lib/plus/walletEditor/locales.d.ts +0 -88
  545. package/lib/plus/walletEditor/locales.js +0 -100
  546. package/lib/plus/walletEditor/types.d.ts +0 -2
  547. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  548. package/lib/plus/walletPassGallery/components/passDetail/index.js +5 -42
  549. package/lib/plus/walletPassGallery/components/passList/index.js +5 -12
  550. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -2
  551. package/lib/plus/walletPassGallery/components/timelineSection/index.js +2 -17
  552. package/lib/plus/walletPassGallery/index.d.ts +0 -4
  553. package/lib/plus/walletPassGallery/index.js +45 -116
  554. package/lib/plus/walletPassGallery/locales.d.ts +0 -188
  555. package/lib/plus/walletPassGallery/locales.js +0 -192
  556. package/lib/plus/walletPassGallery/serve.d.ts +1 -3
  557. package/lib/plus/walletPassGallery/serve.js +2 -2
  558. package/lib/plus/walletPassGallery/utils.d.ts +1 -1
  559. package/lib/pro/Cards/components/SKUCard/index.d.ts +56 -1
  560. package/lib/pro/Cards/components/SKUCard/index.js +15 -59
  561. package/lib/pro/Cards/components/SKUCard/index.less +2 -23
  562. package/lib/pro/Login2.0/Login2.js +8 -8
  563. package/lib/pro/Login2.0/locales.d.ts +0 -365
  564. package/lib/pro/Login2.0/locales.js +0 -365
  565. package/lib/pro/Login2.0/shared/types.d.ts +0 -2
  566. package/lib/pro/NumericStepper/index.d.ts +3 -33
  567. package/lib/pro/NumericStepper/index.js +88 -184
  568. package/lib/pro/NumericStepper/index.less +143 -287
  569. package/lib/pro/Selector/BatchSelectorDemo.js +19 -13
  570. package/lib/pro/Selector/Selector.js +17 -34
  571. package/lib/pro/Selector/SelectorGroup.d.ts +1 -1
  572. package/lib/pro/Selector/SelectorGroup.js +1 -7
  573. package/lib/pro/Selector/components/Card/index.js +8 -19
  574. package/lib/pro/Selector/components/Card/index.less +14 -30
  575. package/lib/pro/Selector/components/Indicator/index.d.ts +0 -1
  576. package/lib/pro/Selector/components/Indicator/index.js +2 -2
  577. package/lib/pro/Selector/components/Indicator/index.less +13 -16
  578. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +3 -5
  579. package/lib/pro/Selector/components/LayoutContainer/index.js +2 -130
  580. package/lib/pro/Selector/components/Media/index.d.ts +1 -1
  581. package/lib/pro/Selector/components/Media/index.js +4 -7
  582. package/lib/pro/Selector/components/Media/index.less +1 -1
  583. package/lib/pro/Selector/demo.js +1 -1
  584. package/lib/pro/Selector/hooks/usePresetItemProps.js +0 -2
  585. package/lib/pro/Selector/hooks/usePresetProps.js +6 -28
  586. package/lib/pro/Selector/locales.d.ts +0 -22
  587. package/lib/pro/Selector/locales.js +0 -50
  588. package/lib/pro/Selector/selector.less +64 -0
  589. package/lib/pro/Selector/selectorGroup.less +1 -9
  590. package/lib/pro/Selector/types.d.ts +0 -50
  591. package/lib/pro/numberKeyboard/locales.d.ts +0 -6
  592. package/lib/pro/numberKeyboard/locales.js +0 -6
  593. package/lowcode/eco-cup-list/meta.ts +1 -1
  594. package/lowcode/eco-customer-list/meta.ts +1 -1
  595. package/lowcode/selector/meta.ts +2 -15
  596. package/lowcode/selector.group/meta.ts +2 -15
  597. package/lowcode/sku-options-selection/meta.ts +2 -106
  598. package/lowcode/wallet-pass-gallery/meta.ts +1 -66
  599. package/package.json +6 -6
  600. package/es/components/ecocup/components/AddCustomerModal/index.d.ts +0 -10
  601. package/es/components/ecocup/components/AddCustomerModal/index.less +0 -9
  602. package/es/components/ecocup/components/CupActionList/index.d.ts +0 -14
  603. package/es/components/ecocup/components/CupActionList/index.js +0 -91
  604. package/es/components/ecocup/components/CupActionList/index.less +0 -102
  605. package/es/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
  606. package/es/components/ecocup/components/CupActionModal/hooks.js +0 -68
  607. package/es/components/ecocup/components/CupActionModal/index.d.ts +0 -15
  608. package/es/components/ecocup/components/CupActionModal/index.js +0 -92
  609. package/es/components/ecocup/components/CupActionModal/index.less +0 -38
  610. package/es/components/ecocup/components/CupInfoCard/index.d.ts +0 -10
  611. package/es/components/ecocup/components/CupInfoCard/index.js +0 -14
  612. package/es/components/ecocup/components/CupInfoCard/index.less +0 -11
  613. package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -36
  614. package/es/components/ecocup/components/CupStatusModal/hooks.js +0 -176
  615. package/es/components/ecocup/components/CupStatusModal/index.d.ts +0 -14
  616. package/es/components/ecocup/components/CupStatusModal/index.js +0 -281
  617. package/es/components/ecocup/components/CupStatusModal/index.less +0 -73
  618. package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
  619. package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -133
  620. package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -20
  621. package/es/components/ecocup/components/CustomerAndCupModal/index.js +0 -227
  622. package/es/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
  623. package/es/components/ecocup/components/CustomerCard/index.d.ts +0 -9
  624. package/es/components/ecocup/components/CustomerCard/index.js +0 -37
  625. package/es/components/ecocup/components/CustomerCard/index.less +0 -50
  626. package/es/components/ecocup/components/MoreDropdown/index.d.ts +0 -9
  627. package/es/components/ecocup/components/MoreDropdown/index.js +0 -33
  628. package/es/components/ecocup/components/PageHeader/index.d.ts +0 -9
  629. package/es/components/ecocup/components/PageHeader/index.js +0 -47
  630. package/es/components/ecocup/components/PageHeader/index.less +0 -31
  631. package/es/components/ecocup/components/SearchBar/const.d.ts +0 -4
  632. package/es/components/ecocup/components/SearchBar/const.js +0 -16
  633. package/es/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
  634. package/es/components/ecocup/components/SearchBar/hooks.js +0 -184
  635. package/es/components/ecocup/components/SearchBar/index.d.ts +0 -14
  636. package/es/components/ecocup/components/SearchBar/index.js +0 -248
  637. package/es/components/ecocup/components/SearchBar/index.less +0 -88
  638. package/es/components/ecocup/components/SettingModal/const.d.ts +0 -6
  639. package/es/components/ecocup/components/SettingModal/const.js +0 -17
  640. package/es/components/ecocup/components/SettingModal/index.d.ts +0 -9
  641. package/es/components/ecocup/components/SettingModal/index.js +0 -253
  642. package/es/components/ecocup/components/SettingModal/index.less +0 -9
  643. package/es/components/ecocup/cupList/const.d.ts +0 -140
  644. package/es/components/ecocup/cupList/const.js +0 -319
  645. package/es/components/ecocup/cupList/hooks/index.d.ts +0 -4
  646. package/es/components/ecocup/cupList/hooks/index.js +0 -4
  647. package/es/components/ecocup/cupList/hooks/useColumns.d.ts +0 -45
  648. package/es/components/ecocup/cupList/hooks/useColumns.js +0 -166
  649. package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -41
  650. package/es/components/ecocup/cupList/hooks/useCupApi.js +0 -312
  651. package/es/components/ecocup/cupList/hooks/useSummary.d.ts +0 -3
  652. package/es/components/ecocup/cupList/hooks/useSummary.js +0 -42
  653. package/es/components/ecocup/cupList/index.d.ts +0 -7
  654. package/es/components/ecocup/cupList/index.js +0 -268
  655. package/es/components/ecocup/cupList/index.less +0 -159
  656. package/es/components/ecocup/cupProject/const.d.ts +0 -7
  657. package/es/components/ecocup/cupProject/const.js +0 -33
  658. package/es/components/ecocup/cupProject/index.d.ts +0 -3
  659. package/es/components/ecocup/cupProject/index.js +0 -112
  660. package/es/components/ecocup/cupProject/index.less +0 -41
  661. package/es/components/ecocup/customerList/const.d.ts +0 -44
  662. package/es/components/ecocup/customerList/const.js +0 -67
  663. package/es/components/ecocup/customerList/hooks/index.d.ts +0 -3
  664. package/es/components/ecocup/customerList/hooks/index.js +0 -3
  665. package/es/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
  666. package/es/components/ecocup/customerList/hooks/useColumns.js +0 -44
  667. package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
  668. package/es/components/ecocup/customerList/hooks/useCustomerApi.js +0 -70
  669. package/es/components/ecocup/customerList/index.d.ts +0 -7
  670. package/es/components/ecocup/customerList/index.js +0 -127
  671. package/es/components/ecocup/customerList/index.less +0 -15
  672. package/es/components/ecocup/hooks.d.ts +0 -57
  673. package/es/components/ecocup/hooks.js +0 -168
  674. package/es/components/ecocup/locales.d.ts +0 -653
  675. package/es/components/ecocup/locales.js +0 -699
  676. package/es/components/ecocup/types.d.ts +0 -103
  677. package/es/components/ecocup/types.js +0 -36
  678. package/es/components/ecocup/utils/download.d.ts +0 -7
  679. package/es/components/ecocup/utils/download.js +0 -34
  680. package/es/components/ecocup/utils/index.d.ts +0 -2
  681. package/es/components/ecocup/utils/index.js +0 -2
  682. package/es/components/ecocup/utils/scanListener.d.ts +0 -20
  683. package/es/components/ecocup/utils/scanListener.js +0 -107
  684. package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +0 -59
  685. package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.js +0 -390
  686. package/es/components/systemSettings/registry/components/DataSourceTreeSelect/serve.d.ts +0 -70
  687. package/es/components/systemSettings/registry/components/DataSourceTreeSelect/serve.js +0 -367
  688. package/es/components/systemSettings/registry/components/OptionDataSource/OptionTable.d.ts +0 -8
  689. package/es/components/systemSettings/registry/components/OptionDataSource/OptionTable.js +0 -163
  690. package/es/components/systemSettings/registry/components/OptionDataSource/index.d.ts +0 -10
  691. package/es/components/systemSettings/registry/components/OptionDataSource/index.js +0 -127
  692. package/es/components/systemSettings/registry/components/OptionDataSource/index.less +0 -37
  693. package/es/hooks/useThemeTokens.d.ts +0 -7
  694. package/es/hooks/useThemeTokens.js +0 -20
  695. package/es/hooks/useTranslationOriginal.d.ts +0 -1
  696. package/es/hooks/useTranslationOriginal.js +0 -10
  697. package/es/plus/clientCard/index.d.ts +0 -7
  698. package/es/plus/clientCard/index.js +0 -462
  699. package/es/plus/clientCard/index.less +0 -515
  700. package/es/plus/clientCard/line/index.d.ts +0 -9
  701. package/es/plus/clientCard/line/index.js +0 -157
  702. package/es/plus/clientCard/line/index.less +0 -142
  703. package/es/plus/clientCard/locales.d.ts +0 -28
  704. package/es/plus/clientCard/locales.js +0 -27
  705. package/es/plus/clientCard/types.d.ts +0 -135
  706. package/es/plus/clientCard/types.js +0 -1
  707. package/es/plus/clientCard/utils.d.ts +0 -8
  708. package/es/plus/clientCard/utils.js +0 -59
  709. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -3
  710. package/es/plus/clinetSearch/Add/BirthdayField/index.js +0 -277
  711. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -3
  712. package/es/plus/clinetSearch/Add/GenderField/index.js +0 -18
  713. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -3
  714. package/es/plus/clinetSearch/Add/PhoneField/index.js +0 -52
  715. package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
  716. package/es/plus/clinetSearch/Add/PhoneField/serve.js +0 -166
  717. package/es/plus/clinetSearch/Add/index.d.ts +0 -18
  718. package/es/plus/clinetSearch/Add/index.js +0 -213
  719. package/es/plus/clinetSearch/Add/index.less +0 -30
  720. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
  721. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +0 -265
  722. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
  723. package/es/plus/clinetSearch/InfiniteScroll/index.js +0 -1
  724. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
  725. package/es/plus/clinetSearch/InfiniteScroll/types.js +0 -1
  726. package/es/plus/clinetSearch/index.d.ts +0 -18
  727. package/es/plus/clinetSearch/index.js +0 -234
  728. package/es/plus/clinetSearch/index.less +0 -95
  729. package/es/plus/clinetSearch/locales.d.ts +0 -178
  730. package/es/plus/clinetSearch/locales.js +0 -177
  731. package/es/plus/clinetSearch/serve.d.ts +0 -1
  732. package/es/plus/clinetSearch/serve.js +0 -31
  733. package/es/plus/clinetSearch/types.d.ts +0 -70
  734. package/es/plus/clinetSearch/types.js +0 -1
  735. package/es/plus/orderList/components/BatchActionBar.d.ts +0 -9
  736. package/es/plus/orderList/components/BatchActionBar.js +0 -835
  737. package/es/plus/orderList/components/FilterList.d.ts +0 -8
  738. package/es/plus/orderList/components/FilterList.js +0 -78
  739. package/es/plus/orderList/components/HandleActions.d.ts +0 -6
  740. package/es/plus/orderList/components/HandleActions.js +0 -27
  741. package/es/plus/orderList/components/QuickFilter.d.ts +0 -5
  742. package/es/plus/orderList/components/QuickFilter.js +0 -14
  743. package/es/plus/orderList/components/Reset.d.ts +0 -7
  744. package/es/plus/orderList/components/Reset.js +0 -23
  745. package/es/plus/orderList/components/Toolbar.d.ts +0 -7
  746. package/es/plus/orderList/components/Toolbar.js +0 -59
  747. package/es/plus/orderList/config.d.ts +0 -155
  748. package/es/plus/orderList/config.js +0 -786
  749. package/es/plus/orderList/index.d.ts +0 -10
  750. package/es/plus/orderList/index.js +0 -133
  751. package/es/plus/orderList/index.less +0 -125
  752. package/es/plus/orderList/locales.d.ts +0 -618
  753. package/es/plus/orderList/locales.js +0 -733
  754. package/es/plus/orderList/serve.d.ts +0 -42
  755. package/es/plus/orderList/serve.js +0 -351
  756. package/es/plus/pisellSalesGrid/PisellSalesGrid.d.ts +0 -5
  757. package/es/plus/pisellSalesGrid/PisellSalesGrid.js +0 -363
  758. package/es/plus/pisellSalesGrid/PisellSalesGrid.less +0 -16
  759. package/es/plus/pisellSalesGrid/PisellSalesGrid.stories.d.ts +0 -14
  760. package/es/plus/pisellSalesGrid/PisellSalesGrid.stories.js +0 -559
  761. package/es/plus/pisellSalesGrid/hooks/useActions.d.ts +0 -19
  762. package/es/plus/pisellSalesGrid/hooks/useActions.js +0 -723
  763. package/es/plus/pisellSalesGrid/index.d.ts +0 -4
  764. package/es/plus/pisellSalesGrid/index.js +0 -3
  765. package/es/plus/pisellSalesGrid/locales.d.ts +0 -9
  766. package/es/plus/pisellSalesGrid/locales.js +0 -8
  767. package/es/plus/pisellSalesGrid/serve.d.ts +0 -19
  768. package/es/plus/pisellSalesGrid/serve.js +0 -151
  769. package/es/plus/pisellSalesGrid/types.d.ts +0 -170
  770. package/es/plus/pisellSalesGrid/types.js +0 -1
  771. package/es/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +0 -15
  772. package/es/plus/pisellSalesManagement/components/BookingFormsPreview.js +0 -221
  773. package/es/plus/pisellSalesManagement/components/BookingNotesPreview.d.ts +0 -19
  774. package/es/plus/pisellSalesManagement/components/BookingNotesPreview.js +0 -167
  775. package/es/plus/pisellSalesManagement/components/ResourceSelector.d.ts +0 -9
  776. package/es/plus/pisellSalesManagement/components/ResourceSelector.js +0 -102
  777. package/es/plus/pisellSalesManagement/config/booking.d.ts +0 -185
  778. package/es/plus/pisellSalesManagement/config/booking.js +0 -380
  779. package/es/plus/pisellSalesManagement/config/index.d.ts +0 -2
  780. package/es/plus/pisellSalesManagement/config/index.js +0 -11
  781. package/es/plus/pisellSalesManagement/config/order.d.ts +0 -172
  782. package/es/plus/pisellSalesManagement/config/order.js +0 -460
  783. package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +0 -15
  784. package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.js +0 -66
  785. package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +0 -2
  786. package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.js +0 -651
  787. package/es/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +0 -2
  788. package/es/plus/pisellSalesManagement/hooks/useOrderPerspective.js +0 -656
  789. package/es/plus/pisellSalesManagement/hooks/usePerspectives.d.ts +0 -5
  790. package/es/plus/pisellSalesManagement/hooks/usePerspectives.js +0 -12
  791. package/es/plus/pisellSalesManagement/index.d.ts +0 -10
  792. package/es/plus/pisellSalesManagement/index.js +0 -84
  793. package/es/plus/pisellSalesManagement/locales.d.ts +0 -303
  794. package/es/plus/pisellSalesManagement/locales.js +0 -302
  795. package/es/plus/pisellSalesManagement/serve.d.ts +0 -26
  796. package/es/plus/pisellSalesManagement/serve.js +0 -222
  797. package/es/plus/saasAttendance/index.d.ts +0 -6
  798. package/es/plus/saasAttendance/index.js +0 -5
  799. package/es/plus/saasAttendance/locales.d.ts +0 -591
  800. package/es/plus/saasAttendance/locales.js +0 -657
  801. package/es/plus/saasAttendance/settings/BasicInfoTab.d.ts +0 -5
  802. package/es/plus/saasAttendance/settings/BasicInfoTab.js +0 -96
  803. package/es/plus/saasAttendance/settings/ClockInMethodTab.d.ts +0 -8
  804. package/es/plus/saasAttendance/settings/ClockInMethodTab.js +0 -81
  805. package/es/plus/saasAttendance/settings/CorrectionPolicyTab.d.ts +0 -8
  806. package/es/plus/saasAttendance/settings/CorrectionPolicyTab.js +0 -293
  807. package/es/plus/saasAttendance/settings/PermissonTab.d.ts +0 -5
  808. package/es/plus/saasAttendance/settings/PermissonTab.js +0 -79
  809. package/es/plus/saasAttendance/settings/ShiftScheduleTab.d.ts +0 -5
  810. package/es/plus/saasAttendance/settings/ShiftScheduleTab.js +0 -115
  811. package/es/plus/saasAttendance/settings/components/MapField.d.ts +0 -78
  812. package/es/plus/saasAttendance/settings/components/MapField.js +0 -848
  813. package/es/plus/saasAttendance/settings/components/index.d.ts +0 -3
  814. package/es/plus/saasAttendance/settings/components/index.js +0 -2
  815. package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +0 -8
  816. package/es/plus/saasAttendance/settings/components/membersField/index.js +0 -216
  817. package/es/plus/saasAttendance/settings/components/membersField/index.less +0 -70
  818. package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +0 -7
  819. package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +0 -149
  820. package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +0 -119
  821. package/es/plus/saasAttendance/settings/components/shiftModal/index.d.ts +0 -18
  822. package/es/plus/saasAttendance/settings/components/shiftModal/index.js +0 -438
  823. package/es/plus/saasAttendance/settings/index.d.ts +0 -18
  824. package/es/plus/saasAttendance/settings/index.js +0 -262
  825. package/es/plus/saasAttendance/settings/index.less +0 -510
  826. package/es/plus/saasAttendance/settings/serve.d.ts +0 -27
  827. package/es/plus/saasAttendance/settings/serve.js +0 -83
  828. package/es/plus/saasAttendance/settings/types.d.ts +0 -136
  829. package/es/plus/saasAttendance/settings/types.js +0 -1
  830. package/es/plus/saasRole/components/PermissionManager/index.d.ts +0 -19
  831. package/es/plus/saasRole/components/PermissionManager/index.js +0 -211
  832. package/es/plus/saasRole/components/PermissionManager/index.less +0 -71
  833. package/es/plus/saasRole/index.d.ts +0 -14
  834. package/es/plus/saasRole/index.js +0 -1036
  835. package/es/plus/saasRole/index.less +0 -196
  836. package/es/plus/saasRole/locales.d.ts +0 -319
  837. package/es/plus/saasRole/locales.js +0 -319
  838. package/es/plus/saasRole/serve.d.ts +0 -72
  839. package/es/plus/saasRole/serve.js +0 -304
  840. package/es/plus/saasRole/types.d.ts +0 -177
  841. package/es/plus/saasRole/types.js +0 -1
  842. package/es/plus/saasRole/utils.d.ts +0 -0
  843. package/es/plus/saasRole/utils.js +0 -0
  844. package/es/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.d.ts +0 -31
  845. package/es/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.js +0 -503
  846. package/es/plus/saasTeamMembers/components/MemberDrawer/index.d.ts +0 -23
  847. package/es/plus/saasTeamMembers/components/MemberDrawer/index.js +0 -634
  848. package/es/plus/saasTeamMembers/components/MemberDrawer/index.less +0 -178
  849. package/es/plus/saasTeamMembers/index.d.ts +0 -5
  850. package/es/plus/saasTeamMembers/index.js +0 -529
  851. package/es/plus/saasTeamMembers/index.less +0 -87
  852. package/es/plus/saasTeamMembers/locales.d.ts +0 -546
  853. package/es/plus/saasTeamMembers/locales.js +0 -591
  854. package/es/plus/saasTeamMembers/serve.d.ts +0 -95
  855. package/es/plus/saasTeamMembers/serve.js +0 -374
  856. package/es/plus/saasTeamMembers/type.d.ts +0 -158
  857. package/es/plus/saasTeamMembers/type.js +0 -1
  858. package/es/pro/Cards/components/SKUCard/locales.d.ts +0 -12
  859. package/es/pro/Cards/components/SKUCard/locales.js +0 -11
  860. package/es/pro/Cards/components/SKUCard/types.d.ts +0 -73
  861. package/es/pro/Cards/components/SKUCard/types.js +0 -1
  862. package/es/pro/Selector/components/LayoutContainer/index.less +0 -19
  863. package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +0 -11
  864. package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.js +0 -54
  865. package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.less +0 -28
  866. package/es/pro/comprehensiveSearch/components/index.d.ts +0 -2
  867. package/es/pro/comprehensiveSearch/components/index.js +0 -2
  868. package/es/pro/comprehensiveSearch/components/searchSection/index.d.ts +0 -24
  869. package/es/pro/comprehensiveSearch/components/searchSection/index.js +0 -141
  870. package/es/pro/comprehensiveSearch/components/searchSection/index.less +0 -100
  871. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -23
  872. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +0 -22
  873. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
  874. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -24
  875. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
  876. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -44
  877. package/es/pro/comprehensiveSearch/index.d.ts +0 -7
  878. package/es/pro/comprehensiveSearch/index.js +0 -207
  879. package/es/pro/comprehensiveSearch/index.less +0 -196
  880. package/es/pro/comprehensiveSearch/locales.d.ts +0 -23
  881. package/es/pro/comprehensiveSearch/locales.js +0 -22
  882. package/es/pro/comprehensiveSearch/types.d.ts +0 -32
  883. package/es/pro/comprehensiveSearch/types.js +0 -1
  884. package/es/pro/keyboards/index.d.ts +0 -2
  885. package/es/pro/keyboards/index.js +0 -1
  886. package/es/pro/keyboards/locales.d.ts +0 -38
  887. package/es/pro/keyboards/locales.js +0 -57
  888. package/es/pro/keyboards/numberKeyboard/index.d.ts +0 -16
  889. package/es/pro/keyboards/numberKeyboard/index.js +0 -523
  890. package/es/pro/keyboards/numberKeyboard/index.less +0 -59
  891. package/es/pro/keyboards/numberKeyboard/types.d.ts +0 -63
  892. package/es/pro/keyboards/numberKeyboard/types.js +0 -1
  893. package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -13
  894. package/es/pro/pisellPhoneKeyboard/index.js +0 -210
  895. package/es/pro/pisellPhoneKeyboard/index.less +0 -157
  896. package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -18
  897. package/es/pro/pisellPhoneKeyboard/locales.js +0 -17
  898. package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +0 -10
  899. package/lib/components/ecocup/components/AddCustomerModal/index.js +0 -212
  900. package/lib/components/ecocup/components/AddCustomerModal/index.less +0 -9
  901. package/lib/components/ecocup/components/CupActionList/index.d.ts +0 -14
  902. package/lib/components/ecocup/components/CupActionList/index.js +0 -116
  903. package/lib/components/ecocup/components/CupActionList/index.less +0 -102
  904. package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
  905. package/lib/components/ecocup/components/CupActionModal/hooks.js +0 -55
  906. package/lib/components/ecocup/components/CupActionModal/index.d.ts +0 -15
  907. package/lib/components/ecocup/components/CupActionModal/index.js +0 -125
  908. package/lib/components/ecocup/components/CupActionModal/index.less +0 -38
  909. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +0 -10
  910. package/lib/components/ecocup/components/CupInfoCard/index.js +0 -43
  911. package/lib/components/ecocup/components/CupInfoCard/index.less +0 -11
  912. package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -36
  913. package/lib/components/ecocup/components/CupStatusModal/hooks.js +0 -115
  914. package/lib/components/ecocup/components/CupStatusModal/index.d.ts +0 -14
  915. package/lib/components/ecocup/components/CupStatusModal/index.js +0 -221
  916. package/lib/components/ecocup/components/CupStatusModal/index.less +0 -73
  917. package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
  918. package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -89
  919. package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -20
  920. package/lib/components/ecocup/components/CustomerAndCupModal/index.js +0 -178
  921. package/lib/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
  922. package/lib/components/ecocup/components/CustomerCard/index.d.ts +0 -9
  923. package/lib/components/ecocup/components/CustomerCard/index.js +0 -58
  924. package/lib/components/ecocup/components/CustomerCard/index.less +0 -50
  925. package/lib/components/ecocup/components/MoreDropdown/index.d.ts +0 -9
  926. package/lib/components/ecocup/components/PageHeader/index.d.ts +0 -9
  927. package/lib/components/ecocup/components/PageHeader/index.js +0 -66
  928. package/lib/components/ecocup/components/PageHeader/index.less +0 -31
  929. package/lib/components/ecocup/components/SearchBar/const.d.ts +0 -4
  930. package/lib/components/ecocup/components/SearchBar/const.js +0 -50
  931. package/lib/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
  932. package/lib/components/ecocup/components/SearchBar/hooks.js +0 -135
  933. package/lib/components/ecocup/components/SearchBar/index.d.ts +0 -14
  934. package/lib/components/ecocup/components/SearchBar/index.js +0 -226
  935. package/lib/components/ecocup/components/SearchBar/index.less +0 -88
  936. package/lib/components/ecocup/components/SettingModal/const.d.ts +0 -6
  937. package/lib/components/ecocup/components/SettingModal/const.js +0 -48
  938. package/lib/components/ecocup/components/SettingModal/index.d.ts +0 -9
  939. package/lib/components/ecocup/components/SettingModal/index.js +0 -199
  940. package/lib/components/ecocup/components/SettingModal/index.less +0 -9
  941. package/lib/components/ecocup/cupList/const.d.ts +0 -140
  942. package/lib/components/ecocup/cupList/const.js +0 -344
  943. package/lib/components/ecocup/cupList/hooks/index.d.ts +0 -4
  944. package/lib/components/ecocup/cupList/hooks/index.js +0 -43
  945. package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +0 -45
  946. package/lib/components/ecocup/cupList/hooks/useColumns.js +0 -200
  947. package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -41
  948. package/lib/components/ecocup/cupList/hooks/useCupApi.js +0 -227
  949. package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +0 -3
  950. package/lib/components/ecocup/cupList/hooks/useSummary.js +0 -83
  951. package/lib/components/ecocup/cupList/index.d.ts +0 -7
  952. package/lib/components/ecocup/cupList/index.js +0 -262
  953. package/lib/components/ecocup/cupList/index.less +0 -159
  954. package/lib/components/ecocup/cupProject/const.d.ts +0 -7
  955. package/lib/components/ecocup/cupProject/const.js +0 -65
  956. package/lib/components/ecocup/cupProject/index.d.ts +0 -3
  957. package/lib/components/ecocup/cupProject/index.js +0 -135
  958. package/lib/components/ecocup/cupProject/index.less +0 -41
  959. package/lib/components/ecocup/customerList/const.d.ts +0 -44
  960. package/lib/components/ecocup/customerList/const.js +0 -93
  961. package/lib/components/ecocup/customerList/hooks/index.d.ts +0 -3
  962. package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
  963. package/lib/components/ecocup/customerList/hooks/useColumns.js +0 -89
  964. package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
  965. package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +0 -56
  966. package/lib/components/ecocup/customerList/index.d.ts +0 -7
  967. package/lib/components/ecocup/customerList/index.js +0 -138
  968. package/lib/components/ecocup/customerList/index.less +0 -15
  969. package/lib/components/ecocup/hooks.d.ts +0 -57
  970. package/lib/components/ecocup/hooks.js +0 -169
  971. package/lib/components/ecocup/locales.d.ts +0 -653
  972. package/lib/components/ecocup/locales.js +0 -706
  973. package/lib/components/ecocup/types.d.ts +0 -103
  974. package/lib/components/ecocup/types.js +0 -57
  975. package/lib/components/ecocup/utils/download.d.ts +0 -7
  976. package/lib/components/ecocup/utils/download.js +0 -47
  977. package/lib/components/ecocup/utils/index.d.ts +0 -2
  978. package/lib/components/ecocup/utils/index.js +0 -42
  979. package/lib/components/ecocup/utils/scanListener.d.ts +0 -20
  980. package/lib/components/ecocup/utils/scanListener.js +0 -90
  981. package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +0 -59
  982. package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.js +0 -228
  983. package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/serve.d.ts +0 -70
  984. package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/serve.js +0 -195
  985. package/lib/components/systemSettings/registry/components/OptionDataSource/OptionTable.d.ts +0 -8
  986. package/lib/components/systemSettings/registry/components/OptionDataSource/OptionTable.js +0 -166
  987. package/lib/components/systemSettings/registry/components/OptionDataSource/index.d.ts +0 -10
  988. package/lib/components/systemSettings/registry/components/OptionDataSource/index.js +0 -210
  989. package/lib/components/systemSettings/registry/components/OptionDataSource/index.less +0 -37
  990. package/lib/hooks/useThemeTokens.d.ts +0 -7
  991. package/lib/hooks/useThemeTokens.js +0 -40
  992. package/lib/hooks/useTranslationOriginal.d.ts +0 -1
  993. package/lib/hooks/useTranslationOriginal.js +0 -42
  994. package/lib/plus/clientCard/index.d.ts +0 -7
  995. package/lib/plus/clientCard/index.js +0 -457
  996. package/lib/plus/clientCard/index.less +0 -515
  997. package/lib/plus/clientCard/line/index.d.ts +0 -9
  998. package/lib/plus/clientCard/line/index.js +0 -153
  999. package/lib/plus/clientCard/line/index.less +0 -142
  1000. package/lib/plus/clientCard/locales.d.ts +0 -28
  1001. package/lib/plus/clientCard/locales.js +0 -51
  1002. package/lib/plus/clientCard/types.d.ts +0 -135
  1003. package/lib/plus/clientCard/types.js +0 -17
  1004. package/lib/plus/clientCard/utils.d.ts +0 -8
  1005. package/lib/plus/clientCard/utils.js +0 -75
  1006. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -3
  1007. package/lib/plus/clinetSearch/Add/BirthdayField/index.js +0 -256
  1008. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -3
  1009. package/lib/plus/clinetSearch/Add/GenderField/index.js +0 -52
  1010. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -3
  1011. package/lib/plus/clinetSearch/Add/PhoneField/index.js +0 -78
  1012. package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
  1013. package/lib/plus/clinetSearch/Add/PhoneField/serve.js +0 -193
  1014. package/lib/plus/clinetSearch/Add/index.d.ts +0 -18
  1015. package/lib/plus/clinetSearch/Add/index.js +0 -244
  1016. package/lib/plus/clinetSearch/Add/index.less +0 -30
  1017. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
  1018. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +0 -235
  1019. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
  1020. package/lib/plus/clinetSearch/InfiniteScroll/index.js +0 -35
  1021. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
  1022. package/lib/plus/clinetSearch/InfiniteScroll/types.js +0 -17
  1023. package/lib/plus/clinetSearch/index.d.ts +0 -18
  1024. package/lib/plus/clinetSearch/index.js +0 -237
  1025. package/lib/plus/clinetSearch/index.less +0 -95
  1026. package/lib/plus/clinetSearch/locales.d.ts +0 -178
  1027. package/lib/plus/clinetSearch/locales.js +0 -201
  1028. package/lib/plus/clinetSearch/serve.d.ts +0 -1
  1029. package/lib/plus/clinetSearch/types.d.ts +0 -70
  1030. package/lib/plus/clinetSearch/types.js +0 -17
  1031. package/lib/plus/orderList/components/BatchActionBar.d.ts +0 -9
  1032. package/lib/plus/orderList/components/BatchActionBar.js +0 -567
  1033. package/lib/plus/orderList/components/FilterList.d.ts +0 -8
  1034. package/lib/plus/orderList/components/FilterList.js +0 -121
  1035. package/lib/plus/orderList/components/HandleActions.d.ts +0 -6
  1036. package/lib/plus/orderList/components/HandleActions.js +0 -52
  1037. package/lib/plus/orderList/components/QuickFilter.d.ts +0 -5
  1038. package/lib/plus/orderList/components/QuickFilter.js +0 -43
  1039. package/lib/plus/orderList/components/Reset.d.ts +0 -7
  1040. package/lib/plus/orderList/components/Reset.js +0 -58
  1041. package/lib/plus/orderList/components/Toolbar.d.ts +0 -7
  1042. package/lib/plus/orderList/components/Toolbar.js +0 -68
  1043. package/lib/plus/orderList/config.d.ts +0 -155
  1044. package/lib/plus/orderList/config.js +0 -764
  1045. package/lib/plus/orderList/index.d.ts +0 -10
  1046. package/lib/plus/orderList/index.js +0 -132
  1047. package/lib/plus/orderList/index.less +0 -125
  1048. package/lib/plus/orderList/locales.d.ts +0 -618
  1049. package/lib/plus/orderList/locales.js +0 -737
  1050. package/lib/plus/orderList/serve.d.ts +0 -42
  1051. package/lib/plus/orderList/serve.js +0 -177
  1052. package/lib/plus/pisellSalesGrid/PisellSalesGrid.d.ts +0 -5
  1053. package/lib/plus/pisellSalesGrid/PisellSalesGrid.js +0 -339
  1054. package/lib/plus/pisellSalesGrid/PisellSalesGrid.less +0 -16
  1055. package/lib/plus/pisellSalesGrid/PisellSalesGrid.stories.d.ts +0 -14
  1056. package/lib/plus/pisellSalesGrid/PisellSalesGrid.stories.js +0 -455
  1057. package/lib/plus/pisellSalesGrid/hooks/useActions.d.ts +0 -19
  1058. package/lib/plus/pisellSalesGrid/hooks/useActions.js +0 -545
  1059. package/lib/plus/pisellSalesGrid/index.d.ts +0 -4
  1060. package/lib/plus/pisellSalesGrid/index.js +0 -42
  1061. package/lib/plus/pisellSalesGrid/locales.d.ts +0 -9
  1062. package/lib/plus/pisellSalesGrid/locales.js +0 -29
  1063. package/lib/plus/pisellSalesGrid/serve.d.ts +0 -19
  1064. package/lib/plus/pisellSalesGrid/serve.js +0 -142
  1065. package/lib/plus/pisellSalesGrid/types.d.ts +0 -170
  1066. package/lib/plus/pisellSalesGrid/types.js +0 -17
  1067. package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +0 -15
  1068. package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.js +0 -253
  1069. package/lib/plus/pisellSalesManagement/components/BookingNotesPreview.d.ts +0 -19
  1070. package/lib/plus/pisellSalesManagement/components/BookingNotesPreview.js +0 -193
  1071. package/lib/plus/pisellSalesManagement/components/ResourceSelector.d.ts +0 -9
  1072. package/lib/plus/pisellSalesManagement/components/ResourceSelector.js +0 -106
  1073. package/lib/plus/pisellSalesManagement/config/booking.d.ts +0 -185
  1074. package/lib/plus/pisellSalesManagement/config/booking.js +0 -500
  1075. package/lib/plus/pisellSalesManagement/config/index.d.ts +0 -2
  1076. package/lib/plus/pisellSalesManagement/config/index.js +0 -43
  1077. package/lib/plus/pisellSalesManagement/config/order.d.ts +0 -172
  1078. package/lib/plus/pisellSalesManagement/config/order.js +0 -492
  1079. package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +0 -15
  1080. package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.js +0 -113
  1081. package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +0 -2
  1082. package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.js +0 -699
  1083. package/lib/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +0 -2
  1084. package/lib/plus/pisellSalesManagement/hooks/useOrderPerspective.js +0 -700
  1085. package/lib/plus/pisellSalesManagement/hooks/usePerspectives.d.ts +0 -5
  1086. package/lib/plus/pisellSalesManagement/hooks/usePerspectives.js +0 -42
  1087. package/lib/plus/pisellSalesManagement/index.d.ts +0 -10
  1088. package/lib/plus/pisellSalesManagement/index.js +0 -113
  1089. package/lib/plus/pisellSalesManagement/locales.d.ts +0 -303
  1090. package/lib/plus/pisellSalesManagement/locales.js +0 -326
  1091. package/lib/plus/pisellSalesManagement/serve.d.ts +0 -26
  1092. package/lib/plus/pisellSalesManagement/serve.js +0 -120
  1093. package/lib/plus/saasAttendance/index.d.ts +0 -6
  1094. package/lib/plus/saasAttendance/index.js +0 -39
  1095. package/lib/plus/saasAttendance/locales.d.ts +0 -591
  1096. package/lib/plus/saasAttendance/locales.js +0 -615
  1097. package/lib/plus/saasAttendance/settings/BasicInfoTab.d.ts +0 -5
  1098. package/lib/plus/saasAttendance/settings/BasicInfoTab.js +0 -152
  1099. package/lib/plus/saasAttendance/settings/ClockInMethodTab.d.ts +0 -8
  1100. package/lib/plus/saasAttendance/settings/ClockInMethodTab.js +0 -88
  1101. package/lib/plus/saasAttendance/settings/CorrectionPolicyTab.d.ts +0 -8
  1102. package/lib/plus/saasAttendance/settings/CorrectionPolicyTab.js +0 -369
  1103. package/lib/plus/saasAttendance/settings/PermissonTab.d.ts +0 -5
  1104. package/lib/plus/saasAttendance/settings/PermissonTab.js +0 -128
  1105. package/lib/plus/saasAttendance/settings/ShiftScheduleTab.d.ts +0 -5
  1106. package/lib/plus/saasAttendance/settings/ShiftScheduleTab.js +0 -107
  1107. package/lib/plus/saasAttendance/settings/components/MapField.d.ts +0 -78
  1108. package/lib/plus/saasAttendance/settings/components/MapField.js +0 -670
  1109. package/lib/plus/saasAttendance/settings/components/index.d.ts +0 -3
  1110. package/lib/plus/saasAttendance/settings/components/index.js +0 -42
  1111. package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +0 -8
  1112. package/lib/plus/saasAttendance/settings/components/membersField/index.js +0 -247
  1113. package/lib/plus/saasAttendance/settings/components/membersField/index.less +0 -70
  1114. package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +0 -7
  1115. package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +0 -150
  1116. package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +0 -119
  1117. package/lib/plus/saasAttendance/settings/components/shiftModal/index.d.ts +0 -18
  1118. package/lib/plus/saasAttendance/settings/components/shiftModal/index.js +0 -447
  1119. package/lib/plus/saasAttendance/settings/index.d.ts +0 -18
  1120. package/lib/plus/saasAttendance/settings/index.js +0 -295
  1121. package/lib/plus/saasAttendance/settings/index.less +0 -510
  1122. package/lib/plus/saasAttendance/settings/serve.d.ts +0 -27
  1123. package/lib/plus/saasAttendance/settings/types.d.ts +0 -136
  1124. package/lib/plus/saasAttendance/settings/types.js +0 -17
  1125. package/lib/plus/saasRole/components/PermissionManager/index.d.ts +0 -19
  1126. package/lib/plus/saasRole/components/PermissionManager/index.js +0 -159
  1127. package/lib/plus/saasRole/components/PermissionManager/index.less +0 -71
  1128. package/lib/plus/saasRole/index.d.ts +0 -14
  1129. package/lib/plus/saasRole/index.js +0 -780
  1130. package/lib/plus/saasRole/index.less +0 -196
  1131. package/lib/plus/saasRole/locales.d.ts +0 -319
  1132. package/lib/plus/saasRole/locales.js +0 -345
  1133. package/lib/plus/saasRole/serve.d.ts +0 -72
  1134. package/lib/plus/saasRole/serve.js +0 -100
  1135. package/lib/plus/saasRole/types.d.ts +0 -177
  1136. package/lib/plus/saasRole/types.js +0 -17
  1137. package/lib/plus/saasRole/utils.d.ts +0 -0
  1138. package/lib/plus/saasRole/utils.js +0 -0
  1139. package/lib/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.d.ts +0 -31
  1140. package/lib/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.js +0 -393
  1141. package/lib/plus/saasTeamMembers/components/MemberDrawer/index.d.ts +0 -23
  1142. package/lib/plus/saasTeamMembers/components/MemberDrawer/index.js +0 -672
  1143. package/lib/plus/saasTeamMembers/components/MemberDrawer/index.less +0 -178
  1144. package/lib/plus/saasTeamMembers/index.d.ts +0 -5
  1145. package/lib/plus/saasTeamMembers/index.js +0 -448
  1146. package/lib/plus/saasTeamMembers/index.less +0 -87
  1147. package/lib/plus/saasTeamMembers/locales.d.ts +0 -546
  1148. package/lib/plus/saasTeamMembers/locales.js +0 -617
  1149. package/lib/plus/saasTeamMembers/serve.d.ts +0 -95
  1150. package/lib/plus/saasTeamMembers/serve.js +0 -132
  1151. package/lib/plus/saasTeamMembers/type.d.ts +0 -158
  1152. package/lib/plus/saasTeamMembers/type.js +0 -17
  1153. package/lib/pro/Cards/components/SKUCard/locales.d.ts +0 -12
  1154. package/lib/pro/Cards/components/SKUCard/locales.js +0 -35
  1155. package/lib/pro/Cards/components/SKUCard/types.d.ts +0 -73
  1156. package/lib/pro/Cards/components/SKUCard/types.js +0 -17
  1157. package/lib/pro/Selector/components/LayoutContainer/index.less +0 -19
  1158. package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +0 -11
  1159. package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.js +0 -64
  1160. package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.less +0 -28
  1161. package/lib/pro/comprehensiveSearch/components/index.d.ts +0 -2
  1162. package/lib/pro/comprehensiveSearch/components/index.js +0 -42
  1163. package/lib/pro/comprehensiveSearch/components/searchSection/index.d.ts +0 -24
  1164. package/lib/pro/comprehensiveSearch/components/searchSection/index.js +0 -154
  1165. package/lib/pro/comprehensiveSearch/components/searchSection/index.less +0 -100
  1166. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -23
  1167. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +0 -46
  1168. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
  1169. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -56
  1170. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
  1171. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -70
  1172. package/lib/pro/comprehensiveSearch/index.d.ts +0 -7
  1173. package/lib/pro/comprehensiveSearch/index.js +0 -190
  1174. package/lib/pro/comprehensiveSearch/index.less +0 -196
  1175. package/lib/pro/comprehensiveSearch/locales.d.ts +0 -23
  1176. package/lib/pro/comprehensiveSearch/locales.js +0 -46
  1177. package/lib/pro/comprehensiveSearch/types.d.ts +0 -32
  1178. package/lib/pro/comprehensiveSearch/types.js +0 -17
  1179. package/lib/pro/keyboards/index.d.ts +0 -2
  1180. package/lib/pro/keyboards/index.js +0 -39
  1181. package/lib/pro/keyboards/locales.d.ts +0 -38
  1182. package/lib/pro/keyboards/locales.js +0 -61
  1183. package/lib/pro/keyboards/numberKeyboard/index.d.ts +0 -16
  1184. package/lib/pro/keyboards/numberKeyboard/index.js +0 -400
  1185. package/lib/pro/keyboards/numberKeyboard/index.less +0 -59
  1186. package/lib/pro/keyboards/numberKeyboard/types.d.ts +0 -63
  1187. package/lib/pro/keyboards/numberKeyboard/types.js +0 -17
  1188. package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -13
  1189. package/lib/pro/pisellPhoneKeyboard/index.js +0 -219
  1190. package/lib/pro/pisellPhoneKeyboard/index.less +0 -157
  1191. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -18
  1192. package/lib/pro/pisellPhoneKeyboard/locales.js +0 -41
  1193. package/lowcode/client-card/fragments/cardStyle.ts +0 -63
  1194. package/lowcode/client-card/fragments/nameStyle.ts +0 -34
  1195. package/lowcode/client-card/fragments/pisellAvatar.ts +0 -87
  1196. package/lowcode/client-card/fragments/tagConfig.ts +0 -88
  1197. package/lowcode/client-card/meta.ts +0 -343
  1198. package/lowcode/client-search/meta.ts +0 -316
  1199. package/lowcode/ecocup-cup-list/meta.ts +0 -38
  1200. package/lowcode/ecocup-cup-project/meta.ts +0 -35
  1201. package/lowcode/ecocup-customer-list/meta.ts +0 -38
  1202. package/lowcode/order-list/meta.ts +0 -87
  1203. package/lowcode/pisell-sales-management/meta.ts +0 -88
  1204. package/lowcode/saas-attendance-settings/meta.ts +0 -56
  1205. package/lowcode/saas-role/meta.ts +0 -35
  1206. package/lowcode/saas-team-members/meta.ts +0 -35
@@ -1,47 +0,0 @@
1
- import React from 'react';
2
- import { PageHeader } from '@pisell/materials';
3
- import { LeftOutlined } from '@ant-design/icons';
4
- import useEngineContext from "../../../../hooks/useEngineContext";
5
- import { useGetApp } from "../../hooks";
6
- import "./index.less";
7
- var prefixCls = 'ecocup-page-header';
8
- var CustomPageHeader = function CustomPageHeader(props) {
9
- var _context$appHelper;
10
- var title = props.title,
11
- rightContent = props.rightContent,
12
- _props$isReturn = props.isReturn,
13
- isReturn = _props$isReturn === void 0 ? true : _props$isReturn;
14
- var context = useEngineContext();
15
- var _ref = (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
16
- history = _ref.history;
17
- var app = useGetApp();
18
- var onBack = function onBack() {
19
- if (!isReturn) return;
20
- if (app !== null && app !== void 0 && app.history) {
21
- var _app$history;
22
- (_app$history = app.history) === null || _app$history === void 0 || _app$history.goBack();
23
- } else {
24
- var _history$goBack;
25
- history === null || history === void 0 || (_history$goBack = history.goBack) === null || _history$goBack === void 0 || _history$goBack.call(history);
26
- }
27
- };
28
- return /*#__PURE__*/React.createElement("div", {
29
- className: prefixCls,
30
- onClick: onBack
31
- }, /*#__PURE__*/React.createElement("div", {
32
- className: "".concat(prefixCls, "-left-container")
33
- }, isReturn ? /*#__PURE__*/React.createElement(LeftOutlined, {
34
- style: {
35
- fontSize: 18
36
- }
37
- }) : null, /*#__PURE__*/React.createElement(PageHeader, {
38
- title: title,
39
- showTitle: true
40
- })), /*#__PURE__*/React.createElement("div", {
41
- className: "".concat(prefixCls, "-right-container"),
42
- onClick: function onClick(e) {
43
- return e.stopPropagation();
44
- }
45
- }, rightContent || ''));
46
- };
47
- export default CustomPageHeader;
@@ -1,31 +0,0 @@
1
- @prefixCls: ecocup-page-header;
2
-
3
- .@{prefixCls} {
4
- display: flex;
5
- align-items: center;
6
- justify-content: space-between;
7
- width: 100%;
8
- margin-bottom: 12px;
9
- cursor: pointer;
10
- color: #fff;
11
-
12
- .pisell-lowcode-page-header-wrap {
13
- margin: 0;
14
- }
15
-
16
- .pisell-lowcode-page-header-title {
17
- color: #fff !important;
18
- }
19
-
20
- &-left-container {
21
- display: flex;
22
- align-items: center;
23
- gap: 16px;
24
- }
25
-
26
- &-right-container {
27
- flex-shrink: 0;
28
- display: flex;
29
- justify-content: flex-end;
30
- }
31
- }
@@ -1,4 +0,0 @@
1
- export declare const SEARCH_BAR_RESULT_HEADER_CONFIG: {
2
- key: string;
3
- label: string;
4
- }[];
@@ -1,16 +0,0 @@
1
- export var SEARCH_BAR_RESULT_HEADER_CONFIG = [{
2
- key: 'name',
3
- label: 'pisell2.text.cup-project.search-bar.result.header.name'
4
- }, {
5
- key: 'registrationTime',
6
- label: 'pisell2.text.cup-project.search-bar.result.header.registrationTime'
7
- }, {
8
- key: 'phone',
9
- label: 'pisell2.text.cup-project.search-bar.result.header.phone'
10
- }, {
11
- key: 'email',
12
- label: 'pisell2.text.cup-project.search-bar.result.header.email'
13
- }, {
14
- key: 'membership',
15
- label: 'pisell2.text.cup-project.search-bar.result.header.membership'
16
- }];
@@ -1,44 +0,0 @@
1
- import { ECupScanStatus, ICup } from '../../types';
2
- /**
3
- * @description: 搜索客户
4
- */
5
- export declare const useSearchCustomer: () => {
6
- run: (text: string) => any;
7
- };
8
- /**
9
- * @description: 搜索杯码
10
- */
11
- export declare const useSearchCup: () => {
12
- run: (text: string) => any;
13
- };
14
- /**
15
- * 搜索
16
- */
17
- export declare const useSearch: () => {
18
- loading: boolean;
19
- run: (params: {
20
- searchType?: 'customer' | 'cup';
21
- searchText?: string;
22
- }) => Promise<{
23
- status: string;
24
- message: any;
25
- type?: undefined;
26
- data?: undefined;
27
- } | {
28
- status: string;
29
- type: "customer" | "cup";
30
- data: any;
31
- message?: undefined;
32
- } | {
33
- status: string;
34
- type: "customer" | "cup";
35
- message: any;
36
- data?: undefined;
37
- }>;
38
- };
39
- /**
40
- * 判定当前杯子的状态
41
- */
42
- export declare const useCupScanStatus: () => {
43
- getCupScanStatus: (cup?: ICup, customerId?: string) => ECupScanStatus.OTHER_IN_STOCK | ECupScanStatus.OTHER_RENT | ECupScanStatus.MISSING | ECupScanStatus.BROKEN | ECupScanStatus.NOT_FOUND | undefined;
44
- };
@@ -1,184 +0,0 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
- import { useState } from 'react';
12
- import { locales } from '@pisell/utils';
13
- import { useGetShopId, useRequest } from "../../hooks";
14
- import { ECupStatus, ECupScanStatus } from "../../types";
15
- import { useGetGoalShopInfo } from "../../hooks";
16
-
17
- /**
18
- * @description: 搜索客户
19
- */
20
- export var useSearchCustomer = function useSearchCustomer() {
21
- var _useRequest = useRequest(),
22
- get = _useRequest.get;
23
- var _useGetGoalShopInfo = useGetGoalShopInfo(),
24
- goalShopId = _useGetGoalShopInfo.goalShopId;
25
- var run = function run(text) {
26
- if (!text) return;
27
- return get('/shop/wallet/eco/customer', {
28
- search: text,
29
- with: ['tags'],
30
- goal_shop_id: goalShopId
31
- });
32
- };
33
- return {
34
- run: run
35
- };
36
- };
37
-
38
- /**
39
- * @description: 搜索杯码
40
- */
41
- export var useSearchCup = function useSearchCup() {
42
- var _useRequest2 = useRequest(),
43
- get = _useRequest2.get;
44
- var _useGetGoalShopInfo2 = useGetGoalShopInfo(),
45
- goalShopId = _useGetGoalShopInfo2.goalShopId;
46
- var run = function run(text) {
47
- if (!text) return;
48
- return get('/shop/wallet/eco', {
49
- type: 'eco',
50
- code: text,
51
- with: ['customer:id,display_name,cover,phone,country_calling_code,nickname', 'rentShop:id,name', 'returnShop:id,name', 'currentShop:id,name'],
52
- num: 1,
53
- goal_shop_id: goalShopId
54
- });
55
- };
56
- return {
57
- run: run
58
- };
59
- };
60
-
61
- /**
62
- * 搜索
63
- */
64
- export var useSearch = function useSearch() {
65
- var searchCustomer = useSearchCustomer();
66
- var searchCup = useSearchCup();
67
- var _useState = useState(false),
68
- _useState2 = _slicedToArray(_useState, 2),
69
- loading = _useState2[0],
70
- setLoading = _useState2[1];
71
- var run = /*#__PURE__*/function () {
72
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
73
- var searchType, _params$searchText, searchText, isCupCode, type, runFn, _res$data, res, _res$data2;
74
- return _regeneratorRuntime().wrap(function _callee$(_context) {
75
- while (1) switch (_context.prev = _context.next) {
76
- case 0:
77
- searchType = params.searchType, _params$searchText = params.searchText, searchText = _params$searchText === void 0 ? '' : _params$searchText; // 正则判断是否是杯码: 以EC开头,且长度为10位,EA后面不确定是数字还是英文
78
- isCupCode = /^EC[a-zA-Z0-9]{8}$/.test(searchText);
79
- if (!(searchType === 'cup' && !isCupCode)) {
80
- _context.next = 4;
81
- break;
82
- }
83
- return _context.abrupt("return", {
84
- status: 'failed',
85
- message: locales.getText('pisell2.text.ecocup.search-bar.search-tip')
86
- });
87
- case 4:
88
- // 优先使用外部传入的type
89
- type = !!searchType ? searchType : isCupCode ? 'cup' : 'customer';
90
- runFn = type === 'cup' ? searchCup.run : searchCustomer.run;
91
- _context.prev = 6;
92
- setLoading(true);
93
- _context.next = 10;
94
- return runFn(searchText);
95
- case 10:
96
- res = _context.sent;
97
- if (!(res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && _res$data.list)) {
98
- _context.next = 15;
99
- break;
100
- }
101
- return _context.abrupt("return", {
102
- status: 'success',
103
- type: type,
104
- data: (res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.list) || []
105
- });
106
- case 15:
107
- return _context.abrupt("return", {
108
- status: 'failed',
109
- type: type,
110
- message: (res === null || res === void 0 ? void 0 : res.message) || ''
111
- });
112
- case 16:
113
- _context.next = 21;
114
- break;
115
- case 18:
116
- _context.prev = 18;
117
- _context.t0 = _context["catch"](6);
118
- return _context.abrupt("return", {
119
- status: 'failed',
120
- type: type,
121
- message: (_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.message) || ''
122
- });
123
- case 21:
124
- _context.prev = 21;
125
- setLoading(false);
126
- return _context.finish(21);
127
- case 24:
128
- case "end":
129
- return _context.stop();
130
- }
131
- }, _callee, null, [[6, 18, 21, 24]]);
132
- }));
133
- return function run(_x) {
134
- return _ref.apply(this, arguments);
135
- };
136
- }();
137
- return {
138
- loading: loading,
139
- run: run
140
- };
141
- };
142
-
143
- /**
144
- * 判定当前杯子的状态
145
- */
146
- export var useCupScanStatus = function useCupScanStatus() {
147
- var shopId = useGetShopId();
148
- var getCupScanStatus = function getCupScanStatus(cup, customerId) {
149
- if (!cup) {
150
- return ECupScanStatus.NOT_FOUND;
151
- }
152
- // 判定当前杯子的状态
153
- // 1. 当前杯子是 in_stock 状态
154
- // -- a. 当前杯子属于当前门店(无需额外操作)
155
- // -- b. 当前杯子不属于当前门店
156
- if ((cup === null || cup === void 0 ? void 0 : cup.status) == ECupStatus.IN_STOCK) {
157
- if ((cup === null || cup === void 0 ? void 0 : cup.current_shop_id) != shopId) {
158
- return ECupScanStatus.OTHER_IN_STOCK;
159
- }
160
- }
161
-
162
- // 2. 当前杯子是 rent 状态
163
- // -- a. 杯子属于当前操作人(无需额外操作)
164
- // -- b. 杯子不属于当前操作人
165
- if ((cup === null || cup === void 0 ? void 0 : cup.status) == ECupStatus.RENT) {
166
- if ((cup === null || cup === void 0 ? void 0 : cup.customer_id) != customerId) {
167
- return ECupScanStatus.OTHER_RENT;
168
- }
169
- }
170
-
171
- // 3. 当前杯子是 missing 状态
172
- if ((cup === null || cup === void 0 ? void 0 : cup.status) == ECupStatus.MISSING) {
173
- return ECupScanStatus.MISSING;
174
- }
175
-
176
- // 4. 当前杯子是 broken 状态
177
- if ((cup === null || cup === void 0 ? void 0 : cup.status) == ECupStatus.BROKEN) {
178
- return ECupScanStatus.BROKEN;
179
- }
180
- };
181
- return {
182
- getCupScanStatus: getCupScanStatus
183
- };
184
- };
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface SearchBarProps {
4
- scanListenerKey: string;
5
- size?: 'large' | 'small';
6
- placeholder?: string;
7
- onSearch?: (value: string) => void;
8
- searchType?: 'customer' | 'cup';
9
- onSearchResult?: (v: any) => void;
10
- customerId?: string;
11
- onCupStatusValidate?: (data: any) => void;
12
- }
13
- declare const SearchBar: (props: SearchBarProps) => React.JSX.Element;
14
- export default SearchBar;
@@ -1,248 +0,0 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- import React, { useEffect, useRef, useState } from 'react';
8
- import { useMemoizedFn } from 'ahooks';
9
- import { locales } from '@pisell/utils';
10
- import { PisellToast } from '@pisell/materials';
11
- import "./index.less";
12
- import SearchSection from "../../../../pro/comprehensiveSearch/components/searchSection";
13
- import { useModal, useScanListener, useGetShopId } from "../../hooks";
14
- import { SEARCH_BAR_RESULT_HEADER_CONFIG } from "./const";
15
- import { useSearch, useCupScanStatus } from "./hooks";
16
- import CupStatusModal from "../CupStatusModal";
17
- import { ECupScanStatus } from "../../types";
18
- import dayjs from 'dayjs';
19
- var SearchBar = function SearchBar(props) {
20
- var scanListenerKey = props.scanListenerKey,
21
- _props$size = props.size,
22
- size = _props$size === void 0 ? 'large' : _props$size,
23
- placeholder = props.placeholder,
24
- onSearch = props.onSearch,
25
- searchType = props.searchType,
26
- onSearchResult = props.onSearchResult,
27
- customerId = props.customerId,
28
- onCupStatusValidate = props.onCupStatusValidate;
29
- var _useState = useState(''),
30
- _useState2 = _slicedToArray(_useState, 2),
31
- value = _useState2[0],
32
- setValue = _useState2[1];
33
- // 搜索结果
34
- var _useState3 = useState(null),
35
- _useState4 = _slicedToArray(_useState3, 2),
36
- searchResult = _useState4[0],
37
- setSearchResult = _useState4[1];
38
- var containerRef = useRef(null);
39
- // 扫码监听
40
- var _useScanListener = useScanListener(),
41
- addListener = _useScanListener.addListener,
42
- removeListener = _useScanListener.removeListener,
43
- setActiveListener = _useScanListener.setActiveListener;
44
- var searchHook = useSearch();
45
- var _useCupScanStatus = useCupScanStatus(),
46
- getCupScanStatus = _useCupScanStatus.getCupScanStatus;
47
- var cupStatusModal = useModal('ecocup-cup-status-modal');
48
- var shopId = useGetShopId();
49
-
50
- // 点击搜索结果回调
51
- var onSelectResult = useMemoizedFn(function (type, item) {
52
- setSearchResult(null);
53
- setValue('');
54
- onSearchResult === null || onSearchResult === void 0 || onSearchResult({
55
- type: type,
56
- data: item
57
- });
58
- });
59
-
60
- // 扫码或输入搜索回调
61
- var scanSearchCallback = useMemoizedFn(function (str) {
62
- console.log('scanSearchCallback>>>>>>>', str);
63
- if (onSearch) {
64
- onSearch(str || '');
65
- return;
66
- }
67
- if (!str) {
68
- setValue('');
69
- setSearchResult(null);
70
- return;
71
- }
72
- searchHook.run({
73
- searchType: searchType,
74
- searchText: str
75
- }).then(function (res) {
76
- if ((res === null || res === void 0 ? void 0 : res.status) === 'success') {
77
- var _res$data2;
78
- if ((res === null || res === void 0 ? void 0 : res.type) === 'cup') {
79
- var _res$data;
80
- var _cupData = (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data[0]) || null;
81
- var scanStatus = getCupScanStatus(_cupData, customerId);
82
- console.log(scanStatus, _cupData, shopId, 'sjdhfjj');
83
-
84
- // 自定义杯子状态函数验证
85
- if (onCupStatusValidate) {
86
- // 当前杯子属于当前店铺并且在库中
87
- // if (_cupData?.status == ECupStatus.IN_STOCK) {
88
- // if (_cupData?.current_shop_id == shopId) {
89
- // cupStatusModal.open({
90
- // data: {
91
- // scanStatus: ECupScanStatus.IN_STOCK,
92
- // cupData: _cupData || { code: str },
93
- // },
94
- // });
95
- // return;
96
- // }
97
- // }
98
-
99
- if (scanStatus && scanStatus === ECupScanStatus.OTHER_RENT) {
100
- onCupStatusValidate === null || onCupStatusValidate === void 0 || onCupStatusValidate({
101
- data: _cupData || {
102
- code: str
103
- }
104
- });
105
- setValue('');
106
- return;
107
- }
108
- }
109
- if (scanStatus) {
110
- cupStatusModal.open({
111
- data: {
112
- scanStatus: scanStatus,
113
- cupData: _cupData || {
114
- code: str
115
- }
116
- }
117
- });
118
- return;
119
- }
120
- }
121
- var dataLength = (res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.length) || 0;
122
- if (dataLength === 1) {
123
- var _res$data3;
124
- setValue('');
125
- setSearchResult(null);
126
- onSelectResult(res === null || res === void 0 ? void 0 : res.type, res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3[0]);
127
- return;
128
- }
129
- if (dataLength === 0 && (res === null || res === void 0 ? void 0 : res.type) === 'customer') {
130
- PisellToast({
131
- content: locales.getText('pisell2.text.ecocup.toast.fail-no-match-customer')
132
- });
133
- setSearchResult(null);
134
- return;
135
- }
136
- setSearchResult(res === null || res === void 0 ? void 0 : res.data);
137
- } else {
138
- if (res !== null && res !== void 0 && res.message) {
139
- PisellToast({
140
- content: res === null || res === void 0 ? void 0 : res.message
141
- });
142
- }
143
- setSearchResult(null);
144
- }
145
- });
146
- });
147
- useEffect(function () {
148
- addListener(scanListenerKey, function (result) {
149
- setValue('');
150
- setSearchResult(null);
151
- scanSearchCallback((result === null || result === void 0 ? void 0 : result.value) || '');
152
- });
153
- return function () {
154
- removeListener(scanListenerKey);
155
- };
156
- }, [scanListenerKey, scanSearchCallback]);
157
- useEffect(function () {
158
- /**
159
- * 点击非搜索区域时隐藏结果面板
160
- */
161
- var handleClickOutside = function handleClickOutside(event) {
162
- var target = event.target;
163
- if (!containerRef.current || !target) {
164
- return;
165
- }
166
- if (!containerRef.current.contains(target) && (searchResult === null || searchResult === void 0 ? void 0 : searchResult.length) > 1) {
167
- setSearchResult(null);
168
- }
169
- };
170
- document.addEventListener('mousedown', handleClickOutside);
171
- return function () {
172
- document.removeEventListener('mousedown', handleClickOutside);
173
- };
174
- }, [searchResult]);
175
- return /*#__PURE__*/React.createElement("div", {
176
- ref: containerRef,
177
- className: "ecocup-cup-search-bar"
178
- }, /*#__PURE__*/React.createElement("div", {
179
- style: {
180
- flex: 1
181
- },
182
- onClick: function onClick() {
183
- console.log('onClick>>>>>>>', scanListenerKey);
184
- setActiveListener(scanListenerKey);
185
- }
186
- }, /*#__PURE__*/React.createElement(SearchSection, {
187
- value: value,
188
- onChange: setValue,
189
- loading: searchHook.loading,
190
- style: {
191
- flex: 1,
192
- height: size === 'large' ? '60px' : '48px',
193
- padding: 0
194
- },
195
- placeholder: placeholder || locales.getText('pisell2.text.cup-project.search-bar.placeholder'),
196
- searchButtonProps: {
197
- placement: 'inside',
198
- style: size === 'large' ? {
199
- height: 48,
200
- padding: 8,
201
- minWidth: 160
202
- } : {
203
- height: 32,
204
- padding: 8,
205
- minWidth: 120
206
- }
207
- },
208
- cameraButtonProps: {
209
- icon: ['pisell2-camera-01', 'pisell2-qr-code-02']
210
- },
211
- onSearch: function onSearch() {
212
- return scanSearchCallback(value);
213
- }
214
- })), (searchResult === null || searchResult === void 0 ? void 0 : searchResult.length) > 1 ? /*#__PURE__*/React.createElement("div", {
215
- className: "ecocup-cup-search-bar-result"
216
- }, /*#__PURE__*/React.createElement("div", {
217
- className: "ecocup-cup-search-bar-result-header"
218
- }, SEARCH_BAR_RESULT_HEADER_CONFIG === null || SEARCH_BAR_RESULT_HEADER_CONFIG === void 0 ? void 0 : SEARCH_BAR_RESULT_HEADER_CONFIG.map(function (item) {
219
- return /*#__PURE__*/React.createElement("div", {
220
- key: item.key
221
- }, locales.getText(item.label));
222
- })), /*#__PURE__*/React.createElement("div", {
223
- className: "ecocup-cup-search-bar-result-content"
224
- }, searchResult === null || searchResult === void 0 ? void 0 : searchResult.map(function (item) {
225
- var _tags$find, _tags$find2;
226
- var nickname = item.nickname,
227
- display_name = item.display_name,
228
- create_time = item.create_time,
229
- country_calling_code = item.country_calling_code,
230
- phone = item.phone,
231
- email = item.email,
232
- tags = item.tags;
233
- return /*#__PURE__*/React.createElement("div", {
234
- key: item.id,
235
- className: "ecocup-cup-search-bar-result-content-item",
236
- onClick: function onClick() {
237
- return onSelectResult('customer', item);
238
- }
239
- }, /*#__PURE__*/React.createElement("div", null, display_name || nickname || '-'), /*#__PURE__*/React.createElement("div", null, create_time ? dayjs(create_time).format('DD/MM/YYYY') : '-'), /*#__PURE__*/React.createElement("div", null, phone ? "(".concat(country_calling_code, ") ").concat(phone) : '-'), /*#__PURE__*/React.createElement("div", null, email || '-'), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
240
- className: "ecocup-cup-search-bar-result-content-item-membership"
241
- }, tags !== null && tags !== void 0 && (_tags$find = tags.find) !== null && _tags$find !== void 0 && _tags$find.call(tags, function (v) {
242
- return (v === null || v === void 0 ? void 0 : v.name) == 'admin';
243
- }) ? 'Admin' : tags !== null && tags !== void 0 && (_tags$find2 = tags.find) !== null && _tags$find2 !== void 0 && _tags$find2.call(tags, function (v) {
244
- return (v === null || v === void 0 ? void 0 : v.name) == 'business';
245
- }) ? 'Business' : 'Regular')));
246
- }))) : null, cupStatusModal.visible && /*#__PURE__*/React.createElement(CupStatusModal, cupStatusModal.modalProps));
247
- };
248
- export default SearchBar;