@pisell/private-materials 6.8.93 → 6.8.94

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 (317) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +7 -7
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/Sales/Summary/utils.d.ts +1 -1
  8. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  9. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/index.d.ts +1 -0
  12. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  13. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  14. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  15. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  16. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  17. package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  18. package/es/components/booking/dashboard/index.js +71 -93
  19. package/es/components/booking/dashboard/serve.d.ts +1 -0
  20. package/es/components/booking/dashboard/serve.js +22 -0
  21. package/es/components/booking/deposit/index.d.ts +1 -0
  22. package/es/components/booking/forms/single/index.d.ts +1 -0
  23. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  24. package/es/components/booking/info/header/index.d.ts +1 -0
  25. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  26. package/es/components/booking/info/service/Lists.d.ts +1 -0
  27. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  28. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  29. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  30. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  31. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  32. package/es/components/booking/info/service2/utils.js +41 -39
  33. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  34. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  35. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  36. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  37. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  38. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  39. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  40. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  41. package/es/components/checkout/components/ScrollableList/index.d.ts +5 -0
  42. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
  43. package/es/components/eftpos/index.d.ts +1 -0
  44. package/es/components/eftpos/pos.d.ts +1 -0
  45. package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  46. package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  47. package/es/components/eftposPay/amount.d.ts +2 -1
  48. package/es/components/eftposPay/app.d.ts +1 -0
  49. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  50. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  51. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  52. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  53. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  54. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  55. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  56. package/es/components/eftposPay/device.d.ts +1 -1
  57. package/es/components/eftposPay/hooks.d.ts +1 -1
  58. package/es/components/eftposPay/index.d.ts +1 -0
  59. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  60. package/es/components/eftposPay/pay.d.ts +1 -0
  61. package/es/components/eftposPay/payo/config.d.ts +1 -0
  62. package/es/components/eftposPay/store/index.d.ts +5 -5
  63. package/es/components/eftposPay/tip.d.ts +1 -0
  64. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  65. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  66. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  67. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  68. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  69. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  70. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  71. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  72. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  73. package/es/components/eventBooking/index.d.ts +1 -0
  74. package/es/components/kioskSkuDetail/locales.d.ts +27 -0
  75. package/es/components/list/hooks/useListState.d.ts +45 -0
  76. package/es/components/list/types.d.ts +178 -0
  77. package/es/components/list/utils/index.d.ts +19 -0
  78. package/es/components/login/index.d.ts +1 -0
  79. package/es/components/pay/toB/components/Cache/index.d.ts +0 -1
  80. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  81. package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
  82. package/es/components/pay/toC/PaymentList/index.d.ts +19 -0
  83. package/es/components/pay/toC/PaymentList/serve.d.ts +28 -0
  84. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  85. package/es/components/pay/toC/locales.d.ts +307 -0
  86. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  87. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  88. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  89. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  90. package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
  91. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  92. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  93. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  94. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  95. package/es/components/productExtension/index.d.ts +1 -0
  96. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  97. package/es/components/ruleSetting/index.d.ts +1 -0
  98. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  99. package/es/components/schedules/calendar/index.d.ts +1 -0
  100. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  101. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  102. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  103. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  104. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  105. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  106. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  107. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  108. package/es/components/schedules/products/index.d.ts +1 -0
  109. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  110. package/es/components/schedules/products/list/index.d.ts +1 -0
  111. package/es/components/schedules/resources/index.d.ts +1 -0
  112. package/es/components/schedules/resources/list/index.d.ts +1 -0
  113. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  114. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  115. package/es/components/schedules/schedules/index.d.ts +1 -0
  116. package/es/components/shoppingCart/index.d.ts +1 -0
  117. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  118. package/es/components/taxSelect/index.d.ts +1 -0
  119. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  120. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  121. package/es/components/ticketBooking/components/bookingDataPanel/index.js +2 -1
  122. package/es/components/ticketBooking/components/timeBar/index.d.ts +14 -0
  123. package/es/components/ticketBooking/index.d.ts +1 -0
  124. package/es/components/ticketBooking/locales.d.ts +201 -0
  125. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  126. package/es/hooks/printer.d.ts +4 -0
  127. package/es/hooks/useEngineContext.d.ts +4 -0
  128. package/es/hooks/usePaymentLogger.d.ts +1 -0
  129. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  130. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  131. package/es/plus/clinetSearch/index.d.ts +18 -0
  132. package/es/plus/clinetSearch/locales.d.ts +108 -0
  133. package/es/plus/clinetSearch/types.d.ts +70 -0
  134. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  135. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  136. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  137. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  138. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  139. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  140. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  141. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  142. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  143. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  144. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  145. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  146. package/es/plus/saasCreateOrganization/index.d.ts +1 -0
  147. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  148. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  149. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  150. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  151. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  152. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  153. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  154. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +4 -0
  155. package/es/plus/skuOptionsSelection/locales.d.ts +33 -0
  156. package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  157. package/es/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  158. package/es/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  159. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  160. package/es/pro/pisellPaymentList/example.d.ts +1 -0
  161. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  162. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  163. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  164. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  165. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  166. package/lib/components/appointmentBooking/index.d.ts +1 -0
  167. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  168. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  169. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  170. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  171. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  172. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  173. package/lib/components/booking/dashboard/index.js +38 -60
  174. package/lib/components/booking/dashboard/serve.d.ts +1 -0
  175. package/lib/components/booking/dashboard/serve.js +8 -2
  176. package/lib/components/booking/deposit/index.d.ts +1 -0
  177. package/lib/components/booking/forms/single/index.d.ts +1 -0
  178. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  179. package/lib/components/booking/info/header/index.d.ts +1 -0
  180. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  181. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  182. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  183. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  184. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  185. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  186. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  187. package/lib/components/booking/info/service2/utils.js +3 -1
  188. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  189. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  190. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  191. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  192. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  193. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  194. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  195. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  196. package/lib/components/checkout/components/ScrollableList/index.d.ts +5 -0
  197. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
  198. package/lib/components/eftpos/index.d.ts +1 -0
  199. package/lib/components/eftpos/pos.d.ts +1 -0
  200. package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  201. package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  202. package/lib/components/eftposPay/amount.d.ts +2 -1
  203. package/lib/components/eftposPay/app.d.ts +1 -0
  204. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  205. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  206. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  207. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  208. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  209. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  210. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  211. package/lib/components/eftposPay/device.d.ts +1 -1
  212. package/lib/components/eftposPay/hooks.d.ts +1 -1
  213. package/lib/components/eftposPay/index.d.ts +1 -0
  214. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  215. package/lib/components/eftposPay/pay.d.ts +1 -0
  216. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  217. package/lib/components/eftposPay/store/index.d.ts +5 -5
  218. package/lib/components/eftposPay/tip.d.ts +1 -0
  219. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  220. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  221. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  222. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  223. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  224. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  225. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  226. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  227. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  228. package/lib/components/eventBooking/index.d.ts +1 -0
  229. package/lib/components/kioskSkuDetail/locales.d.ts +27 -0
  230. package/lib/components/list/hooks/useListState.d.ts +45 -0
  231. package/lib/components/list/types.d.ts +178 -0
  232. package/lib/components/list/utils/index.d.ts +19 -0
  233. package/lib/components/login/index.d.ts +1 -0
  234. package/lib/components/pay/toB/components/Cache/index.d.ts +0 -1
  235. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  236. package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
  237. package/lib/components/pay/toC/PaymentList/index.d.ts +19 -0
  238. package/lib/components/pay/toC/PaymentList/serve.d.ts +28 -0
  239. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  240. package/lib/components/pay/toC/locales.d.ts +307 -0
  241. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  242. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  243. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  244. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  245. package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
  246. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  247. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  248. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  249. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  250. package/lib/components/productExtension/index.d.ts +1 -0
  251. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  252. package/lib/components/ruleSetting/index.d.ts +1 -0
  253. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  254. package/lib/components/schedules/calendar/index.d.ts +1 -0
  255. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  256. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  257. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  258. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  259. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  260. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  261. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  262. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  263. package/lib/components/schedules/products/index.d.ts +1 -0
  264. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  265. package/lib/components/schedules/products/list/index.d.ts +1 -0
  266. package/lib/components/schedules/resources/index.d.ts +1 -0
  267. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  268. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  269. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  270. package/lib/components/schedules/schedules/index.d.ts +1 -0
  271. package/lib/components/shoppingCart/index.d.ts +1 -0
  272. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  273. package/lib/components/taxSelect/index.d.ts +1 -0
  274. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  275. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  276. package/lib/components/ticketBooking/components/bookingDataPanel/index.js +3 -2
  277. package/lib/components/ticketBooking/components/timeBar/index.d.ts +14 -0
  278. package/lib/components/ticketBooking/index.d.ts +1 -0
  279. package/lib/components/ticketBooking/locales.d.ts +201 -0
  280. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  281. package/lib/hooks/printer.d.ts +4 -0
  282. package/lib/hooks/useEngineContext.d.ts +4 -0
  283. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  284. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  285. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  286. package/lib/plus/clinetSearch/index.d.ts +18 -0
  287. package/lib/plus/clinetSearch/locales.d.ts +108 -0
  288. package/lib/plus/clinetSearch/types.d.ts +70 -0
  289. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  290. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  291. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  292. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  293. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  294. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  295. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  296. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  297. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  298. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  299. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  300. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  301. package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
  302. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  303. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  304. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  305. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  306. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  307. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  308. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  309. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +4 -0
  310. package/lib/plus/skuOptionsSelection/locales.d.ts +33 -0
  311. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  312. package/lib/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  313. package/lib/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  314. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  315. package/lib/pro/pisellPaymentList/example.d.ts +1 -0
  316. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  317. package/package.json +1 -1
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
30
  * @return {*}
31
31
  * @Author: xiangfeng.xue
32
32
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CartItem: ({ onNext, renderContactInfo }: any) => JSX.Element;
3
4
  export default CartItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AppointmentBooking: () => JSX.Element;
3
4
  export default AppointmentBooking;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const SelectProductItem: ({ item, onClick, onChangeQuantity, amountSymbol, style, className, disabled, }: any) => JSX.Element;
3
4
  export default SelectProductItem;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, amountSymbol: string) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 空状态
3
4
  * @description:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const FooterMenus: ({ state, menuChange, items }: any) => JSX.Element | null;
3
4
  export default FooterMenus;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  modal: any;
@@ -1,16 +1,7 @@
1
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
2
  var _excluded = ["otherParams", "backgroundColors", "labelColor", "valueColor", "refreshKey", "onDataChange"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
5
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
7
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
8
4
  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; }
9
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
13
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
14
5
  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); } }
15
6
  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); }); }; }
16
7
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -23,11 +14,11 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
23
14
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
24
15
  import React, { forwardRef, useEffect, useImperativeHandle, useState } from 'react';
25
16
  import { PisellStatisticList } from '@pisell/materials';
26
- import { isArr, locales } from '@pisell/utils';
17
+ import { locales } from '@pisell/utils';
27
18
  import dayjs from 'dayjs';
28
19
  import useEngineContext from "../../../hooks/useEngineContext";
29
20
  import { request } from "../utils";
30
- import { getBookingList } from "./serve";
21
+ import { getStatistic } from "./serve";
31
22
  import localeTexts from "../locales";
32
23
  import { getLocale } from "../../../utils/locales";
33
24
  var translationOriginal = function translationOriginal(text) {
@@ -36,14 +27,14 @@ var translationOriginal = function translationOriginal(text) {
36
27
  var formatCapacityToChildrenData = function formatCapacityToChildrenData(data) {
37
28
  var map = {};
38
29
  data.forEach(function (item) {
39
- var name = translationOriginal(item.name) || 'default';
30
+ var name = translationOriginal(item.label) || 'default';
40
31
  if (!map[name]) {
41
32
  map[name] = {
42
- label: !item.id ? locales.getText('pisell2.booking.dashboard.default') : translationOriginal(item.name) || '',
33
+ label: !item.label ? locales.getText('pisell2.booking.dashboard.default') : item.label,
43
34
  value: 0
44
35
  };
45
36
  }
46
- map[name].value = (map[name].value || 0) + (item.value || 0);
37
+ map[name].value = (map[name].value || 0) + (item.num || 0);
47
38
  });
48
39
  return Object.values(map).filter(function (item) {
49
40
  return !!item.value;
@@ -53,6 +44,7 @@ var formatCapacityToChildrenData = function formatCapacityToChildrenData(data) {
53
44
  };
54
45
  locales.init(localeTexts, getLocale());
55
46
  var BookingDashboard = /*#__PURE__*/forwardRef(function (props, ref) {
47
+ var _context$appHelper, _businessUtils$getApp;
56
48
  var _props$otherParams = props.otherParams,
57
49
  otherParams = _props$otherParams === void 0 ? {} : _props$otherParams,
58
50
  backgroundColors = props.backgroundColors,
@@ -64,6 +56,10 @@ var BookingDashboard = /*#__PURE__*/forwardRef(function (props, ref) {
64
56
  var context = useEngineContext();
65
57
  request.setRequest(context.appHelper.utils.request);
66
58
  translationOriginal = context.appHelper.utils.translationOriginal;
59
+ var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
60
+ businessUtils = _ref.businessUtils;
61
+ // 是否安装闸机应用
62
+ var hasTurnstileApp = !!(businessUtils !== null && businessUtils !== void 0 && (_businessUtils$getApp = businessUtils.getAppByModal) !== null && _businessUtils$getApp !== void 0 && _businessUtils$getApp.call(businessUtils, 'turnstile'));
67
63
  var _useState = useState([
68
64
  // 当前在场团体
69
65
  {
@@ -116,96 +112,88 @@ var BookingDashboard = /*#__PURE__*/forwardRef(function (props, ref) {
116
112
  _useState2 = _slicedToArray(_useState, 2),
117
113
  data = _useState2[0],
118
114
  setData = _useState2[1];
119
- var _useState3 = useState([]),
115
+
116
+ // const [bookingData, setBookingData] = useState([]);
117
+ var _useState3 = useState({}),
120
118
  _useState4 = _slicedToArray(_useState3, 2),
121
- bookingData = _useState4[0],
122
- setBookingData = _useState4[1];
119
+ statisticData = _useState4[0],
120
+ setStatisticData = _useState4[1];
123
121
  var getData = /*#__PURE__*/function () {
124
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
125
- var data;
122
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
123
+ var _otherParams$booking_;
124
+ var statisticsTime, statisticsDay, now, res;
126
125
  return _regeneratorRuntime().wrap(function _callee$(_context) {
127
126
  while (1) switch (_context.prev = _context.next) {
128
127
  case 0:
129
- _context.next = 2;
130
- return getBookingList(_objectSpread(_objectSpread({}, otherParams), {}, {
131
- item_type: 'appointment_booking',
132
- parent_id: 0,
133
- with: ['children'],
134
- child_booking: 0,
135
- skip: 1,
136
- num: 1000
137
- }));
138
- case 2:
139
- data = _context.sent;
140
- setBookingData(data.list);
141
- case 4:
128
+ console.log('otherParams', otherParams);
129
+ statisticsTime = (otherParams === null || otherParams === void 0 || (_otherParams$booking_ = otherParams.booking_time_start_between) === null || _otherParams$booking_ === void 0 ? void 0 : _otherParams$booking_[1]) || dayjs().format('YYYY-MM-DD HH:mm:ss');
130
+ /**
131
+ * statisticsTime 规则:
132
+ * - 昨天及昨天之前:固定为该日 23:59:59
133
+ * - 今天:取当前时间
134
+ * - 明天及明天之后:固定为该日 00:00:00
135
+ */
136
+ statisticsDay = dayjs(statisticsTime);
137
+ now = dayjs();
138
+ if (statisticsDay.isValid()) {
139
+ if (statisticsDay.isSame(now, 'day')) statisticsTime = now.format('YYYY-MM-DD HH:mm:ss');
140
+ if (statisticsDay.isBefore(now, 'day')) statisticsTime = statisticsDay.endOf('day').format('YYYY-MM-DD HH:mm:ss');
141
+ if (statisticsDay.isAfter(now, 'day')) statisticsTime = statisticsDay.startOf('day').format('YYYY-MM-DD HH:mm:ss');
142
+ }
143
+ _context.next = 7;
144
+ return getStatistic({
145
+ statistics_time: statisticsTime
146
+ });
147
+ case 7:
148
+ res = _context.sent;
149
+ setStatisticData(res);
150
+ calcBookingDataCount();
151
+ // const data = await getBookingList({
152
+ // ...otherParams,
153
+ // item_type: 'appointment_booking',
154
+ // parent_id: 0,
155
+ // with: ['children'],
156
+ // child_booking: 0,
157
+ // skip: 1,
158
+ // num: 1000,
159
+ // });
160
+ // setBookingData(data.list);
161
+ case 10:
142
162
  case "end":
143
163
  return _context.stop();
144
164
  }
145
165
  }, _callee);
146
166
  }));
147
167
  return function getData() {
148
- return _ref.apply(this, arguments);
168
+ return _ref2.apply(this, arguments);
149
169
  };
150
170
  }();
151
- var calcBookingDataCount = function calcBookingDataCount(data) {
171
+ var calcBookingDataCount = function calcBookingDataCount() {
172
+ var _statisticData$total_, _statisticData$total_2, _statisticData$ongoin, _statisticData$ongoin2, _statisticData$upcomi, _statisticData$upcomi2;
152
173
  // 当前在场团体
153
- var groupsOnSiteNow = '-';
154
-
174
+ var groupsOnSiteNow = statisticData.groups_today_num || 0;
155
175
  // 当前在场人数
156
- var peopleOnSiteNow = '-';
176
+ var peopleOnSiteNow = statisticData.people_on_site_now_num || (hasTurnstileApp ? 0 : '-');
157
177
  // 今日游客总数
158
- var totalVisitorsToday = 0;
178
+ var totalVisitorsToday = ((_statisticData$total_ = statisticData.total_visitors_today) === null || _statisticData$total_ === void 0 ? void 0 : _statisticData$total_.num) || 0;
159
179
  // 今日游客二级数据
160
- var totalVisitorsTodayChildren = [];
180
+ var totalVisitorsTodayChildren = ((_statisticData$total_2 = statisticData.total_visitors_today) === null || _statisticData$total_2 === void 0 ? void 0 : _statisticData$total_2.statistics) || [];
161
181
  // 正在进行中的游客
162
- var ongoing = 0;
182
+ var ongoing = ((_statisticData$ongoin = statisticData.ongoing_visitors) === null || _statisticData$ongoin === void 0 ? void 0 : _statisticData$ongoin.num) || 0;
163
183
  // 正在进行中的游客二级数据
164
- var ongoingChildren = [];
184
+ var ongoingChildren = ((_statisticData$ongoin2 = statisticData.ongoing_visitors) === null || _statisticData$ongoin2 === void 0 ? void 0 : _statisticData$ongoin2.statistics) || [];
165
185
  // 即将到达的游客
166
- var upcoming = 0;
186
+ var upcoming = ((_statisticData$upcomi = statisticData.upcoming_visitors) === null || _statisticData$upcomi === void 0 ? void 0 : _statisticData$upcomi.num) || 0;
167
187
  // 即将到达的游客二级数据
168
- var upcomingChildren = [];
188
+ var upcomingChildren = ((_statisticData$upcomi2 = statisticData.upcoming_visitors) === null || _statisticData$upcomi2 === void 0 ? void 0 : _statisticData$upcomi2.statistics) || [];
169
189
  // 超时的游客
170
- var overdue = '-';
190
+ var overdue = statisticData.overdue_visitors_num || (hasTurnstileApp ? 0 : '-');
171
191
  // 已完成的游客
172
- var completed = 0;
192
+ var completed = statisticData.completed_visitors.num || 0;
173
193
  // 已完成的游客二级数据
174
- var completedChildren = [];
194
+ var completedChildren = statisticData.completed_visitors.statistics || [];
175
195
  // 已离场的游客
176
- var departed = '-';
177
- data.forEach(function (item) {
178
- if (isArr(item.children)) {
179
- item.children.forEach(function (child) {
180
- var _child$metadata;
181
- var start = dayjs("".concat(child.start_date, " ").concat(child.start_time));
182
- var end = dayjs("".concat(child.end_date, " ").concat(child.end_time));
183
-
184
- // 今日游客总数
185
- totalVisitorsToday += child.number;
186
- totalVisitorsTodayChildren.push.apply(totalVisitorsTodayChildren, _toConsumableArray(((_child$metadata = child.metadata) === null || _child$metadata === void 0 ? void 0 : _child$metadata.capacity) || []));
187
-
188
- // 正在进行中的游客
189
- if (start < dayjs() && end > dayjs()) {
190
- var _child$metadata2;
191
- ongoing += child.number || 1;
192
- ongoingChildren.push.apply(ongoingChildren, _toConsumableArray(((_child$metadata2 = child.metadata) === null || _child$metadata2 === void 0 ? void 0 : _child$metadata2.capacity) || []));
193
- }
194
- // 即将到达的游客
195
- if (dayjs() < start) {
196
- var _child$metadata3;
197
- upcoming += child.number || 1;
198
- upcomingChildren.push.apply(upcomingChildren, _toConsumableArray(((_child$metadata3 = child.metadata) === null || _child$metadata3 === void 0 ? void 0 : _child$metadata3.capacity) || []));
199
- }
200
- // 已完成的游客
201
- if (dayjs() > end) {
202
- var _child$metadata4;
203
- completed += child.number || 1;
204
- completedChildren.push.apply(completedChildren, _toConsumableArray(((_child$metadata4 = child.metadata) === null || _child$metadata4 === void 0 ? void 0 : _child$metadata4.capacity) || []));
205
- }
206
- });
207
- }
208
- });
196
+ var departed = statisticData.departed_visitors_num || (hasTurnstileApp ? 0 : '-');
209
197
  onDataChange === null || onDataChange === void 0 || onDataChange({
210
198
  groupsOnSiteNow: groupsOnSiteNow,
211
199
  peopleOnSiteNow: peopleOnSiteNow,
@@ -215,7 +203,7 @@ var BookingDashboard = /*#__PURE__*/forwardRef(function (props, ref) {
215
203
  overdue: overdue,
216
204
  completed: completed,
217
205
  departed: departed
218
- }, data);
206
+ }, []);
219
207
  setData([
220
208
  // 当前在场团体
221
209
  {
@@ -270,24 +258,13 @@ var BookingDashboard = /*#__PURE__*/forwardRef(function (props, ref) {
270
258
  value: "".concat(departed)
271
259
  }]);
272
260
  };
273
- useEffect(function () {
274
- calcBookingDataCount(bookingData);
275
-
276
- // 每分钟重新计算预约数据
277
- var timer = setInterval(function () {
278
- calcBookingDataCount(bookingData);
279
- }, 60 * 1000);
280
- return function () {
281
- clearInterval(timer);
282
- };
283
- }, [bookingData]);
284
261
  useEffect(function () {
285
262
  getData();
286
263
 
287
- // 10分钟更新一次数据
264
+ // 每分钟更新一次数据
288
265
  var timer = setInterval(function () {
289
266
  getData();
290
- }, 10 * 60 * 1000);
267
+ }, 60 * 1000);
291
268
  return function () {
292
269
  clearInterval(timer);
293
270
  };
@@ -295,6 +272,7 @@ var BookingDashboard = /*#__PURE__*/forwardRef(function (props, ref) {
295
272
  useImperativeHandle(ref, function () {
296
273
  return {
297
274
  refresh: function refresh() {
275
+ debugger;
298
276
  getData();
299
277
  }
300
278
  };
@@ -1 +1,2 @@
1
1
  export declare const getBookingList: (params: any) => Promise<any>;
2
+ export declare const getStatistic: (params: any) => Promise<any>;
@@ -29,4 +29,26 @@ export var getBookingList = /*#__PURE__*/function () {
29
29
  return function getBookingList(_x) {
30
30
  return _ref.apply(this, arguments);
31
31
  };
32
+ }();
33
+ export var getStatistic = /*#__PURE__*/function () {
34
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
35
+ var _yield$request$getReq2, data;
36
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
37
+ while (1) switch (_context2.prev = _context2.next) {
38
+ case 0:
39
+ _context2.next = 2;
40
+ return request.getRequest().get("/shop/schedule/ticket/statistics", params);
41
+ case 2:
42
+ _yield$request$getReq2 = _context2.sent;
43
+ data = _yield$request$getReq2.data;
44
+ return _context2.abrupt("return", data);
45
+ case 5:
46
+ case "end":
47
+ return _context2.stop();
48
+ }
49
+ }, _callee2);
50
+ }));
51
+ return function getStatistic(_x2) {
52
+ return _ref2.apply(this, arguments);
53
+ };
32
54
  }();
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: (props: any) => JSX.Element;
2
3
  export default Deposit;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 表单选择器
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from '../../../model';
2
3
  interface useClientFnParams {
3
4
  state: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const header: ({ state, dispatch }: any) => JSX.Element;
3
4
  export default header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EditServiceRef } from "../service/editService";
2
3
  declare const useInfoHolder: (state: any, dispatch: any) => {
3
4
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource, isShowDelete, isShowAmountFooter }: any) => JSX.Element;
2
3
  export default Lists;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import './index.less';
3
4
  interface AddServiceProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingList: ({ items }: {
3
2
  items: any[];
4
3
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;