@pisell/private-materials 6.3.87 → 6.3.89

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 (513) 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 +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -1
  15. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  16. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  17. package/es/components/booking/forms/footer.d.ts +0 -1
  18. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  19. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  20. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  21. package/es/components/booking/info/date/index.d.ts +1 -0
  22. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  23. package/es/components/booking/info/service/like/index.d.ts +1 -0
  24. package/es/components/ecocup/components/AddCustomerModal/index.d.ts +9 -0
  25. package/es/components/ecocup/components/AddCustomerModal/index.js +216 -0
  26. package/es/components/ecocup/components/AddCustomerModal/index.less +9 -0
  27. package/es/components/ecocup/components/CupActionList/index.d.ts +13 -0
  28. package/es/components/ecocup/components/CupActionList/index.js +91 -0
  29. package/es/components/ecocup/components/CupActionList/index.less +102 -0
  30. package/es/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
  31. package/es/components/ecocup/components/CupActionModal/hooks.js +68 -0
  32. package/es/components/ecocup/components/CupActionModal/index.d.ts +14 -0
  33. package/es/components/ecocup/components/CupActionModal/index.js +92 -0
  34. package/es/components/ecocup/components/CupActionModal/index.less +38 -0
  35. package/es/components/ecocup/components/CupInfoCard/index.d.ts +7 -0
  36. package/es/components/ecocup/components/CupInfoCard/index.js +12 -0
  37. package/es/components/ecocup/components/CupInfoCard/index.less +11 -0
  38. package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
  39. package/es/components/ecocup/components/CupStatusModal/hooks.js +68 -0
  40. package/es/components/ecocup/components/CupStatusModal/index.d.ts +13 -0
  41. package/es/components/ecocup/components/CupStatusModal/index.js +147 -0
  42. package/es/components/ecocup/components/CupStatusModal/index.less +35 -0
  43. package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
  44. package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +133 -0
  45. package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +16 -0
  46. package/es/components/ecocup/components/CustomerAndCupModal/index.js +227 -0
  47. package/es/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
  48. package/es/components/ecocup/components/CustomerCard/index.d.ts +6 -0
  49. package/es/components/ecocup/components/CustomerCard/index.js +34 -0
  50. package/es/components/ecocup/components/CustomerCard/index.less +50 -0
  51. package/es/components/ecocup/components/MoreDropdown/index.d.ts +8 -0
  52. package/es/components/ecocup/components/MoreDropdown/index.js +33 -0
  53. package/es/components/ecocup/components/PageHeader/index.d.ts +6 -0
  54. package/es/components/ecocup/components/PageHeader/index.js +37 -0
  55. package/es/components/ecocup/components/PageHeader/index.less +19 -0
  56. package/es/components/ecocup/components/SearchBar/const.d.ts +4 -0
  57. package/es/components/ecocup/components/SearchBar/const.js +16 -0
  58. package/es/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
  59. package/es/components/ecocup/components/SearchBar/hooks.js +184 -0
  60. package/es/components/ecocup/components/SearchBar/index.d.ts +12 -0
  61. package/es/components/ecocup/components/SearchBar/index.js +218 -0
  62. package/es/components/ecocup/components/SearchBar/index.less +88 -0
  63. package/es/components/ecocup/cupList/const.d.ts +133 -0
  64. package/es/components/ecocup/cupList/const.js +306 -0
  65. package/es/components/ecocup/cupList/hooks/index.d.ts +4 -0
  66. package/es/components/ecocup/cupList/hooks/index.js +4 -0
  67. package/es/components/ecocup/cupList/hooks/useColumns.d.ts +43 -0
  68. package/es/components/ecocup/cupList/hooks/useColumns.js +168 -0
  69. package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
  70. package/es/components/ecocup/cupList/hooks/useCupApi.js +172 -0
  71. package/es/components/ecocup/cupList/hooks/useSummary.d.ts +2 -0
  72. package/es/components/ecocup/cupList/hooks/useSummary.js +40 -0
  73. package/es/components/ecocup/cupList/index.d.ts +6 -0
  74. package/es/components/ecocup/cupList/index.js +220 -0
  75. package/es/components/ecocup/cupList/index.less +113 -0
  76. package/es/components/ecocup/cupProject/const.d.ts +7 -0
  77. package/es/components/ecocup/cupProject/const.js +27 -0
  78. package/es/components/ecocup/cupProject/index.d.ts +3 -0
  79. package/es/components/ecocup/cupProject/index.js +103 -0
  80. package/es/components/ecocup/cupProject/index.less +41 -0
  81. package/es/components/ecocup/customerList/const.d.ts +44 -0
  82. package/es/components/ecocup/customerList/const.js +67 -0
  83. package/es/components/ecocup/customerList/hooks/index.d.ts +3 -0
  84. package/es/components/ecocup/customerList/hooks/index.js +3 -0
  85. package/es/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
  86. package/es/components/ecocup/customerList/hooks/useColumns.js +44 -0
  87. package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
  88. package/es/components/ecocup/customerList/hooks/useCustomerApi.js +70 -0
  89. package/es/components/ecocup/customerList/index.d.ts +7 -0
  90. package/es/components/ecocup/customerList/index.js +127 -0
  91. package/es/components/ecocup/customerList/index.less +15 -0
  92. package/es/components/ecocup/hooks.d.ts +49 -0
  93. package/es/components/ecocup/hooks.js +151 -0
  94. package/es/components/ecocup/locales.d.ts +339 -0
  95. package/es/components/ecocup/locales.js +372 -0
  96. package/es/components/ecocup/types.d.ts +103 -0
  97. package/es/components/ecocup/types.js +36 -0
  98. package/es/components/ecocup/utils/scanListener.d.ts +20 -0
  99. package/es/components/ecocup/utils/scanListener.js +107 -0
  100. package/es/components/eftpos/const.d.ts +1 -3
  101. package/es/components/eftpos/const.js +0 -2
  102. package/es/components/eftpos/device.d.ts +1 -3
  103. package/es/components/eftpos/device.js +3 -5
  104. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  105. package/es/components/eftpos/form/index.d.ts +1 -0
  106. package/es/components/eftpos/group/index.d.ts +1 -0
  107. package/es/components/eftpos/hooks.d.ts +1 -0
  108. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  109. package/es/components/eftpos/icon/device.d.ts +1 -0
  110. package/es/components/eftpos/index.d.ts +1 -0
  111. package/es/components/eftpos/index.js +11 -34
  112. package/es/components/eftpos/index.less +1 -26
  113. package/es/components/eftpos/locales.d.ts +0 -3
  114. package/es/components/eftpos/locales.js +0 -3
  115. package/es/components/eftpos/receipt/index.d.ts +1 -0
  116. package/es/components/eftposPay/amount.d.ts +1 -0
  117. package/es/components/eftposPay/app.d.ts +1 -1
  118. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  119. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  120. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  121. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  122. package/es/components/eftposPay/const.d.ts +1 -6
  123. package/es/components/eftposPay/const.js +0 -2
  124. package/es/components/eftposPay/device.js +208 -36
  125. package/es/components/eftposPay/hooks.d.ts +1 -2
  126. package/es/components/eftposPay/hooks.js +0 -12
  127. package/es/components/eftposPay/linkly/index.js +0 -1
  128. package/es/components/eftposPay/manufacturer.d.ts +0 -1
  129. package/es/components/eftposPay/manufacturer.js +0 -4
  130. package/es/components/eftposPay/pay.js +2 -7
  131. package/es/components/eftposPay/store/index.d.ts +1 -1
  132. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  133. package/es/components/eftposPay/windcave/windcave.js +9 -9
  134. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  135. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  136. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  137. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  138. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  139. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  140. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  141. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  142. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  143. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  144. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  145. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
  146. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  147. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  148. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  149. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  150. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  151. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  152. package/es/hooks/useEngineContext.d.ts +1 -0
  153. package/es/hooks/useEngineContext.js +7 -0
  154. package/es/index.d.ts +5 -1
  155. package/es/index.js +5 -1
  156. package/es/plus/clientName/index.d.ts +1 -0
  157. package/es/plus/orderList/components/BatchActionBar.d.ts +9 -0
  158. package/es/plus/orderList/components/BatchActionBar.js +835 -0
  159. package/es/plus/orderList/components/FilterList.d.ts +8 -0
  160. package/es/plus/orderList/components/FilterList.js +78 -0
  161. package/es/plus/orderList/components/HandleActions.d.ts +4 -0
  162. package/es/plus/orderList/components/HandleActions.js +24 -0
  163. package/es/plus/orderList/components/QuickFilter.d.ts +4 -0
  164. package/es/plus/orderList/components/QuickFilter.js +14 -0
  165. package/es/plus/orderList/components/Reset.d.ts +6 -0
  166. package/es/plus/orderList/components/Reset.js +23 -0
  167. package/es/plus/orderList/components/Toolbar.d.ts +5 -0
  168. package/es/plus/orderList/components/Toolbar.js +57 -0
  169. package/es/plus/orderList/config.d.ts +154 -0
  170. package/es/plus/orderList/config.js +786 -0
  171. package/es/plus/orderList/index.d.ts +9 -0
  172. package/es/plus/orderList/index.js +128 -0
  173. package/es/plus/orderList/index.less +125 -0
  174. package/es/plus/orderList/locales.d.ts +372 -0
  175. package/es/plus/orderList/locales.js +459 -0
  176. package/es/plus/orderList/serve.d.ts +42 -0
  177. package/es/plus/orderList/serve.js +351 -0
  178. package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  179. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  180. package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +2 -0
  181. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
  182. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
  183. package/es/plus/skuOptionsSelection/index.js +2 -2
  184. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +9 -2
  185. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +8 -4
  186. package/es/plus/walletPassGallery/components/passList/index.d.ts +0 -1
  187. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
  188. package/es/pro/NumericStepper/index.d.ts +28 -3
  189. package/es/pro/NumericStepper/index.js +175 -107
  190. package/es/pro/NumericStepper/index.less +295 -143
  191. package/es/pro/Selector/Selector.js +33 -26
  192. package/es/pro/Selector/components/Card/index.js +2 -3
  193. package/es/pro/Selector/components/Card/index.less +11 -4
  194. package/es/pro/Selector/components/Indicator/index.d.ts +1 -0
  195. package/es/pro/Selector/components/Indicator/index.js +2 -1
  196. package/es/pro/Selector/components/Indicator/index.less +4 -1
  197. package/es/pro/Selector/components/LayoutContainer/index.d.ts +5 -3
  198. package/es/pro/Selector/components/LayoutContainer/index.js +226 -9
  199. package/es/pro/Selector/components/LayoutContainer/index.less +19 -0
  200. package/es/pro/Selector/demo.js +1 -1
  201. package/es/pro/Selector/hooks/usePresetItemProps.js +2 -0
  202. package/es/pro/Selector/hooks/usePresetProps.js +60 -6
  203. package/es/pro/Selector/selector.less +0 -64
  204. package/es/pro/Selector/types.d.ts +40 -0
  205. package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +11 -0
  206. package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.js +54 -0
  207. package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.less +28 -0
  208. package/es/pro/comprehensiveSearch/components/index.d.ts +2 -0
  209. package/es/pro/comprehensiveSearch/components/index.js +2 -0
  210. package/es/pro/comprehensiveSearch/components/searchSection/index.d.ts +24 -0
  211. package/es/pro/comprehensiveSearch/components/searchSection/index.js +140 -0
  212. package/es/pro/comprehensiveSearch/components/searchSection/index.less +100 -0
  213. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  214. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +14 -0
  215. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  216. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +24 -0
  217. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  218. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +44 -0
  219. package/es/pro/comprehensiveSearch/index.d.ts +7 -0
  220. package/es/pro/comprehensiveSearch/index.js +207 -0
  221. package/es/pro/comprehensiveSearch/index.less +196 -0
  222. package/es/pro/comprehensiveSearch/locales.d.ts +15 -0
  223. package/es/pro/comprehensiveSearch/locales.js +14 -0
  224. package/es/pro/comprehensiveSearch/types.d.ts +32 -0
  225. package/es/pro/comprehensiveSearch/types.js +1 -0
  226. package/es/pro/keyboards/index.d.ts +2 -0
  227. package/es/pro/keyboards/index.js +1 -0
  228. package/es/pro/keyboards/locales.d.ts +24 -0
  229. package/es/pro/keyboards/locales.js +35 -0
  230. package/es/pro/keyboards/numberKeyboard/index.d.ts +16 -0
  231. package/es/pro/keyboards/numberKeyboard/index.js +523 -0
  232. package/es/pro/keyboards/numberKeyboard/index.less +59 -0
  233. package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
  234. package/es/pro/keyboards/numberKeyboard/types.js +1 -0
  235. package/es/pro/pisellPaymentList/example.d.ts +1 -0
  236. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  237. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  238. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  239. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -1
  240. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  241. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  242. package/lib/components/booking/forms/footer.d.ts +0 -1
  243. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  244. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  245. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  246. package/lib/components/booking/info/date/index.d.ts +1 -0
  247. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  248. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  249. package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +9 -0
  250. package/lib/components/ecocup/components/AddCustomerModal/index.js +212 -0
  251. package/lib/components/ecocup/components/AddCustomerModal/index.less +9 -0
  252. package/lib/components/ecocup/components/CupActionList/index.d.ts +13 -0
  253. package/lib/components/ecocup/components/CupActionList/index.js +116 -0
  254. package/lib/components/ecocup/components/CupActionList/index.less +102 -0
  255. package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
  256. package/lib/components/ecocup/components/CupActionModal/hooks.js +55 -0
  257. package/lib/components/ecocup/components/CupActionModal/index.d.ts +14 -0
  258. package/lib/components/ecocup/components/CupActionModal/index.js +125 -0
  259. package/lib/components/ecocup/components/CupActionModal/index.less +38 -0
  260. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +7 -0
  261. package/lib/components/ecocup/components/CupInfoCard/index.js +43 -0
  262. package/lib/components/ecocup/components/CupInfoCard/index.less +11 -0
  263. package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
  264. package/lib/components/ecocup/components/CupStatusModal/hooks.js +55 -0
  265. package/lib/components/ecocup/components/CupStatusModal/index.d.ts +13 -0
  266. package/lib/components/ecocup/components/CupStatusModal/index.js +140 -0
  267. package/lib/components/ecocup/components/CupStatusModal/index.less +35 -0
  268. package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
  269. package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +89 -0
  270. package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +16 -0
  271. package/lib/components/ecocup/components/CustomerAndCupModal/index.js +178 -0
  272. package/lib/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
  273. package/lib/components/ecocup/components/CustomerCard/index.d.ts +6 -0
  274. package/lib/components/ecocup/components/CustomerCard/index.js +48 -0
  275. package/lib/components/ecocup/components/CustomerCard/index.less +50 -0
  276. package/lib/components/ecocup/components/MoreDropdown/index.d.ts +8 -0
  277. package/lib/components/ecocup/components/MoreDropdown/index.js +68 -0
  278. package/lib/components/ecocup/components/PageHeader/index.d.ts +6 -0
  279. package/lib/components/ecocup/components/PageHeader/index.js +59 -0
  280. package/lib/components/ecocup/components/PageHeader/index.less +19 -0
  281. package/lib/components/ecocup/components/SearchBar/const.d.ts +4 -0
  282. package/lib/components/{eftposPay/mx51/types.js → ecocup/components/SearchBar/const.js} +28 -17
  283. package/lib/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
  284. package/lib/components/ecocup/components/SearchBar/hooks.js +135 -0
  285. package/lib/components/ecocup/components/SearchBar/index.d.ts +12 -0
  286. package/lib/components/ecocup/components/SearchBar/index.js +213 -0
  287. package/lib/components/ecocup/components/SearchBar/index.less +88 -0
  288. package/lib/components/ecocup/cupList/const.d.ts +133 -0
  289. package/lib/components/ecocup/cupList/const.js +326 -0
  290. package/lib/components/ecocup/cupList/hooks/index.d.ts +4 -0
  291. package/lib/components/ecocup/cupList/hooks/index.js +39 -0
  292. package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +43 -0
  293. package/lib/components/ecocup/cupList/hooks/useColumns.js +202 -0
  294. package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
  295. package/lib/components/ecocup/cupList/hooks/useCupApi.js +112 -0
  296. package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +2 -0
  297. package/lib/components/ecocup/cupList/hooks/useSummary.js +75 -0
  298. package/lib/components/ecocup/cupList/index.d.ts +6 -0
  299. package/lib/components/ecocup/cupList/index.js +208 -0
  300. package/lib/components/ecocup/cupList/index.less +113 -0
  301. package/lib/components/ecocup/cupProject/const.d.ts +7 -0
  302. package/lib/components/ecocup/cupProject/const.js +58 -0
  303. package/lib/components/ecocup/cupProject/index.d.ts +3 -0
  304. package/lib/components/ecocup/cupProject/index.js +126 -0
  305. package/lib/components/ecocup/cupProject/index.less +41 -0
  306. package/lib/components/ecocup/customerList/const.d.ts +44 -0
  307. package/lib/components/ecocup/customerList/const.js +93 -0
  308. package/lib/components/ecocup/customerList/hooks/index.d.ts +3 -0
  309. package/lib/components/{eftposPay/aggregatePayment → ecocup/customerList/hooks}/index.js +10 -10
  310. package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
  311. package/lib/components/ecocup/customerList/hooks/useColumns.js +89 -0
  312. package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
  313. package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +56 -0
  314. package/lib/components/ecocup/customerList/index.d.ts +7 -0
  315. package/lib/components/ecocup/customerList/index.js +138 -0
  316. package/lib/components/ecocup/customerList/index.less +15 -0
  317. package/lib/components/ecocup/hooks.d.ts +49 -0
  318. package/lib/components/ecocup/hooks.js +155 -0
  319. package/lib/components/ecocup/locales.d.ts +339 -0
  320. package/lib/components/ecocup/locales.js +389 -0
  321. package/lib/components/ecocup/types.d.ts +103 -0
  322. package/lib/components/ecocup/types.js +57 -0
  323. package/lib/components/ecocup/utils/scanListener.d.ts +20 -0
  324. package/lib/components/ecocup/utils/scanListener.js +90 -0
  325. package/lib/components/eftpos/const.d.ts +1 -3
  326. package/lib/components/eftpos/const.js +0 -2
  327. package/lib/components/eftpos/device.d.ts +1 -3
  328. package/lib/components/eftpos/device.js +3 -3
  329. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  330. package/lib/components/eftpos/form/index.d.ts +1 -0
  331. package/lib/components/eftpos/group/index.d.ts +1 -0
  332. package/lib/components/eftpos/hooks.d.ts +1 -0
  333. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  334. package/lib/components/eftpos/icon/device.d.ts +1 -0
  335. package/lib/components/eftpos/index.d.ts +1 -0
  336. package/lib/components/eftpos/index.js +5 -20
  337. package/lib/components/eftpos/index.less +1 -26
  338. package/lib/components/eftpos/locales.d.ts +0 -3
  339. package/lib/components/eftpos/locales.js +0 -3
  340. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  341. package/lib/components/eftposPay/amount.d.ts +1 -0
  342. package/lib/components/eftposPay/app.d.ts +1 -1
  343. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  344. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  345. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  346. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  347. package/lib/components/eftposPay/const.d.ts +1 -6
  348. package/lib/components/eftposPay/const.js +0 -2
  349. package/lib/components/eftposPay/device.js +108 -23
  350. package/lib/components/eftposPay/hooks.d.ts +1 -2
  351. package/lib/components/eftposPay/hooks.js +0 -16
  352. package/lib/components/eftposPay/linkly/index.js +0 -1
  353. package/lib/components/eftposPay/manufacturer.d.ts +0 -1
  354. package/lib/components/eftposPay/manufacturer.js +0 -6
  355. package/lib/components/eftposPay/pay.js +2 -4
  356. package/lib/components/eftposPay/store/index.d.ts +1 -1
  357. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  358. package/lib/components/eftposPay/windcave/windcave.js +9 -9
  359. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  360. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  361. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  362. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  363. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  364. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  365. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  366. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  367. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  368. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  369. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  370. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
  371. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  372. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  373. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  374. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  375. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  376. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  377. package/lib/hooks/useEngineContext.d.ts +1 -0
  378. package/lib/hooks/useEngineContext.js +10 -2
  379. package/lib/index.d.ts +5 -1
  380. package/lib/index.js +13 -1
  381. package/lib/plus/clientName/index.d.ts +1 -0
  382. package/lib/plus/orderList/components/BatchActionBar.d.ts +9 -0
  383. package/lib/plus/orderList/components/BatchActionBar.js +567 -0
  384. package/lib/plus/orderList/components/FilterList.d.ts +8 -0
  385. package/lib/plus/orderList/components/FilterList.js +121 -0
  386. package/lib/plus/orderList/components/HandleActions.d.ts +4 -0
  387. package/lib/plus/orderList/components/HandleActions.js +52 -0
  388. package/lib/plus/orderList/components/QuickFilter.d.ts +4 -0
  389. package/lib/plus/orderList/components/QuickFilter.js +43 -0
  390. package/lib/plus/orderList/components/Reset.d.ts +6 -0
  391. package/lib/plus/orderList/components/Reset.js +58 -0
  392. package/lib/plus/orderList/components/Toolbar.d.ts +5 -0
  393. package/lib/plus/orderList/components/Toolbar.js +68 -0
  394. package/lib/plus/orderList/config.d.ts +154 -0
  395. package/lib/plus/orderList/config.js +764 -0
  396. package/lib/plus/orderList/index.d.ts +9 -0
  397. package/lib/plus/orderList/index.js +132 -0
  398. package/lib/plus/orderList/index.less +125 -0
  399. package/lib/plus/orderList/locales.d.ts +372 -0
  400. package/lib/plus/orderList/locales.js +471 -0
  401. package/lib/plus/orderList/serve.d.ts +42 -0
  402. package/lib/plus/orderList/serve.js +177 -0
  403. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  404. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  405. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +2 -0
  406. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
  407. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
  408. package/lib/plus/skuOptionsSelection/index.js +2 -2
  409. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +9 -2
  410. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +7 -3
  411. package/lib/plus/walletPassGallery/components/passList/index.d.ts +0 -1
  412. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
  413. package/lib/pro/NumericStepper/index.d.ts +28 -3
  414. package/lib/pro/NumericStepper/index.js +176 -88
  415. package/lib/pro/NumericStepper/index.less +295 -143
  416. package/lib/pro/Selector/Selector.js +27 -16
  417. package/lib/pro/Selector/components/Card/index.js +9 -1
  418. package/lib/pro/Selector/components/Card/index.less +11 -4
  419. package/lib/pro/Selector/components/Indicator/index.d.ts +1 -0
  420. package/lib/pro/Selector/components/Indicator/index.js +1 -1
  421. package/lib/pro/Selector/components/Indicator/index.less +4 -1
  422. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +5 -3
  423. package/lib/pro/Selector/components/LayoutContainer/index.js +130 -2
  424. package/lib/pro/Selector/components/LayoutContainer/index.less +19 -0
  425. package/lib/pro/Selector/demo.js +1 -1
  426. package/lib/pro/Selector/hooks/usePresetItemProps.js +2 -0
  427. package/lib/pro/Selector/hooks/usePresetProps.js +28 -6
  428. package/lib/pro/Selector/selector.less +0 -64
  429. package/lib/pro/Selector/types.d.ts +40 -0
  430. package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +11 -0
  431. package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.js +64 -0
  432. package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.less +28 -0
  433. package/lib/pro/comprehensiveSearch/components/index.d.ts +2 -0
  434. package/lib/pro/comprehensiveSearch/components/index.js +42 -0
  435. package/lib/pro/comprehensiveSearch/components/searchSection/index.d.ts +24 -0
  436. package/lib/pro/comprehensiveSearch/components/searchSection/index.js +153 -0
  437. package/lib/pro/comprehensiveSearch/components/searchSection/index.less +100 -0
  438. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  439. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +38 -0
  440. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  441. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +56 -0
  442. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  443. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +70 -0
  444. package/lib/pro/comprehensiveSearch/index.d.ts +7 -0
  445. package/lib/pro/comprehensiveSearch/index.js +190 -0
  446. package/lib/pro/comprehensiveSearch/index.less +196 -0
  447. package/lib/pro/comprehensiveSearch/locales.d.ts +15 -0
  448. package/lib/pro/comprehensiveSearch/locales.js +38 -0
  449. package/lib/pro/comprehensiveSearch/types.d.ts +32 -0
  450. package/lib/pro/comprehensiveSearch/types.js +17 -0
  451. package/lib/pro/keyboards/index.d.ts +2 -0
  452. package/lib/pro/keyboards/index.js +39 -0
  453. package/lib/pro/keyboards/locales.d.ts +24 -0
  454. package/lib/pro/keyboards/locales.js +47 -0
  455. package/lib/pro/keyboards/numberKeyboard/index.d.ts +16 -0
  456. package/lib/pro/keyboards/numberKeyboard/index.js +400 -0
  457. package/lib/pro/keyboards/numberKeyboard/index.less +59 -0
  458. package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
  459. package/lib/pro/keyboards/numberKeyboard/types.js +17 -0
  460. package/lib/pro/pisellPaymentList/example.d.ts +1 -0
  461. package/lowcode/eco-cup-list/meta.ts +63 -0
  462. package/lowcode/eco-customer-list/meta.ts +63 -0
  463. package/lowcode/ecocup-cup-list/meta.ts +38 -0
  464. package/lowcode/ecocup-cup-project/meta.ts +35 -0
  465. package/lowcode/ecocup-customer-list/meta.ts +38 -0
  466. package/lowcode/order-list/meta.ts +87 -0
  467. package/package.json +4 -4
  468. package/es/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +0 -6
  469. package/es/components/eftposPay/aggregatePayment/hooks/usePayment.js +0 -125
  470. package/es/components/eftposPay/aggregatePayment/index.d.ts +0 -3
  471. package/es/components/eftposPay/aggregatePayment/index.js +0 -3
  472. package/es/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
  473. package/es/components/eftposPay/aggregatePayment/mock.js +0 -567
  474. package/es/components/eftposPay/aggregatePayment/service.d.ts +0 -24
  475. package/es/components/eftposPay/aggregatePayment/service.js +0 -70
  476. package/es/components/eftposPay/aggregatePayment/types.d.ts +0 -96
  477. package/es/components/eftposPay/aggregatePayment/types.js +0 -61
  478. package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
  479. package/es/components/eftposPay/aggregatePayment/utils/logs.js +0 -385
  480. package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -132
  481. package/es/components/eftposPay/aggregatePayment/utils/payment.js +0 -1127
  482. package/es/components/eftposPay/mx51/Action.d.ts +0 -6
  483. package/es/components/eftposPay/mx51/Action.js +0 -91
  484. package/es/components/eftposPay/mx51/const.d.ts +0 -5
  485. package/es/components/eftposPay/mx51/const.js +0 -69
  486. package/es/components/eftposPay/mx51/index.d.ts +0 -6
  487. package/es/components/eftposPay/mx51/index.js +0 -362
  488. package/es/components/eftposPay/mx51/types.d.ts +0 -136
  489. package/es/components/eftposPay/mx51/types.js +0 -29
  490. package/es/components/eftposPay/mx51/utils.d.ts +0 -10
  491. package/es/components/eftposPay/mx51/utils.js +0 -120
  492. package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +0 -6
  493. package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.js +0 -152
  494. package/lib/components/eftposPay/aggregatePayment/index.d.ts +0 -3
  495. package/lib/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
  496. package/lib/components/eftposPay/aggregatePayment/mock.js +0 -679
  497. package/lib/components/eftposPay/aggregatePayment/service.d.ts +0 -24
  498. package/lib/components/eftposPay/aggregatePayment/service.js +0 -81
  499. package/lib/components/eftposPay/aggregatePayment/types.d.ts +0 -96
  500. package/lib/components/eftposPay/aggregatePayment/types.js +0 -74
  501. package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
  502. package/lib/components/eftposPay/aggregatePayment/utils/logs.js +0 -302
  503. package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -132
  504. package/lib/components/eftposPay/aggregatePayment/utils/payment.js +0 -746
  505. package/lib/components/eftposPay/mx51/Action.d.ts +0 -6
  506. package/lib/components/eftposPay/mx51/Action.js +0 -127
  507. package/lib/components/eftposPay/mx51/const.d.ts +0 -5
  508. package/lib/components/eftposPay/mx51/const.js +0 -85
  509. package/lib/components/eftposPay/mx51/index.d.ts +0 -6
  510. package/lib/components/eftposPay/mx51/index.js +0 -330
  511. package/lib/components/eftposPay/mx51/types.d.ts +0 -136
  512. package/lib/components/eftposPay/mx51/utils.d.ts +0 -10
  513. package/lib/components/eftposPay/mx51/utils.js +0 -114
@@ -1,12 +1,15 @@
1
1
  .pisell-pro-indicator {
2
+ vertical-align: middle;
2
3
  display: inline-flex;
3
4
  align-items: center;
4
- vertical-align: middle;
5
+ justify-content: center;
5
6
  cursor: pointer;
6
7
  user-select: none;
7
8
  font-size: 14px;
8
9
  line-height: 1.5;
9
10
  position: relative;
11
+ height: 100%;
12
+ width: 100%;
10
13
 
11
14
  &-input {
12
15
  position: absolute;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { LayoutConfig } from '../../types';
3
+ import './index.less';
3
4
  interface LayoutContainerProps {
4
5
  className: string;
5
6
  config: LayoutConfig | null;
@@ -8,9 +9,10 @@ interface LayoutContainerProps {
8
9
  /**
9
10
  * 统一的布局容器组件
10
11
  *
11
- * 支持两种布局模式:
12
- * 1. Custom 布局(推荐):通过 className 使用预设样式,containerStyle
13
- * 2. Ant Design Grid 布局:基础的栅格布局,用于简单场景
12
+ * 支持三种布局模式:
13
+ * 1. 响应式布局(推荐):通过 responsive 配置,使用 ResizeObserver 实现容器级响应式
14
+ * 2. Custom 布局:通过 className 使用预设样式
15
+ * 3. Ant Design Grid 布局:基础的栅格布局,用于简单场景
14
16
  */
15
17
  declare function LayoutContainer({ className: containerClassName, config, children, }: LayoutContainerProps): React.ReactElement | null;
16
18
  export default LayoutContainer;
@@ -35,19 +35,147 @@ module.exports = __toCommonJS(LayoutContainer_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
37
  var import_classnames = __toESM(require("classnames"));
38
+ var import_index = require("./index.less");
38
39
  var ARow = import_antd.Row;
39
40
  var ACol = import_antd.Col;
41
+ function normalizeBreakpoints(breakpoints, defaultGap) {
42
+ const normalized = {};
43
+ for (const [width, config] of Object.entries(breakpoints)) {
44
+ const widthNum = Number(width);
45
+ if (typeof config === "number") {
46
+ normalized[widthNum] = { columns: config, gap: defaultGap };
47
+ } else {
48
+ normalized[widthNum] = { ...config, gap: config.gap ?? defaultGap };
49
+ }
50
+ }
51
+ return normalized;
52
+ }
53
+ function generateBreakpoints(minWidth, maxColumns, gap = 16) {
54
+ const gapNum = typeof gap === "number" ? gap : parseInt(gap, 10) || 16;
55
+ const breakpoints = {
56
+ 0: { columns: 1, gap }
57
+ };
58
+ for (let cols = 2; cols <= maxColumns; cols++) {
59
+ const breakpoint = cols * minWidth + (cols - 1) * gapNum;
60
+ breakpoints[breakpoint] = { columns: cols, gap };
61
+ }
62
+ return breakpoints;
63
+ }
64
+ function getActiveBreakpoint(width, breakpoints, defaultColumns = 1, defaultGap = 16) {
65
+ const sortedBreakpoints = Object.keys(breakpoints).map(Number).sort((a, b) => b - a);
66
+ for (const breakpoint of sortedBreakpoints) {
67
+ if (width >= breakpoint) {
68
+ return breakpoints[breakpoint];
69
+ }
70
+ }
71
+ return { columns: defaultColumns, gap: defaultGap };
72
+ }
73
+ function parseResponsiveConfig(responsive) {
74
+ const { minWidth, maxColumns, breakpoints, gap = 16 } = responsive;
75
+ let finalBreakpoints = {};
76
+ if (minWidth && maxColumns) {
77
+ finalBreakpoints = generateBreakpoints(minWidth, maxColumns, gap);
78
+ }
79
+ if (breakpoints) {
80
+ const normalizedBreakpoints = normalizeBreakpoints(breakpoints, gap);
81
+ finalBreakpoints = { ...finalBreakpoints, ...normalizedBreakpoints };
82
+ }
83
+ if (Object.keys(finalBreakpoints).length === 0) {
84
+ finalBreakpoints = { 0: { columns: responsive.defaultColumns ?? 1, gap } };
85
+ }
86
+ return finalBreakpoints;
87
+ }
88
+ function useContainerWidth(ref, debounceMs = 0) {
89
+ const [width, setWidth] = (0, import_react.useState)(0);
90
+ const timeoutRef = (0, import_react.useRef)(null);
91
+ (0, import_react.useEffect)(() => {
92
+ const element = ref.current;
93
+ if (!element) return;
94
+ const updateWidth = (newWidth) => {
95
+ if (debounceMs > 0) {
96
+ if (timeoutRef.current) {
97
+ clearTimeout(timeoutRef.current);
98
+ }
99
+ timeoutRef.current = setTimeout(() => {
100
+ setWidth(newWidth);
101
+ }, debounceMs);
102
+ } else {
103
+ setWidth(newWidth);
104
+ }
105
+ };
106
+ const observer = new ResizeObserver((entries) => {
107
+ const entry = entries[0];
108
+ if (entry) {
109
+ updateWidth(entry.contentRect.width);
110
+ }
111
+ });
112
+ observer.observe(element);
113
+ setWidth(element.getBoundingClientRect().width);
114
+ return () => {
115
+ observer.disconnect();
116
+ if (timeoutRef.current) {
117
+ clearTimeout(timeoutRef.current);
118
+ }
119
+ };
120
+ }, [ref, debounceMs]);
121
+ return width;
122
+ }
123
+ var baseClassName = "pisell-pro-selector_layout";
40
124
  function LayoutContainer({
41
125
  className: containerClassName,
42
126
  config,
43
127
  children
44
128
  }) {
129
+ const containerRef = (0, import_react.useRef)(null);
130
+ const responsiveConfig = config == null ? void 0 : config.responsive;
131
+ const hasResponsive = !!responsiveConfig;
132
+ const breakpoints = (0, import_react.useMemo)(() => {
133
+ if (!responsiveConfig) return null;
134
+ return parseResponsiveConfig(responsiveConfig);
135
+ }, [responsiveConfig]);
136
+ const containerWidth = useContainerWidth(
137
+ containerRef,
138
+ (responsiveConfig == null ? void 0 : responsiveConfig.debounce) ?? 0
139
+ );
140
+ const activeConfig = (0, import_react.useMemo)(() => {
141
+ if (!breakpoints) return null;
142
+ return getActiveBreakpoint(
143
+ containerWidth,
144
+ breakpoints,
145
+ responsiveConfig == null ? void 0 : responsiveConfig.defaultColumns,
146
+ responsiveConfig == null ? void 0 : responsiveConfig.gap
147
+ );
148
+ }, [containerWidth, breakpoints, responsiveConfig]);
45
149
  if (!config) {
46
- return /* @__PURE__ */ import_react.default.createElement("div", { className: containerClassName }, children);
150
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)(baseClassName, containerClassName) }, children);
47
151
  }
48
152
  const { type, className, containerStyle = {} } = config;
153
+ if (hasResponsive) {
154
+ const cssVariables = {
155
+ "--layout-columns": (activeConfig == null ? void 0 : activeConfig.columns) ?? 1,
156
+ "--layout-gap": typeof (activeConfig == null ? void 0 : activeConfig.gap) === "number" ? `${activeConfig.gap}px` : (activeConfig == null ? void 0 : activeConfig.gap) ?? "16px"
157
+ };
158
+ return /* @__PURE__ */ import_react.default.createElement(
159
+ "div",
160
+ {
161
+ ref: containerRef,
162
+ className: (0, import_classnames.default)(
163
+ baseClassName,
164
+ `${baseClassName}-responsive`,
165
+ containerClassName,
166
+ className
167
+ ),
168
+ style: { ...cssVariables, ...containerStyle, ...activeConfig == null ? void 0 : activeConfig.style }
169
+ },
170
+ children
171
+ );
172
+ }
49
173
  if (type !== "antdGrid") {
50
- const layoutClassName = (0, import_classnames.default)(containerClassName, className);
174
+ const layoutClassName = (0, import_classnames.default)(
175
+ baseClassName,
176
+ containerClassName,
177
+ className
178
+ );
51
179
  return /* @__PURE__ */ import_react.default.createElement("div", { className: layoutClassName, style: containerStyle }, children);
52
180
  }
53
181
  const { columns = 1, align, justify, gutter, wrap, colConfig = {} } = config;
@@ -0,0 +1,19 @@
1
+ .pisell-pro-selector_layout {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 16px;
5
+ // 响应式布局容器
6
+ &-responsive {
7
+ display: grid;
8
+ gap: var(--layout-gap, 16px);
9
+ grid-template-columns: repeat(var(--layout-columns, 1), 1fr);
10
+ }
11
+
12
+ // 自动宽度布局 - 内容自适应
13
+ &-auto-flex {
14
+ display: flex;
15
+ flex-direction: row;
16
+ flex-wrap: wrap;
17
+ gap: 16px;
18
+ }
19
+ }
@@ -57,7 +57,7 @@ var SelectorDemo = () => {
57
57
  });
58
58
  const [paymentMethod, setPaymentMethod] = (0, import_react.useState)("alipay");
59
59
  const [serviceOptions, setServiceOptions] = (0, import_react.useState)([1, 2]);
60
- const [width, setWidth] = (0, import_react.useState)("660");
60
+ const [width, setWidth] = (0, import_react.useState)("100%");
61
61
  const simpleDataSource = [
62
62
  { id: 1, title: "选项A" },
63
63
  { id: 2, title: "选项B" },
@@ -111,6 +111,7 @@ var usePresetItemProps = (params) => {
111
111
  content: {}
112
112
  };
113
113
  if (presetVariant === "1") {
114
+ defaultStyles.container.padding = "12px 16px";
114
115
  defaultStyles.content.textAlign = "center";
115
116
  baseProps = {
116
117
  selectedType: "outlined-bold"
@@ -120,6 +121,7 @@ var usePresetItemProps = (params) => {
120
121
  }
121
122
  indicator = null;
122
123
  } else if (presetVariant === "2") {
124
+ defaultStyles.container.padding = "12px 16px";
123
125
  baseProps = {
124
126
  selectedType: "filled"
125
127
  };
@@ -30,18 +30,39 @@ var VARIANT_MAP = {
30
30
  ["media"]: ["1", "2"]
31
31
  };
32
32
  var EMPTY_CONFIG = {};
33
+ var RESPONSIVE_PRESETS = {
34
+ /** 响应式布局 - 最小宽度 210px,最多 5 列 */
35
+ responsive210: {
36
+ breakpoints: {
37
+ 0: { columns: 1, gap: 16 },
38
+ 420: { columns: 2, gap: 16 },
39
+ 630: { columns: 3, gap: 16 },
40
+ 841: { columns: 4, gap: 16 },
41
+ 1367: { columns: 5, gap: 16 }
42
+ }
43
+ },
44
+ /** 响应式布局 - 最小宽度 330px,最多 4 列 */
45
+ responsive330: {
46
+ breakpoints: {
47
+ 0: { columns: 1, gap: 16 },
48
+ 660: { columns: 2, gap: 16 },
49
+ 995: { columns: 3, gap: 16 },
50
+ 1367: { columns: 4, gap: 16 }
51
+ }
52
+ }
53
+ };
33
54
  var PRESET_LAYOUTS = {
34
55
  /** 自动宽度布局 - 内容自适应 */
35
56
  autoFlex: {
36
57
  className: "pisell-pro-selector_layout-auto-flex"
37
58
  },
38
- /** 响应式布局 - 最小宽度 210px */
59
+ /** 响应式布局 - 最小宽度 210px,最多 5 列 */
39
60
  responsive210: {
40
- className: "pisell-pro-selector_layout-responsive-210"
61
+ responsive: RESPONSIVE_PRESETS.responsive210
41
62
  },
42
- /** 响应式布局 - 最小宽度 330px */
63
+ /** 响应式布局 - 最小宽度 330px,最多 4 列 */
43
64
  responsive330: {
44
- className: "pisell-pro-selector_layout-responsive-330"
65
+ responsive: RESPONSIVE_PRESETS.responsive330
45
66
  }
46
67
  };
47
68
  var VARIANT_PRESET_MAP = {
@@ -74,7 +95,7 @@ var usePresetProps = ({
74
95
  return (0, import_react.useMemo)(() => {
75
96
  let layoutConfig = null;
76
97
  if (variant === "select" || !(preset == null ? void 0 : preset.variant)) {
77
- layoutConfig = null;
98
+ layoutConfig = layout || null;
78
99
  } else {
79
100
  let baseLayoutConfig = null;
80
101
  let validVariants = VARIANT_MAP[variant] || [];
@@ -108,7 +129,8 @@ var usePresetProps = ({
108
129
  const shouldUseFilled = variant === "media" || variant === "card" && (preset == null ? void 0 : preset.variant) === "2";
109
130
  if (shouldUseFilled) {
110
131
  computedIndicatorProps = {
111
- variant: "filled"
132
+ variant: "filled",
133
+ size: "small"
112
134
  };
113
135
  }
114
136
  if (indicatorProps) {
@@ -2,7 +2,6 @@
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 12px;
5
- container-type: inline-size; // 启用容器查询
6
5
 
7
6
  &_header {
8
7
  display: flex;
@@ -43,67 +42,4 @@
43
42
  line-height: 34px;
44
43
  }
45
44
  }
46
-
47
- &_options-container {
48
- display: flex;
49
- flex-direction: column;
50
- gap: 16px;
51
- }
52
-
53
- // 自动宽度布局 - 内容自适应
54
- &_layout-auto-flex {
55
- display: flex;
56
- flex-direction: row;
57
- flex-wrap: wrap;
58
- gap: 16px;
59
- }
60
-
61
- // 响应式布局 - 最小宽度 210px
62
- &_layout-responsive-210 {
63
- display: grid;
64
- gap: 16px;
65
- grid-template-columns: 1fr; // 默认一列
66
-
67
- // 容器宽度 >= 420px 且 < 630px: 两列
68
- @container (min-width: 420px) {
69
- grid-template-columns: repeat(2, 1fr);
70
- }
71
-
72
- // 容器宽度 >= 630px 且 <= 840px: 三列
73
- @container (min-width: 630px) {
74
- grid-template-columns: repeat(3, 1fr);
75
- }
76
-
77
- // 容器宽度 >= 841px 且 <= 1366px: 四列
78
- @container (min-width: 841px) {
79
- grid-template-columns: repeat(4, 1fr);
80
- }
81
-
82
- // 容器宽度 > 1366px: 五列
83
- @container (min-width: 1367px) {
84
- grid-template-columns: repeat(5, 1fr);
85
- }
86
- }
87
-
88
- // 响应式布局 - 最小宽度 330px
89
- &_layout-responsive-330 {
90
- display: grid;
91
- gap: 16px;
92
- grid-template-columns: 1fr; // 默认一列
93
-
94
- // 容器宽度 >= 660px 且 < 995px: 两列
95
- @container (min-width: 660px) {
96
- grid-template-columns: repeat(2, 1fr);
97
- }
98
-
99
- // 容器宽度 >= 995px 且 <= 1366px: 三列
100
- @container (min-width: 995px) {
101
- grid-template-columns: repeat(3, 1fr);
102
- }
103
-
104
- // 容器宽度 > 1366px: 四列
105
- @container (min-width: 1367px) {
106
- grid-template-columns: repeat(4, 1fr);
107
- }
108
- }
109
45
  }
@@ -77,10 +77,48 @@ export declare type ItemProps = {
77
77
  [key: string]: any;
78
78
  };
79
79
  export declare type LayoutType = 'antdGrid' | 'custom';
80
+ /** 单个断点的完整配置 */
81
+ export declare type BreakpointConfig = {
82
+ columns: number;
83
+ gap?: number | string;
84
+ style?: React.CSSProperties;
85
+ };
86
+ /**
87
+ * 断点映射
88
+ * key: 最小宽度(px)
89
+ * value: 列数(简写)或完整配置
90
+ * @example { 0: 1, 420: 2, 630: 3 } // 简写
91
+ * @example { 0: { columns: 1, gap: 12 }, 420: { columns: 2, gap: 16 } } // 完整
92
+ */
93
+ export declare type BreakpointMap = Record<number, number | BreakpointConfig>;
94
+ /** 响应式布局配置 */
95
+ export declare type ResponsiveConfig = {
96
+ /** 每项最小宽度,系统自动计算断点 */
97
+ minWidth?: number;
98
+ /** 最大列数限制 */
99
+ maxColumns?: number;
100
+ /**
101
+ * 显式断点映射,key 为容器最小宽度(px)
102
+ * @example { 0: 1, 420: 2, 630: 3, 841: 4, 1367: 5 }
103
+ * @example { 0: { columns: 1, gap: 12 }, 420: { columns: 2, gap: 16 } }
104
+ */
105
+ breakpoints?: BreakpointMap;
106
+ /** 默认列数(容器宽度小于所有断点时),默认为 1 */
107
+ defaultColumns?: number;
108
+ /** 间距,默认为 16 */
109
+ gap?: number | string;
110
+ /** ResizeObserver 防抖延迟(ms),默认为 0 */
111
+ debounce?: number;
112
+ };
80
113
  export declare type LayoutConfig = {
81
114
  type?: LayoutType;
82
115
  className?: string;
83
116
  containerStyle?: React.CSSProperties;
117
+ /**
118
+ * 响应式布局配置
119
+ * 存在此配置时自动启用 ResizeObserver 响应式布局
120
+ */
121
+ responsive?: ResponsiveConfig;
84
122
  columns?: number;
85
123
  gutter?: number | object | Array<number>;
86
124
  align?: 'top' | 'middle' | 'bottom' | 'stretch';
@@ -146,6 +184,7 @@ export interface SelectorProps<T = OptionKey> extends GroupItem {
146
184
  stepperProps?: {
147
185
  size?: 'small' | 'middle' | 'large';
148
186
  shape?: 'round' | 'square';
187
+ horizontalPadding?: number | string;
149
188
  };
150
189
  style?: React.CSSProperties;
151
190
  /**
@@ -153,6 +192,7 @@ export interface SelectorProps<T = OptionKey> extends GroupItem {
153
192
  */
154
193
  titleProps?: HeaderProps;
155
194
  headerProps?: HeaderProps;
195
+ selectProps?: any;
156
196
  }
157
197
  export interface SelectorGroupProps {
158
198
  allowedValuesPolicy?: 'relaxed' | 'strict';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface DeviceIconGroupProps {
4
+ isShowScanner?: boolean;
5
+ isShowCamera?: boolean;
6
+ isShowNFC?: boolean;
7
+ style?: React.CSSProperties;
8
+ className?: string;
9
+ }
10
+ declare const DeviceIconGroup: React.FC<DeviceIconGroupProps>;
11
+ export default DeviceIconGroup;
@@ -0,0 +1,64 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/pro/comprehensiveSearch/components/deviceIconGroup/index.tsx
30
+ var deviceIconGroup_exports = {};
31
+ __export(deviceIconGroup_exports, {
32
+ default: () => deviceIconGroup_default
33
+ });
34
+ module.exports = __toCommonJS(deviceIconGroup_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_materials = require("@pisell/materials");
37
+ var import_useTerminalPeripherals = __toESM(require("../../hooks/useTerminalPeripherals"));
38
+ var import_useNativeScanner = __toESM(require("../../hooks/useNativeScanner"));
39
+ var import_index = require("./index.less");
40
+ var DeviceIconGroup = ({
41
+ isShowScanner = true,
42
+ isShowCamera = true,
43
+ isShowNFC = true,
44
+ style,
45
+ className
46
+ }) => {
47
+ const { peripheralsStatus } = (0, import_useTerminalPeripherals.default)();
48
+ const { isTerminal } = (0, import_useNativeScanner.default)();
49
+ const statusIndicator = (status) => {
50
+ return /* @__PURE__ */ import_react.default.createElement(
51
+ import_materials.Iconfont,
52
+ {
53
+ style: {
54
+ borderRadius: "50%",
55
+ background: status ? "#17B26A" : "#F04438",
56
+ color: "#fff"
57
+ },
58
+ type: status ? "pisell2-check" : "pisell2-x-close"
59
+ }
60
+ );
61
+ };
62
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: `device-icon-group ${className || ""}`, style }, isShowScanner && /* @__PURE__ */ import_react.default.createElement("span", { className: "device-icon-group__icon-item" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-Scanner" }), /* @__PURE__ */ import_react.default.createElement("div", { className: "status-indicator" }, statusIndicator((peripheralsStatus == null ? void 0 : peripheralsStatus.scanner) === "connected"))), isShowNFC && /* @__PURE__ */ import_react.default.createElement("span", { className: "device-icon-group__icon-item" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-NFC" }), /* @__PURE__ */ import_react.default.createElement("div", { className: "status-indicator" }, statusIndicator((peripheralsStatus == null ? void 0 : peripheralsStatus.nfc) === "connected"))), isShowCamera && /* @__PURE__ */ import_react.default.createElement("span", { className: "device-icon-group__icon-item" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-camera" }), /* @__PURE__ */ import_react.default.createElement("div", { className: "status-indicator" }, statusIndicator(isTerminal))));
63
+ };
64
+ var deviceIconGroup_default = DeviceIconGroup;
@@ -0,0 +1,28 @@
1
+ .device-icon-group {
2
+ display: flex;
3
+ gap: 16px;
4
+ align-items: center;
5
+
6
+ &__icon-item {
7
+ display: inline-block;
8
+ width: 40px;
9
+ height: 40px;
10
+ position: relative;
11
+
12
+ .status-indicator {
13
+ position: absolute;
14
+ left: 0;
15
+ bottom: 0;
16
+ font-size: 14px;
17
+ line-height: 14px;
18
+ }
19
+
20
+ > span {
21
+ font-size: 40px;
22
+ }
23
+ > img {
24
+ width: 40px;
25
+ height: 40px;
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,2 @@
1
+ export { default as DeviceIconGroup } from './deviceIconGroup';
2
+ export { default as SearchSection } from './searchSection';
@@ -0,0 +1,42 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/pro/comprehensiveSearch/components/index.tsx
30
+ var components_exports = {};
31
+ __export(components_exports, {
32
+ DeviceIconGroup: () => import_deviceIconGroup.default,
33
+ SearchSection: () => import_searchSection.default
34
+ });
35
+ module.exports = __toCommonJS(components_exports);
36
+ var import_deviceIconGroup = __toESM(require("./deviceIconGroup"));
37
+ var import_searchSection = __toESM(require("./searchSection"));
38
+ // Annotate the CommonJS export names for ESM import in node:
39
+ 0 && (module.exports = {
40
+ DeviceIconGroup,
41
+ SearchSection
42
+ });
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface SearchSectionProps {
4
+ isShowSearchCamera?: boolean;
5
+ searchIcon?: string;
6
+ placeholder?: string;
7
+ isShowSearchButton?: boolean;
8
+ loading?: boolean;
9
+ defaultValue?: string;
10
+ value?: string;
11
+ onChange?: (value: string) => void;
12
+ onSearch?: (value: string) => void | Promise<any>;
13
+ style?: React.CSSProperties;
14
+ className?: string;
15
+ searchButtonProps?: {
16
+ placement?: 'inside' | 'outside';
17
+ style?: React.CSSProperties;
18
+ };
19
+ cameraButtonProps?: {
20
+ icon?: string[];
21
+ };
22
+ }
23
+ declare const SearchSection: React.FC<SearchSectionProps>;
24
+ export default SearchSection;