@pisell/private-materials 3.2.38 → 3.3.0

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 (372) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/Sales/Summary/utils.d.ts +1 -1
  8. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +6 -1
  9. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +245 -114
  10. package/es/components/appointmentBooking/components/Cart/Item/Total.js +5 -4
  11. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -2
  12. package/es/components/appointmentBooking/components/Cart/Item/index.js +98 -17
  13. package/es/components/appointmentBooking/components/Cart/Item/index.less +21 -12
  14. package/es/components/appointmentBooking/components/Cart/index.js +2 -7
  15. package/es/components/appointmentBooking/components/Cart/utils.d.ts +77 -0
  16. package/es/components/appointmentBooking/components/Cart/utils.js +408 -0
  17. package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +3 -0
  18. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +24 -0
  19. package/es/components/appointmentBooking/components/ConfirmInformation/index.less +35 -0
  20. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
  21. package/es/components/appointmentBooking/components/Content/index.js +76 -9
  22. package/es/components/appointmentBooking/components/Content/index.less +21 -0
  23. package/es/components/appointmentBooking/components/Date/index.d.ts +0 -1
  24. package/es/components/appointmentBooking/components/Date/index.js +131 -38
  25. package/es/components/appointmentBooking/components/Date/index.less +1 -1
  26. package/es/components/appointmentBooking/components/Deposit/index.d.ts +3 -0
  27. package/es/components/appointmentBooking/components/Deposit/index.js +30 -0
  28. package/es/components/appointmentBooking/components/Deposit/index.less +17 -0
  29. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -1
  30. package/es/components/appointmentBooking/components/Footer/index.js +8 -2
  31. package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
  32. package/es/components/appointmentBooking/components/Form/index.js +200 -0
  33. package/es/components/appointmentBooking/components/Form/index.less +3 -0
  34. package/es/components/appointmentBooking/components/Guest/index.js +1 -1
  35. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  36. package/es/components/appointmentBooking/components/Header/index.js +53 -19
  37. package/es/components/appointmentBooking/components/Resource/index.js +67 -12
  38. package/es/components/appointmentBooking/components/Services/index.js +213 -75
  39. package/es/components/appointmentBooking/components/Services/index.less +0 -14
  40. package/es/components/appointmentBooking/components/TimeSlicing/index.js +10 -5
  41. package/es/components/appointmentBooking/components/TimeSlicing/index.less +7 -2
  42. package/es/components/appointmentBooking/components/Voucher/index.js +19 -6
  43. package/es/components/appointmentBooking/components/Voucher/index.less +93 -2
  44. package/es/components/appointmentBooking/context.d.ts +4 -4
  45. package/es/components/appointmentBooking/context.js +42 -33
  46. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  47. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +108 -0
  48. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.less +9 -0
  49. package/es/components/appointmentBooking/deposit/index.d.ts +3 -0
  50. package/es/components/appointmentBooking/deposit/index.js +101 -0
  51. package/es/components/appointmentBooking/deposit/index.less +57 -0
  52. package/es/components/appointmentBooking/hooks.d.ts +29 -1
  53. package/es/components/appointmentBooking/hooks.js +382 -114
  54. package/es/components/appointmentBooking/index.d.ts +0 -1
  55. package/es/components/appointmentBooking/index.js +9 -4
  56. package/es/components/appointmentBooking/locales.d.ts +51 -3
  57. package/es/components/appointmentBooking/locales.js +58 -4
  58. package/es/components/appointmentBooking/utils.d.ts +66 -1
  59. package/es/components/appointmentBooking/utils.js +226 -33
  60. package/es/components/booking/addons/index.js +10 -6
  61. package/es/components/booking/components/footer/index.d.ts +0 -1
  62. package/es/components/booking/components/footer/index.js +90 -72
  63. package/es/components/booking/components/footer/utils.d.ts +11 -0
  64. package/es/components/booking/components/footer/utils.js +72 -44
  65. package/es/components/booking/components/voucher/index.js +22 -6
  66. package/es/components/booking/hooks/useCreateBookingPageHeader.js +3 -0
  67. package/es/components/booking/info/hooks/useAddHolder.d.ts +2 -0
  68. package/es/components/booking/info/hooks/useAddHolder.js +70 -0
  69. package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  70. package/es/components/booking/info/hooks/useHolderConfig.js +40 -0
  71. package/es/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  72. package/es/components/booking/info/hooks/useInfoHolder.js +99 -0
  73. package/es/components/booking/info/index.js +9 -2
  74. package/es/components/booking/info/main.js +1 -1
  75. package/es/components/booking/info/pet/index.js +18 -17
  76. package/es/components/booking/info/service/Lists.d.ts +2 -0
  77. package/es/components/booking/info/service/Lists.js +119 -0
  78. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  79. package/es/components/booking/info/service/addService/index.js +7 -5
  80. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  81. package/es/components/booking/info/service/editService/index.js +7 -5
  82. package/es/components/booking/info/service/index.js +2 -2
  83. package/es/components/booking/info/service/serviceList/index.js +1 -0
  84. package/es/components/booking/info/service/serviceManager/index.js +12 -7
  85. package/es/components/booking/info/service2/Group/utils.js +2 -1
  86. package/es/components/booking/info/service2/hooks/useSelectPet.js +13 -5
  87. package/es/components/booking/info/service2/utils.d.ts +5 -4
  88. package/es/components/booking/info/service2/utils.js +356 -88
  89. package/es/components/booking/info/utils.d.ts +2 -0
  90. package/es/components/booking/info/utils.js +45 -1
  91. package/es/components/booking/info2/index.js +9 -6
  92. package/es/components/booking/info2/serve.d.ts +2 -2
  93. package/es/components/booking/info2/serve.js +8 -15
  94. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  95. package/es/components/booking/info2/service/addService/index.js +13 -8
  96. package/es/components/booking/info2/service/addService/utils.d.ts +8 -0
  97. package/es/components/booking/info2/service/addService/utils.js +49 -14
  98. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  99. package/es/components/booking/info2/service/addTimeModal/index.js +1 -1
  100. package/es/components/booking/info2/service/editService/Resources/index.js +6 -5
  101. package/es/components/booking/info2/service/editService/index.js +4 -3
  102. package/es/components/booking/info2/service/index.js +18 -37
  103. package/es/components/booking/info2/utils.d.ts +4 -0
  104. package/es/components/booking/info2/utils.js +43 -0
  105. package/es/components/booking/info2/utilsByBooking.js +17 -4
  106. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  107. package/es/components/booking/materiels/holder/index.js +2 -2
  108. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  109. package/es/components/booking/notes/addNote/index.js +1 -1
  110. package/es/components/booking/notes/addNote/index.less +3 -0
  111. package/es/components/booking/utils.d.ts +1 -0
  112. package/es/components/booking/utils.js +20 -8
  113. package/es/components/eftposPay/amount.d.ts +1 -1
  114. package/es/components/eftposPay/device.d.ts +1 -1
  115. package/es/components/eftposPay/hooks.d.ts +1 -1
  116. package/es/components/eftposPay/store/index.d.ts +1 -1
  117. package/es/components/index.d.ts +2 -1
  118. package/es/components/index.js +2 -1
  119. package/es/components/productSelect/components/TabProduct/index.d.ts +2 -0
  120. package/es/components/productSelect/components/TabProduct/index.js +176 -0
  121. package/es/components/productSelect/components/gridLayout/index.d.ts +9 -0
  122. package/es/components/productSelect/components/gridLayout/index.js +28 -0
  123. package/es/components/productSelect/components/gridLayout/index.less +6 -0
  124. package/es/components/productSelect/components/productGroup/index.d.ts +34 -0
  125. package/es/components/productSelect/components/productGroup/index.js +145 -0
  126. package/es/components/productSelect/components/productGroup/index.less +208 -0
  127. package/es/components/productSelect/hooks/useToken.d.ts +18 -0
  128. package/es/components/productSelect/hooks/useToken.js +35 -0
  129. package/es/components/productSelect/index.d.ts +23 -0
  130. package/es/components/productSelect/index.js +93 -0
  131. package/es/components/productSelect/index.less +69 -0
  132. package/es/components/productSelect/locales.d.ts +18 -0
  133. package/es/components/productSelect/locales.js +17 -0
  134. package/es/components/productSelect/mock.d.ts +134 -0
  135. package/es/components/productSelect/mock.js +202 -0
  136. package/es/components/productSelect/theme/token.d.ts +17 -0
  137. package/es/components/productSelect/theme/token.js +19 -0
  138. package/es/components/shoppingCart/Provider.d.ts +1 -1
  139. package/es/components/shoppingCart/Provider.js +3 -1
  140. package/es/components/shoppingCart/components/Cart/Product.js +15 -3
  141. package/es/components/shoppingCart/components/Cart/index.less +15 -15
  142. package/es/components/shoppingCart/components/Render/index.less +15 -0
  143. package/es/components/shoppingCart/hooks/useAddService.js +7 -1
  144. package/es/components/shoppingCart/index.d.ts +1 -2
  145. package/es/components/shoppingCart/index.js +3 -1
  146. package/es/components/shoppingCart/status.js +4 -1
  147. package/es/components/shoppingCart/type.d.ts +5 -0
  148. package/es/components/subTotal/index.d.ts +22 -0
  149. package/es/components/subTotal/index.js +234 -0
  150. package/es/components/subTotal/index.less +70 -0
  151. package/es/components/subTotal/locales.d.ts +42 -0
  152. package/es/components/subTotal/locales.js +41 -0
  153. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  154. package/es/components/ticketBooking/components/addServiceVariant/addService.js +410 -0
  155. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
  156. package/es/components/ticketBooking/components/addServiceVariant/index.js +28 -0
  157. package/es/components/ticketBooking/components/addServiceVariant/index.less +0 -0
  158. package/es/components/ticketBooking/components/menuBar/index.d.ts +3 -0
  159. package/es/components/ticketBooking/components/menuBar/index.js +54 -0
  160. package/es/components/ticketBooking/components/menuBar/index.less +84 -0
  161. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +3 -0
  162. package/es/components/ticketBooking/components/ticketBooking/index.js +815 -0
  163. package/es/components/ticketBooking/components/ticketBooking/index.less +18 -0
  164. package/es/components/ticketBooking/components/timeBar/index.d.ts +11 -0
  165. package/es/components/ticketBooking/components/timeBar/index.js +113 -0
  166. package/es/components/ticketBooking/components/timeBar/index.less +22 -0
  167. package/es/components/ticketBooking/data.d.ts +58 -0
  168. package/es/components/ticketBooking/data.js +58 -58
  169. package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
  170. package/es/components/ticketBooking/hooks/useNetworkStatus.js +52 -0
  171. package/es/components/ticketBooking/index.d.ts +3 -3
  172. package/es/components/ticketBooking/index.js +139 -5
  173. package/es/components/ticketBooking/index.less +4 -0
  174. package/es/components/ticketBooking/locales.d.ts +144 -0
  175. package/es/components/ticketBooking/locales.js +143 -0
  176. package/es/components/ticketBooking/miniRedux.d.ts +22 -0
  177. package/es/components/ticketBooking/miniRedux.js +105 -0
  178. package/es/components/ticketBooking/serve.d.ts +282 -0
  179. package/es/components/ticketBooking/serve.js +957 -0
  180. package/es/components/ticketBooking/utils/index.d.ts +14 -0
  181. package/es/components/ticketBooking/utils/index.js +102 -0
  182. package/es/components/wallet/components/WalletCard.js +1 -1
  183. package/es/index.d.ts +3 -0
  184. package/es/index.js +4 -1
  185. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  186. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +6 -1
  187. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +132 -73
  188. package/lib/components/appointmentBooking/components/Cart/Item/Total.js +31 -24
  189. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -2
  190. package/lib/components/appointmentBooking/components/Cart/Item/index.js +59 -14
  191. package/lib/components/appointmentBooking/components/Cart/Item/index.less +21 -12
  192. package/lib/components/appointmentBooking/components/Cart/index.js +2 -2
  193. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +77 -0
  194. package/lib/components/appointmentBooking/components/Cart/utils.js +273 -0
  195. package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +3 -0
  196. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +46 -0
  197. package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +35 -0
  198. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
  199. package/lib/components/appointmentBooking/components/Content/index.js +59 -5
  200. package/lib/components/appointmentBooking/components/Content/index.less +21 -0
  201. package/lib/components/appointmentBooking/components/Date/index.d.ts +0 -1
  202. package/lib/components/appointmentBooking/components/Date/index.js +47 -19
  203. package/lib/components/appointmentBooking/components/Date/index.less +1 -1
  204. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +3 -0
  205. package/lib/components/appointmentBooking/components/Deposit/index.js +61 -0
  206. package/lib/components/appointmentBooking/components/Deposit/index.less +17 -0
  207. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -1
  208. package/lib/components/appointmentBooking/components/Footer/index.js +8 -2
  209. package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
  210. package/lib/components/appointmentBooking/components/Form/index.js +157 -0
  211. package/lib/components/appointmentBooking/components/Form/index.less +3 -0
  212. package/lib/components/appointmentBooking/components/Guest/index.js +1 -1
  213. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  214. package/lib/components/appointmentBooking/components/Header/index.js +31 -13
  215. package/lib/components/appointmentBooking/components/Resource/index.js +36 -14
  216. package/lib/components/appointmentBooking/components/Services/index.js +86 -63
  217. package/lib/components/appointmentBooking/components/Services/index.less +0 -14
  218. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +13 -5
  219. package/lib/components/appointmentBooking/components/TimeSlicing/index.less +7 -2
  220. package/lib/components/appointmentBooking/components/Voucher/index.js +21 -6
  221. package/lib/components/appointmentBooking/components/Voucher/index.less +93 -2
  222. package/lib/components/appointmentBooking/context.d.ts +4 -4
  223. package/lib/components/appointmentBooking/context.js +15 -10
  224. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  225. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +95 -0
  226. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.less +9 -0
  227. package/lib/components/appointmentBooking/deposit/index.d.ts +3 -0
  228. package/lib/components/appointmentBooking/deposit/index.js +109 -0
  229. package/lib/components/appointmentBooking/deposit/index.less +57 -0
  230. package/lib/components/appointmentBooking/hooks.d.ts +29 -1
  231. package/lib/components/appointmentBooking/hooks.js +148 -22
  232. package/lib/components/appointmentBooking/index.d.ts +0 -1
  233. package/lib/components/appointmentBooking/index.js +6 -4
  234. package/lib/components/appointmentBooking/locales.d.ts +51 -3
  235. package/lib/components/appointmentBooking/locales.js +52 -4
  236. package/lib/components/appointmentBooking/utils.d.ts +66 -1
  237. package/lib/components/appointmentBooking/utils.js +158 -33
  238. package/lib/components/booking/addons/index.js +9 -5
  239. package/lib/components/booking/components/footer/index.d.ts +0 -1
  240. package/lib/components/booking/components/footer/index.js +94 -32
  241. package/lib/components/booking/components/footer/utils.d.ts +11 -0
  242. package/lib/components/booking/components/footer/utils.js +38 -14
  243. package/lib/components/booking/components/voucher/index.js +18 -2
  244. package/lib/components/booking/hooks/useCreateBookingPageHeader.js +3 -0
  245. package/lib/components/booking/info/hooks/useAddHolder.d.ts +2 -0
  246. package/lib/components/booking/info/hooks/useAddHolder.js +73 -0
  247. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  248. package/lib/components/booking/info/hooks/useHolderConfig.js +59 -0
  249. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  250. package/lib/components/booking/info/hooks/useInfoHolder.js +106 -0
  251. package/lib/components/booking/info/index.js +5 -1
  252. package/lib/components/booking/info/main.js +1 -1
  253. package/lib/components/booking/info/pet/index.js +3 -2
  254. package/lib/components/booking/info/service/Lists.d.ts +2 -0
  255. package/lib/components/booking/info/service/Lists.js +106 -0
  256. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  257. package/lib/components/booking/info/service/addService/index.js +6 -4
  258. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  259. package/lib/components/booking/info/service/editService/index.js +5 -3
  260. package/lib/components/booking/info/service/index.js +1 -1
  261. package/lib/components/booking/info/service/serviceList/index.js +1 -0
  262. package/lib/components/booking/info/service/serviceManager/index.js +6 -1
  263. package/lib/components/booking/info/service2/Group/utils.js +2 -1
  264. package/lib/components/booking/info/service2/hooks/useSelectPet.js +13 -6
  265. package/lib/components/booking/info/service2/utils.d.ts +5 -4
  266. package/lib/components/booking/info/service2/utils.js +304 -30
  267. package/lib/components/booking/info/utils.d.ts +2 -0
  268. package/lib/components/booking/info/utils.js +40 -1
  269. package/lib/components/booking/info2/index.js +6 -1
  270. package/lib/components/booking/info2/serve.d.ts +2 -2
  271. package/lib/components/booking/info2/serve.js +3 -10
  272. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  273. package/lib/components/booking/info2/service/addService/index.js +11 -6
  274. package/lib/components/booking/info2/service/addService/utils.d.ts +8 -0
  275. package/lib/components/booking/info2/service/addService/utils.js +50 -17
  276. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  277. package/lib/components/booking/info2/service/addTimeModal/index.js +2 -2
  278. package/lib/components/booking/info2/service/editService/Resources/index.js +5 -3
  279. package/lib/components/booking/info2/service/editService/index.js +3 -1
  280. package/lib/components/booking/info2/service/index.js +18 -28
  281. package/lib/components/booking/info2/utils.d.ts +4 -0
  282. package/lib/components/booking/info2/utils.js +65 -0
  283. package/lib/components/booking/info2/utilsByBooking.js +12 -3
  284. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  285. package/lib/components/booking/materiels/holder/index.js +2 -2
  286. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  287. package/lib/components/booking/notes/addNote/index.js +1 -1
  288. package/lib/components/booking/notes/addNote/index.less +3 -0
  289. package/lib/components/booking/utils.d.ts +1 -0
  290. package/lib/components/booking/utils.js +25 -10
  291. package/lib/components/eftposPay/amount.d.ts +1 -1
  292. package/lib/components/eftposPay/device.d.ts +1 -1
  293. package/lib/components/eftposPay/hooks.d.ts +1 -1
  294. package/lib/components/eftposPay/store/index.d.ts +1 -1
  295. package/lib/components/index.d.ts +2 -1
  296. package/lib/components/index.js +3 -0
  297. package/lib/components/productSelect/components/TabProduct/index.d.ts +2 -0
  298. package/lib/components/productSelect/components/TabProduct/index.js +172 -0
  299. package/lib/components/productSelect/components/gridLayout/index.d.ts +9 -0
  300. package/lib/components/productSelect/components/gridLayout/index.js +58 -0
  301. package/lib/components/productSelect/components/gridLayout/index.less +6 -0
  302. package/lib/components/productSelect/components/productGroup/index.d.ts +34 -0
  303. package/lib/components/productSelect/components/productGroup/index.js +122 -0
  304. package/lib/components/productSelect/components/productGroup/index.less +208 -0
  305. package/lib/components/productSelect/hooks/useToken.d.ts +18 -0
  306. package/lib/components/productSelect/hooks/useToken.js +51 -0
  307. package/lib/components/productSelect/index.d.ts +23 -0
  308. package/lib/components/productSelect/index.js +119 -0
  309. package/lib/components/productSelect/index.less +69 -0
  310. package/lib/components/productSelect/locales.d.ts +18 -0
  311. package/lib/components/productSelect/locales.js +41 -0
  312. package/lib/components/productSelect/mock.d.ts +134 -0
  313. package/lib/components/productSelect/mock.js +276 -0
  314. package/lib/components/productSelect/theme/token.d.ts +17 -0
  315. package/lib/components/productSelect/theme/token.js +47 -0
  316. package/lib/components/shoppingCart/Provider.d.ts +1 -1
  317. package/lib/components/shoppingCart/Provider.js +3 -1
  318. package/lib/components/shoppingCart/components/Cart/Product.js +14 -3
  319. package/lib/components/shoppingCart/components/Cart/index.less +15 -15
  320. package/lib/components/shoppingCart/components/Render/index.less +15 -0
  321. package/lib/components/shoppingCart/hooks/useAddService.js +1 -2
  322. package/lib/components/shoppingCart/index.d.ts +1 -2
  323. package/lib/components/shoppingCart/index.js +2 -0
  324. package/lib/components/shoppingCart/status.js +4 -1
  325. package/lib/components/shoppingCart/type.d.ts +5 -0
  326. package/lib/components/subTotal/index.d.ts +22 -0
  327. package/lib/components/subTotal/index.js +175 -0
  328. package/lib/components/subTotal/index.less +70 -0
  329. package/lib/components/subTotal/locales.d.ts +42 -0
  330. package/lib/components/subTotal/locales.js +65 -0
  331. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  332. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +318 -0
  333. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
  334. package/lib/components/ticketBooking/components/addServiceVariant/index.js +56 -0
  335. package/lib/components/ticketBooking/components/addServiceVariant/index.less +0 -0
  336. package/lib/components/ticketBooking/components/menuBar/index.d.ts +3 -0
  337. package/lib/components/ticketBooking/components/menuBar/index.js +87 -0
  338. package/lib/components/ticketBooking/components/menuBar/index.less +84 -0
  339. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +3 -0
  340. package/lib/components/ticketBooking/components/ticketBooking/index.js +769 -0
  341. package/lib/components/ticketBooking/components/ticketBooking/index.less +18 -0
  342. package/lib/components/ticketBooking/components/timeBar/index.d.ts +11 -0
  343. package/lib/components/ticketBooking/components/timeBar/index.js +148 -0
  344. package/lib/components/ticketBooking/components/timeBar/index.less +22 -0
  345. package/lib/components/ticketBooking/data.d.ts +58 -0
  346. package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
  347. package/lib/components/ticketBooking/hooks/useNetworkStatus.js +80 -0
  348. package/lib/components/ticketBooking/index.d.ts +3 -3
  349. package/lib/components/ticketBooking/index.js +159 -3
  350. package/lib/components/ticketBooking/index.less +4 -0
  351. package/lib/components/ticketBooking/locales.d.ts +144 -0
  352. package/lib/components/ticketBooking/locales.js +167 -0
  353. package/lib/components/ticketBooking/miniRedux.d.ts +22 -0
  354. package/lib/components/ticketBooking/miniRedux.js +96 -0
  355. package/lib/components/ticketBooking/serve.d.ts +282 -0
  356. package/lib/components/ticketBooking/serve.js +214 -0
  357. package/lib/components/ticketBooking/utils/index.d.ts +14 -0
  358. package/lib/components/ticketBooking/utils/index.js +131 -0
  359. package/lib/components/wallet/components/WalletCard.js +1 -1
  360. package/lib/index.d.ts +3 -0
  361. package/lib/index.js +9 -0
  362. package/lowcode/appointment-deposit/meta.ts +58 -0
  363. package/lowcode/product-select/meta.ts +217 -0
  364. package/lowcode/sub-total/meta.ts +134 -0
  365. package/lowcode/ticket-booking/meta.ts +29 -0
  366. package/package.json +2 -2
  367. package/es/components/booking/components/voucher/pisellGoodPassCard/index.d.ts +0 -47
  368. package/es/components/booking/components/voucher/pisellGoodPassCard/index.js +0 -115
  369. package/es/components/booking/components/voucher/pisellGoodPassCard/index.less +0 -52
  370. package/lib/components/booking/components/voucher/pisellGoodPassCard/index.d.ts +0 -47
  371. package/lib/components/booking/components/voucher/pisellGoodPassCard/index.js +0 -109
  372. package/lib/components/booking/components/voucher/pisellGoodPassCard/index.less +0 -52
@@ -0,0 +1,208 @@
1
+ .pisell-product-select-group {
2
+ .group-title {
3
+ color: var(--ps-category-text-color, #000);
4
+ font-family: Inter;
5
+ font-size: 18px;
6
+ font-style: normal;
7
+ font-weight: 600;
8
+ line-height: 24px;
9
+ }
10
+
11
+ .group-row {
12
+ .product-card {
13
+ min-width: 363px;
14
+ max-width: 737px;
15
+ box-sizing: border-box;
16
+ margin-top: 12px;
17
+ }
18
+ }
19
+
20
+ .product-card {
21
+ cursor: pointer;
22
+ border-radius: 12px;
23
+ background: var(--ps-card-bg, #fff);
24
+ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
25
+ 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
26
+ padding: 8px;
27
+ display: flex;
28
+ padding: 8px;
29
+ gap: 20px;
30
+ position: relative;
31
+ overflow: hidden;
32
+ min-height: 142px;
33
+ height: 100%;
34
+ align-items: center;
35
+
36
+ // 只在非触摸设备上启用hover效果
37
+ @media (hover: hover) {
38
+ &:hover {
39
+ background: var(--ps-card-hover-bg, #eaecf0);
40
+ }
41
+ }
42
+
43
+ &.selected {
44
+ background: var(--ps-card-selected-bg, #8157d5);
45
+
46
+ .card-right {
47
+ .title,
48
+ .price {
49
+ color: var(--ps-card-selected-text-color, '#FFFFFF');
50
+ }
51
+
52
+ .spec-item,
53
+ .original-price,
54
+ .stock {
55
+ color: var(
56
+ --ps-card-selected-secondary-text-color,
57
+ rgba(255, 255, 255, 0.7)
58
+ );
59
+ }
60
+ }
61
+ }
62
+
63
+ .marketing-tags-wrapper {
64
+ position: absolute;
65
+ top: 0;
66
+ left: 0;
67
+ pointer-events: none;
68
+ user-select: none;
69
+ z-index: 1;
70
+
71
+ .marketing-tags {
72
+ display: flex;
73
+ flex-direction: column;
74
+ row-gap: 6px;
75
+ }
76
+
77
+ .marketing-tag-item {
78
+ display: flex;
79
+ padding: 6px 10px;
80
+ justify-content: center;
81
+ align-items: center;
82
+ gap: 10px;
83
+ border-radius: 0 12px 12px 0;
84
+ background: var(--Error-100, #fee4e2);
85
+ color: var(--Error-700, #b42318);
86
+ text-align: center;
87
+ font-family: Inter;
88
+ font-size: 14px;
89
+ font-style: normal;
90
+ font-weight: 500;
91
+ line-height: 20px;
92
+
93
+ &:nth-of-type(1) {
94
+ border-radius: 0 0 12px 0;
95
+ }
96
+ }
97
+ }
98
+
99
+ .card-left {
100
+ flex-shrink: 0;
101
+
102
+ img {
103
+ border-radius: 8px;
104
+ background: url(<path-to-image>) lightgray 50% / cover no-repeat;
105
+ width: 100%;
106
+ height: 100%;
107
+ object-fit: cover;
108
+ }
109
+ }
110
+
111
+ .card-right {
112
+ display: flex;
113
+ flex-direction: column;
114
+ row-gap: 8px;
115
+ min-height: 92px;
116
+ .title {
117
+ color: var(--ps-card-text, #1B1B1B);
118
+ font-family: Inter;
119
+ font-size: 18px;
120
+ font-style: normal;
121
+ font-weight: 600;
122
+ line-height: 28px;
123
+ display: -webkit-box;
124
+ -webkit-line-clamp: 2;
125
+ -webkit-box-orient: vertical;
126
+ overflow: hidden;
127
+ text-overflow: ellipsis;
128
+ // word-break: break-word;
129
+ }
130
+ .stock,
131
+ .specs {
132
+ overflow: hidden;
133
+ color: var(--ps-color-text-secondary, #4E4E4E);
134
+ text-overflow: ellipsis;
135
+ font-family: Inter;
136
+ font-size: 14px;
137
+ font-style: normal;
138
+ font-weight: 500;
139
+ line-height: 20px;
140
+
141
+ .spec-item {
142
+ margin-top: 8px;
143
+
144
+ &:nth-of-type(1) {
145
+ margin-top: 0;
146
+ }
147
+ }
148
+ }
149
+ .tags {
150
+ display: flex;
151
+ gap: 8px;
152
+ flex-wrap: wrap;
153
+
154
+ .tag-item {
155
+ display: flex;
156
+ padding: 4px 12px;
157
+ align-items: center;
158
+ border-radius: 16px;
159
+ border: 1px solid var(--Error-200, #fecdca);
160
+ background: var(--Error-50, #fef3f2);
161
+ mix-blend-mode: multiply;
162
+ color: var(--Error-700, #b42318);
163
+ text-align: center;
164
+ font-family: Inter;
165
+ font-size: 14px;
166
+ font-style: normal;
167
+ font-weight: 500;
168
+ line-height: 20px;
169
+ }
170
+ }
171
+ .price-info {
172
+ display: flex;
173
+ align-items: center;
174
+ gap: 8px;
175
+ }
176
+ .price {
177
+ color: var(--ps-card-text, #1B1B1B);
178
+ font-family: Inter;
179
+ font-size: 18px;
180
+ font-style: normal;
181
+ font-weight: 600;
182
+ line-height: 28px;
183
+ }
184
+ .original-price {
185
+ color: var(--ps-color-text-secondary, #4E4E4E);
186
+ font-family: Inter;
187
+ font-size: 16px;
188
+ font-style: normal;
189
+ font-weight: 400;
190
+ line-height: 24px;
191
+ text-decoration-line: line-through;
192
+
193
+ > span {
194
+ vertical-align: middle;
195
+ }
196
+ }
197
+
198
+ .remark {
199
+ color: var(--Warning-600, #dc6803);
200
+ font-family: Inter;
201
+ font-size: 14px;
202
+ font-style: normal;
203
+ font-weight: 600;
204
+ line-height: 20px;
205
+ }
206
+ }
207
+ }
208
+ }
@@ -0,0 +1,18 @@
1
+ import { ProductSelectToken } from '../theme/token';
2
+ export declare function useToken(customToken?: Partial<ProductSelectToken>): {
3
+ colorPrimary: string;
4
+ colorText: string;
5
+ colorTextSecondary: string;
6
+ searchInputColor: string;
7
+ containerBg: string;
8
+ tabItemBg: string;
9
+ tabItemHoverBg: string;
10
+ tabItemActiveBg: string;
11
+ categoryTextColor: string;
12
+ cardBg: string;
13
+ cardHoverBg: string;
14
+ cardSelectedBg: string;
15
+ cardSelectedTextColor: string;
16
+ cardSelectedSecondaryTextColor: string;
17
+ };
18
+ export declare function genCSSVars(token: ProductSelectToken): Record<string, string>;
@@ -0,0 +1,35 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
6
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
7
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
12
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
+ import { useMemo } from 'react';
14
+ import { defaultToken } from "../theme/token";
15
+ export function useToken(customToken) {
16
+ return useMemo(function () {
17
+ // 预留 context 获取逻辑的位置
18
+ var contextToken = null;
19
+ return _objectSpread(_objectSpread(_objectSpread({}, defaultToken), contextToken || {}), customToken || {});
20
+ }, [customToken]);
21
+ }
22
+ export function genCSSVars(token) {
23
+ var cssVars = {};
24
+ console.log('token', token);
25
+ Object.entries(token).forEach(function (_ref) {
26
+ var _ref2 = _slicedToArray(_ref, 2),
27
+ key = _ref2[0],
28
+ value = _ref2[1];
29
+ var cssKey = "--ps-".concat(key.replace(/[A-Z]/g, function (m) {
30
+ return "-".concat(m.toLowerCase());
31
+ }));
32
+ cssVars[cssKey] = value;
33
+ });
34
+ return cssVars;
35
+ }
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { ProductCardConfig } from './components/productGroup';
3
+ import type { ProductSelectToken } from './theme/token';
4
+ import './index.less';
5
+ interface ProductSelectProps {
6
+ dataSource: any[];
7
+ theme?: 'light' | 'dark';
8
+ showSearch?: boolean;
9
+ showTab?: boolean;
10
+ layout?: {
11
+ grid: boolean;
12
+ config: string;
13
+ };
14
+ onChange: (value: any) => void;
15
+ value?: number;
16
+ loading?: boolean;
17
+ scrollDom?: string;
18
+ style?: React.CSSProperties;
19
+ emptyDescription?: string;
20
+ token?: Partial<ProductSelectToken>;
21
+ }
22
+ declare const index: ({ dataSource, theme, showSearch, scrollDom, style, token: customToken, ...rest }: ProductSelectProps & Partial<ProductCardConfig>) => JSX.Element;
23
+ export default index;
@@ -0,0 +1,93 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["dataSource", "theme", "showSearch", "scrollDom", "style", "token"];
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
11
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
14
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
16
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
17
+ import React, { useMemo, useRef, useState } from 'react';
18
+ import { Input } from '@pisell/materials';
19
+ import { locales } from '@pisell/utils';
20
+ import SearchLg from '@pisell/icon/es/SearchLg';
21
+ import { formatProductListByCategory } from "../booking/utils";
22
+ import TabProduct from "./components/TabProduct";
23
+ import localeTexts from "./locales";
24
+ import useEngineContext from "../../hooks/useEngineContext";
25
+ import { useToken, genCSSVars } from "./hooks/useToken";
26
+ import "./index.less";
27
+ var index = function index(_ref) {
28
+ var _context$appHelper$ut;
29
+ var _ref$dataSource = _ref.dataSource,
30
+ dataSource = _ref$dataSource === void 0 ? [] : _ref$dataSource,
31
+ _ref$theme = _ref.theme,
32
+ theme = _ref$theme === void 0 ? 'light' : _ref$theme,
33
+ _ref$showSearch = _ref.showSearch,
34
+ showSearch = _ref$showSearch === void 0 ? true : _ref$showSearch,
35
+ scrollDom = _ref.scrollDom,
36
+ _ref$style = _ref.style,
37
+ style = _ref$style === void 0 ? {} : _ref$style,
38
+ customToken = _ref.token,
39
+ rest = _objectWithoutProperties(_ref, _excluded);
40
+ var searchRef = useRef(null);
41
+ var _useState = useState(''),
42
+ _useState2 = _slicedToArray(_useState, 2),
43
+ keyword = _useState2[0],
44
+ setKeyword = _useState2[1];
45
+ var context = useEngineContext();
46
+ locales.init(localeTexts, ((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut = _context$appHelper$ut.storage) === null || _context$appHelper$ut === void 0 ? void 0 : _context$appHelper$ut.get('umi_locale')) || 'en');
47
+ var _dataSource = useMemo(function () {
48
+ var _list = dataSource || [];
49
+ var isIncludes = function isIncludes(str) {
50
+ return str.toLowerCase().indexOf(keyword.toLowerCase()) !== -1;
51
+ };
52
+ return formatProductListByCategory(_list, keyword ? function (item) {
53
+ return isIncludes(item.title);
54
+ } : undefined);
55
+ }, [keyword, dataSource]);
56
+ var token = useToken(customToken);
57
+ var cssVars = useMemo(function () {
58
+ return genCSSVars(token);
59
+ }, [token]);
60
+ var mergedStyle = useMemo(function () {
61
+ var baseStyle = _objectSpread(_objectSpread({}, cssVars), style);
62
+ if (!scrollDom) return baseStyle;
63
+ if (scrollDom !== '.pisell-product-select-wrapper') {
64
+ return _objectSpread(_objectSpread({}, baseStyle), {}, {
65
+ overflow: 'unset',
66
+ height: 'unset'
67
+ });
68
+ }
69
+ return baseStyle;
70
+ }, [cssVars, style, scrollDom]);
71
+ return /*#__PURE__*/React.createElement("div", {
72
+ className: "pisell-product-select-wrapper",
73
+ style: mergedStyle
74
+ }, showSearch ? /*#__PURE__*/React.createElement("div", {
75
+ className: "pisell-product-select-search-wrapper"
76
+ }, /*#__PURE__*/React.createElement(Input, {
77
+ ref: searchRef,
78
+ prefix: /*#__PURE__*/React.createElement(SearchLg, null),
79
+ style: {
80
+ height: 44
81
+ },
82
+ placeholder: locales.getText('pisell2.product-select.search'),
83
+ allowClear: true,
84
+ value: keyword,
85
+ onChange: function onChange(e) {
86
+ setKeyword(e.target.value);
87
+ }
88
+ })) : null, /*#__PURE__*/React.createElement(TabProduct, _extends({
89
+ list: _dataSource,
90
+ scrollDom: scrollDom || '.pisell-product-select-wrapper'
91
+ }, rest)));
92
+ };
93
+ export default index;
@@ -0,0 +1,69 @@
1
+ .pisell-product-select-wrapper {
2
+ height: 100%;
3
+ background: var(--ps-container-bg, #ffffff);
4
+ overflow-y: auto;
5
+
6
+ &::-webkit-scrollbar {
7
+ display: none !important;
8
+ }
9
+
10
+ .pisell-product-select-search-wrapper {
11
+ padding: 12px 12px 0px;
12
+ margin-top: 12px;
13
+
14
+ .pisell-lowcode-input-affix-wrapper {
15
+ &:hover,
16
+ &:focus,
17
+ &:focus-within {
18
+ border-color: var(--ps-color-primary, #8157d5) !important;
19
+ box-shadow: none !important;
20
+ }
21
+ }
22
+
23
+ > span {
24
+ background: var(--ps-container-bg, #ffffff);
25
+ color: var(--ps-search-input-color, #98a2b3);
26
+ }
27
+
28
+ input {
29
+ background: transparent;
30
+ color: var(--ps-search-input-color, #98a2b3);
31
+ }
32
+ }
33
+
34
+ .pisell-product-select-tabs-wrapper {
35
+ padding: 16px 0px;
36
+ position: sticky;
37
+ z-index: 58;
38
+ width: 100%;
39
+ top: 0;
40
+ background: var(--ps-container-bg, #ffffff);
41
+
42
+ .booking-pisell-tabs-btn-left,
43
+ .booking-pisell-tabs-btn-right {
44
+ background: transparent;
45
+ }
46
+
47
+ .booking-pisell-tabs .booking-pisell-tabs-content {
48
+ gap: 8px;
49
+ }
50
+
51
+ .booking-pisell-tabs-tab {
52
+ .booking-pisell-tabs-tab-content {
53
+ background: var(--ps-tab-item-bg, #FFFFFF) !important;
54
+ font-weight: 400;
55
+ }
56
+ }
57
+
58
+ .booking-pisell-tabs-tab-active {
59
+ .booking-pisell-tabs-tab-content {
60
+ background: var(--ps-tab-item-active-bg, #8157d5) !important;
61
+ font-weight: 600;
62
+ }
63
+ }
64
+ }
65
+
66
+ .pisell-product-select-product-list {
67
+ padding: 0px 12px;
68
+ }
69
+ }
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.product-select.search': string;
4
+ 'pisell2.product-select.stock': string;
5
+ 'pisell2.product-select.empty': string;
6
+ };
7
+ 'zh-CN': {
8
+ 'pisell2.product-select.search': string;
9
+ 'pisell2.product-select.stock': string;
10
+ 'pisell2.product-select.empty': string;
11
+ };
12
+ 'zh-HK': {
13
+ 'pisell2.product-select.search': string;
14
+ 'pisell2.product-select.stock': string;
15
+ 'pisell2.product-select.empty': string;
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,17 @@
1
+ export default {
2
+ en: {
3
+ 'pisell2.product-select.search': 'Search',
4
+ 'pisell2.product-select.stock': 'Stock',
5
+ 'pisell2.product-select.empty': 'No Data'
6
+ },
7
+ 'zh-CN': {
8
+ 'pisell2.product-select.search': '搜索',
9
+ 'pisell2.product-select.stock': '库存',
10
+ 'pisell2.product-select.empty': '暂无数据'
11
+ },
12
+ 'zh-HK': {
13
+ 'pisell2.product-select.search': '搜索',
14
+ 'pisell2.product-select.stock': '庫存',
15
+ 'pisell2.product-select.empty': '暂无数据'
16
+ }
17
+ };
@@ -0,0 +1,134 @@
1
+ declare const products: {
2
+ id: number;
3
+ extension_id: number;
4
+ extension_type: string;
5
+ shop_id: number;
6
+ title: string;
7
+ slug: string;
8
+ status: string;
9
+ stock_quantity: number;
10
+ sales_quantity: number;
11
+ sum_stock: number;
12
+ price: string;
13
+ original_price: string;
14
+ cost_price: string;
15
+ cover: string;
16
+ channel_application: string[];
17
+ is_track: number;
18
+ over_sold: number;
19
+ is_gst: number;
20
+ code: string;
21
+ barcode: string;
22
+ is_delivery: number;
23
+ weight_unit: string;
24
+ weight_value: string;
25
+ type: string;
26
+ unit: string;
27
+ sort: number;
28
+ bundle_group_count: number;
29
+ option_group_count: number;
30
+ is_variant: number;
31
+ variant_count: number;
32
+ cut_off_time: {
33
+ unit: number;
34
+ unit_type: string;
35
+ future_day: number;
36
+ type: string;
37
+ ongoing: {
38
+ type: string;
39
+ unit: number;
40
+ };
41
+ };
42
+ policy: number;
43
+ machine_code: {
44
+ make_over: number;
45
+ beforehand: number;
46
+ limit_count: number;
47
+ customer: number;
48
+ send_action: string;
49
+ hide_recharge: number;
50
+ distributor_automatic: number;
51
+ };
52
+ duration: {
53
+ type: string;
54
+ value: number;
55
+ };
56
+ product_resource: {
57
+ resources: ({
58
+ id: number;
59
+ title: string;
60
+ status: number;
61
+ code: string;
62
+ created_at: string;
63
+ updated_at: string;
64
+ type: string;
65
+ optional_resource: number[];
66
+ default_resource: never[];
67
+ select_type: {
68
+ type: string;
69
+ min: number;
70
+ max: number;
71
+ };
72
+ resource_type_id: number;
73
+ } | {
74
+ id: number;
75
+ title: string;
76
+ status: number;
77
+ code: string;
78
+ created_at: string;
79
+ updated_at: null;
80
+ type: string;
81
+ optional_resource: never[];
82
+ default_resource: never[];
83
+ select_type: {
84
+ type: string;
85
+ min: number;
86
+ max: number;
87
+ };
88
+ resource_type_id: number;
89
+ })[];
90
+ };
91
+ capacity: {
92
+ type: string;
93
+ custom: {
94
+ name: {
95
+ en: string;
96
+ "zh-CN": string;
97
+ "zh-HK": string;
98
+ original: string;
99
+ };
100
+ min: number;
101
+ max: number;
102
+ id: string;
103
+ }[];
104
+ package: never[];
105
+ };
106
+ product_display_setting: {
107
+ kiosk: {
108
+ use_display_mode: number;
109
+ product_option_mode: null;
110
+ product_option_mode_paging: null;
111
+ product_bundle_mode: null;
112
+ product_bundle_mode_paging: null;
113
+ };
114
+ };
115
+ shelf_product_datas: never[];
116
+ step_value: number;
117
+ min_num_unit: number;
118
+ is_charge_tax: number;
119
+ base_price: string;
120
+ variant: never[];
121
+ category: {
122
+ id: number;
123
+ name: string;
124
+ icon: string;
125
+ slug: string;
126
+ sort: number;
127
+ }[];
128
+ collection: {
129
+ id: number;
130
+ title: string;
131
+ cover: string;
132
+ }[];
133
+ }[];
134
+ export default products;