@pisell/private-materials 6.2.19 → 6.2.21

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 (228) 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.js +2 -2
  8. package/build/lowcode/view.js +8 -8
  9. package/es/businessModel/SalesModel/index.d.ts +0 -1
  10. package/es/components/appointmentBooking/components/Content/index.js +19 -12
  11. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  14. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  15. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  16. package/es/components/booking/components/browserSelect/index.js +1 -1
  17. package/es/components/booking/components/customSelect/index.js +0 -1
  18. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  19. package/es/components/booking/editBookingModal/index.js +58 -29
  20. package/es/components/booking/editBookingModal/serve.d.ts +1 -0
  21. package/es/components/booking/editBookingModal/serve.js +19 -11
  22. package/es/components/booking/forms/model.js +5 -5
  23. package/es/components/booking/forms/table/index.d.ts +0 -1
  24. package/es/components/booking/hooks/useClearCart.js +8 -11
  25. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  26. package/es/components/booking/info/client/index.js +2 -3
  27. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  28. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  29. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  30. package/es/components/booking/info/hooks/useInfoHolder.js +9 -16
  31. package/es/components/booking/info/index.d.ts +0 -1
  32. package/es/components/booking/info/service/Lists.js +26 -36
  33. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  34. package/es/components/booking/info/service/like/index.d.ts +0 -1
  35. package/es/components/booking/info/service/like/index.js +1 -1
  36. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  37. package/es/components/booking/info/service2/utils.js +21 -20
  38. package/es/components/booking/info2/index.js +0 -1
  39. package/es/components/booking/info2/service/addService/utils.js +4 -7
  40. package/es/components/booking/info2/service/addTimeModal/index.js +0 -3
  41. package/es/components/booking/info2/service/editService/Resources/index.js +0 -5
  42. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  43. package/es/components/booking/info2/service/editService/index.js +165 -258
  44. package/es/components/booking/info2/service/index.js +15 -19
  45. package/es/components/booking/materiels/duration/index.js +2 -9
  46. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  47. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  48. package/es/components/booking/materiels/startTime/index.js +1 -1
  49. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  50. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  51. package/es/components/booking/notes/model.js +5 -5
  52. package/es/components/booking/payments/model.js +5 -5
  53. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  54. package/es/components/eftpos/form/index.d.ts +0 -1
  55. package/es/components/eftpos/group/index.d.ts +0 -1
  56. package/es/components/eftpos/hooks.d.ts +0 -1
  57. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  58. package/es/components/eftpos/icon/device.d.ts +0 -1
  59. package/es/components/eftpos/receipt/index.d.ts +0 -1
  60. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  61. package/es/components/eftposPay/app.d.ts +0 -1
  62. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  63. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  64. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  65. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  66. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  67. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  68. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  69. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  70. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  71. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  72. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  73. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  74. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  75. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  76. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  77. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  78. package/es/components/listComponent/index.js +5 -5
  79. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  80. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  81. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  82. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  83. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  84. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  85. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  86. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  87. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  88. package/es/components/productExtension/card/index.js +3 -3
  89. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  90. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  91. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  92. package/es/components/productExtension/fields/Forms/index.js +12 -12
  93. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  94. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  95. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  96. package/es/components/productExtension/server.js +2 -2
  97. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  98. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  99. package/es/components/schedules/calendar/index.js +4 -4
  100. package/es/components/schedules/calendar/serve.js +2 -2
  101. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  102. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  103. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  104. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  105. package/es/components/schedules/components/ResourceList/index.js +1 -1
  106. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  107. package/es/components/schedules/components/Search/index.js +5 -5
  108. package/es/components/schedules/model.js +5 -5
  109. package/es/components/schedules/openHours/index.js +1 -1
  110. package/es/components/schedules/openHours/serve.js +2 -2
  111. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  112. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  113. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  114. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  115. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  116. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  117. package/es/components/schedules/products/index.d.ts +0 -1
  118. package/es/components/schedules/products/serve.js +2 -2
  119. package/es/components/schedules/products/utils.js +5 -5
  120. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  121. package/es/components/schedules/resources/detail/index.js +10 -10
  122. package/es/components/schedules/resources/list/index.js +2 -2
  123. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  124. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  125. package/es/components/schedules/resources/serve.js +2 -2
  126. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  127. package/es/components/schedules/utils.js +4 -4
  128. package/es/components/selectModal/index.js +2 -2
  129. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  130. package/es/components/shoppingCart/components/Cart/Product.js +41 -48
  131. package/es/components/shoppingCart/components/Cart/index.js +18 -21
  132. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  133. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  134. package/es/components/ticketBooking/components/addServiceVariant/addService.js +157 -177
  135. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  136. package/es/components/ticketBooking/components/timeBar/index.js +71 -78
  137. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  138. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  139. package/es/hooks/useComponents.js +1 -1
  140. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  141. package/lib/components/appointmentBooking/components/Content/index.js +7 -2
  142. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  143. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  144. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  145. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  146. package/lib/components/booking/components/customSelect/index.js +0 -1
  147. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  148. package/lib/components/booking/editBookingModal/index.js +56 -21
  149. package/lib/components/booking/editBookingModal/serve.d.ts +1 -0
  150. package/lib/components/booking/editBookingModal/serve.js +12 -6
  151. package/lib/components/booking/forms/table/index.d.ts +0 -1
  152. package/lib/components/booking/hooks/useClearCart.js +13 -16
  153. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  154. package/lib/components/booking/info/client/index.js +4 -5
  155. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  156. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  157. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  158. package/lib/components/booking/info/hooks/useInfoHolder.js +9 -10
  159. package/lib/components/booking/info/index.d.ts +0 -1
  160. package/lib/components/booking/info/service/Lists.js +23 -35
  161. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  162. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  163. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  164. package/lib/components/booking/info/service2/utils.js +17 -17
  165. package/lib/components/booking/info2/service/addService/utils.js +3 -5
  166. package/lib/components/booking/info2/service/addTimeModal/index.js +0 -3
  167. package/lib/components/booking/info2/service/editService/Resources/index.js +0 -2
  168. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  169. package/lib/components/booking/info2/service/editService/index.js +70 -132
  170. package/lib/components/booking/info2/service/index.js +9 -13
  171. package/lib/components/booking/materiels/duration/index.js +2 -7
  172. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  173. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  174. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  175. package/lib/components/eftpos/form/index.d.ts +0 -1
  176. package/lib/components/eftpos/group/index.d.ts +0 -1
  177. package/lib/components/eftpos/hooks.d.ts +0 -1
  178. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  179. package/lib/components/eftpos/icon/device.d.ts +0 -1
  180. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  181. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  182. package/lib/components/eftposPay/app.d.ts +0 -1
  183. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  184. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  185. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  186. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  187. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  188. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  189. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  190. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  191. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  192. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  193. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  194. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  195. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  196. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  197. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  198. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  199. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  200. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  201. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  202. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  203. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  204. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  205. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  206. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  207. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  208. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  209. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  210. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  211. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  212. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  213. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  214. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  215. package/lib/components/schedules/products/index.d.ts +0 -1
  216. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  217. package/lib/components/schedules/utils.js +1 -1
  218. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  219. package/lib/components/shoppingCart/components/Cart/Product.js +21 -31
  220. package/lib/components/shoppingCart/components/Cart/index.js +15 -18
  221. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  222. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  223. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +127 -145
  224. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  225. package/lib/components/ticketBooking/components/timeBar/index.js +88 -95
  226. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  227. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  228. package/package.json +4 -4
@@ -35,122 +35,115 @@ module.exports = __toCommonJS(timeBar_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_icons = require("@ant-design/icons");
37
37
  var import_materials = require("@pisell/materials");
38
- var import_ahooks = require("ahooks");
39
38
  var import_antd = require("antd");
40
39
  var import_classnames = __toESM(require("classnames"));
41
40
  var import_utils = require("@pisell/utils");
42
41
  var import_index = require("./index.less");
43
42
  var TimeBar = (props) => {
44
- var _a, _b;
43
+ var _a, _b, _c, _d;
45
44
  const { globalState: state, setGlobalState, locale } = props;
46
- const _onClickNext = (0, import_ahooks.useMemoizedFn)(() => {
47
- var _a2, _b2, _c, _d;
45
+ const _onClickNext = () => {
46
+ var _a2, _b2, _c2, _d2;
48
47
  const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
49
48
  const newTime = currentTime["add"](1, "day");
50
- (_c = props.onDateChange) == null ? void 0 : _c.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
51
- (_d = props.setIntervalTime) == null ? void 0 : _d.call(props, false);
52
- });
53
- const _onClickPre = (0, import_ahooks.useMemoizedFn)(() => {
54
- var _a2, _b2, _c, _d;
49
+ (_c2 = props.onDateChange) == null ? void 0 : _c2.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
50
+ (_d2 = props.setIntervalTime) == null ? void 0 : _d2.call(props, false);
51
+ };
52
+ const _onClickPre = () => {
53
+ var _a2, _b2, _c2, _d2;
55
54
  const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
56
55
  const newTime = currentTime["subtract"](1, "day");
57
- (_c = props.onDateChange) == null ? void 0 : _c.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
58
- (_d = props.setIntervalTime) == null ? void 0 : _d.call(props, false);
59
- });
60
- const _onClickToday = (0, import_ahooks.useMemoizedFn)(() => {
61
- var _a2, _b2, _c, _d;
62
- const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
63
- const newTime = currentTime["subtract"](1, "day");
64
- (_c = props.onDateChange) == null ? void 0 : _c.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
65
- (_d = props.setIntervalTime) == null ? void 0 : _d.call(props, false);
66
- });
67
- const _onClickNow = (0, import_ahooks.useMemoizedFn)(() => {
56
+ (_c2 = props.onDateChange) == null ? void 0 : _c2.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
57
+ (_d2 = props.setIntervalTime) == null ? void 0 : _d2.call(props, false);
58
+ };
59
+ const _onClickToday = () => {
60
+ var _a2;
61
+ (_a2 = props.setIntervalTime) == null ? void 0 : _a2.call(props, true);
62
+ };
63
+ const _onClickNow = () => {
68
64
  var _a2;
69
65
  (_a2 = props.setIntervalTime) == null ? void 0 : _a2.call(props, true);
70
- });
71
- const _onDateTimeChange = (0, import_ahooks.useMemoizedFn)((timeString) => {
72
- var _a2, _b2, _c, _d;
66
+ };
67
+ const _onDateTimeChange = (timeString) => {
68
+ var _a2, _b2, _c2, _d2;
73
69
  const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
74
70
  const [hours, minutes] = timeString.split(":").map(Number);
75
71
  const newTime = currentTime.hour(hours).minute(minutes).second(0);
76
- (_c = props.onDateTimeChange) == null ? void 0 : _c.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
72
+ (_c2 = props.onDateTimeChange) == null ? void 0 : _c2.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
77
73
  setGlobalState({
78
74
  isTimeChange: true
79
75
  });
80
- (_d = props.setIntervalTime) == null ? void 0 : _d.call(props, false);
81
- });
82
- return (0, import_react.useMemo)(() => {
83
- var _a2, _b2, _c, _d;
84
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-ticket-booking-time-bar" }, /* @__PURE__ */ import_react.default.createElement(
85
- import_antd.Button,
86
- {
87
- icon: /* @__PURE__ */ import_react.default.createElement(import_icons.LeftOutlined, null),
88
- onClick: _onClickPre,
89
- size: "large"
90
- }
91
- ), /* @__PURE__ */ import_react.default.createElement(
92
- import_antd.Button,
76
+ (_d2 = props.setIntervalTime) == null ? void 0 : _d2.call(props, false);
77
+ };
78
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-ticket-booking-time-bar" }, /* @__PURE__ */ import_react.default.createElement(
79
+ import_antd.Button,
80
+ {
81
+ icon: /* @__PURE__ */ import_react.default.createElement(import_icons.LeftOutlined, null),
82
+ onClick: _onClickPre,
83
+ size: "large"
84
+ }
85
+ ), /* @__PURE__ */ import_react.default.createElement(
86
+ import_antd.Button,
87
+ {
88
+ onClick: _onClickToday,
89
+ size: "large",
90
+ style: state.intervalSetTime ? { background: "#000", color: "#fff" } : void 0
91
+ },
92
+ import_utils.locales.getText("pisell2.ticket-booking.today")
93
+ ), /* @__PURE__ */ import_react.default.createElement(
94
+ "div",
95
+ {
96
+ className: (0, import_classnames.default)({
97
+ "booking-page-date-picker-select": state.isDateChange
98
+ }),
99
+ style: { width: 200, flexShrink: 0 }
100
+ },
101
+ /* @__PURE__ */ import_react.default.createElement(
102
+ import_materials.DatePicker,
93
103
  {
94
- onClick: _onClickToday,
104
+ inputReadOnly: true,
105
+ value: (_b = (_a = state == null ? void 0 : state.modalState) == null ? void 0 : _a.date) == null ? void 0 : _b.value,
106
+ format: locale === "en" ? "dddd, DD MMM YYYY" : "YYYY年MM月DD日",
107
+ onChange: props == null ? void 0 : props.onDateChange,
95
108
  size: "large",
96
- style: state.intervalSetTime ? { background: "#000", color: "#fff" } : void 0
97
- },
98
- import_utils.locales.getText("pisell2.ticket-booking.today")
99
- ), /* @__PURE__ */ import_react.default.createElement(
100
- "div",
101
- {
102
- className: (0, import_classnames.default)({
103
- "booking-page-date-picker-select": state.isDateChange
104
- }),
105
- style: { width: 200, flexShrink: 0 }
106
- },
107
- /* @__PURE__ */ import_react.default.createElement(
108
- import_materials.DatePicker,
109
- {
110
- inputReadOnly: true,
111
- value: (_b2 = (_a2 = state == null ? void 0 : state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value,
112
- format: locale === "en" ? "dddd, DD MMM YYYY" : "YYYY年MM月DD日",
113
- onChange: props == null ? void 0 : props.onDateChange,
114
- size: "large",
115
- style: { width: "100%" }
116
- }
117
- )
118
- ), /* @__PURE__ */ import_react.default.createElement(
119
- import_antd.Button,
120
- {
121
- icon: /* @__PURE__ */ import_react.default.createElement(import_icons.RightOutlined, null),
122
- onClick: _onClickNext,
123
- size: "large"
109
+ style: { width: "100%" }
124
110
  }
125
- ), /* @__PURE__ */ import_react.default.createElement(
126
- "div",
127
- {
128
- className: (0, import_classnames.default)({
129
- "booking-page-date-picker-select": state.isTimeChange
130
- })
131
- },
132
- /* @__PURE__ */ import_react.default.createElement(
133
- import_materials.SelectTime,
134
- {
135
- value: (_d = (_c = state == null ? void 0 : state.modalState) == null ? void 0 : _c.date) == null ? void 0 : _d.value.format("HH:mm"),
136
- onChange: _onDateTimeChange,
137
- popoverProps: {
138
- style: { zoom: 0.8 }
139
- },
140
- timePickerProps: {},
141
- timeProps: {},
142
- slice: 5
143
- }
144
- )
145
- ), /* @__PURE__ */ import_react.default.createElement(
146
- import_antd.Button,
111
+ )
112
+ ), /* @__PURE__ */ import_react.default.createElement(
113
+ import_antd.Button,
114
+ {
115
+ icon: /* @__PURE__ */ import_react.default.createElement(import_icons.RightOutlined, null),
116
+ onClick: _onClickNext,
117
+ size: "large"
118
+ }
119
+ ), /* @__PURE__ */ import_react.default.createElement(
120
+ "div",
121
+ {
122
+ className: (0, import_classnames.default)({
123
+ "booking-page-date-picker-select": state.isTimeChange
124
+ })
125
+ },
126
+ /* @__PURE__ */ import_react.default.createElement(
127
+ import_materials.SelectTime,
147
128
  {
148
- onClick: _onClickNow,
149
- size: "large",
150
- style: state.intervalSetTime ? { background: "#000", color: "#fff" } : void 0
151
- },
152
- import_utils.locales.getText("pisell2.ticket-booking.now")
153
- ));
154
- }, [(_b = (_a = state.modalState) == null ? void 0 : _a.date) == null ? void 0 : _b.value, state.intervalSetTime, state.isTimeChange, state.isDateChange, locale]);
129
+ value: (_d = (_c = state == null ? void 0 : state.modalState) == null ? void 0 : _c.date) == null ? void 0 : _d.value.format("HH:mm"),
130
+ onChange: _onDateTimeChange,
131
+ popoverProps: {
132
+ style: { zoom: 0.8 }
133
+ },
134
+ timePickerProps: {},
135
+ timeProps: {},
136
+ slice: 5
137
+ }
138
+ )
139
+ ), /* @__PURE__ */ import_react.default.createElement(
140
+ import_antd.Button,
141
+ {
142
+ onClick: _onClickNow,
143
+ size: "large",
144
+ style: state.intervalSetTime ? { background: "#000", color: "#fff" } : void 0
145
+ },
146
+ import_utils.locales.getText("pisell2.ticket-booking.now")
147
+ ));
155
148
  };
156
149
  var timeBar_default = TimeBar;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
3
2
  import './index.less';
4
3
  interface ModalProps extends AntModalProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './../../index.less';
3
2
  declare const Search: () => JSX.Element;
4
3
  export default Search;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.2.19",
3
+ "version": "6.2.21",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,10 +59,10 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
- "@pisell/date-picker": "3.0.4",
63
62
  "@pisell/utils": "3.0.0",
64
- "@pisell/icon": "0.0.11",
65
- "@pisell/materials": "3.3.42"
63
+ "@pisell/date-picker": "3.0.4",
64
+ "@pisell/materials": "3.3.43",
65
+ "@pisell/icon": "0.0.11"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",