@pisell/private-materials 3.3.88 → 3.3.90

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 (371) 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 +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/businessModel/SalesModel/Sales/index.js +37 -4
  12. package/es/businessModel/SalesModel/index.d.ts +1 -0
  13. package/es/components/Sales/Cart/index.js +5 -1
  14. package/es/components/Sales/Cart/utils.d.ts +40 -0
  15. package/es/components/Sales/Cart/utils.js +167 -0
  16. package/es/components/Sales/Checkout/index.d.ts +4 -0
  17. package/es/components/Sales/Checkout/index.js +52 -8
  18. package/es/components/Sales/Checkout/serve.d.ts +13 -0
  19. package/es/components/Sales/Checkout/serve.js +16 -2
  20. package/es/components/Sales/Checkout/utils.js +7 -1
  21. package/es/components/Sales/Resource/index.js +2 -2
  22. package/es/components/Sales/Resource/serve.d.ts +7 -0
  23. package/es/components/Sales/Resource/serve.js +10 -0
  24. package/es/components/Sales/Summary/index.d.ts +10 -0
  25. package/es/components/Sales/Summary/index.js +17 -2
  26. package/es/components/Sales/Summary/serve.d.ts +1 -0
  27. package/es/components/Sales/Summary/serve.js +6 -0
  28. package/es/components/Sales/Summary/utils.d.ts +15 -0
  29. package/es/components/Sales/Summary/utils.js +43 -1
  30. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  31. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  32. package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  33. package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
  34. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  35. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  36. package/es/components/appointmentBooking/components/Services/index.js +23 -27
  37. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
  38. package/es/components/appointmentBooking/deposit/index.js +4 -2
  39. package/es/components/appointmentBooking/index.js +14 -0
  40. package/es/components/appointmentBooking/index.less +1 -1
  41. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  42. package/es/components/booking/components/footer/utils.d.ts +1 -0
  43. package/es/components/booking/components/footer/utils.js +1 -1
  44. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  45. package/es/components/booking/components/voucher/index.js +2 -2
  46. package/es/components/booking/editBookingModal/index.d.ts +5 -0
  47. package/es/components/booking/editBookingModal/index.js +386 -0
  48. package/es/components/booking/editBookingModal/index.less +8 -0
  49. package/es/components/booking/editBookingModal/locales.d.ts +21 -0
  50. package/es/components/booking/editBookingModal/locales.js +20 -0
  51. package/es/components/booking/editBookingModal/mock.d.ts +807 -0
  52. package/es/components/booking/editBookingModal/mock.js +2993 -0
  53. package/es/components/booking/editBookingModal/serve.d.ts +51 -0
  54. package/es/components/booking/editBookingModal/serve.js +288 -0
  55. package/es/components/booking/editBookingModal/type.d.ts +12 -0
  56. package/es/components/booking/editBookingModal/type.js +1 -0
  57. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  58. package/es/components/booking/editBookingModal/utils.js +157 -0
  59. package/es/components/booking/forms/table/index.d.ts +1 -0
  60. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  61. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  62. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  63. package/es/components/booking/info/index.d.ts +1 -0
  64. package/es/components/booking/info/service/like/index.d.ts +1 -0
  65. package/es/components/booking/info/service2/utils.js +3 -2
  66. package/es/components/booking/info2/service/addService/utils.d.ts +10 -0
  67. package/es/components/booking/info2/service/addService/utils.js +48 -14
  68. package/es/components/booking/info2/service/editService/Resources/index.js +22 -8
  69. package/es/components/booking/info2/service/editService/Resources/index.less +6 -0
  70. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
  71. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +26 -0
  72. package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
  73. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +308 -0
  74. package/es/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
  75. package/es/components/booking/info2/utilsByBooking.js +9 -0
  76. package/es/components/booking/locales.d.ts +3 -0
  77. package/es/components/booking/locales.js +3 -0
  78. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  79. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  80. package/es/components/eftpos/form/index.d.ts +1 -0
  81. package/es/components/eftpos/group/index.d.ts +1 -0
  82. package/es/components/eftpos/hooks.d.ts +1 -0
  83. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  84. package/es/components/eftpos/icon/device.d.ts +1 -0
  85. package/es/components/eftpos/receipt/index.d.ts +1 -0
  86. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  87. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  88. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  89. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  90. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  91. package/es/components/eftposPay/const.d.ts +4 -1
  92. package/es/components/eftposPay/const.js +3 -1
  93. package/es/components/eftposPay/hooks.d.ts +1 -1
  94. package/es/components/eftposPay/hooks.js +3 -1
  95. package/es/components/eftposPay/index.js +1 -1
  96. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  97. package/es/components/eftposPay/linkly/const.js +82 -0
  98. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  99. package/es/components/eftposPay/linkly/hooks/index.js +2 -0
  100. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  101. package/es/components/eftposPay/linkly/hooks/normal.js +318 -0
  102. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  103. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +273 -0
  104. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  105. package/es/components/eftposPay/linkly/index.js +197 -0
  106. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  107. package/es/components/eftposPay/linkly/service.js +73 -0
  108. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  109. package/es/components/eftposPay/manufacturer.js +4 -0
  110. package/es/components/eftposPay/pay.d.ts +1 -1
  111. package/es/components/eftposPay/pay.js +6 -2
  112. package/es/components/eftposPay/store/index.d.ts +1 -1
  113. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  114. package/es/components/eftposPay/windcave/windcave.js +12 -2
  115. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  116. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -17
  117. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  118. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
  119. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
  120. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  121. package/es/components/eventBooking/components/Provider/Event/index.js +13 -4
  122. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  123. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  124. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  125. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  126. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  127. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  128. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  129. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  130. package/es/components/eventBooking/components/bookingDetailModal/index.js +22 -4
  131. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  132. package/es/components/eventBooking/index.js +21 -7
  133. package/es/components/eventBooking/locales.d.ts +24 -0
  134. package/es/components/eventBooking/locales.js +30 -6
  135. package/es/components/index.d.ts +3 -1
  136. package/es/components/index.js +3 -1
  137. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  138. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  139. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  140. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  141. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  142. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  143. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  144. package/es/components/pay/toC/PaymentMethods/index.js +5 -4
  145. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  146. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  147. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  148. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  149. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  150. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  151. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  152. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  153. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  154. package/es/components/schedules/products/index.d.ts +1 -0
  155. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  156. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  157. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  158. package/es/components/stepController/components/Content/index.d.ts +7 -0
  159. package/es/components/stepController/components/Content/index.js +9 -0
  160. package/es/components/stepController/components/Content/index.less +8 -0
  161. package/es/components/stepController/components/Footer/index.d.ts +8 -0
  162. package/es/components/stepController/components/Footer/index.js +15 -0
  163. package/es/components/stepController/components/Footer/index.less +39 -0
  164. package/es/components/stepController/components/Header/index.d.ts +20 -0
  165. package/es/components/stepController/components/Header/index.js +97 -0
  166. package/es/components/stepController/components/Header/index.less +21 -0
  167. package/es/components/stepController/index.d.ts +5 -0
  168. package/es/components/stepController/index.js +64 -0
  169. package/es/components/stepController/index.less +11 -0
  170. package/es/components/stepController/locales.d.ts +27 -0
  171. package/es/components/stepController/locales.js +32 -0
  172. package/es/components/stepController/types.d.ts +23 -0
  173. package/es/components/stepController/types.js +1 -0
  174. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  175. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  176. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  177. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  178. package/es/components/ticketBooking/components/ticketBooking/index.js +257 -138
  179. package/es/components/ticketBooking/locales.d.ts +164 -146
  180. package/es/components/ticketBooking/locales.js +195 -147
  181. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  182. package/es/components/ticketBooking/utils/formatProductMessage.js +62 -0
  183. package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
  184. package/es/components/ticketBooking/utils/formatTime.js +144 -0
  185. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  186. package/es/hooks/useWindowSize.d.ts +5 -0
  187. package/es/hooks/useWindowSize.js +26 -0
  188. package/es/index.d.ts +2 -0
  189. package/es/index.js +3 -1
  190. package/lib/businessModel/SalesModel/Sales/index.js +22 -8
  191. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  192. package/lib/components/Sales/Cart/index.js +1 -0
  193. package/lib/components/Sales/Cart/utils.d.ts +40 -0
  194. package/lib/components/Sales/Cart/utils.js +117 -0
  195. package/lib/components/Sales/Checkout/index.d.ts +4 -0
  196. package/lib/components/Sales/Checkout/index.js +39 -7
  197. package/lib/components/Sales/Checkout/serve.d.ts +13 -0
  198. package/lib/components/Sales/Checkout/serve.js +7 -2
  199. package/lib/components/Sales/Checkout/utils.js +2 -0
  200. package/lib/components/Sales/Resource/index.js +1 -1
  201. package/lib/components/Sales/Resource/serve.d.ts +7 -0
  202. package/lib/components/Sales/Resource/serve.js +9 -2
  203. package/lib/components/Sales/Summary/index.d.ts +10 -0
  204. package/lib/components/Sales/Summary/index.js +7 -1
  205. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  206. package/lib/components/Sales/Summary/serve.js +32 -0
  207. package/lib/components/Sales/Summary/utils.d.ts +15 -0
  208. package/lib/components/Sales/Summary/utils.js +30 -1
  209. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  210. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  211. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  212. package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
  213. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  214. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  215. package/lib/components/appointmentBooking/components/Services/index.js +6 -11
  216. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
  217. package/lib/components/appointmentBooking/deposit/index.js +4 -2
  218. package/lib/components/appointmentBooking/index.js +11 -0
  219. package/lib/components/appointmentBooking/index.less +1 -1
  220. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  221. package/lib/components/booking/components/footer/utils.d.ts +1 -0
  222. package/lib/components/booking/components/footer/utils.js +2 -0
  223. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  224. package/lib/components/booking/components/voucher/index.js +2 -2
  225. package/lib/components/booking/editBookingModal/index.d.ts +5 -0
  226. package/lib/components/booking/editBookingModal/index.js +363 -0
  227. package/lib/components/booking/editBookingModal/index.less +8 -0
  228. package/lib/components/booking/editBookingModal/locales.d.ts +21 -0
  229. package/lib/components/booking/editBookingModal/locales.js +44 -0
  230. package/lib/components/booking/editBookingModal/mock.d.ts +807 -0
  231. package/lib/components/booking/editBookingModal/mock.js +3314 -0
  232. package/lib/components/booking/editBookingModal/serve.d.ts +51 -0
  233. package/lib/components/booking/editBookingModal/serve.js +178 -0
  234. package/lib/components/booking/editBookingModal/type.d.ts +12 -0
  235. package/lib/components/booking/editBookingModal/type.js +17 -0
  236. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  237. package/lib/components/booking/editBookingModal/utils.js +158 -0
  238. package/lib/components/booking/forms/table/index.d.ts +1 -0
  239. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  240. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  241. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  242. package/lib/components/booking/info/index.d.ts +1 -0
  243. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  244. package/lib/components/booking/info/service2/utils.js +2 -2
  245. package/lib/components/booking/info2/service/addService/utils.d.ts +10 -0
  246. package/lib/components/booking/info2/service/addService/utils.js +32 -5
  247. package/lib/components/booking/info2/service/editService/Resources/index.js +54 -10
  248. package/lib/components/booking/info2/service/editService/Resources/index.less +6 -0
  249. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
  250. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +53 -0
  251. package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
  252. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +311 -0
  253. package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
  254. package/lib/components/booking/info2/utilsByBooking.js +6 -0
  255. package/lib/components/booking/locales.d.ts +3 -0
  256. package/lib/components/booking/locales.js +3 -0
  257. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  258. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  259. package/lib/components/eftpos/form/index.d.ts +1 -0
  260. package/lib/components/eftpos/group/index.d.ts +1 -0
  261. package/lib/components/eftpos/hooks.d.ts +1 -0
  262. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  263. package/lib/components/eftpos/icon/device.d.ts +1 -0
  264. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  265. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  266. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  267. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  268. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  269. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  270. package/lib/components/eftposPay/const.d.ts +4 -1
  271. package/lib/components/eftposPay/const.js +2 -0
  272. package/lib/components/eftposPay/hooks.d.ts +1 -1
  273. package/lib/components/eftposPay/hooks.js +11 -4
  274. package/lib/components/eftposPay/index.js +1 -1
  275. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  276. package/lib/components/eftposPay/linkly/const.js +102 -0
  277. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  278. package/lib/components/eftposPay/linkly/hooks/index.js +25 -0
  279. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  280. package/lib/components/eftposPay/linkly/hooks/normal.js +239 -0
  281. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  282. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
  283. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  284. package/lib/components/eftposPay/linkly/index.js +208 -0
  285. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  286. package/lib/components/eftposPay/linkly/service.js +55 -0
  287. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  288. package/lib/components/eftposPay/manufacturer.js +6 -0
  289. package/lib/components/eftposPay/pay.d.ts +1 -1
  290. package/lib/components/eftposPay/pay.js +13 -2
  291. package/lib/components/eftposPay/store/index.d.ts +1 -1
  292. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  293. package/lib/components/eftposPay/windcave/windcave.js +11 -0
  294. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  295. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +16 -3
  296. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  297. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
  298. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
  299. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  300. package/lib/components/eventBooking/components/Provider/Event/index.js +10 -3
  301. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  302. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  303. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  304. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  305. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  306. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  307. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  308. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  309. package/lib/components/eventBooking/components/bookingDetailModal/index.js +10 -4
  310. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  311. package/lib/components/eventBooking/index.js +11 -7
  312. package/lib/components/eventBooking/locales.d.ts +24 -0
  313. package/lib/components/eventBooking/locales.js +30 -6
  314. package/lib/components/index.d.ts +3 -1
  315. package/lib/components/index.js +6 -0
  316. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  317. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  318. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  319. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  320. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  321. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  322. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  323. package/lib/components/pay/toC/PaymentMethods/index.js +10 -9
  324. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  325. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  326. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  327. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  328. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  329. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  330. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  331. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  332. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  333. package/lib/components/schedules/products/index.d.ts +1 -0
  334. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  335. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  336. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  337. package/lib/components/stepController/components/Content/index.d.ts +7 -0
  338. package/lib/components/stepController/components/Content/index.js +40 -0
  339. package/lib/components/stepController/components/Content/index.less +8 -0
  340. package/lib/components/stepController/components/Footer/index.d.ts +8 -0
  341. package/lib/components/stepController/components/Footer/index.js +49 -0
  342. package/lib/components/stepController/components/Footer/index.less +39 -0
  343. package/lib/components/stepController/components/Header/index.d.ts +20 -0
  344. package/lib/components/stepController/components/Header/index.js +104 -0
  345. package/lib/components/stepController/components/Header/index.less +21 -0
  346. package/lib/components/stepController/index.d.ts +5 -0
  347. package/lib/components/stepController/index.js +89 -0
  348. package/lib/components/stepController/index.less +11 -0
  349. package/lib/components/stepController/locales.d.ts +27 -0
  350. package/lib/components/stepController/locales.js +50 -0
  351. package/lib/components/stepController/types.d.ts +23 -0
  352. package/lib/components/stepController/types.js +17 -0
  353. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  354. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  355. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  356. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  357. package/lib/components/ticketBooking/components/ticketBooking/index.js +263 -139
  358. package/lib/components/ticketBooking/locales.d.ts +164 -146
  359. package/lib/components/ticketBooking/locales.js +22 -4
  360. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  361. package/lib/components/ticketBooking/utils/formatProductMessage.js +84 -0
  362. package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
  363. package/lib/components/ticketBooking/utils/formatTime.js +139 -0
  364. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  365. package/lib/hooks/useWindowSize.d.ts +5 -0
  366. package/lib/hooks/useWindowSize.js +51 -0
  367. package/lib/index.d.ts +2 -0
  368. package/lib/index.js +6 -0
  369. package/lowcode/edit-booking-modal/meta.ts +53 -0
  370. package/lowcode/step-controller/meta.ts +88 -0
  371. package/package.json +4 -4
@@ -43,7 +43,20 @@ var import_lodash = require("lodash");
43
43
  var import_utils2 = require("../utils");
44
44
  var import_ahooks = require("ahooks");
45
45
  var import_icons = require("@ant-design/icons");
46
- var Resources = ({ state, cacheItem, getCurrentCacheItem, onChange, value }, ref) => {
46
+ var Resources = ({
47
+ state,
48
+ cacheItem,
49
+ getCurrentCacheItem,
50
+ onChange,
51
+ value,
52
+ config = {
53
+ // 是否显示自动分配
54
+ autoAllocation: true,
55
+ // 是否显示资源错误图标
56
+ resourceErrorIcon: true,
57
+ disabled: false
58
+ }
59
+ }, ref) => {
47
60
  var _a, _b;
48
61
  const [showError, setShowError] = (0, import_react.useState)(false);
49
62
  const update = (0, import_ahooks.useUpdate)();
@@ -134,7 +147,7 @@ var Resources = ({ state, cacheItem, getCurrentCacheItem, onChange, value }, ref
134
147
  );
135
148
  });
136
149
  },
137
- []
150
+ [config == null ? void 0 : config.resourceErrorIcon]
138
151
  );
139
152
  const check = () => {
140
153
  var _a2;
@@ -166,6 +179,7 @@ var Resources = ({ state, cacheItem, getCurrentCacheItem, onChange, value }, ref
166
179
  {
167
180
  label: item.title,
168
181
  required: true,
182
+ labelCol: config == null ? void 0 : config.labelCol,
169
183
  extra: showError && item.select_type.min > (cur == null ? void 0 : cur.length) ? /* @__PURE__ */ import_react.default.createElement("span", { style: { color: "#ff4d4f" } }, import_utils.locales.getText(
170
184
  "page.booking.text.resource.min-length-error"
171
185
  )(item.select_type.min, item.title)) : void 0
@@ -173,9 +187,12 @@ var Resources = ({ state, cacheItem, getCurrentCacheItem, onChange, value }, ref
173
187
  /* @__PURE__ */ import_react.default.createElement("div", { className: "resource-col" }, item.select_type.type === "multiple" ? null : /* @__PURE__ */ import_react.default.createElement(
174
188
  import_antd.Button,
175
189
  {
176
- className: "resource-col-like-wrap",
190
+ className: `resource-col-like-wrap ${(config == null ? void 0 : config.disabled) ? "resource-col-like-wrap-disabled" : ""}`,
177
191
  onClick: () => {
178
192
  var _a3;
193
+ if (config == null ? void 0 : config.disabled) {
194
+ return;
195
+ }
179
196
  setLikeStatus(
180
197
  ((_a3 = cur == null ? void 0 : cur[0]) == null ? void 0 : _a3.like_status) === "like" ? "common" : "like",
181
198
  item.form_id,
@@ -183,7 +200,13 @@ var Resources = ({ state, cacheItem, getCurrentCacheItem, onChange, value }, ref
183
200
  );
184
201
  }
185
202
  },
186
- /* @__PURE__ */ import_react.default.createElement(import_like.default, { status: (_a2 = cur == null ? void 0 : cur[0]) == null ? void 0 : _a2.like_status })
203
+ /* @__PURE__ */ import_react.default.createElement(
204
+ import_like.default,
205
+ {
206
+ status: (_a2 = cur == null ? void 0 : cur[0]) == null ? void 0 : _a2.like_status,
207
+ className: `${(config == null ? void 0 : config.disabled) ? "like-icon-disabled" : ""}`
208
+ }
209
+ )
187
210
  ), /* @__PURE__ */ import_react.default.createElement(
188
211
  import_MaxLengthSelect.default,
189
212
  {
@@ -204,14 +227,35 @@ var Resources = ({ state, cacheItem, getCurrentCacheItem, onChange, value }, ref
204
227
  showSearch: true,
205
228
  filterOption: (str, option) => {
206
229
  return ((option == null ? void 0 : option.labelText) || "").toLowerCase().includes((str || "").toLowerCase());
230
+ },
231
+ disabled: config == null ? void 0 : config.disabled
232
+ },
233
+ renderOptions(
234
+ item.renderList,
235
+ "id",
236
+ (config == null ? void 0 : config.resourceErrorIcon) ? "label" : "labelText",
237
+ "resource"
238
+ )
239
+ ), (config == null ? void 0 : config.autoAllocation) ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
240
+ import_antd.Checkbox,
241
+ {
242
+ checked: getIsAutoAllocation(item.form_id),
243
+ onChange: (e) => {
244
+ handleCheckAutoAllocation(
245
+ item.form_id,
246
+ e.target.checked
247
+ );
207
248
  }
249
+ }
250
+ ), /* @__PURE__ */ import_react.default.createElement(
251
+ import_antd.Tooltip,
252
+ {
253
+ title: import_utils.locales.getText(
254
+ "page.booking.text.resource.check-auto-allocation-tip"
255
+ )
208
256
  },
209
- renderOptions(item.renderList, "id", "label", "resource")
210
- ), /* @__PURE__ */ import_react.default.createElement(import_antd.Checkbox, { checked: getIsAutoAllocation(item.form_id), onChange: (e) => {
211
- handleCheckAutoAllocation(item.form_id, e.target.checked);
212
- } }), /* @__PURE__ */ import_react.default.createElement(import_antd.Tooltip, { title: import_utils.locales.getText(
213
- "page.booking.text.resource.check-auto-allocation-tip"
214
- ) }, /* @__PURE__ */ import_react.default.createElement(import_icons.QuestionCircleOutlined, null)))
257
+ /* @__PURE__ */ import_react.default.createElement(import_icons.QuestionCircleOutlined, null)
258
+ )) : null)
215
259
  ), state.renderType !== "eventBooking" && (errors || []).map((d) => {
216
260
  return /* @__PURE__ */ import_react.default.createElement(
217
261
  import_antd.Alert,
@@ -15,6 +15,12 @@
15
15
  .like-resource {}
16
16
  }
17
17
 
18
+ .resource-col-like-wrap-disabled,
19
+ .like-icon-disabled {
20
+ opacity: 0.5;
21
+ cursor: not-allowed;
22
+ }
23
+
18
24
  .resource-col-select {
19
25
  flex: 1;
20
26
  }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { SelectProps } from 'antd';
3
+ interface MaxLengthSelectProps<T> extends SelectProps<T> {
4
+ maxLength: number;
5
+ }
6
+ declare const _default: import("react").ForwardRefExoticComponent<Partial<MaxLengthSelectProps<any>> & import("react").RefAttributes<unknown>>;
7
+ export default _default;
@@ -0,0 +1,53 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.tsx
20
+ var MaxLengthSelect_exports = {};
21
+ __export(MaxLengthSelect_exports, {
22
+ default: () => MaxLengthSelect_default
23
+ });
24
+ module.exports = __toCommonJS(MaxLengthSelect_exports);
25
+ var import_react = require("react");
26
+ var import_antd = require("antd");
27
+ var MaxLengthSelect = (props, ref) => {
28
+ (0, import_react.useImperativeHandle)(ref, () => {
29
+ return {
30
+ onChange: handleChange
31
+ };
32
+ });
33
+ const handleChange = (e, _option) => {
34
+ if (props.onChange) {
35
+ if ((props.mode === "multiple" || props.mode === "tags") && props.maxLength) {
36
+ if (props.value && props.value.length >= props.maxLength && e.length > props.value.length) {
37
+ return;
38
+ }
39
+ }
40
+ props.onChange(e, _option);
41
+ }
42
+ };
43
+ return /* @__PURE__ */ React.createElement(
44
+ import_antd.Select,
45
+ {
46
+ ...props,
47
+ onChange: handleChange,
48
+ popupMatchSelectWidth: false
49
+ },
50
+ props.children
51
+ );
52
+ };
53
+ var MaxLengthSelect_default = (0, import_react.forwardRef)(MaxLengthSelect);
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface IResourcesProps {
4
+ [key: string]: any;
5
+ /** 展示资源的变动情况 */
6
+ originCacheItem: any;
7
+ originValue: any;
8
+ }
9
+ declare const _default: React.ForwardRefExoticComponent<Omit<IResourcesProps, "ref"> & React.RefAttributes<unknown>>;
10
+ export default _default;
@@ -0,0 +1,311 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/booking/info2/service/editService/ResourcesV2/index.tsx
30
+ var ResourcesV2_exports = {};
31
+ __export(ResourcesV2_exports, {
32
+ default: () => ResourcesV2_default
33
+ });
34
+ module.exports = __toCommonJS(ResourcesV2_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_classnames = __toESM(require("classnames"));
37
+ var import_antd = require("antd");
38
+ var import_materials = require("@pisell/materials");
39
+ var import_MaxLengthSelect = __toESM(require("./MaxLengthSelect"));
40
+ var import_like = __toESM(require("../../../../info/service/like"));
41
+ var import_index = require("./index.less");
42
+ var import_utils = require("@pisell/utils");
43
+ var import_utilsByBooking = require("../../../utilsByBooking");
44
+ var import_lodash = require("lodash");
45
+ var import_utils2 = require("../utils");
46
+ var import_ahooks = require("ahooks");
47
+ var import_icons = require("@ant-design/icons");
48
+ var Resources = ({
49
+ state,
50
+ cacheItem,
51
+ originCacheItem,
52
+ getCurrentCacheItem,
53
+ onChange,
54
+ value,
55
+ originValue,
56
+ config = {
57
+ // 是否显示自动分配
58
+ autoAllocation: true,
59
+ // 是否显示资源错误图标
60
+ resourceErrorIcon: true,
61
+ disabled: false,
62
+ size: "large"
63
+ }
64
+ }, ref) => {
65
+ var _a, _b, _c;
66
+ const [showError, setShowError] = (0, import_react.useState)(false);
67
+ const update = (0, import_ahooks.useUpdate)();
68
+ const data = (0, import_react.useMemo)(() => {
69
+ var _a2;
70
+ return ((_a2 = cacheItem == null ? void 0 : cacheItem._data) == null ? void 0 : _a2.resources) || [];
71
+ }, [(_a = cacheItem == null ? void 0 : cacheItem._data) == null ? void 0 : _a.resources]);
72
+ const originData = (0, import_react.useMemo)(() => {
73
+ var _a2;
74
+ return ((_a2 = cacheItem == null ? void 0 : cacheItem._data) == null ? void 0 : _a2.resources) || [];
75
+ }, [(_b = originCacheItem == null ? void 0 : originCacheItem._data) == null ? void 0 : _b.resource]);
76
+ const resourceMaps = (0, import_react.useMemo)(() => {
77
+ var _a2;
78
+ return ((_a2 = cacheItem == null ? void 0 : cacheItem._data) == null ? void 0 : _a2.resourceMaps) || [];
79
+ }, [(_c = cacheItem == null ? void 0 : cacheItem._data) == null ? void 0 : _c.resourceMaps]);
80
+ const defaultValue = (0, import_react.useMemo)(() => {
81
+ return data.reduce((pre, cur2) => {
82
+ pre[cur2.form_id] = [];
83
+ return pre;
84
+ }, {});
85
+ }, [data]);
86
+ const _value = (0, import_react.useMemo)(() => {
87
+ return value || defaultValue;
88
+ }, [value, defaultValue]);
89
+ const handleCheckAutoAllocation = (id, checked) => {
90
+ (0, import_utils2.setAutoAllocationStorage)({ [id]: checked });
91
+ update();
92
+ };
93
+ const _onChange = (val, form_id, key) => {
94
+ let _val = { ..._value };
95
+ let maps = _val[form_id] ? _val[form_id].reduce((pre, cur2) => {
96
+ pre[cur2.relation_id] = cur2;
97
+ return pre;
98
+ }, {}) : {};
99
+ _val[form_id] = val.map((d) => {
100
+ var _a2, _b2, _c2, _d2, _e, _f, _g, _h;
101
+ let _d = maps[d];
102
+ if (_d) {
103
+ if (key === "like_status") {
104
+ d[key].like_status = val;
105
+ }
106
+ }
107
+ const currentForm = (resourceMaps == null ? void 0 : resourceMaps[form_id]) || {};
108
+ return (
109
+ // maps[d] 为真时, 说明是之前已选择, 否则为新增的值,补充数据
110
+ maps[d] || {
111
+ relation_type: ((_b2 = (_a2 = currentForm.renderListMaps[d]) == null ? void 0 : _a2.usable) == null ? void 0 : _b2.relation_type) || "form",
112
+ form_id,
113
+ relation_id: d,
114
+ like_status: "common",
115
+ children: (_d2 = (_c2 = currentForm.renderListMaps) == null ? void 0 : _c2[d]) == null ? void 0 : _d2.children,
116
+ // 新添加的数据补充错误信息
117
+ errors: (0, import_utilsByBooking.getErrorList)(
118
+ (_e = currentForm.renderListMaps) == null ? void 0 : _e[d],
119
+ getCurrentCacheItem()
120
+ ),
121
+ metadata: {
122
+ ...(_g = (_f = currentForm.renderListMaps) == null ? void 0 : _f[d]) == null ? void 0 : _g.metadata,
123
+ form_name: currentForm.title,
124
+ resource_name: (_h = currentForm.renderListMaps[d]) == null ? void 0 : _h.main_field
125
+ }
126
+ }
127
+ );
128
+ });
129
+ setShowError(false);
130
+ onChange == null ? void 0 : onChange(_val);
131
+ };
132
+ const setLikeStatus = (val, form_id, key) => {
133
+ var _a2;
134
+ let _val = { ..._value };
135
+ if ((_a2 = _val == null ? void 0 : _val[form_id]) == null ? void 0 : _a2[0]) {
136
+ _val[form_id][0][key] = val;
137
+ onChange == null ? void 0 : onChange(_val);
138
+ }
139
+ };
140
+ const renderOptions = (0, import_react.useCallback)(
141
+ (array, value2 = "value", label = "label", type) => {
142
+ return array.map((d) => {
143
+ let props = {};
144
+ if (type === "resource") {
145
+ props.labelText = d.labelText;
146
+ }
147
+ return /* @__PURE__ */ import_react.default.createElement(
148
+ import_antd.Select.Option,
149
+ {
150
+ value: d[value2],
151
+ key: d[value2],
152
+ ...props,
153
+ relation_type: d.relation_type
154
+ },
155
+ d[label]
156
+ );
157
+ });
158
+ },
159
+ [config == null ? void 0 : config.resourceErrorIcon]
160
+ );
161
+ const check = () => {
162
+ var _a2;
163
+ for (let item of data) {
164
+ let _length = (_a2 = _value[item.form_id]) == null ? void 0 : _a2.length;
165
+ if (item.select_type.min > _length) {
166
+ setShowError(true);
167
+ return false;
168
+ }
169
+ }
170
+ return true;
171
+ };
172
+ (0, import_react.useImperativeHandle)(ref, () => {
173
+ return {
174
+ check
175
+ };
176
+ });
177
+ const getIsAutoAllocation = (id) => {
178
+ return (0, import_utils2.getAutoAllocationStorage)(id);
179
+ };
180
+ const renderItem = (item, isOrigin) => {
181
+ var _a2;
182
+ if (!item) return null;
183
+ const disabled = isOrigin || (config == null ? void 0 : config.disabled);
184
+ const cur2 = isOrigin ? originValue[item.form_id] : _value[item.form_id];
185
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { flex: "1 0" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "resource-v2 resource-col" }, item.select_type.type === "multiple" ? null : /* @__PURE__ */ import_react.default.createElement(
186
+ import_antd.Button,
187
+ {
188
+ className: (0, import_classnames.default)(
189
+ "resource-col-like-wrap",
190
+ {
191
+ "resource-col-like-wrap-disabled": disabled
192
+ },
193
+ (config == null ? void 0 : config.size) || "large"
194
+ ),
195
+ size: config == null ? void 0 : config.size,
196
+ onClick: () => {
197
+ var _a3;
198
+ if (disabled) {
199
+ return;
200
+ }
201
+ setLikeStatus(
202
+ ((_a3 = cur2 == null ? void 0 : cur2[0]) == null ? void 0 : _a3.like_status) === "like" ? "common" : "like",
203
+ item.form_id,
204
+ "like_status"
205
+ );
206
+ }
207
+ },
208
+ /* @__PURE__ */ import_react.default.createElement(
209
+ import_like.default,
210
+ {
211
+ status: (_a2 = cur2 == null ? void 0 : cur2[0]) == null ? void 0 : _a2.like_status,
212
+ className: `${disabled ? "like-icon-disabled" : ""}`
213
+ }
214
+ )
215
+ ), /* @__PURE__ */ import_react.default.createElement(
216
+ import_MaxLengthSelect.default,
217
+ {
218
+ className: "resource-col-select",
219
+ size: (config == null ? void 0 : config.size) || "large",
220
+ maxLength: item.select_type.max,
221
+ mode: item.select_type.type === "multiple" ? "multiple" : void 0,
222
+ onChange: (e) => {
223
+ let val = e;
224
+ if (!(0, import_lodash.isArray)(e)) {
225
+ if (e || e === 0) {
226
+ val = [e];
227
+ }
228
+ }
229
+ _onChange(val, item.form_id, "value");
230
+ },
231
+ value: cur2 == null ? void 0 : cur2.map((d) => d.relation_id),
232
+ showSearch: true,
233
+ filterOption: (str, option) => {
234
+ return ((option == null ? void 0 : option.labelText) || "").toLowerCase().includes((str || "").toLowerCase());
235
+ },
236
+ disabled
237
+ },
238
+ renderOptions(
239
+ item.renderList,
240
+ "id",
241
+ (config == null ? void 0 : config.resourceErrorIcon) ? "label" : "labelText",
242
+ "resource"
243
+ )
244
+ ), (config == null ? void 0 : config.autoAllocation) ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
245
+ import_antd.Checkbox,
246
+ {
247
+ checked: getIsAutoAllocation(item.form_id),
248
+ onChange: (e) => {
249
+ handleCheckAutoAllocation(item.form_id, e.target.checked);
250
+ }
251
+ }
252
+ ), /* @__PURE__ */ import_react.default.createElement(
253
+ import_antd.Tooltip,
254
+ {
255
+ title: import_utils.locales.getText(
256
+ "page.booking.text.resource.check-auto-allocation-tip"
257
+ )
258
+ },
259
+ /* @__PURE__ */ import_react.default.createElement(import_icons.QuestionCircleOutlined, null)
260
+ )) : null)));
261
+ };
262
+ const renderErrors = (item) => {
263
+ const cur2 = _value[item.form_id];
264
+ const errors = (cur2 || []).reduce((pre, d) => {
265
+ return pre.concat((d == null ? void 0 : d.errors) || []);
266
+ }, []);
267
+ return state.renderType !== "eventBooking" && (errors || []).map((d) => {
268
+ return /* @__PURE__ */ import_react.default.createElement(
269
+ import_antd.Alert,
270
+ {
271
+ key: d.type,
272
+ message: d.label,
273
+ type: "warning",
274
+ showIcon: true,
275
+ style: { marginBottom: 12 }
276
+ }
277
+ );
278
+ });
279
+ };
280
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, data.map((item) => {
281
+ const originItem = originData == null ? void 0 : originData.find(
282
+ (originDataItem) => originDataItem.form_id === item.form_id
283
+ );
284
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, { key: item.form_id }, /* @__PURE__ */ import_react.default.createElement(
285
+ import_antd.Form.Item,
286
+ {
287
+ label: item.title,
288
+ required: true,
289
+ labelCol: config == null ? void 0 : config.labelCol,
290
+ extra: showError && item.select_type.min > (cur == null ? void 0 : cur.length) ? /* @__PURE__ */ import_react.default.createElement("span", { style: { color: "#ff4d4f" } }, import_utils.locales.getText(
291
+ "page.booking.text.resource.min-length-error"
292
+ )(item.select_type.min, item.title)) : void 0
293
+ },
294
+ /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { gutter: [16, 16], wrap: false }, renderItem(originItem, true), !!originItem ? /* @__PURE__ */ import_react.default.createElement(
295
+ import_antd.Col,
296
+ {
297
+ flex: "none",
298
+ style: { display: "flex", alignItems: "center" }
299
+ },
300
+ /* @__PURE__ */ import_react.default.createElement(
301
+ import_materials.Iconfont,
302
+ {
303
+ type: "pisell2-arrow-block-right",
304
+ style: { fontSize: 24, color: "#1b1b1b" }
305
+ }
306
+ )
307
+ ) : null, renderItem(item, false))
308
+ ), renderErrors(item));
309
+ }));
310
+ };
311
+ var ResourcesV2_default = (0, import_react.forwardRef)(Resources);
@@ -0,0 +1,44 @@
1
+ .resource-col.resource-v2 {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ gap: 10px;
6
+ width: 100%;
7
+ overflow: hidden;
8
+
9
+ .resource-col-like-wrap {
10
+ width: 32px;
11
+ height: 32px;
12
+
13
+ &.large {
14
+ width: 40px;
15
+ height: 40px;
16
+ }
17
+
18
+ display: flex;
19
+ align-items: center;
20
+ justify-content: center;
21
+ padding: 0;
22
+ flex-shrink: 0;
23
+
24
+ .like-resource {
25
+ }
26
+ }
27
+
28
+ .resource-col-like-wrap-disabled,
29
+ .like-icon-disabled {
30
+ opacity: 0.5;
31
+ cursor: not-allowed;
32
+ }
33
+
34
+ .resource-col-select {
35
+ flex: 1;
36
+ overflow: hidden;
37
+
38
+ .resource-option-label-text {
39
+ display: inline-block;
40
+ overflow: hidden;
41
+ text-overflow: ellipsis;
42
+ }
43
+ }
44
+ }
@@ -180,6 +180,12 @@ var getErrorList = (resource, cacheItem) => {
180
180
  }
181
181
  }
182
182
  }
183
+ if (resource.unbound) {
184
+ list.push({
185
+ label: import_utils.locales.getText("pisell1.text.resource-error-message-unbound"),
186
+ type: "time"
187
+ });
188
+ }
183
189
  return list;
184
190
  };
185
191
  var formatResource = (resourceItem, cacheItem, formatLabel) => {
@@ -110,6 +110,7 @@ declare const _default: {
110
110
  'pisell1.text.resource-error-message-1': (x: string, y: string) => string;
111
111
  'pisell1.text.resource-error-message-2': (x: string, y: string, z: string) => string;
112
112
  'pisell1.text.resource-error-message-3': (x: string, y: string, z: string) => string;
113
+ 'pisell1.text.resource-error-message-unbound': string;
113
114
  'pisell1.text.no-addons': string;
114
115
  'pisell1.text.no-resource': string;
115
116
  'pisell1.text.no-payments': string;
@@ -389,6 +390,7 @@ declare const _default: {
389
390
  'pisell1.text.resource-error-message-1': (x: string, y: string) => string;
390
391
  'pisell1.text.resource-error-message-2': (x: string, y: string, z: string) => string;
391
392
  'pisell1.text.resource-error-message-3': (x: string, y: string, z: string) => string;
393
+ 'pisell1.text.resource-error-message-unbound': string;
392
394
  'pisell2.text.flexible': string;
393
395
  'pisell2.text.order-discount': string;
394
396
  'pisell2.text.no-product-added': string;
@@ -660,6 +662,7 @@ declare const _default: {
660
662
  'pisell1.text.resource-error-message-1': (x: string, y: string) => string;
661
663
  'pisell1.text.resource-error-message-2': (x: string, y: string, z: string) => string;
662
664
  'pisell1.text.resource-error-message-3': (x: string, y: string, z: string) => string;
665
+ 'pisell1.text.resource-error-message-unbound': string;
663
666
  'pisell2.text.flexible': string;
664
667
  'pisell2.text.order-discount': string;
665
668
  'pisell2.text.no-product-added': string;
@@ -154,6 +154,7 @@ var locales_default = {
154
154
  "pisell1.text.resource-error-message-1": (x, y) => `${x} doesn't provide ${y}, but your team member can still book appointments.`,
155
155
  "pisell1.text.resource-error-message-2": (x, y, z) => `${x} isn't available between ${y} and ${z}, but your team member can still book appointments.`,
156
156
  "pisell1.text.resource-error-message-3": (x, y, z) => `${x} is fully booked between ${y} and ${z}, but your team member can still book appointments.`,
157
+ "pisell1.text.resource-error-message-unbound": "This booking product is not associated with the target resource.",
157
158
  "pisell1.text.no-addons": "No addons",
158
159
  "pisell1.text.no-resource": "No resource",
159
160
  "pisell1.text.no-payments": "No payments",
@@ -465,6 +466,7 @@ var locales_default = {
465
466
  "pisell1.text.resource-error-message-1": (x, y) => `${x} 不提供 ${y},但您的团队成员仍然可以预约。`,
466
467
  "pisell1.text.resource-error-message-2": (x, y, z) => `${x}在${y}到${z}之间不提供服务,但您的团队成员仍然可以预约。`,
467
468
  "pisell1.text.resource-error-message-3": (x, y, z) => `${x}在${y}到${z}之间已约满,但您的团队成员仍然可以预约。`,
469
+ "pisell1.text.resource-error-message-unbound": "该预约商品未关联目标资源。",
468
470
  "pisell2.text.flexible": "灵活",
469
471
  "pisell2.text.order-discount": "折扣",
470
472
  "pisell2.text.no-product-added": "未添加商品",
@@ -768,6 +770,7 @@ var locales_default = {
768
770
  "pisell1.text.resource-error-message-1": (x, y) => `${x} 不提供 ${y},但您的團隊成員仍然可以預約。`,
769
771
  "pisell1.text.resource-error-message-2": (x, y, z) => `${x}在${y}到${z}之間不提供服務,但您的團隊成員仍然可以預約。`,
770
772
  "pisell1.text.resource-error-message-3": (x, y, z) => `${x}在${y}到${z}之間已約滿,但您的團隊成員仍然可以預約。`,
773
+ "pisell1.text.resource-error-message-unbound": "該預約商品未關聯目標資源。",
771
774
  "pisell2.text.flexible": "靈活",
772
775
  "pisell2.text.order-discount": "折扣",
773
776
  "pisell2.text.no-product-added": "未添加商品",
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface HolderProps extends SelectProps {
3
4
  selectProps?: SelectProps;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 递归循环表单数据
3
4
  * @Author: hongbing.wang
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RadioGroupProps } from 'antd';
2
3
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
3
4
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 自定义组件设置
3
4
  * @description: 自定义组件设置
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.css';
2
3
  /**
3
4
  * @title: 自定义组件设置