@pisell/private-materials 6.3.117 → 6.3.119

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 (299) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +1 -1
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +4 -4
  9. package/es/components/Sales/Cart/utils.d.ts +68 -0
  10. package/es/components/Sales/Checkout/utils.d.ts +41 -0
  11. package/es/components/Sales/Summary/utils.d.ts +58 -0
  12. package/es/components/appointmentBooking/locales.d.ts +606 -0
  13. package/es/components/booking/addons/model.d.ts +10 -1
  14. package/es/components/booking/components/tabPane/index.d.ts +4 -0
  15. package/es/components/booking/components/voucher/utils.d.ts +4 -0
  16. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  17. package/es/components/booking/forms/model.d.ts +10 -1
  18. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  19. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  20. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  21. package/es/components/booking/info/index.d.ts +4 -0
  22. package/es/components/booking/info/model.d.ts +10 -1
  23. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  24. package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
  25. package/es/components/booking/info/service2/utils.d.ts +1 -1
  26. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  27. package/es/components/booking/model.d.ts +9 -1
  28. package/es/components/booking/notes/model.d.ts +10 -1
  29. package/es/components/booking/payments/model.d.ts +10 -1
  30. package/es/components/booking/utils.d.ts +2 -2
  31. package/es/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
  32. package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
  33. package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
  34. package/es/components/ecocup/components/SearchBar/const.d.ts +4 -0
  35. package/es/components/ecocup/components/SettingModal/const.d.ts +6 -0
  36. package/es/components/ecocup/cupList/const.d.ts +140 -0
  37. package/es/components/ecocup/cupProject/const.d.ts +7 -0
  38. package/es/components/ecocup/customerList/const.d.ts +44 -0
  39. package/es/components/ecocup/customerList/hooks/index.d.ts +3 -0
  40. package/es/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
  41. package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
  42. package/es/components/ecocup/hooks.d.ts +57 -0
  43. package/es/components/ecocup/locales.d.ts +653 -0
  44. package/es/components/ecocup/types.d.ts +103 -0
  45. package/es/components/ecocup/utils/download.d.ts +7 -0
  46. package/es/components/ecocup/utils/index.d.ts +2 -0
  47. package/es/components/ecocup/utils/scanListener.d.ts +20 -0
  48. package/es/components/eftpos/const.d.ts +64 -0
  49. package/es/components/eftpos/hooks.d.ts +34 -0
  50. package/es/components/eftpos/locales.d.ts +163 -0
  51. package/es/components/eftposPay/amount.d.ts +1 -1
  52. package/es/components/eftposPay/const.d.ts +186 -0
  53. package/es/components/eftposPay/device.d.ts +1 -1
  54. package/es/components/eftposPay/hooks.d.ts +2 -2
  55. package/es/components/eftposPay/locales.d.ts +572 -0
  56. package/es/components/eftposPay/manufacturer.d.ts +7 -0
  57. package/es/components/eftposPay/store/index.d.ts +358 -0
  58. package/es/components/eventBooking/components/Voucher/components/locales.d.ts +61 -0
  59. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  60. package/es/components/pay/toC/PaymentList/utils.d.ts +36 -0
  61. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
  62. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
  63. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  64. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
  65. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
  66. package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
  67. package/es/components/pay/toC/locales.d.ts +626 -0
  68. package/es/components/pay/toC/model.d.ts +9 -1
  69. package/es/components/pisellSelectCustomerModal/locales.d.ts +133 -0
  70. package/es/components/schedules/locales.d.ts +143 -0
  71. package/es/components/schedules/model.d.ts +9 -1
  72. package/es/components/shoppingCart/locales.d.ts +53 -0
  73. package/es/components/shoppingCart/type.d.ts +48 -0
  74. package/es/components/subTotal/locales.d.ts +68 -0
  75. package/es/components/systemSettings/registry/locales.d.ts +534 -0
  76. package/es/components/systemSettings/registry/services.d.ts +97 -0
  77. package/es/components/systemSettings/registry/types.d.ts +140 -0
  78. package/es/components/taxSelect/locales.d.ts +38 -0
  79. package/es/components/ticketBooking/locales.d.ts +304 -0
  80. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  81. package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
  82. package/es/hooks/useEngineContext.d.ts +11 -0
  83. package/es/hooks/useLocale.d.ts +2 -0
  84. package/es/hooks/usePaymentLogger.d.ts +1 -0
  85. package/es/hooks/useThemeTokens.d.ts +7 -0
  86. package/es/hooks/useWindowSize.d.ts +5 -0
  87. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  88. package/es/plus/orderList/config.d.ts +2 -2
  89. package/es/plus/orderList/locales.d.ts +618 -0
  90. package/es/plus/pisellSalesGrid/locales.d.ts +9 -0
  91. package/es/plus/pisellSalesGrid/types.d.ts +170 -0
  92. package/es/plus/pisellSalesManagement/config/booking.d.ts +7 -6
  93. package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
  94. package/es/plus/pisellSalesManagement/locales.d.ts +303 -0
  95. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  96. package/es/plus/saasAttendance/locales.d.ts +591 -0
  97. package/es/plus/saasAttendance/settings/types.d.ts +136 -0
  98. package/es/plus/saasTeamMembers/locales.d.ts +546 -0
  99. package/es/plus/selectHolder/locales.d.ts +35 -0
  100. package/es/plus/skuOptionsSelection/components/NormalCard/index.js +10 -3
  101. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.js +6 -2
  102. package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +20 -7
  103. package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +7 -10
  104. package/es/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
  105. package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
  106. package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
  107. package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
  108. package/es/plus/skuOptionsSelection/index.js +2 -1
  109. package/es/plus/skuOptionsSelection/locales.d.ts +58 -0
  110. package/es/plus/skuOptionsSelection/locales.js +10 -5
  111. package/es/plus/skuOptionsSelection/store/actions.d.ts +22 -0
  112. package/es/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
  113. package/es/plus/skuOptionsSelection/store/index.d.ts +2 -0
  114. package/es/plus/skuOptionsSelection/store/store.d.ts +4 -0
  115. package/es/plus/skuOptionsSelection/types.d.ts +458 -0
  116. package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
  117. package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
  118. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +1 -1
  119. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  120. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +1 -1
  121. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +19 -6
  122. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +45 -58
  123. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  124. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +1 -1
  125. package/es/plus/walletPassGallery/locales.d.ts +483 -0
  126. package/es/pro/Cards/components/SKUCard/index.js +5 -2
  127. package/es/pro/Cards/components/SKUCard/index.less +18 -3
  128. package/es/pro/Cards/components/SKUCard/locales.d.ts +12 -0
  129. package/es/pro/Cards/components/SKUCard/types.d.ts +73 -0
  130. package/es/pro/Login2.0/locales.d.ts +908 -0
  131. package/es/pro/Login2.0/shared/types.d.ts +234 -0
  132. package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  133. package/es/pro/Selector/Item.d.ts +14 -0
  134. package/es/pro/Selector/Selector.stories.d.ts +78 -0
  135. package/es/pro/Selector/components/Card/index.d.ts +57 -0
  136. package/es/pro/Selector/components/Card/types.d.ts +1 -0
  137. package/es/pro/Selector/components/Indicator/index.d.ts +20 -0
  138. package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  139. package/es/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
  140. package/es/pro/Selector/components/Media/index.d.ts +6 -0
  141. package/es/pro/Selector/components/Media/types.d.ts +47 -0
  142. package/es/pro/Selector/components/index.d.ts +4 -0
  143. package/es/pro/Selector/demo.d.ts +3 -0
  144. package/es/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
  145. package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
  146. package/es/pro/Selector/index.d.ts +11 -0
  147. package/es/pro/Selector/locales.d.ts +58 -0
  148. package/es/pro/Selector/types.d.ts +223 -0
  149. package/es/pro/Selector/utils/index.d.ts +49 -0
  150. package/es/pro/keyboards/locales.d.ts +38 -0
  151. package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
  152. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  153. package/es/test/setup.d.ts +1 -0
  154. package/lib/components/Sales/Cart/utils.d.ts +68 -0
  155. package/lib/components/Sales/Checkout/utils.d.ts +41 -0
  156. package/lib/components/Sales/Summary/utils.d.ts +58 -0
  157. package/lib/components/appointmentBooking/locales.d.ts +606 -0
  158. package/lib/components/booking/addons/model.d.ts +10 -1
  159. package/lib/components/booking/components/tabPane/index.d.ts +4 -0
  160. package/lib/components/booking/components/voucher/utils.d.ts +4 -0
  161. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  162. package/lib/components/booking/forms/model.d.ts +10 -1
  163. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  164. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  165. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  166. package/lib/components/booking/info/index.d.ts +4 -0
  167. package/lib/components/booking/info/model.d.ts +10 -1
  168. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  169. package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
  170. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  171. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  172. package/lib/components/booking/model.d.ts +9 -1
  173. package/lib/components/booking/notes/model.d.ts +10 -1
  174. package/lib/components/booking/payments/model.d.ts +10 -1
  175. package/lib/components/booking/utils.d.ts +2 -2
  176. package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
  177. package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
  178. package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
  179. package/lib/components/ecocup/components/SearchBar/const.d.ts +4 -0
  180. package/lib/components/ecocup/components/SettingModal/const.d.ts +6 -0
  181. package/lib/components/ecocup/cupList/const.d.ts +140 -0
  182. package/lib/components/ecocup/cupProject/const.d.ts +7 -0
  183. package/lib/components/ecocup/customerList/const.d.ts +44 -0
  184. package/lib/components/ecocup/customerList/hooks/index.d.ts +3 -0
  185. package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
  186. package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
  187. package/lib/components/ecocup/hooks.d.ts +57 -0
  188. package/lib/components/ecocup/locales.d.ts +653 -0
  189. package/lib/components/ecocup/types.d.ts +103 -0
  190. package/lib/components/ecocup/utils/download.d.ts +7 -0
  191. package/lib/components/ecocup/utils/index.d.ts +2 -0
  192. package/lib/components/ecocup/utils/scanListener.d.ts +20 -0
  193. package/lib/components/eftpos/const.d.ts +64 -0
  194. package/lib/components/eftpos/hooks.d.ts +34 -0
  195. package/lib/components/eftpos/locales.d.ts +163 -0
  196. package/lib/components/eftposPay/amount.d.ts +1 -1
  197. package/lib/components/eftposPay/const.d.ts +186 -0
  198. package/lib/components/eftposPay/device.d.ts +1 -1
  199. package/lib/components/eftposPay/hooks.d.ts +2 -2
  200. package/lib/components/eftposPay/locales.d.ts +572 -0
  201. package/lib/components/eftposPay/manufacturer.d.ts +7 -0
  202. package/lib/components/eftposPay/store/index.d.ts +358 -0
  203. package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +61 -0
  204. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  205. package/lib/components/pay/toC/PaymentList/utils.d.ts +36 -0
  206. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
  207. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
  208. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  209. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
  210. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
  211. package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
  212. package/lib/components/pay/toC/locales.d.ts +626 -0
  213. package/lib/components/pay/toC/model.d.ts +9 -1
  214. package/lib/components/pisellSelectCustomerModal/locales.d.ts +133 -0
  215. package/lib/components/schedules/locales.d.ts +143 -0
  216. package/lib/components/schedules/model.d.ts +9 -1
  217. package/lib/components/shoppingCart/locales.d.ts +53 -0
  218. package/lib/components/shoppingCart/type.d.ts +48 -0
  219. package/lib/components/subTotal/locales.d.ts +68 -0
  220. package/lib/components/systemSettings/registry/locales.d.ts +534 -0
  221. package/lib/components/systemSettings/registry/services.d.ts +97 -0
  222. package/lib/components/systemSettings/registry/types.d.ts +140 -0
  223. package/lib/components/taxSelect/locales.d.ts +38 -0
  224. package/lib/components/ticketBooking/locales.d.ts +304 -0
  225. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  226. package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
  227. package/lib/hooks/useEngineContext.d.ts +11 -0
  228. package/lib/hooks/useLocale.d.ts +2 -0
  229. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  230. package/lib/hooks/useThemeTokens.d.ts +7 -0
  231. package/lib/hooks/useWindowSize.d.ts +5 -0
  232. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  233. package/lib/plus/orderList/config.d.ts +2 -2
  234. package/lib/plus/orderList/locales.d.ts +618 -0
  235. package/lib/plus/pisellSalesGrid/locales.d.ts +9 -0
  236. package/lib/plus/pisellSalesGrid/types.d.ts +170 -0
  237. package/lib/plus/pisellSalesManagement/config/booking.d.ts +7 -6
  238. package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
  239. package/lib/plus/pisellSalesManagement/locales.d.ts +303 -0
  240. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  241. package/lib/plus/saasAttendance/locales.d.ts +591 -0
  242. package/lib/plus/saasAttendance/settings/types.d.ts +136 -0
  243. package/lib/plus/saasTeamMembers/locales.d.ts +546 -0
  244. package/lib/plus/selectHolder/locales.d.ts +35 -0
  245. package/lib/plus/skuOptionsSelection/components/NormalCard/index.js +15 -9
  246. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.js +3 -3
  247. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +20 -7
  248. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +7 -7
  249. package/lib/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
  250. package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
  251. package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
  252. package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
  253. package/lib/plus/skuOptionsSelection/index.js +2 -1
  254. package/lib/plus/skuOptionsSelection/locales.d.ts +58 -0
  255. package/lib/plus/skuOptionsSelection/locales.js +10 -5
  256. package/lib/plus/skuOptionsSelection/store/actions.d.ts +22 -0
  257. package/lib/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
  258. package/lib/plus/skuOptionsSelection/store/index.d.ts +2 -0
  259. package/lib/plus/skuOptionsSelection/store/store.d.ts +4 -0
  260. package/lib/plus/skuOptionsSelection/types.d.ts +458 -0
  261. package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
  262. package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
  263. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +1 -1
  264. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  265. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +1 -1
  266. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +15 -4
  267. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +39 -54
  268. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  269. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +1 -1
  270. package/lib/plus/walletPassGallery/locales.d.ts +483 -0
  271. package/lib/pro/Cards/components/SKUCard/index.js +4 -7
  272. package/lib/pro/Cards/components/SKUCard/index.less +18 -3
  273. package/lib/pro/Cards/components/SKUCard/locales.d.ts +12 -0
  274. package/lib/pro/Cards/components/SKUCard/types.d.ts +73 -0
  275. package/lib/pro/Login2.0/locales.d.ts +908 -0
  276. package/lib/pro/Login2.0/shared/types.d.ts +234 -0
  277. package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  278. package/lib/pro/Selector/Item.d.ts +14 -0
  279. package/lib/pro/Selector/Selector.stories.d.ts +78 -0
  280. package/lib/pro/Selector/components/Card/index.d.ts +57 -0
  281. package/lib/pro/Selector/components/Card/types.d.ts +1 -0
  282. package/lib/pro/Selector/components/Indicator/index.d.ts +20 -0
  283. package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  284. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
  285. package/lib/pro/Selector/components/Media/index.d.ts +6 -0
  286. package/lib/pro/Selector/components/Media/types.d.ts +47 -0
  287. package/lib/pro/Selector/components/index.d.ts +4 -0
  288. package/lib/pro/Selector/demo.d.ts +3 -0
  289. package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
  290. package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
  291. package/lib/pro/Selector/index.d.ts +11 -0
  292. package/lib/pro/Selector/locales.d.ts +58 -0
  293. package/lib/pro/Selector/types.d.ts +223 -0
  294. package/lib/pro/Selector/utils/index.d.ts +49 -0
  295. package/lib/pro/keyboards/locales.d.ts +38 -0
  296. package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
  297. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  298. package/lib/test/setup.d.ts +1 -0
  299. package/package.json +1 -1
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditServiceRef } from "../service/editService";
3
2
  declare const useInfoHolder: (state: any, dispatch: any) => {
4
3
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { InfoProps } from './main';
3
+ declare const APP: (props: InfoProps) => React.JSX.Element;
4
+ export default APP;
@@ -1,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
7
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
+ state: FormState;
9
+ } & {
10
+ dispatch: (params: {
11
+ type: string;
12
+ payload: any;
13
+ }) => void;
14
+ }>;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: any;
9
+ locale: string;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -0,0 +1,11 @@
1
+ interface Product {
2
+ _id: string;
3
+ _extend: {
4
+ origin_total: number;
5
+ total: number;
6
+ };
7
+ }
8
+ export declare function distributeDiscountOrIncrease(products: Product[], // 商品列表
9
+ totalAdjustment: number, // 总折扣或加价金额,可能为负数(折扣)或正数(加价)
10
+ totalPrice: number): Product[];
11
+ export {};
@@ -245,4 +245,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
245
245
  * @Author: WangHan
246
246
  * @Date: 2024-12-24 11:32
247
247
  */
248
- export declare const updateServicePrice: (state: any) => Promise<any> | never[];
248
+ export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: any;
10
+ locale: string;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -109,4 +110,11 @@ export declare const walkInData: {
109
110
  id: number;
110
111
  nickname: string;
111
112
  };
112
- export declare const Provider: any, Context: any;
113
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
114
+ state: FormState;
115
+ } & {
116
+ dispatch: (params: {
117
+ type: string;
118
+ payload: any;
119
+ }) => void;
120
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -166,10 +166,10 @@ export declare const getProductTotalPrice: (item: any) => number;
166
166
  export declare const getDuration: (duration: number | {
167
167
  type: string;
168
168
  value: number;
169
- }) => number | {
169
+ }) => number | "flexible" | {
170
170
  type: string;
171
171
  value: number;
172
- } | "flexible";
172
+ };
173
173
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
174
174
  export declare const getIsEdit: (state: any) => boolean;
175
175
  export {};
@@ -0,0 +1,5 @@
1
+ import { ECupActionType } from '../../types';
2
+ export declare const useCupAction: () => {
3
+ run: (this: unknown, cupId: string, action: ECupActionType) => Promise<boolean>;
4
+ loading: boolean;
5
+ };
@@ -0,0 +1,36 @@
1
+ import { ECupActionType, ICup } from '../../types';
2
+ export declare const useCupAction: () => {
3
+ run: (this: unknown, cupId: string, action: ECupActionType) => Promise<boolean>;
4
+ loading: boolean;
5
+ };
6
+ /**
7
+ * @description: 批量归还杯子
8
+ * @return {*}
9
+ */
10
+ export declare const useBatchCupAction: () => {
11
+ run: (this: unknown, eco_cup_ids: number[] | string[]) => Promise<boolean>;
12
+ loading: boolean;
13
+ };
14
+ /**
15
+ * @description: 统计杯子列表中的客户、店铺、时间数量
16
+ * @param {ICup[]} cupList - 杯子列表
17
+ * @return {object} 返回统计信息和是否为多个的标识
18
+ */
19
+ export declare const useCupListStatistics: (cupList: ICup[]) => {
20
+ hasMultipleCustomers: boolean;
21
+ hasMultipleShops: boolean;
22
+ hasMultipleTimes: boolean;
23
+ uniqueCustomer: import("../../types").ICustomer | undefined;
24
+ uniqueShop: {
25
+ id: string;
26
+ name: string;
27
+ } | undefined;
28
+ uniqueTime: string | undefined;
29
+ } | {
30
+ hasMultipleCustomers: boolean;
31
+ hasMultipleShops: boolean;
32
+ hasMultipleTimes: boolean;
33
+ uniqueCustomer: null;
34
+ uniqueShop: null;
35
+ uniqueTime: null;
36
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 获取客户详情
3
+ */
4
+ export declare const useCustomerDetail: () => {
5
+ run: (this: unknown, id: string) => Promise<any>;
6
+ loading: boolean;
7
+ };
8
+ /**
9
+ * 批量租用杯子
10
+ */
11
+ export declare const useBatchRentCups: () => {
12
+ run: (this: unknown, id: string, cupIds: string[]) => Promise<boolean>;
13
+ loading: boolean;
14
+ };
@@ -0,0 +1,4 @@
1
+ export declare const SEARCH_BAR_RESULT_HEADER_CONFIG: {
2
+ key: string;
3
+ label: string;
4
+ }[];
@@ -0,0 +1,6 @@
1
+ export declare const formItemsConfig: {
2
+ name: string;
3
+ labelKey: string;
4
+ placeholderKey: string;
5
+ requiredMessageKey: string;
6
+ }[];
@@ -0,0 +1,140 @@
1
+ declare const STATUS_TEXT_MAP: {
2
+ in_stock: string;
3
+ rent: string;
4
+ return: string;
5
+ missing: string;
6
+ broken: string;
7
+ shop_changed: string;
8
+ };
9
+ declare const STATUS_COLOR_MAP: {
10
+ in_stock: {
11
+ backgroundColor: string;
12
+ color: string;
13
+ border: string;
14
+ };
15
+ rent: {
16
+ backgroundColor: string;
17
+ color: string;
18
+ border: string;
19
+ };
20
+ return: {
21
+ backgroundColor: string;
22
+ color: string;
23
+ border: string;
24
+ };
25
+ shop_changed: {
26
+ backgroundColor: string;
27
+ color: string;
28
+ border: string;
29
+ };
30
+ overtime: {
31
+ backgroundColor: string;
32
+ color: string;
33
+ border: string;
34
+ };
35
+ expire_soon: {
36
+ backgroundColor: string;
37
+ color: string;
38
+ border: string;
39
+ };
40
+ borrowing: {
41
+ backgroundColor: string;
42
+ color: string;
43
+ border: string;
44
+ };
45
+ missing: {
46
+ backgroundColor: string;
47
+ color: string;
48
+ border: string;
49
+ };
50
+ broken: {
51
+ backgroundColor: string;
52
+ color: string;
53
+ border: string;
54
+ };
55
+ };
56
+ /**
57
+ * @description: 排序设置
58
+ * @return {*}
59
+ */
60
+ declare const SORT_SETTINGS: {
61
+ show: boolean;
62
+ list: {
63
+ columnKey: string;
64
+ key: string;
65
+ type: string;
66
+ localFilter: boolean;
67
+ }[];
68
+ };
69
+ /**
70
+ * @description: 列配置
71
+ * @return {*}
72
+ */
73
+ declare const COLUMN_SETTING: {
74
+ show: boolean;
75
+ storageMode: string;
76
+ };
77
+ /**
78
+ * @description: 过滤选项
79
+ * @return {*}
80
+ */
81
+ declare const FILTER: (locales: any, isNormalShop: boolean, ecoShopLists?: any, isPartner?: boolean, currentPagination?: number) => {
82
+ show: boolean;
83
+ quickFilterMaxLength: number;
84
+ currentPagination: number;
85
+ list: ({
86
+ key: string;
87
+ type: string;
88
+ columnKey: string;
89
+ isCustom: boolean;
90
+ name: string;
91
+ sort: boolean;
92
+ localFilter: boolean;
93
+ other: {
94
+ size: string;
95
+ allowClear: boolean;
96
+ showSearch: boolean;
97
+ placeholder: any;
98
+ defaultValue: number;
99
+ options: {
100
+ label: any;
101
+ value: string | number;
102
+ }[];
103
+ style: {
104
+ width: number;
105
+ };
106
+ };
107
+ isHidden?: undefined;
108
+ } | {
109
+ key: string;
110
+ type: string;
111
+ columnKey: string;
112
+ isCustom: boolean;
113
+ name: string;
114
+ sort: boolean;
115
+ localFilter: boolean;
116
+ isHidden: boolean;
117
+ other: {
118
+ size: string;
119
+ allowClear: boolean;
120
+ showSearch: boolean;
121
+ placeholder: any;
122
+ defaultValue: number;
123
+ options: {
124
+ label: any;
125
+ value: any;
126
+ }[];
127
+ style: {
128
+ width: number;
129
+ };
130
+ };
131
+ })[];
132
+ };
133
+ declare const HEADER_RIGHT_OPTIONS: {
134
+ languageKey: string;
135
+ key: string;
136
+ size: string;
137
+ icon: string;
138
+ type: string;
139
+ }[];
140
+ export { STATUS_TEXT_MAP, STATUS_COLOR_MAP, SORT_SETTINGS, COLUMN_SETTING, FILTER, HEADER_RIGHT_OPTIONS };
@@ -0,0 +1,7 @@
1
+ export declare const CUP_PROJECT_FOOTER_BUTTONS: {
2
+ key: string;
3
+ icon: string;
4
+ type: string;
5
+ size: string;
6
+ languageKey: string;
7
+ }[];
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @description: 排序设置
3
+ * @return {*}
4
+ */
5
+ declare const SORT_SETTINGS: {
6
+ show: boolean;
7
+ list: {
8
+ columnKey: string;
9
+ key: string;
10
+ type: string;
11
+ localFilter: boolean;
12
+ }[];
13
+ };
14
+ /**
15
+ * @description: 列配置
16
+ * @return {*}
17
+ */
18
+ declare const COLUMN_SETTING: {
19
+ show: boolean;
20
+ storageMode: string;
21
+ };
22
+ declare const FILTER: (locales: any) => {
23
+ show: boolean;
24
+ quickFilterMaxLength: number;
25
+ list: {
26
+ key: string;
27
+ type: string;
28
+ columnKey: string;
29
+ sort: boolean;
30
+ localFilter: boolean;
31
+ isCustom: boolean;
32
+ name: string;
33
+ other: {
34
+ size: string;
35
+ allowClear: boolean;
36
+ placeholder: any;
37
+ trigger: string[];
38
+ style: {
39
+ width: number;
40
+ };
41
+ };
42
+ }[];
43
+ };
44
+ export { SORT_SETTINGS, COLUMN_SETTING, FILTER };
@@ -0,0 +1,3 @@
1
+ import { useColumns } from './useColumns';
2
+ import { useCustomerListsApi } from './useCustomerListsApi';
3
+ export { useColumns, useCustomerListsApi };
@@ -0,0 +1,15 @@
1
+ export declare const useColumns: (locales: any) => ({
2
+ title: any;
3
+ dataIndex: string;
4
+ key: string;
5
+ align: string;
6
+ width: number;
7
+ render?: undefined;
8
+ } | {
9
+ title: any;
10
+ dataIndex: string;
11
+ key: string;
12
+ align: string;
13
+ width: number;
14
+ render: (text: string) => string;
15
+ })[];
@@ -0,0 +1,15 @@
1
+ interface GetCustomerListsParams {
2
+ with_cup_count_flag?: number;
3
+ search?: string;
4
+ skip?: number;
5
+ num?: number;
6
+ goal_shop_id?: number;
7
+ order_by?: string;
8
+ sort?: 'asc' | 'desc';
9
+ }
10
+ export declare const useCustomerListsApi: () => {
11
+ loading: boolean;
12
+ data: any;
13
+ run: (params: GetCustomerListsParams) => Promise<void>;
14
+ };
15
+ export {};
@@ -0,0 +1,57 @@
1
+ import { TCallback } from './utils/scanListener';
2
+ /**
3
+ * 获取当前语言
4
+ */
5
+ export declare const useLanguage: () => any;
6
+ /**
7
+ * 扫码监听
8
+ */
9
+ export declare const useScanListener: () => {
10
+ addListener: (key: string, callback: TCallback) => void;
11
+ removeListener: (key: string) => void;
12
+ setActiveListener: (key: string) => void;
13
+ };
14
+ /**
15
+ * 获取app
16
+ */
17
+ export declare const useGetApp: () => any;
18
+ /**
19
+ * 获取modal
20
+ */
21
+ export declare const useModal: (key: string) => {
22
+ modalProps: any;
23
+ visible: any;
24
+ open: (props?: any) => void;
25
+ close: () => void;
26
+ };
27
+ export declare const useRequest: () => {
28
+ get: (url: string, data?: Record<string, any>, config?: Record<string, any>) => any;
29
+ post: (url: string, data?: Record<string, any>, config?: Record<string, any>) => any;
30
+ put: (url: string, data?: Record<string, any>, config?: Record<string, any>) => any;
31
+ remove: (url: string, data?: Record<string, any>, config?: Record<string, any>) => any;
32
+ };
33
+ /**
34
+ * @description: 获取goal_shop_id和是否是普通店铺
35
+ * @return {*}
36
+ */
37
+ export declare const useGetGoalShopInfo: () => {
38
+ goalShopId: number | undefined;
39
+ isNormalShop: boolean;
40
+ };
41
+ /**
42
+ * 获取当前店铺id
43
+ */
44
+ export declare const useGetShopId: () => any;
45
+ /**
46
+ * @description: 是否是app端
47
+ * @return {*}
48
+ */
49
+ export declare const useIsApp: () => boolean;
50
+ /**
51
+ * @description: 获取分享场景
52
+ * @return {*}
53
+ */
54
+ export declare const useGetShare: () => {
55
+ source: string | null;
56
+ isEcoShare: boolean;
57
+ };