@pisell/materials 1.0.961 → 1.0.963

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 (477) 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 +1 -1
  6. package/build/lowcode/preview.js +160 -144
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +40 -26
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +45 -31
  11. package/es/components/appVersionControl/index.d.ts +5 -0
  12. package/es/components/auto-complete-number/index.d.ts +1 -0
  13. package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  14. package/es/components/auto-resize-text/index.d.ts +6 -0
  15. package/es/components/badge/index.d.ts +1 -0
  16. package/es/components/batch-editor/fields/index.d.ts +1 -0
  17. package/es/components/batch-editor/index.d.ts +1 -0
  18. package/es/components/calendar/index.d.ts +1 -0
  19. package/es/components/cardPro/index.d.ts +4 -0
  20. package/es/components/checkbox/index.d.ts +1 -0
  21. package/es/components/classicLayout/index.d.ts +1 -0
  22. package/es/components/config-provider/index.d.ts +1 -0
  23. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  24. package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +8 -0
  25. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +27 -0
  26. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  27. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +5 -0
  28. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +101 -0
  29. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +33 -0
  30. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +85 -0
  31. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
  32. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
  33. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
  34. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
  35. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
  36. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +17 -0
  37. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  38. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -0
  39. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
  40. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
  41. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  42. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
  43. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
  44. package/es/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +5 -0
  45. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +6 -0
  46. package/es/components/dataSourceComponents/fields/Upload/index.d.ts +3 -0
  47. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +38 -0
  48. package/es/components/dataSourceComponents/fields/index.d.ts +7 -7
  49. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +5 -0
  50. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +3 -0
  51. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.js +18 -5
  52. package/es/components/drag-sort-tree/TreeItem/index.d.ts +19 -0
  53. package/es/components/drag-sort-tree/index.d.ts +4 -0
  54. package/es/components/dropdown/index.d.ts +1 -0
  55. package/es/components/filter/types.d.ts +46 -0
  56. package/es/components/hardwareErrorTip/demo.d.ts +3 -0
  57. package/es/components/hardwareErrorTip/errorCard/index.d.ts +29 -0
  58. package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +13 -0
  59. package/es/components/hardwareErrorTip/index.d.ts +19 -0
  60. package/es/components/hardwareErrorTip/logCard/index.d.ts +28 -0
  61. package/es/components/hardwareErrorTip/types.d.ts +28 -0
  62. package/es/components/iconfont/index.d.ts +8 -0
  63. package/es/components/keyboard/index.d.ts +22 -0
  64. package/es/components/login-and-register/index.d.ts +82 -0
  65. package/es/components/page/index.d.ts +3 -0
  66. package/es/components/page/index.js +4 -2
  67. package/es/components/pisell-config-provider/context.d.ts +22 -0
  68. package/es/components/pisell-config-provider/index.d.ts +13 -0
  69. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  70. package/es/components/pisellAdjustPrice/index.d.ts +4 -0
  71. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  72. package/es/components/pisellAdjustPrice/type.d.ts +22 -0
  73. package/es/components/pisellCamera/index.d.ts +4 -0
  74. package/es/components/pisellCard/index.d.ts +1 -0
  75. package/es/components/pisellCheckboxGroup/index.d.ts +40 -0
  76. package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
  77. package/es/components/pisellDatePicker/index.d.ts +1 -0
  78. package/es/components/pisellEmpty/index.d.ts +19 -0
  79. package/es/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  80. package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
  81. package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
  82. package/es/components/pisellInput/index.d.ts +1 -0
  83. package/es/components/pisellLoading/index.d.ts +1 -0
  84. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  85. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  86. package/es/components/pisellModal/components/index.d.ts +1 -0
  87. package/es/components/pisellQrcode/index.d.ts +2 -2
  88. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  89. package/es/components/pisellToast/index.d.ts +17 -0
  90. package/es/components/pisellToast/squareToast/index.d.ts +15 -0
  91. package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
  92. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
  93. package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
  94. package/es/components/pisellTooltip/index.d.ts +1 -0
  95. package/es/components/pisellUpload/index.d.ts +1 -0
  96. package/es/components/pisellWalletPassCard/index.d.ts +8 -0
  97. package/es/components/pisellWalletPassCard/index.js +78 -62
  98. package/es/components/pisellWalletPassCard/index.less +95 -33
  99. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  100. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +4 -0
  101. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  102. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  103. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
  104. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  105. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +4 -0
  106. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  107. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  108. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
  109. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  110. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  111. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  112. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +7 -0
  113. package/es/components/productCard/cartSkuCard/index.d.ts +10 -0
  114. package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
  115. package/es/components/productCard/components/Action/index.d.ts +4 -0
  116. package/es/components/productCard/components/Divider/index.d.ts +1 -0
  117. package/es/components/productCard/components/Header/Actions/index.d.ts +4 -0
  118. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
  119. package/es/components/productCard/components/Header/index.d.ts +3 -0
  120. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  121. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  122. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  123. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  124. package/es/components/productCard/components/Sales/index.d.ts +3 -0
  125. package/es/components/productCard/components/Time/components/Like/index.d.ts +1 -0
  126. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  127. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  128. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  129. package/es/components/productCard/components/Time/index.d.ts +4 -0
  130. package/es/components/productCard/locales.d.ts +84 -0
  131. package/es/components/productCard/utils.js +8 -1
  132. package/es/components/radio/index.d.ts +1 -0
  133. package/es/components/segmented/index.d.ts +1 -0
  134. package/es/components/select-time/RightPanel/index.d.ts +1 -0
  135. package/es/components/select-time/index.d.ts +1 -0
  136. package/es/components/skeleton/index.d.ts +1 -0
  137. package/es/components/slider/index.d.ts +1 -0
  138. package/es/components/sort/components/InlineMenu/index.d.ts +1 -0
  139. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  140. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  141. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  142. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  143. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  144. package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  145. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  146. package/es/components/table/Actions/component/ViewMode/index.d.ts +1 -0
  147. package/es/components/table/Actions/index.d.ts +17 -0
  148. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  149. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  150. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  151. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  152. package/es/components/table/Gallery/index.d.ts +5 -0
  153. package/es/components/table/Summary/index.d.ts +1 -0
  154. package/es/components/table/Table/AddFieldModal/index.d.ts +4 -0
  155. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  156. package/es/components/table/Table/fields/date/Config/index.d.ts +1 -0
  157. package/es/components/table/Table/fields/date/Sort/index.d.ts +1 -0
  158. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  159. package/es/components/table/Table/fields/image/Config/index.d.ts +1 -0
  160. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  161. package/es/components/table/Table/fields/image/Sort/index.d.ts +1 -0
  162. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  163. package/es/components/table/Table/fields/index.d.ts +2 -3
  164. package/es/components/table/Table/fields/link/Config/index.d.ts +1 -0
  165. package/es/components/table/Table/fields/link/Sort/index.d.ts +1 -0
  166. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  167. package/es/components/table/Table/fields/number/Config/index.d.ts +1 -0
  168. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  169. package/es/components/table/Table/fields/number/Sort/index.d.ts +1 -0
  170. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  171. package/es/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
  172. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  173. package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
  174. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  175. package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
  176. package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
  177. package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
  178. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  179. package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
  180. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  181. package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
  182. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  183. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
  184. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
  185. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
  186. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  187. package/es/components/table/Table/fields/search/Config/index.d.ts +1 -0
  188. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  189. package/es/components/table/Table/fields/search/Sort/index.d.ts +1 -0
  190. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  191. package/es/components/table/Table/fields/select/Config/index.d.ts +1 -0
  192. package/es/components/table/Table/fields/select/Show/index.d.ts +1 -0
  193. package/es/components/table/Table/fields/select/Sort/index.d.ts +1 -0
  194. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  195. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  196. package/es/components/table/Table/fields/text/Config/index.d.ts +1 -0
  197. package/es/components/table/Table/fields/text/Sort/index.d.ts +1 -0
  198. package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
  199. package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
  200. package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
  201. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  202. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  203. package/es/components/table/Table/index.d.ts +4 -0
  204. package/es/components/table/Table/utils.d.ts +167 -0
  205. package/es/components/table/TableFilter/SortIcon.d.ts +1 -0
  206. package/es/components/table/hooks/useTableSetting.d.ts +21 -0
  207. package/es/components/table/hooks/useTransDataSource.d.ts +12 -0
  208. package/es/components/table/index.d.ts +4 -0
  209. package/es/components/table/index.js +1 -1
  210. package/es/components/table/types.d.ts +270 -0
  211. package/es/components/time-picker/index.d.ts +1 -0
  212. package/es/components/translation/index.d.ts +15 -0
  213. package/es/components/upload/index.d.ts +1 -0
  214. package/es/components/versionModal/index.d.ts +24 -0
  215. package/es/components/versionSelect/index.d.ts +1 -0
  216. package/es/components/virtual-keyboard/Amount/index.d.ts +5 -0
  217. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  218. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  219. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
  220. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +25 -0
  221. package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  222. package/es/components/virtual-keyboard/Number/index.d.ts +5 -0
  223. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  224. package/es/components/virtual-keyboard/Number/types.d.ts +26 -0
  225. package/es/components/virtual-keyboard/Time/utils.d.ts +1 -0
  226. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  227. package/es/components/virtual-keyboard/index.d.ts +25 -0
  228. package/es/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
  229. package/es/components/virtualInput/index.d.ts +23 -0
  230. package/es/components/virtualInput/index.js +0 -1
  231. package/es/components/walletCard/Guest/index.d.ts +1 -0
  232. package/es/components/walletCard/Guide/index.d.ts +1 -0
  233. package/es/components/walletCard/index.d.ts +79 -0
  234. package/es/components/walletCard/index.js +61 -6
  235. package/es/components/walletCard/index.less +62 -2
  236. package/es/locales/en-US.d.ts +344 -0
  237. package/es/locales/en-US.js +6 -11
  238. package/es/locales/zh-CN.d.ts +339 -0
  239. package/es/locales/zh-CN.js +6 -11
  240. package/es/locales/zh-TW.d.ts +339 -0
  241. package/es/locales/zh-TW.js +6 -11
  242. package/es/utils/index.d.ts +1 -1
  243. package/es/utils/platform.d.ts +1 -1
  244. package/lib/components/appVersionControl/index.d.ts +5 -0
  245. package/lib/components/auto-complete-number/index.d.ts +1 -0
  246. package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  247. package/lib/components/auto-resize-text/index.d.ts +6 -0
  248. package/lib/components/badge/index.d.ts +1 -0
  249. package/lib/components/batch-editor/fields/index.d.ts +1 -0
  250. package/lib/components/batch-editor/index.d.ts +1 -0
  251. package/lib/components/calendar/index.d.ts +1 -0
  252. package/lib/components/cardPro/index.d.ts +4 -0
  253. package/lib/components/checkbox/index.d.ts +1 -0
  254. package/lib/components/classicLayout/index.d.ts +1 -0
  255. package/lib/components/config-provider/index.d.ts +1 -0
  256. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  257. package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +8 -0
  258. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +27 -0
  259. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  260. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +5 -0
  261. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +101 -0
  262. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +33 -0
  263. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +85 -0
  264. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
  265. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
  266. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
  267. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
  268. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
  269. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +17 -0
  270. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  271. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -0
  272. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
  273. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
  274. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  275. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
  276. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
  277. package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +5 -0
  278. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +6 -0
  279. package/lib/components/dataSourceComponents/fields/Upload/index.d.ts +3 -0
  280. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +38 -0
  281. package/lib/components/dataSourceComponents/fields/index.d.ts +7 -7
  282. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +5 -0
  283. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +3 -0
  284. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.js +20 -10
  285. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +19 -0
  286. package/lib/components/drag-sort-tree/index.d.ts +4 -0
  287. package/lib/components/dropdown/index.d.ts +1 -0
  288. package/lib/components/filter/types.d.ts +46 -0
  289. package/lib/components/hardwareErrorTip/demo.d.ts +3 -0
  290. package/lib/components/hardwareErrorTip/errorCard/index.d.ts +29 -0
  291. package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +13 -0
  292. package/lib/components/hardwareErrorTip/index.d.ts +19 -0
  293. package/lib/components/hardwareErrorTip/logCard/index.d.ts +28 -0
  294. package/lib/components/hardwareErrorTip/types.d.ts +28 -0
  295. package/lib/components/iconfont/index.d.ts +8 -0
  296. package/lib/components/keyboard/index.d.ts +22 -0
  297. package/lib/components/login-and-register/index.d.ts +82 -0
  298. package/lib/components/page/index.d.ts +3 -0
  299. package/lib/components/page/index.js +3 -2
  300. package/lib/components/pisell-config-provider/context.d.ts +22 -0
  301. package/lib/components/pisell-config-provider/index.d.ts +13 -0
  302. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  303. package/lib/components/pisellAdjustPrice/index.d.ts +4 -0
  304. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  305. package/lib/components/pisellAdjustPrice/type.d.ts +22 -0
  306. package/lib/components/pisellCamera/index.d.ts +4 -0
  307. package/lib/components/pisellCard/index.d.ts +1 -0
  308. package/lib/components/pisellCheckboxGroup/index.d.ts +40 -0
  309. package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
  310. package/lib/components/pisellDatePicker/index.d.ts +1 -0
  311. package/lib/components/pisellEmpty/index.d.ts +19 -0
  312. package/lib/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  313. package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
  314. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
  315. package/lib/components/pisellInput/index.d.ts +1 -0
  316. package/lib/components/pisellLoading/index.d.ts +1 -0
  317. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  318. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  319. package/lib/components/pisellModal/components/index.d.ts +1 -0
  320. package/lib/components/pisellQrcode/index.d.ts +2 -2
  321. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  322. package/lib/components/pisellToast/index.d.ts +17 -0
  323. package/lib/components/pisellToast/squareToast/index.d.ts +15 -0
  324. package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
  325. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
  326. package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
  327. package/lib/components/pisellTooltip/index.d.ts +1 -0
  328. package/lib/components/pisellUpload/index.d.ts +1 -0
  329. package/lib/components/pisellWalletPassCard/index.d.ts +8 -0
  330. package/lib/components/pisellWalletPassCard/index.js +62 -31
  331. package/lib/components/pisellWalletPassCard/index.less +95 -33
  332. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  333. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +4 -0
  334. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  335. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  336. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
  337. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  338. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +4 -0
  339. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  340. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  341. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
  342. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  343. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  344. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  345. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +7 -0
  346. package/lib/components/productCard/cartSkuCard/index.d.ts +10 -0
  347. package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
  348. package/lib/components/productCard/components/Action/index.d.ts +4 -0
  349. package/lib/components/productCard/components/Divider/index.d.ts +1 -0
  350. package/lib/components/productCard/components/Header/Actions/index.d.ts +4 -0
  351. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
  352. package/lib/components/productCard/components/Header/index.d.ts +3 -0
  353. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  354. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  355. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  356. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  357. package/lib/components/productCard/components/Sales/index.d.ts +3 -0
  358. package/lib/components/productCard/components/Time/components/Like/index.d.ts +1 -0
  359. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  360. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  361. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  362. package/lib/components/productCard/components/Time/index.d.ts +4 -0
  363. package/lib/components/productCard/locales.d.ts +84 -0
  364. package/lib/components/productCard/utils.js +8 -1
  365. package/lib/components/radio/index.d.ts +1 -0
  366. package/lib/components/segmented/index.d.ts +1 -0
  367. package/lib/components/select-time/RightPanel/index.d.ts +1 -0
  368. package/lib/components/select-time/index.d.ts +1 -0
  369. package/lib/components/skeleton/index.d.ts +1 -0
  370. package/lib/components/slider/index.d.ts +1 -0
  371. package/lib/components/sort/components/InlineMenu/index.d.ts +1 -0
  372. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  373. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  374. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  375. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  376. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  377. package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  378. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  379. package/lib/components/table/Actions/component/ViewMode/index.d.ts +1 -0
  380. package/lib/components/table/Actions/index.d.ts +17 -0
  381. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  382. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  383. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  384. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  385. package/lib/components/table/Gallery/index.d.ts +5 -0
  386. package/lib/components/table/Summary/index.d.ts +1 -0
  387. package/lib/components/table/Table/AddFieldModal/index.d.ts +4 -0
  388. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  389. package/lib/components/table/Table/fields/date/Config/index.d.ts +1 -0
  390. package/lib/components/table/Table/fields/date/Sort/index.d.ts +1 -0
  391. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  392. package/lib/components/table/Table/fields/image/Config/index.d.ts +1 -0
  393. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  394. package/lib/components/table/Table/fields/image/Sort/index.d.ts +1 -0
  395. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  396. package/lib/components/table/Table/fields/index.d.ts +2 -3
  397. package/lib/components/table/Table/fields/link/Config/index.d.ts +1 -0
  398. package/lib/components/table/Table/fields/link/Sort/index.d.ts +1 -0
  399. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  400. package/lib/components/table/Table/fields/number/Config/index.d.ts +1 -0
  401. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  402. package/lib/components/table/Table/fields/number/Sort/index.d.ts +1 -0
  403. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  404. package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
  405. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  406. package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
  407. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  408. package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
  409. package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
  410. package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
  411. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  412. package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
  413. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  414. package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
  415. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  416. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
  417. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
  418. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
  419. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  420. package/lib/components/table/Table/fields/search/Config/index.d.ts +1 -0
  421. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  422. package/lib/components/table/Table/fields/search/Sort/index.d.ts +1 -0
  423. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  424. package/lib/components/table/Table/fields/select/Config/index.d.ts +1 -0
  425. package/lib/components/table/Table/fields/select/Show/index.d.ts +1 -0
  426. package/lib/components/table/Table/fields/select/Sort/index.d.ts +1 -0
  427. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  428. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  429. package/lib/components/table/Table/fields/text/Config/index.d.ts +1 -0
  430. package/lib/components/table/Table/fields/text/Sort/index.d.ts +1 -0
  431. package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
  432. package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
  433. package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
  434. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  435. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  436. package/lib/components/table/Table/index.d.ts +4 -0
  437. package/lib/components/table/Table/utils.d.ts +167 -0
  438. package/lib/components/table/TableFilter/SortIcon.d.ts +1 -0
  439. package/lib/components/table/hooks/useTableSetting.d.ts +21 -0
  440. package/lib/components/table/hooks/useTransDataSource.d.ts +12 -0
  441. package/lib/components/table/index.d.ts +4 -0
  442. package/lib/components/table/index.js +1 -1
  443. package/lib/components/table/types.d.ts +270 -0
  444. package/lib/components/time-picker/index.d.ts +1 -0
  445. package/lib/components/translation/index.d.ts +15 -0
  446. package/lib/components/upload/index.d.ts +1 -0
  447. package/lib/components/versionModal/index.d.ts +24 -0
  448. package/lib/components/versionSelect/index.d.ts +1 -0
  449. package/lib/components/virtual-keyboard/Amount/index.d.ts +5 -0
  450. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  451. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  452. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
  453. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +25 -0
  454. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  455. package/lib/components/virtual-keyboard/Number/index.d.ts +5 -0
  456. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  457. package/lib/components/virtual-keyboard/Number/types.d.ts +26 -0
  458. package/lib/components/virtual-keyboard/Time/utils.d.ts +1 -0
  459. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  460. package/lib/components/virtual-keyboard/index.d.ts +25 -0
  461. package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
  462. package/lib/components/virtualInput/index.d.ts +23 -0
  463. package/lib/components/virtualInput/index.js +0 -8
  464. package/lib/components/walletCard/Guest/index.d.ts +1 -0
  465. package/lib/components/walletCard/Guide/index.d.ts +1 -0
  466. package/lib/components/walletCard/index.d.ts +79 -0
  467. package/lib/components/walletCard/index.js +57 -4
  468. package/lib/components/walletCard/index.less +62 -2
  469. package/lib/locales/en-US.d.ts +344 -0
  470. package/lib/locales/en-US.js +3 -11
  471. package/lib/locales/zh-CN.d.ts +339 -0
  472. package/lib/locales/zh-CN.js +3 -11
  473. package/lib/locales/zh-TW.d.ts +339 -0
  474. package/lib/locales/zh-TW.js +3 -11
  475. package/lib/utils/index.d.ts +1 -1
  476. package/lib/utils/platform.d.ts +1 -1
  477. package/package.json +2 -2
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare type Value = {
4
+ en: string;
5
+ 'zh-CN': string;
6
+ 'zh-HK': string;
7
+ };
8
+ interface TranslationProps {
9
+ value: Value;
10
+ onChange: (value: Value) => void;
11
+ maxLength?: number;
12
+ type?: 'text' | 'textarea';
13
+ }
14
+ declare const Translation: React.FC<TranslationProps>;
15
+ export default Translation;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Upload: (props: any) => JSX.Element;
2
3
  export default Upload;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { Version } from '../versionSelect';
3
+ import './index.less';
4
+ interface PublishVersionModalProps {
5
+ visible: boolean;
6
+ currentVersion: string;
7
+ onCancel: () => void;
8
+ onConfirm: (data: VersionData) => void;
9
+ isShowNote?: boolean;
10
+ confirmLoading?: boolean;
11
+ versions?: Version[];
12
+ isShowBasedOn?: boolean;
13
+ isShowCurrentVersion?: boolean;
14
+ isValidateVersion?: boolean;
15
+ title: string;
16
+ }
17
+ interface VersionData {
18
+ version: string;
19
+ note: string;
20
+ baseVersion?: string;
21
+ versionType?: string;
22
+ }
23
+ declare const PublishVersionModal: React.FC<PublishVersionModalProps>;
24
+ export default PublishVersionModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  import './index.less';
3
4
  export interface Version {
@@ -0,0 +1,5 @@
1
+ import { AmountProps, RightItemsStyleProps } from './types';
2
+ import './index.less';
3
+ export type { AmountProps, RightItemsStyleProps };
4
+ declare const Amount: (props: AmountProps) => JSX.Element;
5
+ export default Amount;
@@ -0,0 +1,32 @@
1
+ export declare const amountThemeConfig: {
2
+ dark: {
3
+ backgroundColor: string;
4
+ containerBackgroundColor: string;
5
+ buttonBackgroundColor: string;
6
+ textColor: string;
7
+ resetButtonBackgroundColor: string;
8
+ resetButtonTextColor: string;
9
+ isDoneButtonFollowTheme: boolean;
10
+ doneButtonBackgroundColor: string;
11
+ doneButtonTextColor: string;
12
+ keyboardBackgroundColor: string;
13
+ keyboardButtonBackgroundColor: string;
14
+ keyboardButtonTextColor: string;
15
+ keyboardButtonHoverColor: string;
16
+ };
17
+ light: {
18
+ backgroundColor: string;
19
+ containerBackgroundColor: string;
20
+ buttonBackgroundColor: string;
21
+ textColor: string;
22
+ resetButtonBackgroundColor: string;
23
+ resetButtonTextColor: string;
24
+ isDoneButtonFollowTheme: boolean;
25
+ doneButtonBackgroundColor: string;
26
+ doneButtonTextColor: string;
27
+ keyboardBackgroundColor: string;
28
+ keyboardButtonBackgroundColor: string;
29
+ keyboardButtonTextColor: string;
30
+ keyboardButtonHoverColor: string;
31
+ };
32
+ };
@@ -0,0 +1,44 @@
1
+ /// <reference types="react" />
2
+ import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
3
+ export interface RightItemsStyleProps {
4
+ buttonBackgroundColor?: string;
5
+ textColor?: string;
6
+ resetButtonBackgroundColor?: string;
7
+ resetButtonTextColor?: string;
8
+ isDoneButtonFollowTheme?: boolean;
9
+ doneButtonBackgroundColor?: string;
10
+ doneButtonTextColor?: string;
11
+ }
12
+ export interface AmountProps {
13
+ max?: number;
14
+ min?: number;
15
+ doneText?: string;
16
+ resetText?: string;
17
+ defaultValue?: string | number;
18
+ placeholder?: string;
19
+ amountProps?: {
20
+ showCurrencySymbol: boolean;
21
+ useThousandsSeparator: boolean;
22
+ };
23
+ presets?: BaseNumberKeyboardProps['presets'];
24
+ value?: string | number;
25
+ onChange?: (val: string | number) => void;
26
+ onEnter?: (val: string | number) => void;
27
+ defaultSelect?: boolean;
28
+ inputFormat?: (_v: string) => React.ReactNode | null;
29
+ rightItemsStyle?: RightItemsStyleProps;
30
+ selectType?: 'light' | 'dark';
31
+ backgroundColor?: string;
32
+ containerBackgroundColor?: string;
33
+ buttonBackgroundColor?: string;
34
+ textColor?: string;
35
+ resetButtonBackgroundColor?: string;
36
+ resetButtonTextColor?: string;
37
+ isDoneButtonFollowTheme?: boolean;
38
+ doneButtonBackgroundColor?: string;
39
+ doneButtonTextColor?: string;
40
+ keyboardBackgroundColor?: string;
41
+ keyboardButtonBackgroundColor?: string;
42
+ keyboardButtonTextColor?: string;
43
+ keyboardButtonHoverColor?: string;
44
+ }
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import './Presets.less';
3
+ export declare type PresetsItem = {
4
+ label: string;
5
+ value: number | string;
6
+ style?: React.CSSProperties;
7
+ onClick?: (item: PresetsItem, _next: () => void) => void;
8
+ render?: (item: PresetsItem) => React.ReactNode;
9
+ };
10
+ export interface PresetsProps {
11
+ presets?: PresetsItem[];
12
+ onChange: (val: string) => void;
13
+ }
14
+ declare const Presets: (props: PresetsProps) => JSX.Element | null;
15
+ export default Presets;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { PresetsProps } from './Presets';
3
+ import { KeyboardProps } from '../Keyboard';
4
+ import { RightItemsStyleProps } from '../Amount';
5
+ import './index.less';
6
+ export interface BaseNumberKeyboardProps {
7
+ placeholder?: string;
8
+ format?: (val: string) => React.ReactNode;
9
+ defaultValue?: string | number;
10
+ doneText?: string;
11
+ resetText?: string;
12
+ onChange?: (val: string) => void;
13
+ onEnter?: (val: string) => void;
14
+ value?: string | number;
15
+ max?: number;
16
+ min?: number;
17
+ presets?: PresetsProps['presets'];
18
+ defaultSelect?: boolean;
19
+ rightItemsStyle?: RightItemsStyleProps;
20
+ customDisplay?: React.ReactNode | ((props: any) => React.ReactNode);
21
+ keyboardProps?: KeyboardProps;
22
+ style?: React.CSSProperties;
23
+ }
24
+ declare const BaseNumberKeyboard: (props: BaseNumberKeyboardProps) => JSX.Element;
25
+ export default BaseNumberKeyboard;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export declare type ItemValue = string | number;
4
+ export interface Item {
5
+ value: ItemValue;
6
+ label: React.ReactNode;
7
+ disabled: boolean;
8
+ type: 'text' | 'primary';
9
+ style?: React.CSSProperties;
10
+ size?: number;
11
+ }
12
+ export interface KeyboardProps {
13
+ className?: string;
14
+ style?: React.CSSProperties;
15
+ onChange?: (value?: ItemValue) => void;
16
+ items?: Item[];
17
+ rightItems?: Item[];
18
+ keydown?: boolean;
19
+ }
20
+ declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
21
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { NumberProps } from './types';
2
+ import './index.less';
3
+ export type { NumberProps };
4
+ declare const Number: (props: NumberProps) => JSX.Element;
5
+ export default Number;
@@ -0,0 +1,32 @@
1
+ export declare const numberThemeConfig: {
2
+ dark: {
3
+ backgroundColor: string;
4
+ containerBackgroundColor: string;
5
+ buttonBackgroundColor: string;
6
+ textColor: string;
7
+ resetButtonBackgroundColor: string;
8
+ resetButtonTextColor: string;
9
+ isDoneButtonFollowTheme: boolean;
10
+ doneButtonBackgroundColor: string;
11
+ doneButtonTextColor: string;
12
+ keyboardBackgroundColor: string;
13
+ keyboardButtonBackgroundColor: string;
14
+ keyboardButtonTextColor: string;
15
+ keyboardButtonHoverColor: string;
16
+ };
17
+ light: {
18
+ backgroundColor: string;
19
+ containerBackgroundColor: string;
20
+ buttonBackgroundColor: string;
21
+ textColor: string;
22
+ resetButtonBackgroundColor: string;
23
+ resetButtonTextColor: string;
24
+ isDoneButtonFollowTheme: boolean;
25
+ doneButtonBackgroundColor: string;
26
+ doneButtonTextColor: string;
27
+ keyboardBackgroundColor: string;
28
+ keyboardButtonBackgroundColor: string;
29
+ keyboardButtonTextColor: string;
30
+ keyboardButtonHoverColor: string;
31
+ };
32
+ };
@@ -0,0 +1,26 @@
1
+ export interface NumberProps {
2
+ max?: number;
3
+ min?: number;
4
+ doneText?: string;
5
+ resetText: string;
6
+ defaultValue?: string | number;
7
+ placeholder?: string;
8
+ value?: string | number;
9
+ onChange?: (val: string | number) => void;
10
+ onEnter?: (val: string | number) => void;
11
+ defaultSelect?: boolean;
12
+ selectType?: 'light' | 'dark';
13
+ backgroundColor?: string;
14
+ containerBackgroundColor?: string;
15
+ buttonBackgroundColor?: string;
16
+ textColor?: string;
17
+ resetButtonBackgroundColor?: string;
18
+ resetButtonTextColor?: string;
19
+ isDoneButtonFollowTheme?: boolean;
20
+ doneButtonBackgroundColor?: string;
21
+ doneButtonTextColor?: string;
22
+ keyboardBackgroundColor?: string;
23
+ keyboardButtonBackgroundColor?: string;
24
+ keyboardButtonTextColor?: string;
25
+ keyboardButtonHoverColor?: string;
26
+ }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const formatStringToTime: (value: string) => {
2
3
  valueArray: string[];
3
4
  valueString: string;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { InputProps } from 'antd';
3
+ import './index.less';
4
+ export interface VirtualKeyInputProps extends InputProps {
5
+ previewValue?: string;
6
+ renderInput?: (props: any) => any;
7
+ showDelete?: boolean;
8
+ onValueSelect?: (selected: boolean) => void;
9
+ defaultSelect?: boolean;
10
+ style?: React.CSSProperties;
11
+ }
12
+ declare const VirtualKeyInput: (props: VirtualKeyInputProps) => JSX.Element;
13
+ export default VirtualKeyInput;
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import { KeyboardProps } from "./Keyboard";
3
+ import { VirtualKeyInputProps } from "./VirtualKeyInput";
4
+ import "./index.less";
5
+ interface VirtualKeyboardProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ keyboardProps?: KeyboardProps;
7
+ virtualKeyInputProps?: VirtualKeyInputProps;
8
+ rightPanel?: React.ReactNode;
9
+ style?: React.CSSProperties;
10
+ onChange?: (value?: any) => void;
11
+ value?: string;
12
+ selectType?: 'light' | 'dark';
13
+ backgroundColor?: string;
14
+ containerBackgroundColor?: string;
15
+ buttonBackgroundColor?: string;
16
+ textColor?: string;
17
+ keyboardBackgroundColor?: string;
18
+ keyboardButtonBackgroundColor?: string;
19
+ keyboardButtonTextColor?: string;
20
+ keyboardButtonHoverColor?: string;
21
+ primaryButtonBackgroundColor?: string;
22
+ primaryButtonTextColor?: string;
23
+ }
24
+ declare const VirtualKeyboard: (props: VirtualKeyboardProps) => JSX.Element;
25
+ export default VirtualKeyboard;
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface BaseVirtualInputProps {
4
+ /** 输入值 */
5
+ value?: string | React.ReactNode;
6
+ /** 占位符 */
7
+ placeholder?: string;
8
+ /** 是否自动聚焦 */
9
+ autoFocus?: boolean;
10
+ /** 是否禁用 */
11
+ disabled?: boolean;
12
+ /** 组件高度,默认60px */
13
+ height?: number | string;
14
+ /** 字体大小,默认48px,如果不设置会根据高度自动计算 */
15
+ fontSize?: number | string;
16
+ /** 聚焦回调 */
17
+ onFocus?: () => void;
18
+ /** 失焦回调 */
19
+ onBlur?: () => void;
20
+ /** 文字位置 */
21
+ textAlign?: 'start' | 'center' | 'end';
22
+ /** 自定义样式 */
23
+ style?: React.CSSProperties;
24
+ /** 自定义类名 */
25
+ className?: string;
26
+ /** showCursor */
27
+ showCursor?: boolean;
28
+ /** 防止失焦的元素选择器或ref */
29
+ preventBlurElements?: Array<string | React.RefObject<HTMLElement>>;
30
+ /** 是否聚焦(受控模式) */
31
+ focused?: boolean;
32
+ }
33
+ export interface BaseVirtualInputRef {
34
+ /** 手动聚焦 */
35
+ focus: () => void;
36
+ /** 手动失焦 */
37
+ blur: () => void;
38
+ }
39
+ declare const BaseVirtualInput: React.ForwardRefExoticComponent<BaseVirtualInputProps & React.RefAttributes<BaseVirtualInputRef>>;
40
+ export default BaseVirtualInput;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { BaseVirtualInputProps, BaseVirtualInputRef } from './BaseVirtualInput';
3
+ import './index.less';
4
+ export interface VirtualInputProps extends BaseVirtualInputProps {
5
+ /** 在VirtualInput上方显示的额外内容 */
6
+ topContent?: React.ReactNode;
7
+ /** 在VirtualInput下方显示的额外内容 */
8
+ bottomContent?: React.ReactNode;
9
+ /** wrapper class */
10
+ wrapperClassName?: string;
11
+ /** 虚拟输入框包装器的样式 */
12
+ wrapperStyle?: React.CSSProperties;
13
+ /** 是否允许清除输入框中的内容 */
14
+ allowClear?: boolean;
15
+ /** 清除输入框内容的回调函数 */
16
+ onClear?: () => void;
17
+ /** 自定义清除按钮的样式 */
18
+ clearButtonStyle?: React.CSSProperties;
19
+ }
20
+ export interface VirtualInputRef extends BaseVirtualInputRef {
21
+ }
22
+ declare const VirtualInput: React.ForwardRefExoticComponent<VirtualInputProps & React.RefAttributes<VirtualInputRef>>;
23
+ export default VirtualInput;
@@ -29,8 +29,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  // src/components/virtualInput/index.tsx
30
30
  var virtualInput_exports = {};
31
31
  __export(virtualInput_exports, {
32
- BaseVirtualInputProps: () => import_BaseVirtualInput2.BaseVirtualInputProps,
33
- BaseVirtualInputRef: () => import_BaseVirtualInput2.BaseVirtualInputRef,
34
32
  default: () => virtualInput_default
35
33
  });
36
34
  module.exports = __toCommonJS(virtualInput_exports);
@@ -39,7 +37,6 @@ var import_classnames = __toESM(require("classnames"));
39
37
  var import_icon = __toESM(require("../icon"));
40
38
  var import_BaseVirtualInput = __toESM(require("./BaseVirtualInput"));
41
39
  var import_index = require("./index.less");
42
- var import_BaseVirtualInput2 = require("./BaseVirtualInput");
43
40
  var VirtualInput = (0, import_react.forwardRef)(
44
41
  ({
45
42
  topContent,
@@ -95,8 +92,3 @@ var VirtualInput = (0, import_react.forwardRef)(
95
92
  );
96
93
  VirtualInput.displayName = "VirtualInput";
97
94
  var virtualInput_default = VirtualInput;
98
- // Annotate the CommonJS export names for ESM import in node:
99
- 0 && (module.exports = {
100
- BaseVirtualInputProps,
101
- BaseVirtualInputRef
102
- });
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Guest: (props: any) => JSX.Element;
3
4
  export default Guest;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Guide: (props: any) => JSX.Element;
3
4
  export default Guide;
@@ -0,0 +1,79 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface WalletCardItem {
4
+ type: string;
5
+ custom_title?: string | {
6
+ original: string;
7
+ en: string;
8
+ 'zh-CN': string;
9
+ 'zh-HK': string;
10
+ };
11
+ display?: 0 | 1;
12
+ value?: number;
13
+ }
14
+ export interface WalletCardProps {
15
+ /** 钱包ID */
16
+ id?: string;
17
+ /** 二维码弹窗适配平台 */
18
+ platform?: 'pc' | 'h5' | 'ipad';
19
+ /** 卡片主题 */
20
+ mode?: 'dark' | 'light';
21
+ /** 默认还是完整显示code */
22
+ cardStyle?: 'normal' | 'full';
23
+ /** 条形码还是二维码 */
24
+ codeType?: 'barCode' | 'qrCode';
25
+ /** 二维码方向 */
26
+ codeDirection?: 'bottom' | 'top';
27
+ /** 自定义背景图 */
28
+ customBackgroundImage?: string;
29
+ /** 图标:可以是React组件或图片URL */
30
+ showIcon?: boolean;
31
+ showWalletName?: boolean;
32
+ iconImg?: string;
33
+ /** 钱包名称 */
34
+ walletName?: string;
35
+ /** 店铺名称 */
36
+ shopName?: string;
37
+ /** 是否显示店铺名称 */
38
+ showShopName?: boolean;
39
+ /** 卡号 */
40
+ cardNo?: string;
41
+ /** 是否显示卡号 */
42
+ showCardNo?: boolean;
43
+ /** 是否显示二维码 */
44
+ showCode?: boolean;
45
+ /** 点击二维码/条形码的回调 */
46
+ onCodeClick?: () => void;
47
+ /** 货币符号 */
48
+ symbol: string;
49
+ /** 点击卡片的回调 */
50
+ onClick?: () => void;
51
+ /** 自定义类名 */
52
+ className?: string;
53
+ items: WalletCardItem[];
54
+ /** 自定义样式 */
55
+ style?: React.CSSProperties;
56
+ title?: string;
57
+ subTitle?: string;
58
+ align?: 'left' | 'center';
59
+ buttonText?: string;
60
+ [key: string]: any;
61
+ /** 是否已登录 */
62
+ isLogin?: boolean;
63
+ /** 是否是引导页 */
64
+ isGuide?: boolean;
65
+ /** 是否显示查看PIN */
66
+ showViewPin?: boolean;
67
+ /** 查看PIN的回调 */
68
+ onViewPinClick?: () => void;
69
+ /** 是否显示持有人 */
70
+ showHolderName?: boolean;
71
+ /** 持有人类型 */
72
+ holderType?: 'customer' | 'custom';
73
+ /** 持有人, 表单记录,展示时一般取main_field */
74
+ holder?: any;
75
+ /** 持有人点击回调 */
76
+ onSetHolder?: (currentValue?: any) => void;
77
+ }
78
+ declare const WalletCard: React.FC<WalletCardProps>;
79
+ export default WalletCard;
@@ -62,6 +62,11 @@ var DEFAULT_PROPS = {
62
62
  showCode: true,
63
63
  walletName: "Level",
64
64
  isLogin: true,
65
+ showHolderName: true,
66
+ holderType: "customer",
67
+ holder: null,
68
+ onSetHolder: () => {
69
+ },
65
70
  items: [
66
71
  {
67
72
  type: "rechargeable",
@@ -166,7 +171,10 @@ var CardHeader = ({
166
171
  onCodeClick,
167
172
  isLogin = false,
168
173
  showViewPin = false,
169
- onViewPinClick
174
+ onViewPinClick,
175
+ showHolderName,
176
+ holderName,
177
+ onHolderClick
170
178
  }) => {
171
179
  const processedShowIcon = toBooleanValue(showIcon);
172
180
  const processedShowWalletName = toBooleanValue(showWalletName);
@@ -181,7 +189,14 @@ var CardHeader = ({
181
189
  alt: "wallet icon",
182
190
  style: { width: "20px", height: "20px" }
183
191
  }
184
- )) : null, processedShowWalletName && walletName && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-level-text" }, walletName)), processedShowShopName && shopName && /* @__PURE__ */ import_react.default.createElement("div", null, shopName), processedShowCardNo && cardNo && /* @__PURE__ */ import_react.default.createElement("div", null, cardNo), processedShowViewPin && /* @__PURE__ */ import_react.default.createElement(
192
+ )) : null, processedShowWalletName && walletName && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-level-text" }, walletName)), showHolderName && /* @__PURE__ */ import_react.default.createElement(
193
+ "div",
194
+ {
195
+ className: (0, import_classnames.default)("pisell-wallet-card-header-holder-name"),
196
+ onClick: onHolderClick
197
+ },
198
+ holderName
199
+ ), processedShowShopName && shopName && /* @__PURE__ */ import_react.default.createElement("div", null, shopName), processedShowCardNo && cardNo && /* @__PURE__ */ import_react.default.createElement("div", null, cardNo), processedShowViewPin && /* @__PURE__ */ import_react.default.createElement(
185
200
  "div",
186
201
  {
187
202
  className: "pisell-wallet-card-header-view-pin",
@@ -307,7 +322,11 @@ var WalletCard = (props) => {
307
322
  onClick,
308
323
  className,
309
324
  style,
310
- isGuide
325
+ isGuide,
326
+ showHolderName,
327
+ holderType,
328
+ holder,
329
+ onSetHolder
311
330
  } = mergedProps;
312
331
  const showIcon = toBooleanValue(mergedProps.showIcon);
313
332
  const showWalletName = toBooleanValue(mergedProps.showWalletName);
@@ -367,6 +386,36 @@ var WalletCard = (props) => {
367
386
  console.error("onViewPinClick方法需要传入");
368
387
  }
369
388
  };
389
+ const _renderMask = () => {
390
+ if (holderType === "customer") return null;
391
+ if (holderType === "custom" && !(holder == null ? void 0 : holder.id)) {
392
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-add-holder-mask" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-add-holder-mask-text" }, (0, import_locales.getText)("pisell2.wallet-card.add-holder-tip")), /* @__PURE__ */ import_react.default.createElement(
393
+ import_antd.Button,
394
+ {
395
+ type: "primary",
396
+ className: "pisell-wallet-add-holder-mask-button",
397
+ onClick: () => onSetHolder == null ? void 0 : onSetHolder()
398
+ },
399
+ (0, import_locales.getText)("pisell2.wallet-card.add-holder-button-text"),
400
+ /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-user-edit", style: { fontSize: 16 } })
401
+ ));
402
+ }
403
+ return null;
404
+ };
405
+ const _showHolderName = (0, import_react.useMemo)(() => {
406
+ return holderType === "custom" && showHolderName;
407
+ }, [holderType, showHolderName]);
408
+ const holderName = (0, import_react.useMemo)(() => {
409
+ if (holderType === "custom" && !(holder == null ? void 0 : holder.id)) {
410
+ return "--";
411
+ }
412
+ return (holder == null ? void 0 : holder.name) || "";
413
+ }, [holderType, holder]);
414
+ const handleHolderClick = (e) => {
415
+ e.stopPropagation();
416
+ e.preventDefault();
417
+ onSetHolder == null ? void 0 : onSetHolder(holder);
418
+ };
370
419
  return /* @__PURE__ */ import_react.default.createElement(
371
420
  "div",
372
421
  {
@@ -382,6 +431,7 @@ var WalletCard = (props) => {
382
431
  flexDirection: codeDirection === "top" ? "column-reverse" : "column"
383
432
  }
384
433
  },
434
+ _renderMask(),
385
435
  /* @__PURE__ */ import_react.default.createElement(
386
436
  "div",
387
437
  {
@@ -417,7 +467,10 @@ var WalletCard = (props) => {
417
467
  onCodeClick: handleCodeClick,
418
468
  isLogin,
419
469
  showViewPin,
420
- onViewPinClick
470
+ onViewPinClick,
471
+ showHolderName: _showHolderName,
472
+ holderName,
473
+ onHolderClick: handleHolderClick
421
474
  }
422
475
  ),
423
476
  /* @__PURE__ */ import_react.default.createElement(