@pisell/private-materials 6.3.86 → 6.3.87

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 (507) 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/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
  13. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  14. package/es/components/booking/forms/single/index.d.ts +1 -0
  15. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  16. package/es/components/booking/info/service/like/index.d.ts +0 -1
  17. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  18. package/es/components/eftpos/const.d.ts +3 -1
  19. package/es/components/eftpos/const.js +2 -0
  20. package/es/components/eftpos/device.d.ts +3 -1
  21. package/es/components/eftpos/device.js +5 -3
  22. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  23. package/es/components/eftpos/group/index.d.ts +0 -1
  24. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  25. package/es/components/eftpos/icon/device.d.ts +0 -1
  26. package/es/components/eftpos/index.js +34 -11
  27. package/es/components/eftpos/index.less +26 -1
  28. package/es/components/eftpos/locales.d.ts +3 -0
  29. package/es/components/eftpos/locales.js +3 -0
  30. package/es/components/eftpos/pos.d.ts +1 -0
  31. package/es/components/eftpos/receipt/index.d.ts +0 -1
  32. package/es/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +6 -0
  33. package/es/components/eftposPay/aggregatePayment/hooks/usePayment.js +125 -0
  34. package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  35. package/es/components/eftposPay/aggregatePayment/index.js +3 -0
  36. package/es/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
  37. package/es/components/eftposPay/aggregatePayment/mock.js +567 -0
  38. package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  39. package/es/components/eftposPay/aggregatePayment/service.js +70 -0
  40. package/es/components/eftposPay/aggregatePayment/types.d.ts +96 -0
  41. package/es/components/eftposPay/aggregatePayment/types.js +61 -0
  42. package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  43. package/es/components/eftposPay/aggregatePayment/utils/logs.js +385 -0
  44. package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +132 -0
  45. package/es/components/eftposPay/aggregatePayment/utils/payment.js +1127 -0
  46. package/es/components/eftposPay/app.d.ts +1 -1
  47. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  48. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  49. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  50. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  51. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  52. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  53. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  54. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  55. package/es/components/eftposPay/const.d.ts +6 -1
  56. package/es/components/eftposPay/const.js +2 -0
  57. package/es/components/eftposPay/hooks.d.ts +2 -1
  58. package/es/components/eftposPay/hooks.js +12 -0
  59. package/es/components/eftposPay/linkly/index.js +1 -0
  60. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  61. package/es/components/eftposPay/manufacturer.js +4 -0
  62. package/es/components/eftposPay/mx51/Action.d.ts +6 -0
  63. package/es/components/eftposPay/mx51/Action.js +91 -0
  64. package/es/components/eftposPay/mx51/const.d.ts +5 -0
  65. package/es/components/eftposPay/mx51/const.js +69 -0
  66. package/es/components/eftposPay/mx51/index.d.ts +6 -0
  67. package/es/components/eftposPay/mx51/index.js +362 -0
  68. package/es/components/eftposPay/mx51/types.d.ts +136 -0
  69. package/es/components/eftposPay/mx51/types.js +29 -0
  70. package/es/components/eftposPay/mx51/utils.d.ts +10 -0
  71. package/es/components/eftposPay/mx51/utils.js +120 -0
  72. package/es/components/eftposPay/pay.js +7 -2
  73. package/es/components/eftposPay/store/index.d.ts +1 -1
  74. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  75. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  76. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  77. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  78. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  79. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  80. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  81. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  82. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  83. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
  84. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  85. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  86. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  87. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  88. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  89. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  90. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  91. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  92. package/es/components/schedules/products/index.d.ts +1 -0
  93. package/es/components/schedules/resources/index.d.ts +1 -0
  94. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  95. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  96. package/es/components/schedules/schedules/index.d.ts +1 -0
  97. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  98. package/es/hooks/useEngineContext.d.ts +0 -1
  99. package/es/hooks/useEngineContext.js +0 -7
  100. package/es/index.d.ts +1 -5
  101. package/es/index.js +1 -5
  102. package/es/plus/clientName/index.d.ts +0 -1
  103. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  104. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
  105. package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +0 -2
  106. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  107. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  108. package/es/plus/skuOptionsSelection/index.js +2 -2
  109. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +2 -9
  110. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +4 -8
  111. package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  112. package/es/pro/NumericStepper/index.d.ts +3 -28
  113. package/es/pro/NumericStepper/index.js +107 -175
  114. package/es/pro/NumericStepper/index.less +143 -295
  115. package/es/pro/Selector/Selector.js +26 -33
  116. package/es/pro/Selector/components/Card/index.js +3 -2
  117. package/es/pro/Selector/components/Card/index.less +4 -11
  118. package/es/pro/Selector/components/Indicator/index.d.ts +0 -1
  119. package/es/pro/Selector/components/Indicator/index.js +1 -2
  120. package/es/pro/Selector/components/Indicator/index.less +1 -4
  121. package/es/pro/Selector/components/LayoutContainer/index.d.ts +3 -5
  122. package/es/pro/Selector/components/LayoutContainer/index.js +9 -226
  123. package/es/pro/Selector/demo.js +1 -1
  124. package/es/pro/Selector/hooks/usePresetItemProps.js +0 -2
  125. package/es/pro/Selector/hooks/usePresetProps.js +6 -60
  126. package/es/pro/Selector/selector.less +64 -0
  127. package/es/pro/Selector/types.d.ts +0 -40
  128. package/es/pro/pisellPaymentList/example.d.ts +0 -1
  129. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  130. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
  131. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  132. package/lib/components/booking/forms/single/index.d.ts +1 -0
  133. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  134. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  135. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  136. package/lib/components/eftpos/const.d.ts +3 -1
  137. package/lib/components/eftpos/const.js +2 -0
  138. package/lib/components/eftpos/device.d.ts +3 -1
  139. package/lib/components/eftpos/device.js +3 -3
  140. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  141. package/lib/components/eftpos/group/index.d.ts +0 -1
  142. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  143. package/lib/components/eftpos/icon/device.d.ts +0 -1
  144. package/lib/components/eftpos/index.js +20 -5
  145. package/lib/components/eftpos/index.less +26 -1
  146. package/lib/components/eftpos/locales.d.ts +3 -0
  147. package/lib/components/eftpos/locales.js +3 -0
  148. package/lib/components/eftpos/pos.d.ts +1 -0
  149. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  150. package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +6 -0
  151. package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.js +152 -0
  152. package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
  153. package/lib/components/{ecocup/customerList/hooks → eftposPay/aggregatePayment}/index.js +10 -10
  154. package/lib/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
  155. package/lib/components/eftposPay/aggregatePayment/mock.js +679 -0
  156. package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
  157. package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
  158. package/lib/components/eftposPay/aggregatePayment/types.d.ts +96 -0
  159. package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
  160. package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
  161. package/lib/components/eftposPay/aggregatePayment/utils/logs.js +302 -0
  162. package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +132 -0
  163. package/lib/components/eftposPay/aggregatePayment/utils/payment.js +746 -0
  164. package/lib/components/eftposPay/app.d.ts +1 -1
  165. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  166. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  167. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  168. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  169. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  170. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  171. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  172. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  173. package/lib/components/eftposPay/const.d.ts +6 -1
  174. package/lib/components/eftposPay/const.js +2 -0
  175. package/lib/components/eftposPay/hooks.d.ts +2 -1
  176. package/lib/components/eftposPay/hooks.js +16 -0
  177. package/lib/components/eftposPay/linkly/index.js +1 -0
  178. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  179. package/lib/components/eftposPay/manufacturer.js +6 -0
  180. package/lib/components/eftposPay/mx51/Action.d.ts +6 -0
  181. package/lib/components/eftposPay/mx51/Action.js +127 -0
  182. package/lib/components/eftposPay/mx51/const.d.ts +5 -0
  183. package/lib/components/eftposPay/mx51/const.js +85 -0
  184. package/lib/components/eftposPay/mx51/index.d.ts +6 -0
  185. package/lib/components/eftposPay/mx51/index.js +330 -0
  186. package/lib/components/eftposPay/mx51/types.d.ts +136 -0
  187. package/lib/components/{ecocup/cupList/hooks/index.js → eftposPay/mx51/types.js} +17 -17
  188. package/lib/components/eftposPay/mx51/utils.d.ts +10 -0
  189. package/lib/components/eftposPay/mx51/utils.js +114 -0
  190. package/lib/components/eftposPay/pay.js +4 -2
  191. package/lib/components/eftposPay/store/index.d.ts +1 -1
  192. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  193. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  194. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  195. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  196. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  197. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  198. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  199. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  200. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  201. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
  202. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  203. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  204. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  205. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  206. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  207. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  208. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  209. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  210. package/lib/components/schedules/products/index.d.ts +1 -0
  211. package/lib/components/schedules/resources/index.d.ts +1 -0
  212. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  213. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  214. package/lib/components/schedules/schedules/index.d.ts +1 -0
  215. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  216. package/lib/hooks/useEngineContext.d.ts +0 -1
  217. package/lib/hooks/useEngineContext.js +2 -10
  218. package/lib/index.d.ts +1 -5
  219. package/lib/index.js +1 -13
  220. package/lib/plus/clientName/index.d.ts +0 -1
  221. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  222. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
  223. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +0 -2
  224. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  225. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  226. package/lib/plus/skuOptionsSelection/index.js +2 -2
  227. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +2 -9
  228. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +3 -7
  229. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  230. package/lib/pro/NumericStepper/index.d.ts +3 -28
  231. package/lib/pro/NumericStepper/index.js +88 -176
  232. package/lib/pro/NumericStepper/index.less +143 -295
  233. package/lib/pro/Selector/Selector.js +16 -27
  234. package/lib/pro/Selector/components/Card/index.js +1 -9
  235. package/lib/pro/Selector/components/Card/index.less +4 -11
  236. package/lib/pro/Selector/components/Indicator/index.d.ts +0 -1
  237. package/lib/pro/Selector/components/Indicator/index.js +1 -1
  238. package/lib/pro/Selector/components/Indicator/index.less +1 -4
  239. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +3 -5
  240. package/lib/pro/Selector/components/LayoutContainer/index.js +2 -130
  241. package/lib/pro/Selector/demo.js +1 -1
  242. package/lib/pro/Selector/hooks/usePresetItemProps.js +0 -2
  243. package/lib/pro/Selector/hooks/usePresetProps.js +6 -28
  244. package/lib/pro/Selector/selector.less +64 -0
  245. package/lib/pro/Selector/types.d.ts +0 -40
  246. package/lib/pro/pisellPaymentList/example.d.ts +0 -1
  247. package/package.json +5 -5
  248. package/es/components/ecocup/components/AddCustomerModal/index.d.ts +0 -9
  249. package/es/components/ecocup/components/AddCustomerModal/index.js +0 -216
  250. package/es/components/ecocup/components/AddCustomerModal/index.less +0 -9
  251. package/es/components/ecocup/components/CupActionList/index.d.ts +0 -13
  252. package/es/components/ecocup/components/CupActionList/index.js +0 -91
  253. package/es/components/ecocup/components/CupActionList/index.less +0 -102
  254. package/es/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
  255. package/es/components/ecocup/components/CupActionModal/hooks.js +0 -68
  256. package/es/components/ecocup/components/CupActionModal/index.d.ts +0 -14
  257. package/es/components/ecocup/components/CupActionModal/index.js +0 -92
  258. package/es/components/ecocup/components/CupActionModal/index.less +0 -38
  259. package/es/components/ecocup/components/CupInfoCard/index.d.ts +0 -8
  260. package/es/components/ecocup/components/CupInfoCard/index.js +0 -12
  261. package/es/components/ecocup/components/CupInfoCard/index.less +0 -11
  262. package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
  263. package/es/components/ecocup/components/CupStatusModal/hooks.js +0 -68
  264. package/es/components/ecocup/components/CupStatusModal/index.d.ts +0 -13
  265. package/es/components/ecocup/components/CupStatusModal/index.js +0 -147
  266. package/es/components/ecocup/components/CupStatusModal/index.less +0 -35
  267. package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
  268. package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -133
  269. package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -16
  270. package/es/components/ecocup/components/CustomerAndCupModal/index.js +0 -227
  271. package/es/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
  272. package/es/components/ecocup/components/CustomerCard/index.d.ts +0 -7
  273. package/es/components/ecocup/components/CustomerCard/index.js +0 -34
  274. package/es/components/ecocup/components/CustomerCard/index.less +0 -50
  275. package/es/components/ecocup/components/MoreDropdown/index.d.ts +0 -9
  276. package/es/components/ecocup/components/MoreDropdown/index.js +0 -33
  277. package/es/components/ecocup/components/PageHeader/index.d.ts +0 -6
  278. package/es/components/ecocup/components/PageHeader/index.js +0 -37
  279. package/es/components/ecocup/components/PageHeader/index.less +0 -19
  280. package/es/components/ecocup/components/SearchBar/const.d.ts +0 -4
  281. package/es/components/ecocup/components/SearchBar/const.js +0 -16
  282. package/es/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
  283. package/es/components/ecocup/components/SearchBar/hooks.js +0 -184
  284. package/es/components/ecocup/components/SearchBar/index.d.ts +0 -12
  285. package/es/components/ecocup/components/SearchBar/index.js +0 -218
  286. package/es/components/ecocup/components/SearchBar/index.less +0 -88
  287. package/es/components/ecocup/cupList/const.d.ts +0 -133
  288. package/es/components/ecocup/cupList/const.js +0 -306
  289. package/es/components/ecocup/cupList/hooks/index.d.ts +0 -4
  290. package/es/components/ecocup/cupList/hooks/index.js +0 -4
  291. package/es/components/ecocup/cupList/hooks/useColumns.d.ts +0 -43
  292. package/es/components/ecocup/cupList/hooks/useColumns.js +0 -168
  293. package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
  294. package/es/components/ecocup/cupList/hooks/useCupApi.js +0 -172
  295. package/es/components/ecocup/cupList/hooks/useSummary.d.ts +0 -3
  296. package/es/components/ecocup/cupList/hooks/useSummary.js +0 -40
  297. package/es/components/ecocup/cupList/index.d.ts +0 -6
  298. package/es/components/ecocup/cupList/index.js +0 -220
  299. package/es/components/ecocup/cupList/index.less +0 -113
  300. package/es/components/ecocup/cupProject/const.d.ts +0 -7
  301. package/es/components/ecocup/cupProject/const.js +0 -27
  302. package/es/components/ecocup/cupProject/index.d.ts +0 -3
  303. package/es/components/ecocup/cupProject/index.js +0 -103
  304. package/es/components/ecocup/cupProject/index.less +0 -41
  305. package/es/components/ecocup/customerList/const.d.ts +0 -44
  306. package/es/components/ecocup/customerList/const.js +0 -67
  307. package/es/components/ecocup/customerList/hooks/index.d.ts +0 -3
  308. package/es/components/ecocup/customerList/hooks/index.js +0 -3
  309. package/es/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
  310. package/es/components/ecocup/customerList/hooks/useColumns.js +0 -44
  311. package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
  312. package/es/components/ecocup/customerList/hooks/useCustomerApi.js +0 -70
  313. package/es/components/ecocup/customerList/index.d.ts +0 -7
  314. package/es/components/ecocup/customerList/index.js +0 -127
  315. package/es/components/ecocup/customerList/index.less +0 -15
  316. package/es/components/ecocup/hooks.d.ts +0 -49
  317. package/es/components/ecocup/hooks.js +0 -151
  318. package/es/components/ecocup/locales.d.ts +0 -339
  319. package/es/components/ecocup/locales.js +0 -372
  320. package/es/components/ecocup/types.d.ts +0 -103
  321. package/es/components/ecocup/types.js +0 -36
  322. package/es/components/ecocup/utils/scanListener.d.ts +0 -20
  323. package/es/components/ecocup/utils/scanListener.js +0 -107
  324. package/es/plus/orderList/components/BatchActionBar.d.ts +0 -9
  325. package/es/plus/orderList/components/BatchActionBar.js +0 -861
  326. package/es/plus/orderList/components/FilterList.d.ts +0 -8
  327. package/es/plus/orderList/components/FilterList.js +0 -78
  328. package/es/plus/orderList/components/HandleActions.d.ts +0 -5
  329. package/es/plus/orderList/components/HandleActions.js +0 -24
  330. package/es/plus/orderList/components/QuickFilter.d.ts +0 -5
  331. package/es/plus/orderList/components/QuickFilter.js +0 -14
  332. package/es/plus/orderList/components/Reset.d.ts +0 -7
  333. package/es/plus/orderList/components/Reset.js +0 -23
  334. package/es/plus/orderList/components/Toolbar.d.ts +0 -6
  335. package/es/plus/orderList/components/Toolbar.js +0 -57
  336. package/es/plus/orderList/config.d.ts +0 -154
  337. package/es/plus/orderList/config.js +0 -786
  338. package/es/plus/orderList/index.d.ts +0 -9
  339. package/es/plus/orderList/index.js +0 -128
  340. package/es/plus/orderList/index.less +0 -125
  341. package/es/plus/orderList/locales.d.ts +0 -372
  342. package/es/plus/orderList/locales.js +0 -459
  343. package/es/plus/orderList/serve.d.ts +0 -42
  344. package/es/plus/orderList/serve.js +0 -351
  345. package/es/pro/Selector/components/LayoutContainer/index.less +0 -19
  346. package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +0 -11
  347. package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.js +0 -54
  348. package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.less +0 -28
  349. package/es/pro/comprehensiveSearch/components/index.d.ts +0 -2
  350. package/es/pro/comprehensiveSearch/components/index.js +0 -2
  351. package/es/pro/comprehensiveSearch/components/searchSection/index.d.ts +0 -24
  352. package/es/pro/comprehensiveSearch/components/searchSection/index.js +0 -140
  353. package/es/pro/comprehensiveSearch/components/searchSection/index.less +0 -100
  354. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
  355. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +0 -14
  356. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
  357. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -24
  358. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
  359. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -44
  360. package/es/pro/comprehensiveSearch/index.d.ts +0 -7
  361. package/es/pro/comprehensiveSearch/index.js +0 -207
  362. package/es/pro/comprehensiveSearch/index.less +0 -196
  363. package/es/pro/comprehensiveSearch/locales.d.ts +0 -15
  364. package/es/pro/comprehensiveSearch/locales.js +0 -14
  365. package/es/pro/comprehensiveSearch/types.d.ts +0 -32
  366. package/es/pro/comprehensiveSearch/types.js +0 -1
  367. package/es/pro/keyboards/index.d.ts +0 -2
  368. package/es/pro/keyboards/index.js +0 -1
  369. package/es/pro/keyboards/locales.d.ts +0 -24
  370. package/es/pro/keyboards/locales.js +0 -35
  371. package/es/pro/keyboards/numberKeyboard/index.d.ts +0 -16
  372. package/es/pro/keyboards/numberKeyboard/index.js +0 -523
  373. package/es/pro/keyboards/numberKeyboard/index.less +0 -59
  374. package/es/pro/keyboards/numberKeyboard/types.d.ts +0 -63
  375. package/es/pro/keyboards/numberKeyboard/types.js +0 -1
  376. package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +0 -9
  377. package/lib/components/ecocup/components/AddCustomerModal/index.js +0 -212
  378. package/lib/components/ecocup/components/AddCustomerModal/index.less +0 -9
  379. package/lib/components/ecocup/components/CupActionList/index.d.ts +0 -13
  380. package/lib/components/ecocup/components/CupActionList/index.js +0 -116
  381. package/lib/components/ecocup/components/CupActionList/index.less +0 -102
  382. package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
  383. package/lib/components/ecocup/components/CupActionModal/hooks.js +0 -55
  384. package/lib/components/ecocup/components/CupActionModal/index.d.ts +0 -14
  385. package/lib/components/ecocup/components/CupActionModal/index.js +0 -125
  386. package/lib/components/ecocup/components/CupActionModal/index.less +0 -38
  387. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +0 -8
  388. package/lib/components/ecocup/components/CupInfoCard/index.js +0 -43
  389. package/lib/components/ecocup/components/CupInfoCard/index.less +0 -11
  390. package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
  391. package/lib/components/ecocup/components/CupStatusModal/hooks.js +0 -55
  392. package/lib/components/ecocup/components/CupStatusModal/index.d.ts +0 -13
  393. package/lib/components/ecocup/components/CupStatusModal/index.js +0 -140
  394. package/lib/components/ecocup/components/CupStatusModal/index.less +0 -35
  395. package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
  396. package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -89
  397. package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -16
  398. package/lib/components/ecocup/components/CustomerAndCupModal/index.js +0 -178
  399. package/lib/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
  400. package/lib/components/ecocup/components/CustomerCard/index.d.ts +0 -7
  401. package/lib/components/ecocup/components/CustomerCard/index.js +0 -48
  402. package/lib/components/ecocup/components/CustomerCard/index.less +0 -50
  403. package/lib/components/ecocup/components/MoreDropdown/index.d.ts +0 -9
  404. package/lib/components/ecocup/components/MoreDropdown/index.js +0 -68
  405. package/lib/components/ecocup/components/PageHeader/index.d.ts +0 -6
  406. package/lib/components/ecocup/components/PageHeader/index.js +0 -59
  407. package/lib/components/ecocup/components/PageHeader/index.less +0 -19
  408. package/lib/components/ecocup/components/SearchBar/const.d.ts +0 -4
  409. package/lib/components/ecocup/components/SearchBar/const.js +0 -50
  410. package/lib/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
  411. package/lib/components/ecocup/components/SearchBar/hooks.js +0 -135
  412. package/lib/components/ecocup/components/SearchBar/index.d.ts +0 -12
  413. package/lib/components/ecocup/components/SearchBar/index.js +0 -213
  414. package/lib/components/ecocup/components/SearchBar/index.less +0 -88
  415. package/lib/components/ecocup/cupList/const.d.ts +0 -133
  416. package/lib/components/ecocup/cupList/const.js +0 -326
  417. package/lib/components/ecocup/cupList/hooks/index.d.ts +0 -4
  418. package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +0 -43
  419. package/lib/components/ecocup/cupList/hooks/useColumns.js +0 -202
  420. package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
  421. package/lib/components/ecocup/cupList/hooks/useCupApi.js +0 -112
  422. package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +0 -3
  423. package/lib/components/ecocup/cupList/hooks/useSummary.js +0 -75
  424. package/lib/components/ecocup/cupList/index.d.ts +0 -6
  425. package/lib/components/ecocup/cupList/index.js +0 -208
  426. package/lib/components/ecocup/cupList/index.less +0 -113
  427. package/lib/components/ecocup/cupProject/const.d.ts +0 -7
  428. package/lib/components/ecocup/cupProject/const.js +0 -58
  429. package/lib/components/ecocup/cupProject/index.d.ts +0 -3
  430. package/lib/components/ecocup/cupProject/index.js +0 -126
  431. package/lib/components/ecocup/cupProject/index.less +0 -41
  432. package/lib/components/ecocup/customerList/const.d.ts +0 -44
  433. package/lib/components/ecocup/customerList/const.js +0 -93
  434. package/lib/components/ecocup/customerList/hooks/index.d.ts +0 -3
  435. package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
  436. package/lib/components/ecocup/customerList/hooks/useColumns.js +0 -89
  437. package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
  438. package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +0 -56
  439. package/lib/components/ecocup/customerList/index.d.ts +0 -7
  440. package/lib/components/ecocup/customerList/index.js +0 -138
  441. package/lib/components/ecocup/customerList/index.less +0 -15
  442. package/lib/components/ecocup/hooks.d.ts +0 -49
  443. package/lib/components/ecocup/hooks.js +0 -155
  444. package/lib/components/ecocup/locales.d.ts +0 -339
  445. package/lib/components/ecocup/locales.js +0 -389
  446. package/lib/components/ecocup/types.d.ts +0 -103
  447. package/lib/components/ecocup/types.js +0 -57
  448. package/lib/components/ecocup/utils/scanListener.d.ts +0 -20
  449. package/lib/components/ecocup/utils/scanListener.js +0 -90
  450. package/lib/plus/orderList/components/BatchActionBar.d.ts +0 -9
  451. package/lib/plus/orderList/components/BatchActionBar.js +0 -584
  452. package/lib/plus/orderList/components/FilterList.d.ts +0 -8
  453. package/lib/plus/orderList/components/FilterList.js +0 -121
  454. package/lib/plus/orderList/components/HandleActions.d.ts +0 -5
  455. package/lib/plus/orderList/components/HandleActions.js +0 -52
  456. package/lib/plus/orderList/components/QuickFilter.d.ts +0 -5
  457. package/lib/plus/orderList/components/QuickFilter.js +0 -43
  458. package/lib/plus/orderList/components/Reset.d.ts +0 -7
  459. package/lib/plus/orderList/components/Reset.js +0 -58
  460. package/lib/plus/orderList/components/Toolbar.d.ts +0 -6
  461. package/lib/plus/orderList/components/Toolbar.js +0 -68
  462. package/lib/plus/orderList/config.d.ts +0 -154
  463. package/lib/plus/orderList/config.js +0 -764
  464. package/lib/plus/orderList/index.d.ts +0 -9
  465. package/lib/plus/orderList/index.js +0 -132
  466. package/lib/plus/orderList/index.less +0 -125
  467. package/lib/plus/orderList/locales.d.ts +0 -372
  468. package/lib/plus/orderList/locales.js +0 -471
  469. package/lib/plus/orderList/serve.d.ts +0 -42
  470. package/lib/plus/orderList/serve.js +0 -177
  471. package/lib/pro/Selector/components/LayoutContainer/index.less +0 -19
  472. package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +0 -11
  473. package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.js +0 -64
  474. package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.less +0 -28
  475. package/lib/pro/comprehensiveSearch/components/index.d.ts +0 -2
  476. package/lib/pro/comprehensiveSearch/components/index.js +0 -42
  477. package/lib/pro/comprehensiveSearch/components/searchSection/index.d.ts +0 -24
  478. package/lib/pro/comprehensiveSearch/components/searchSection/index.js +0 -153
  479. package/lib/pro/comprehensiveSearch/components/searchSection/index.less +0 -100
  480. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
  481. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +0 -38
  482. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
  483. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -56
  484. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
  485. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -70
  486. package/lib/pro/comprehensiveSearch/index.d.ts +0 -7
  487. package/lib/pro/comprehensiveSearch/index.js +0 -190
  488. package/lib/pro/comprehensiveSearch/index.less +0 -196
  489. package/lib/pro/comprehensiveSearch/locales.d.ts +0 -15
  490. package/lib/pro/comprehensiveSearch/locales.js +0 -38
  491. package/lib/pro/comprehensiveSearch/types.d.ts +0 -32
  492. package/lib/pro/comprehensiveSearch/types.js +0 -17
  493. package/lib/pro/keyboards/index.d.ts +0 -2
  494. package/lib/pro/keyboards/index.js +0 -39
  495. package/lib/pro/keyboards/locales.d.ts +0 -24
  496. package/lib/pro/keyboards/locales.js +0 -47
  497. package/lib/pro/keyboards/numberKeyboard/index.d.ts +0 -16
  498. package/lib/pro/keyboards/numberKeyboard/index.js +0 -400
  499. package/lib/pro/keyboards/numberKeyboard/index.less +0 -59
  500. package/lib/pro/keyboards/numberKeyboard/types.d.ts +0 -63
  501. package/lib/pro/keyboards/numberKeyboard/types.js +0 -17
  502. package/lowcode/eco-cup-list/meta.ts +0 -63
  503. package/lowcode/eco-customer-list/meta.ts +0 -63
  504. package/lowcode/ecocup-cup-list/meta.ts +0 -38
  505. package/lowcode/ecocup-cup-project/meta.ts +0 -35
  506. package/lowcode/ecocup-customer-list/meta.ts +0 -38
  507. package/lowcode/order-list/meta.ts +0 -87
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface FilterListProps {
3
- locales: any;
4
- valueType: number | undefined;
5
- setValueType: (value: any) => void;
6
- }
7
- declare const FilterList: React.FC<FilterListProps>;
8
- export default FilterList;
@@ -1,78 +0,0 @@
1
- import React from 'react';
2
- import { PisellDataSourceContainer } from '@pisell/materials';
3
- import { Form, Button } from 'antd';
4
- import dayjs from 'dayjs';
5
- var useContainerContext = PisellDataSourceContainer.useContainerContext;
6
- var FilterList = function FilterList(_ref) {
7
- var locales = _ref.locales,
8
- valueType = _ref.valueType,
9
- setValueType = _ref.setValueType;
10
- var form = Form.useFormInstance();
11
- var _useContainerContext = useContainerContext(),
12
- serverActions = _useContainerContext.serverActions;
13
- var list = serverActions.list;
14
- var handleTodayClick = function handleTodayClick() {
15
- var today = dayjs();
16
- var params = {
17
- orderDate: [today.startOf('day'), today.endOf('day')],
18
- payment_status: undefined
19
- };
20
- form.setFieldsValue(params);
21
- list.onSearch(params);
22
- setValueType(1);
23
- };
24
- var handleTodayToPayClick = function handleTodayToPayClick() {
25
- var today = dayjs();
26
- var params = {
27
- orderDate: [today.startOf('day'), today.endOf('day')],
28
- payment_status: ["payment_processing", "partially_paid"] // 默认设置为未付款,也可以设置为其他待支付状态
29
- };
30
- form.setFieldsValue(params);
31
- list.onSearch(params);
32
- setValueType(2);
33
- };
34
- var handleTodayRefundsClick = function handleTodayRefundsClick() {
35
- var today = dayjs();
36
- var params = {
37
- orderDate: [today.startOf('day'), today.endOf('day')],
38
- payment_status: ["refunded", "partially_refunded"] // 默认设置为已退款
39
- };
40
- form.setFieldsValue(params);
41
- list.onSearch(params);
42
- setValueType(3);
43
- };
44
- var handleLast7DaysClick = function handleLast7DaysClick() {
45
- var today = dayjs();
46
- var sevenDaysAgo = today.subtract(6, 'day');
47
- var params = {
48
- orderDate: [sevenDaysAgo.startOf('day'), today.endOf('day')],
49
- payment_status: undefined
50
- };
51
- form.setFieldsValue(params);
52
- list.onSearch(params);
53
- setValueType(4);
54
- };
55
- return /*#__PURE__*/React.createElement("div", {
56
- style: {
57
- display: 'flex',
58
- gap: '8px'
59
- }
60
- }, /*#__PURE__*/React.createElement(Button, {
61
- type: "primary",
62
- ghost: valueType !== 1,
63
- onClick: handleTodayClick
64
- }, locales.getText('pisell2.orderList.filterButton.todayOrders')), /*#__PURE__*/React.createElement(Button, {
65
- type: "primary",
66
- ghost: valueType !== 2,
67
- onClick: handleTodayToPayClick
68
- }, locales.getText('pisell2.orderList.filterButton.todayPending')), /*#__PURE__*/React.createElement(Button, {
69
- type: "primary",
70
- ghost: valueType !== 3,
71
- onClick: handleTodayRefundsClick
72
- }, locales.getText('pisell2.orderList.filterButton.todayRefunds')), /*#__PURE__*/React.createElement(Button, {
73
- type: "primary",
74
- ghost: valueType !== 4,
75
- onClick: handleLast7DaysClick
76
- }, locales.getText('pisell2.orderList.filterButton.last7Days')));
77
- };
78
- export default FilterList;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- declare const HandleActions: (props: {
3
- locales: any;
4
- }) => JSX.Element;
5
- export default HandleActions;
@@ -1,24 +0,0 @@
1
- import React, { useMemo } from 'react';
2
- import { PisellDataSourceContainer, PisellSort, PisellFilter } from '@pisell/materials';
3
- import { getFilterButtonList, getSortList } from "../config";
4
- var ColumnsSetting = PisellDataSourceContainer.ColumnsSetting;
5
- var HandleActions = function HandleActions(props) {
6
- var locales = props.locales;
7
- var filterButtonListValue = useMemo(function () {
8
- return {
9
- otherFilter: getFilterButtonList(locales)
10
- };
11
- }, [locales]);
12
- var sortList = useMemo(function () {
13
- return getSortList(locales);
14
- }, [locales]);
15
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ColumnsSetting, null), /*#__PURE__*/React.createElement(PisellSort, {
16
- hasForm: false,
17
- list: sortList
18
- }), /*#__PURE__*/React.createElement(PisellFilter, {
19
- placement: "bottomLeft",
20
- hasForm: false,
21
- value: filterButtonListValue
22
- }));
23
- };
24
- export default HandleActions;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- declare const QuickFilter: (props: {
3
- locales: any;
4
- }) => JSX.Element;
5
- export default QuickFilter;
@@ -1,14 +0,0 @@
1
- import React, { useMemo } from 'react';
2
- import { PisellQuickFilter } from '@pisell/materials';
3
- import { getQuickFilterList } from "../config";
4
- var QuickFilter = function QuickFilter(props) {
5
- var locales = props.locales;
6
- var quickFilterList = useMemo(function () {
7
- return getQuickFilterList(locales);
8
- }, [locales]);
9
- return /*#__PURE__*/React.createElement(PisellQuickFilter, {
10
- hasForm: false,
11
- filterList: quickFilterList
12
- });
13
- };
14
- export default QuickFilter;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Reset: (props: {
3
- locales: any;
4
- setValueType: (value: any) => void;
5
- clearSelectedData: () => void;
6
- }) => JSX.Element;
7
- export default Reset;
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { Button, Form } from 'antd';
3
- import { ReloadOutlined } from '@ant-design/icons';
4
- import { PisellDataSourceContainer } from '@pisell/materials';
5
- var useContainerContext = PisellDataSourceContainer.useContainerContext;
6
- var Reset = function Reset(props) {
7
- var locales = props.locales,
8
- setValueType = props.setValueType,
9
- clearSelectedData = props.clearSelectedData;
10
- var _useContainerContext = useContainerContext(),
11
- list = _useContainerContext.serverActions.list;
12
- var form = Form.useFormInstance();
13
- return /*#__PURE__*/React.createElement(Button, {
14
- icon: /*#__PURE__*/React.createElement(ReloadOutlined, null),
15
- onClick: function onClick() {
16
- form.resetFields();
17
- list.onReset();
18
- setValueType(undefined);
19
- clearSelectedData();
20
- }
21
- }, locales.getText('pisell2.orderList.common.reset'));
22
- };
23
- export default Reset;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Toolbar: (props: {
3
- locales: any;
4
- clearSelectedData: () => void;
5
- }) => JSX.Element;
6
- export default Toolbar;
@@ -1,57 +0,0 @@
1
- var _excluded = ["serverActions", "refManager"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
7
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
8
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import React, { useState } from 'react';
12
- import { PisellToolBar } from '@pisell/materials';
13
- import { Form } from 'antd';
14
- import Reset from "./Reset";
15
- import FilterList from "./FilterList";
16
- import HandleActions from "./HandleActions";
17
- import QuickFilter from "./QuickFilter";
18
- import { PisellDataSourceContainer } from '@pisell/materials';
19
- import dayjs from 'dayjs';
20
- var useContainerContext = PisellDataSourceContainer.useContainerContext;
21
- var Toolbar = function Toolbar(props) {
22
- var locales = props.locales,
23
- clearSelectedData = props.clearSelectedData;
24
- var _useContainerContext = useContainerContext(),
25
- serverActions = _useContainerContext.serverActions,
26
- refManager = _useContainerContext.refManager,
27
- otherProps = _objectWithoutProperties(_useContainerContext, _excluded);
28
- var _useState = useState(undefined),
29
- _useState2 = _slicedToArray(_useState, 2),
30
- valueType = _useState2[0],
31
- setValueType = _useState2[1];
32
- return /*#__PURE__*/React.createElement(Form, _extends({
33
- size: "large",
34
- layout: "vertical",
35
- initialValues: {
36
- orderDate: [dayjs().startOf('day'), dayjs().endOf('day')]
37
- }
38
- }, otherProps), /*#__PURE__*/React.createElement(PisellToolBar, {
39
- topLeft: /*#__PURE__*/React.createElement(QuickFilter, {
40
- locales: locales
41
- }),
42
- topRight: /*#__PURE__*/React.createElement(Reset, {
43
- locales: locales,
44
- setValueType: setValueType,
45
- clearSelectedData: clearSelectedData
46
- }),
47
- bottomLeft: /*#__PURE__*/React.createElement(FilterList, {
48
- valueType: valueType,
49
- setValueType: setValueType,
50
- locales: locales
51
- }),
52
- bottomRight: /*#__PURE__*/React.createElement(HandleActions, {
53
- locales: locales
54
- })
55
- }));
56
- };
57
- export default Toolbar;
@@ -1,154 +0,0 @@
1
- /**
2
- * 获取表格列配置(支持多语言)
3
- * @param locales - 多语言对象
4
- * @returns 表格列配置数组
5
- */
6
- export declare const getTableColumns: (locales: any) => ({
7
- title: any;
8
- dataIndex: string;
9
- key: string;
10
- width: number;
11
- render: (value: any, record: any) => JSX.Element | "-";
12
- isShow?: undefined;
13
- } | {
14
- title: any;
15
- dataIndex: string;
16
- key: string;
17
- width: number;
18
- render: (value: any) => string;
19
- isShow?: undefined;
20
- } | {
21
- title: any;
22
- dataIndex: string;
23
- key: string;
24
- width: number;
25
- isShow: boolean;
26
- render: (value: any) => string;
27
- } | {
28
- title: any;
29
- dataIndex: string;
30
- key: string;
31
- isShow: boolean;
32
- width: number;
33
- render: (value: any, record: any) => JSX.Element;
34
- } | {
35
- title: any;
36
- dataIndex: string;
37
- key: string;
38
- isShow: boolean;
39
- width: number;
40
- render: (value: any) => JSX.Element | "-";
41
- })[];
42
- export declare const getQuickFilterList: (locales: any) => ({
43
- name: string;
44
- type: string;
45
- key: string;
46
- label: any;
47
- other: {
48
- placeholder: any;
49
- allowClear?: undefined;
50
- trigger?: undefined;
51
- style?: undefined;
52
- };
53
- } | {
54
- name: string;
55
- type: string;
56
- key: string;
57
- other: {
58
- allowClear: boolean;
59
- placeholder: any;
60
- trigger: string[];
61
- style: {
62
- width: string;
63
- };
64
- };
65
- label?: undefined;
66
- })[];
67
- export declare const getFilterButtonList: (locales: any) => ({
68
- name: string;
69
- type: string;
70
- key: string;
71
- label: any;
72
- other: {
73
- allowClear: boolean;
74
- mode: string;
75
- placeholder: any;
76
- options: {
77
- label: string;
78
- value: string;
79
- }[];
80
- isSearchServer?: undefined;
81
- showSearch?: undefined;
82
- };
83
- } | {
84
- name: string;
85
- type: string;
86
- key: string;
87
- label: any;
88
- other: {
89
- allowClear: boolean;
90
- isSearchServer: boolean;
91
- showSearch: boolean;
92
- placeholder: any;
93
- options: (params?: string) => Promise<any>;
94
- mode?: undefined;
95
- };
96
- } | {
97
- name: string;
98
- type: string;
99
- key: string;
100
- label: any;
101
- other: {
102
- allowClear: boolean;
103
- mode: string;
104
- placeholder: any;
105
- options: () => Promise<any>;
106
- isSearchServer?: undefined;
107
- showSearch?: undefined;
108
- };
109
- } | {
110
- name: string;
111
- type: string;
112
- key: string;
113
- label: any;
114
- other: {
115
- placeholder: any;
116
- allowClear?: undefined;
117
- mode?: undefined;
118
- options?: undefined;
119
- isSearchServer?: undefined;
120
- showSearch?: undefined;
121
- };
122
- } | {
123
- name: string;
124
- type: string;
125
- key: string;
126
- label: any;
127
- other: {
128
- allowClear: boolean;
129
- mode: string;
130
- isSearchServer: boolean;
131
- showSearch: boolean;
132
- placeholder: any;
133
- options: (params?: string) => Promise<any>;
134
- };
135
- } | {
136
- name: string;
137
- type: string;
138
- key: string;
139
- label: any;
140
- other: {
141
- allowClear: boolean;
142
- placeholder: any;
143
- options: () => Promise<any>;
144
- mode?: undefined;
145
- isSearchServer?: undefined;
146
- showSearch?: undefined;
147
- };
148
- })[];
149
- export declare const getSortList: (locales: any) => {
150
- type: string;
151
- isCustom: boolean;
152
- name: string;
153
- label: any;
154
- }[];