@pisell/materials 6.2.37 → 6.2.38

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 (356) hide show
  1. package/build/lowcode/index.js +1 -1
  2. package/build/lowcode/meta.js +4 -4
  3. package/build/lowcode/preview.js +5 -5
  4. package/build/lowcode/render/default/view.css +1 -1
  5. package/build/lowcode/render/default/view.js +14 -14
  6. package/build/lowcode/view.css +1 -1
  7. package/build/lowcode/view.js +14 -14
  8. package/dist/umd/materials.min.css +1 -0
  9. package/dist/umd/materials.min.js +1 -0
  10. package/dist/umd/static/DotsSix.57d66266.svg +1 -0
  11. package/dist/umd/static/arrow-left.e542294f.svg +1 -0
  12. package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
  13. package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
  14. package/dist/umd/static/help-circle.31c9be40.svg +1 -0
  15. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
  16. package/es/components/auto-complete-number/index.d.ts +0 -1
  17. package/es/components/badge/index.d.ts +0 -1
  18. package/es/components/batch-editor/fields/index.d.ts +0 -1
  19. package/es/components/calendar/index.d.ts +0 -1
  20. package/es/components/cardPro/index.d.ts +0 -1
  21. package/es/components/checkbox/index.d.ts +0 -1
  22. package/es/components/classicLayout/index.d.ts +0 -1
  23. package/es/components/colorPicker/index.d.ts +0 -1
  24. package/es/components/config-provider/index.d.ts +0 -1
  25. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +6 -3
  26. package/es/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
  27. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  28. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  29. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -3
  30. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  31. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +2 -0
  32. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +6 -5
  33. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  34. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +1 -0
  35. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  36. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  37. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  38. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  39. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  40. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
  41. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
  42. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  43. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  44. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  45. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  46. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  47. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
  48. package/es/components/dataSourceComponents/fields/index.d.ts +3 -3
  49. package/es/components/date-picker/datePickerCpt.d.ts +0 -1
  50. package/es/components/date-picker/index.d.ts +0 -1
  51. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
  52. package/es/components/drag-sort-tree/index.d.ts +0 -1
  53. package/es/components/dropdown/index.d.ts +0 -1
  54. package/es/components/filter/components/items/index.d.ts +0 -1
  55. package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
  56. package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
  57. package/es/components/filter/components/items/text/index.d.ts +0 -1
  58. package/es/components/iconfont/index.js +1 -1
  59. package/es/components/lowCodePage/index.d.ts +0 -1
  60. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  61. package/es/components/pisellAdjustPrice/index.d.ts +0 -1
  62. package/es/components/pisellCard/index.d.ts +0 -1
  63. package/es/components/pisellCardList/index.d.ts +1 -21
  64. package/es/components/pisellCardList/index.js +1 -25
  65. package/es/components/pisellCheckboxGroup/index.d.ts +0 -1
  66. package/es/components/pisellCheckboxGroup/index.js +2 -2
  67. package/es/components/pisellCheckboxGroup/index.less +1 -13
  68. package/es/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
  69. package/es/components/pisellDatePicker/index.d.ts +0 -1
  70. package/es/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  71. package/es/components/pisellInput/components/BankCard/index.d.ts +0 -1
  72. package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
  73. package/es/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  74. package/es/components/pisellInput/index.d.ts +0 -1
  75. package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  76. package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  77. package/es/components/pisellModal/components/index.d.ts +0 -1
  78. package/es/components/pisellTooltip/index.d.ts +0 -1
  79. package/es/components/pisellUpload/index.d.ts +0 -1
  80. package/es/components/pisellWalletPassCard/index.d.ts +0 -44
  81. package/es/components/pisellWalletPassCard/index.js +66 -233
  82. package/es/components/pisellWalletPassCard/index.less +7 -37
  83. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  84. package/es/components/productCard/components/AmountFooter/index.d.ts +0 -1
  85. package/es/components/productCard/components/Divider/index.d.ts +0 -1
  86. package/es/components/productCard/components/MultiDay/index.d.ts +0 -1
  87. package/es/components/productCard/components/Note/index.d.ts +0 -1
  88. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  89. package/es/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  90. package/es/components/productCard/components/Packages/index.d.ts +0 -1
  91. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  92. package/es/components/productCard/components/Sales/index.d.ts +0 -1
  93. package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -1
  94. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
  95. package/es/components/qrcode/index.d.ts +0 -1
  96. package/es/components/radio/index.d.ts +0 -1
  97. package/es/components/segmented/index.d.ts +0 -1
  98. package/es/components/select-time/RightPanel/index.d.ts +0 -1
  99. package/es/components/select-time/index.d.ts +0 -1
  100. package/es/components/skeleton/index.d.ts +0 -1
  101. package/es/components/slider/index.d.ts +0 -1
  102. package/es/components/sort/components/InlineMenu/index.d.ts +0 -1
  103. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  104. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  105. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  106. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  107. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  108. package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  109. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  110. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
  111. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  112. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  113. package/es/components/table/Summary/index.d.ts +0 -1
  114. package/es/components/table/Table/AddFieldModal/index.d.ts +0 -1
  115. package/es/components/table/Table/AddFieldModal/index.js +13 -13
  116. package/es/components/table/Table/AddFieldModal/index.less +11 -11
  117. package/es/components/table/Table/fields/date/Config/index.d.ts +0 -1
  118. package/es/components/table/Table/fields/date/Show/index.d.ts +0 -1
  119. package/es/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  120. package/es/components/table/Table/fields/date/index.d.ts +0 -1
  121. package/es/components/table/Table/fields/image/Config/index.d.ts +0 -1
  122. package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
  123. package/es/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  124. package/es/components/table/Table/fields/image/index.d.ts +0 -1
  125. package/es/components/table/Table/fields/link/Config/index.d.ts +0 -1
  126. package/es/components/table/Table/fields/link/Show/index.d.ts +0 -1
  127. package/es/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  128. package/es/components/table/Table/fields/link/index.d.ts +0 -1
  129. package/es/components/table/Table/fields/number/Config/index.d.ts +0 -1
  130. package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
  131. package/es/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  132. package/es/components/table/Table/fields/number/index.d.ts +0 -1
  133. package/es/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  134. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  135. package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  136. package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
  137. package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  138. package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  139. package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  140. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  141. package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  142. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  143. package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  144. package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  145. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  146. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  147. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  148. package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  149. package/es/components/table/Table/fields/search/Config/index.d.ts +0 -1
  150. package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
  151. package/es/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  152. package/es/components/table/Table/fields/search/index.d.ts +0 -1
  153. package/es/components/table/Table/fields/select/Config/index.d.ts +0 -1
  154. package/es/components/table/Table/fields/select/Show/index.d.ts +0 -1
  155. package/es/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  156. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  157. package/es/components/table/Table/fields/text/Config/index.d.ts +0 -1
  158. package/es/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  159. package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  160. package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  161. package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  162. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  163. package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  164. package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  165. package/es/components/table/Table/utils.d.ts +1 -1
  166. package/es/components/table/TableFilter/SortIcon.d.ts +0 -1
  167. package/es/components/time-picker/index.d.ts +0 -1
  168. package/es/components/upload/index.d.ts +0 -1
  169. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -1
  170. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -1
  171. package/es/components/virtual-keyboard/Number/index.d.ts +0 -1
  172. package/es/components/virtual-keyboard/Time/utils.d.ts +0 -1
  173. package/es/components/walletCard/Guest/index.d.ts +0 -1
  174. package/es/components/walletCard/Guide/index.d.ts +0 -1
  175. package/es/index.d.ts +0 -1
  176. package/es/locales/en-US.d.ts +0 -3
  177. package/es/locales/en-US.js +2 -6
  178. package/es/locales/zh-CN.d.ts +0 -3
  179. package/es/locales/zh-CN.js +2 -6
  180. package/es/locales/zh-TW.d.ts +0 -3
  181. package/es/locales/zh-TW.js +2 -6
  182. package/es/utils/index.d.ts +1 -1
  183. package/es/utils/platform.d.ts +1 -1
  184. package/lib/components/auto-complete-number/index.d.ts +0 -1
  185. package/lib/components/badge/index.d.ts +0 -1
  186. package/lib/components/batch-editor/fields/index.d.ts +0 -1
  187. package/lib/components/calendar/index.d.ts +0 -1
  188. package/lib/components/cardPro/index.d.ts +0 -1
  189. package/lib/components/checkbox/index.d.ts +0 -1
  190. package/lib/components/classicLayout/index.d.ts +0 -1
  191. package/lib/components/colorPicker/index.d.ts +0 -1
  192. package/lib/components/config-provider/index.d.ts +0 -1
  193. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +5 -2
  194. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
  195. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  196. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  197. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -3
  198. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  199. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +2 -0
  200. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +6 -5
  201. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  202. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +1 -0
  203. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  204. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  205. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  206. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  207. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  208. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
  209. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
  210. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  211. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  212. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  213. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  214. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  215. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
  216. package/lib/components/dataSourceComponents/fields/index.d.ts +3 -3
  217. package/lib/components/date-picker/datePickerCpt.d.ts +0 -1
  218. package/lib/components/date-picker/index.d.ts +0 -1
  219. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
  220. package/lib/components/drag-sort-tree/index.d.ts +0 -1
  221. package/lib/components/dropdown/index.d.ts +0 -1
  222. package/lib/components/filter/components/items/index.d.ts +0 -1
  223. package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
  224. package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
  225. package/lib/components/filter/components/items/text/index.d.ts +0 -1
  226. package/lib/components/iconfont/index.js +1 -1
  227. package/lib/components/lowCodePage/index.d.ts +0 -1
  228. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  229. package/lib/components/pisellAdjustPrice/index.d.ts +0 -1
  230. package/lib/components/pisellCard/index.d.ts +0 -1
  231. package/lib/components/pisellCardList/index.d.ts +1 -21
  232. package/lib/components/pisellCardList/index.js +1 -25
  233. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -1
  234. package/lib/components/pisellCheckboxGroup/index.js +1 -2
  235. package/lib/components/pisellCheckboxGroup/index.less +1 -13
  236. package/lib/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
  237. package/lib/components/pisellDatePicker/index.d.ts +0 -1
  238. package/lib/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  239. package/lib/components/pisellInput/components/BankCard/index.d.ts +0 -1
  240. package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
  241. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  242. package/lib/components/pisellInput/index.d.ts +0 -1
  243. package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  244. package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  245. package/lib/components/pisellModal/components/index.d.ts +0 -1
  246. package/lib/components/pisellTooltip/index.d.ts +0 -1
  247. package/lib/components/pisellUpload/index.d.ts +0 -1
  248. package/lib/components/pisellWalletPassCard/index.d.ts +0 -44
  249. package/lib/components/pisellWalletPassCard/index.js +48 -187
  250. package/lib/components/pisellWalletPassCard/index.less +7 -37
  251. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  252. package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -1
  253. package/lib/components/productCard/components/Divider/index.d.ts +0 -1
  254. package/lib/components/productCard/components/MultiDay/index.d.ts +0 -1
  255. package/lib/components/productCard/components/Note/index.d.ts +0 -1
  256. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  257. package/lib/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  258. package/lib/components/productCard/components/Packages/index.d.ts +0 -1
  259. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  260. package/lib/components/productCard/components/Sales/index.d.ts +0 -1
  261. package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -1
  262. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
  263. package/lib/components/qrcode/index.d.ts +0 -1
  264. package/lib/components/radio/index.d.ts +0 -1
  265. package/lib/components/segmented/index.d.ts +0 -1
  266. package/lib/components/select-time/RightPanel/index.d.ts +0 -1
  267. package/lib/components/select-time/index.d.ts +0 -1
  268. package/lib/components/skeleton/index.d.ts +0 -1
  269. package/lib/components/slider/index.d.ts +0 -1
  270. package/lib/components/sort/components/InlineMenu/index.d.ts +0 -1
  271. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  272. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  273. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  274. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  275. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  276. package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  277. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  278. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
  279. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  280. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  281. package/lib/components/table/Summary/index.d.ts +0 -1
  282. package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -1
  283. package/lib/components/table/Table/AddFieldModal/index.js +9 -9
  284. package/lib/components/table/Table/AddFieldModal/index.less +11 -11
  285. package/lib/components/table/Table/fields/date/Config/index.d.ts +0 -1
  286. package/lib/components/table/Table/fields/date/Show/index.d.ts +0 -1
  287. package/lib/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  288. package/lib/components/table/Table/fields/date/index.d.ts +0 -1
  289. package/lib/components/table/Table/fields/image/Config/index.d.ts +0 -1
  290. package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
  291. package/lib/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  292. package/lib/components/table/Table/fields/image/index.d.ts +0 -1
  293. package/lib/components/table/Table/fields/link/Config/index.d.ts +0 -1
  294. package/lib/components/table/Table/fields/link/Show/index.d.ts +0 -1
  295. package/lib/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  296. package/lib/components/table/Table/fields/link/index.d.ts +0 -1
  297. package/lib/components/table/Table/fields/number/Config/index.d.ts +0 -1
  298. package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
  299. package/lib/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  300. package/lib/components/table/Table/fields/number/index.d.ts +0 -1
  301. package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  302. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  303. package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  304. package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
  305. package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  306. package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  307. package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  308. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  309. package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  310. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  311. package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  312. package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  313. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  314. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  315. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  316. package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  317. package/lib/components/table/Table/fields/search/Config/index.d.ts +0 -1
  318. package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
  319. package/lib/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  320. package/lib/components/table/Table/fields/search/index.d.ts +0 -1
  321. package/lib/components/table/Table/fields/select/Config/index.d.ts +0 -1
  322. package/lib/components/table/Table/fields/select/Show/index.d.ts +0 -1
  323. package/lib/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  324. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  325. package/lib/components/table/Table/fields/text/Config/index.d.ts +0 -1
  326. package/lib/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  327. package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  328. package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  329. package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  330. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  331. package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  332. package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  333. package/lib/components/table/Table/utils.d.ts +1 -1
  334. package/lib/components/table/TableFilter/SortIcon.d.ts +0 -1
  335. package/lib/components/time-picker/index.d.ts +0 -1
  336. package/lib/components/upload/index.d.ts +0 -1
  337. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -1
  338. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -1
  339. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
  340. package/lib/components/virtual-keyboard/Time/utils.d.ts +0 -1
  341. package/lib/components/walletCard/Guest/index.d.ts +0 -1
  342. package/lib/components/walletCard/Guide/index.d.ts +0 -1
  343. package/lib/index.d.ts +0 -1
  344. package/lib/locales/en-US.d.ts +0 -3
  345. package/lib/locales/en-US.js +2 -6
  346. package/lib/locales/zh-CN.d.ts +0 -3
  347. package/lib/locales/zh-CN.js +2 -6
  348. package/lib/locales/zh-TW.d.ts +0 -3
  349. package/lib/locales/zh-TW.js +2 -6
  350. package/lib/utils/index.d.ts +1 -1
  351. package/lib/utils/platform.d.ts +1 -1
  352. package/lowcode/data-source-table/meta.ts +14 -0
  353. package/lowcode/form-item-input.password/meta.ts +5 -0
  354. package/lowcode/pisell-card-list/meta.ts +1 -50
  355. package/lowcode/pisell-wallet-pass-card/actionsMeta.ts +0 -7
  356. package/package.json +10 -11
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { UploadProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface PisellUploadProps extends UploadProps {
@@ -1,13 +1,4 @@
1
- import React from 'react';
2
1
  import './index.less';
3
- export interface FormatOption {
4
- /** 原始 DOM 元素 */
5
- originDom: React.ReactNode;
6
- /** 是否选中状态 */
7
- active: boolean;
8
- /** 完整的组件数据 */
9
- data: PisellWalletPassCardProps;
10
- }
11
2
  export interface PisellWalletPassCardProps {
12
3
  id: number;
13
4
  /** 卡片样式 */
@@ -87,41 +78,6 @@ export interface PisellWalletPassCardProps {
87
78
  beforeEdit?: (value: any) => Promise<any> | boolean | void;
88
79
  /** 编辑弹窗点击提交 */
89
80
  onConfirmEdit?: (value: any) => void;
90
- /** 编辑金额事件 */
91
- onConfirmEditAmount?: (value: string) => void;
92
- /** 详情按钮点击事件 */
93
- onDetail?: (data: {
94
- id: number;
95
- name: string;
96
- storeName: string;
97
- balance?: number;
98
- redeem?: number;
99
- code: string;
100
- validDate: string;
101
- originData?: any;
102
- }) => void;
103
- /** 是否使用外部详情处理(当为 true 且提供了 onDetail 时,不显示内部模态框) */
104
- useExternalDetail?: boolean;
105
- /** 单选或者多选 */
106
- mode?: 'multiple' | 'single';
107
- /** 是否展示选中图标 */
108
- showActiveIcon?: boolean;
109
- /** 开启编辑金额 */
110
- enableEditAmount?: boolean;
111
- /** 显示状态标识 */
112
- showStatus?: boolean;
113
- /** 名称标题字号字重颜色配置 */
114
- nameTitleStyle?: {
115
- fontSize: number;
116
- fontWeight: number;
117
- color: string;
118
- };
119
- /** 卡片状态 */
120
- cardStatus?: 'used' | 'expired' | 'disabled';
121
- /** 自定义余额格式化函数,如果提供则优先使用 */
122
- formatBalance?: (balance?: number, option?: FormatOption) => React.ReactNode;
123
- /** 自定义余额标题格式化函数,如果提供则优先使用 */
124
- formatBalanceTitle?: (balanceTitle?: string, option?: FormatOption) => React.ReactNode;
125
81
  [key: string]: any;
126
82
  }
127
83
  declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => JSX.Element;
@@ -1,27 +1,25 @@
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
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
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; }
6
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; }
7
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; }
8
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
9
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
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
8
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
9
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
10
10
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11
11
  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."); }
12
12
  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); }
13
13
  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; }
14
14
  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; } }
15
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
- import React, { useEffect, useMemo, useRef } from 'react';
17
- import { useSize } from 'ahooks';
16
+ import React, { useEffect, useMemo } from 'react';
18
17
  import classNames from 'classnames';
19
18
  import { CheckCircleFilled, EditOutlined, ExclamationCircleOutlined, MoreOutlined } from '@ant-design/icons';
20
- import { Dropdown, Form, Input, InputNumber, DatePicker, Radio } from 'antd';
19
+ import { Dropdown, Form, Input, InputNumber, DatePicker } from 'antd';
21
20
  import dayjs from 'dayjs';
22
21
  import Iconfont from "../iconfont";
23
- import { PisellModal, PisellNumberKeyboard } from "../../index";
24
- import PisellTag from "../pisellTags";
22
+ import { PisellModal } from "../../index";
25
23
  import Amount from "../pisellText/components/Amount";
26
24
 
27
25
  // @ts-ignore
@@ -29,11 +27,6 @@ import Amount from "../pisellText/components/Amount";
29
27
  import "./index.less";
30
28
  import { getText } from "../../locales";
31
29
  import PisellQrcode from "./../pisellQrcode";
32
- var cardStatusMap = {
33
- used: 'warning',
34
- expired: 'error',
35
- disabled: 'gray'
36
- };
37
30
  var PisellWalletPassCard = function PisellWalletPassCard(props) {
38
31
  var _React$useState = React.useState(false),
39
32
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -49,24 +42,16 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
49
42
  var _Form$useForm3 = Form.useForm(),
50
43
  _Form$useForm4 = _slicedToArray(_Form$useForm3, 1),
51
44
  form2 = _Form$useForm4[0];
52
- var _React$useState5 = React.useState(''),
53
- _React$useState6 = _slicedToArray(_React$useState5, 2),
54
- tempAmount = _React$useState6[0],
55
- setTempAmount = _React$useState6[1];
56
- var _React$useState7 = React.useState(false),
57
- _React$useState8 = _slicedToArray(_React$useState7, 2),
58
- isKeyboardOpen = _React$useState8[0],
59
- setIsKeyboardOpen = _React$useState8[1];
60
45
  // 双击
61
- var _React$useState9 = React.useState(0),
62
- _React$useState10 = _slicedToArray(_React$useState9, 2),
63
- lastTap = _React$useState10[0],
64
- setLastTap = _React$useState10[1];
46
+ var _React$useState5 = React.useState(0),
47
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
48
+ lastTap = _React$useState6[0],
49
+ setLastTap = _React$useState6[1];
65
50
  // 长按
66
- var _React$useState11 = React.useState(null),
67
- _React$useState12 = _slicedToArray(_React$useState11, 2),
68
- pressTimer = _React$useState12[0],
69
- setPressTimer = _React$useState12[1];
51
+ var _React$useState7 = React.useState(null),
52
+ _React$useState8 = _slicedToArray(_React$useState7, 2),
53
+ pressTimer = _React$useState8[0],
54
+ setPressTimer = _React$useState8[1];
70
55
 
71
56
  // 添加 useEffect 清理定时器
72
57
  useEffect(function () {
@@ -121,74 +106,27 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
121
106
  actions = props.actions,
122
107
  beforeEdit = props.beforeEdit,
123
108
  onConfirmEdit = props.onConfirmEdit,
124
- onConfirmEditAmount = props.onConfirmEditAmount,
125
- onDetail = props.onDetail,
126
- _props$useExternalDet = props.useExternalDetail,
127
- useExternalDetail = _props$useExternalDet === void 0 ? false : _props$useExternalDet,
128
109
  originData = props.originData,
129
110
  _props$style = props.style,
130
- style = _props$style === void 0 ? {} : _props$style,
131
- _props$mode = props.mode,
132
- mode = _props$mode === void 0 ? 'multiple' : _props$mode,
133
- showActiveIcon = props.showActiveIcon,
134
- enableEditAmount = props.enableEditAmount,
135
- showStatus = props.showStatus,
136
- cardStatus = props.cardStatus,
137
- nameTitleStyle = props.nameTitleStyle,
138
- formatBalance = props.formatBalance,
139
- formatBalanceTitle = props.formatBalanceTitle;
111
+ style = _props$style === void 0 ? {} : _props$style;
140
112
  useEffect(function () {
141
113
  document.body.id = 'body';
142
114
  }, []);
143
-
144
- // 创建ref来获取actions-btn-wrapper的尺寸
145
- var actionsWrapperRef = useRef(null);
146
- var actionsWrapperSize = useSize(actionsWrapperRef);
147
115
  var isMini = useMemo(function () {
148
116
  return 'mini' === type;
149
117
  }, [type]);
150
-
151
- // 动态计算pisell-card-name-wrap的宽度
152
- var dynamicNameWrapStyle = useMemo(function () {
153
- var actionsWidth = (actionsWrapperSize === null || actionsWrapperSize === void 0 ? void 0 : actionsWrapperSize.width) || 0;
154
- var baseStyle = nameTitleStyle || {};
155
- if (actionsWidth > 0) {
156
- return _objectSpread(_objectSpread({}, baseStyle), {}, {
157
- width: "calc(100% - ".concat(actionsWidth + 8, "px)") // 添加8px的边距
158
- });
159
- }
160
- return _objectSpread(_objectSpread({}, baseStyle), {}, {
161
- width: isMini ? 'calc(100% - 96px)' : 'calc(100% - 80px)' // 使用默认宽度
162
- });
163
- }, [nameTitleStyle, actionsWrapperSize === null || actionsWrapperSize === void 0 ? void 0 : actionsWrapperSize.width, isMini]);
164
- var handleDetail = function handleDetail() {
118
+ var onDetail = function onDetail() {
165
119
  var _actions$detail;
166
120
  if (disabled || disabledReason || !(actions !== null && actions !== void 0 && (_actions$detail = actions.detail) !== null && _actions$detail !== void 0 && _actions$detail.visible)) return;
167
-
168
- // 如果设置了使用外部详情处理且提供了 onDetail 回调,则调用外部回调
169
- if (useExternalDetail && onDetail) {
170
- onDetail({
171
- id: id,
172
- name: name,
173
- storeName: storeName,
174
- balance: balance,
175
- redeem: redeem,
176
- code: code,
177
- validDate: validDate,
178
- originData: originData
179
- });
180
- } else {
181
- // 否则使用内部模态框
182
- form2.setFieldsValue({
183
- name: name,
184
- storeName: storeName,
185
- balance: balance,
186
- redeem: redeem,
187
- code: code,
188
- validDate: validDate
189
- });
190
- setIsShowDetail(true);
191
- }
121
+ form2.setFieldsValue({
122
+ name: name,
123
+ storeName: storeName,
124
+ balance: balance,
125
+ redeem: redeem,
126
+ code: code,
127
+ validDate: validDate
128
+ });
129
+ setIsShowDetail(true);
192
130
  };
193
131
  var onEdit = /*#__PURE__*/function () {
194
132
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
@@ -291,7 +229,7 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
291
229
  var DOUBLE_TAP_DELAY = 300; // 双击间隔阈值
292
230
 
293
231
  if (now - lastTap < DOUBLE_TAP_DELAY) {
294
- handleDetail();
232
+ onDetail();
295
233
  }
296
234
  setLastTap(now);
297
235
  };
@@ -316,23 +254,22 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
316
254
  };
317
255
  var renderActions = function renderActions() {
318
256
  if (disabled || disabledReason) return null;
319
- if ((!showActions || !actions) && !showStatus) return null;
320
- if ('collapsed' === (actions === null || actions === void 0 ? void 0 : actions.layout)) {
321
- var _actions$detail2, _actions$edit4;
257
+ if (!showActions || !actions) return null;
258
+ if ('collapsed' === actions.layout) {
322
259
  var items = [];
323
- if (actions !== null && actions !== void 0 && actions.detail && actions !== null && actions !== void 0 && (_actions$detail2 = actions.detail) !== null && _actions$detail2 !== void 0 && _actions$detail2.visible) {
260
+ if (actions.detail && actions.detail.visible) {
324
261
  items.push({
325
262
  key: 'detail',
326
263
  label: /*#__PURE__*/React.createElement("div", {
327
264
  className: "pisell-card-actions-dropdown-detail",
328
265
  onClick: function onClick(e) {
329
266
  stop(e);
330
- handleDetail();
267
+ onDetail();
331
268
  }
332
269
  }, /*#__PURE__*/React.createElement("span", null, getText('pisell-wallet-pass-card-detail')))
333
270
  });
334
271
  }
335
- if (actions !== null && actions !== void 0 && actions.edit && actions !== null && actions !== void 0 && (_actions$edit4 = actions.edit) !== null && _actions$edit4 !== void 0 && _actions$edit4.visible) {
272
+ if (actions.edit && actions.edit.visible) {
336
273
  items.push({
337
274
  key: 'edit',
338
275
  label: /*#__PURE__*/React.createElement("div", {
@@ -362,32 +299,21 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
362
299
  }
363
300
  })));
364
301
  }
365
- if ('expanded' === (actions === null || actions === void 0 ? void 0 : actions.layout) || showStatus) {
366
- var _actions$detail3, _actions$edit5;
302
+ if ('expanded' === actions.layout) {
367
303
  return /*#__PURE__*/React.createElement("div", {
368
- className: "actions-btn-wrapper",
369
- ref: actionsWrapperRef
370
- }, showStatus && cardStatus && /*#__PURE__*/React.createElement("div", {
371
- className: "pisell-card-status-icon"
372
- }, /*#__PURE__*/React.createElement(PisellTag, {
373
- style: {
374
- borderRadius: '6px',
375
- padding: '2px 8px'
376
- },
377
- type: "pill_color",
378
- color: cardStatusMap[cardStatus]
379
- }, getText("pisell-wallet-pass-card-status-".concat(cardStatus)))), (actions === null || actions === void 0 ? void 0 : actions.detail) && (actions === null || actions === void 0 || (_actions$detail3 = actions.detail) === null || _actions$detail3 === void 0 ? void 0 : _actions$detail3.visible) && /*#__PURE__*/React.createElement("div", {
304
+ className: "actions-btn-wrapper"
305
+ }, actions.detail && actions.detail.visible && /*#__PURE__*/React.createElement("div", {
380
306
  className: "pisell-card-actions-detail-btn",
381
307
  onClick: function onClick(e) {
382
308
  stop(e);
383
- handleDetail();
309
+ onDetail();
384
310
  }
385
311
  }, /*#__PURE__*/React.createElement(ExclamationCircleOutlined, {
386
312
  style: {
387
313
  fontSize: 24,
388
314
  color: actions.detail.iconColor || '#1570EF'
389
315
  }
390
- })), (actions === null || actions === void 0 ? void 0 : actions.edit) && (actions === null || actions === void 0 || (_actions$edit5 = actions.edit) === null || _actions$edit5 === void 0 ? void 0 : _actions$edit5.visible) && /*#__PURE__*/React.createElement("div", {
316
+ })), actions.edit && actions.edit.visible && /*#__PURE__*/React.createElement("div", {
391
317
  className: "pisell-card-actions-edit-btn",
392
318
  onClick: function onClick(e) {
393
319
  stop(e);
@@ -403,65 +329,32 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
403
329
  };
404
330
  var renderNameInfo = function renderNameInfo() {
405
331
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
406
- className: "pisell-card-name-wrap",
407
- style: dynamicNameWrapStyle
332
+ className: "pisell-card-name-wrap"
408
333
  }, showName && name), /*#__PURE__*/React.createElement("div", {
409
334
  className: "pisell-card-store-name"
410
335
  }, showStoreName && storeName));
411
336
  };
412
- var handleEditAmount = function handleEditAmount(e) {
413
- e.stopPropagation();
414
- if (enableEditAmount && !disabled) {
415
- setIsKeyboardOpen(true);
416
- setTempAmount((redeem === null || redeem === void 0 ? void 0 : redeem.toString()) || '');
417
- }
418
- };
419
-
420
- // 创建原始余额标题 DOM 的辅助函数
421
- var createOriginalBalanceTitleDom = function createOriginalBalanceTitleDom() {
422
- return /*#__PURE__*/React.createElement("div", {
423
- className: "pisell-card-amount-item-label"
424
- }, formatBalanceTitle ? formatBalanceTitle(balanceTitle, {
425
- originDom: /*#__PURE__*/React.createElement(React.Fragment, null, balanceTitle || getText('pisell-wallet-pass-card-balance')),
426
- active: active,
427
- data: props
428
- }) : balanceTitle || getText('pisell-wallet-pass-card-balance'), disabled || isMini ? ': ' : '');
429
- };
430
-
431
- // 创建原始余额 DOM 的辅助函数
432
- var createOriginalBalanceDom = function createOriginalBalanceDom() {
433
- return /*#__PURE__*/React.createElement(Amount, {
434
- className: "pisell-card-amount-item-value",
435
- useThousandsSeparator: true,
436
- value: balance,
437
- showCurrencySymbol: showBalanceSymbol
438
- });
439
- };
440
337
  var renderBalanceInfo = function renderBalanceInfo() {
441
338
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
442
339
  className: "pisell-card-amount-wrap"
443
340
  }, showRedeem && !disabled && /*#__PURE__*/React.createElement("div", {
444
341
  className: "pisell-card-amount-item pisell-wallet-pass-card-redeem"
445
342
  }, /*#__PURE__*/React.createElement("div", {
446
- className: "pisell-card-amount-item-label",
447
- onClick: handleEditAmount
448
- }, enableEditAmount && /*#__PURE__*/React.createElement(Iconfont, {
449
- type: "pisell2-edit-05",
450
- className: "pisell-card-amount-item-label-icon"
451
- }), /*#__PURE__*/React.createElement("span", {
452
- className: "pisell-card-amount-item-label-text"
453
- }, redeemTitle || getText('pisell-wallet-pass-card-redeem'), isMini ? ': ' : '')), /*#__PURE__*/React.createElement(Amount, {
343
+ className: "pisell-card-amount-item-label"
344
+ }, redeemTitle || getText('pisell-wallet-pass-card-redeem'), isMini ? ': ' : ''), /*#__PURE__*/React.createElement(Amount, {
454
345
  className: "pisell-card-amount-item-value",
455
346
  useThousandsSeparator: true,
456
- value: redeem,
457
- onClick: handleEditAmount
347
+ value: redeem
458
348
  })), showBalance && /*#__PURE__*/React.createElement("div", {
459
349
  className: "pisell-card-amount-item pisell-wallet-pass-card-balance"
460
- }, createOriginalBalanceTitleDom(), formatBalance ? formatBalance(balance, {
461
- originDom: createOriginalBalanceDom(),
462
- active: active,
463
- data: props
464
- }) : createOriginalBalanceDom()), showDiscount && /*#__PURE__*/React.createElement("div", {
350
+ }, /*#__PURE__*/React.createElement("div", {
351
+ className: "pisell-card-amount-item-label"
352
+ }, balanceTitle || getText('pisell-wallet-pass-card-balance'), disabled || isMini ? ': ' : ''), /*#__PURE__*/React.createElement(Amount, {
353
+ className: "pisell-card-amount-item-value",
354
+ useThousandsSeparator: true,
355
+ value: balance,
356
+ showCurrencySymbol: showBalanceSymbol
357
+ })), showDiscount && /*#__PURE__*/React.createElement("div", {
465
358
  className: "pisell-card-amount-item"
466
359
  }, /*#__PURE__*/React.createElement("div", {
467
360
  className: "pisell-card-amount-item-label"
@@ -502,9 +395,9 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
502
395
  });
503
396
  };
504
397
  var renderEditModal = function renderEditModal() {
505
- var _actions$edit6, _actions$edit7;
398
+ var _actions$edit4, _actions$edit5;
506
399
  return /*#__PURE__*/React.createElement(PisellModal, {
507
- title: (actions === null || actions === void 0 || (_actions$edit6 = actions.edit) === null || _actions$edit6 === void 0 ? void 0 : _actions$edit6.dialogTitle) || getText('pisell-wallet-pass-card-edit'),
400
+ title: (actions === null || actions === void 0 || (_actions$edit4 = actions.edit) === null || _actions$edit4 === void 0 ? void 0 : _actions$edit4.dialogTitle) || getText('pisell-wallet-pass-card-edit'),
508
401
  open: isShowEdit,
509
402
  className: "pisell-wallet-pass-card-edit-modal",
510
403
  onCancel: function onCancel() {
@@ -521,7 +414,7 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
521
414
  style: {
522
415
  padding: '16px 0'
523
416
  }
524
- }, Array.isArray(actions === null || actions === void 0 || (_actions$edit7 = actions.edit) === null || _actions$edit7 === void 0 ? void 0 : _actions$edit7.fields) && actions.edit.fields.map(function (item) {
417
+ }, Array.isArray(actions === null || actions === void 0 || (_actions$edit5 = actions.edit) === null || _actions$edit5 === void 0 ? void 0 : _actions$edit5.fields) && actions.edit.fields.map(function (item) {
525
418
  return /*#__PURE__*/React.createElement(Form.Item, {
526
419
  key: item.name,
527
420
  name: item.name,
@@ -585,43 +478,11 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
585
478
  label: getText('pisell-wallet-pass-card-valid-to')
586
479
  }, /*#__PURE__*/React.createElement(Input, null))));
587
480
  };
588
- var checkedDom = useMemo(function () {
589
- if (!isMini || disabled) return null;
590
- if (showActiveIcon && !active) {
591
- return /*#__PURE__*/React.createElement("div", {
592
- className: "pisell-card-checked-icon"
593
- }, /*#__PURE__*/React.createElement(Radio, {
594
- checked: false
595
- }));
481
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
482
+ onClick: function onClick(e) {
483
+ return e.stopPropagation();
596
484
  }
597
- // mini卡片选中模式
598
- return active && /*#__PURE__*/React.createElement("div", {
599
- className: "pisell-card-checked-icon"
600
- }, mode === 'multiple' ? /*#__PURE__*/React.createElement(CheckCircleFilled, {
601
- style: {
602
- fontSize: 20,
603
- color: 'var(--Primary-600, #7F56D9)'
604
- }
605
- }) : /*#__PURE__*/React.createElement(Radio, {
606
- checked: true
607
- }));
608
- }, [showActiveIcon, isMini, active, disabled]);
609
- var handleKeyboardClose = function handleKeyboardClose() {
610
- setIsKeyboardOpen(false);
611
- // 清空临时值
612
- setTempAmount('');
613
- };
614
-
615
- // 处理键盘输入变化
616
- var handleKeyboardChange = function handleKeyboardChange(value) {
617
- // 暂存输入值,不立即更新显示
618
- setTempAmount(value.toString() || '');
619
- };
620
- var handleKeyboardEnter = function handleKeyboardEnter() {
621
- setIsKeyboardOpen(false);
622
- onConfirmEditAmount === null || onConfirmEditAmount === void 0 || onConfirmEditAmount(tempAmount);
623
- };
624
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, renderDetailModal(), renderEditModal()), /*#__PURE__*/React.createElement("div", {
485
+ }, renderDetailModal(), renderEditModal()), /*#__PURE__*/React.createElement("div", {
625
486
  className: classNames('pisell-wallet-pass-card', {
626
487
  'pisell-card-disabled': disabled,
627
488
  'pisell-card-disabled-hide-disabled-reason': disabled && !showDisabledReason,
@@ -646,48 +507,20 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
646
507
  }, /*#__PURE__*/React.createElement(PisellQrcode, {
647
508
  value: qrCode,
648
509
  size: 60
649
- })), checkedDom), (disabled || disabledReason) && showDisabledReason && /*#__PURE__*/React.createElement("div", {
510
+ })),
511
+ // mini卡片选中模式
512
+ isMini && active && /*#__PURE__*/React.createElement("div", {
513
+ className: "pisell-card-checked-icon"
514
+ }, /*#__PURE__*/React.createElement(CheckCircleFilled, {
515
+ style: {
516
+ fontSize: 20,
517
+ color: 'var(--Primary-600, #7F56D9)'
518
+ }
519
+ }))), (disabled || disabledReason) && showDisabledReason && /*#__PURE__*/React.createElement("div", {
650
520
  className: "pisell-card-warn-message"
651
521
  }, /*#__PURE__*/React.createElement(Iconfont, {
652
522
  className: "pisell-card-icon",
653
523
  type: "pisell2-alert-circle"
654
- }), /*#__PURE__*/React.createElement("span", null, disabledReason)), /*#__PURE__*/React.createElement("div", {
655
- onClick: function onClick(e) {
656
- return e.stopPropagation();
657
- }
658
- }, /*#__PURE__*/React.createElement(PisellModal, {
659
- open: isKeyboardOpen,
660
- onCancel: handleKeyboardClose,
661
- title: null,
662
- footer: null,
663
- header: null,
664
- closable: false,
665
- mask: false,
666
- maskClosable: true,
667
- centered: true,
668
- width: "auto",
669
- wrapClassName: "keyboard-modal-wrapper",
670
- bodyStyle: {
671
- padding: 0
672
- },
673
- styles: {
674
- content: {
675
- padding: 0,
676
- boxShadow: 'none',
677
- background: 'transparent'
678
- },
679
- body: {
680
- padding: 0
681
- }
682
- }
683
- }, /*#__PURE__*/React.createElement(PisellNumberKeyboard, {
684
- value: tempAmount,
685
- defaultValue: redeem,
686
- onChange: handleKeyboardChange,
687
- onEnter: handleKeyboardEnter,
688
- allowDecimal: true,
689
- decimalPlaces: 2,
690
- selectType: "dark"
691
- })))));
524
+ }), /*#__PURE__*/React.createElement("span", null, disabledReason))));
692
525
  };
693
526
  export default PisellWalletPassCard;
@@ -25,25 +25,15 @@
25
25
 
26
26
  .actions-btn-wrapper {
27
27
  position: absolute;
28
- top: 0px;
29
- right: 0px;
28
+ top: 16px;
29
+ right: 16px;
30
30
  z-index: 2;
31
31
  display: flex;
32
- gap: 0px;
33
- z-index: 3;
32
+ gap: 16px;
34
33
 
35
34
  & > div {
36
35
  cursor: pointer;
37
36
  }
38
- .pisell-card-status-icon {
39
- padding: 12px 8px;
40
- }
41
- .pisell-card-actions-edit-btn {
42
- padding: 12px 8px 20px;
43
- }
44
- .pisell-card-actions-detail-btn {
45
- padding: 12px 8px 20px;
46
- }
47
37
  }
48
38
 
49
39
  .pisell-wallet-pass-card-body {
@@ -57,13 +47,12 @@
57
47
  display: flex;
58
48
  flex-direction: column;
59
49
  justify-content: space-between;
60
- position: relative;
61
- z-index: 2;
62
50
  }
63
51
 
64
52
  .pisell-card-name-wrap {
65
53
  font-weight: 500;
66
54
  line-height: 20px;
55
+
67
56
  white-space: nowrap;
68
57
  overflow: hidden;
69
58
  text-overflow: ellipsis;
@@ -106,7 +95,7 @@
106
95
  .pisell-card-amount-item-value {
107
96
  font-size: 20px;
108
97
  font-weight: 600;
109
- line-height: 20px;
98
+ line-height: 30px;
110
99
  overflow: hidden;
111
100
  text-overflow: ellipsis;
112
101
  }
@@ -199,10 +188,10 @@
199
188
  .pisell-card-name-wrap {
200
189
  font-weight: 600;
201
190
  font-size: 16px;
191
+ max-width: calc(100% - 96px);
202
192
  white-space: nowrap;
203
193
  overflow: hidden;
204
194
  text-overflow: ellipsis;
205
- min-width: 12px;
206
195
  }
207
196
 
208
197
  .pisell-card-store-name {
@@ -219,26 +208,14 @@
219
208
  visibility: hidden;
220
209
  flex-direction: row;
221
210
  align-items: center;
222
- margin-bottom: 4px;
223
-
224
- .pisell-card-amount-item-label-icon {
225
- font-size: 20px;
226
- margin-right: 8px;
227
- }
228
211
 
229
212
  .pisell-card-amount-item-label,
230
213
  .pisell-card-amount-item-value {
231
214
  color: var(--Primary-600, #7f56d9);
215
+ font-size: 20px;
232
216
  font-style: normal;
233
217
  font-weight: 600;
234
218
  }
235
- .pisell-card-amount-item-label {
236
- font-size: 14px;
237
- }
238
- .pisell-card-amount-item-value {
239
- font-size: 20px;
240
- text-decoration: underline;
241
- }
242
219
  }
243
220
 
244
221
  &.active {
@@ -264,13 +241,6 @@
264
241
  position: absolute;
265
242
  bottom: 16px;
266
243
  right: 16px;
267
- .pisell-lowcode-radio-wrapper {
268
- margin: 0;
269
- }
270
- .pisell-lowcode-radio-inner {
271
- width: 20px;
272
- height: 20px;
273
- }
274
244
  }
275
245
  }
276
246