@pisell/private-materials 6.3.70 → 6.3.71

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 (460) 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 +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +3 -3
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +3 -3
  11. package/es/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  14. package/es/components/booking/addons/model.d.ts +1 -10
  15. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  16. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  17. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  18. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  19. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  20. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  21. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  22. package/es/components/booking/components/voucher/index.js +8 -7
  23. package/es/components/booking/forms/model.d.ts +1 -10
  24. package/es/components/booking/forms/single/index.d.ts +0 -1
  25. package/es/components/booking/forms/table/index.d.ts +0 -1
  26. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  27. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  28. package/es/components/booking/info/date/index.d.ts +0 -1
  29. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  30. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  31. package/es/components/booking/info/index.d.ts +1 -0
  32. package/es/components/booking/info/model.d.ts +1 -10
  33. package/es/components/booking/info/notes/index.d.ts +0 -1
  34. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  35. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  36. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  37. package/es/components/booking/info/service2/utils.d.ts +1 -1
  38. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  39. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  40. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
  41. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  42. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  43. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  44. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  45. package/es/components/booking/model.d.ts +1 -9
  46. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  47. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  48. package/es/components/booking/notes/model.d.ts +1 -10
  49. package/es/components/booking/payments/model.d.ts +1 -10
  50. package/es/components/eftpos/index.d.ts +0 -1
  51. package/es/components/eftpos/pos.d.ts +0 -1
  52. package/es/components/eftposPay/amount.d.ts +1 -2
  53. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  54. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  55. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  56. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  57. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  58. package/es/components/eftposPay/device.d.ts +1 -1
  59. package/es/components/eftposPay/hooks.d.ts +2 -2
  60. package/es/components/eftposPay/pay.d.ts +0 -1
  61. package/es/components/eftposPay/payo/config.d.ts +0 -1
  62. package/es/components/eftposPay/tip.d.ts +0 -1
  63. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  64. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  65. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  66. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  67. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  68. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  69. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  70. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  71. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  72. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  73. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  74. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  75. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  76. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  77. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  78. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  79. package/es/components/kioskSkuDetail/index.d.ts +39 -0
  80. package/es/components/kioskSkuDetail/index.js +531 -0
  81. package/es/components/kioskSkuDetail/index.less +196 -0
  82. package/es/components/kioskSkuDetail/locales.d.ts +27 -0
  83. package/es/components/kioskSkuDetail/locales.js +26 -0
  84. package/es/components/login/index.d.ts +0 -1
  85. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +5 -0
  86. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  87. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  88. package/es/components/pay/toC/model.d.ts +1 -9
  89. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  90. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  91. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  92. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  93. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  94. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  95. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  96. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  97. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  98. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  99. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  100. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  101. package/es/components/schedules/calendar/index.d.ts +0 -1
  102. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  103. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  104. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  105. package/es/components/schedules/model.d.ts +1 -9
  106. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  107. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  108. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  109. package/es/components/schedules/products/index.d.ts +0 -1
  110. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  111. package/es/components/schedules/products/list/index.d.ts +0 -1
  112. package/es/components/schedules/resources/index.d.ts +0 -1
  113. package/es/components/schedules/resources/list/index.d.ts +0 -1
  114. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  115. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  116. package/es/components/schedules/schedules/index.d.ts +0 -1
  117. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  118. package/es/components/shoppingCart/index.d.ts +0 -1
  119. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  120. package/es/components/walletList/index.js +7 -2
  121. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  122. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  123. package/es/hooks/usePaymentLogger.d.ts +0 -1
  124. package/es/index.d.ts +3 -1
  125. package/es/index.js +3 -1
  126. package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  127. package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  128. package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  129. package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
  130. package/es/plus/saasRegister/components/Header.d.ts +0 -1
  131. package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
  132. package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  133. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  134. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  135. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
  136. package/es/plus/skuOptionsSelection/components/VariantCard/index.js +30 -1
  137. package/es/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
  138. package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
  139. package/es/plus/skuOptionsSelection/locales.js +3 -0
  140. package/es/plus/skuOptionsSelection/store/actions.js +17 -2
  141. package/es/plus/skuOptionsSelection/types.d.ts +5 -0
  142. package/es/plus/skuOptionsSelection/types.js +2 -1
  143. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +70 -3
  144. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  145. package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  146. package/es/plus/walletPassGallery/index.js +2 -2
  147. package/es/pro/numberKeyboard/index.d.ts +28 -0
  148. package/es/pro/numberKeyboard/index.js +155 -0
  149. package/es/pro/numberKeyboard/index.less +25 -0
  150. package/es/pro/numberKeyboard/locales.d.ts +12 -0
  151. package/es/pro/numberKeyboard/locales.js +11 -0
  152. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  153. package/es/pro/pisellNumberSelector/example.js +68 -0
  154. package/es/pro/pisellNumberSelector/index.d.ts +29 -0
  155. package/es/pro/pisellNumberSelector/index.js +257 -0
  156. package/es/pro/pisellNumberSelector/index.less +235 -0
  157. package/es/pro/skuDetailModal/index.d.ts +4 -0
  158. package/es/pro/skuDetailModal/index.js +1031 -0
  159. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  160. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  161. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  162. package/lib/components/booking/addons/model.d.ts +1 -10
  163. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  164. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  165. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  166. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  167. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  168. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  169. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  170. package/lib/components/booking/components/voucher/index.js +0 -1
  171. package/lib/components/booking/forms/model.d.ts +1 -10
  172. package/lib/components/booking/forms/single/index.d.ts +0 -1
  173. package/lib/components/booking/forms/table/index.d.ts +0 -1
  174. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  175. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  176. package/lib/components/booking/info/date/index.d.ts +0 -1
  177. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  178. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  179. package/lib/components/booking/info/index.d.ts +1 -0
  180. package/lib/components/booking/info/model.d.ts +1 -10
  181. package/lib/components/booking/info/notes/index.d.ts +0 -1
  182. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  183. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  184. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  185. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  186. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  187. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  188. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
  189. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  190. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  191. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  192. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  193. package/lib/components/booking/model.d.ts +1 -9
  194. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  195. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  196. package/lib/components/booking/notes/model.d.ts +1 -10
  197. package/lib/components/booking/payments/model.d.ts +1 -10
  198. package/lib/components/eftpos/index.d.ts +0 -1
  199. package/lib/components/eftpos/pos.d.ts +0 -1
  200. package/lib/components/eftposPay/amount.d.ts +1 -2
  201. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  202. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  203. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  204. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  205. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  206. package/lib/components/eftposPay/device.d.ts +1 -1
  207. package/lib/components/eftposPay/hooks.d.ts +2 -2
  208. package/lib/components/eftposPay/pay.d.ts +0 -1
  209. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  210. package/lib/components/eftposPay/tip.d.ts +0 -1
  211. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  212. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  213. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  214. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  215. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  216. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  217. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  218. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  219. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  220. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  221. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  222. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  223. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  224. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  225. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  226. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  227. package/lib/components/kioskSkuDetail/index.d.ts +39 -0
  228. package/lib/components/kioskSkuDetail/index.js +393 -0
  229. package/lib/components/kioskSkuDetail/index.less +196 -0
  230. package/lib/components/kioskSkuDetail/locales.d.ts +27 -0
  231. package/lib/components/kioskSkuDetail/locales.js +50 -0
  232. package/lib/components/login/index.d.ts +0 -1
  233. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +5 -0
  234. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  235. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  236. package/lib/components/pay/toC/model.d.ts +1 -9
  237. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  238. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  239. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  240. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  241. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  242. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  243. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  244. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  245. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  246. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  247. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  248. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  249. package/lib/components/schedules/calendar/index.d.ts +0 -1
  250. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  251. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  252. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  253. package/lib/components/schedules/model.d.ts +1 -9
  254. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  255. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  256. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  257. package/lib/components/schedules/products/index.d.ts +0 -1
  258. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  259. package/lib/components/schedules/products/list/index.d.ts +0 -1
  260. package/lib/components/schedules/resources/index.d.ts +0 -1
  261. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  262. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  263. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  264. package/lib/components/schedules/schedules/index.d.ts +0 -1
  265. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  266. package/lib/components/shoppingCart/index.d.ts +0 -1
  267. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  268. package/lib/components/walletList/index.js +5 -1
  269. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  270. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  271. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  272. package/lib/index.d.ts +3 -1
  273. package/lib/index.js +7 -1
  274. package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  275. package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  276. package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  277. package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
  278. package/lib/plus/saasRegister/components/Header.d.ts +0 -1
  279. package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
  280. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  281. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  282. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  283. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
  284. package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +32 -3
  285. package/lib/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
  286. package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
  287. package/lib/plus/skuOptionsSelection/locales.js +3 -0
  288. package/lib/plus/skuOptionsSelection/store/actions.js +25 -1
  289. package/lib/plus/skuOptionsSelection/types.d.ts +5 -0
  290. package/lib/plus/skuOptionsSelection/types.js +2 -1
  291. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +51 -5
  292. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  293. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  294. package/lib/plus/walletPassGallery/index.js +2 -2
  295. package/lib/pro/numberKeyboard/index.d.ts +28 -0
  296. package/lib/pro/numberKeyboard/index.js +182 -0
  297. package/lib/pro/numberKeyboard/index.less +25 -0
  298. package/lib/pro/numberKeyboard/locales.d.ts +12 -0
  299. package/lib/pro/numberKeyboard/locales.js +35 -0
  300. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  301. package/lib/pro/pisellNumberSelector/example.js +93 -0
  302. package/lib/pro/pisellNumberSelector/index.d.ts +29 -0
  303. package/lib/pro/pisellNumberSelector/index.js +275 -0
  304. package/lib/pro/pisellNumberSelector/index.less +235 -0
  305. package/lib/pro/skuDetailModal/index.d.ts +4 -0
  306. package/lib/pro/skuDetailModal/index.js +736 -0
  307. package/lowcode/kiosk-sku-detail/meta.ts +264 -0
  308. package/package.json +4 -4
  309. package/es/components/Sales/Cart/utils.d.ts +0 -63
  310. package/es/components/Sales/Summary/utils.d.ts +0 -51
  311. package/es/components/appointmentBooking/locales.d.ts +0 -363
  312. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  313. package/es/components/booking/dashboard/serve.d.ts +0 -1
  314. package/es/components/booking/editBookingModal/utils.d.ts +0 -12
  315. package/es/components/booking/forms/serve.d.ts +0 -18
  316. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  317. package/es/components/booking/info/client/serve.d.ts +0 -2
  318. package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  319. package/es/components/booking/info/pet/serve.d.ts +0 -1
  320. package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  321. package/es/components/booking/info/service/editService/constants.d.ts +0 -1
  322. package/es/components/booking/info/service/serve.d.ts +0 -20
  323. package/es/components/booking/info2/serve.d.ts +0 -6
  324. package/es/components/booking/locales.d.ts +0 -843
  325. package/es/components/eftposPay/const.d.ts +0 -184
  326. package/es/components/eftposPay/locales.d.ts +0 -330
  327. package/es/components/eftposPay/manufacturer.d.ts +0 -7
  328. package/es/components/eftposPay/payo/payment.d.ts +0 -66
  329. package/es/components/pay/toC/PaymentList/utils.d.ts +0 -36
  330. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  331. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  332. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  333. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -2
  334. package/es/components/pay/toC/locales.d.ts +0 -307
  335. package/es/components/pay/toC/status.d.ts +0 -13
  336. package/es/components/ruleSetting/locales.d.ts +0 -48
  337. package/es/components/shoppingCart/locales.d.ts +0 -33
  338. package/es/components/shoppingCart/type.d.ts +0 -48
  339. package/es/components/subTotal/locales.d.ts +0 -42
  340. package/es/components/systemSettings/registry/locales.d.ts +0 -272
  341. package/es/components/systemSettings/registry/services.d.ts +0 -77
  342. package/es/components/systemSettings/registry/types.d.ts +0 -126
  343. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  344. package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
  345. package/es/components/ticketBooking/locales.d.ts +0 -174
  346. package/es/components/wallet/utils.d.ts +0 -48
  347. package/es/components/walletList/locales.d.ts +0 -27
  348. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  349. package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
  350. package/es/hooks/useEngineContext.d.ts +0 -10
  351. package/es/hooks/useWindowSize.d.ts +0 -5
  352. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
  353. package/es/plus/selectHolder/locales.d.ts +0 -21
  354. package/es/plus/selectHolder/types.d.ts +0 -104
  355. package/es/plus/selectHolder/utils.d.ts +0 -9
  356. package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +0 -2
  357. package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +0 -2
  358. package/es/plus/skuOptionsSelection/store/createStore.d.ts +0 -15
  359. package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +0 -6
  360. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  361. package/es/plus/walletEditor/locales.d.ts +0 -135
  362. package/es/plus/walletPassGallery/locales.d.ts +0 -285
  363. package/es/plus/walletPassGallery/utils.d.ts +0 -48
  364. package/es/pro/Login2.0/shared/types.d.ts +0 -232
  365. package/es/pro/NumericStepper/index.d.ts +0 -43
  366. package/es/pro/Selector/BatchSelectorDemo.d.ts +0 -3
  367. package/es/pro/Selector/Item.d.ts +0 -14
  368. package/es/pro/Selector/Selector.stories.d.ts +0 -78
  369. package/es/pro/Selector/components/Card/index.d.ts +0 -57
  370. package/es/pro/Selector/components/Card/types.d.ts +0 -1
  371. package/es/pro/Selector/components/Indicator/index.d.ts +0 -19
  372. package/es/pro/Selector/components/IntersectionObserver.d.ts +0 -105
  373. package/es/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
  374. package/es/pro/Selector/components/Media/index.d.ts +0 -6
  375. package/es/pro/Selector/components/Media/types.d.ts +0 -47
  376. package/es/pro/Selector/components/index.d.ts +0 -4
  377. package/es/pro/Selector/demo.d.ts +0 -2
  378. package/es/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
  379. package/es/pro/Selector/hooks/usePresetProps.d.ts +0 -24
  380. package/es/pro/Selector/index.d.ts +0 -11
  381. package/es/pro/Selector/locales.d.ts +0 -36
  382. package/es/pro/Selector/types.d.ts +0 -173
  383. package/es/pro/Selector/utils/index.d.ts +0 -49
  384. package/es/test/setup.d.ts +0 -1
  385. package/lib/components/Sales/Cart/utils.d.ts +0 -63
  386. package/lib/components/Sales/Summary/utils.d.ts +0 -51
  387. package/lib/components/appointmentBooking/locales.d.ts +0 -363
  388. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  389. package/lib/components/booking/dashboard/serve.d.ts +0 -1
  390. package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
  391. package/lib/components/booking/forms/serve.d.ts +0 -18
  392. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  393. package/lib/components/booking/info/client/serve.d.ts +0 -2
  394. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  395. package/lib/components/booking/info/pet/serve.d.ts +0 -1
  396. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  397. package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
  398. package/lib/components/booking/info/service/serve.d.ts +0 -20
  399. package/lib/components/booking/info2/serve.d.ts +0 -6
  400. package/lib/components/booking/locales.d.ts +0 -843
  401. package/lib/components/eftposPay/const.d.ts +0 -184
  402. package/lib/components/eftposPay/locales.d.ts +0 -330
  403. package/lib/components/eftposPay/manufacturer.d.ts +0 -7
  404. package/lib/components/eftposPay/payo/payment.d.ts +0 -66
  405. package/lib/components/pay/toC/PaymentList/utils.d.ts +0 -36
  406. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  407. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  408. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  409. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -2
  410. package/lib/components/pay/toC/locales.d.ts +0 -307
  411. package/lib/components/pay/toC/status.d.ts +0 -13
  412. package/lib/components/ruleSetting/locales.d.ts +0 -48
  413. package/lib/components/shoppingCart/locales.d.ts +0 -33
  414. package/lib/components/shoppingCart/type.d.ts +0 -48
  415. package/lib/components/subTotal/locales.d.ts +0 -42
  416. package/lib/components/systemSettings/registry/locales.d.ts +0 -272
  417. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  418. package/lib/components/systemSettings/registry/types.d.ts +0 -126
  419. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  420. package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
  421. package/lib/components/ticketBooking/locales.d.ts +0 -174
  422. package/lib/components/wallet/utils.d.ts +0 -48
  423. package/lib/components/walletList/locales.d.ts +0 -27
  424. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  425. package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
  426. package/lib/hooks/useEngineContext.d.ts +0 -10
  427. package/lib/hooks/useWindowSize.d.ts +0 -5
  428. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
  429. package/lib/plus/selectHolder/locales.d.ts +0 -21
  430. package/lib/plus/selectHolder/types.d.ts +0 -104
  431. package/lib/plus/selectHolder/utils.d.ts +0 -9
  432. package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +0 -2
  433. package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +0 -2
  434. package/lib/plus/skuOptionsSelection/store/createStore.d.ts +0 -15
  435. package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +0 -6
  436. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  437. package/lib/plus/walletEditor/locales.d.ts +0 -135
  438. package/lib/plus/walletPassGallery/locales.d.ts +0 -285
  439. package/lib/plus/walletPassGallery/utils.d.ts +0 -48
  440. package/lib/pro/Login2.0/shared/types.d.ts +0 -232
  441. package/lib/pro/NumericStepper/index.d.ts +0 -43
  442. package/lib/pro/Selector/BatchSelectorDemo.d.ts +0 -3
  443. package/lib/pro/Selector/Item.d.ts +0 -14
  444. package/lib/pro/Selector/Selector.stories.d.ts +0 -78
  445. package/lib/pro/Selector/components/Card/index.d.ts +0 -57
  446. package/lib/pro/Selector/components/Card/types.d.ts +0 -1
  447. package/lib/pro/Selector/components/Indicator/index.d.ts +0 -19
  448. package/lib/pro/Selector/components/IntersectionObserver.d.ts +0 -105
  449. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
  450. package/lib/pro/Selector/components/Media/index.d.ts +0 -6
  451. package/lib/pro/Selector/components/Media/types.d.ts +0 -47
  452. package/lib/pro/Selector/components/index.d.ts +0 -4
  453. package/lib/pro/Selector/demo.d.ts +0 -2
  454. package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
  455. package/lib/pro/Selector/hooks/usePresetProps.d.ts +0 -24
  456. package/lib/pro/Selector/index.d.ts +0 -11
  457. package/lib/pro/Selector/locales.d.ts +0 -36
  458. package/lib/pro/Selector/types.d.ts +0 -173
  459. package/lib/pro/Selector/utils/index.d.ts +0 -49
  460. package/lib/test/setup.d.ts +0 -1
@@ -1,78 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import Selector from './index';
3
- /**
4
- * Selector 组件 - 高级选择器
5
- *
6
- * 支持单选/多选、数量控制、校验规则、互斥组等功能
7
- *
8
- * 查看文档:
9
- * - [开发文档](https://studio.picoding-dev.com/pro-components/selector?tab=dev)
10
- * - [需求文档](https://m1ed09stz4r.feishu.cn/wiki/NL5AwOs0ei5ZBekT4i6cuzIOnoM)
11
- */
12
- declare const meta: Meta<typeof Selector>;
13
- export default meta;
14
- declare type Story = StoryObj<typeof Selector>;
15
- /**
16
- * 默认单选模式 - 原始值类型
17
- */
18
- export declare const Default: Story;
19
- /**
20
- * 多选模式 - 原始值数组
21
- */
22
- export declare const Multiple: Story;
23
- /**
24
- * 单选 + 数量 - 对象值类型
25
- */
26
- export declare const SingleWithQuantity: Story;
27
- /**
28
- * 多选 + 数量 - 卡片样式
29
- */
30
- export declare const MultipleWithQuantity: Story;
31
- /**
32
- * 网格布局 - 2列
33
- */
34
- export declare const GridLayout2Columns: Story;
35
- /**
36
- * 网格布局 - 3列
37
- */
38
- export declare const GridLayout3Columns: Story;
39
- /**
40
- * 校验规则 - 必选、最小/最大数量
41
- */
42
- export declare const WithValidation: Story;
43
- /**
44
- * 互斥组 - 同组只能选一个
45
- */
46
- export declare const MutexGroups: Story;
47
- /**
48
- * 禁用状态
49
- */
50
- export declare const Disabled: Story;
51
- /**
52
- * Select 变体 - 下拉选择
53
- */
54
- export declare const SelectVariant: Story;
55
- /**
56
- * Select 变体 - 多选下拉
57
- */
58
- export declare const SelectVariantMultiple: Story;
59
- /**
60
- * 卡片样式变体 - 不同选中态
61
- */
62
- export declare const CardVariants: Story;
63
- /**
64
- * 自定义图标
65
- */
66
- export declare const CustomIcon: Story;
67
- /**
68
- * 自定义渲染
69
- */
70
- export declare const CustomRender: Story;
71
- /**
72
- * SelectorGroup 基础示例
73
- */
74
- export declare const SelectorGroupBasic: StoryObj;
75
- /**
76
- * SelectorGroup 联动规则示例
77
- */
78
- export declare const SelectorGroupWithLinkage: StoryObj;
@@ -1,57 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export declare type CardVariant = 'outlined' | 'borderless';
4
- export declare type CardLayout = 'vertical' | 'horizontal';
5
- export declare type SelectedType = 'none' | 'outlined' | 'outlined-bold' | 'filled';
6
- export declare type ActionsPosition = 'left' | 'right';
7
- export interface CardStyles {
8
- container?: React.CSSProperties | ((props: CardStyleProps) => React.CSSProperties);
9
- content?: React.CSSProperties | ((props: CardStyleProps) => React.CSSProperties);
10
- actions?: React.CSSProperties | ((props: CardStyleProps) => React.CSSProperties);
11
- corner?: React.CSSProperties | ((props: CardStyleProps) => React.CSSProperties);
12
- }
13
- export interface CardStyleProps {
14
- selected?: boolean;
15
- disabled?: boolean;
16
- hoverable?: boolean;
17
- variant?: CardVariant;
18
- layout?: CardLayout;
19
- }
20
- export interface CardProps {
21
- /** 卡片变体样式 */
22
- variant?: CardVariant;
23
- /** 布局方向 */
24
- layout?: CardLayout;
25
- /** 操作按钮区域,水平模式在右侧,垂直模式在底部 */
26
- actions?: React.ReactNode[];
27
- /** 水平模式下,操作按钮的位置 */
28
- actionsPosition?: ActionsPosition;
29
- /** 垂直模式下,右上角绝对定位展示的组件 */
30
- corner?: React.ReactNode;
31
- /** 子内容 */
32
- children?: React.ReactNode;
33
- /** 选中状态 */
34
- selected?: boolean;
35
- /** 禁用状态 */
36
- disabled?: boolean;
37
- /** 是否可悬停 */
38
- hoverable?: boolean;
39
- /** 点击事件 */
40
- onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
41
- /** 自定义样式 */
42
- styles?: CardStyles;
43
- /**
44
- * 选中时的样式类型
45
- * - none: 无样式
46
- * - outlined: 边框高亮
47
- * - outlined-bold: 边框高亮 + 加粗(使用 outline 实现,不影响布局)
48
- * - filled: 填充背景色
49
- */
50
- selectedType?: SelectedType;
51
- /** 自定义类名 */
52
- className?: string;
53
- /** 自定义样式 */
54
- style?: React.CSSProperties;
55
- }
56
- declare const Card: React.FC<CardProps>;
57
- export default Card;
@@ -1 +0,0 @@
1
- export type { CardVariant, CardLayout, SelectedType, ActionsPosition, CardStyles, CardStyleProps, CardProps, } from './index';
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface IndicatorProps {
4
- mode?: 'single' | 'multiple';
5
- variant?: 'outlined' | 'filled';
6
- defaultChecked?: boolean;
7
- checked?: boolean;
8
- disabled?: boolean;
9
- onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
10
- className?: string;
11
- styles?: {
12
- container?: React.CSSProperties;
13
- indicator?: React.CSSProperties;
14
- };
15
- children?: React.ReactNode;
16
- size?: 'small' | 'middle' | 'large' | number;
17
- }
18
- declare const Indicator: React.FC<IndicatorProps>;
19
- export default Indicator;
@@ -1,105 +0,0 @@
1
- /**
2
- * IntersectionObserver 组件
3
- * 用于监听一组 DOM 元素的可见性状态,并获取第一个可见元素的索引。
4
- * @example
5
- * function App() {
6
- * return (
7
- * <IntersectionObserverProvider
8
- * onFirstVisibleIndexChange={(index) => {
9
- * console.log('第一个可见元素的索引:', index);
10
- * }}
11
- * rootMargin="0px 0px -10% 0px" // 自定义根边距
12
- * >
13
- * <ScrollContainer>
14
- * {items.map((item, index) => (
15
- * <IntersectionItem key={item.id} index={index}>
16
- * <ItemComponent data={item} />
17
- * </IntersectionItem>
18
- * ))}
19
- * </ScrollContainer>
20
- * </IntersectionObserverProvider>
21
- * );
22
- * }
23
- */
24
- import React from 'react';
25
- import type { ReactNode, CSSProperties } from 'react';
26
- declare global {
27
- interface Window {
28
- IntersectionObserver: typeof IntersectionObserver;
29
- }
30
- }
31
- /**
32
- * 元素信息接口
33
- */
34
- interface ElementInfo {
35
- element: HTMLElement;
36
- index: number;
37
- isVisible: boolean;
38
- }
39
- /**
40
- * IntersectionObserver 上下文值接口
41
- */
42
- interface IntersectionObserverContextValue {
43
- /** 是否已初始化 */
44
- initialized: boolean;
45
- /** 注册元素 */
46
- registerElement: (element: HTMLElement, index: number) => void;
47
- /** 注销元素 */
48
- unregisterElement: (element: HTMLElement) => void;
49
- /** 批量注册元素 */
50
- registerElements: (elements: Array<{
51
- element: HTMLElement;
52
- index: number;
53
- }>) => void;
54
- /** 清除所有注册的元素 */
55
- clearAll: () => void;
56
- /** 第一个可见元素的索引,-1 表示没有可见元素 */
57
- firstVisibleIndex: number;
58
- }
59
- /**
60
- * IntersectionObserver Provider 属性接口
61
- */
62
- interface IntersectionObserverProps {
63
- children: ReactNode;
64
- /** 根容器,默认为视口 */
65
- root?: Element | null;
66
- /** 根边距 */
67
- rootMargin?: string;
68
- /** 阈值 */
69
- threshold?: number | number[];
70
- /** 第一个可见元素索引变化时的回调 */
71
- onFirstVisibleIndexChange?: (index: number) => void;
72
- /** 是否禁用组件,禁用后不会创建 IntersectionObserver */
73
- disabled?: boolean;
74
- }
75
- /**
76
- * IntersectionItem 组件属性接口
77
- */
78
- interface IntersectionItemProps {
79
- /** 元素索引 */
80
- index: number;
81
- /** 子元素 */
82
- children?: ReactNode;
83
- /** 类名 */
84
- className?: string;
85
- /** 样式 */
86
- style?: CSSProperties;
87
- }
88
- /**
89
- * IntersectionObserver 上下文
90
- */
91
- declare const IntersectionObserverContext: React.Context<IntersectionObserverContextValue>;
92
- export declare const IntersectionObserverProvider: React.FC<IntersectionObserverProps>;
93
- /**
94
- * 使用 IntersectionObserver 的 Hook
95
- * @returns {Object} 包含注册元素函数和第一个可见元素索引的对象
96
- */
97
- export declare const useIntersectionObserver: () => IntersectionObserverContextValue;
98
- /**
99
- * IntersectionItem 组件
100
- * 自动注册元素到 IntersectionObserver 中
101
- */
102
- export declare const IntersectionItem: React.FC<IntersectionItemProps>;
103
- export type { IntersectionObserverProps, IntersectionItemProps, IntersectionObserverContextValue, ElementInfo, };
104
- export { IntersectionObserverContext, };
105
- export default IntersectionObserverProvider;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { LayoutConfig } from '../../types';
3
- interface LayoutContainerProps {
4
- className: string;
5
- config: LayoutConfig | null;
6
- children: React.ReactNode[];
7
- }
8
- /**
9
- * 统一的布局容器组件
10
- *
11
- * 支持两种布局模式:
12
- * 1. Custom 布局(推荐):通过 className 使用预设样式,containerStyle
13
- * 2. Ant Design Grid 布局:基础的栅格布局,用于简单场景
14
- */
15
- declare function LayoutContainer({ className: containerClassName, config, children, }: LayoutContainerProps): React.ReactElement | null;
16
- export default LayoutContainer;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- import type { MediaProps, MediaStyleProps, MediaShape, MediaSize, MediaCoverType } from './types';
4
- export type { MediaProps, MediaStyleProps, MediaShape, MediaSize, MediaCoverType };
5
- declare const Media: React.FC<MediaProps>;
6
- export default Media;
@@ -1,47 +0,0 @@
1
- /// <reference types="react" />
2
- export declare type MediaShape = 'circle' | 'square';
3
- export declare type MediaSize = 'small' | 'middle' | 'large' | number;
4
- export declare type MediaCoverType = 'image' | 'text' | 'auto';
5
- export interface MediaStyles {
6
- container?: React.CSSProperties | ((props: MediaStyleProps) => React.CSSProperties);
7
- cover?: React.CSSProperties | ((props: MediaStyleProps) => React.CSSProperties);
8
- label?: React.CSSProperties | ((props: MediaStyleProps) => React.CSSProperties);
9
- extra?: React.CSSProperties | ((props: MediaStyleProps) => React.CSSProperties);
10
- indicator?: React.CSSProperties | ((props: MediaStyleProps) => React.CSSProperties);
11
- }
12
- export interface MediaStyleProps {
13
- selected?: boolean;
14
- disabled?: boolean;
15
- shape?: MediaShape;
16
- size?: MediaSize;
17
- }
18
- export interface MediaProps {
19
- /** 封面内容,可以是图片URL或React节点 */
20
- cover?: string | React.ReactNode;
21
- /** 标签文本 */
22
- label?: React.ReactNode;
23
- /** 额外内容,通常用于数字选择器等 */
24
- extra?: React.ReactNode;
25
- /** 指示器,通常用于勾选图标 */
26
- indicator?: React.ReactNode;
27
- /** 选中时是否展示角标,默认为 true */
28
- showIndicator?: boolean;
29
- /** 封面类型:image-图片、text-文字、auto-自动(默认) */
30
- coverType?: MediaCoverType;
31
- /** 形状 */
32
- shape?: MediaShape;
33
- /** 尺寸 */
34
- size?: MediaSize;
35
- /** 选中状态 */
36
- selected?: boolean;
37
- /** 禁用状态 */
38
- disabled?: boolean;
39
- /** 点击事件 */
40
- onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
41
- /** 自定义样式 */
42
- styles?: MediaStyles;
43
- /** 自定义类名 */
44
- className?: string;
45
- /** 自定义样式 */
46
- style?: React.CSSProperties;
47
- }
@@ -1,4 +0,0 @@
1
- export { default as CardItem } from './Card';
2
- export { default as MediaItem } from './Media';
3
- export type { CardVariant, CardLayout, SelectedType, ActionsPosition, CardStyles, CardStyleProps, CardProps, } from './Card/types';
4
- export type { MediaShape, MediaSize, MediaCoverType, MediaStyles, MediaStyleProps, MediaProps, } from './Media/types';
@@ -1,2 +0,0 @@
1
- declare const SelectorDemo: () => JSX.Element;
2
- export default SelectorDemo;
@@ -1,43 +0,0 @@
1
- import React from 'react';
2
- import { ItemProps, ItemLayout, SelectorVariant, PresetConfig } from '../types';
3
- interface UsePresetItemPropsParams {
4
- variant?: SelectorVariant;
5
- itemLayout?: ItemLayout;
6
- preset?: PresetConfig;
7
- itemProps?: ItemProps;
8
- indicator: React.ReactNode;
9
- numberSelector: React.ReactNode;
10
- mode?: 'single' | 'multiple';
11
- disabled?: boolean;
12
- selected?: boolean;
13
- }
14
- interface PresetItemPropsResult {
15
- mediaProps: Record<string, any>;
16
- cardProps: Record<string, any>;
17
- }
18
- /**
19
- * 根据预设项生成 option Item 的 props
20
- *
21
- * 规则说明:
22
- * 1. variant='default': 使用 Card,borderless,horizontal,selectedType='none',actionsPosition='left'
23
- * 1.1 preset.variant='1': renderContent={() => <span>{dataSource._label}</span>}
24
- * 1.2 preset.variant='2': renderContent={() => <span>{dataSource._label}</span>}
25
- * 2. variant='media': 使用 MediaItem
26
- * 2.1 preset.variant='1': size='small', showIndicator=false, 单选shape='circle',多选shape='square'
27
- * 2.2 preset.variant='2': size='large', showIndicator=true, shape='circle'
28
- * 3. variant='card': 根据 itemLayout 区分横向和纵向
29
- * 3.1 横向(horizontal):
30
- * - preset.variant='2': selectedType='filled'
31
- * - preset.variant='5': variant='borderless'
32
- * - 默认样式: styles.container = { padding: 8 }
33
- * - 使用 lodash merge 深度合并样式,itemProps.styles 优先级更高
34
- * 3.2 纵向(vertical):
35
- * - 统一使用 borderless,selectedType='none'
36
- * - preset.variant='2': indicator 通过 corner 传入
37
- * 3.3 actions 处理:
38
- * - 优先使用 numberSelector(如果存在)
39
- * - 其次使用 indicator
40
- * - 纵向且 preset.variant='2': indicator 放到 corner,actions 仅展示 numberSelector
41
- */
42
- declare const usePresetItemProps: (params: UsePresetItemPropsParams) => PresetItemPropsResult;
43
- export default usePresetItemProps;
@@ -1,24 +0,0 @@
1
- import { LayoutConfig, ItemLayout, PresetConfig, SelectorVariant, SelectorProps } from '../types';
2
- interface UsePresetPropsParams {
3
- layout?: LayoutConfig;
4
- mode?: 'single' | 'multiple';
5
- preset?: PresetConfig;
6
- itemLayout?: ItemLayout;
7
- variant?: SelectorVariant;
8
- indicatorProps?: SelectorProps['indicatorProps'];
9
- }
10
- interface UsePresetPropsResult {
11
- layout: LayoutConfig | null;
12
- indicatorProps: SelectorProps['indicatorProps'];
13
- }
14
- /**
15
- * 根据预设配置生成 layout 和 indicatorProps
16
- * Layout 规则:
17
- * - 根据 variant 和 preset.variant 计算布局样式
18
- * IndicatorProps 规则:
19
- * 1. 当 variant='card' 且 preset.variant='2' 时,indicator 默认 variant='filled'
20
- * 2. 当 variant='media' 时,indicator 默认 variant='filled'
21
- * 3. 外部传入的 indicatorProps 优先级更高(会合并到预设配置中)
22
- */
23
- declare const usePresetProps: ({ layout, mode, preset, itemLayout, variant, indicatorProps, }: UsePresetPropsParams) => UsePresetPropsResult;
24
- export default usePresetProps;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { SelectorProps, OptionKey } from './types';
3
- import Item from './Item';
4
- import SelectorGroup from './SelectorGroup';
5
- declare type SelectorComponentType = React.ForwardRefExoticComponent<SelectorProps<OptionKey> & React.RefAttributes<any>> & {
6
- Group: typeof SelectorGroup;
7
- Item: typeof Item;
8
- };
9
- declare const Selector: SelectorComponentType;
10
- export * from './types';
11
- export default Selector;
@@ -1,36 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.pro.selector.mode.single': string;
4
- 'pisell2.pro.selector.mode.multiple': string;
5
- 'pisell2.pro.selector.validate.required-msg': string;
6
- 'pisell2.pro.selector.validate.requireOneOf-msg': string;
7
- 'pisell2.pro.selector.required-tag': string;
8
- 'pisell2.pro.selector.validate.min-selection': (min: number, label?: string) => string;
9
- 'pisell2.pro.selector.validate.max-selection': (max: number, label?: string) => string;
10
- 'pisell2.pro.selector.tip.require-one-option': string;
11
- 'pisell2.pro.selector.tip.min-max-selection': (min: number, max: number) => string;
12
- };
13
- 'zh-CN': {
14
- 'pisell2.pro.selector.mode.single': string;
15
- 'pisell2.pro.selector.mode.multiple': string;
16
- 'pisell2.pro.selector.validate.required-msg': string;
17
- 'pisell2.pro.selector.validate.requireOneOf-msg': string;
18
- 'pisell2.pro.selector.required-tag': string;
19
- 'pisell2.pro.selector.validate.min-selection': (min: number, label?: string) => string;
20
- 'pisell2.pro.selector.validate.max-selection': (max: number, label?: string) => string;
21
- 'pisell2.pro.selector.tip.require-one-option': string;
22
- 'pisell2.pro.selector.tip.min-max-selection': (min: number, max: number) => string;
23
- };
24
- 'zh-HK': {
25
- 'pisell2.pro.selector.mode.single': string;
26
- 'pisell2.pro.selector.mode.multiple': string;
27
- 'pisell2.pro.selector.validate.required-msg': string;
28
- 'pisell2.pro.selector.validate.requireOneOf-msg': string;
29
- 'pisell2.pro.selector.required-tag': string;
30
- 'pisell2.pro.selector.validate.min-selection': (min: number, label?: string) => string;
31
- 'pisell2.pro.selector.validate.max-selection': (max: number, label?: string) => string;
32
- 'pisell2.pro.selector.tip.require-one-option': string;
33
- 'pisell2.pro.selector.tip.min-max-selection': (min: number, max: number) => string;
34
- };
35
- };
36
- export default _default;
@@ -1,173 +0,0 @@
1
- /// <reference types="react" />
2
- export interface ExprRule {
3
- [key: string]: any;
4
- }
5
- export interface RuleConfig {
6
- autoValidate?: boolean;
7
- required?: 0 | 1;
8
- min?: number;
9
- max?: number;
10
- mutex?: Array<Array<OptionKey>>;
11
- customValidator?: (value: SelectionValue) => Promise<void>;
12
- }
13
- export interface GroupItem {
14
- id?: number;
15
- title?: string;
16
- mode?: 'single' | 'multiple';
17
- valueType?: 'primitive' | 'object';
18
- preserve?: boolean;
19
- fieldNames?: {
20
- label?: string;
21
- value?: string;
22
- cover?: string;
23
- };
24
- ruleConfig?: RuleConfig;
25
- dataSource?: OptionItem[];
26
- }
27
- export interface OptionItem {
28
- id?: number;
29
- title?: string;
30
- label?: string;
31
- value?: OptionKey;
32
- cover?: string;
33
- groups?: GroupItem[];
34
- disabled?: boolean;
35
- ruleConfig?: {
36
- min?: number;
37
- max?: number;
38
- };
39
- [key: string]: any;
40
- }
41
- export declare type OptionKey = number | string;
42
- /** 原始值类型:单选时为id,多选时为id[] */
43
- export declare type SelectionValuePrimitive<T = OptionKey> = T | T[];
44
- /** 复杂对象值类型:包含id、数量等额外信息 */
45
- export interface SelectionValueObject<T = OptionKey> {
46
- value?: T;
47
- quantity?: number;
48
- [key: string]: any;
49
- }
50
- /** 单选值类型 */
51
- export declare type SelectionValueSingle<T = OptionKey> = T | SelectionValueObject<T>;
52
- /** 多选值类型 */
53
- export declare type SelectionValueMultiple<T = OptionKey> = T[] | SelectionValueObject<T>[];
54
- /** 选择器值类型 */
55
- export declare type SelectionValue<T = OptionKey> = SelectionValueSingle<T> | SelectionValueMultiple<T>;
56
- export declare type RenderItemProps = {
57
- dataSource: OptionItem;
58
- actions: any;
59
- optionItemValue?: any;
60
- indicator: React.ReactNode;
61
- numberSelector: React.ReactNode;
62
- values: any;
63
- quantityInfo: {
64
- maxReached: boolean;
65
- remainingCount: number;
66
- selectedCount: number;
67
- };
68
- };
69
- export declare type ItemProps = {
70
- layout?: 'vertical' | 'horizontal';
71
- renderContent?: (props: {
72
- dataSource: OptionItem;
73
- }) => React.ReactNode;
74
- styles?: {
75
- [key: string]: React.CSSProperties;
76
- };
77
- [key: string]: any;
78
- };
79
- export declare type LayoutType = 'antdGrid' | 'custom';
80
- export declare type LayoutConfig = {
81
- type?: LayoutType;
82
- className?: string;
83
- containerStyle?: React.CSSProperties;
84
- columns?: number;
85
- gutter?: number | object | Array<number>;
86
- align?: 'top' | 'middle' | 'bottom' | 'stretch';
87
- justify?: 'start' | 'end' | 'center' | 'space-between' | 'space-around';
88
- wrap?: boolean;
89
- colConfig?: {
90
- [key: string]: any;
91
- };
92
- };
93
- export interface PresetConfig {
94
- variant?: '1' | '2' | '3' | '4' | '5';
95
- }
96
- export declare type ItemLayout = 'vertical' | 'horizontal';
97
- export declare type SelectorVariant = 'default' | 'select' | 'card' | 'media';
98
- export declare type HeaderProps = {
99
- visible?: boolean;
100
- style?: React.CSSProperties;
101
- title?: {
102
- visible?: boolean;
103
- text?: React.ReactNode;
104
- style?: React.CSSProperties;
105
- };
106
- icon?: {
107
- visible?: boolean;
108
- icon?: React.ReactNode;
109
- style?: React.CSSProperties;
110
- };
111
- tip?: {
112
- visible?: boolean;
113
- text?: React.ReactNode;
114
- style?: React.CSSProperties;
115
- };
116
- renderExtra?: (props: {
117
- dataSource: OptionItem;
118
- values: SelectionValue;
119
- }) => React.ReactNode;
120
- };
121
- export interface SelectorProps<T = OptionKey> extends GroupItem {
122
- className?: string;
123
- value?: SelectionValue<T>;
124
- defaultValue?: SelectionValue<T>;
125
- onChange?: (value: SelectionValue<T>) => void;
126
- onClear?: () => void;
127
- disabled?: boolean;
128
- variant?: SelectorVariant;
129
- itemLayout?: ItemLayout;
130
- preset?: PresetConfig;
131
- layout?: LayoutConfig;
132
- renderItem?: (props: RenderItemProps) => React.ReactNode;
133
- itemProps?: ItemProps;
134
- indicatorProps?: {
135
- show?: boolean;
136
- variant?: 'outlined' | 'filled';
137
- render?: (props: {
138
- option: OptionItem;
139
- selected: boolean;
140
- disabled: boolean;
141
- actions: any;
142
- }) => React.ReactNode;
143
- [key: string]: any;
144
- };
145
- showStepper?: true | false | 'auto';
146
- stepperProps?: {
147
- size?: 'small' | 'middle' | 'large';
148
- shape?: 'round' | 'square';
149
- };
150
- style?: React.CSSProperties;
151
- /**
152
- * @deprecated
153
- */
154
- titleProps?: HeaderProps;
155
- headerProps?: HeaderProps;
156
- }
157
- export interface SelectorGroupProps {
158
- allowedValuesPolicy?: 'relaxed' | 'strict';
159
- className?: string;
160
- customScrollParent?: HTMLElement | string;
161
- dataSource: GroupItem[];
162
- defaultValue?: Record<string, SelectionValue>;
163
- linkageRules?: ExprRule[] | Record<string, any>;
164
- onChange?: (values: Record<string, SelectionValue>) => void;
165
- preserve?: boolean;
166
- tabProps?: {
167
- visible?: boolean;
168
- };
169
- style?: React.CSSProperties;
170
- value?: Record<string, SelectionValue>;
171
- scrollToFirstError?: boolean;
172
- [key: string]: any;
173
- }