@pisell/materials 6.4.19 → 6.4.20

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 (355) 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 +7 -7
  6. package/build/lowcode/preview.js +143 -143
  7. package/build/lowcode/render/default/view.js +21 -21
  8. package/build/lowcode/view.js +22 -22
  9. package/es/components/appVersionControl/index.d.ts +5 -0
  10. package/es/components/auto-complete-number/index.d.ts +0 -1
  11. package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  12. package/es/components/auto-resize-text/index.d.ts +6 -0
  13. package/es/components/badge/index.d.ts +0 -1
  14. package/es/components/batch-editor/fields/index.d.ts +0 -1
  15. package/es/components/calendar/index.d.ts +0 -1
  16. package/es/components/cardPro/index.d.ts +3 -0
  17. package/es/components/checkbox/index.d.ts +0 -1
  18. package/es/components/classicLayout/index.d.ts +0 -1
  19. package/es/components/colorPicker/index.d.ts +0 -1
  20. package/es/components/config-provider/index.d.ts +0 -1
  21. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
  22. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +39 -0
  23. package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +8 -0
  24. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  25. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +39 -0
  26. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +100 -0
  27. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
  28. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  29. package/es/components/dataSourceComponents/fields/index.d.ts +11 -11
  30. package/es/components/dataSourceComponents/hooks/useActions.d.ts +18 -0
  31. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
  32. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
  33. package/es/components/drag-sort-tree/index.d.ts +4 -0
  34. package/es/components/dropdown/index.d.ts +0 -1
  35. package/es/components/filter/components/items/index.d.ts +0 -1
  36. package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
  37. package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
  38. package/es/components/filter/components/items/text/index.d.ts +0 -1
  39. package/es/components/iconfont/index.js +1 -1
  40. package/es/components/keyboard/index.d.ts +22 -0
  41. package/es/components/login-and-register/index.d.ts +82 -0
  42. package/es/components/page/index.d.ts +5 -0
  43. package/es/components/pisell-config-provider/context.d.ts +22 -0
  44. package/es/components/pisell-config-provider/index.d.ts +13 -0
  45. package/es/components/pisell-config-provider/index.js +0 -1
  46. package/es/components/pisellAdjustPrice/type.d.ts +22 -0
  47. package/es/components/pisellCard/index.d.ts +0 -1
  48. package/es/components/pisellCardList/index.d.ts +4 -0
  49. package/es/components/pisellCardList/index.js +5 -1
  50. package/es/components/pisellCheckboxGroup/index.d.ts +40 -0
  51. package/es/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
  52. package/es/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  53. package/es/components/pisellInput/components/BankCard/index.d.ts +0 -1
  54. package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
  55. package/es/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  56. package/es/components/pisellInput/index.d.ts +0 -1
  57. package/es/components/pisellQrcode/index.d.ts +10 -0
  58. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  59. package/es/components/pisellToast/index.d.ts +17 -0
  60. package/es/components/pisellToast/squareToast/index.d.ts +15 -0
  61. package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
  62. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
  63. package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
  64. package/es/components/pisellTooltip/index.d.ts +0 -1
  65. package/es/components/pisellUpload/index.d.ts +0 -1
  66. package/es/components/pisellWalletPassCard/index.d.ts +4 -0
  67. package/es/components/pisellWalletPassCard/index.js +17 -4
  68. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  69. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  70. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  71. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  72. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
  73. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  74. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  75. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  76. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  77. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  78. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  79. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  80. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  81. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  82. package/es/components/productCard/cartSkuCard/index.d.ts +10 -0
  83. package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
  84. package/es/components/productCard/components/Action/index.d.ts +3 -0
  85. package/es/components/productCard/components/Divider/index.d.ts +0 -1
  86. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  87. package/es/components/productCard/components/Header/index.d.ts +3 -0
  88. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  89. package/es/components/productCard/components/Sales/index.d.ts +3 -0
  90. package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -1
  91. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +4 -0
  92. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  93. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
  94. package/es/components/productCard/components/Time/index.d.ts +4 -0
  95. package/es/components/productCard/locales.d.ts +84 -0
  96. package/es/components/productCard/status.d.ts +32 -0
  97. package/es/components/productCard/types.d.ts +84 -0
  98. package/es/components/radio/index.d.ts +0 -1
  99. package/es/components/segmented/index.d.ts +0 -1
  100. package/es/components/select-time/RightPanel/index.d.ts +0 -1
  101. package/es/components/skeleton/index.d.ts +0 -1
  102. package/es/components/slider/index.d.ts +0 -1
  103. package/es/components/sort/components/InlineMenu/index.d.ts +0 -1
  104. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  105. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  106. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  107. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  108. package/es/components/table/Actions/component/ExportImport/index.d.ts +1 -0
  109. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  110. package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  111. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  112. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  113. package/es/components/table/Gallery/index.d.ts +5 -0
  114. package/es/components/table/Summary/index.d.ts +0 -1
  115. package/es/components/table/Table/AddFieldModal/index.d.ts +4 -0
  116. package/es/components/table/Table/fields/date/Config/index.d.ts +0 -1
  117. package/es/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  118. package/es/components/table/Table/fields/image/Config/index.d.ts +0 -1
  119. package/es/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  120. package/es/components/table/Table/fields/index.d.ts +2 -2
  121. package/es/components/table/Table/fields/link/Config/index.d.ts +0 -1
  122. package/es/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  123. package/es/components/table/Table/fields/number/Config/index.d.ts +0 -1
  124. package/es/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  125. package/es/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  126. package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  127. package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  128. package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  129. package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  130. package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  131. package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  132. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  133. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  134. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  135. package/es/components/table/Table/fields/search/Config/index.d.ts +0 -1
  136. package/es/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  137. package/es/components/table/Table/fields/select/Config/index.d.ts +0 -1
  138. package/es/components/table/Table/fields/select/Show/index.d.ts +0 -1
  139. package/es/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  140. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  141. package/es/components/table/Table/fields/text/Config/index.d.ts +0 -1
  142. package/es/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  143. package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  144. package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  145. package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  146. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  147. package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  148. package/es/components/table/Table/utils.d.ts +161 -0
  149. package/es/components/table/hooks/useTableSetting.d.ts +21 -0
  150. package/es/components/table/hooks/useTransDataSource.d.ts +11 -0
  151. package/es/components/table/types.d.ts +268 -0
  152. package/es/components/time-picker/index.d.ts +0 -1
  153. package/es/components/translation/index.d.ts +14 -0
  154. package/es/components/upload/index.d.ts +0 -1
  155. package/es/components/versionModal/index.d.ts +23 -0
  156. package/es/components/virtual-keyboard/Amount/index.d.ts +1 -0
  157. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
  158. package/es/components/virtual-keyboard/Number/index.d.ts +0 -1
  159. package/es/components/virtual-keyboard/Number/types.d.ts +26 -0
  160. package/es/components/virtual-keyboard/Time/utils.d.ts +0 -1
  161. package/es/components/virtual-keyboard/index.d.ts +25 -0
  162. package/es/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
  163. package/es/components/virtualInput/index.d.ts +24 -0
  164. package/es/components/walletCard/Guest/index.d.ts +0 -1
  165. package/es/components/walletCard/Guide/index.d.ts +0 -1
  166. package/es/locales/en-US.d.ts +1 -0
  167. package/es/locales/en-US.js +1 -0
  168. package/es/locales/zh-CN.d.ts +1 -0
  169. package/es/locales/zh-CN.js +1 -0
  170. package/es/locales/zh-TW.d.ts +1 -0
  171. package/es/locales/zh-TW.js +1 -0
  172. package/es/utils/index.d.ts +1 -1
  173. package/es/utils/platform.d.ts +1 -1
  174. package/lib/components/appVersionControl/index.d.ts +5 -0
  175. package/lib/components/auto-complete-number/index.d.ts +0 -1
  176. package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  177. package/lib/components/auto-resize-text/index.d.ts +6 -0
  178. package/lib/components/badge/index.d.ts +0 -1
  179. package/lib/components/batch-editor/fields/index.d.ts +0 -1
  180. package/lib/components/calendar/index.d.ts +0 -1
  181. package/lib/components/cardPro/index.d.ts +3 -0
  182. package/lib/components/checkbox/index.d.ts +0 -1
  183. package/lib/components/classicLayout/index.d.ts +0 -1
  184. package/lib/components/colorPicker/index.d.ts +0 -1
  185. package/lib/components/config-provider/index.d.ts +0 -1
  186. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
  187. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +39 -0
  188. package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +8 -0
  189. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  190. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +39 -0
  191. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +100 -0
  192. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
  193. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  194. package/lib/components/dataSourceComponents/fields/index.d.ts +11 -11
  195. package/lib/components/dataSourceComponents/hooks/useActions.d.ts +18 -0
  196. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
  197. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
  198. package/lib/components/drag-sort-tree/index.d.ts +4 -0
  199. package/lib/components/dropdown/index.d.ts +0 -1
  200. package/lib/components/filter/components/items/index.d.ts +0 -1
  201. package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
  202. package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
  203. package/lib/components/filter/components/items/text/index.d.ts +0 -1
  204. package/lib/components/iconfont/index.js +1 -1
  205. package/lib/components/keyboard/index.d.ts +22 -0
  206. package/lib/components/login-and-register/index.d.ts +82 -0
  207. package/lib/components/page/index.d.ts +5 -0
  208. package/lib/components/pisell-config-provider/context.d.ts +22 -0
  209. package/lib/components/pisell-config-provider/index.d.ts +13 -0
  210. package/lib/components/pisell-config-provider/index.js +0 -1
  211. package/lib/components/pisellAdjustPrice/type.d.ts +22 -0
  212. package/lib/components/pisellCard/index.d.ts +0 -1
  213. package/lib/components/pisellCardList/index.d.ts +4 -0
  214. package/lib/components/pisellCardList/index.js +5 -1
  215. package/lib/components/pisellCheckboxGroup/index.d.ts +40 -0
  216. package/lib/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
  217. package/lib/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  218. package/lib/components/pisellInput/components/BankCard/index.d.ts +0 -1
  219. package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
  220. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  221. package/lib/components/pisellInput/index.d.ts +0 -1
  222. package/lib/components/pisellQrcode/index.d.ts +10 -0
  223. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  224. package/lib/components/pisellToast/index.d.ts +17 -0
  225. package/lib/components/pisellToast/squareToast/index.d.ts +15 -0
  226. package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
  227. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
  228. package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
  229. package/lib/components/pisellTooltip/index.d.ts +0 -1
  230. package/lib/components/pisellUpload/index.d.ts +0 -1
  231. package/lib/components/pisellWalletPassCard/index.d.ts +4 -0
  232. package/lib/components/pisellWalletPassCard/index.js +12 -2
  233. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  234. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  235. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  236. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  237. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
  238. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  239. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  240. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  241. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  242. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  243. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  244. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  245. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  246. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  247. package/lib/components/productCard/cartSkuCard/index.d.ts +10 -0
  248. package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
  249. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  250. package/lib/components/productCard/components/Divider/index.d.ts +0 -1
  251. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  252. package/lib/components/productCard/components/Header/index.d.ts +3 -0
  253. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  254. package/lib/components/productCard/components/Sales/index.d.ts +3 -0
  255. package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -1
  256. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +4 -0
  257. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  258. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
  259. package/lib/components/productCard/components/Time/index.d.ts +4 -0
  260. package/lib/components/productCard/locales.d.ts +84 -0
  261. package/lib/components/productCard/status.d.ts +32 -0
  262. package/lib/components/productCard/types.d.ts +84 -0
  263. package/lib/components/radio/index.d.ts +0 -1
  264. package/lib/components/segmented/index.d.ts +0 -1
  265. package/lib/components/select-time/RightPanel/index.d.ts +0 -1
  266. package/lib/components/skeleton/index.d.ts +0 -1
  267. package/lib/components/slider/index.d.ts +0 -1
  268. package/lib/components/sort/components/InlineMenu/index.d.ts +0 -1
  269. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  270. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  271. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  272. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  273. package/lib/components/table/Actions/component/ExportImport/index.d.ts +1 -0
  274. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  275. package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  276. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  277. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  278. package/lib/components/table/Gallery/index.d.ts +5 -0
  279. package/lib/components/table/Summary/index.d.ts +0 -1
  280. package/lib/components/table/Table/AddFieldModal/index.d.ts +4 -0
  281. package/lib/components/table/Table/fields/date/Config/index.d.ts +0 -1
  282. package/lib/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  283. package/lib/components/table/Table/fields/image/Config/index.d.ts +0 -1
  284. package/lib/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  285. package/lib/components/table/Table/fields/index.d.ts +2 -2
  286. package/lib/components/table/Table/fields/link/Config/index.d.ts +0 -1
  287. package/lib/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  288. package/lib/components/table/Table/fields/number/Config/index.d.ts +0 -1
  289. package/lib/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  290. package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  291. package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  292. package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  293. package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  294. package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  295. package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  296. package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  297. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  298. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  299. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  300. package/lib/components/table/Table/fields/search/Config/index.d.ts +0 -1
  301. package/lib/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  302. package/lib/components/table/Table/fields/select/Config/index.d.ts +0 -1
  303. package/lib/components/table/Table/fields/select/Show/index.d.ts +0 -1
  304. package/lib/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  305. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  306. package/lib/components/table/Table/fields/text/Config/index.d.ts +0 -1
  307. package/lib/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  308. package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  309. package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  310. package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  311. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  312. package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  313. package/lib/components/table/Table/utils.d.ts +161 -0
  314. package/lib/components/table/hooks/useTableSetting.d.ts +21 -0
  315. package/lib/components/table/hooks/useTransDataSource.d.ts +11 -0
  316. package/lib/components/table/types.d.ts +268 -0
  317. package/lib/components/time-picker/index.d.ts +0 -1
  318. package/lib/components/translation/index.d.ts +14 -0
  319. package/lib/components/upload/index.d.ts +0 -1
  320. package/lib/components/versionModal/index.d.ts +23 -0
  321. package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -0
  322. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
  323. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
  324. package/lib/components/virtual-keyboard/Number/types.d.ts +26 -0
  325. package/lib/components/virtual-keyboard/Time/utils.d.ts +0 -1
  326. package/lib/components/virtual-keyboard/index.d.ts +25 -0
  327. package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
  328. package/lib/components/virtualInput/index.d.ts +24 -0
  329. package/lib/components/walletCard/Guest/index.d.ts +0 -1
  330. package/lib/components/walletCard/Guide/index.d.ts +0 -1
  331. package/lib/locales/en-US.d.ts +1 -0
  332. package/lib/locales/en-US.js +1 -0
  333. package/lib/locales/zh-CN.d.ts +1 -0
  334. package/lib/locales/zh-CN.js +1 -0
  335. package/lib/locales/zh-TW.d.ts +1 -0
  336. package/lib/locales/zh-TW.js +1 -0
  337. package/lib/utils/index.d.ts +1 -1
  338. package/lib/utils/platform.d.ts +1 -1
  339. package/package.json +3 -3
  340. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  341. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
  342. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -5
  343. package/es/components/pisellQRScanner/index.d.ts +0 -24
  344. package/es/components/sortableList/index.d.ts +0 -11
  345. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
  346. package/es/components/table/serve.d.ts +0 -13
  347. package/es/components/tabs/index.d.ts +0 -17
  348. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  349. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
  350. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -5
  351. package/lib/components/pisellQRScanner/index.d.ts +0 -24
  352. package/lib/components/sortableList/index.d.ts +0 -11
  353. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
  354. package/lib/components/table/serve.d.ts +0 -13
  355. package/lib/components/tabs/index.d.ts +0 -17
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { VariablesContextType } from './VariablesContext';
3
+ declare const VariablesProvider: React.FC<VariablesContextType>;
4
+ export default VariablesProvider;
@@ -0,0 +1,4 @@
1
+ import './index.less';
2
+ import { SortType } from './types';
3
+ declare const DragSortTree: (props: SortType) => JSX.Element;
4
+ export default DragSortTree;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Dropdown: (props: any) => JSX.Element;
3
2
  export default Dropdown;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Text: () => JSX.Element;
3
2
  export default Text;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Text: (props: any) => JSX.Element;
3
2
  export default Text;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(iconfont_exports);
35
35
  var import_icons = require("@ant-design/icons");
36
36
  var import_react = __toESM(require("react"));
37
37
  var MyIcon = (0, import_icons.createFromIconfontCN)({
38
- scriptUrl: "https://static.pisellcdn.com/pisell2iconfont1.18.js"
38
+ scriptUrl: "https://static.pisellcdn.com/pisell2iconfont1.20.js"
39
39
  // 在 iconfont.cn 上生成
40
40
  });
41
41
  var IconFont = (props) => {
@@ -0,0 +1,22 @@
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
+ id?: string;
14
+ className?: string;
15
+ style?: React.CSSProperties;
16
+ onChange?: (value?: ItemValue) => void;
17
+ items?: Item[];
18
+ rightItems?: Item[];
19
+ keydown?: boolean;
20
+ }
21
+ declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
22
+ export default _default;
@@ -0,0 +1,82 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ /**
4
+ * loginAndRegister组件的属性接口
5
+ */
6
+ export interface loginAndRegisterProps {
7
+ /** Logo相关配置 */
8
+ showLogo?: boolean;
9
+ logo?: string;
10
+ logoPosition?: 'left' | 'center' | 'right';
11
+ logoSize?: {
12
+ width?: number;
13
+ height?: number;
14
+ };
15
+ /** 标题相关配置 */
16
+ title?: string;
17
+ showTitle?: boolean;
18
+ titleAlign?: 'left' | 'center' | 'right';
19
+ /** 副标题相关配置 */
20
+ subtitle?: string;
21
+ showSubtitle?: boolean;
22
+ subtitleAlign?: 'left' | 'center' | 'right';
23
+ /** 登录方式配置 */
24
+ loginMethods?: ('email' | 'google' | 'facebook' | 'apple')[];
25
+ defaultLoginMethod?: 'email' | 'google' | 'facebook' | 'apple';
26
+ /** 表单配置 */
27
+ emailLabel?: string;
28
+ passwordLabel?: string;
29
+ emailPlaceholder?: string;
30
+ passwordPlaceholder?: string;
31
+ emailRules?: any[];
32
+ buttonText?: string;
33
+ rememberMeText?: string;
34
+ forgotPasswordText?: string;
35
+ showRememberMe?: boolean;
36
+ showForgotPassword?: boolean;
37
+ /** 社交登录配置 */
38
+ socialLoginTexts?: {
39
+ google?: string;
40
+ facebook?: string;
41
+ apple?: string;
42
+ };
43
+ /** 底部配置 */
44
+ showFooter?: boolean;
45
+ showSignUp?: boolean;
46
+ signUpText?: string;
47
+ signUpLink?: string;
48
+ signUpPosition?: 'left' | 'center' | 'right';
49
+ otherLinks?: Array<{
50
+ text: string;
51
+ url: string;
52
+ }>;
53
+ otherLinksPosition?: 'left' | 'center' | 'right';
54
+ /** 登录/注册切换配置 */
55
+ showTabs?: boolean;
56
+ loginTabText?: string;
57
+ registerTabText?: string;
58
+ /** 注册表单配置 */
59
+ registerEmailPlaceholder?: string;
60
+ registerPasswordPlaceholder?: string;
61
+ registerButtonText?: string;
62
+ /** 事件回调 */
63
+ onLogin?: (values: {
64
+ email: string;
65
+ loginMethod: string;
66
+ }) => void;
67
+ onSocialLogin?: (type: 'google' | 'facebook' | 'apple') => void;
68
+ onSignUp?: () => void;
69
+ onRegister?: (values: {
70
+ email: string;
71
+ password: string;
72
+ }) => void;
73
+ /** 新增背景图片属性 */
74
+ backgroundImage?: string;
75
+ }
76
+ /**
77
+ * Saas登录组件
78
+ * @param props - 组件属性
79
+ * @returns React组件
80
+ */
81
+ declare const loginAndRegister: React.FC<loginAndRegisterProps>;
82
+ export default loginAndRegister;
@@ -0,0 +1,5 @@
1
+ import { ConfigProviderProps } from '../config-provider';
2
+ interface PageProps extends ConfigProviderProps {
3
+ }
4
+ declare const Page: (props: PageProps) => JSX.Element;
5
+ export default Page;
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ export interface PisellContextType {
3
+ platform: 'h5' | 'pc' | 'ipad';
4
+ /** 货币符号 */
5
+ symbol?: string;
6
+ /** 当前语言环境 */
7
+ locale?: string;
8
+ /** 获取货币符号 */
9
+ getSymbolic?: () => string;
10
+ }
11
+ export declare const PisellContext: import("react").Context<PisellContextType>;
12
+ /**
13
+ * provider外获取当前全局配置
14
+ */
15
+ declare class GlobalConfig {
16
+ private config;
17
+ constructor();
18
+ setConfig(config: PisellContextType): void;
19
+ getConfig(): PisellContextType;
20
+ }
21
+ export declare const globalConfig: GlobalConfig;
22
+ export default PisellContext;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from './context';
3
+ interface PisellConfigProviderType {
4
+ platform?: PisellContextType['platform'];
5
+ children: React.ReactNode;
6
+ /** 货币符号 */
7
+ symbol?: string;
8
+ /** 当前语言环境 */
9
+ locale?: string;
10
+ getSymbolic?: () => string;
11
+ }
12
+ declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
13
+ export default PisellConfigProvider;
@@ -63,7 +63,6 @@ var PisellConfigProvider = (props) => {
63
63
  locale: locale || "en",
64
64
  getSymbolic
65
65
  };
66
- console.log(config, "config");
67
66
  const staticFunction = import_antd.App.useApp();
68
67
  (0, import_pisellMessage.setMessage)(staticFunction.message);
69
68
  (0, import_functions.setModal)(staticFunction.modal);
@@ -0,0 +1,22 @@
1
+ export interface PisellAdjustPriceProps {
2
+ value?: number;
3
+ originValue: number;
4
+ defaultValue?: number;
5
+ onChange?: (val: number) => void;
6
+ selectType?: 'light' | 'dark';
7
+ backgroundColor?: string;
8
+ containerBackgroundColor?: string;
9
+ buttonBackgroundColor?: string;
10
+ textColor?: string;
11
+ resetButtonBackgroundColor?: string;
12
+ resetButtonTextColor?: string;
13
+ isDoneButtonFollowTheme?: boolean;
14
+ doneButtonBackgroundColor?: string;
15
+ doneButtonTextColor?: string;
16
+ isShowMainText?: boolean;
17
+ mainTextColor?: string;
18
+ isShowSubText?: boolean;
19
+ subTextColor?: string;
20
+ resetText?: string;
21
+ doneText?: string;
22
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CardProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface PisellCardProps extends CardProps {
@@ -31,6 +31,10 @@ export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'opt
31
31
  showCode?: boolean;
32
32
  /** 是否展示到期时间 */
33
33
  showValidDate?: boolean;
34
+ /** 使用日程信息计算有效期 */
35
+ validDateBySchedule?: boolean;
36
+ /** 日程列表 */
37
+ scheduleList?: any[];
34
38
  /** 是否展示详情按钮 */
35
39
  showDetail?: boolean;
36
40
  /** 是否展示二维码 */
@@ -75,7 +75,9 @@ var PisellCardList = (props) => {
75
75
  formatRedeemTitle,
76
76
  onBeforeEditAmount,
77
77
  onItemClick,
78
- showActiveBackground
78
+ showActiveBackground,
79
+ validDateBySchedule,
80
+ scheduleList
79
81
  } = props;
80
82
  return data.length ? /* @__PURE__ */ import_react.default.createElement(
81
83
  import_pisellCheckboxGroup.default,
@@ -121,6 +123,8 @@ var PisellCardList = (props) => {
121
123
  var _a;
122
124
  return (_a = props == null ? void 0 : props.onDetail) == null ? void 0 : _a.call(props, record, index);
123
125
  },
126
+ validDateBySchedule: validDateBySchedule || (item == null ? void 0 : item.validDateBySchedule),
127
+ scheduleList: scheduleList || (item == null ? void 0 : item.scheduleList),
124
128
  beforeEdit: (record) => {
125
129
  var _a;
126
130
  return (_a = props == null ? void 0 : props.beforeEdit) == null ? void 0 : _a.call(props, record, index);
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../pisell-config-provider/context';
3
+ import './index.less';
4
+ export interface PisellCheckboxGroupOption {
5
+ label: string;
6
+ value: string;
7
+ disabled?: boolean;
8
+ error?: boolean;
9
+ [key: string]: any;
10
+ }
11
+ declare type PisellCheckboxGroupValue = string | string[] | any;
12
+ export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
13
+ platform?: PisellContextType['platform'];
14
+ direction?: 'horizontal' | 'vertical';
15
+ fullWidth?: boolean;
16
+ gap?: number;
17
+ padding?: number;
18
+ options: PisellCheckboxGroupOption[];
19
+ onChange?: (value: PisellCheckboxGroupValue, item: PisellCheckboxGroupOption) => void;
20
+ value?: PisellCheckboxGroupValue;
21
+ renderOption?: (option: PisellCheckboxGroupOption, active: boolean, index: number) => React.ReactNode;
22
+ rowKey?: string;
23
+ mode?: 'multiple' | 'single';
24
+ iconPosition?: 'left' | 'right' | 'hide';
25
+ optionClassName?: string;
26
+ optionActiveClassName?: string;
27
+ onChangeDebounce?: boolean;
28
+ onItemClick?: (e: React.MouseEvent<HTMLDivElement>, option: PisellCheckboxGroupOption) => void;
29
+ showActiveBackground?: boolean;
30
+ }
31
+ /**
32
+ * @title: PisellCheckboxGroup
33
+ * @description: 选中组件
34
+ * @param {PisellCheckboxGroupProps} props
35
+ * @return {*}
36
+ * @Author: zhiwei.Wang
37
+ * @Date: 2024-08-16 10:34
38
+ */
39
+ declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) => JSX.Element;
40
+ export default PisellCheckboxGroup;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
3
2
  import { Dayjs } from 'dayjs';
4
3
  import './detePickerCpt.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface ScanProps {
4
3
  onChange: (val: string) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from 'antd';
3
2
  import { PisellContextType } from "../../../pisell-config-provider/context";
4
3
  import './index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps, ButtonProps } from 'antd';
3
2
  import { PisellContextType } from "../../../pisell-config-provider/context";
4
3
  export interface CopyProps extends InputProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from 'antd';
3
2
  import './index.less';
4
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from 'antd';
3
2
  import { PisellContextType } from '../pisell-config-provider/context';
4
3
  declare const PisellInput: {
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface PisellQrcodeProps {
4
+ size?: number;
5
+ platform: 'pc' | 'h5' | 'ipad';
6
+ value: string;
7
+ className: string;
8
+ }
9
+ declare const PisellQrcode: React.FC<PisellQrcodeProps>;
10
+ export default PisellQrcode;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../../../pisell-config-provider/context';
3
+ export interface AmountProps extends React.HTMLAttributes<HTMLSpanElement> {
4
+ /** 平台 */
5
+ platform?: PisellContextType['platform'];
6
+ /** 当前数值 */
7
+ value?: number | string;
8
+ /** 小数点后位数 默认是小数点后2位 */
9
+ precision?: number;
10
+ /** 显示货币符号 指的是 ¥$ 等货币符号等显隐,默认是展示 */
11
+ showCurrencySymbol?: boolean;
12
+ /** 千分位 指的是长金额的千分位逗号隔开,比如“123, 245, 315” 这种展现形式,默认是关闭 */
13
+ useThousandsSeparator?: boolean;
14
+ /** 整数位隐藏小数 指的是如果价格为整数,后面的".00" 将被省略以节省页面空间 */
15
+ hideDecimalForWholeNumbers?: boolean;
16
+ /** 货币符号 */
17
+ symbol?: string;
18
+ }
19
+ declare const Amount: (props: AmountProps) => JSX.Element;
20
+ export default Amount;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellToastProps {
4
+ /** 提示内容 */
5
+ content: React.ReactNode;
6
+ /** 自动关闭的延时,单位秒。设为 0 时不自动关闭 */
7
+ duration?: number;
8
+ /** 是否展示action */
9
+ showAction?: boolean;
10
+ /** action文案 */
11
+ actionText?: string;
12
+ /** 关闭时触发的回调函数 */
13
+ onClose?: () => void;
14
+ }
15
+ declare const PisellToast: (props: PisellToastProps) => void;
16
+ export { useToast } from './squareToast';
17
+ export default PisellToast;
@@ -0,0 +1,15 @@
1
+ import { clear, show, success, info, loading, fail, hide } from './methods';
2
+ import './index.less';
3
+ interface ToastInstance {
4
+ show: typeof show;
5
+ clear: typeof clear;
6
+ success: typeof success;
7
+ info: typeof info;
8
+ loading: typeof loading;
9
+ fail: typeof fail;
10
+ error: typeof fail;
11
+ hide: typeof hide;
12
+ }
13
+ declare const Toast: ToastInstance;
14
+ export declare const useToast: () => ToastInstance;
15
+ export default Toast;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { ToastProps } from './toast';
3
+ interface ToastInstance {
4
+ close: () => void;
5
+ }
6
+ declare const show: (configOrContent: Partial<ToastProps> | React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
7
+ declare const clear: () => void;
8
+ declare const success: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
9
+ declare const info: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
10
+ declare const loading: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
11
+ declare const fail: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
12
+ declare const hide: () => void;
13
+ export { show, clear, success, info, loading, fail, hide };
@@ -0,0 +1,29 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { Root } from 'react-dom/client';
3
+ import React from 'react';
4
+ declare type ImperativeProps = {
5
+ open?: boolean;
6
+ onCancel?: () => void;
7
+ afterClose?: () => void;
8
+ };
9
+ declare type TargetElement = ReactElement<ImperativeProps>;
10
+ export declare type ImperativeHandler = {
11
+ close: () => void;
12
+ replace: (element: TargetElement) => void;
13
+ isRendered?: () => boolean;
14
+ };
15
+ export declare type UnmountType = () => Promise<void>;
16
+ export declare type RenderType = (node: React.ReactElement, container: Element | DocumentFragment) => UnmountType;
17
+ declare const MARK = "__pisell_react_root__";
18
+ declare type ContainerType = (Element | DocumentFragment) & {
19
+ [MARK]?: Root;
20
+ };
21
+ export declare function render(node: React.ReactElement, container: ContainerType): void;
22
+ export declare function unmount(container: ContainerType): Promise<void>;
23
+ /**
24
+ * @deprecated 设置 React 渲染函数以兼容使用。
25
+ */
26
+ export declare function unstableSetRender(render?: RenderType): RenderType;
27
+ export declare function renderToBody(element: ReactElement): UnmountType;
28
+ export declare function renderImperatively(element: TargetElement): ImperativeHandler;
29
+ export {};
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export declare type ToastType = 'success' | 'error' | 'warning' | 'info' | 'loading';
4
+ export interface ToastProps {
5
+ /** Toast 类型 */
6
+ icon?: ToastType | React.ReactNode;
7
+ /** 显示的内容,支持文本或 React 节点 */
8
+ content: React.ReactNode;
9
+ /** 是否显示 */
10
+ open?: boolean;
11
+ /** 自动关闭时间,单位毫秒,0 表示不自动关闭 */
12
+ duration?: number;
13
+ /** 关闭 */
14
+ onCancel?: () => void;
15
+ /** 关闭后回调 */
16
+ afterClose?: () => void;
17
+ /** 自定义样式类名 */
18
+ className?: string;
19
+ /** 自定义样式 */
20
+ style?: React.CSSProperties;
21
+ /** 是否显示遮罩 */
22
+ mask?: boolean;
23
+ }
24
+ declare const Toast: React.FC<ToastProps>;
25
+ export default Toast;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TooltipPropsWithTitle } from 'antd/es/tooltip';
3
2
  import { PisellContextType } from "../pisell-config-provider/context";
4
3
  import './index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { UploadProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface PisellUploadProps extends UploadProps {
@@ -52,6 +52,10 @@ export interface PisellWalletPassCardProps {
52
52
  showCode?: boolean;
53
53
  /** 是否展示有效期 */
54
54
  showValidDate?: boolean;
55
+ /** 使用日程信息计算有效期 */
56
+ validDateBySchedule?: boolean;
57
+ /** 日程列表 */
58
+ scheduleList?: any[];
55
59
  /** 是否展示右上角详情按钮 */
56
60
  showDetail?: boolean;
57
61
  /** 是否展示qrCode */
@@ -40,6 +40,7 @@ var import_antd = require("antd");
40
40
  var import_dayjs = __toESM(require("dayjs"));
41
41
  var import_iconfont = __toESM(require("../iconfont"));
42
42
  var import__ = require("../../index");
43
+ var import_utils = require("@pisell/utils");
43
44
  var import_pisellTags = __toESM(require("../pisellTags"));
44
45
  var import_Amount = __toESM(require("../pisellText/components/Amount"));
45
46
  var import_Amount2 = __toESM(require("../virtual-keyboard/Amount"));
@@ -64,6 +65,7 @@ var PisellWalletPassCard = (props) => {
64
65
  const [pressTimer, setPressTimer] = import_react.default.useState(
65
66
  null
66
67
  );
68
+ const config = (0, import__.usePisellConfig)();
67
69
  (0, import_react.useEffect)(() => {
68
70
  return () => {
69
71
  if (pressTimer) {
@@ -120,7 +122,9 @@ var PisellWalletPassCard = (props) => {
120
122
  formatBalanceTitle,
121
123
  formatRedeem,
122
124
  formatRedeemTitle,
123
- maxRedeem
125
+ maxRedeem,
126
+ validDateBySchedule,
127
+ scheduleList
124
128
  } = props;
125
129
  (0, import_react.useEffect)(() => {
126
130
  document.body.id = "body";
@@ -248,6 +252,12 @@ var PisellWalletPassCard = (props) => {
248
252
  }
249
253
  setLastTap(now);
250
254
  };
255
+ const formatValidDate = (0, import_react.useMemo)(() => {
256
+ if (validDateBySchedule && scheduleList && (scheduleList == null ? void 0 : scheduleList.length) > 0) {
257
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, (0, import_locales.getText)("pisell-wallet-pass-card-valid"), " ", (0, import_utils.getScheduleSummary)(scheduleList, config == null ? void 0 : config.locale) || validDate);
258
+ }
259
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, (0, import_locales.getText)("pisell-wallet-pass-card-valid-to"), " ", !!validDate ? validDate : (0, import_locales.getText)("pisell-wallet-pass-card-expireDate"));
260
+ }, [validDateBySchedule, scheduleList, validDate]);
251
261
  const _onConfirmEdit = () => {
252
262
  form.validateFields().then((values) => {
253
263
  var _a;
@@ -454,7 +464,7 @@ var PisellWalletPassCard = (props) => {
454
464
  useThousandsSeparator: true,
455
465
  value: discount
456
466
  }
457
- )) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, 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")))));
467
+ )) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, discount, "% ", (0, import_locales.getText)("pisell-discount-card-unit"))))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-card-code-wrap", style: { marginRight: showQrCode && !isMini ? 60 : 0 } }, /* @__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, formatValidDate))));
458
468
  };
459
469
  const getInputItem = (name2) => {
460
470
  if ("validDate" === name2) {
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
3
+ export default Footer;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
+ export default MultiDay;
@@ -0,0 +1,14 @@
1
+ interface InputItem {
2
+ start_date: string;
3
+ end_date: string;
4
+ total: number;
5
+ num: number;
6
+ }
7
+ interface OutputItem {
8
+ start_date: string;
9
+ end_date: string;
10
+ total: number;
11
+ num: number;
12
+ }
13
+ export declare function formatDateRanges(list: InputItem[]): OutputItem[];
14
+ export {};
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Note: (props: any) => JSX.Element | null;
3
+ export default Note;
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface IProps {
4
+ isShowImage?: boolean;
5
+ dataSource: {
6
+ image?: string;
7
+ bundle?: any[];
8
+ options?: any[];
9
+ product_option_string?: string;
10
+ name?: string;
11
+ symbol?: string;
12
+ price?: string | number;
13
+ total?: number;
14
+ origin_total?: number;
15
+ num?: number;
16
+ holder_id?: any;
17
+ };
18
+ style?: React.CSSProperties;
19
+ /** 作为主商品卡片展示
20
+ * 1. 影响商品数量 tag 的位置
21
+ * 2. isMain 且 type 为 a5,展示holder
22
+ */
23
+ isMainProduct?: boolean;
24
+ type?: 'a2' | 'a5';
25
+ }
26
+ declare const BasicInfo: (props: IProps) => JSX.Element;
27
+ export default BasicInfo;
@@ -0,0 +1,2 @@
1
+ declare const DiscountReason: (props: any) => JSX.Element;
2
+ export default DiscountReason;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Holders: (props: any) => JSX.Element | null;
3
+ export default Holders;
@@ -0,0 +1,10 @@
1
+ import './index.less';
2
+ interface IProps {
3
+ isShowImage?: boolean;
4
+ dataSource: {
5
+ bundle?: any[];
6
+ symbol?: string;
7
+ };
8
+ }
9
+ declare const Packages: ({ isShowImage, dataSource }: IProps) => JSX.Element | null;
10
+ export default Packages;