@pisell/materials 6.4.16 → 6.4.18

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 (291) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +4 -4
  6. package/build/lowcode/preview.js +146 -160
  7. package/build/lowcode/render/default/view.js +27 -41
  8. package/build/lowcode/view.js +32 -46
  9. package/es/components/Pagination/index.d.ts +1 -1
  10. package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  11. package/es/components/auto-resize-text/index.d.ts +6 -0
  12. package/es/components/cardPro/index.d.ts +4 -0
  13. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  14. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  15. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  16. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  17. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  18. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  19. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  20. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  21. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  22. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  23. package/es/components/dataSourceComponents/fields/index.d.ts +12 -11
  24. package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  25. package/es/components/filter/index.d.ts +1 -0
  26. package/es/components/keyboard/index.d.ts +22 -0
  27. package/es/components/list/index.d.ts +1 -0
  28. package/es/components/pisell-config-provider/context.d.ts +22 -0
  29. package/es/components/pisellAdjustPrice/index.d.ts +5 -0
  30. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  31. package/es/components/pisellAdjustPrice/type.d.ts +22 -0
  32. package/es/components/pisellCheckboxGroup/index.d.ts +40 -0
  33. package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
  34. package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
  35. package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
  36. package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
  37. package/es/components/pisellInput/index.d.ts +1 -0
  38. package/es/components/pisellQRScanner/index.d.ts +24 -0
  39. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  40. package/es/components/pisellToast/index.d.ts +17 -0
  41. package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
  42. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
  43. package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
  44. package/es/components/pisellTooltip/index.d.ts +1 -0
  45. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +4 -0
  46. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +4 -0
  47. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  48. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +4 -0
  49. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +3 -0
  50. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +11 -0
  51. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  52. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
  53. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +13 -0
  54. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +4 -0
  55. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  56. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +7 -0
  57. package/es/components/productCard/components/Action/index.d.ts +4 -0
  58. package/es/components/productCard/components/Header/index.d.ts +4 -0
  59. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  60. package/es/components/productCard/components/Sales/index.d.ts +4 -0
  61. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +14 -0
  62. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
  63. package/es/components/productCard/locales.d.ts +84 -0
  64. package/es/components/productCard/utils.js +8 -1
  65. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  66. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +2 -0
  67. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  68. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  69. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  70. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  71. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  72. package/es/components/table/Actions/component/ViewMode/index.d.ts +1 -0
  73. package/es/components/table/Actions/index.d.ts +1 -0
  74. package/es/components/table/BasicTable/index.d.ts +1 -0
  75. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  76. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  77. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  78. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  79. package/es/components/table/Table/fields/index.d.ts +3 -2
  80. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  81. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  82. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  83. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  84. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  85. package/es/components/table/TableFilter/SortIcon.d.ts +0 -1
  86. package/es/components/table/View/index.d.ts +1 -0
  87. package/es/components/virtual-keyboard/Amount/index.d.ts +6 -0
  88. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  89. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  90. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
  91. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +25 -0
  92. package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  93. package/es/components/virtual-keyboard/Number/index.d.ts +6 -0
  94. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  95. package/es/components/virtual-keyboard/Number/types.d.ts +26 -0
  96. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  97. package/es/components/virtual-keyboard/index.d.ts +25 -0
  98. package/es/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
  99. package/es/utils/index.d.ts +1 -1
  100. package/es/utils/platform.d.ts +1 -1
  101. package/lib/components/Pagination/index.d.ts +1 -1
  102. package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  103. package/lib/components/auto-resize-text/index.d.ts +6 -0
  104. package/lib/components/cardPro/index.d.ts +4 -0
  105. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  106. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  107. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  108. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  109. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  110. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  111. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  112. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  113. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  114. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  115. package/lib/components/dataSourceComponents/fields/index.d.ts +12 -11
  116. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  117. package/lib/components/filter/index.d.ts +1 -0
  118. package/lib/components/keyboard/index.d.ts +22 -0
  119. package/lib/components/list/index.d.ts +1 -0
  120. package/lib/components/pisell-config-provider/context.d.ts +22 -0
  121. package/lib/components/pisellAdjustPrice/index.d.ts +5 -0
  122. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  123. package/lib/components/pisellAdjustPrice/type.d.ts +22 -0
  124. package/lib/components/pisellCheckboxGroup/index.d.ts +40 -0
  125. package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
  126. package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
  127. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
  128. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
  129. package/lib/components/pisellInput/index.d.ts +1 -0
  130. package/lib/components/pisellQRScanner/index.d.ts +24 -0
  131. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  132. package/lib/components/pisellToast/index.d.ts +17 -0
  133. package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
  134. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
  135. package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
  136. package/lib/components/pisellTooltip/index.d.ts +1 -0
  137. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +4 -0
  138. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +4 -0
  139. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  140. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +4 -0
  141. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +3 -0
  142. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +11 -0
  143. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  144. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
  145. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +13 -0
  146. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +4 -0
  147. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  148. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +7 -0
  149. package/lib/components/productCard/components/Action/index.d.ts +4 -0
  150. package/lib/components/productCard/components/Header/index.d.ts +4 -0
  151. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  152. package/lib/components/productCard/components/Sales/index.d.ts +4 -0
  153. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +14 -0
  154. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
  155. package/lib/components/productCard/locales.d.ts +84 -0
  156. package/lib/components/productCard/utils.js +8 -1
  157. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  158. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js +2 -0
  159. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  160. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  161. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  162. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  163. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  164. package/lib/components/table/Actions/component/ViewMode/index.d.ts +1 -0
  165. package/lib/components/table/Actions/index.d.ts +1 -0
  166. package/lib/components/table/BasicTable/index.d.ts +1 -0
  167. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  168. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  169. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  170. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  171. package/lib/components/table/Table/fields/index.d.ts +3 -2
  172. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  173. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  174. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  175. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  176. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  177. package/lib/components/table/TableFilter/SortIcon.d.ts +0 -1
  178. package/lib/components/table/View/index.d.ts +1 -0
  179. package/lib/components/virtual-keyboard/Amount/index.d.ts +6 -0
  180. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  181. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  182. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
  183. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +25 -0
  184. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  185. package/lib/components/virtual-keyboard/Number/index.d.ts +6 -0
  186. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  187. package/lib/components/virtual-keyboard/Number/types.d.ts +26 -0
  188. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  189. package/lib/components/virtual-keyboard/index.d.ts +25 -0
  190. package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
  191. package/lib/utils/index.d.ts +1 -1
  192. package/lib/utils/platform.d.ts +1 -1
  193. package/package.json +11 -11
  194. package/es/components/appVersionControl/index.d.ts +0 -5
  195. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
  196. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -15
  197. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
  198. package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -149
  199. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
  200. package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -31
  201. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
  202. package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +0 -8
  203. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  204. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -100
  205. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
  206. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  207. package/es/components/dataSourceComponents/fields/Upload/index.d.ts +0 -3
  208. package/es/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
  209. package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -119
  210. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -12
  211. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
  212. package/es/components/drag-sort-tree/index.d.ts +0 -5
  213. package/es/components/login-and-register/index.d.ts +0 -82
  214. package/es/components/page/index.d.ts +0 -5
  215. package/es/components/pisellCardList/index.d.ts +0 -103
  216. package/es/components/pisellQrcode/index.d.ts +0 -10
  217. package/es/components/pisellText/index.d.ts +0 -8
  218. package/es/components/pisellWalletPassCard/index.d.ts +0 -136
  219. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
  220. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
  221. package/es/components/productCard/components/Time/index.d.ts +0 -4
  222. package/es/components/productCard/index.d.ts +0 -7
  223. package/es/components/productCard/status.d.ts +0 -32
  224. package/es/components/productCard/types.d.ts +0 -84
  225. package/es/components/productCard/utils.d.ts +0 -31
  226. package/es/components/select/index.d.ts +0 -9
  227. package/es/components/sortableList/index.d.ts +0 -11
  228. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
  229. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  230. package/es/components/table/Gallery/index.d.ts +0 -5
  231. package/es/components/table/Table/index.d.ts +0 -4
  232. package/es/components/table/Table/utils.d.ts +0 -161
  233. package/es/components/table/hooks/useTableSetting.d.ts +0 -21
  234. package/es/components/table/hooks/useTransColumns.d.ts +0 -14
  235. package/es/components/table/hooks/useTransDataSource.d.ts +0 -11
  236. package/es/components/table/index.d.ts +0 -4
  237. package/es/components/table/serve.d.ts +0 -13
  238. package/es/components/table/types.d.ts +0 -268
  239. package/es/components/tabs/index.d.ts +0 -16
  240. package/es/components/translation/index.d.ts +0 -14
  241. package/es/components/versionModal/index.d.ts +0 -23
  242. package/es/index.d.ts +0 -145
  243. package/lib/components/appVersionControl/index.d.ts +0 -5
  244. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
  245. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -15
  246. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
  247. package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -149
  248. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
  249. package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -31
  250. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
  251. package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +0 -8
  252. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  253. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -100
  254. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
  255. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  256. package/lib/components/dataSourceComponents/fields/Upload/index.d.ts +0 -3
  257. package/lib/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
  258. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -119
  259. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -12
  260. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
  261. package/lib/components/drag-sort-tree/index.d.ts +0 -5
  262. package/lib/components/login-and-register/index.d.ts +0 -82
  263. package/lib/components/page/index.d.ts +0 -5
  264. package/lib/components/pisellCardList/index.d.ts +0 -103
  265. package/lib/components/pisellQrcode/index.d.ts +0 -10
  266. package/lib/components/pisellText/index.d.ts +0 -8
  267. package/lib/components/pisellWalletPassCard/index.d.ts +0 -136
  268. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
  269. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
  270. package/lib/components/productCard/components/Time/index.d.ts +0 -4
  271. package/lib/components/productCard/index.d.ts +0 -7
  272. package/lib/components/productCard/status.d.ts +0 -32
  273. package/lib/components/productCard/types.d.ts +0 -84
  274. package/lib/components/productCard/utils.d.ts +0 -31
  275. package/lib/components/select/index.d.ts +0 -9
  276. package/lib/components/sortableList/index.d.ts +0 -11
  277. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
  278. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  279. package/lib/components/table/Gallery/index.d.ts +0 -5
  280. package/lib/components/table/Table/index.d.ts +0 -4
  281. package/lib/components/table/Table/utils.d.ts +0 -161
  282. package/lib/components/table/hooks/useTableSetting.d.ts +0 -21
  283. package/lib/components/table/hooks/useTransColumns.d.ts +0 -14
  284. package/lib/components/table/hooks/useTransDataSource.d.ts +0 -11
  285. package/lib/components/table/index.d.ts +0 -4
  286. package/lib/components/table/serve.d.ts +0 -13
  287. package/lib/components/table/types.d.ts +0 -268
  288. package/lib/components/tabs/index.d.ts +0 -16
  289. package/lib/components/translation/index.d.ts +0 -14
  290. package/lib/components/versionModal/index.d.ts +0 -23
  291. package/lib/index.d.ts +0 -145
@@ -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;
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string;
2
+ export declare const getCssNumber: (val: string | number) => string | number;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';
@@ -1 +1 @@
1
- export declare const isMobile: () => boolean;
1
+ export declare const isMobile: () => any;
@@ -5,7 +5,7 @@ export declare const paginationConfig: {
5
5
  className: string;
6
6
  defaultCurrent: number;
7
7
  showTotal: (total: number, range: [number, number]) => string;
8
- itemRender: (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
8
+ itemRender: (page: number, type: "page" | "next" | "prev" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
9
9
  responsive: boolean;
10
10
  size: string;
11
11
  };
@@ -0,0 +1,20 @@
1
+ export declare type Options = {
2
+ mode?: 'oneline' | 'multiline' | 'box' | 'boxoneline' | undefined;
3
+ minFontSizePx?: number | undefined;
4
+ maxFontSizePx?: number | undefined;
5
+ fontSizePrecisionPx?: number | undefined;
6
+ scrollToEnd?: boolean | undefined;
7
+ };
8
+ export declare function updateTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
9
+ innerEl: HTMLElement;
10
+ containerEl: HTMLElement;
11
+ }): void;
12
+ declare type DisconnectableFunction = {
13
+ (): void;
14
+ disconnect: () => void;
15
+ };
16
+ export declare function autoTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
17
+ innerEl: HTMLElement;
18
+ containerEl: HTMLElement;
19
+ }): DisconnectableFunction;
20
+ export {};
@@ -0,0 +1,6 @@
1
+ import React, { DetailedHTMLProps, HTMLAttributes, ReactElement, ReactHTML } from 'react';
2
+ import { Options } from './auto-text-size-standalone';
3
+ export default function AutoResizeText({ mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, as: Comp, children, ...rest }: Options & {
4
+ as?: keyof ReactHTML | React.ComponentType<any>;
5
+ children?: React.ReactNode;
6
+ } & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>): ReactElement;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const _default: (props: any) => JSX.Element;
4
+ export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItem: (props: any) => JSX.Element;
2
3
  export default FormItem;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceImage: (props: import("../utils").ParsedProps) => JSX.Element;
2
3
  export default DataSourceImage;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceQRCode: (props: any) => JSX.Element;
2
3
  export default DataSourceQRCode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface BaseFilterItem {
3
4
  name?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterItemProps } from '../../../filter/types';
2
3
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
3
4
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const useDataSourceKey: () => {
3
- dataSourceKey: string | undefined;
4
- dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
3
+ dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
4
+ dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
5
5
  };
6
6
  export default useDataSourceKey;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceTableProps } from '../type';
2
3
  declare type Params = {
3
4
  pagination?: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
2
3
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
3
4
  export default DataSourceWrapper;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: "custom" | "xzero" | "saas";
5
+ rootDomain: "custom" | "saas" | "xzero";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
3
  options?: any;
3
4
  optionSourceType?: "default" | "custom" | "api" | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const formFieldMap: {
2
3
  FormItemCheckbox: import("react").FC<{}> & {
3
4
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -19,7 +20,7 @@ declare const formFieldMap: {
19
20
  Subdomain: import("react").FC<import("antd").InputProps & {
20
21
  onChange: (value: string) => void;
21
22
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
22
- rootDomain: "custom" | "xzero" | "saas";
23
+ rootDomain: "custom" | "saas" | "xzero";
23
24
  customDomain?: string | undefined;
24
25
  value?: string | undefined;
25
26
  tenantId: string;
@@ -59,7 +60,13 @@ declare const formFieldMap: {
59
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
62
  };
62
- declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<import("./Input/type").InputProps> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
64
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
65
+ } & {
66
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
67
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
68
+ onChange: (value: string) => void;
69
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
63
70
  JSON: import("react").FC<any>;
64
71
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
65
72
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -72,18 +79,14 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
72
79
  Subdomain: import("react").FC<import("antd").InputProps & {
73
80
  onChange: (value: string) => void;
74
81
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
75
- rootDomain: "custom" | "xzero" | "saas";
82
+ rootDomain: "custom" | "saas" | "xzero";
76
83
  customDomain?: string | undefined;
77
84
  value?: string | undefined;
78
85
  tenantId: string;
79
86
  name?: string | undefined;
80
87
  fieldKey?: string | undefined;
81
88
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
82
- }) | (import("react").FC<{}> & {
83
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
84
- } & {
85
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
86
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
89
+ }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
87
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
88
91
  } & {
89
92
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -95,7 +98,5 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
95
98
  extraParams?: Record<string, any> | undefined;
96
99
  } & {
97
100
  dataSource?: any;
98
- }) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
99
- onChange: (value: string) => void;
100
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
+ }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
102
  export { getFieldComponent, formFieldMap };
@@ -0,0 +1,18 @@
1
+ import './index.less';
2
+ import { ValueProps, SortType } from '../types';
3
+ declare type IdType = string | number;
4
+ declare type TreeItemProps = {
5
+ id: string | number;
6
+ key: string | number;
7
+ item: ValueProps | any;
8
+ depth: number;
9
+ lists: any[];
10
+ childrenProps?: SortType;
11
+ sensors?: any;
12
+ expandedKeys?: IdType[];
13
+ setExpandedKeys?: any;
14
+ onSelectKeys?: (ids: IdType) => void;
15
+ onChange?: (value: any[]) => void;
16
+ };
17
+ declare const TreeItem: (props: TreeItemProps) => JSX.Element;
18
+ export default TreeItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterProps } from "./types";
2
3
  declare const Filter: (props: FilterProps) => JSX.Element | null;
3
4
  export default Filter;
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const List: {
3
4
  (props: any): JSX.Element;
@@ -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,5 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ import { PisellAdjustPriceProps } from './type';
4
+ declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
5
+ export default PisellAdjustPrice;
@@ -0,0 +1,32 @@
1
+ export declare const defaultConfig: {
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
+ isShowMainText: boolean;
13
+ mainTextColor: string;
14
+ isShowSubText: boolean;
15
+ subTextColor: 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
+ isShowMainText: boolean;
28
+ mainTextColor: string;
29
+ isShowSubText: boolean;
30
+ subTextColor: string;
31
+ };
32
+ };
@@ -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
+ }
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
2
3
  import { Dayjs } from 'dayjs';
3
4
  import './detePickerCpt.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
3
4
  import './index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps, ButtonProps } from 'antd';
2
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
3
4
  export interface CopyProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import './index.less';
3
4
  import { PisellContextType } from "../../../pisell-config-provider/context";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import { PisellContextType } from '../pisell-config-provider/context';
3
4
  declare const PisellInput: {
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellQRScannerProps {
4
+ /** 是否可见 */
5
+ visible: boolean;
6
+ /** 是否显示上传图片按钮 */
7
+ showUpload?: boolean;
8
+ /** 关闭回调 */
9
+ onClose: () => void;
10
+ /** 扫码成功回调 */
11
+ onScan: (value: string) => void;
12
+ /**
13
+ * 样式属性,可选
14
+ * 注意: 不应传入renderMode等不必要属性
15
+ */
16
+ style?: React.CSSProperties;
17
+ /** 类名,可选 */
18
+ className?: string;
19
+ }
20
+ /**
21
+ * 二维码扫描组件
22
+ */
23
+ declare const PisellQRScanner: React.FC<PisellQRScannerProps>;
24
+ export default PisellQRScanner;
@@ -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,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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TooltipPropsWithTitle } from 'antd/es/tooltip';
2
3
  import { PisellContextType } from "../pisell-config-provider/context";
3
4
  import './index.less';
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
4
+ export default Footer;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
4
+ export default MultiDay;