@pisell/materials 6.3.4 → 6.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (347) 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 +4 -4
  6. package/build/lowcode/preview.js +150 -150
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +28 -24
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +34 -30
  11. package/es/components/DragSortList/index.js +6 -6
  12. package/es/components/batch-editor/index.d.ts +1 -0
  13. package/es/components/classicLayout/index.js +4 -5
  14. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  15. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  16. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  17. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
  18. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  19. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  20. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  21. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  22. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  23. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  24. package/es/components/dataSourceComponents/fields/index.d.ts +21 -20
  25. package/es/components/date-picker/datePickerCpt.d.ts +1 -0
  26. package/es/components/filter/index.d.ts +1 -0
  27. package/es/components/icon/index.js +5 -5
  28. package/es/components/iconfont/index.js +1 -1
  29. package/es/components/list/index.d.ts +1 -0
  30. package/es/components/list/index.js +6 -6
  31. package/es/components/lowCodePage/index.d.ts +1 -0
  32. package/es/components/page/index.d.ts +1 -0
  33. package/es/components/pisellAdjustPrice/index.js +5 -1
  34. package/es/components/pisellCardList/index.js +42 -3
  35. package/es/components/pisellCardList/index.less +9 -1
  36. package/es/components/pisellCheckboxGroup/index.js +23 -4
  37. package/es/components/pisellCheckboxGroup/index.less +28 -1
  38. package/es/components/pisellGoodPassCard/index.d.ts +1 -0
  39. package/es/components/pisellGoodPassCard/index.js +17 -5
  40. package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
  41. package/es/components/pisellText/components/Amount/index.js +2 -1
  42. package/es/components/pisellToast/index.js +3 -0
  43. package/es/components/pisellWalletPassCard/index.d.ts +53 -1
  44. package/es/components/pisellWalletPassCard/index.js +333 -75
  45. package/es/components/pisellWalletPassCard/index.less +48 -11
  46. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.js +80 -0
  47. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.less +75 -0
  48. package/es/components/productCard/cartSkuCard/components/MultiDay/index.js +82 -0
  49. package/es/components/productCard/cartSkuCard/components/MultiDay/index.less +31 -0
  50. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.js +56 -0
  51. package/es/components/productCard/cartSkuCard/components/Note/index.js +29 -0
  52. package/es/components/productCard/cartSkuCard/components/Note/index.less +27 -0
  53. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +93 -0
  54. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +117 -0
  55. package/es/components/productCard/cartSkuCard/components/discountReason/index.js +51 -0
  56. package/es/components/productCard/cartSkuCard/components/holders/index.js +32 -0
  57. package/es/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  58. package/es/components/productCard/cartSkuCard/components/packages/index.js +52 -0
  59. package/es/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  60. package/es/components/productCard/cartSkuCard/components/packages/utils.js +40 -0
  61. package/es/components/productCard/cartSkuCard/components/resources/index.js +39 -0
  62. package/es/components/productCard/cartSkuCard/components/resources/index.less +19 -0
  63. package/es/components/productCard/cartSkuCard/components/sales/index.js +57 -0
  64. package/es/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  65. package/es/components/productCard/cartSkuCard/components/specs/index.js +44 -0
  66. package/es/components/productCard/cartSkuCard/components/specs/index.less +34 -0
  67. package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +292 -0
  68. package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +35 -0
  69. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +54 -0
  70. package/es/components/productCard/cartSkuCard/components/timeRange/index.less +38 -0
  71. package/es/components/productCard/cartSkuCard/index.js +201 -0
  72. package/es/components/productCard/cartSkuCard/index.less +33 -0
  73. package/es/components/productCard/cartSkuCard/locales.js +30 -0
  74. package/es/components/productCard/components/Action/index.js +14 -1
  75. package/es/components/productCard/components/Action/index.less +3 -0
  76. package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
  77. package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  78. package/es/components/productCard/components/Header/index.js +23 -8
  79. package/es/components/productCard/components/Header/index.less +16 -1
  80. package/es/components/productCard/components/Note/index.d.ts +1 -0
  81. package/es/components/productCard/components/Packages/index.d.ts +1 -0
  82. package/es/components/productCard/components/Sales/index.js +2 -2
  83. package/es/components/productCard/components/Time/components/SelectHolderModal/index.js +3 -1
  84. package/es/components/productCard/components/Time/components/SelectHolderModal/index.less +3 -0
  85. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  86. package/es/components/productCard/index.d.ts +3 -1
  87. package/es/components/productCard/index.js +5 -2
  88. package/es/components/productCard/index.less +6 -0
  89. package/es/components/productCard/locales.js +3 -0
  90. package/es/components/qrcode/index.d.ts +1 -0
  91. package/es/components/qrcode/index.js +1 -1
  92. package/es/components/sort/components/InlineMenu/index.js +1 -1
  93. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  94. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  95. package/es/components/table/BasicTable/index.d.ts +1 -0
  96. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  97. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
  98. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  99. package/es/components/table/Header/Buttons/index.js +5 -5
  100. package/es/components/table/Table/AddFieldModal/index.js +13 -13
  101. package/es/components/table/Table/AddFieldModal/index.less +11 -11
  102. package/es/components/table/Table/SelectField/index.js +4 -4
  103. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  104. package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
  105. package/es/components/table/Table/fields/index.d.ts +2 -2
  106. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  107. package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
  108. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  109. package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
  110. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  111. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  112. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  113. package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
  114. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  115. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  116. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  117. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  118. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  119. package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
  120. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  121. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  122. package/es/components/translation/utils.js +5 -5
  123. package/es/components/virtual-keyboard/Amount/index.d.ts +1 -0
  124. package/es/components/virtual-keyboard/Number/index.js +4 -1
  125. package/es/components/virtual-keyboard/index.js +88 -3
  126. package/es/components/virtual-keyboard/index.less +33 -1
  127. package/es/components/walletCard/Guide/index.js +12 -1
  128. package/es/hooks/useResponsive.js +2 -2
  129. package/es/index.d.ts +1 -0
  130. package/es/locales/en-US.js +9 -2
  131. package/es/locales/zh-CN.js +9 -2
  132. package/es/locales/zh-TW.js +9 -2
  133. package/es/utils/hoc.js +1 -1
  134. package/es/utils/index.d.ts +1 -1
  135. package/es/utils/miniRedux.js +8 -9
  136. package/lib/components/batch-editor/index.d.ts +1 -0
  137. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  138. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  139. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  140. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
  141. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  142. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  143. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  144. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  145. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  146. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  147. package/lib/components/dataSourceComponents/fields/index.d.ts +21 -20
  148. package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
  149. package/lib/components/filter/index.d.ts +1 -0
  150. package/lib/components/iconfont/index.js +1 -1
  151. package/lib/components/list/index.d.ts +1 -0
  152. package/lib/components/lowCodePage/index.d.ts +1 -0
  153. package/lib/components/lowCodePage/index.js +1 -2
  154. package/lib/components/page/index.d.ts +1 -0
  155. package/lib/components/pisellAdjustPrice/index.js +4 -0
  156. package/lib/components/pisellCardList/index.js +42 -3
  157. package/lib/components/pisellCardList/index.less +9 -1
  158. package/lib/components/pisellCheckboxGroup/index.js +22 -1
  159. package/lib/components/pisellCheckboxGroup/index.less +28 -1
  160. package/lib/components/pisellGoodPassCard/index.d.ts +1 -0
  161. package/lib/components/pisellGoodPassCard/index.js +31 -4
  162. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
  163. package/lib/components/pisellText/components/Amount/index.js +2 -1
  164. package/lib/components/pisellToast/index.js +3 -0
  165. package/lib/components/pisellWalletPassCard/index.d.ts +53 -1
  166. package/lib/components/pisellWalletPassCard/index.js +253 -59
  167. package/lib/components/pisellWalletPassCard/index.less +48 -11
  168. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.js +80 -0
  169. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.less +75 -0
  170. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.js +71 -0
  171. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.less +31 -0
  172. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.js +77 -0
  173. package/lib/components/productCard/cartSkuCard/components/Note/index.js +56 -0
  174. package/lib/components/productCard/cartSkuCard/components/Note/index.less +27 -0
  175. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +82 -0
  176. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +117 -0
  177. package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +70 -0
  178. package/lib/components/productCard/cartSkuCard/components/holders/index.js +52 -0
  179. package/lib/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  180. package/lib/components/productCard/cartSkuCard/components/packages/index.js +73 -0
  181. package/lib/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  182. package/lib/components/productCard/cartSkuCard/components/packages/utils.js +44 -0
  183. package/lib/components/productCard/cartSkuCard/components/resources/index.js +71 -0
  184. package/lib/components/productCard/cartSkuCard/components/resources/index.less +19 -0
  185. package/lib/components/productCard/cartSkuCard/components/sales/index.js +77 -0
  186. package/lib/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  187. package/lib/components/productCard/cartSkuCard/components/specs/index.js +66 -0
  188. package/lib/components/productCard/cartSkuCard/components/specs/index.less +34 -0
  189. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +339 -0
  190. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +35 -0
  191. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +68 -0
  192. package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +38 -0
  193. package/lib/components/productCard/cartSkuCard/index.js +239 -0
  194. package/lib/components/productCard/cartSkuCard/index.less +33 -0
  195. package/lib/components/productCard/cartSkuCard/locales.js +61 -0
  196. package/lib/components/productCard/components/Action/index.js +9 -0
  197. package/lib/components/productCard/components/Action/index.less +3 -0
  198. package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
  199. package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  200. package/lib/components/productCard/components/Header/index.js +21 -11
  201. package/lib/components/productCard/components/Header/index.less +16 -1
  202. package/lib/components/productCard/components/Note/index.d.ts +1 -0
  203. package/lib/components/productCard/components/Packages/index.d.ts +1 -0
  204. package/lib/components/productCard/components/Sales/index.js +2 -2
  205. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.js +1 -1
  206. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.less +3 -0
  207. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  208. package/lib/components/productCard/index.d.ts +3 -1
  209. package/lib/components/productCard/index.js +6 -2
  210. package/lib/components/productCard/index.less +6 -0
  211. package/lib/components/productCard/locales.js +12 -3
  212. package/lib/components/qrcode/index.d.ts +1 -0
  213. package/lib/components/table/BasicTable/index.d.ts +1 -0
  214. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  215. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  216. package/lib/components/table/Table/AddFieldModal/index.js +9 -9
  217. package/lib/components/table/Table/AddFieldModal/index.less +11 -11
  218. package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
  219. package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
  220. package/lib/components/table/Table/fields/index.d.ts +2 -2
  221. package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
  222. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
  223. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  224. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  225. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  226. package/lib/components/table/Table/fields/utils/index.js +1 -2
  227. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  228. package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -0
  229. package/lib/components/virtual-keyboard/Number/index.js +3 -0
  230. package/lib/components/virtual-keyboard/index.js +60 -2
  231. package/lib/components/virtual-keyboard/index.less +33 -1
  232. package/lib/components/walletCard/Guide/index.js +11 -1
  233. package/lib/hooks/useResponsive.js +3 -6
  234. package/lib/index.d.ts +1 -0
  235. package/lib/locales/en-US.js +9 -2
  236. package/lib/locales/zh-CN.js +9 -2
  237. package/lib/locales/zh-TW.js +9 -2
  238. package/lib/utils/index.d.ts +1 -1
  239. package/lowcode/_setters/antd-icon-setter/index.tsx +3 -2
  240. package/lowcode/pisell-card-list/meta.ts +50 -1
  241. package/lowcode/pisell-wallet-pass-card/actionsMeta.ts +7 -0
  242. package/lowcode/virtual-keyboard/meta.ts +131 -0
  243. package/package.json +14 -11
  244. package/dist/umd/materials.min.css +0 -1
  245. package/dist/umd/materials.min.js +0 -1
  246. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  247. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  248. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  249. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  250. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  251. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
  252. package/es/components/appVersionControl/index.d.ts +0 -4
  253. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
  254. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
  255. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  256. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
  257. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
  258. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -10
  259. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -10
  260. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  261. package/es/components/drag-sort-tree/index.d.ts +0 -4
  262. package/es/components/iconfont/index.d.ts +0 -8
  263. package/es/components/login-and-register/index.d.ts +0 -82
  264. package/es/components/pisell-config-provider/context.d.ts +0 -20
  265. package/es/components/pisell-config-provider/index.d.ts +0 -12
  266. package/es/components/pisellAdjustPrice/index.d.ts +0 -4
  267. package/es/components/pisellAdjustPrice/type.d.ts +0 -20
  268. package/es/components/pisellCardList/index.d.ts +0 -73
  269. package/es/components/pisellCheckboxGroup/index.d.ts +0 -36
  270. package/es/components/pisellEmpty/index.d.ts +0 -19
  271. package/es/components/pisellText/components/Amount/index.d.ts +0 -20
  272. package/es/components/pisellToast/index.d.ts +0 -16
  273. package/es/components/productCard/components/Action/index.d.ts +0 -3
  274. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  275. package/es/components/productCard/components/Header/index.d.ts +0 -3
  276. package/es/components/productCard/components/Sales/index.d.ts +0 -3
  277. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  278. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  279. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  280. package/es/components/productCard/components/Time/index.d.ts +0 -3
  281. package/es/components/productCard/locales.d.ts +0 -84
  282. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  283. package/es/components/table/Gallery/index.d.ts +0 -5
  284. package/es/components/table/Table/AddFieldModal/index.d.ts +0 -3
  285. package/es/components/table/Table/index.d.ts +0 -4
  286. package/es/components/table/Table/utils.d.ts +0 -161
  287. package/es/components/table/hooks/useTableSetting.d.ts +0 -22
  288. package/es/components/table/hooks/useTransDataSource.d.ts +0 -11
  289. package/es/components/table/types.d.ts +0 -251
  290. package/es/components/translation/index.d.ts +0 -14
  291. package/es/components/versionModal/index.d.ts +0 -23
  292. package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
  293. package/es/components/virtual-keyboard/Number/types.d.ts +0 -25
  294. package/es/components/virtual-keyboard/index.d.ts +0 -14
  295. package/es/components/walletCard/Guide/index.d.ts +0 -3
  296. package/es/components/walletCard/index.d.ts +0 -67
  297. package/es/locales/en-US.d.ts +0 -278
  298. package/es/locales/zh-CN.d.ts +0 -273
  299. package/es/locales/zh-TW.d.ts +0 -273
  300. package/lib/components/appVersionControl/index.d.ts +0 -4
  301. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
  302. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
  303. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  304. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
  305. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
  306. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -10
  307. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -10
  308. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  309. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  310. package/lib/components/iconfont/index.d.ts +0 -8
  311. package/lib/components/login-and-register/index.d.ts +0 -82
  312. package/lib/components/pisell-config-provider/context.d.ts +0 -20
  313. package/lib/components/pisell-config-provider/index.d.ts +0 -12
  314. package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
  315. package/lib/components/pisellAdjustPrice/type.d.ts +0 -20
  316. package/lib/components/pisellCardList/index.d.ts +0 -73
  317. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -36
  318. package/lib/components/pisellEmpty/index.d.ts +0 -19
  319. package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
  320. package/lib/components/pisellToast/index.d.ts +0 -16
  321. package/lib/components/productCard/components/Action/index.d.ts +0 -3
  322. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  323. package/lib/components/productCard/components/Header/index.d.ts +0 -3
  324. package/lib/components/productCard/components/Sales/index.d.ts +0 -3
  325. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  326. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  327. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  328. package/lib/components/productCard/components/Time/index.d.ts +0 -3
  329. package/lib/components/productCard/locales.d.ts +0 -84
  330. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  331. package/lib/components/table/Gallery/index.d.ts +0 -5
  332. package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -3
  333. package/lib/components/table/Table/index.d.ts +0 -4
  334. package/lib/components/table/Table/utils.d.ts +0 -161
  335. package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
  336. package/lib/components/table/hooks/useTransDataSource.d.ts +0 -11
  337. package/lib/components/table/types.d.ts +0 -251
  338. package/lib/components/translation/index.d.ts +0 -14
  339. package/lib/components/versionModal/index.d.ts +0 -23
  340. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
  341. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -25
  342. package/lib/components/virtual-keyboard/index.d.ts +0 -14
  343. package/lib/components/walletCard/Guide/index.d.ts +0 -3
  344. package/lib/components/walletCard/index.d.ts +0 -67
  345. package/lib/locales/en-US.d.ts +0 -278
  346. package/lib/locales/zh-CN.d.ts +0 -273
  347. package/lib/locales/zh-TW.d.ts +0 -273
@@ -1,9 +1,9 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import { DndContext, PointerSensor, useSensor, useSensors } from "@dnd-kit/core";
8
8
  import { SortableContext, arrayMove, useSortable } from "@dnd-kit/sortable";
9
9
  import { CSS } from "@dnd-kit/utilities";
@@ -41,7 +41,7 @@ export default function Sortable(_ref) {
41
41
  var overIndex = list === null || list === void 0 ? void 0 : list.findIndex(function (i) {
42
42
  return getRowKey(i) === (over === null || over === void 0 ? void 0 : over.id);
43
43
  });
44
- onChange === null || onChange === void 0 ? void 0 : onChange(arrayMove(list, activeIndex, overIndex));
44
+ onChange === null || onChange === void 0 || onChange(arrayMove(list, activeIndex, overIndex));
45
45
  }
46
46
  },
47
47
  sensors: sensors
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface BatchEditorProps {
3
4
  columns: any[];
@@ -1,13 +1,12 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
4
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
5
  import React from "react";
6
6
  import classNames from "classnames";
7
7
  import "./index.less";
8
8
  var prefix = "pisell-lowcode-";
9
9
  var ClassicLayout = function ClassicLayout(props) {
10
- var _classNames2;
11
10
  var header = props.header,
12
11
  content = props.content,
13
12
  footer = props.footer,
@@ -22,7 +21,7 @@ var ClassicLayout = function ClassicLayout(props) {
22
21
  }, /*#__PURE__*/React.createElement("header", {
23
22
  className: classNames(_defineProperty({}, "".concat(prefix, "claseic-layout-fixed-header"), fixedHeader))
24
23
  }, header), content, /*#__PURE__*/React.createElement("footer", {
25
- className: classNames((_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefix, "claseic-layout-fixed-footer"), fixedFooter), _defineProperty(_classNames2, footerClassName, footerClassName), _classNames2)),
24
+ className: classNames(_defineProperty(_defineProperty({}, "".concat(prefix, "claseic-layout-fixed-footer"), fixedFooter), footerClassName, footerClassName)),
26
25
  style: footerStyle
27
26
  }, footer));
28
27
  };
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItem: (props: any) => JSX.Element;
2
3
  export default FormItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface BaseFilterItem {
3
4
  name?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterItemProps } from '../../../filter/types';
2
3
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
3
4
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  declare const useDataSourceKey: () => {
2
- dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
3
- dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
3
+ dataSourceKey: string | undefined;
4
+ dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
4
5
  };
5
6
  export default useDataSourceKey;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
2
3
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
3
4
  export default DataSourceWrapper;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { JsonProps } from "./type";
2
3
  import "./ReadPretty.less";
3
4
  declare const JsonReadPretty: (props: JsonProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PasswordProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const PasswordReadPretty: (props: PasswordProps) => JSX.Element;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: "custom" | "saas" | "xzero";
5
+ rootDomain: "custom" | "xzero" | "saas";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -1,6 +1,6 @@
1
1
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
2
  options?: any;
3
- optionSourceType?: "default" | "custom" | "api" | undefined;
3
+ optionSourceType?: "custom" | "default" | "api" | undefined;
4
4
  labelField: string;
5
5
  valueField: string;
6
6
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UploadProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const UploadReadPretty: (props: UploadProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const formFieldMap: {
2
3
  FormItemCheckbox: import("react").FC<{}> & {
3
4
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -19,7 +20,7 @@ declare const formFieldMap: {
19
20
  Subdomain: import("react").FC<import("antd").InputProps & {
20
21
  onChange: (value: string) => void;
21
22
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
22
- rootDomain: "custom" | "saas" | "xzero";
23
+ rootDomain: "custom" | "xzero" | "saas";
23
24
  customDomain?: string | undefined;
24
25
  value?: string | undefined;
25
26
  tenantId: string;
@@ -34,7 +35,7 @@ declare const formFieldMap: {
34
35
  };
35
36
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
36
37
  options?: any;
37
- optionSourceType?: "default" | "custom" | "api" | undefined;
38
+ optionSourceType?: "custom" | "default" | "api" | undefined;
38
39
  labelField: string;
39
40
  valueField: string;
40
41
  extraParams?: Record<string, any> | undefined;
@@ -59,13 +60,25 @@ declare const formFieldMap: {
59
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
62
  };
62
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
64
+ options?: any;
65
+ optionSourceType?: "custom" | "default" | "api" | undefined;
66
+ labelField: string;
67
+ valueField: string;
68
+ extraParams?: Record<string, any> | undefined;
69
+ } & {
70
+ dataSource?: any;
71
+ }) => JSX.Element) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
72
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
73
+ } & {
74
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
75
+ }) | import("react").FC<import("antd").InputProps & {
76
+ onChange: (value: string) => void;
77
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
63
78
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
79
  } & {
65
80
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
67
- onChange: (value: string) => void;
68
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
81
+ }) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
69
82
  JSON: import("react").FC<any>;
70
83
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
71
84
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -78,24 +91,12 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
78
91
  Subdomain: import("react").FC<import("antd").InputProps & {
79
92
  onChange: (value: string) => void;
80
93
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
81
- rootDomain: "custom" | "saas" | "xzero";
94
+ rootDomain: "custom" | "xzero" | "saas";
82
95
  customDomain?: string | undefined;
83
96
  value?: string | undefined;
84
97
  tenantId: string;
85
98
  name?: string | undefined;
86
99
  fieldKey?: string | undefined;
87
100
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
88
- }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
89
- Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
- } & {
91
- Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
92
- }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
93
- options?: any;
94
- optionSourceType?: "default" | "custom" | "api" | undefined;
95
- labelField: string;
96
- valueField: string;
97
- extraParams?: Record<string, any> | undefined;
98
- } & {
99
- dataSource?: any;
100
- }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
+ });
101
102
  export { getFieldComponent, formFieldMap };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
2
3
  import { Dayjs } from 'dayjs';
3
4
  import './index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterProps } from "./types";
2
3
  declare const Filter: (props: FilterProps) => JSX.Element | null;
3
4
  export default Filter;
@@ -1,11 +1,11 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  var _excluded = ["type", "size", "color"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
6
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
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
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
11
  import React, { forwardRef } from 'react';
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
  import { createFromIconfontCN } from '@ant-design/icons';
3
3
  import React from 'react';
4
4
  var MyIcon = createFromIconfontCN({
5
- scriptUrl: 'https://static.pisellcdn.com/pisell2iconfont1.4.js' // 在 iconfont.cn 上生成
5
+ scriptUrl: 'https://static.pisellcdn.com/pisell2iconfont1.11.js' // 在 iconfont.cn 上生成
6
6
  });
7
7
  var IconFont = function IconFont(props) {
8
8
  return /*#__PURE__*/React.createElement(MyIcon, _extends({}, props, {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const List: {
3
4
  (props: any): JSX.Element;
@@ -1,8 +1,8 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  var _excluded = ["className", "paginationType", "pagination", "footer", "header", "listHeight", "loadMoreData", "arrow"];
3
3
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
6
  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); }
7
7
  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; }
8
8
  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; }
@@ -47,7 +47,7 @@ var List = function List(props) {
47
47
  var position = useScroll(listRef);
48
48
  var isShowDownArrow = useMemo(function () {
49
49
  var _listRef$current, _listRef$current2;
50
- return arrow && (listRef === null || listRef === void 0 ? void 0 : listRef.current) && ((position === null || position === void 0 ? void 0 : position.top) || 0) + (listRef === null || listRef === void 0 ? void 0 : (_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.clientHeight) < ((_listRef$current2 = listRef.current) === null || _listRef$current2 === void 0 ? void 0 : _listRef$current2.scrollHeight);
50
+ return arrow && (listRef === null || listRef === void 0 ? void 0 : listRef.current) && ((position === null || position === void 0 ? void 0 : position.top) || 0) + (listRef === null || listRef === void 0 || (_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.clientHeight) < ((_listRef$current2 = listRef.current) === null || _listRef$current2 === void 0 ? void 0 : _listRef$current2.scrollHeight);
51
51
  }, [position, arrow]);
52
52
  var isShowUpArrow = useMemo(function () {
53
53
  return arrow && ((position === null || position === void 0 ? void 0 : position.top) || 0) > 0;
@@ -90,13 +90,13 @@ var List = function List(props) {
90
90
  }),
91
91
  scrollableTarget: scrollListId
92
92
  }, /*#__PURE__*/React.createElement(AntList, _extends({}, others, {
93
- className: classNames(className, _defineProperty({}, "".concat(prefix, "list-one-line-wrap"), props === null || props === void 0 ? void 0 : (_props$grid = props.grid) === null || _props$grid === void 0 ? void 0 : _props$grid.oneLine))
93
+ className: classNames(className, _defineProperty({}, "".concat(prefix, "list-one-line-wrap"), props === null || props === void 0 || (_props$grid = props.grid) === null || _props$grid === void 0 ? void 0 : _props$grid.oneLine))
94
94
  }))), isShowDownArrow && downArrow), _footer && /*#__PURE__*/React.createElement("div", {
95
95
  className: "".concat(prefix, "scroll-footer-wrap")
96
96
  }, _footer));
97
97
  }
98
98
  return /*#__PURE__*/React.createElement(AntList, _extends({}, props, {
99
- className: classNames(className, _defineProperty({}, "".concat(prefix, "list-one-line-wrap"), props === null || props === void 0 ? void 0 : (_props$grid2 = props.grid) === null || _props$grid2 === void 0 ? void 0 : _props$grid2.oneLine))
99
+ className: classNames(className, _defineProperty({}, "".concat(prefix, "list-one-line-wrap"), props === null || props === void 0 || (_props$grid2 = props.grid) === null || _props$grid2 === void 0 ? void 0 : _props$grid2.oneLine))
100
100
  }));
101
101
  }, [props, _footer, isShowDownArrow, isShowUpArrow, scrollListId]);
102
102
  return list;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type LowCodePageProps = {
2
3
  id: number;
3
4
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ConfigProviderProps } from '../config-provider';
2
3
  interface PageProps extends ConfigProviderProps {
3
4
  }
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["value", "onChange", "defaultValue", "originValue", "selectType"];
2
+ var _excluded = ["value", "onChange", "defaultValue", "originValue", "selectType", "resetText", "doneText"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -31,6 +31,8 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
31
31
  originValue = props.originValue,
32
32
  _props$selectType = props.selectType,
33
33
  selectType = _props$selectType === void 0 ? 'light' : _props$selectType,
34
+ resetText = props.resetText,
35
+ doneText = props.doneText,
34
36
  others = _objectWithoutProperties(props, _excluded);
35
37
  var config = usePisellConfig();
36
38
  var _useState = useState(value || 0),
@@ -177,6 +179,8 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
177
179
  onChange: handleChange,
178
180
  onEnter: handleEnter,
179
181
  placeholder: discountMode === 'amount' ? '0' : '%',
182
+ resetText: resetText,
183
+ doneText: doneText,
180
184
  rightItemsStyle: {
181
185
  buttonBackgroundColor: configColor.buttonBackgroundColor,
182
186
  textColor: configColor.textColor,
@@ -37,7 +37,20 @@ var PisellCardList = function PisellCardList(props) {
37
37
  showValidDate = props.showValidDate,
38
38
  empty = props.empty,
39
39
  showEmpty = props.showEmpty,
40
- showBalanceSymbol = props.showBalanceSymbol;
40
+ showBalanceSymbol = props.showBalanceSymbol,
41
+ onChangeDebounce = props.onChangeDebounce,
42
+ showStatus = props.showStatus,
43
+ nameTitleStyle = props.nameTitleStyle,
44
+ enableEditAmount = props.enableEditAmount,
45
+ useExternalDetail = props.useExternalDetail,
46
+ onDetail = props.onDetail,
47
+ formatBalance = props.formatBalance,
48
+ formatBalanceTitle = props.formatBalanceTitle,
49
+ formatRedeem = props.formatRedeem,
50
+ formatRedeemTitle = props.formatRedeemTitle,
51
+ onBeforeEditAmount = props.onBeforeEditAmount,
52
+ onItemClick = props.onItemClick,
53
+ showActiveBackground = props.showActiveBackground;
41
54
  return data.length ? /*#__PURE__*/React.createElement(PisellCheckboxGroup, {
42
55
  options: data,
43
56
  value: value,
@@ -48,9 +61,17 @@ var PisellCardList = function PisellCardList(props) {
48
61
  onChange: onChange,
49
62
  iconPosition: "hide",
50
63
  fullWidth: fullWidth,
64
+ onChangeDebounce: onChangeDebounce,
65
+ onItemClick: onItemClick,
66
+ showActiveBackground: showActiveBackground,
51
67
  renderOption: function renderOption(item, active, index) {
52
68
  return /*#__PURE__*/React.createElement(PisellWalletPassCard, _extends({}, item, {
53
69
  active: active,
70
+ mode: mode,
71
+ showActiveIcon: true,
72
+ showStatus: showStatus || (item === null || item === void 0 ? void 0 : item.showStatus),
73
+ cardStatus: item === null || item === void 0 ? void 0 : item.cardStatus,
74
+ nameTitleStyle: nameTitleStyle || (item === null || item === void 0 ? void 0 : item.nameTitleStyle),
54
75
  showName: showName || (item === null || item === void 0 ? void 0 : item.showName),
55
76
  showBalance: showBalance || (item === null || item === void 0 ? void 0 : item.showBalance),
56
77
  showCode: showCode || (item === null || item === void 0 ? void 0 : item.showCode),
@@ -63,18 +84,36 @@ var PisellCardList = function PisellCardList(props) {
63
84
  showBalanceSymbol: showBalanceSymbol || (item === null || item === void 0 ? void 0 : item.showBalanceSymbol),
64
85
  showActions: props.showActions || (item === null || item === void 0 ? void 0 : item.showActions),
65
86
  actions: props.actions || (item === null || item === void 0 ? void 0 : item.actions),
87
+ enableEditAmount: enableEditAmount || (item === null || item === void 0 ? void 0 : item.enableEditAmount),
88
+ useExternalDetail: useExternalDetail || (item === null || item === void 0 ? void 0 : item.useExternalDetail),
89
+ onDetail: function onDetail(record) {
90
+ var _props$onDetail;
91
+ return props === null || props === void 0 || (_props$onDetail = props.onDetail) === null || _props$onDetail === void 0 ? void 0 : _props$onDetail.call(props, record, index);
92
+ },
66
93
  beforeEdit: function beforeEdit(record) {
67
94
  var _props$beforeEdit;
68
95
  return props === null || props === void 0 || (_props$beforeEdit = props.beforeEdit) === null || _props$beforeEdit === void 0 ? void 0 : _props$beforeEdit.call(props, record, index);
69
96
  },
97
+ onConfirmEditAmount: function onConfirmEditAmount(value) {
98
+ var _props$onConfirmEditA;
99
+ (_props$onConfirmEditA = props.onConfirmEditAmount) === null || _props$onConfirmEditA === void 0 || _props$onConfirmEditA.call(props, value, index, item);
100
+ },
70
101
  onConfirmEdit: function onConfirmEdit(newVal) {
71
102
  var _props$onConfirmEdit;
72
- (_props$onConfirmEdit = props.onConfirmEdit) === null || _props$onConfirmEdit === void 0 || _props$onConfirmEdit.call(props, newVal, index);
103
+ (_props$onConfirmEdit = props.onConfirmEdit) === null || _props$onConfirmEdit === void 0 || _props$onConfirmEdit.call(props, newVal, index, item);
73
104
  },
105
+ formatBalance: formatBalance || (item === null || item === void 0 ? void 0 : item.formatBalance),
106
+ formatBalanceTitle: formatBalanceTitle || (item === null || item === void 0 ? void 0 : item.formatBalanceTitle),
74
107
  type: type,
75
108
  style: direction === 'vertical' || direction === 'horizontal' && fullWidth ? {
76
109
  width: '100%'
77
- } : {}
110
+ } : {},
111
+ formatRedeem: formatRedeem || (item === null || item === void 0 ? void 0 : item.formatRedeem),
112
+ formatRedeemTitle: formatRedeemTitle || (item === null || item === void 0 ? void 0 : item.formatRedeemTitle),
113
+ onBeforeEditAmount: function onBeforeEditAmount(record) {
114
+ var _props$onBeforeEditAm;
115
+ return props === null || props === void 0 || (_props$onBeforeEditAm = props.onBeforeEditAmount) === null || _props$onBeforeEditAm === void 0 ? void 0 : _props$onBeforeEditAm.call(props, record, index, item);
116
+ }
78
117
  }));
79
118
  }
80
119
  }) : showEmpty && (empty || /*#__PURE__*/React.createElement(PisellEmpty, null));
@@ -72,4 +72,12 @@
72
72
  // .pisell-card-disabled {
73
73
  // color: var(--Gray-500, #667085);
74
74
  // padding-bottom: 36px;
75
- // }
75
+ // }
76
+
77
+ .keyboard-modal-wrapper {
78
+ .pisell-amount-keyboard-wrap {
79
+ padding: 10px;
80
+ background: rgba(29, 41, 57, .8) !important;
81
+ border-radius: 10px;
82
+ }
83
+ }
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["platform", "gap", "style", "options", "onChange", "value", "renderOption", "padding", "rowKey", "mode", "direction", "fullWidth", "iconPosition", "optionClassName", "optionActiveClassName"];
2
+ var _excluded = ["platform", "gap", "style", "options", "onChange", "value", "renderOption", "padding", "rowKey", "mode", "direction", "fullWidth", "iconPosition", "optionClassName", "optionActiveClassName", "onChangeDebounce", "onItemClick", "showActiveBackground"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -18,6 +18,7 @@ import React, { useEffect, useMemo } from 'react';
18
18
  import usePisellConfig from "../pisell-config-provider/hooks/usePisellConfig";
19
19
  import classNames from 'classnames';
20
20
  import { Checkbox, Radio } from 'antd';
21
+ import { useDebounceFn } from "ahooks";
21
22
  import { isNumber } from '@pisell/utils';
22
23
  import { changeArray } from '@pisell/utils';
23
24
  import "./index.less";
@@ -63,6 +64,10 @@ var PisellCheckboxGroup = function PisellCheckboxGroup(props) {
63
64
  iconPosition = _props$iconPosition === void 0 ? 'left' : _props$iconPosition,
64
65
  optionClassName = props.optionClassName,
65
66
  optionActiveClassName = props.optionActiveClassName,
67
+ onChangeDebounce = props.onChangeDebounce,
68
+ onItemClick = props.onItemClick,
69
+ _props$showActiveBack = props.showActiveBackground,
70
+ showActiveBackground = _props$showActiveBack === void 0 ? false : _props$showActiveBack,
66
71
  rest = _objectWithoutProperties(props, _excluded);
67
72
  var _useState = useState([]),
68
73
  _useState2 = _slicedToArray(_useState, 2),
@@ -141,6 +146,14 @@ var PisellCheckboxGroup = function PisellCheckboxGroup(props) {
141
146
  // 单选模式, 只返回第一个值
142
147
  onChange === null || onChange === void 0 || onChange(mode === 'single' ? val[0] : val, item);
143
148
  };
149
+ var _useDebounceFn = useDebounceFn(function (key, item) {
150
+ handleSelectItem(key, item);
151
+ }, {
152
+ wait: 400,
153
+ leading: true,
154
+ trailing: false
155
+ }),
156
+ run = _useDebounceFn.run;
144
157
 
145
158
  /**
146
159
  * @title: 选择
@@ -173,14 +186,20 @@ var PisellCheckboxGroup = function PisellCheckboxGroup(props) {
173
186
  }), options.map(function (option, index) {
174
187
  var active = _value.includes(option[rowKey]);
175
188
  return /*#__PURE__*/React.createElement(PisellRow, {
176
- className: classNames('pisell-checkbox-group-item', optionClassName, _defineProperty({
177
- 'pisell-checkbox-group-item-active': active
178
- }, optionActiveClassName, active)),
189
+ className: classNames('pisell-checkbox-group-item', optionClassName, _defineProperty(_defineProperty({
190
+ 'pisell-checkbox-group-item-active': active,
191
+ 'pisell-checkbox-group-item-with-background': active && showActiveBackground
192
+ }, optionActiveClassName, active), 'pisell-checkbox-group-item-error', option.error)),
179
193
  key: option[rowKey],
180
194
  gap: 10,
181
195
  style: rowStyle,
182
196
  onClick: function onClick(e) {
197
+ onItemClick === null || onItemClick === void 0 || onItemClick(e, option);
183
198
  if (option.disabled) return;
199
+ if (onChangeDebounce) {
200
+ run(option[rowKey], option);
201
+ return;
202
+ }
184
203
  handleSelectItem(option[rowKey], option);
185
204
  },
186
205
  leftContent: iconPosition === 'left' && /*#__PURE__*/React.createElement(CheckBoxItem, {
@@ -24,10 +24,37 @@
24
24
 
25
25
  &.pisell-checkbox-group-item-active {
26
26
  &::before {
27
- border-width: 2px;
27
+ border-width: 4px;
28
28
  border-color: var(--theme-color);
29
+ z-index: 1;
30
+ box-sizing: border-box;
31
+ }
32
+
33
+ // 可选的背景色样式,需要额外的类名才会应用
34
+ &.pisell-checkbox-group-item-with-background {
35
+ &::before {
36
+ background: var(--Primary-50, #F9F5FF);
37
+ }
38
+ }
39
+ .pisell-row-center {
40
+ .pisell-row {
41
+ position: relative;
42
+ z-index: 1;
43
+ }
44
+ }
45
+ .pisell-row-right {
46
+ position: relative;
47
+ z-index: 1;
29
48
  }
49
+ }
30
50
 
51
+ &.pisell-checkbox-group-item-error {
52
+ &::before {
53
+ border-color: var(--Error-500, #F04438);
54
+ border-width: 2px;
55
+ background: var(--Error-50, #FEF3F2);
56
+ z-index: 1;
57
+ }
31
58
  }
32
59
  }
33
60
  }
@@ -44,6 +44,7 @@ export interface PisellGoodPassCardProps {
44
44
  style: React.CSSProperties;
45
45
  /**快捷展示排序 */
46
46
  mixedSort?: (val: Discount[]) => Discount[];
47
+ isInModal: boolean;
47
48
  }
48
49
  declare const index: (props: PisellGoodPassCardProps) => JSX.Element;
49
50
  export default index;