@pisell/private-materials 6.5.26 → 6.6.1

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 (336) 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 +2 -2
  6. package/build/lowcode/preview.js +146 -165
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  12. package/es/components/appointmentBooking/components/Cart/Item/index.js +4 -2
  13. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +273 -76
  14. package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  15. package/es/components/appointmentBooking/hooks.d.ts +1 -0
  16. package/es/components/appointmentBooking/hooks.js +30 -30
  17. package/es/components/appointmentBooking/locales.d.ts +3 -0
  18. package/es/components/appointmentBooking/locales.js +9 -6
  19. package/es/components/booking/components/actionButtons/index.js +34 -20
  20. package/es/components/booking/components/customSelect/index.js +1 -1
  21. package/es/components/booking/components/footer/amount.js +25 -8
  22. package/es/components/booking/components/footer/index.js +66 -33
  23. package/es/components/booking/components/footer/utils.d.ts +7 -0
  24. package/es/components/booking/components/footer/utils.js +126 -99
  25. package/es/components/booking/components/voucher/index.js +25 -9
  26. package/es/components/booking/dashboard/serve.js +1 -6
  27. package/es/components/booking/forms/footer.js +24 -10
  28. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  29. package/es/components/booking/forms/serve.js +2 -12
  30. package/es/components/booking/hooks/useQuotation.js +69 -21
  31. package/es/components/booking/info/client/index.js +28 -13
  32. package/es/components/booking/info/client/serve.js +2 -11
  33. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +16 -10
  34. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +10 -2
  35. package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
  36. package/es/components/booking/info/hooks/useHolderConfig.d.ts +1 -0
  37. package/es/components/booking/info/hooks/useHolderConfig.js +9 -2
  38. package/es/components/booking/info/main.js +3 -2
  39. package/es/components/booking/info/model.js +5 -0
  40. package/es/components/booking/info/pet/serve.js +1 -6
  41. package/es/components/booking/info/service/Lists.d.ts +1 -1
  42. package/es/components/booking/info/service/Lists.js +10 -4
  43. package/es/components/booking/info/service/addTimeModal/serve.js +1 -11
  44. package/es/components/booking/info/service/serve.d.ts +14 -0
  45. package/es/components/booking/info/service/serve.js +25 -18
  46. package/es/components/booking/info/service2/Group/utils.js +2 -0
  47. package/es/components/booking/info/service2/utils.d.ts +1 -33
  48. package/es/components/booking/info/service2/utils.js +92 -56
  49. package/es/components/booking/info/utils.js +5 -0
  50. package/es/components/booking/info2/cartClientCard/index.js +49 -9
  51. package/es/components/booking/info2/index.js +3 -2
  52. package/es/components/booking/info2/serve.js +1 -6
  53. package/es/components/booking/info2/service/addService/index.js +146 -89
  54. package/es/components/booking/info2/service/addService/utils.d.ts +8 -0
  55. package/es/components/booking/info2/service/addService/utils.js +83 -14
  56. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  57. package/es/components/booking/info2/service/contactInfoMode/index.js +94 -0
  58. package/es/components/booking/info2/service/editService/Holder/index.d.ts +12 -0
  59. package/es/components/booking/info2/service/editService/Holder/index.js +193 -0
  60. package/es/components/booking/info2/service/editService/Holder/index.less +63 -0
  61. package/es/components/booking/info2/service/editService/index.js +313 -57
  62. package/es/components/booking/info2/utilsByBooking.js +19 -14
  63. package/es/components/booking/locales.d.ts +36 -0
  64. package/es/components/booking/locales.js +48 -3
  65. package/es/components/booking/model.d.ts +4 -0
  66. package/es/components/booking/model.js +3 -0
  67. package/es/components/booking/utils/confirmHolderModal.d.ts +13 -0
  68. package/es/components/booking/utils/confirmHolderModal.js +318 -0
  69. package/es/components/booking/utils/confirmHolderModal.less +40 -0
  70. package/es/components/booking/utils/selectHolderModal.d.ts +24 -0
  71. package/es/components/booking/utils/selectHolderModal.js +407 -0
  72. package/es/components/booking/utils.d.ts +16 -7
  73. package/es/components/booking/utils.js +26 -37
  74. package/es/components/checkout/PaymentModal.js +61 -30
  75. package/es/components/checkout/components/CashPaymentModule/index.js +1 -7
  76. package/es/components/checkout/components/ScrollableList/index.js +0 -1
  77. package/es/components/checkout/locales.d.ts +3 -0
  78. package/es/components/checkout/locales.js +3 -0
  79. package/es/components/eftposPay/linkly/index.js +64 -2
  80. package/es/components/eftposPay/tyro/index.js +12 -0
  81. package/es/components/list/List.js +3 -0
  82. package/es/components/pay/toB/components/MX51/index.js +14 -44
  83. package/es/components/pay/toB/types/index.d.ts +0 -12
  84. package/es/components/pay/toB/types/index.js +0 -4
  85. package/es/components/shoppingCart/components/Cart/Product.js +6 -3
  86. package/es/components/shoppingCart/type.d.ts +1 -0
  87. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -12
  88. package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +18 -0
  89. package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +119 -0
  90. package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less +0 -0
  91. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -2
  92. package/es/components/ticketBooking/components/addServiceVariant/addService.js +419 -794
  93. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
  94. package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -4
  95. package/es/components/ticketBooking/components/addServiceVariant/utils.js +1 -2
  96. package/es/components/ticketBooking/components/menuBar/index.js +109 -12
  97. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +2 -4
  98. package/es/components/ticketBooking/components/ticketBooking/index.js +32 -61
  99. package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
  100. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  101. package/es/components/ticketBooking/components/timeBar/index.js +1 -4
  102. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -4
  103. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +122 -170
  104. package/es/components/ticketBooking/index.d.ts +0 -1
  105. package/es/components/ticketBooking/index.js +0 -2
  106. package/es/components/ticketBooking/serve.js +17 -119
  107. package/es/components/ticketBooking/utils/index.d.ts +7 -1
  108. package/es/components/ticketBooking/utils/index.js +44 -28
  109. package/es/hooks/useEngineContext.d.ts +0 -1
  110. package/es/hooks/useEngineContext.js +0 -7
  111. package/es/index.d.ts +4 -0
  112. package/es/index.js +5 -1
  113. package/es/plus/clientCard/locales.js +3 -3
  114. package/es/plus/clinetSearch/index.js +28 -30
  115. package/es/plus/clinetSearch/locales.d.ts +3 -0
  116. package/es/plus/clinetSearch/locales.js +7 -4
  117. package/es/plus/clinetSearch/types.d.ts +12 -0
  118. package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  119. package/es/plus/contactInfo/components/Avatar/index.js +30 -0
  120. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  121. package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
  122. package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
  123. package/es/plus/contactInfo/index.d.ts +6 -0
  124. package/es/plus/contactInfo/index.js +198 -0
  125. package/es/plus/contactInfo/index.less +621 -0
  126. package/es/plus/contactInfo/locales.d.ts +15 -0
  127. package/es/plus/contactInfo/locales.js +14 -0
  128. package/es/plus/contactInfo/types.d.ts +91 -0
  129. package/es/plus/contactInfo/types.js +1 -0
  130. package/es/plus/contactInfo/utils.d.ts +7 -0
  131. package/es/plus/contactInfo/utils.js +50 -0
  132. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  133. package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
  134. package/es/plus/contactInfoModal/index.d.ts +41 -0
  135. package/es/plus/contactInfoModal/index.js +155 -0
  136. package/es/plus/contactInfoModal/index.less +19 -0
  137. package/es/plus/contactInfoModal/locales.d.ts +66 -0
  138. package/es/plus/contactInfoModal/locales.js +65 -0
  139. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +1 -1
  140. package/es/plus/productSelect/ProductCard/index.js +1 -1
  141. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
  142. package/es/plus/selectHolder/components/ErrorTip/index.js +14 -0
  143. package/es/plus/selectHolder/components/ErrorTip/index.less +51 -0
  144. package/es/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
  145. package/es/plus/selectHolder/components/HolderItem/index.js +77 -0
  146. package/es/plus/selectHolder/components/HolderItem/index.less +105 -0
  147. package/es/plus/selectHolder/components/HolderList/index.d.ts +30 -0
  148. package/es/plus/selectHolder/components/HolderList/index.js +43 -0
  149. package/es/plus/selectHolder/index.d.ts +7 -0
  150. package/es/plus/selectHolder/index.js +273 -0
  151. package/es/plus/selectHolder/index.less +137 -0
  152. package/es/plus/selectHolder/locales.d.ts +24 -0
  153. package/es/plus/selectHolder/locales.js +29 -0
  154. package/es/plus/selectHolder/types.d.ts +104 -0
  155. package/es/plus/selectHolder/types.js +1 -0
  156. package/es/plus/selectHolder/utils.d.ts +9 -0
  157. package/es/plus/selectHolder/utils.js +16 -0
  158. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  159. package/es/pro/comprehensiveSearch/locales.js +1 -1
  160. package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +9 -0
  161. package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.js +357 -0
  162. package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.less +8 -0
  163. package/es/pro/multiDayTimeSelect/index.d.ts +3 -0
  164. package/es/pro/multiDayTimeSelect/index.js +1 -0
  165. package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
  166. package/es/pro/multiDayTimeSelect/types.js +1 -0
  167. package/es/pro/skuDetailModal/types.d.ts +1 -0
  168. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  169. package/lib/components/appointmentBooking/components/Cart/Item/index.js +6 -3
  170. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +156 -13
  171. package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  172. package/lib/components/appointmentBooking/hooks.d.ts +1 -0
  173. package/lib/components/appointmentBooking/hooks.js +73 -35
  174. package/lib/components/appointmentBooking/locales.d.ts +3 -0
  175. package/lib/components/appointmentBooking/locales.js +6 -3
  176. package/lib/components/booking/components/actionButtons/index.js +11 -2
  177. package/lib/components/booking/components/customSelect/index.js +1 -1
  178. package/lib/components/booking/components/footer/amount.js +23 -6
  179. package/lib/components/booking/components/footer/index.js +26 -5
  180. package/lib/components/booking/components/footer/utils.d.ts +7 -0
  181. package/lib/components/booking/components/footer/utils.js +120 -82
  182. package/lib/components/booking/components/voucher/index.js +10 -1
  183. package/lib/components/booking/dashboard/serve.js +1 -6
  184. package/lib/components/booking/forms/footer.js +29 -11
  185. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  186. package/lib/components/booking/forms/serve.js +2 -12
  187. package/lib/components/booking/hooks/useQuotation.js +45 -13
  188. package/lib/components/booking/info/client/index.js +14 -1
  189. package/lib/components/booking/info/client/serve.js +2 -13
  190. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +7 -2
  191. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +11 -4
  192. package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
  193. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +1 -0
  194. package/lib/components/booking/info/hooks/useHolderConfig.js +8 -3
  195. package/lib/components/booking/info/main.js +5 -4
  196. package/lib/components/booking/info/model.js +5 -0
  197. package/lib/components/booking/info/pet/serve.js +1 -6
  198. package/lib/components/booking/info/service/Lists.d.ts +1 -1
  199. package/lib/components/booking/info/service/Lists.js +5 -3
  200. package/lib/components/booking/info/service/addTimeModal/serve.js +1 -7
  201. package/lib/components/booking/info/service/serve.d.ts +14 -0
  202. package/lib/components/booking/info/service/serve.js +8 -17
  203. package/lib/components/booking/info/service2/Group/utils.js +2 -0
  204. package/lib/components/booking/info/service2/utils.d.ts +1 -33
  205. package/lib/components/booking/info/service2/utils.js +38 -29
  206. package/lib/components/booking/info/utils.js +4 -0
  207. package/lib/components/booking/info2/cartClientCard/index.js +34 -5
  208. package/lib/components/booking/info2/index.js +11 -5
  209. package/lib/components/booking/info2/serve.js +1 -6
  210. package/lib/components/booking/info2/service/addService/index.js +22 -3
  211. package/lib/components/booking/info2/service/addService/utils.d.ts +8 -0
  212. package/lib/components/booking/info2/service/addService/utils.js +48 -11
  213. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  214. package/lib/components/booking/info2/service/contactInfoMode/index.js +111 -0
  215. package/lib/components/booking/info2/service/editService/Holder/index.d.ts +12 -0
  216. package/lib/components/booking/info2/service/editService/Holder/index.js +199 -0
  217. package/lib/components/booking/info2/service/editService/Holder/index.less +63 -0
  218. package/lib/components/booking/info2/service/editService/index.js +254 -32
  219. package/lib/components/booking/info2/utilsByBooking.js +26 -19
  220. package/lib/components/booking/locales.d.ts +36 -0
  221. package/lib/components/booking/locales.js +42 -3
  222. package/lib/components/booking/model.d.ts +4 -0
  223. package/lib/components/booking/model.js +3 -0
  224. package/lib/components/booking/utils/confirmHolderModal.d.ts +13 -0
  225. package/lib/components/booking/utils/confirmHolderModal.js +253 -0
  226. package/lib/components/booking/utils/confirmHolderModal.less +40 -0
  227. package/lib/components/booking/utils/selectHolderModal.d.ts +24 -0
  228. package/lib/components/booking/utils/selectHolderModal.js +319 -0
  229. package/lib/components/booking/utils.d.ts +16 -7
  230. package/lib/components/booking/utils.js +18 -21
  231. package/lib/components/checkout/PaymentModal.js +41 -18
  232. package/lib/components/checkout/components/CashPaymentModule/index.js +1 -7
  233. package/lib/components/checkout/components/ScrollableList/index.js +0 -1
  234. package/lib/components/checkout/locales.d.ts +3 -0
  235. package/lib/components/checkout/locales.js +3 -0
  236. package/lib/components/eftposPay/linkly/index.js +31 -1
  237. package/lib/components/eftposPay/tyro/index.js +12 -0
  238. package/lib/components/list/List.js +3 -0
  239. package/lib/components/pay/toB/components/MX51/index.js +12 -37
  240. package/lib/components/pay/toB/types/index.d.ts +0 -12
  241. package/lib/components/shoppingCart/components/Cart/Product.js +7 -3
  242. package/lib/components/shoppingCart/type.d.ts +1 -0
  243. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -12
  244. package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +18 -0
  245. package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +118 -0
  246. package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less +0 -0
  247. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -2
  248. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +279 -313
  249. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
  250. package/lib/components/ticketBooking/components/addServiceVariant/index.js +5 -3
  251. package/lib/components/ticketBooking/components/addServiceVariant/utils.js +1 -2
  252. package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
  253. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +2 -4
  254. package/lib/components/ticketBooking/components/ticketBooking/index.js +12 -49
  255. package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
  256. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  257. package/lib/components/ticketBooking/components/timeBar/index.js +1 -3
  258. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -4
  259. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +69 -98
  260. package/lib/components/ticketBooking/index.d.ts +0 -1
  261. package/lib/components/ticketBooking/index.js +0 -2
  262. package/lib/components/ticketBooking/serve.js +15 -117
  263. package/lib/components/ticketBooking/utils/index.d.ts +7 -1
  264. package/lib/components/ticketBooking/utils/index.js +29 -23
  265. package/lib/hooks/useEngineContext.d.ts +0 -1
  266. package/lib/hooks/useEngineContext.js +2 -10
  267. package/lib/index.d.ts +4 -0
  268. package/lib/index.js +12 -0
  269. package/lib/plus/clientCard/locales.js +3 -3
  270. package/lib/plus/clinetSearch/index.js +17 -8
  271. package/lib/plus/clinetSearch/locales.d.ts +3 -0
  272. package/lib/plus/clinetSearch/locales.js +7 -4
  273. package/lib/plus/clinetSearch/types.d.ts +12 -0
  274. package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  275. package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
  276. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  277. package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
  278. package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
  279. package/lib/plus/contactInfo/index.d.ts +6 -0
  280. package/lib/plus/contactInfo/index.js +226 -0
  281. package/lib/plus/contactInfo/index.less +621 -0
  282. package/lib/plus/contactInfo/locales.d.ts +15 -0
  283. package/lib/plus/contactInfo/locales.js +38 -0
  284. package/lib/plus/contactInfo/types.d.ts +91 -0
  285. package/lib/plus/contactInfo/types.js +17 -0
  286. package/lib/plus/contactInfo/utils.d.ts +7 -0
  287. package/lib/plus/contactInfo/utils.js +64 -0
  288. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  289. package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
  290. package/lib/plus/contactInfoModal/index.d.ts +41 -0
  291. package/lib/plus/contactInfoModal/index.js +139 -0
  292. package/lib/plus/contactInfoModal/index.less +19 -0
  293. package/lib/plus/contactInfoModal/locales.d.ts +66 -0
  294. package/lib/plus/contactInfoModal/locales.js +89 -0
  295. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +1 -1
  296. package/lib/plus/productSelect/ProductCard/index.js +1 -1
  297. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
  298. package/lib/plus/selectHolder/components/ErrorTip/index.js +30 -0
  299. package/lib/plus/selectHolder/components/ErrorTip/index.less +51 -0
  300. package/lib/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
  301. package/lib/plus/selectHolder/components/HolderItem/index.js +101 -0
  302. package/lib/plus/selectHolder/components/HolderItem/index.less +105 -0
  303. package/lib/plus/selectHolder/components/HolderList/index.d.ts +30 -0
  304. package/lib/plus/selectHolder/components/HolderList/index.js +63 -0
  305. package/lib/plus/selectHolder/index.d.ts +7 -0
  306. package/lib/plus/selectHolder/index.js +223 -0
  307. package/lib/plus/selectHolder/index.less +137 -0
  308. package/lib/plus/selectHolder/locales.d.ts +24 -0
  309. package/lib/plus/selectHolder/locales.js +47 -0
  310. package/lib/plus/selectHolder/types.d.ts +104 -0
  311. package/lib/plus/selectHolder/types.js +17 -0
  312. package/lib/plus/selectHolder/utils.d.ts +9 -0
  313. package/lib/plus/selectHolder/utils.js +34 -0
  314. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  315. package/lib/pro/comprehensiveSearch/locales.js +1 -1
  316. package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +9 -0
  317. package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.js +304 -0
  318. package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.less +8 -0
  319. package/lib/pro/multiDayTimeSelect/index.d.ts +3 -0
  320. package/lib/{hooks/printer.js → pro/multiDayTimeSelect/index.js} +6 -31
  321. package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
  322. package/lib/pro/multiDayTimeSelect/types.js +17 -0
  323. package/lib/pro/skuDetailModal/types.d.ts +1 -0
  324. package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
  325. package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
  326. package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
  327. package/lowcode/contact-info/fragments/textStyle.ts +33 -0
  328. package/lowcode/contact-info/meta.ts +199 -0
  329. package/lowcode/contact-info-modal/meta.ts +98 -0
  330. package/lowcode/event-select-holder/meta.ts +2 -2
  331. package/lowcode/select-holder/meta.ts +220 -0
  332. package/lowcode/select-holder/snippets.ts +41 -0
  333. package/package.json +13 -11
  334. package/es/hooks/printer.d.ts +0 -4
  335. package/es/hooks/printer.js +0 -35
  336. package/lib/hooks/printer.d.ts +0 -4
@@ -0,0 +1,199 @@
1
+ import pisellAvatarProps from './fragments/pisellAvatar';
2
+ import cardStyleProps from './fragments/cardStyle';
3
+ import nameStyleProps from './fragments/nameStyle';
4
+ import textStyleProps from './fragments/textStyle';
5
+ import { AntdIconSetter } from '@pisell/materials/lowcode/_setters';
6
+
7
+ const ContactInfoMeta = {
8
+ componentName: 'ContactInfo',
9
+ title: '联系信息',
10
+ docUrl: '',
11
+ screenshot: '',
12
+ devMode: 'proCode',
13
+ npm: {
14
+ package: '@pisell/private-materials',
15
+ version: '1.0.0',
16
+ exportName: 'ContactInfo',
17
+ main: 'src/index.ts',
18
+ destructuring: true,
19
+ subName: '',
20
+ },
21
+ configure: {
22
+ props: [
23
+ {
24
+ title: {
25
+ label: {
26
+ type: 'i18n',
27
+ 'en-US': 'dataSource',
28
+ 'zh-CN': '数据源',
29
+ },
30
+ },
31
+ name: 'dataSource',
32
+ setter: {
33
+ componentName: 'JsonSetter',
34
+ },
35
+ },
36
+ {
37
+ title: {
38
+ label: {
39
+ type: 'i18n',
40
+ 'en-US': 'placeholder',
41
+ 'zh-CN': '占位提示',
42
+ },
43
+ },
44
+ name: 'placeholder',
45
+ setter: 'PisellI18nSetter',
46
+ },
47
+ {
48
+ title: '是否开启删除',
49
+ name: 'isShowDelete',
50
+ setter: 'BoolSetter',
51
+ defaultValue: false,
52
+ },
53
+ {
54
+ title: '展示方向',
55
+ name: 'direction',
56
+ setter: {
57
+ componentName: 'RadioGroupSetter',
58
+ props: {
59
+ options: [
60
+ {
61
+ label: '水平',
62
+ value: 'horizontal',
63
+ },
64
+ {
65
+ label: '垂直',
66
+ value: 'vertical',
67
+ },
68
+ ],
69
+ },
70
+ initialValue: 'horizontal',
71
+ },
72
+ },
73
+ {
74
+ title: '卡片样式',
75
+ type: 'group',
76
+ extraProps: {
77
+ display: 'accordion',
78
+ defaultCollapsed: true,
79
+ },
80
+ items: cardStyleProps,
81
+ },
82
+ {
83
+ title: '头像',
84
+ type: 'group',
85
+ display: 'block',
86
+ items: [
87
+ {
88
+ title: '显示头像',
89
+ name: 'isShowAvatar',
90
+ setter: 'BoolSetter',
91
+ defaultValue: true,
92
+ },
93
+ {
94
+ type: 'group',
95
+ condition: (target: any) =>
96
+ target.getProps().getPropValue('isShowAvatar'),
97
+ items: [...pisellAvatarProps],
98
+ },
99
+ ],
100
+ },
101
+ {
102
+ title: '姓名',
103
+ type: 'group',
104
+ display: 'block',
105
+ items: [
106
+ {
107
+ title: '姓名默认文案',
108
+ name: 'defaultName',
109
+ setter: 'StringSetter',
110
+ },
111
+ ...nameStyleProps,
112
+ ],
113
+ },
114
+ {
115
+ title: '文本样式',
116
+ type: 'group',
117
+ display: 'block',
118
+ items: [...textStyleProps],
119
+ },
120
+ {
121
+ title: '操作按钮',
122
+ type: 'group',
123
+ display: 'block',
124
+ items: [
125
+ {
126
+ name: 'button.addButtonIcon',
127
+ title: {
128
+ label: '添加按钮的图标',
129
+ tip: 'icon | 设置添加的自定义图标',
130
+ },
131
+ setter: AntdIconSetter,
132
+ },
133
+ {
134
+ name: 'button.editButtonIcon',
135
+ title: {
136
+ label: '修改按钮的图标',
137
+ tip: 'icon | 设置修改的自定义图标',
138
+ },
139
+ setter: AntdIconSetter,
140
+ },
141
+ ],
142
+ },
143
+ {
144
+ type: 'group',
145
+ display: 'block',
146
+ title: '字段展示',
147
+ items: [
148
+ {
149
+ title: '显示电话号',
150
+ name: 'isShowPhone',
151
+ setter: 'BoolSetter',
152
+ defaultValue: true,
153
+ },
154
+ {
155
+ title: '显示邮箱',
156
+ name: 'isShowEmail',
157
+ setter: 'BoolSetter',
158
+ defaultValue: true,
159
+ },
160
+ ],
161
+ },
162
+ ],
163
+ supports: {
164
+ events: [
165
+ {
166
+ name: 'onSave',
167
+ description: '保存联系信息点击事件',
168
+ },
169
+ {
170
+ name: 'onDelete',
171
+ description: '删除联系信息点击事件',
172
+ },
173
+ {
174
+ name: 'onCancel',
175
+ description: '取消点击事件',
176
+ },
177
+ ],
178
+ style: true,
179
+ },
180
+ },
181
+ };
182
+
183
+ const snippets = [
184
+ {
185
+ title: '联系信息',
186
+ screenshot: '',
187
+ schema: {
188
+ componentName: 'ContactInfo',
189
+ props: {
190
+ direction: 'horizontal',
191
+ },
192
+ },
193
+ },
194
+ ];
195
+
196
+ export default {
197
+ ...ContactInfoMeta,
198
+ snippets,
199
+ };
@@ -0,0 +1,98 @@
1
+ import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
2
+
3
+ const ContactInfoModalMeta: ComponentMetadata = {
4
+ componentName: 'ContactInfoModal',
5
+ title: '联系信息弹窗',
6
+ docUrl: '',
7
+ screenshot: '',
8
+ devMode: 'proCode',
9
+ npm: {
10
+ package: '@pisell/private-materials',
11
+ version: '1.0.0',
12
+ exportName: 'ContactInfoModal',
13
+ main: 'src/index.ts',
14
+ destructuring: true,
15
+ subName: '',
16
+ },
17
+ configure: {
18
+ props: [
19
+ {
20
+ title: {
21
+ label: {
22
+ type: 'i18n',
23
+ 'en-US': 'open',
24
+ 'zh-CN': '打开',
25
+ },
26
+ },
27
+ name: 'open',
28
+ setter: ['BoolSetter', 'VariableSetter'],
29
+ },
30
+ {
31
+ title: {
32
+ label: {
33
+ type: 'i18n',
34
+ 'en-US': 'dataSource',
35
+ 'zh-CN': '数据源',
36
+ },
37
+ },
38
+ name: 'dataSource',
39
+ setter: ['JsonSetter', 'VariableSetter'],
40
+ },
41
+ {
42
+ title: {
43
+ label: {
44
+ type: 'i18n',
45
+ 'en-US': 'isShowDelete',
46
+ 'zh-CN': '是否展示删除按钮',
47
+ },
48
+ },
49
+ name: 'isShowDelete',
50
+ setter: ['BoolSetter', 'VariableSetter'],
51
+ },
52
+ {
53
+ title: {
54
+ label: {
55
+ type: 'i18n',
56
+ 'en-US': 'config',
57
+ 'zh-CN': '配置项',
58
+ },
59
+ },
60
+ name: 'config',
61
+ setter: ['JsonSetter', 'VariableSetter'],
62
+ },
63
+ ],
64
+ supports: {
65
+ events: [
66
+ {
67
+ name: 'onSave',
68
+ description: '保存联系信息点击事件',
69
+ },
70
+ {
71
+ name: 'onDelete',
72
+ description: '删除联系信息点击事件',
73
+ },
74
+ {
75
+ name: 'onCancel',
76
+ description: '取消点击事件',
77
+ },
78
+ ],
79
+ style: true,
80
+ },
81
+ component: {},
82
+ },
83
+ };
84
+ const snippets: Snippet[] = [
85
+ {
86
+ title: 'ContactInfoModal',
87
+ screenshot: '',
88
+ schema: {
89
+ componentName: 'ContactInfoModal',
90
+ props: {},
91
+ },
92
+ },
93
+ ];
94
+
95
+ export default {
96
+ ...ContactInfoModalMeta,
97
+ snippets,
98
+ };
@@ -2,7 +2,7 @@ import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode
2
2
 
3
3
  const EventSelectHolderMeta: IPublicTypeComponentMetadata = {
4
4
  componentName: 'EventSelectHolder',
5
- title: '选择持有人',
5
+ title: 'Event选择持有人',
6
6
  category: '数据展示',
7
7
  docUrl: '',
8
8
  screenshot: '',
@@ -65,7 +65,7 @@ const EventSelectHolderMeta: IPublicTypeComponentMetadata = {
65
65
 
66
66
  const snippets: IPublicTypeSnippet[] = [
67
67
  {
68
- title: '选择持有人',
68
+ title: 'Event选择持有人',
69
69
  screenshot: '',
70
70
  schema: {
71
71
  componentName: 'EventSelectHolder',
@@ -0,0 +1,220 @@
1
+ import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
2
+ import { AntdIconSetter } from '../../../materials/lowcode/_setters';
3
+ import snippets from './snippets';
4
+
5
+ const SelectHolderMeta: ComponentMetadata = {
6
+ componentName: "SelectHolder",
7
+ title: "选择持有人",
8
+ docUrl: "",
9
+ screenshot: "",
10
+ category: "数据展示",
11
+ devMode: "proCode",
12
+ npm: {
13
+ package: "@pisell/private-materials",
14
+ version: "1.0.4",
15
+ exportName: "SelectHolder",
16
+ main: "src/index.ts",
17
+ destructuring: true,
18
+ subName: ""
19
+ },
20
+ configure: {
21
+ props: [
22
+ {
23
+ title: {
24
+ label: {
25
+ type: 'i18n',
26
+ 'en-US': 'dataSource',
27
+ 'zh-CN': '数据源',
28
+ },
29
+ },
30
+ name: 'dataSource',
31
+ setter: {
32
+ componentName: 'JsonSetter',
33
+ },
34
+ },
35
+ {
36
+ title: { label: '选中的值', tip: 'Array<any> | 选中的值' },
37
+ name: 'value',
38
+ setter: {
39
+ componentName: 'ObjectSetter',
40
+ },
41
+ },
42
+ {
43
+ title: '录入方式',
44
+ display: 'block',
45
+ type: 'group',
46
+ items: [
47
+ {
48
+ name: 'modalConfig.title',
49
+ title: '标题文案',
50
+ setter: 'StringSetter',
51
+ defaultValue: 'Who would you like to book this event for?',
52
+ },
53
+ {
54
+ name: 'modalConfig.confirmText',
55
+ title: '按钮文案',
56
+ setter: 'StringSetter',
57
+ defaultValue: 'Confirm',
58
+ },
59
+ {
60
+ name: 'modalConfig.showClose',
61
+ title: { label: '显示弹窗关闭', tip: 'showClose | 显示弹窗关闭' },
62
+ setter: 'BoolSetter',
63
+ },
64
+ ],
65
+ },
66
+ {
67
+ title: '字段展示',
68
+ display: 'block',
69
+ type: 'group',
70
+ items: [
71
+ {
72
+ name: 'displayConfig.showAvatar',
73
+ title: { label: '显示图像', tip: 'showAvatar | 显示图像' },
74
+ setter: 'BoolSetter',
75
+ },
76
+ {
77
+ name: 'displayConfig.showTitle',
78
+ title: { label: '显示名称', tip: 'showTitle | 显示名称' },
79
+ setter: 'BoolSetter',
80
+ },
81
+ {
82
+ name: 'displayConfig.showSubtitle',
83
+ title: { label: '显示次级标题', tip: 'showSubtitle | 显示次级标题' },
84
+ setter: 'BoolSetter',
85
+ },
86
+ {
87
+ name: 'displayConfig.isSkipable',
88
+ title: { label: '可跳过', tip: 'isSkipable | 可跳过' },
89
+ setter: 'BoolSetter',
90
+ },
91
+ {
92
+ name: 'displayConfig.direction',
93
+ title: { label: '展示方向', tip: '展示方向' },
94
+ propType: { type: 'oneOf', value: ['horizontal', 'vertical'] },
95
+ setter: {
96
+ componentName: 'RadioGroupSetter',
97
+ props: {
98
+ options: [
99
+ { label: '水平', value: 'horizontal' },
100
+ { label: '垂直', value: 'vertical' },
101
+ ],
102
+ },
103
+ },
104
+ },
105
+ {
106
+ name: 'displayConfig.selectType',
107
+ title: { label: '选择类型', tip: '选择类型' },
108
+ propType: { type: 'oneOf', value: ['single', 'multiple'] },
109
+ setter: {
110
+ componentName: 'RadioGroupSetter',
111
+ props: {
112
+ options: [
113
+ { label: '单选', value: 'single' },
114
+ { label: '多选', value: 'multiple' },
115
+ ],
116
+ },
117
+ },
118
+ },
119
+ {
120
+ name: 'displayConfig.showExtraFields',
121
+ title: { label: '增加字段', tip: 'showExtraFields | 增加字段' },
122
+ setter: 'BoolSetter',
123
+ defaultValue: false,
124
+ },
125
+ {
126
+ name: 'displayConfig.extraFields',
127
+ title: { label: '额外字段', tip: 'extraFields | 额外字段' },
128
+ setter: {
129
+ componentName: 'ArraySetter',
130
+ props: {
131
+ itemSetter: {
132
+ componentName: 'ObjectSetter',
133
+ props: {
134
+ config: {
135
+ items: [
136
+ {
137
+ name: 'label',
138
+ title: '标签',
139
+ setter: 'PisellI18nSetter',
140
+ important: true,
141
+ },
142
+ {
143
+ name: 'value',
144
+ title: 'key',
145
+ setter: 'StringSetter',
146
+ important: true,
147
+ },
148
+ {
149
+ name: 'isShowLabel',
150
+ title: '显示标签',
151
+ setter: 'BoolSetter',
152
+ },
153
+ {
154
+ name: 'isShowValue',
155
+ title: '显示key',
156
+ setter: 'BoolSetter',
157
+ },
158
+ // {
159
+ // name: 'icon',
160
+ // title: 'icon选择',
161
+ // setter: AntdIconSetter,
162
+ // },
163
+ // {
164
+ // name: 'iconSize',
165
+ // title: 'icon大小',
166
+ // setter: ['NumberSetter'],
167
+ // },
168
+ // {
169
+ // name: 'iconColor',
170
+ // title: 'icon颜色',
171
+ // setter: 'ColorSetter',
172
+ // },
173
+ ],
174
+ },
175
+ },
176
+ initialValue: {
177
+ isShowLabel: false,
178
+ isShowValue: true
179
+ }
180
+ },
181
+ },
182
+ },
183
+ condition: (target: any) => target.getProps().getPropValue('displayConfig.showExtraFields'),
184
+ },
185
+ ],
186
+ },
187
+ ],
188
+ supports: {
189
+ style: true,
190
+ events: [
191
+ {
192
+ name: 'onAdd',
193
+ template:
194
+ "onAdd(){\n// 创建新的回调函数\nconsole.log('onAdd');}",
195
+ },
196
+ {
197
+ name: 'onClose',
198
+ template:
199
+ "onClose(){\n// 关闭弹窗回调函数\nconsole.log('onClose');}",
200
+ },
201
+ {
202
+ name: 'onConfirm',
203
+ template:
204
+ "onConfirm(checkedValue,${extParams}){\n// 确认回调函数\nconsole.log('onConfirm');}",
205
+ },
206
+ {
207
+ name: 'onSkip',
208
+ template:
209
+ "onSkip(){\n// 跳过回调函数\nconsole.log('onSkip');}",
210
+ },
211
+ ],
212
+ },
213
+ component: {}
214
+ }
215
+ };
216
+
217
+ export default {
218
+ ...SelectHolderMeta,
219
+ snippets
220
+ };
@@ -0,0 +1,41 @@
1
+ import { Snippet } from '@alilc/lowcode-types';
2
+
3
+ const snippets: Snippet[] = [
4
+ {
5
+ title: '选择持有人',
6
+ screenshot: '',
7
+ schema: {
8
+ componentName: 'SelectHolder',
9
+ props: {
10
+ dataSource: [
11
+ {
12
+ value: 1,
13
+ label: 'Olivia',
14
+ subtitle: 'Subtitle',
15
+ },
16
+ {
17
+ value: 2,
18
+ label: 'Ricky Spagehetti',
19
+ subtitle: 'SubtitleSubtitleSubtitleSubtitleSubtitleSubtitleSubtitleSubtitle',
20
+ },
21
+ ],
22
+ value: [1],
23
+ modalConfig: {
24
+ title: 'Who would you like to book this event for?',
25
+ confirmText: 'Confirm',
26
+ showClose: true,
27
+ },
28
+ displayConfig: {
29
+ showAvatar: true,
30
+ showTitle: true,
31
+ showSubtitle: true,
32
+ isSkipable: true,
33
+ direction: 'horizontal',
34
+ selectType: 'single',
35
+ },
36
+ },
37
+ },
38
+ },
39
+ ];
40
+
41
+ export default snippets;
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.5.26",
3
+ "version": "6.6.1",
4
+ "scripts": {
5
+ "dev": "father dev",
6
+ "build": "father build",
7
+ "lowcode:dev": "build-scripts start --config ./build.lowcode.js",
8
+ "lowcode:build": " build-scripts build --config ./build.lowcode.js"
9
+ },
4
10
  "main": "./lib/index.js",
5
11
  "module": "./es/index.js",
6
12
  "types": "./lib/index.d.ts",
@@ -50,6 +56,10 @@
50
56
  "@dnd-kit/modifiers": "^6.0.1",
51
57
  "@dnd-kit/sortable": "^7.0.2",
52
58
  "@dnd-kit/utilities": "^3.2.1",
59
+ "@pisell/date-picker": "workspace:*",
60
+ "@pisell/icon": "workspace:*",
61
+ "@pisell/materials": "workspace:*",
62
+ "@pisell/utils": "workspace:*",
53
63
  "ahooks": "^3.7.6",
54
64
  "antd": "^5.6.3",
55
65
  "classnames": "^2.3.2",
@@ -59,10 +69,8 @@
59
69
  "react-infinite-scroll-component": "^6.1.0",
60
70
  "react-resizable": "^3.0.5",
61
71
  "styled-components": "^6.0.0-rc.3",
62
- "@pisell/date-picker": "3.0.7",
63
- "@pisell/icon": "0.0.11",
64
- "@pisell/utils": "3.0.2",
65
- "@pisell/materials": "6.5.9"
72
+ "@react-spring/web": "^9.6.1",
73
+ "@use-gesture/react": "^10.3.1"
66
74
  },
67
75
  "peerDependencies": {
68
76
  "react": "^18.0.0",
@@ -70,11 +78,5 @@
70
78
  },
71
79
  "componentConfig": {
72
80
  "materialSchema": "https://unpkg.com/@pisell/materials@1.0.1/build/lowcode/assets-prod.json"
73
- },
74
- "scripts": {
75
- "dev": "father dev",
76
- "build": "father build",
77
- "lowcode:dev": "build-scripts start --config ./build.lowcode.js",
78
- "lowcode:build": " build-scripts build --config ./build.lowcode.js"
79
81
  }
80
82
  }
@@ -1,4 +0,0 @@
1
- declare const usePrinter: () => {
2
- nativePrint: (data: any, callback: (res: any) => void) => void;
3
- };
4
- export default usePrinter;
@@ -1,35 +0,0 @@
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 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; }
3
- 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; }
4
- 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; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
- 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); }
7
- import useEngineContext from "./useEngineContext";
8
- var usePrinter = function usePrinter() {
9
- var _context$appHelper;
10
- var context = useEngineContext();
11
- var _ref = (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
12
- action = _ref.action;
13
- var nativePrint = function nativePrint(data, _callback) {
14
- // 转换注意事项:
15
- // data.type: 0 是JSBridge调用小票打印,nativePlugin中调用时需要转为 'INVOICE'
16
- // data.type: 99 是JSBridge调用全部打印,nativePlugin中调用时需要转为 'ALL'
17
- action({
18
- type: 'webpos.handlePrint',
19
- data: data,
20
- callback: function callback(res) {
21
- if (typeof (res === null || res === void 0 ? void 0 : res.status) === 'string') {
22
- _callback === null || _callback === void 0 || _callback(_objectSpread(_objectSpread({}, res || {}), {}, {
23
- result: (res === null || res === void 0 ? void 0 : res.status) == 'success' ? true : false
24
- }));
25
- } else {
26
- _callback === null || _callback === void 0 || _callback(res);
27
- }
28
- }
29
- });
30
- };
31
- return {
32
- nativePrint: nativePrint
33
- };
34
- };
35
- export default usePrinter;
@@ -1,4 +0,0 @@
1
- declare const usePrinter: () => {
2
- nativePrint: (data: any, callback: (res: any) => void) => void;
3
- };
4
- export default usePrinter;