@pisell/materials 6.2.36 → 6.2.37

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 (349) 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 +5 -5
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +14 -14
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +14 -14
  11. package/es/components/auto-complete-number/index.d.ts +1 -0
  12. package/es/components/badge/index.d.ts +1 -0
  13. package/es/components/batch-editor/fields/index.d.ts +1 -0
  14. package/es/components/calendar/index.d.ts +1 -0
  15. package/es/components/cardPro/index.d.ts +1 -0
  16. package/es/components/checkbox/index.d.ts +1 -0
  17. package/es/components/classicLayout/index.d.ts +1 -0
  18. package/es/components/colorPicker/index.d.ts +1 -0
  19. package/es/components/config-provider/index.d.ts +1 -0
  20. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  21. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  22. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
  23. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  24. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  25. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  26. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
  27. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
  28. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
  29. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
  30. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
  31. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  32. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  33. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
  34. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
  35. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  36. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
  37. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
  38. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  39. package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
  40. package/es/components/date-picker/datePickerCpt.d.ts +1 -0
  41. package/es/components/date-picker/index.d.ts +1 -0
  42. package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  43. package/es/components/drag-sort-tree/index.d.ts +1 -0
  44. package/es/components/dropdown/index.d.ts +1 -0
  45. package/es/components/filter/components/items/index.d.ts +1 -0
  46. package/es/components/filter/components/items/text/Editor/index.d.ts +1 -0
  47. package/es/components/filter/components/items/text/Preview/index.d.ts +1 -0
  48. package/es/components/filter/components/items/text/index.d.ts +1 -0
  49. package/es/components/iconfont/index.js +1 -1
  50. package/es/components/lowCodePage/index.d.ts +1 -0
  51. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  52. package/es/components/pisellAdjustPrice/index.d.ts +1 -0
  53. package/es/components/pisellCard/index.d.ts +1 -0
  54. package/es/components/pisellCardList/index.d.ts +21 -1
  55. package/es/components/pisellCardList/index.js +25 -1
  56. package/es/components/pisellCheckboxGroup/index.d.ts +1 -0
  57. package/es/components/pisellCheckboxGroup/index.js +2 -2
  58. package/es/components/pisellCheckboxGroup/index.less +13 -1
  59. package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
  60. package/es/components/pisellDatePicker/index.d.ts +1 -0
  61. package/es/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  62. package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
  63. package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
  64. package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
  65. package/es/components/pisellInput/index.d.ts +1 -0
  66. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  67. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  68. package/es/components/pisellModal/components/index.d.ts +1 -0
  69. package/es/components/pisellTooltip/index.d.ts +1 -0
  70. package/es/components/pisellUpload/index.d.ts +1 -0
  71. package/es/components/pisellWalletPassCard/index.d.ts +44 -0
  72. package/es/components/pisellWalletPassCard/index.js +233 -66
  73. package/es/components/pisellWalletPassCard/index.less +37 -7
  74. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  75. package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
  76. package/es/components/productCard/components/Divider/index.d.ts +1 -0
  77. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  78. package/es/components/productCard/components/Note/index.d.ts +1 -0
  79. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  80. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  81. package/es/components/productCard/components/Packages/index.d.ts +1 -0
  82. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  83. package/es/components/productCard/components/Sales/index.d.ts +1 -0
  84. package/es/components/productCard/components/Time/components/Like/index.d.ts +1 -0
  85. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
  86. package/es/components/qrcode/index.d.ts +1 -0
  87. package/es/components/radio/index.d.ts +1 -0
  88. package/es/components/segmented/index.d.ts +1 -0
  89. package/es/components/select-time/RightPanel/index.d.ts +1 -0
  90. package/es/components/select-time/index.d.ts +1 -0
  91. package/es/components/skeleton/index.d.ts +1 -0
  92. package/es/components/slider/index.d.ts +1 -0
  93. package/es/components/sort/components/InlineMenu/index.d.ts +1 -0
  94. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  95. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  96. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  97. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  98. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  99. package/es/components/table/Actions/component/ViewMode/index.d.ts +1 -0
  100. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  101. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  102. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  103. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  104. package/es/components/table/Summary/index.d.ts +1 -0
  105. package/es/components/table/Table/AddFieldModal/index.d.ts +1 -0
  106. package/es/components/table/Table/AddFieldModal/index.js +13 -13
  107. package/es/components/table/Table/AddFieldModal/index.less +11 -11
  108. package/es/components/table/Table/fields/date/Config/index.d.ts +1 -0
  109. package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
  110. package/es/components/table/Table/fields/date/Sort/index.d.ts +1 -0
  111. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  112. package/es/components/table/Table/fields/image/Config/index.d.ts +1 -0
  113. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  114. package/es/components/table/Table/fields/image/Sort/index.d.ts +1 -0
  115. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  116. package/es/components/table/Table/fields/link/Config/index.d.ts +1 -0
  117. package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
  118. package/es/components/table/Table/fields/link/Sort/index.d.ts +1 -0
  119. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  120. package/es/components/table/Table/fields/number/Config/index.d.ts +1 -0
  121. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  122. package/es/components/table/Table/fields/number/Sort/index.d.ts +1 -0
  123. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  124. package/es/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
  125. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  126. package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
  127. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  128. package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
  129. package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
  130. package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
  131. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  132. package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
  133. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  134. package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
  135. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  136. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
  137. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
  138. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
  139. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  140. package/es/components/table/Table/fields/search/Config/index.d.ts +1 -0
  141. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  142. package/es/components/table/Table/fields/search/Sort/index.d.ts +1 -0
  143. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  144. package/es/components/table/Table/fields/select/Config/index.d.ts +1 -0
  145. package/es/components/table/Table/fields/select/Show/index.d.ts +1 -0
  146. package/es/components/table/Table/fields/select/Sort/index.d.ts +1 -0
  147. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  148. package/es/components/table/Table/fields/text/Config/index.d.ts +1 -0
  149. package/es/components/table/Table/fields/text/Sort/index.d.ts +1 -0
  150. package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
  151. package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
  152. package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
  153. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  154. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  155. package/es/components/table/Table/tableConfig/summary/index.d.ts +1 -0
  156. package/es/components/table/Table/utils.d.ts +1 -1
  157. package/es/components/table/TableFilter/SortIcon.d.ts +1 -0
  158. package/es/components/time-picker/index.d.ts +1 -0
  159. package/es/components/upload/index.d.ts +1 -0
  160. package/es/components/virtual-keyboard/Amount/index.d.ts +1 -0
  161. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +1 -0
  162. package/es/components/virtual-keyboard/Number/index.d.ts +1 -0
  163. package/es/components/virtual-keyboard/Time/utils.d.ts +1 -0
  164. package/es/components/walletCard/Guest/index.d.ts +1 -0
  165. package/es/components/walletCard/Guide/index.d.ts +1 -0
  166. package/es/index.d.ts +1 -0
  167. package/es/locales/en-US.d.ts +3 -0
  168. package/es/locales/en-US.js +6 -2
  169. package/es/locales/zh-CN.d.ts +3 -0
  170. package/es/locales/zh-CN.js +6 -2
  171. package/es/locales/zh-TW.d.ts +3 -0
  172. package/es/locales/zh-TW.js +6 -2
  173. package/es/utils/index.d.ts +1 -1
  174. package/es/utils/platform.d.ts +1 -1
  175. package/lib/components/auto-complete-number/index.d.ts +1 -0
  176. package/lib/components/badge/index.d.ts +1 -0
  177. package/lib/components/batch-editor/fields/index.d.ts +1 -0
  178. package/lib/components/calendar/index.d.ts +1 -0
  179. package/lib/components/cardPro/index.d.ts +1 -0
  180. package/lib/components/checkbox/index.d.ts +1 -0
  181. package/lib/components/classicLayout/index.d.ts +1 -0
  182. package/lib/components/colorPicker/index.d.ts +1 -0
  183. package/lib/components/config-provider/index.d.ts +1 -0
  184. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  185. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  186. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
  187. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  188. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  189. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  190. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
  191. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
  192. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
  193. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
  194. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
  195. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  196. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  197. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
  198. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
  199. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  200. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
  201. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
  202. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  203. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
  204. package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
  205. package/lib/components/date-picker/index.d.ts +1 -0
  206. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  207. package/lib/components/drag-sort-tree/index.d.ts +1 -0
  208. package/lib/components/dropdown/index.d.ts +1 -0
  209. package/lib/components/filter/components/items/index.d.ts +1 -0
  210. package/lib/components/filter/components/items/text/Editor/index.d.ts +1 -0
  211. package/lib/components/filter/components/items/text/Preview/index.d.ts +1 -0
  212. package/lib/components/filter/components/items/text/index.d.ts +1 -0
  213. package/lib/components/iconfont/index.js +1 -1
  214. package/lib/components/lowCodePage/index.d.ts +1 -0
  215. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  216. package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
  217. package/lib/components/pisellCard/index.d.ts +1 -0
  218. package/lib/components/pisellCardList/index.d.ts +21 -1
  219. package/lib/components/pisellCardList/index.js +25 -1
  220. package/lib/components/pisellCheckboxGroup/index.d.ts +1 -0
  221. package/lib/components/pisellCheckboxGroup/index.js +2 -1
  222. package/lib/components/pisellCheckboxGroup/index.less +13 -1
  223. package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
  224. package/lib/components/pisellDatePicker/index.d.ts +1 -0
  225. package/lib/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  226. package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
  227. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
  228. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
  229. package/lib/components/pisellInput/index.d.ts +1 -0
  230. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  231. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  232. package/lib/components/pisellModal/components/index.d.ts +1 -0
  233. package/lib/components/pisellTooltip/index.d.ts +1 -0
  234. package/lib/components/pisellUpload/index.d.ts +1 -0
  235. package/lib/components/pisellWalletPassCard/index.d.ts +44 -0
  236. package/lib/components/pisellWalletPassCard/index.js +187 -48
  237. package/lib/components/pisellWalletPassCard/index.less +37 -7
  238. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  239. package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
  240. package/lib/components/productCard/components/Divider/index.d.ts +1 -0
  241. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  242. package/lib/components/productCard/components/Note/index.d.ts +1 -0
  243. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  244. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  245. package/lib/components/productCard/components/Packages/index.d.ts +1 -0
  246. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  247. package/lib/components/productCard/components/Sales/index.d.ts +1 -0
  248. package/lib/components/productCard/components/Time/components/Like/index.d.ts +1 -0
  249. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
  250. package/lib/components/qrcode/index.d.ts +1 -0
  251. package/lib/components/radio/index.d.ts +1 -0
  252. package/lib/components/segmented/index.d.ts +1 -0
  253. package/lib/components/select-time/RightPanel/index.d.ts +1 -0
  254. package/lib/components/select-time/index.d.ts +1 -0
  255. package/lib/components/skeleton/index.d.ts +1 -0
  256. package/lib/components/slider/index.d.ts +1 -0
  257. package/lib/components/sort/components/InlineMenu/index.d.ts +1 -0
  258. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  259. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  260. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  261. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  262. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  263. package/lib/components/table/Actions/component/ViewMode/index.d.ts +1 -0
  264. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  265. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  266. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  267. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  268. package/lib/components/table/Summary/index.d.ts +1 -0
  269. package/lib/components/table/Table/AddFieldModal/index.d.ts +1 -0
  270. package/lib/components/table/Table/AddFieldModal/index.js +9 -9
  271. package/lib/components/table/Table/AddFieldModal/index.less +11 -11
  272. package/lib/components/table/Table/fields/date/Config/index.d.ts +1 -0
  273. package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
  274. package/lib/components/table/Table/fields/date/Sort/index.d.ts +1 -0
  275. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  276. package/lib/components/table/Table/fields/image/Config/index.d.ts +1 -0
  277. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  278. package/lib/components/table/Table/fields/image/Sort/index.d.ts +1 -0
  279. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  280. package/lib/components/table/Table/fields/link/Config/index.d.ts +1 -0
  281. package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
  282. package/lib/components/table/Table/fields/link/Sort/index.d.ts +1 -0
  283. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  284. package/lib/components/table/Table/fields/number/Config/index.d.ts +1 -0
  285. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  286. package/lib/components/table/Table/fields/number/Sort/index.d.ts +1 -0
  287. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  288. package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
  289. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  290. package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
  291. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  292. package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
  293. package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
  294. package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
  295. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  296. package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
  297. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  298. package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
  299. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  300. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
  301. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
  302. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
  303. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  304. package/lib/components/table/Table/fields/search/Config/index.d.ts +1 -0
  305. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  306. package/lib/components/table/Table/fields/search/Sort/index.d.ts +1 -0
  307. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  308. package/lib/components/table/Table/fields/select/Config/index.d.ts +1 -0
  309. package/lib/components/table/Table/fields/select/Show/index.d.ts +1 -0
  310. package/lib/components/table/Table/fields/select/Sort/index.d.ts +1 -0
  311. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  312. package/lib/components/table/Table/fields/text/Config/index.d.ts +1 -0
  313. package/lib/components/table/Table/fields/text/Sort/index.d.ts +1 -0
  314. package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
  315. package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
  316. package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
  317. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  318. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  319. package/lib/components/table/Table/tableConfig/summary/index.d.ts +1 -0
  320. package/lib/components/table/Table/utils.d.ts +1 -1
  321. package/lib/components/table/TableFilter/SortIcon.d.ts +1 -0
  322. package/lib/components/time-picker/index.d.ts +1 -0
  323. package/lib/components/upload/index.d.ts +1 -0
  324. package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -0
  325. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +1 -0
  326. package/lib/components/virtual-keyboard/Number/index.d.ts +1 -0
  327. package/lib/components/virtual-keyboard/Time/utils.d.ts +1 -0
  328. package/lib/components/walletCard/Guest/index.d.ts +1 -0
  329. package/lib/components/walletCard/Guide/index.d.ts +1 -0
  330. package/lib/index.d.ts +1 -0
  331. package/lib/locales/en-US.d.ts +3 -0
  332. package/lib/locales/en-US.js +6 -2
  333. package/lib/locales/zh-CN.d.ts +3 -0
  334. package/lib/locales/zh-CN.js +6 -2
  335. package/lib/locales/zh-TW.d.ts +3 -0
  336. package/lib/locales/zh-TW.js +6 -2
  337. package/lib/utils/index.d.ts +1 -1
  338. package/lib/utils/platform.d.ts +1 -1
  339. package/lowcode/pisell-card-list/meta.ts +50 -1
  340. package/lowcode/pisell-wallet-pass-card/actionsMeta.ts +7 -0
  341. package/package.json +11 -10
  342. package/dist/umd/materials.min.css +0 -1
  343. package/dist/umd/materials.min.js +0 -1
  344. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  345. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  346. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  347. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  348. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  349. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
@@ -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 './detePickerCpt.less';
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PisellDatePicker: (props: any) => JSX.Element;
2
3
  export default PisellDatePicker;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface ScanProps {
3
4
  onChange: (val: string) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
3
4
  import './index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps, ButtonProps } from 'antd';
2
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
3
4
  export interface CopyProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import './index.less';
3
4
  import { PisellContextType } from "../../../pisell-config-provider/context";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import { PisellContextType } from '../pisell-config-provider/context';
3
4
  declare const PisellInput: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PcModalProps } from '../PcModal';
2
3
  export interface IpadModalProps extends PcModalProps {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PcModalProps } from '../PcModal';
2
3
  import './index.less';
3
4
  export interface MobileModalProps extends PcModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import IpadModal from './IpadModal';
2
3
  import MobileModal from './MobileModal';
3
4
  import PcModal from './PcModal';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TooltipPropsWithTitle } from 'antd/es/tooltip';
2
3
  import { PisellContextType } from "../pisell-config-provider/context";
3
4
  import './index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { UploadProps } from 'antd';
2
3
  import './index.less';
3
4
  export interface PisellUploadProps extends UploadProps {
@@ -1,4 +1,13 @@
1
+ import React from 'react';
1
2
  import './index.less';
3
+ export interface FormatOption {
4
+ /** 原始 DOM 元素 */
5
+ originDom: React.ReactNode;
6
+ /** 是否选中状态 */
7
+ active: boolean;
8
+ /** 完整的组件数据 */
9
+ data: PisellWalletPassCardProps;
10
+ }
2
11
  export interface PisellWalletPassCardProps {
3
12
  id: number;
4
13
  /** 卡片样式 */
@@ -78,6 +87,41 @@ export interface PisellWalletPassCardProps {
78
87
  beforeEdit?: (value: any) => Promise<any> | boolean | void;
79
88
  /** 编辑弹窗点击提交 */
80
89
  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;
81
125
  [key: string]: any;
82
126
  }
83
127
  declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => JSX.Element;
@@ -33,21 +33,30 @@ __export(pisellWalletPassCard_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(pisellWalletPassCard_exports);
35
35
  var import_react = __toESM(require("react"));
36
+ var import_ahooks = require("ahooks");
36
37
  var import_classnames = __toESM(require("classnames"));
37
38
  var import_icons = require("@ant-design/icons");
38
39
  var import_antd = require("antd");
39
40
  var import_dayjs = __toESM(require("dayjs"));
40
41
  var import_iconfont = __toESM(require("../iconfont"));
41
42
  var import__ = require("../../index");
43
+ var import_pisellTags = __toESM(require("../pisellTags"));
42
44
  var import_Amount = __toESM(require("../pisellText/components/Amount"));
43
45
  var import_index = require("./index.less");
44
46
  var import_locales = require("../../locales");
45
47
  var import_pisellQrcode = __toESM(require("./../pisellQrcode"));
48
+ var cardStatusMap = {
49
+ used: "warning",
50
+ expired: "error",
51
+ disabled: "gray"
52
+ };
46
53
  var PisellWalletPassCard = (props) => {
47
54
  const [isShowDetail, setIsShowDetail] = import_react.default.useState(false);
48
55
  const [isShowEdit, setIsShowEdit] = import_react.default.useState(false);
49
56
  const [form] = import_antd.Form.useForm();
50
57
  const [form2] = import_antd.Form.useForm();
58
+ const [tempAmount, setTempAmount] = import_react.default.useState("");
59
+ const [isKeyboardOpen, setIsKeyboardOpen] = import_react.default.useState(false);
51
60
  const [lastTap, setLastTap] = import_react.default.useState(0);
52
61
  const [pressTimer, setPressTimer] = import_react.default.useState(
53
62
  null
@@ -92,27 +101,69 @@ var PisellWalletPassCard = (props) => {
92
101
  actions,
93
102
  beforeEdit,
94
103
  onConfirmEdit,
104
+ onConfirmEditAmount,
105
+ onDetail,
106
+ useExternalDetail = false,
95
107
  originData,
96
- style = {}
108
+ style = {},
109
+ mode = "multiple",
110
+ showActiveIcon,
111
+ enableEditAmount,
112
+ showStatus,
113
+ cardStatus,
114
+ nameTitleStyle,
115
+ formatBalance,
116
+ formatBalanceTitle
97
117
  } = props;
98
118
  (0, import_react.useEffect)(() => {
99
119
  document.body.id = "body";
100
120
  }, []);
121
+ const actionsWrapperRef = (0, import_react.useRef)(null);
122
+ const actionsWrapperSize = (0, import_ahooks.useSize)(actionsWrapperRef);
101
123
  const isMini = (0, import_react.useMemo)(() => {
102
124
  return "mini" === type;
103
125
  }, [type]);
104
- const onDetail = () => {
126
+ const dynamicNameWrapStyle = (0, import_react.useMemo)(() => {
127
+ const actionsWidth = (actionsWrapperSize == null ? void 0 : actionsWrapperSize.width) || 0;
128
+ const baseStyle = nameTitleStyle || {};
129
+ if (actionsWidth > 0) {
130
+ return {
131
+ ...baseStyle,
132
+ width: `calc(100% - ${actionsWidth + 8}px)`
133
+ // 添加8px的边距
134
+ };
135
+ }
136
+ return {
137
+ ...baseStyle,
138
+ width: isMini ? "calc(100% - 96px)" : "calc(100% - 80px)"
139
+ // 使用默认宽度
140
+ };
141
+ }, [nameTitleStyle, actionsWrapperSize == null ? void 0 : actionsWrapperSize.width, isMini]);
142
+ const handleDetail = () => {
105
143
  var _a;
106
144
  if (disabled || disabledReason || !((_a = actions == null ? void 0 : actions.detail) == null ? void 0 : _a.visible)) return;
107
- form2.setFieldsValue({
108
- name,
109
- storeName,
110
- balance,
111
- redeem,
112
- code,
113
- validDate
114
- });
115
- setIsShowDetail(true);
145
+ if (useExternalDetail && onDetail) {
146
+ onDetail({
147
+ id,
148
+ name,
149
+ storeName,
150
+ balance,
151
+ redeem,
152
+ code,
153
+ validDate,
154
+ originData
155
+ });
156
+ } else {
157
+ form2.setFieldsValue({
158
+ name,
159
+ storeName,
160
+ balance,
161
+ redeem,
162
+ code,
163
+ validDate
164
+ });
165
+ setIsShowDetail(true);
166
+ }
116
167
  };
117
168
  const onEdit = async () => {
118
169
  var _a, _b;
@@ -178,7 +229,7 @@ var PisellWalletPassCard = (props) => {
178
229
  const now = Date.now();
179
230
  const DOUBLE_TAP_DELAY = 300;
180
231
  if (now - lastTap < DOUBLE_TAP_DELAY) {
181
- onDetail();
232
+ handleDetail();
182
233
  }
183
234
  setLastTap(now);
184
235
  };
@@ -202,11 +253,12 @@ var PisellWalletPassCard = (props) => {
202
253
  e.stopPropagation();
203
254
  };
204
255
  const renderActions = () => {
256
+ var _a, _b, _c, _d;
205
257
  if (disabled || disabledReason) return null;
206
- if (!showActions || !actions) return null;
207
- if ("collapsed" === actions.layout) {
258
+ if ((!showActions || !actions) && !showStatus) return null;
259
+ if ("collapsed" === (actions == null ? void 0 : actions.layout)) {
208
260
  const items = [];
209
- if (actions.detail && actions.detail.visible) {
261
+ if ((actions == null ? void 0 : actions.detail) && ((_a = actions == null ? void 0 : actions.detail) == null ? void 0 : _a.visible)) {
210
262
  items.push({
211
263
  key: "detail",
212
264
  label: /* @__PURE__ */ import_react.default.createElement(
@@ -215,14 +267,14 @@ var PisellWalletPassCard = (props) => {
215
267
  className: "pisell-card-actions-dropdown-detail",
216
268
  onClick: (e) => {
217
269
  stop(e);
218
- onDetail();
270
+ handleDetail();
219
271
  }
220
272
  },
221
273
  /* @__PURE__ */ import_react.default.createElement("span", null, (0, import_locales.getText)("pisell-wallet-pass-card-detail"))
222
274
  )
223
275
  });
224
276
  }
225
- if (actions.edit && actions.edit.visible) {
277
+ if ((actions == null ? void 0 : actions.edit) && ((_b = actions == null ? void 0 : actions.edit) == null ? void 0 : _b.visible)) {
226
278
  items.push({
227
279
  key: "edit",
228
280
  label: /* @__PURE__ */ import_react.default.createElement(
@@ -249,14 +301,22 @@ var PisellWalletPassCard = (props) => {
249
301
  /* @__PURE__ */ import_react.default.createElement("div", { className: "actions-dropdown-trigger", onClick: stop }, /* @__PURE__ */ import_react.default.createElement(import_icons.MoreOutlined, { style: { fontSize: 24 } }))
250
302
  );
251
303
  }
252
- if ("expanded" === actions.layout) {
253
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "actions-btn-wrapper" }, actions.detail && actions.detail.visible && /* @__PURE__ */ import_react.default.createElement(
304
+ if ("expanded" === (actions == null ? void 0 : actions.layout) || showStatus) {
305
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "actions-btn-wrapper", ref: actionsWrapperRef }, showStatus && cardStatus && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-status-icon" }, /* @__PURE__ */ import_react.default.createElement(
306
+ import_pisellTags.default,
307
+ {
308
+ style: { borderRadius: "6px", padding: "2px 8px" },
309
+ type: "pill_color",
310
+ color: cardStatusMap[cardStatus]
311
+ },
312
+ (0, import_locales.getText)(`pisell-wallet-pass-card-status-${cardStatus}`)
313
+ )), (actions == null ? void 0 : actions.detail) && ((_c = actions == null ? void 0 : actions.detail) == null ? void 0 : _c.visible) && /* @__PURE__ */ import_react.default.createElement(
254
314
  "div",
255
315
  {
256
316
  className: "pisell-card-actions-detail-btn",
257
317
  onClick: (e) => {
258
318
  stop(e);
259
- onDetail();
319
+ handleDetail();
260
320
  }
261
321
  },
262
322
  /* @__PURE__ */ import_react.default.createElement(
@@ -268,7 +328,7 @@ var PisellWalletPassCard = (props) => {
268
328
  }
269
329
  }
270
330
  )
271
- ), actions.edit && actions.edit.visible && /* @__PURE__ */ import_react.default.createElement(
331
+ ), (actions == null ? void 0 : actions.edit) && ((_d = actions == null ? void 0 : actions.edit) == null ? void 0 : _d.visible) && /* @__PURE__ */ import_react.default.createElement(
272
332
  "div",
273
333
  {
274
334
  className: "pisell-card-actions-edit-btn",
@@ -290,25 +350,57 @@ var PisellWalletPassCard = (props) => {
290
350
  }
291
351
  };
292
352
  const renderNameInfo = () => {
293
- return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-name-wrap" }, showName && name), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-store-name" }, showStoreName && storeName));
353
+ return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-name-wrap", style: dynamicNameWrapStyle }, showName && name), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-store-name" }, showStoreName && storeName));
354
+ };
355
+ const handleEditAmount = (e) => {
356
+ e.stopPropagation();
357
+ if (enableEditAmount && !disabled) {
358
+ setIsKeyboardOpen(true);
359
+ setTempAmount((redeem == null ? void 0 : redeem.toString()) || "");
360
+ }
294
361
  };
362
+ const createOriginalBalanceTitleDom = () => /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-label" }, formatBalanceTitle ? formatBalanceTitle(balanceTitle, {
363
+ originDom: /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, balanceTitle || (0, import_locales.getText)("pisell-wallet-pass-card-balance")),
364
+ active,
365
+ data: props
366
+ }) : balanceTitle || (0, import_locales.getText)("pisell-wallet-pass-card-balance"), disabled || isMini ? ": " : "");
367
+ const createOriginalBalanceDom = () => /* @__PURE__ */ import_react.default.createElement(
368
+ import_Amount.default,
369
+ {
370
+ className: "pisell-card-amount-item-value",
371
+ useThousandsSeparator: true,
372
+ value: balance,
373
+ showCurrencySymbol: showBalanceSymbol
374
+ }
375
+ );
295
376
  const renderBalanceInfo = () => {
296
- return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-wrap" }, showRedeem && !disabled && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item pisell-wallet-pass-card-redeem" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-label" }, redeemTitle || (0, import_locales.getText)("pisell-wallet-pass-card-redeem"), isMini ? ": " : ""), /* @__PURE__ */ import_react.default.createElement(
297
- import_Amount.default,
377
+ return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-wrap" }, showRedeem && !disabled && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item pisell-wallet-pass-card-redeem" }, /* @__PURE__ */ import_react.default.createElement(
378
+ "div",
298
379
  {
299
- className: "pisell-card-amount-item-value",
300
- useThousandsSeparator: true,
301
- value: redeem
302
- }
303
- )), showBalance && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item pisell-wallet-pass-card-balance" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-label" }, balanceTitle || (0, import_locales.getText)("pisell-wallet-pass-card-balance"), disabled || isMini ? ": " : ""), /* @__PURE__ */ import_react.default.createElement(
380
+ className: "pisell-card-amount-item-label",
381
+ onClick: handleEditAmount
382
+ },
383
+ enableEditAmount && /* @__PURE__ */ import_react.default.createElement(
384
+ import_iconfont.default,
385
+ {
386
+ type: "pisell2-edit-05",
387
+ className: "pisell-card-amount-item-label-icon"
388
+ }
389
+ ),
390
+ /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-card-amount-item-label-text" }, redeemTitle || (0, import_locales.getText)("pisell-wallet-pass-card-redeem"), isMini ? ": " : "")
391
+ ), /* @__PURE__ */ import_react.default.createElement(
304
392
  import_Amount.default,
305
393
  {
306
394
  className: "pisell-card-amount-item-value",
307
395
  useThousandsSeparator: true,
308
- value: balance,
309
- showCurrencySymbol: showBalanceSymbol
396
+ value: redeem,
397
+ onClick: handleEditAmount
310
398
  }
311
- )), showDiscount && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-label" }, (0, import_locales.getText)("pisell-discount-card-title")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-value" }, discount, "% ", (0, import_locales.getText)("pisell-discount-card-unit")))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-code-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-code" }, showCode && !isMini && /* @__PURE__ */ import_react.default.createElement("div", null, code), showValidDate && /* @__PURE__ */ import_react.default.createElement("div", null, (0, import_locales.getText)("pisell-wallet-pass-card-valid-to"), " ", !!validDate ? validDate : (0, import_locales.getText)("pisell-wallet-pass-card-expireDate")))));
399
+ )), showBalance && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item pisell-wallet-pass-card-balance" }, createOriginalBalanceTitleDom(), formatBalance ? formatBalance(balance, {
400
+ originDom: createOriginalBalanceDom(),
401
+ active,
402
+ data: props
403
+ }) : createOriginalBalanceDom()), showDiscount && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-label" }, (0, import_locales.getText)("pisell-discount-card-title")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-amount-item-value" }, discount, "% ", (0, import_locales.getText)("pisell-discount-card-unit")))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-code-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-code" }, showCode && !isMini && /* @__PURE__ */ import_react.default.createElement("div", null, code), showValidDate && /* @__PURE__ */ import_react.default.createElement("div", null, (0, import_locales.getText)("pisell-wallet-pass-card-valid-to"), " ", !!validDate ? validDate : (0, import_locales.getText)("pisell-wallet-pass-card-expireDate")))));
312
404
  };
313
405
  const getInputItem = (name2) => {
314
406
  if ("validDate" === name2) {
@@ -446,7 +538,30 @@ var PisellWalletPassCard = (props) => {
446
538
  )
447
539
  );
448
540
  };
449
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { onClick: (e) => e.stopPropagation() }, renderDetailModal(), renderEditModal()), /* @__PURE__ */ import_react.default.createElement(
541
+ const checkedDom = (0, import_react.useMemo)(() => {
542
+ if (!isMini || disabled) return null;
543
+ if (showActiveIcon && !active) {
544
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-checked-icon" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Radio, { checked: false }));
545
+ }
546
+ return active && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-checked-icon" }, mode === "multiple" ? /* @__PURE__ */ import_react.default.createElement(
547
+ import_icons.CheckCircleFilled,
548
+ {
549
+ style: { fontSize: 20, color: "var(--Primary-600, #7F56D9)" }
550
+ }
551
+ ) : /* @__PURE__ */ import_react.default.createElement(import_antd.Radio, { checked: true }));
552
+ }, [showActiveIcon, isMini, active, disabled]);
553
+ const handleKeyboardClose = () => {
554
+ setIsKeyboardOpen(false);
555
+ setTempAmount("");
556
+ };
557
+ const handleKeyboardChange = (value) => {
558
+ setTempAmount(value.toString() || "");
559
+ };
560
+ const handleKeyboardEnter = () => {
561
+ setIsKeyboardOpen(false);
562
+ onConfirmEditAmount == null ? void 0 : onConfirmEditAmount(tempAmount);
563
+ };
564
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", null, renderDetailModal(), renderEditModal()), /* @__PURE__ */ import_react.default.createElement(
450
565
  "div",
451
566
  {
452
567
  className: (0, import_classnames.default)("pisell-wallet-pass-card", {
@@ -461,27 +576,51 @@ var PisellWalletPassCard = (props) => {
461
576
  } : style
462
577
  },
463
578
  renderActions(),
464
- /* @__PURE__ */ import_react.default.createElement(
465
- "div",
466
- { className: "pisell-wallet-pass-card-body" },
467
- renderNameInfo(),
468
- renderBalanceInfo(),
469
- showQrCode && !isMini && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-qr-code" }, /* @__PURE__ */ import_react.default.createElement(import_pisellQrcode.default, { value: qrCode, size: 60 })),
470
- // mini卡片选中模式
471
- isMini && active && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-checked-icon" }, /* @__PURE__ */ import_react.default.createElement(
472
- import_icons.CheckCircleFilled,
473
- {
474
- style: { fontSize: 20, color: "var(--Primary-600, #7F56D9)" }
475
- }
476
- ))
477
- ),
579
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-pass-card-body" }, renderNameInfo(), renderBalanceInfo(), showQrCode && !isMini && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-qr-code" }, /* @__PURE__ */ import_react.default.createElement(import_pisellQrcode.default, { value: qrCode, size: 60 })), checkedDom),
478
580
  (disabled || disabledReason) && showDisabledReason && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-warn-message" }, /* @__PURE__ */ import_react.default.createElement(
479
581
  import_iconfont.default,
480
582
  {
481
583
  className: "pisell-card-icon",
482
584
  type: "pisell2-alert-circle"
483
585
  }
484
- ), /* @__PURE__ */ import_react.default.createElement("span", null, disabledReason))
586
+ ), /* @__PURE__ */ import_react.default.createElement("span", null, disabledReason)),
587
+ /* @__PURE__ */ import_react.default.createElement("div", { onClick: (e) => e.stopPropagation() }, /* @__PURE__ */ import_react.default.createElement(
588
+ import__.PisellModal,
589
+ {
590
+ open: isKeyboardOpen,
591
+ onCancel: handleKeyboardClose,
592
+ title: null,
593
+ footer: null,
594
+ header: null,
595
+ closable: false,
596
+ mask: false,
597
+ maskClosable: true,
598
+ centered: true,
599
+ width: "auto",
600
+ wrapClassName: "keyboard-modal-wrapper",
601
+ bodyStyle: { padding: 0 },
602
+ styles: {
603
+ content: {
604
+ padding: 0,
605
+ boxShadow: "none",
606
+ background: "transparent"
607
+ },
608
+ body: { padding: 0 }
609
+ }
610
+ },
611
+ /* @__PURE__ */ import_react.default.createElement(
612
+ import__.PisellNumberKeyboard,
613
+ {
614
+ value: tempAmount,
615
+ defaultValue: redeem,
616
+ onChange: handleKeyboardChange,
617
+ onEnter: handleKeyboardEnter,
618
+ allowDecimal: true,
619
+ decimalPlaces: 2,
620
+ selectType: "dark"
621
+ }
622
+ )
623
+ ))
485
624
  ));
486
625
  };
487
626
  var pisellWalletPassCard_default = PisellWalletPassCard;
@@ -25,15 +25,25 @@
25
25
 
26
26
  .actions-btn-wrapper {
27
27
  position: absolute;
28
- top: 16px;
29
- right: 16px;
28
+ top: 0px;
29
+ right: 0px;
30
30
  z-index: 2;
31
31
  display: flex;
32
- gap: 16px;
32
+ gap: 0px;
33
+ z-index: 3;
33
34
 
34
35
  & > div {
35
36
  cursor: pointer;
36
37
  }
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
+ }
37
47
  }
38
48
 
39
49
  .pisell-wallet-pass-card-body {
@@ -47,12 +57,13 @@
47
57
  display: flex;
48
58
  flex-direction: column;
49
59
  justify-content: space-between;
60
+ position: relative;
61
+ z-index: 2;
50
62
  }
51
63
 
52
64
  .pisell-card-name-wrap {
53
65
  font-weight: 500;
54
66
  line-height: 20px;
55
-
56
67
  white-space: nowrap;
57
68
  overflow: hidden;
58
69
  text-overflow: ellipsis;
@@ -95,7 +106,7 @@
95
106
  .pisell-card-amount-item-value {
96
107
  font-size: 20px;
97
108
  font-weight: 600;
98
- line-height: 30px;
109
+ line-height: 20px;
99
110
  overflow: hidden;
100
111
  text-overflow: ellipsis;
101
112
  }
@@ -188,10 +199,10 @@
188
199
  .pisell-card-name-wrap {
189
200
  font-weight: 600;
190
201
  font-size: 16px;
191
- max-width: calc(100% - 96px);
192
202
  white-space: nowrap;
193
203
  overflow: hidden;
194
204
  text-overflow: ellipsis;
205
+ min-width: 12px;
195
206
  }
196
207
 
197
208
  .pisell-card-store-name {
@@ -208,14 +219,26 @@
208
219
  visibility: hidden;
209
220
  flex-direction: row;
210
221
  align-items: center;
222
+ margin-bottom: 4px;
223
+
224
+ .pisell-card-amount-item-label-icon {
225
+ font-size: 20px;
226
+ margin-right: 8px;
227
+ }
211
228
 
212
229
  .pisell-card-amount-item-label,
213
230
  .pisell-card-amount-item-value {
214
231
  color: var(--Primary-600, #7f56d9);
215
- font-size: 20px;
216
232
  font-style: normal;
217
233
  font-weight: 600;
218
234
  }
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
+ }
219
242
  }
220
243
 
221
244
  &.active {
@@ -241,6 +264,13 @@
241
264
  position: absolute;
242
265
  bottom: 16px;
243
266
  right: 16px;
267
+ .pisell-lowcode-radio-wrapper {
268
+ margin: 0;
269
+ }
270
+ .pisell-lowcode-radio-inner {
271
+ width: 20px;
272
+ height: 20px;
273
+ }
244
274
  }
245
275
  }
246
276
 
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Divider: ({ type }: any) => JSX.Element;
3
4
  export default Divider;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
4
  export default MultiDay;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Note: (props: any) => JSX.Element | null;
3
4
  export default Note;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
3
4
  export default Options;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Packages: ({ item, isShowPackageNote }: any) => JSX.Element | null;
3
4
  export default Packages;
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
3
4
  export default Sales;