@pisell/private-materials 6.4.73 → 6.4.75

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 (235) 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 +4 -4
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +5 -5
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +5 -5
  11. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  13. package/es/components/booking/addons/model.d.ts +10 -1
  14. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  15. package/es/components/booking/components/footer/index.js +62 -53
  16. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  17. package/es/components/booking/forms/model.d.ts +10 -1
  18. package/es/components/booking/forms/table/index.d.ts +1 -0
  19. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  20. package/es/components/booking/info/model.d.ts +10 -1
  21. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  22. package/es/components/booking/info/service/like/index.d.ts +1 -0
  23. package/es/components/booking/info/service2/utils.d.ts +1 -1
  24. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  25. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  26. package/es/components/booking/model.d.ts +9 -1
  27. package/es/components/booking/notes/model.d.ts +10 -1
  28. package/es/components/booking/payments/model.d.ts +10 -1
  29. package/es/components/booking/utils.d.ts +2 -2
  30. package/es/components/checkout/PaymentModal.js +178 -108
  31. package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  32. package/es/components/checkout/components/AdditionalModule/index.js +50 -12
  33. package/es/components/checkout/components/AmountSummary/index.js +9 -76
  34. package/es/components/checkout/components/AmountSummary/index.less +1 -1
  35. package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  36. package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
  37. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  38. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
  39. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
  40. package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
  41. package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  42. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
  43. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
  44. package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
  45. package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
  46. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  47. package/es/components/checkout/index.less +1 -1
  48. package/es/components/checkout/locales.d.ts +3 -0
  49. package/es/components/checkout/locales.js +3 -0
  50. package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  51. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  52. package/es/components/eftpos/form/index.d.ts +1 -0
  53. package/es/components/eftpos/group/index.d.ts +1 -0
  54. package/es/components/eftpos/hooks.d.ts +1 -0
  55. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  56. package/es/components/eftpos/icon/device.d.ts +1 -0
  57. package/es/components/eftpos/receipt/index.d.ts +1 -0
  58. package/es/components/eftposPay/amount.d.ts +1 -1
  59. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  60. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  61. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  62. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  63. package/es/components/eftposPay/device.d.ts +1 -1
  64. package/es/components/eftposPay/hooks.d.ts +2 -2
  65. package/es/components/eftposPay/store/index.d.ts +4 -4
  66. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  67. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  68. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  69. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  70. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  71. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  72. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  73. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  74. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  75. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  76. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  77. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  78. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  79. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  80. package/es/components/pay/toC/model.d.ts +9 -1
  81. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  82. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  83. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  84. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  85. package/es/components/schedules/model.d.ts +9 -1
  86. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  87. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  88. package/es/components/schedules/products/index.d.ts +1 -0
  89. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  90. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  91. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  92. package/es/components/ticketBooking/components/timeBar/index.js +112 -7
  93. package/es/components/ticketBooking/components/timeBar/index.less +59 -0
  94. package/es/components/ticketBooking/locales.d.ts +6 -0
  95. package/es/components/ticketBooking/locales.js +9 -3
  96. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  97. package/es/components/wallet/Detail/model.d.ts +13 -1
  98. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  99. package/es/components/wallet/PointCard/model.d.ts +13 -1
  100. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  101. package/es/components/wallet/Voucher/model.d.ts +13 -1
  102. package/es/components/wallet/model.d.ts +9 -1
  103. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  104. package/es/plus/clientName/index.d.ts +1 -0
  105. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  106. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  107. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  108. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  109. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  110. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  111. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  112. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  113. package/es/pro/pisellPaymentList/example.d.ts +1 -0
  114. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +11 -7
  115. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  116. package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
  117. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
  118. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
  119. package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  120. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
  121. package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
  122. package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  123. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  124. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  125. package/lib/components/booking/addons/model.d.ts +10 -1
  126. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  127. package/lib/components/booking/components/footer/index.js +15 -8
  128. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  129. package/lib/components/booking/forms/model.d.ts +10 -1
  130. package/lib/components/booking/forms/table/index.d.ts +1 -0
  131. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  132. package/lib/components/booking/info/model.d.ts +10 -1
  133. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  134. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  135. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  136. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  137. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  138. package/lib/components/booking/model.d.ts +9 -1
  139. package/lib/components/booking/notes/model.d.ts +10 -1
  140. package/lib/components/booking/payments/model.d.ts +10 -1
  141. package/lib/components/booking/utils.d.ts +2 -2
  142. package/lib/components/checkout/PaymentModal.js +73 -11
  143. package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  144. package/lib/components/checkout/components/AdditionalModule/index.js +50 -11
  145. package/lib/components/checkout/components/AmountSummary/index.js +5 -46
  146. package/lib/components/checkout/components/AmountSummary/index.less +1 -1
  147. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  148. package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
  149. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  150. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
  151. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
  152. package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
  153. package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  154. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
  155. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
  156. package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
  157. package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
  158. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  159. package/lib/components/checkout/index.less +1 -1
  160. package/lib/components/checkout/locales.d.ts +3 -0
  161. package/lib/components/checkout/locales.js +3 -0
  162. package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  163. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  164. package/lib/components/eftpos/form/index.d.ts +1 -0
  165. package/lib/components/eftpos/group/index.d.ts +1 -0
  166. package/lib/components/eftpos/hooks.d.ts +1 -0
  167. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  168. package/lib/components/eftpos/icon/device.d.ts +1 -0
  169. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  170. package/lib/components/eftposPay/amount.d.ts +1 -1
  171. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  172. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  173. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  174. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  175. package/lib/components/eftposPay/device.d.ts +1 -1
  176. package/lib/components/eftposPay/hooks.d.ts +2 -2
  177. package/lib/components/eftposPay/store/index.d.ts +4 -4
  178. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  179. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  180. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  181. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  182. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  183. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  184. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  185. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  186. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  187. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  188. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  189. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  190. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  191. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  192. package/lib/components/pay/toC/model.d.ts +9 -1
  193. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  194. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  195. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  196. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  197. package/lib/components/schedules/model.d.ts +9 -1
  198. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  199. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  200. package/lib/components/schedules/products/index.d.ts +1 -0
  201. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  202. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  203. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  204. package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
  205. package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
  206. package/lib/components/ticketBooking/locales.d.ts +6 -0
  207. package/lib/components/ticketBooking/locales.js +9 -3
  208. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  209. package/lib/components/wallet/Detail/model.d.ts +13 -1
  210. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  211. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  212. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  213. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  214. package/lib/components/wallet/model.d.ts +9 -1
  215. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  216. package/lib/plus/clientName/index.d.ts +1 -0
  217. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  218. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  219. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  220. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  221. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  222. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  223. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  224. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  225. package/lib/pro/pisellPaymentList/example.d.ts +1 -0
  226. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +9 -5
  227. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  228. package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
  229. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
  230. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
  231. package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  232. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
  233. package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
  234. package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  235. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  platform: 'pc' | 'h5' | '' | undefined;
3
4
  order: any;
@@ -29,4 +30,11 @@ export interface PayGroup {
29
30
  _order: any;
30
31
  front_order_uuid?: string;
31
32
  }
32
- export declare const Provider: any, Context: any;
33
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
34
+ state: FormState;
35
+ } & {
36
+ dispatch: (params: {
37
+ type: string;
38
+ payload: any;
39
+ }) => void;
40
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const Actor: ({ name }: {
2
3
  name: string;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface InfoProps {
2
3
  relation_id: any;
3
4
  action: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem } from "../type";
2
3
  declare type CalendarItemProps = {
3
4
  month: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type CurrentDayProps = {
3
4
  onClose: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem, ScheduleItem } from "./type";
2
3
  import dayjs from "dayjs";
3
4
  export interface FormState {
@@ -68,4 +69,11 @@ export interface FormState {
68
69
  };
69
70
  setGlobalState: Function | null;
70
71
  }
71
- export declare const Provider: any, Context: any;
72
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
+ state: FormState;
74
+ } & {
75
+ dispatch: (params: {
76
+ type: string;
77
+ payload: any;
78
+ }) => void;
79
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductDetail: ({ form, currentProduct, }: {
3
4
  form: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductDetailByDate: () => JSX.Element;
3
4
  export default ProductDetailByDate;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Products: () => JSX.Element;
3
4
  export default Products;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const RelationProduct: ({ value, onChange, }: {
3
4
  value?: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Empty: (props: any) => JSX.Element;
3
4
  export default Empty;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Content: () => JSX.Element;
3
4
  export default Content;
@@ -41,9 +41,43 @@ var import_dayjs = __toESM(require("dayjs"));
41
41
  var import_classnames = __toESM(require("classnames"));
42
42
  var import_utils = require("@pisell/utils");
43
43
  var import_index = require("./index.less");
44
+ var import_materials2 = require("@pisell/materials");
44
45
  var TimeBar = (props) => {
45
46
  var _a, _b;
46
47
  const { globalState: state, setGlobalState, locale, onCreateClick } = props;
48
+ const [collapsed, setCollapsed] = (0, import_react.useState)(true);
49
+ const [scaleCompensation, setScaleCompensation] = (0, import_react.useState)(1);
50
+ (0, import_react.useEffect)(() => {
51
+ const getBodyScale = () => {
52
+ const body = document.body;
53
+ const computedStyle = window.getComputedStyle(body);
54
+ const transform = computedStyle.transform;
55
+ if (transform && transform !== "none") {
56
+ const matrix = transform.match(/matrix\(([^)]+)\)/);
57
+ if (matrix) {
58
+ const values = matrix[1].split(",").map((v) => parseFloat(v.trim()));
59
+ const scale = values[0] || 1;
60
+ return scale;
61
+ }
62
+ }
63
+ return 1;
64
+ };
65
+ const updateScale = () => {
66
+ const scale = getBodyScale();
67
+ setScaleCompensation(scale);
68
+ };
69
+ updateScale();
70
+ const observer = new MutationObserver(updateScale);
71
+ observer.observe(document.body, {
72
+ attributes: true,
73
+ attributeFilter: ["style", "class"]
74
+ });
75
+ window.addEventListener("resize", updateScale);
76
+ return () => {
77
+ observer.disconnect();
78
+ window.removeEventListener("resize", updateScale);
79
+ };
80
+ }, []);
47
81
  const _onClickNext = (0, import_ahooks.useMemoizedFn)(() => {
48
82
  var _a2, _b2, _c, _d;
49
83
  const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
@@ -77,8 +111,62 @@ var TimeBar = (props) => {
77
111
  });
78
112
  (_d = props.setIntervalTime) == null ? void 0 : _d.call(props, timeString === (0, import_dayjs.default)().format("HH:mm"));
79
113
  });
114
+ const _onToggleCollapse = (0, import_ahooks.useMemoizedFn)(() => {
115
+ setCollapsed(!collapsed);
116
+ });
80
117
  return (0, import_react.useMemo)(() => {
81
- var _a2, _b2, _c, _d;
118
+ var _a2, _b2, _c, _d, _e, _f;
119
+ if (collapsed) {
120
+ const currentDate = (_b2 = (_a2 = state == null ? void 0 : state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
121
+ const isToday = currentDate && currentDate.isSame((0, import_dayjs.default)(), "day");
122
+ const displayText = isToday ? import_utils.locales.getText("pisell2.ticket-booking.today") : (currentDate == null ? void 0 : currentDate.format("YYYY-MM-DD")) || "";
123
+ const targetHeight = 40;
124
+ const compensatedHeight = targetHeight / scaleCompensation;
125
+ return /* @__PURE__ */ import_react.default.createElement(
126
+ "div",
127
+ {
128
+ className: (0, import_classnames.default)("pisell-ticket-booking-time-bar", "collapsed"),
129
+ style: {
130
+ height: `${compensatedHeight}px`,
131
+ minHeight: `${compensatedHeight}px`,
132
+ maxHeight: `${compensatedHeight}px`
133
+ }
134
+ },
135
+ /* @__PURE__ */ import_react.default.createElement(
136
+ "div",
137
+ {
138
+ className: "pisell-ticket-booking-time-bar-collapsed-content",
139
+ style: {
140
+ height: `${compensatedHeight}px`
141
+ }
142
+ },
143
+ /* @__PURE__ */ import_react.default.createElement(
144
+ "span",
145
+ {
146
+ className: "pisell-ticket-booking-time-bar-collapsed-today",
147
+ style: {
148
+ lineHeight: `${compensatedHeight}px`
149
+ }
150
+ },
151
+ displayText
152
+ ),
153
+ /* @__PURE__ */ import_react.default.createElement(
154
+ import_antd.Button,
155
+ {
156
+ type: "link",
157
+ size: "small",
158
+ className: "pisell-ticket-booking-time-bar-collapsed-expand",
159
+ onClick: _onToggleCollapse,
160
+ style: {
161
+ lineHeight: `${compensatedHeight}px`
162
+ }
163
+ },
164
+ /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.ticket-booking.expand")),
165
+ /* @__PURE__ */ import_react.default.createElement(import_materials2.Iconfont, { type: "pisell2-chevron-right-double" })
166
+ )
167
+ )
168
+ );
169
+ }
82
170
  return /* @__PURE__ */ import_react.default.createElement(
83
171
  "div",
84
172
  {
@@ -114,7 +202,7 @@ var TimeBar = (props) => {
114
202
  import_materials.DatePicker,
115
203
  {
116
204
  inputReadOnly: true,
117
- value: (_b2 = (_a2 = state == null ? void 0 : state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value,
205
+ value: (_d = (_c = state == null ? void 0 : state.modalState) == null ? void 0 : _c.date) == null ? void 0 : _d.value,
118
206
  format: locale === "en" ? "dddd, DD MMM YYYY" : "YYYY年MM月DD日",
119
207
  onChange: props == null ? void 0 : props.onDateChange,
120
208
  size: "large",
@@ -140,7 +228,7 @@ var TimeBar = (props) => {
140
228
  /* @__PURE__ */ import_react.default.createElement(
141
229
  import_materials.SelectTime,
142
230
  {
143
- value: (_d = (_c = state == null ? void 0 : state.modalState) == null ? void 0 : _c.date) == null ? void 0 : _d.value.format("HH:mm"),
231
+ value: (_f = (_e = state == null ? void 0 : state.modalState) == null ? void 0 : _e.date) == null ? void 0 : _f.value.format("HH:mm"),
144
232
  onChange: _onDateTimeChange,
145
233
  popoverProps: {
146
234
  style: { zoom: 0.8 }
@@ -170,14 +258,27 @@ var TimeBar = (props) => {
170
258
  type: "primary"
171
259
  },
172
260
  import_utils.locales.getText("pisell2.ticket-booking.create-new")
261
+ ),
262
+ /* @__PURE__ */ import_react.default.createElement(
263
+ import_antd.Button,
264
+ {
265
+ type: "link",
266
+ style: { marginLeft: "auto" },
267
+ onClick: _onToggleCollapse
268
+ },
269
+ /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.ticket-booking.collapse")),
270
+ /* @__PURE__ */ import_react.default.createElement(import_materials2.Iconfont, { type: "pisell2-chevron-left-double" })
173
271
  )
174
272
  );
175
273
  }, [
274
+ collapsed,
176
275
  (_b = (_a = state.modalState) == null ? void 0 : _a.date) == null ? void 0 : _b.value,
177
276
  state.intervalSetTime,
178
277
  state.isTimeChange,
179
278
  state.isDateChange,
180
- locale
279
+ locale,
280
+ _onToggleCollapse,
281
+ scaleCompensation
181
282
  ]);
182
283
  };
183
284
  var timeBar_default = TimeBar;
@@ -20,4 +20,63 @@
20
20
  }
21
21
  }
22
22
  }
23
+
24
+ // 收起状态
25
+ &.collapsed {
26
+ position: fixed;
27
+ bottom: 0;
28
+ left: 86px;
29
+ padding: 0;
30
+ background-color: transparent;
31
+ display: block;
32
+ // 高度通过内联样式动态设置以补偿 body 的 scale
33
+
34
+ .pisell-ticket-booking-time-bar-collapsed-content {
35
+ display: flex;
36
+ align-items: center;
37
+ justify-content: space-between;
38
+ width: 100%;
39
+ // 高度通过内联样式动态设置以补偿 body 的 scale
40
+ padding: 0 16px;
41
+ background-color: #fff;
42
+ border-radius: 0 8px 8px 0;
43
+ box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
44
+ box-sizing: border-box;
45
+ overflow: hidden;
46
+
47
+ .pisell-ticket-booking-time-bar-collapsed-today {
48
+ font-weight: 600;
49
+ font-size: 18px;
50
+ color: #000;
51
+ flex-shrink: 0;
52
+ margin-right: 16px;
53
+ // line-height 通过内联样式动态设置
54
+ }
55
+
56
+ .pisell-ticket-booking-time-bar-collapsed-expand {
57
+ color: #7F56DA;
58
+ padding: 0;
59
+ margin: 0;
60
+ height: auto;
61
+ font-size: 18px;
62
+ font-weight: 500;
63
+ display: inline-flex;
64
+ align-items: center;
65
+ flex-shrink: 0;
66
+ // line-height 通过内联样式动态设置
67
+
68
+ &:hover {
69
+ color: #6941c6;
70
+ }
71
+
72
+ span {
73
+ margin-right: 2px;
74
+ }
75
+ .anticon {
76
+ margin-left: 0px;
77
+ margin-right: 0px;
78
+ }
79
+ }
80
+ }
81
+ }
23
82
  }
@@ -61,6 +61,8 @@ declare const _default: {
61
61
  'pisell2.ticket-booking.terminal-upgrade-description': string;
62
62
  'pisell2.ticket-booking.terminal-upgrade-ok': string;
63
63
  'pisell2.ticket-booking.terminal-upgrade-cancel': string;
64
+ 'pisell2.ticket-booking.collapse': string;
65
+ 'pisell2.ticket-booking.expand': string;
64
66
  };
65
67
  'zh-CN': {
66
68
  'pisell2.ticket-booking.info': string;
@@ -124,6 +126,8 @@ declare const _default: {
124
126
  'pisell2.ticket-booking.terminal-upgrade-description': string;
125
127
  'pisell2.ticket-booking.terminal-upgrade-ok': string;
126
128
  'pisell2.ticket-booking.terminal-upgrade-cancel': string;
129
+ 'pisell2.ticket-booking.collapse': string;
130
+ 'pisell2.ticket-booking.expand': string;
127
131
  };
128
132
  'zh-HK': {
129
133
  'pisell2.ticket-booking.info': string;
@@ -187,6 +191,8 @@ declare const _default: {
187
191
  'pisell2.ticket-booking.terminal-upgrade-description': string;
188
192
  'pisell2.ticket-booking.terminal-upgrade-ok': string;
189
193
  'pisell2.ticket-booking.terminal-upgrade-cancel': string;
194
+ 'pisell2.ticket-booking.collapse': string;
195
+ 'pisell2.ticket-booking.expand': string;
190
196
  };
191
197
  };
192
198
  export default _default;
@@ -87,7 +87,9 @@ var locales_default = {
87
87
  "pisell2.ticket-booking.terminal-upgrade-title": "Terminal Version Reminder",
88
88
  "pisell2.ticket-booking.terminal-upgrade-description": "Your Terminal version is outdated. Please upgrade Terminal to use all features.",
89
89
  "pisell2.ticket-booking.terminal-upgrade-ok": "I understand",
90
- "pisell2.ticket-booking.terminal-upgrade-cancel": "Cancel"
90
+ "pisell2.ticket-booking.terminal-upgrade-cancel": "Cancel",
91
+ "pisell2.ticket-booking.collapse": "Collapse",
92
+ "pisell2.ticket-booking.expand": "Expand"
91
93
  },
92
94
  "zh-CN": {
93
95
  "pisell2.ticket-booking.info": "信息",
@@ -153,7 +155,9 @@ var locales_default = {
153
155
  "pisell2.ticket-booking.terminal-upgrade-title": "Terminal版本提醒",
154
156
  "pisell2.ticket-booking.terminal-upgrade-description": "检测到您的Terminal版本较低,请升级Terminal以使用完整功能",
155
157
  "pisell2.ticket-booking.terminal-upgrade-ok": "我知道了",
156
- "pisell2.ticket-booking.terminal-upgrade-cancel": "取消"
158
+ "pisell2.ticket-booking.terminal-upgrade-cancel": "取消",
159
+ "pisell2.ticket-booking.collapse": "收起",
160
+ "pisell2.ticket-booking.expand": "展开"
157
161
  },
158
162
  "zh-HK": {
159
163
  "pisell2.ticket-booking.info": "資訊",
@@ -219,6 +223,8 @@ var locales_default = {
219
223
  "pisell2.ticket-booking.terminal-upgrade-title": "Terminal版本提醒",
220
224
  "pisell2.ticket-booking.terminal-upgrade-description": "檢測到您的Terminal版本較低,請升級Terminal以使用完整功能",
221
225
  "pisell2.ticket-booking.terminal-upgrade-ok": "我知道了",
222
- "pisell2.ticket-booking.terminal-upgrade-cancel": "取消"
226
+ "pisell2.ticket-booking.terminal-upgrade-cancel": "取消",
227
+ "pisell2.ticket-booking.collapse": "收起",
228
+ "pisell2.ticket-booking.expand": "展開"
223
229
  }
224
230
  };
@@ -41,7 +41,7 @@ declare type ScanData = {
41
41
  };
42
42
  };
43
43
  export declare const formatScanCustomer: (data: ScanData) => {
44
- searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
44
+ searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
45
45
  data: any;
46
46
  scanCode: string;
47
47
  } | null;
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ addWalletCard: any;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ walletDetailState: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,14 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ setup?: 'menu' | 'list' | 'detail' | string;
5
+ }
6
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
+ state: RechargeState;
8
+ } & {
9
+ dispatch: (params: {
10
+ type: string;
11
+ payload: any;
12
+ }) => void;
13
+ }>;
14
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,29 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ selectedGiftOptionId: string | null;
4
+ cardList: Array<{
5
+ id: string;
6
+ name: string;
7
+ price: number;
8
+ }>;
9
+ selectedItem: {
10
+ id?: string;
11
+ gift_price?: number;
12
+ price?: number;
13
+ name?: string;
14
+ variant_id?: string;
15
+ };
16
+ productId?: string;
17
+ detailId?: string;
18
+ total: string | number;
19
+ rechargeModalOpen: boolean;
20
+ }
21
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
+ state: RechargeState;
23
+ } & {
24
+ dispatch: (params: {
25
+ type: string;
26
+ payload: any;
27
+ }) => void;
28
+ }>;
29
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: 0;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from './serve';
2
3
  export interface WalletCardItemProps {
3
4
  id: string;
@@ -26,4 +27,11 @@ export interface WalletListProps {
26
27
  currentSearchListItemCode?: string;
27
28
  [key: string]: any;
28
29
  }
29
- export declare const Provider: any, Context: any;
30
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
+ global_wallet: WalletListProps;
32
+ } & {
33
+ dispatch: (params: {
34
+ type: string;
35
+ payload: any;
36
+ }) => void;
37
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
2
3
  import './index.less';
3
4
  interface ModalProps extends AntModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { IClientNameProps } from './type';
3
4
  declare const ClientName: ({ className, dataSource, style }: IClientNameProps) => JSX.Element | null;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Capacity: ({ 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 Capacity;
@@ -3,5 +3,5 @@ import { SkuStatusOverlayConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const CardMask: ({ props }: {
5
5
  props: SkuStatusOverlayConfig;
6
- }) => string | number | true | React.ReactFragment | JSX.Element | null;
6
+ }) => string | number | true | JSX.Element | React.ReactFragment | null;
7
7
  export default CardMask;
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const Countdown: ({ 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 Countdown;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -4,6 +4,7 @@
4
4
  * 这个文件演示了如何使用 PisellPaymentList 和 PisellPaymentListItem 组件
5
5
  * 包括如何通过 Context 访问父组件配置
6
6
  */
7
+ /// <reference types="react" />
7
8
  export declare const BasicExample: () => JSX.Element;
8
9
  export declare const ChildrenExample: () => JSX.Element;
9
10
  export declare const CustomItemExample: () => JSX.Element;
@@ -59,7 +59,8 @@ var CashKeyboardIntact = (props) => {
59
59
  doneText,
60
60
  resetText,
61
61
  disabled,
62
- hiddenChangeDue
62
+ hiddenChangeDue,
63
+ shortcutsSize
63
64
  } = props;
64
65
  const [internalValue, setInternalValue] = (0, import_ahooks.useControllableValue)(props);
65
66
  const [isShowModal, setIsShowModal] = (0, import_react.useState)(false);
@@ -129,7 +130,8 @@ var CashKeyboardIntact = (props) => {
129
130
  value: "pay",
130
131
  style: {
131
132
  color: "white",
132
- backgroundColor: "#7F56DA"
133
+ backgroundColor: "#7F56DA",
134
+ gridColumn: "span 2"
133
135
  },
134
136
  onClick: () => {
135
137
  var _a2;
@@ -138,7 +140,7 @@ var CashKeyboardIntact = (props) => {
138
140
  }
139
141
  ];
140
142
  const userPresets = presets || [];
141
- const maxUserPresets = 8 - defaultEndPresets.length;
143
+ const maxUserPresets = 7 - defaultEndPresets.length;
142
144
  const limitedUserPresets = userPresets.slice(0, maxUserPresets);
143
145
  return [...limitedUserPresets, ...defaultEndPresets];
144
146
  };
@@ -273,10 +275,11 @@ var CashKeyboardIntact = (props) => {
273
275
  padding: "6px 16px",
274
276
  borderRadius: "8px",
275
277
  backgroundColor: "white",
276
- boxShadow: "0px 1px 2px rgba(16, 24, 40, 0.06)",
278
+ boxShadow: "inset 0 2px 4px rgba(16, 24, 40, 0.08), inset 0 -2px 4px rgba(16, 24, 40, 0.08), inset 2px 0 4px rgba(16, 24, 40, 0.08), inset -2px 0 4px rgba(16, 24, 40, 0.08)",
277
279
  overflow: "hidden",
278
280
  maxWidth: 188,
279
- cursor: "pointer"
281
+ cursor: "pointer",
282
+ border: "1px solid #7f56da"
280
283
  },
281
284
  onClick: () => {
282
285
  setIsShowModal(true);
@@ -365,6 +368,7 @@ var CashKeyboardIntact = (props) => {
365
368
  )), /* @__PURE__ */ import_react.default.createElement(
366
369
  import_shortcuts.default,
367
370
  {
371
+ size: shortcutsSize || "default",
368
372
  presets: getDefaultPresets(),
369
373
  onChange: setInternalValue,
370
374
  disabled
@@ -6,6 +6,7 @@ export interface CashKeyboardProps extends CashKeyboardBaseProps {
6
6
  [key: string]: any;
7
7
  };
8
8
  variant?: 'intact' | 'simple';
9
+ shortcutsSize?: 'default' | 'large';
9
10
  }
10
11
  declare const CashKeyboard: (props: CashKeyboardProps) => JSX.Element;
11
12
  export default CashKeyboard;