@pisell/private-materials 6.8.92 → 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 (211) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +164 -150
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/Sales/Summary/utils.d.ts +1 -1
  12. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  16. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  17. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  18. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  19. package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
  20. package/es/components/booking/components/footer/index.d.ts +0 -1
  21. package/es/components/booking/components/voucher/index.d.ts +0 -1
  22. package/es/components/booking/dashboard/index.js +71 -93
  23. package/es/components/booking/dashboard/serve.d.ts +1 -0
  24. package/es/components/booking/dashboard/serve.js +22 -0
  25. package/es/components/booking/forms/footer.d.ts +0 -1
  26. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  27. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  28. package/es/components/booking/hooks/useQuotation.d.ts +0 -1
  29. package/es/components/booking/info/date/index.d.ts +0 -1
  30. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  31. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  32. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
  33. package/es/components/booking/info/service2/utils.js +41 -39
  34. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  35. package/es/components/booking/utils.d.ts +2 -2
  36. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
  37. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  38. package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
  39. package/es/components/eftposPay/hooks.d.ts +1 -1
  40. package/es/components/eftposPay/store/index.d.ts +5 -5
  41. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  42. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  43. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  44. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  45. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  46. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  47. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  48. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  49. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  50. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  51. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  52. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  53. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  54. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  55. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  56. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  57. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  58. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  59. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  60. package/es/components/pay/toB/components/Cache/index.d.ts +0 -1
  61. package/es/components/pay/toB/components/Card/index.d.ts +0 -1
  62. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -1
  63. package/es/components/pay/toB/components/Content/Footer.d.ts +0 -1
  64. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  65. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  66. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  67. package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
  68. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
  69. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  70. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
  71. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  72. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  73. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  74. package/es/components/ticketBooking/components/bookingDataPanel/index.js +2 -1
  75. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  76. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  77. package/es/components/ticketBooking/index.d.ts +1 -0
  78. package/es/components/walletList/index.d.ts +0 -1
  79. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  80. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  81. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +0 -1
  82. package/es/plus/noteModal/AddTempModal.d.ts +0 -1
  83. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
  84. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  85. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  86. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -1
  87. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
  88. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  89. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  90. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
  91. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  92. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
  93. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  94. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  95. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
  96. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  97. package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  98. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  99. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
  100. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  101. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
  102. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  103. package/es/plus/walletPassGallery/components/passList/index.d.ts +0 -1
  104. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
  105. package/es/plus/walletPassGallery/index.d.ts +0 -1
  106. package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -1
  107. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +0 -1
  108. package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
  109. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
  110. package/es/pro/skuDetailModal/index.less +18 -0
  111. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  112. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  113. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  114. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  115. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  116. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  117. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  118. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  119. package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
  120. package/lib/components/booking/components/footer/index.d.ts +0 -1
  121. package/lib/components/booking/components/voucher/index.d.ts +0 -1
  122. package/lib/components/booking/dashboard/index.js +38 -60
  123. package/lib/components/booking/dashboard/serve.d.ts +1 -0
  124. package/lib/components/booking/dashboard/serve.js +8 -2
  125. package/lib/components/booking/forms/footer.d.ts +0 -1
  126. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  127. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  128. package/lib/components/booking/hooks/useQuotation.d.ts +0 -1
  129. package/lib/components/booking/info/date/index.d.ts +0 -1
  130. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  131. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  132. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
  133. package/lib/components/booking/info/service2/utils.js +3 -1
  134. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  135. package/lib/components/booking/utils.d.ts +2 -2
  136. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
  137. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  138. package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
  139. package/lib/components/eftposPay/hooks.d.ts +1 -1
  140. package/lib/components/eftposPay/store/index.d.ts +5 -5
  141. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  142. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  143. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  144. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  145. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  146. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  147. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  148. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  149. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  150. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  151. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  152. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  153. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  154. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  155. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  156. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  157. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  158. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  159. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  160. package/lib/components/pay/toB/components/Cache/index.d.ts +0 -1
  161. package/lib/components/pay/toB/components/Card/index.d.ts +0 -1
  162. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -1
  163. package/lib/components/pay/toB/components/Content/Footer.d.ts +0 -1
  164. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  165. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  166. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  167. package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
  168. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
  169. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  170. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
  171. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  172. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  173. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  174. package/lib/components/ticketBooking/components/bookingDataPanel/index.js +3 -2
  175. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  176. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  177. package/lib/components/ticketBooking/index.d.ts +1 -0
  178. package/lib/components/walletList/index.d.ts +0 -1
  179. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  180. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  181. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +0 -1
  182. package/lib/plus/noteModal/AddTempModal.d.ts +0 -1
  183. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
  184. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  185. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  186. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -1
  187. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
  188. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  189. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  190. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
  191. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  192. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
  193. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  194. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  195. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
  196. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  197. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  198. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  199. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
  200. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  201. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
  202. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  203. package/lib/plus/walletPassGallery/components/passList/index.d.ts +0 -1
  204. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
  205. package/lib/plus/walletPassGallery/index.d.ts +0 -1
  206. package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -1
  207. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +0 -1
  208. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
  209. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
  210. package/lib/pro/skuDetailModal/index.less +18 -0
  211. package/package.json +1 -1
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Duration: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.ReactFragment | JSX.Element | null;
5
+ }) => string | number | true | JSX.Element | React.ReactFragment | null;
6
6
  export default Duration;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ProductCardConfig } from '../../type';
4
3
  declare const Favorite: ({ props }: {
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const MemberPrice: ({ props }: {
5
5
  props: ProductCardConfig;
6
- }) => string | number | true | React.ReactFragment | JSX.Element | null;
6
+ }) => string | number | true | JSX.Element | React.ReactFragment | null;
7
7
  export default MemberPrice;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductCardConfig } from '../../type';
3
2
  import './index.less';
4
3
  declare const Promotions: ({ props }: {
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Resource: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.ReactFragment | JSX.Element | null;
5
+ }) => string | number | true | JSX.Element | React.ReactFragment | null;
6
6
  export default Resource;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Stock: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.ReactFragment | JSX.Element | null;
5
+ }) => string | number | true | JSX.Element | React.ReactFragment | null;
6
6
  export default Stock;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductCardConfig } from '../../type';
3
2
  import './index.less';
4
3
  declare const Tags: ({ props }: {
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Time: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.ReactFragment | JSX.Element | null;
5
+ }) => string | number | true | JSX.Element | React.ReactFragment | null;
6
6
  export default Time;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../index.less';
3
2
  declare const VertifyEmail: (props: {
4
3
  email: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => JSX.Element;
4
3
  export default ErrorTip;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const OptionItemCard: (props: any) => JSX.Element;
4
3
  export default OptionItemCard;
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * 单规格商品卡片,点击后需要拉起弹窗展示具体的规格信息
3
3
  */
4
- /// <reference types="react" />
5
4
  import { RenderItemProps } from '../../../../pro/Selector/types';
6
5
  import './index.less';
7
6
  declare const OptionsCard: (props: RenderItemProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface OptionsModalProps {
3
2
  parentDataSource: any;
4
3
  dataSource: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface PassDetailProps {
4
3
  dataSource?: any | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IPassListProps {
3
2
  dataSource: any[];
4
3
  value?: string | number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface TimelineSectionProps {
4
3
  code: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface WalletPassGalleryProps {
4
3
  [key: string]: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PopoverProps } from 'antd';
3
2
  import './index.less';
4
3
  interface PisellPhoneKeyboardProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CashKeyboardBaseProps } from './types';
3
2
  import './index.less';
4
3
  declare const CashKeyboardIntact: (props: CashKeyboardBaseProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PaymentKeyboardBaseProps } from './types';
3
2
  import './index.less';
4
3
  interface PaymentKeyboardProps extends PaymentKeyboardBaseProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const useRightItems: (props: {
3
2
  rightItemsStyle?: any;
4
3
  doneText?: string;
@@ -11,6 +11,24 @@
11
11
  max-height: 884px!important;
12
12
  }
13
13
 
14
+ /**
15
+ * @description 矮屏设备适配(例如 1366×763)
16
+ * - 当屏幕高度本身低于 884px 时,整体弹窗高度下调,避免弹窗显示不全
17
+ * - 同步调整右侧滚动容器最大高度,确保滚动区域可用
18
+ */
19
+ @media screen and (max-height: 883px) {
20
+ height: 650px;
21
+
22
+ .pisell-lowcode-modal-content {
23
+ height: 650px;
24
+ max-height: 650px !important;
25
+ }
26
+
27
+ .sku-detail-right-content {
28
+ max-height: 496px;
29
+ }
30
+ }
31
+
14
32
  // SkuDetailModal 内部使用自定义滚动容器(右侧内容区),避免整块 modal body 滚动
15
33
  .pisell-lowcode-modal-body {
16
34
  overflow: hidden !important;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
4
3
  export default Total;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: ({ open, onCancel, onNext }: any) => JSX.Element;
4
3
  export default Cart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const DepositContent: (props: {
4
3
  isAgreeDepositPolicy: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
4
3
  export default Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const GuestOptionsModal: (props: any) => JSX.Element;
4
3
  export default GuestOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../booking/components/voucher/index.less';
3
2
  import './index.less';
4
3
  declare const VoucherCard: (props: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DepositModal: (props: any) => JSX.Element;
4
3
  export default DepositModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Deposit: (props: any) => JSX.Element;
4
3
  export default Deposit;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 底部
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const VoucherCard: (props: any) => JSX.Element | null;
4
3
  export default VoucherCard;
@@ -45,19 +45,20 @@ var translationOriginal = (text) => "";
45
45
  var formatCapacityToChildrenData = (data) => {
46
46
  const map = {};
47
47
  data.forEach((item) => {
48
- const name = translationOriginal(item.name) || "default";
48
+ const name = translationOriginal(item.label) || "default";
49
49
  if (!map[name]) {
50
50
  map[name] = {
51
- label: !item.id ? import_utils.locales.getText("pisell2.booking.dashboard.default") : translationOriginal(item.name) || "",
51
+ label: !item.label ? import_utils.locales.getText("pisell2.booking.dashboard.default") : item.label,
52
52
  value: 0
53
53
  };
54
54
  }
55
- map[name].value = (map[name].value || 0) + (item.value || 0);
55
+ map[name].value = (map[name].value || 0) + (item.num || 0);
56
56
  });
57
57
  return Object.values(map).filter((item) => !!item.value).sort((a, b) => b.label.localeCompare(a.label));
58
58
  };
59
59
  import_utils.locales.init(import_locales.default, (0, import_locales2.getLocale)());
60
60
  var BookingDashboard = (0, import_react.forwardRef)((props, ref) => {
61
+ var _a, _b;
61
62
  const {
62
63
  otherParams = {},
63
64
  backgroundColors,
@@ -70,6 +71,8 @@ var BookingDashboard = (0, import_react.forwardRef)((props, ref) => {
70
71
  const context = (0, import_useEngineContext.default)();
71
72
  import_utils2.request.setRequest(context.appHelper.utils.request);
72
73
  translationOriginal = context.appHelper.utils.translationOriginal;
74
+ const { businessUtils } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
75
+ const hasTurnstileApp = !!((_b = businessUtils == null ? void 0 : businessUtils.getAppByModal) == null ? void 0 : _b.call(businessUtils, "turnstile"));
73
76
  const [data, setData] = (0, import_react.useState)([
74
77
  // 当前在场团体
75
78
  {
@@ -122,55 +125,38 @@ var BookingDashboard = (0, import_react.forwardRef)((props, ref) => {
122
125
  tip: import_utils.locales.getText("pisell2.booking.dashboard.departed-visitors-tip")
123
126
  }
124
127
  ]);
125
- const [bookingData, setBookingData] = (0, import_react.useState)([]);
128
+ const [statisticData, setStatisticData] = (0, import_react.useState)({});
126
129
  const getData = async () => {
127
- const data2 = await (0, import_serve.getBookingList)({
128
- ...otherParams,
129
- item_type: "appointment_booking",
130
- parent_id: 0,
131
- with: ["children"],
132
- child_booking: 0,
133
- skip: 1,
134
- num: 1e3
130
+ var _a2;
131
+ console.log("otherParams", otherParams);
132
+ let statisticsTime = ((_a2 = otherParams == null ? void 0 : otherParams.booking_time_start_between) == null ? void 0 : _a2[1]) || (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss");
133
+ const statisticsDay = (0, import_dayjs.default)(statisticsTime);
134
+ const now = (0, import_dayjs.default)();
135
+ if (statisticsDay.isValid()) {
136
+ if (statisticsDay.isSame(now, "day")) statisticsTime = now.format("YYYY-MM-DD HH:mm:ss");
137
+ if (statisticsDay.isBefore(now, "day")) statisticsTime = statisticsDay.endOf("day").format("YYYY-MM-DD HH:mm:ss");
138
+ if (statisticsDay.isAfter(now, "day")) statisticsTime = statisticsDay.startOf("day").format("YYYY-MM-DD HH:mm:ss");
139
+ }
140
+ const res = await (0, import_serve.getStatistic)({
141
+ statistics_time: statisticsTime
135
142
  });
136
- setBookingData(data2.list);
143
+ setStatisticData(res);
144
+ calcBookingDataCount();
137
145
  };
138
- const calcBookingDataCount = (data2) => {
139
- let groupsOnSiteNow = "-";
140
- let peopleOnSiteNow = "-";
141
- let totalVisitorsToday = 0;
142
- let totalVisitorsTodayChildren = [];
143
- let ongoing = 0;
144
- let ongoingChildren = [];
145
- let upcoming = 0;
146
- let upcomingChildren = [];
147
- let overdue = "-";
148
- let completed = 0;
149
- let completedChildren = [];
150
- let departed = "-";
151
- data2.forEach((item) => {
152
- if ((0, import_utils.isArr)(item.children)) {
153
- item.children.forEach((child) => {
154
- var _a, _b, _c, _d;
155
- const start = (0, import_dayjs.default)(`${child.start_date} ${child.start_time}`);
156
- const end = (0, import_dayjs.default)(`${child.end_date} ${child.end_time}`);
157
- totalVisitorsToday += child.number;
158
- totalVisitorsTodayChildren.push(...((_a = child.metadata) == null ? void 0 : _a.capacity) || []);
159
- if (start < (0, import_dayjs.default)() && end > (0, import_dayjs.default)()) {
160
- ongoing += child.number || 1;
161
- ongoingChildren.push(...((_b = child.metadata) == null ? void 0 : _b.capacity) || []);
162
- }
163
- if ((0, import_dayjs.default)() < start) {
164
- upcoming += child.number || 1;
165
- upcomingChildren.push(...((_c = child.metadata) == null ? void 0 : _c.capacity) || []);
166
- }
167
- if ((0, import_dayjs.default)() > end) {
168
- completed += child.number || 1;
169
- completedChildren.push(...((_d = child.metadata) == null ? void 0 : _d.capacity) || []);
170
- }
171
- });
172
- }
173
- });
146
+ const calcBookingDataCount = () => {
147
+ var _a2, _b2, _c, _d, _e, _f;
148
+ let groupsOnSiteNow = statisticData.groups_today_num || 0;
149
+ let peopleOnSiteNow = statisticData.people_on_site_now_num || (hasTurnstileApp ? 0 : "-");
150
+ let totalVisitorsToday = ((_a2 = statisticData.total_visitors_today) == null ? void 0 : _a2.num) || 0;
151
+ let totalVisitorsTodayChildren = ((_b2 = statisticData.total_visitors_today) == null ? void 0 : _b2.statistics) || [];
152
+ let ongoing = ((_c = statisticData.ongoing_visitors) == null ? void 0 : _c.num) || 0;
153
+ let ongoingChildren = ((_d = statisticData.ongoing_visitors) == null ? void 0 : _d.statistics) || [];
154
+ let upcoming = ((_e = statisticData.upcoming_visitors) == null ? void 0 : _e.num) || 0;
155
+ let upcomingChildren = ((_f = statisticData.upcoming_visitors) == null ? void 0 : _f.statistics) || [];
156
+ let overdue = statisticData.overdue_visitors_num || (hasTurnstileApp ? 0 : "-");
157
+ let completed = statisticData.completed_visitors.num || 0;
158
+ let completedChildren = statisticData.completed_visitors.statistics || [];
159
+ let departed = statisticData.departed_visitors_num || (hasTurnstileApp ? 0 : "-");
174
160
  onDataChange == null ? void 0 : onDataChange(
175
161
  {
176
162
  groupsOnSiteNow,
@@ -182,7 +168,7 @@ var BookingDashboard = (0, import_react.forwardRef)((props, ref) => {
182
168
  completed,
183
169
  departed
184
170
  },
185
- data2
171
+ []
186
172
  );
187
173
  setData([
188
174
  // 当前在场团体
@@ -249,26 +235,18 @@ var BookingDashboard = (0, import_react.forwardRef)((props, ref) => {
249
235
  }
250
236
  ]);
251
237
  };
252
- (0, import_react.useEffect)(() => {
253
- calcBookingDataCount(bookingData);
254
- const timer = setInterval(() => {
255
- calcBookingDataCount(bookingData);
256
- }, 60 * 1e3);
257
- return () => {
258
- clearInterval(timer);
259
- };
260
- }, [bookingData]);
261
238
  (0, import_react.useEffect)(() => {
262
239
  getData();
263
240
  const timer = setInterval(() => {
264
241
  getData();
265
- }, 10 * 60 * 1e3);
242
+ }, 60 * 1e3);
266
243
  return () => {
267
244
  clearInterval(timer);
268
245
  };
269
246
  }, [JSON.stringify(otherParams), refreshKey]);
270
247
  (0, import_react.useImperativeHandle)(ref, () => ({
271
248
  refresh: () => {
249
+ debugger;
272
250
  getData();
273
251
  }
274
252
  }));
@@ -1 +1,2 @@
1
1
  export declare const getBookingList: (params: any) => Promise<any>;
2
+ export declare const getStatistic: (params: any) => Promise<any>;
@@ -19,7 +19,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  // src/components/booking/dashboard/serve.ts
20
20
  var serve_exports = {};
21
21
  __export(serve_exports, {
22
- getBookingList: () => getBookingList
22
+ getBookingList: () => getBookingList,
23
+ getStatistic: () => getStatistic
23
24
  });
24
25
  module.exports = __toCommonJS(serve_exports);
25
26
  var import_utils = require("../utils");
@@ -32,7 +33,12 @@ var getBookingList = async (params) => {
32
33
  });
33
34
  return data;
34
35
  };
36
+ var getStatistic = async (params) => {
37
+ let { data } = await import_utils.request.getRequest().get(`/shop/schedule/ticket/statistics`, params);
38
+ return data;
39
+ };
35
40
  // Annotate the CommonJS export names for ESM import in node:
36
41
  0 && (module.exports = {
37
- getBookingList
42
+ getBookingList,
43
+ getStatistic
38
44
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface FooterProps {
3
2
  state: any;
4
3
  reload: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SendModalValues } from './index';
3
2
  declare const useSendModal: (bookingId?: number) => {
4
3
  open: boolean;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useClearCart: (state: any, dispatch: any) => false | JSX.Element;
3
2
  export default useClearCart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const calculateTotalPrice: (data: any) => number;
3
2
  declare const useQuotation: (state: any, dispatch: any) => {
4
3
  dom: JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
4
3
  declare const DateCom: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
4
3
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingList: ({ items }: {
3
2
  items: any[];
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, resourceItem, errorMessage, handleDeleteService, }: any) => JSX.Element;
4
3
  export default ServiceItem;
@@ -174,7 +174,9 @@ var currentResource = (state, useResource, cacheItem) => {
174
174
  };
175
175
  var handleChangeHolder = (products, currentItem, other) => {
176
176
  return products.map((item) => {
177
- if (item._id === currentItem._id) {
177
+ var _a, _b, _c, _d;
178
+ const isSameGroup = ((_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.groupId) && ((_b = item._extend) == null ? void 0 : _b.groupId) === ((_d = (_c = currentItem == null ? void 0 : currentItem._origin) == null ? void 0 : _c._extend) == null ? void 0 : _d.groupId);
179
+ if (item._id === currentItem._id || isSameGroup) {
178
180
  return {
179
181
  ...item,
180
182
  _extend: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, handleDeleteService, }: any) => JSX.Element;
4
3
  export default ServiceItem;
@@ -173,10 +173,10 @@ export declare const getProductTotalPrice: (item: any) => number;
173
173
  export declare const getDuration: (duration: number | {
174
174
  type: string;
175
175
  value: number;
176
- }) => number | "flexible" | {
176
+ }) => number | {
177
177
  type: string;
178
178
  value: number;
179
- };
179
+ } | "flexible";
180
180
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
181
181
  export declare const getIsEdit: (state: any) => boolean;
182
182
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface IScanResult {
4
3
  status: 'success' | 'failed';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellWalletPassCardProps } from '../../types';
3
2
  export declare const TestModule: () => JSX.Element;
4
3
  declare const ConflictModal: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface DiscountWalletProps {
4
3
  isCardMode: boolean;
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"loading" | "init" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "init" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
@@ -178,7 +178,7 @@ export declare const updateCustom: (payload: {
178
178
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
179
179
  type: EActionTypes;
180
180
  payload: {
181
- status: "loading" | "success" | "warn" | "fail" | "question";
181
+ status: "loading" | "warn" | "success" | "fail" | "question";
182
182
  };
183
183
  };
184
184
  /**
@@ -299,20 +299,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
299
299
  name?: string | undefined;
300
300
  symbol?: string | undefined;
301
301
  amount?: string | number | undefined;
302
- mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
302
+ mode?: "refund" | "fullPay" | "pay" | "query" | undefined;
303
303
  order_id?: string | number | undefined;
304
304
  eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | "huifu" | undefined;
305
- action?: "pay" | "amount" | "deviceList" | undefined;
305
+ action?: "amount" | "deviceList" | "pay" | undefined;
306
306
  key?: number | undefined;
307
307
  step?: number | undefined;
308
308
  title?: string | undefined;
309
309
  subTitle?: string | undefined;
310
- type?: "unset" | "step" | undefined;
310
+ type?: "step" | "unset" | undefined;
311
311
  render?: boolean | undefined;
312
312
  net?: boolean | undefined;
313
313
  component?: string | undefined;
314
314
  form?: string | undefined;
315
- status?: "loading" | "init" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
315
+ status?: "loading" | "warn" | "success" | "init" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
316
316
  warn?: string | undefined;
317
317
  steps?: {
318
318
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => JSX.Element;
4
3
  export default ErrorTip;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ContinueButton: () => JSX.Element;
4
3
  export default ContinueButton;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
4
3
  export default Total;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const CartItem: () => JSX.Element;
4
3
  export default CartItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: ({ open, onCancel }: any) => JSX.Element;
4
3
  export default Cart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const EmptyHolderModal: (props: any) => JSX.Element;
4
3
  export default EmptyHolderModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Event: () => JSX.Element;
4
3
  export default Event;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: () => JSX.Element;
4
3
  export default Footer;