@pisell/private-materials 6.1.32 → 6.1.34

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 (200) 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 +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +7 -7
  11. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/index.d.ts +1 -0
  15. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  16. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  17. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  18. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  19. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  20. package/es/components/booking/components/footer/amount.d.ts +16 -1
  21. package/es/components/booking/components/footer/amount.js +73 -47
  22. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  23. package/es/components/booking/editBookingModal/index.js +3 -4
  24. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  25. package/es/components/booking/forms/single/RenderValueById.d.ts +1 -0
  26. package/es/components/booking/forms/single/RenderValueById.js +68 -17
  27. package/es/components/booking/forms/single/index.less +67 -1
  28. package/es/components/booking/forms/table/index.d.ts +1 -0
  29. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  30. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  31. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  32. package/es/components/booking/info/notes/index.d.ts +1 -0
  33. package/es/components/booking/info/service/Lists.d.ts +1 -0
  34. package/es/components/booking/info/service/like/index.d.ts +1 -0
  35. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  36. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  37. package/es/components/booking/info/service2/utils.d.ts +1 -1
  38. package/es/components/booking/info/utils.js +1 -1
  39. package/es/components/booking/info2/service/addService/utils.js +3 -2
  40. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  41. package/es/components/booking/info2/utilsByBooking.js +3 -2
  42. package/es/components/booking/locales.d.ts +3 -0
  43. package/es/components/booking/locales.js +6 -3
  44. package/es/components/booking/materiels/duration/index.js +1 -1
  45. package/es/components/booking/materiels/startTime/index.js +1 -1
  46. package/es/components/booking/utils.d.ts +2 -2
  47. package/es/components/booking/utils.js +3 -3
  48. package/es/components/eftpos/hooks.d.ts +1 -0
  49. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  50. package/es/components/eftpos/icon/device.d.ts +1 -0
  51. package/es/components/eftposPay/amount.d.ts +1 -1
  52. package/es/components/eftposPay/app.d.ts +1 -0
  53. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  54. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  55. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  56. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  57. package/es/components/eftposPay/device.d.ts +1 -1
  58. package/es/components/eftposPay/hooks.d.ts +1 -1
  59. package/es/components/eftposPay/index.d.ts +1 -0
  60. package/es/components/eftposPay/pay.d.ts +1 -0
  61. package/es/components/eftposPay/store/index.d.ts +3 -3
  62. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  63. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  64. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  65. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  66. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  67. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  68. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  69. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  70. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  71. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  72. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  73. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  74. package/es/components/eventBooking/index.d.ts +1 -0
  75. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  76. package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
  77. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  78. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  79. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  80. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  81. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  82. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  83. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  84. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  85. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  86. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  87. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  88. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  89. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  90. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  91. package/es/components/schedules/products/index.d.ts +1 -0
  92. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  93. package/es/components/schedules/utils.d.ts +1 -1
  94. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  95. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  96. package/es/components/shoppingCart/index.d.ts +1 -0
  97. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  98. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  99. package/es/components/ticketBooking/components/ticketBooking/index.js +4 -1
  100. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  101. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  102. package/es/plus/clientName/index.d.ts +1 -0
  103. package/es/pro/pisellPriceRadio/index.js +2 -2
  104. package/es/utils/index.d.ts +1 -1
  105. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  106. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  107. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  108. package/lib/components/appointmentBooking/index.d.ts +1 -0
  109. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  110. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  111. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  112. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  113. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  114. package/lib/components/booking/components/footer/amount.d.ts +16 -1
  115. package/lib/components/booking/components/footer/amount.js +31 -33
  116. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  117. package/lib/components/booking/editBookingModal/index.js +3 -4
  118. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  119. package/lib/components/booking/forms/single/RenderValueById.d.ts +1 -0
  120. package/lib/components/booking/forms/single/RenderValueById.js +37 -9
  121. package/lib/components/booking/forms/single/index.less +67 -1
  122. package/lib/components/booking/forms/table/index.d.ts +1 -0
  123. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  124. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  125. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  126. package/lib/components/booking/info/notes/index.d.ts +1 -0
  127. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  128. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  129. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  130. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  131. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  132. package/lib/components/booking/info/utils.js +2 -1
  133. package/lib/components/booking/info2/service/addService/utils.js +4 -4
  134. package/lib/components/booking/info2/service/editService/index.js +5 -1
  135. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  136. package/lib/components/booking/info2/utilsByBooking.js +4 -4
  137. package/lib/components/booking/locales.d.ts +3 -0
  138. package/lib/components/booking/locales.js +6 -3
  139. package/lib/components/booking/materiels/duration/index.js +1 -1
  140. package/lib/components/booking/materiels/startTime/index.js +1 -1
  141. package/lib/components/booking/utils.d.ts +2 -2
  142. package/lib/components/booking/utils.js +3 -3
  143. package/lib/components/eftpos/hooks.d.ts +1 -0
  144. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  145. package/lib/components/eftpos/icon/device.d.ts +1 -0
  146. package/lib/components/eftposPay/amount.d.ts +1 -1
  147. package/lib/components/eftposPay/app.d.ts +1 -0
  148. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  149. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  150. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  151. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  152. package/lib/components/eftposPay/device.d.ts +1 -1
  153. package/lib/components/eftposPay/hooks.d.ts +1 -1
  154. package/lib/components/eftposPay/index.d.ts +1 -0
  155. package/lib/components/eftposPay/pay.d.ts +1 -0
  156. package/lib/components/eftposPay/store/index.d.ts +3 -3
  157. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  158. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  159. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  160. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  161. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  162. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  163. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  164. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  165. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  166. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  167. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  168. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  169. package/lib/components/eventBooking/index.d.ts +1 -0
  170. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  171. package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
  172. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  173. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  174. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  175. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  176. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  177. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  178. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  179. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  180. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  181. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  182. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  183. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  184. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  185. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  186. package/lib/components/schedules/products/index.d.ts +1 -0
  187. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  188. package/lib/components/schedules/utils.d.ts +1 -1
  189. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  190. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  191. package/lib/components/shoppingCart/index.d.ts +1 -0
  192. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  193. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  194. package/lib/components/ticketBooking/components/ticketBooking/index.js +9 -4
  195. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  196. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  197. package/lib/plus/clientName/index.d.ts +1 -0
  198. package/lib/pro/pisellPriceRadio/index.js +2 -2
  199. package/lib/utils/index.d.ts +1 -1
  200. package/package.json +12 -12
@@ -366,7 +366,8 @@ var locales_default = {
366
366
  "pisell2.text.quotation.product.change.title": "Notification",
367
367
  "pisell2.text.quotation.product.change.describe": "Product updates available: Please refresh the following items to load the latest data.",
368
368
  // Notes
369
- "pisell2.booking.notes.placeholder": "Enter a note..."
369
+ "pisell2.booking.notes.placeholder": "Enter a note...",
370
+ "pisell2.text.form.link.to.another.record.more": "View More"
370
371
  },
371
372
  "zh-CN": {
372
373
  "pisell2.text.refunded-amount": "已退金额",
@@ -705,7 +706,8 @@ var locales_default = {
705
706
  "pisell2.text.quotation.product.change.title": "提示",
706
707
  "pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
707
708
  // Notes
708
- "pisell2.booking.notes.placeholder": "输入备注..."
709
+ "pisell2.booking.notes.placeholder": "输入备注...",
710
+ "pisell2.text.form.link.to.another.record.more": "查看更多"
709
711
  },
710
712
  "zh-HK": {
711
713
  "pisell2.text.refunded-amount": "已退金額",
@@ -1044,6 +1046,7 @@ var locales_default = {
1044
1046
  "pisell2.text.quotation.product.change.title": "提示",
1045
1047
  "pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
1046
1048
  // Notes
1047
- "pisell2.booking.notes.placeholder": "輸入備註..."
1049
+ "pisell2.booking.notes.placeholder": "輸入備註...",
1050
+ "pisell2.text.form.link.to.another.record.more": "查看更多"
1048
1051
  }
1049
1052
  };
@@ -77,7 +77,7 @@ var Duration = (props) => {
77
77
  });
78
78
  }
79
79
  return durationSlicesBasedOnTime;
80
- }, [timeObj.durationSlicesBasedOnTime, slice, locale, duration, startDateStr, usableTime == null ? void 0 : usableTime.end_at]);
80
+ }, [timeObj == null ? void 0 : timeObj.durationSlicesBasedOnTime, slice, locale, duration, startDateStr, usableTime == null ? void 0 : usableTime.end_at]);
81
81
  (0, import_react.useEffect)(() => {
82
82
  timeObjChange == null ? void 0 : timeObjChange(times);
83
83
  }, [times]);
@@ -52,6 +52,6 @@ var StartTime = (props) => {
52
52
  },
53
53
  []
54
54
  );
55
- return /* @__PURE__ */ import_react.default.createElement(import_antd.Select, { ...selectProps, ...resetProps }, renderOptions(timeObj.timeSlices));
55
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Select, { ...selectProps, ...resetProps }, renderOptions(timeObj == null ? void 0 : timeObj.timeSlices));
56
56
  };
57
57
  var startTime_default = StartTime;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | "flexible" | {
168
+ }) => number | {
169
169
  type: string;
170
170
  value: number;
171
- };
171
+ } | "flexible";
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -550,7 +550,7 @@ var getServerItemExtend = (state, cacheItem, timeObj) => {
550
550
  }
551
551
  return findNextDuration(
552
552
  cacheItem.duration,
553
- timeObj.durationSlicesBasedOnTime,
553
+ timeObj == null ? void 0 : timeObj.durationSlicesBasedOnTime,
554
554
  (_a = cacheItem == null ? void 0 : cacheItem.duration) == null ? void 0 : _a.value
555
555
  );
556
556
  };
@@ -566,14 +566,14 @@ var getServerItemExtend = (state, cacheItem, timeObj) => {
566
566
  _extend.start_time = lastServerStartDate.format("HH:mm");
567
567
  } else {
568
568
  if ((0, import_dayjs.default)(lastServerEndDate).isAfter(lastServerStartDate, "day")) {
569
- _extend.start_time = timeObj.timeSlices[timeObj.timeSlices.length - 1].value;
569
+ _extend.start_time = timeObj == null ? void 0 : timeObj.timeSlices[(timeObj == null ? void 0 : timeObj.timeSlices.length) - 1].value;
570
570
  } else {
571
571
  _extend.start_time = lastServerEndDate.format("HH:mm");
572
572
  }
573
573
  }
574
574
  } else {
575
575
  let findNextSliceProps = {
576
- timeSlices: timeObj.timeSlices,
576
+ timeSlices: timeObj == null ? void 0 : timeObj.timeSlices,
577
577
  index: 0,
578
578
  date: ""
579
579
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos } from './const';
2
3
  /**
3
4
  * @title: tyro 设备连接
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ color }: {
2
3
  color?: string | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ color }: {
2
3
  color?: string | undefined;
3
4
  }) => JSX.Element;
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps, RouteType } from './const';
2
3
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
3
4
  action: RouteType;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './titlebar.less';
2
3
  declare enum EPopupTitleBarVariantType {
3
4
  BackTitleClose = "back-title-cancel",
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StatusType } from '../../const';
2
3
  declare const _default: (props: {
3
4
  status: StatusType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: (props: {
2
3
  status: string;
3
4
  pedding?: string;
@@ -10,7 +10,7 @@ import './device.less';
10
10
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
11
11
  api: PayProps['api'];
12
12
  className?: string | undefined;
13
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
13
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
14
  [keys: string]: unknown;
15
15
  } | undefined, other?: any) => void) | undefined;
16
16
  onClose: () => void;
@@ -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<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "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>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from './const';
2
3
  import './index.less';
3
4
  declare const _default: (props: PosProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayProps } from './const';
2
3
  import './index.less';
3
4
  /**
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,7 +295,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
298
+ mode?: "fullPay" | "pay" | "refund" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
300
  eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 获取 Tyro 资源
3
4
  * @description:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ api, onChange, formatAmount, }: {
2
3
  api: any;
3
4
  onChange: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: () => JSX.Element;
2
3
  export default Deposit;
@@ -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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectHolderModal: (props: any) => JSX.Element;
2
3
  export default SelectHolderModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Status: (props: any) => JSX.Element;
3
4
  export default Status;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DayItem: (props: any) => JSX.Element;
3
4
  export default DayItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { CalendarItemProps } from '../../../../../type';
3
4
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Status: (props: any) => JSX.Element;
3
4
  export default Status;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Resource: (props: any) => JSX.Element;
2
3
  export default Resource;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Schedule: () => JSX.Element;
2
3
  export default Schedule;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const EventBooking: () => JSX.Element;
3
4
  export default EventBooking;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayMethod, PayMethodGroup } from '../../types';
2
3
  import './index.less';
3
4
  declare const ToBPayCardGroup: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const ToBPayTitle: (props: {
2
3
  amount: number | string;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ThreedsLoading: ({ title, showSuccessBackButton, onSuccessBack }: any) => JSX.Element;
3
4
  export default ThreedsLoading;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const StripePayment: () => JSX.Element;
3
4
  export default StripePayment;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
2
3
  public_key: string;
3
4
  client_secret?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
2
3
  public_key: string;
3
4
  client_secret?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const PageLoading: () => JSX.Element;
3
4
  export default PageLoading;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const PaymentRequestForm: () => JSX.Element | null;
3
4
  export default PaymentRequestForm;
@@ -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 './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 ProductItemPreview: ({ item, onClick, onRemove, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItemPreview;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface valueType {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const MaxParticipantsModule: ({ form, value, onChange, useSchedule, isAutoChange, onData, }: {
3
4
  form: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const ResourcesModule: ({ product }: {
2
3
  product: any;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type Value = number[];
3
4
  declare const SchedulesModule: ({ value, onChange, drawerContainer, ruleFn, tabKey, previewItemChange, isSelf, isTitle, }: {
@@ -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;
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
17
17
  export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
18
18
  export declare const saveConfirm: () => Promise<{
19
19
  destroy: () => void;
20
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
20
+ update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
21
21
  }>;
22
22
  export { modal };
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { shoppingCartProps } from './type';
2
3
  declare const shoppingCart: ({ onCard, onAction, onChange, onAddProduct, onActiveKey, ...props }: shoppingCartProps) => JSX.Element;
3
4
  export default shoppingCart;
@@ -171,7 +171,7 @@ var AddSerivce = (props) => {
171
171
  setCurrentProduct(item);
172
172
  } else {
173
173
  setCurrentProduct(null);
174
- if (!isSession && (0, import_utils4.isNormalProductByDurationSchedule)(item)) {
174
+ if ((item == null ? void 0 : item.extension_type) === "normal") {
175
175
  cacheValues = {
176
176
  bundle: [],
177
177
  key: item.id,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -318,6 +318,9 @@ var TicketBooking = () => {
318
318
  });
319
319
  selectCustomer(null);
320
320
  enableAllScanListeners();
321
+ setState({
322
+ createCount: state.createCount + 1
323
+ });
321
324
  }
322
325
  );
323
326
  (_e2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _e2.mountFunction(
@@ -934,10 +937,12 @@ var TicketBooking = () => {
934
937
  bookings: {
935
938
  booking_id: booking == null ? void 0 : booking.booking_id,
936
939
  appointment_status: booking == null ? void 0 : booking.appointment_status,
937
- list: [{
938
- start_date: booking == null ? void 0 : booking.start_date,
939
- start_time: booking == null ? void 0 : booking.start_time
940
- }]
940
+ list: [
941
+ {
942
+ start_date: booking == null ? void 0 : booking.start_date,
943
+ start_time: booking == null ? void 0 : booking.start_time
944
+ }
945
+ ]
941
946
  }
942
947
  }
943
948
  },
@@ -41,7 +41,7 @@ declare type ScanData = {
41
41
  };
42
42
  };
43
43
  export declare const formatScanCustomer: (data: ScanData) => {
44
- searchType: "product" | "wallet" | "customer" | "walletPass" | "local_product";
44
+ searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
45
45
  data: any;
46
46
  scanCode: string;
47
47
  } | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from '../serve';
2
3
  /**
3
4
  * 钱包卡片Hook的参数
@@ -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;
@@ -34,7 +34,7 @@ __export(pisellPriceRadio_exports, {
34
34
  module.exports = __toCommonJS(pisellPriceRadio_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
- var import_VirtualKeyInput = __toESM(require("../../../../materials/src/components/virtual-keyboard/VirtualKeyInput/index"));
37
+ var import_materials = require("@pisell/materials");
38
38
  var import_classnames = __toESM(require("classnames"));
39
39
  var import_index = require("./index.less");
40
40
  var PisellPriceRadio = ({
@@ -109,7 +109,7 @@ var PisellPriceRadio = ({
109
109
  }
110
110
  ), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-price-radio-title" }, title)),
111
111
  /* @__PURE__ */ import_react.default.createElement(
112
- import_VirtualKeyInput.default,
112
+ import_materials.VirtualKeyboard,
113
113
  {
114
114
  value,
115
115
  onChange: (e) => handlePriceChange(e.target.value),
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
18
18
  export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
19
19
  export declare const saveConfirm: () => Promise<{
20
20
  destroy: () => void;
21
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
+ update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
22
22
  }>;
23
23
  export { modal };
package/package.json CHANGED
@@ -1,12 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.1.32",
4
- "scripts": {
5
- "dev": "father dev",
6
- "build": "father build",
7
- "lowcode:dev": "build-scripts start --config ./build.lowcode.js",
8
- "lowcode:build": " build-scripts build --config ./build.lowcode.js"
9
- },
3
+ "version": "6.1.34",
10
4
  "main": "./lib/index.js",
11
5
  "module": "./es/index.js",
12
6
  "types": "./lib/index.d.ts",
@@ -56,10 +50,6 @@
56
50
  "@dnd-kit/modifiers": "^6.0.1",
57
51
  "@dnd-kit/sortable": "^7.0.2",
58
52
  "@dnd-kit/utilities": "^3.2.1",
59
- "@pisell/date-picker": "workspace:*",
60
- "@pisell/icon": "workspace:*",
61
- "@pisell/materials": "workspace:*",
62
- "@pisell/utils": "workspace:*",
63
53
  "ahooks": "^3.7.6",
64
54
  "antd": "^5.6.3",
65
55
  "classnames": "^2.3.2",
@@ -68,7 +58,11 @@
68
58
  "rc-virtual-list": "^3.11.3",
69
59
  "react-infinite-scroll-component": "^6.1.0",
70
60
  "react-resizable": "^3.0.5",
71
- "styled-components": "^6.0.0-rc.3"
61
+ "styled-components": "^6.0.0-rc.3",
62
+ "@pisell/date-picker": "3.0.4",
63
+ "@pisell/icon": "0.0.11",
64
+ "@pisell/utils": "3.0.0",
65
+ "@pisell/materials": "6.1.8"
72
66
  },
73
67
  "peerDependencies": {
74
68
  "react": "^18.0.0",
@@ -76,5 +70,11 @@
76
70
  },
77
71
  "componentConfig": {
78
72
  "materialSchema": "https://unpkg.com/@pisell/materials@1.0.1/build/lowcode/assets-prod.json"
73
+ },
74
+ "scripts": {
75
+ "dev": "father dev",
76
+ "build": "father build",
77
+ "lowcode:dev": "build-scripts start --config ./build.lowcode.js",
78
+ "lowcode:build": " build-scripts build --config ./build.lowcode.js"
79
79
  }
80
80
  }