@pisell/materials 1.0.867 → 1.0.868

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 (368) 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 +144 -160
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +24 -34
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +29 -39
  11. package/es/components/auto-complete-number/index.d.ts +0 -1
  12. package/es/components/badge/index.d.ts +0 -1
  13. package/es/components/batch-editor/fields/index.d.ts +0 -1
  14. package/es/components/batch-editor/index.d.ts +0 -1
  15. package/es/components/calendar/index.d.ts +0 -1
  16. package/es/components/cardPro/index.d.ts +0 -1
  17. package/es/components/checkbox/index.d.ts +0 -1
  18. package/es/components/classicLayout/index.d.ts +0 -1
  19. package/es/components/config-provider/index.d.ts +0 -1
  20. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
  21. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  22. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  23. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  24. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  25. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  26. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
  27. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  28. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  29. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  30. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  31. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  32. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  33. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  34. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
  35. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
  36. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  37. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  38. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  39. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  40. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
  41. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  42. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  43. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
  44. package/es/components/dataSourceComponents/fields/index.d.ts +20 -21
  45. package/es/components/date-picker/datePickerCpt.d.ts +0 -1
  46. package/es/components/date-picker/index.d.ts +0 -1
  47. package/es/components/dropdown/index.d.ts +0 -1
  48. package/es/components/filter/index.d.ts +0 -1
  49. package/es/components/list/index.d.ts +0 -1
  50. package/es/components/lowCodePage/index.d.ts +0 -1
  51. package/es/components/page/index.d.ts +0 -1
  52. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  53. package/es/components/pisellCard/index.d.ts +0 -1
  54. package/es/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
  55. package/es/components/pisellDatePicker/index.d.ts +0 -1
  56. package/es/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  57. package/es/components/pisellInput/components/BankCard/index.d.ts +0 -1
  58. package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
  59. package/es/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  60. package/es/components/pisellInput/index.d.ts +0 -1
  61. package/es/components/pisellLoading/index.d.ts +0 -1
  62. package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  63. package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  64. package/es/components/pisellModal/components/index.d.ts +0 -1
  65. package/es/components/pisellTooltip/index.d.ts +0 -1
  66. package/es/components/pisellUpload/index.d.ts +0 -1
  67. package/es/components/pisellWalletPassCard/index.d.ts +0 -1
  68. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
  69. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  70. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
  71. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  72. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  73. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
  74. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
  75. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  76. package/es/components/productCard/cartSkuCard/index.d.ts +0 -1
  77. package/es/components/productCard/components/Action/index.d.ts +0 -1
  78. package/es/components/productCard/components/AmountFooter/index.d.ts +0 -1
  79. package/es/components/productCard/components/Divider/index.d.ts +0 -1
  80. package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -1
  81. package/es/components/productCard/components/Header/index.d.ts +0 -1
  82. package/es/components/productCard/components/MultiDay/index.d.ts +0 -1
  83. package/es/components/productCard/components/Note/index.d.ts +0 -1
  84. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  85. package/es/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  86. package/es/components/productCard/components/Packages/index.d.ts +0 -1
  87. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  88. package/es/components/productCard/components/Sales/index.d.ts +0 -1
  89. package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -1
  90. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
  91. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
  92. package/es/components/qrcode/index.d.ts +0 -1
  93. package/es/components/radio/index.d.ts +0 -1
  94. package/es/components/segmented/index.d.ts +0 -1
  95. package/es/components/select-time/RightPanel/index.d.ts +0 -1
  96. package/es/components/select-time/index.d.ts +0 -1
  97. package/es/components/skeleton/index.d.ts +0 -1
  98. package/es/components/slider/index.d.ts +0 -1
  99. package/es/components/sort/components/InlineMenu/index.d.ts +0 -1
  100. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  101. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  102. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  103. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  104. package/es/components/table/Actions/index.d.ts +0 -1
  105. package/es/components/table/BasicTable/index.d.ts +0 -1
  106. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  107. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
  108. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  109. package/es/components/table/Summary/index.d.ts +0 -1
  110. package/es/components/table/Table/fields/date/Config/index.d.ts +0 -1
  111. package/es/components/table/Table/fields/date/Show/index.d.ts +0 -1
  112. package/es/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  113. package/es/components/table/Table/fields/date/index.d.ts +0 -1
  114. package/es/components/table/Table/fields/image/Config/index.d.ts +0 -1
  115. package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
  116. package/es/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  117. package/es/components/table/Table/fields/image/index.d.ts +0 -1
  118. package/es/components/table/Table/fields/index.d.ts +2 -3
  119. package/es/components/table/Table/fields/link/Config/index.d.ts +0 -1
  120. package/es/components/table/Table/fields/link/Show/index.d.ts +0 -1
  121. package/es/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  122. package/es/components/table/Table/fields/link/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/Show/index.d.ts +0 -1
  125. package/es/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  126. package/es/components/table/Table/fields/number/index.d.ts +0 -1
  127. package/es/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  128. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  129. package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  130. package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
  131. package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  132. package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  133. package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  134. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  135. package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  136. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  137. package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  138. package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  139. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  140. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  141. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  142. package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  143. package/es/components/table/Table/fields/search/Config/index.d.ts +0 -1
  144. package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
  145. package/es/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  146. package/es/components/table/Table/fields/search/index.d.ts +0 -1
  147. package/es/components/table/Table/fields/select/Config/index.d.ts +0 -1
  148. package/es/components/table/Table/fields/select/Show/index.d.ts +0 -1
  149. package/es/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  150. package/es/components/table/Table/fields/select/index.d.ts +0 -1
  151. package/es/components/table/Table/fields/text/Config/index.d.ts +0 -1
  152. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  153. package/es/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  154. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  155. package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  156. package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  157. package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  158. package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  159. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  160. package/es/components/table/Table/utils.d.ts +1 -1
  161. package/es/components/table/TableFilter/SortIcon.d.ts +0 -1
  162. package/es/components/table/View/index.d.ts +0 -1
  163. package/es/components/time-picker/index.d.ts +0 -1
  164. package/es/components/upload/index.d.ts +0 -1
  165. package/es/components/versionSelect/index.d.ts +0 -1
  166. package/es/components/virtual-keyboard/Amount/index.d.ts +3 -30
  167. package/es/components/virtual-keyboard/Amount/index.js +73 -6
  168. package/es/components/virtual-keyboard/Amount/index.less +39 -0
  169. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  170. package/es/components/virtual-keyboard/Amount/themeConfig.js +32 -0
  171. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  172. package/es/components/virtual-keyboard/Amount/types.js +1 -0
  173. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -1
  174. package/es/components/virtual-keyboard/Number/index.d.ts +3 -12
  175. package/es/components/virtual-keyboard/Number/index.js +77 -7
  176. package/es/components/virtual-keyboard/Number/index.less +39 -0
  177. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  178. package/es/components/virtual-keyboard/Number/themeConfig.js +32 -0
  179. package/es/components/virtual-keyboard/Number/types.d.ts +25 -0
  180. package/es/components/virtual-keyboard/Number/types.js +1 -0
  181. package/es/components/virtual-keyboard/Time/utils.d.ts +0 -1
  182. package/es/components/virtual-keyboard/index.d.ts +11 -0
  183. package/es/components/virtual-keyboard/index.js +88 -3
  184. package/es/components/virtual-keyboard/index.less +33 -1
  185. package/es/components/walletCard/Guest/index.d.ts +0 -1
  186. package/es/components/walletCard/Guide/index.d.ts +0 -1
  187. package/es/utils/platform.d.ts +1 -1
  188. package/lib/components/auto-complete-number/index.d.ts +0 -1
  189. package/lib/components/badge/index.d.ts +0 -1
  190. package/lib/components/batch-editor/fields/index.d.ts +0 -1
  191. package/lib/components/batch-editor/index.d.ts +0 -1
  192. package/lib/components/calendar/index.d.ts +0 -1
  193. package/lib/components/cardPro/index.d.ts +0 -1
  194. package/lib/components/checkbox/index.d.ts +0 -1
  195. package/lib/components/classicLayout/index.d.ts +0 -1
  196. package/lib/components/config-provider/index.d.ts +0 -1
  197. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
  198. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  199. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  200. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  201. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  202. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  203. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
  204. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  205. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  206. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  207. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  208. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  209. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  210. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  211. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
  212. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
  213. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  214. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  215. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  216. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  217. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
  218. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  219. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  220. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
  221. package/lib/components/dataSourceComponents/fields/index.d.ts +20 -21
  222. package/lib/components/date-picker/datePickerCpt.d.ts +0 -1
  223. package/lib/components/date-picker/index.d.ts +0 -1
  224. package/lib/components/dropdown/index.d.ts +0 -1
  225. package/lib/components/filter/index.d.ts +0 -1
  226. package/lib/components/list/index.d.ts +0 -1
  227. package/lib/components/lowCodePage/index.d.ts +0 -1
  228. package/lib/components/page/index.d.ts +0 -1
  229. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  230. package/lib/components/pisellCard/index.d.ts +0 -1
  231. package/lib/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
  232. package/lib/components/pisellDatePicker/index.d.ts +0 -1
  233. package/lib/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  234. package/lib/components/pisellInput/components/BankCard/index.d.ts +0 -1
  235. package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
  236. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  237. package/lib/components/pisellInput/index.d.ts +0 -1
  238. package/lib/components/pisellLoading/index.d.ts +0 -1
  239. package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  240. package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  241. package/lib/components/pisellModal/components/index.d.ts +0 -1
  242. package/lib/components/pisellTooltip/index.d.ts +0 -1
  243. package/lib/components/pisellUpload/index.d.ts +0 -1
  244. package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
  245. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
  246. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  247. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
  248. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  249. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  250. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
  251. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
  252. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  253. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -1
  254. package/lib/components/productCard/components/Action/index.d.ts +0 -1
  255. package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -1
  256. package/lib/components/productCard/components/Divider/index.d.ts +0 -1
  257. package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -1
  258. package/lib/components/productCard/components/Header/index.d.ts +0 -1
  259. package/lib/components/productCard/components/MultiDay/index.d.ts +0 -1
  260. package/lib/components/productCard/components/Note/index.d.ts +0 -1
  261. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  262. package/lib/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  263. package/lib/components/productCard/components/Packages/index.d.ts +0 -1
  264. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  265. package/lib/components/productCard/components/Sales/index.d.ts +0 -1
  266. package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -1
  267. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
  268. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
  269. package/lib/components/qrcode/index.d.ts +0 -1
  270. package/lib/components/radio/index.d.ts +0 -1
  271. package/lib/components/segmented/index.d.ts +0 -1
  272. package/lib/components/select-time/RightPanel/index.d.ts +0 -1
  273. package/lib/components/select-time/index.d.ts +0 -1
  274. package/lib/components/skeleton/index.d.ts +0 -1
  275. package/lib/components/slider/index.d.ts +0 -1
  276. package/lib/components/sort/components/InlineMenu/index.d.ts +0 -1
  277. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  278. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  279. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  280. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  281. package/lib/components/table/Actions/index.d.ts +0 -1
  282. package/lib/components/table/BasicTable/index.d.ts +0 -1
  283. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  284. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
  285. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  286. package/lib/components/table/Summary/index.d.ts +0 -1
  287. package/lib/components/table/Table/fields/date/Config/index.d.ts +0 -1
  288. package/lib/components/table/Table/fields/date/Show/index.d.ts +0 -1
  289. package/lib/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  290. package/lib/components/table/Table/fields/date/index.d.ts +0 -1
  291. package/lib/components/table/Table/fields/image/Config/index.d.ts +0 -1
  292. package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
  293. package/lib/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  294. package/lib/components/table/Table/fields/image/index.d.ts +0 -1
  295. package/lib/components/table/Table/fields/index.d.ts +2 -3
  296. package/lib/components/table/Table/fields/link/Config/index.d.ts +0 -1
  297. package/lib/components/table/Table/fields/link/Show/index.d.ts +0 -1
  298. package/lib/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  299. package/lib/components/table/Table/fields/link/index.d.ts +0 -1
  300. package/lib/components/table/Table/fields/number/Config/index.d.ts +0 -1
  301. package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
  302. package/lib/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  303. package/lib/components/table/Table/fields/number/index.d.ts +0 -1
  304. package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  305. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  306. package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  307. package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
  308. package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  309. package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  310. package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  311. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  312. package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  313. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  314. package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  315. package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  316. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  317. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  318. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  319. package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  320. package/lib/components/table/Table/fields/search/Config/index.d.ts +0 -1
  321. package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
  322. package/lib/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  323. package/lib/components/table/Table/fields/search/index.d.ts +0 -1
  324. package/lib/components/table/Table/fields/select/Config/index.d.ts +0 -1
  325. package/lib/components/table/Table/fields/select/Show/index.d.ts +0 -1
  326. package/lib/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  327. package/lib/components/table/Table/fields/select/index.d.ts +0 -1
  328. package/lib/components/table/Table/fields/text/Config/index.d.ts +0 -1
  329. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  330. package/lib/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  331. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  332. package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  333. package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  334. package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  335. package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  336. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  337. package/lib/components/table/Table/utils.d.ts +1 -1
  338. package/lib/components/table/TableFilter/SortIcon.d.ts +0 -1
  339. package/lib/components/table/View/index.d.ts +0 -1
  340. package/lib/components/time-picker/index.d.ts +0 -1
  341. package/lib/components/upload/index.d.ts +0 -1
  342. package/lib/components/versionSelect/index.d.ts +0 -1
  343. package/lib/components/virtual-keyboard/Amount/index.d.ts +3 -30
  344. package/lib/components/virtual-keyboard/Amount/index.js +68 -17
  345. package/lib/components/virtual-keyboard/Amount/index.less +39 -0
  346. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  347. package/lib/components/virtual-keyboard/Amount/themeConfig.js +60 -0
  348. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  349. package/lib/components/virtual-keyboard/Amount/types.js +17 -0
  350. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -1
  351. package/lib/components/virtual-keyboard/Number/index.d.ts +3 -12
  352. package/lib/components/virtual-keyboard/Number/index.js +65 -11
  353. package/lib/components/virtual-keyboard/Number/index.less +39 -0
  354. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  355. package/lib/components/virtual-keyboard/Number/themeConfig.js +60 -0
  356. package/lib/components/virtual-keyboard/Number/types.d.ts +25 -0
  357. package/lib/components/virtual-keyboard/Number/types.js +17 -0
  358. package/lib/components/virtual-keyboard/Time/utils.d.ts +0 -1
  359. package/lib/components/virtual-keyboard/index.d.ts +11 -0
  360. package/lib/components/virtual-keyboard/index.js +60 -2
  361. package/lib/components/virtual-keyboard/index.less +33 -1
  362. package/lib/components/walletCard/Guest/index.d.ts +0 -1
  363. package/lib/components/walletCard/Guide/index.d.ts +0 -1
  364. package/lib/utils/platform.d.ts +1 -1
  365. package/lowcode/pisell-number-keyboard/meta.ts +167 -0
  366. package/lowcode/pisell-price-keyboard/meta.ts +167 -0
  367. package/lowcode/virtual-keyboard/meta.ts +131 -0
  368. package/package.json +1 -1
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const SortRow: ({ children, rowKey, onSortChange }: any) => JSX.Element;
4
3
  export default SortRow;
@@ -167,7 +167,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
167
167
  sort?: SortType | undefined;
168
168
  mode: "" | "localStorage" | "remote";
169
169
  currentViewMode: ModeType;
170
- }) => ("order_by" | "group_by" | "column_setting" | "gallery_setting" | "filter_setting" | "view_mode")[];
170
+ }) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
171
171
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
172
172
  export declare const stringify: (obj: Record<string, any>) => string;
173
173
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface SortIconProps {
3
2
  sortOrder: null | "ascend" | "descend";
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GridViewProps } from '../types';
3
2
  declare const View: (props: GridViewProps & {
4
3
  setTableSetting: (values: Record<string, any>) => void;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TimePicker: (props: any) => JSX.Element;
3
2
  export default TimePicker;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Upload: (props: any) => JSX.Element;
3
2
  export default Upload;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface Version {
@@ -1,32 +1,5 @@
1
- import React from 'react';
2
- import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
3
- export interface RightItemsStyleProps {
4
- buttonBackgroundColor?: string;
5
- textColor?: string;
6
- resetButtonBackgroundColor?: string;
7
- resetButtonTextColor?: string;
8
- isDoneButtonFollowTheme?: boolean;
9
- doneButtonBackgroundColor?: string;
10
- doneButtonTextColor?: string;
11
- }
12
- export interface AmountProps {
13
- max?: number;
14
- min?: number;
15
- doneText?: string;
16
- resetText?: string;
17
- defaultValue?: string | number;
18
- placeholder?: string;
19
- amountProps?: {
20
- showCurrencySymbol: boolean;
21
- useThousandsSeparator: boolean;
22
- };
23
- presets?: BaseNumberKeyboardProps['presets'];
24
- value?: string | number;
25
- onChange?: (val: string | number) => void;
26
- onEnter?: (val: string | number) => void;
27
- defaultSelect?: boolean;
28
- inputFormat?: (_v: string) => React.ReactNode | null;
29
- rightItemsStyle?: RightItemsStyleProps;
30
- }
1
+ import { AmountProps, RightItemsStyleProps } from './types';
2
+ import './index.less';
3
+ export type { AmountProps, RightItemsStyleProps };
31
4
  declare const Amount: (props: AmountProps) => JSX.Element;
32
5
  export default Amount;
@@ -34,8 +34,13 @@ __export(Amount_exports, {
34
34
  module.exports = __toCommonJS(Amount_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_ahooks = require("ahooks");
37
+ var import_classnames = __toESM(require("classnames"));
38
+ var import_utils = require("@pisell/utils");
37
39
  var import_BaseNumberKeyboard = __toESM(require("../BaseNumberKeyboard"));
38
40
  var import_pisellText = __toESM(require("../../pisellText"));
41
+ var import_usePisellConfig = __toESM(require("../../pisell-config-provider/hooks/usePisellConfig"));
42
+ var import_themeConfig = require("./themeConfig");
43
+ var import_index = require("./index.less");
39
44
  var Amount = (props) => {
40
45
  const {
41
46
  min,
@@ -49,14 +54,42 @@ var Amount = (props) => {
49
54
  presets,
50
55
  defaultSelect,
51
56
  inputFormat,
52
- rightItemsStyle
57
+ rightItemsStyle,
58
+ selectType = "light",
59
+ ...others
53
60
  } = props;
61
+ const config = (0, import_usePisellConfig.default)();
54
62
  const [value, setValue] = (0, import_ahooks.useControllableValue)(props, {
55
63
  defaultValue: defaultValue || ""
56
64
  });
57
65
  (0, import_react.useEffect)(() => {
58
66
  document.body.id = "body";
59
67
  }, []);
68
+ const configColor = (0, import_react.useMemo)(() => {
69
+ const currentConfig = import_themeConfig.amountThemeConfig[selectType];
70
+ const validProps = Object.entries(props).reduce((acc, [key, value2]) => {
71
+ if (value2 !== void 0 && key in currentConfig) {
72
+ acc[key] = value2;
73
+ }
74
+ return acc;
75
+ }, {});
76
+ return { ...currentConfig, ...validProps };
77
+ }, [selectType, props]);
78
+ (0, import_react.useEffect)(() => {
79
+ (0, import_utils.setTheme)({
80
+ "--pisell-amount-background-color": configColor.backgroundColor,
81
+ "--pisell-amount-container-background-color": configColor.containerBackgroundColor,
82
+ "--pisell-amount-text-color": configColor.textColor,
83
+ "--pisell-amount-keyboard-background-color": configColor.keyboardBackgroundColor,
84
+ "--pisell-amount-keyboard-button-background-color": configColor.keyboardButtonBackgroundColor,
85
+ "--pisell-amount-keyboard-button-text-color": configColor.keyboardButtonTextColor,
86
+ "--pisell-amount-keyboard-button-hover-color": configColor.keyboardButtonHoverColor,
87
+ "--pisell-amount-reset-button-background-color": configColor.resetButtonBackgroundColor,
88
+ "--pisell-amount-reset-button-text-color": configColor.resetButtonTextColor,
89
+ "--pisell-amount-done-button-background-color": configColor.doneButtonBackgroundColor,
90
+ "--pisell-amount-done-button-text-color": configColor.doneButtonTextColor
91
+ });
92
+ }, [configColor]);
60
93
  const format = (_v) => {
61
94
  const v = `${_v}`;
62
95
  if (inputFormat == null ? void 0 : inputFormat(v)) {
@@ -74,28 +107,46 @@ var Amount = (props) => {
74
107
  showCurrencySymbol: amountProps == null ? void 0 : amountProps.showCurrencySymbol,
75
108
  useThousandsSeparator: amountProps == null ? void 0 : amountProps.useThousandsSeparator,
76
109
  style: {
77
- color: (rightItemsStyle == null ? void 0 : rightItemsStyle.textColor) || "#000000"
110
+ color: (rightItemsStyle == null ? void 0 : rightItemsStyle.textColor) || configColor.textColor
78
111
  }
79
112
  }
80
113
  ), endWith && ".");
81
114
  };
82
115
  return /* @__PURE__ */ import_react.default.createElement(
83
- import_BaseNumberKeyboard.default,
116
+ "div",
84
117
  {
85
- defaultSelect,
86
- max,
87
- min,
88
- value,
89
- onChange: setValue,
90
- placeholder,
91
- defaultValue,
92
- format,
93
- doneText,
94
- resetText,
95
- onEnter,
96
- presets,
97
- rightItemsStyle
98
- }
118
+ className: (0, import_classnames.default)("pisell-amount-keyboard-wrap", {
119
+ "pisell-amount-keyboard-dark": selectType === "dark",
120
+ "pisell-amount-keyboard-light": selectType === "light"
121
+ })
122
+ },
123
+ /* @__PURE__ */ import_react.default.createElement(
124
+ import_BaseNumberKeyboard.default,
125
+ {
126
+ defaultSelect,
127
+ max,
128
+ min,
129
+ value,
130
+ onChange: setValue,
131
+ placeholder,
132
+ defaultValue,
133
+ format,
134
+ doneText,
135
+ resetText,
136
+ onEnter,
137
+ presets,
138
+ rightItemsStyle: {
139
+ ...rightItemsStyle,
140
+ buttonBackgroundColor: (rightItemsStyle == null ? void 0 : rightItemsStyle.buttonBackgroundColor) || configColor.buttonBackgroundColor,
141
+ textColor: (rightItemsStyle == null ? void 0 : rightItemsStyle.textColor) || configColor.textColor,
142
+ resetButtonBackgroundColor: (rightItemsStyle == null ? void 0 : rightItemsStyle.resetButtonBackgroundColor) || configColor.resetButtonBackgroundColor,
143
+ resetButtonTextColor: (rightItemsStyle == null ? void 0 : rightItemsStyle.resetButtonTextColor) || configColor.resetButtonTextColor,
144
+ isDoneButtonFollowTheme: (rightItemsStyle == null ? void 0 : rightItemsStyle.isDoneButtonFollowTheme) ?? configColor.isDoneButtonFollowTheme,
145
+ doneButtonBackgroundColor: (rightItemsStyle == null ? void 0 : rightItemsStyle.doneButtonBackgroundColor) || configColor.doneButtonBackgroundColor,
146
+ doneButtonTextColor: (rightItemsStyle == null ? void 0 : rightItemsStyle.doneButtonTextColor) || configColor.doneButtonTextColor
147
+ }
148
+ }
149
+ )
99
150
  );
100
151
  };
101
152
  var Amount_default = Amount;
@@ -0,0 +1,39 @@
1
+ .pisell-amount-keyboard-wrap {
2
+ background-color: var(--pisell-amount-background-color, #ffffff);
3
+
4
+ &.pisell-amount-keyboard-dark {
5
+ background-color: var(--pisell-amount-background-color, rgba(0, 0, 0, 0.70));
6
+ }
7
+
8
+ &.pisell-amount-keyboard-light {
9
+ background-color: var(--pisell-amount-background-color, #ffffff);
10
+ }
11
+
12
+ .pisell-virtual-keyboard-input {
13
+ background-color: var(--pisell-amount-container-background-color, #d0d5dd);
14
+ color: var(--pisell-amount-text-color, #000000);
15
+ }
16
+
17
+ .pisell-keyboard {
18
+ background-color: var(--pisell-amount-keyboard-background-color, #f9f9f9);
19
+
20
+ .pisell-keyboard-item {
21
+ background-color: var(--pisell-amount-keyboard-button-background-color, #ffffff);
22
+ color: var(--pisell-amount-keyboard-button-text-color, #000000);
23
+
24
+ &:hover {
25
+ background-color: var(--pisell-amount-keyboard-button-hover-color, #f5f5f5);
26
+ }
27
+ }
28
+
29
+ .pisell-keyboard-reset-button {
30
+ background-color: var(--pisell-amount-reset-button-background-color, #ffffff);
31
+ color: var(--pisell-amount-reset-button-text-color, #d92d20);
32
+ }
33
+
34
+ .pisell-keyboard-done-button {
35
+ background-color: var(--pisell-amount-done-button-background-color, #4ca30d);
36
+ color: var(--pisell-amount-done-button-text-color, #ffffff);
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,32 @@
1
+ export declare const amountThemeConfig: {
2
+ dark: {
3
+ backgroundColor: string;
4
+ containerBackgroundColor: string;
5
+ buttonBackgroundColor: string;
6
+ textColor: string;
7
+ resetButtonBackgroundColor: string;
8
+ resetButtonTextColor: string;
9
+ isDoneButtonFollowTheme: boolean;
10
+ doneButtonBackgroundColor: string;
11
+ doneButtonTextColor: string;
12
+ keyboardBackgroundColor: string;
13
+ keyboardButtonBackgroundColor: string;
14
+ keyboardButtonTextColor: string;
15
+ keyboardButtonHoverColor: string;
16
+ };
17
+ light: {
18
+ backgroundColor: string;
19
+ containerBackgroundColor: string;
20
+ buttonBackgroundColor: string;
21
+ textColor: string;
22
+ resetButtonBackgroundColor: string;
23
+ resetButtonTextColor: string;
24
+ isDoneButtonFollowTheme: boolean;
25
+ doneButtonBackgroundColor: string;
26
+ doneButtonTextColor: string;
27
+ keyboardBackgroundColor: string;
28
+ keyboardButtonBackgroundColor: string;
29
+ keyboardButtonTextColor: string;
30
+ keyboardButtonHoverColor: string;
31
+ };
32
+ };
@@ -0,0 +1,60 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/virtual-keyboard/Amount/themeConfig.ts
20
+ var themeConfig_exports = {};
21
+ __export(themeConfig_exports, {
22
+ amountThemeConfig: () => amountThemeConfig
23
+ });
24
+ module.exports = __toCommonJS(themeConfig_exports);
25
+ var amountThemeConfig = {
26
+ dark: {
27
+ backgroundColor: "rgba(0, 0, 0, 0.70)",
28
+ containerBackgroundColor: "rgba(0, 0, 0, 0.40)",
29
+ buttonBackgroundColor: "#ffffff",
30
+ textColor: "#000000",
31
+ resetButtonBackgroundColor: "#ffffff",
32
+ resetButtonTextColor: "#d92d20",
33
+ isDoneButtonFollowTheme: true,
34
+ doneButtonBackgroundColor: "#4ca30d",
35
+ doneButtonTextColor: "#ffffff",
36
+ keyboardBackgroundColor: "rgba(0, 0, 0, 0.40)",
37
+ keyboardButtonBackgroundColor: "#ffffff",
38
+ keyboardButtonTextColor: "#000000",
39
+ keyboardButtonHoverColor: "#f5f5f5"
40
+ },
41
+ light: {
42
+ backgroundColor: "#ffffff",
43
+ containerBackgroundColor: "#d0d5dd",
44
+ buttonBackgroundColor: "#ffffff",
45
+ textColor: "#000000",
46
+ resetButtonBackgroundColor: "#ffffff",
47
+ resetButtonTextColor: "#d92d20",
48
+ isDoneButtonFollowTheme: true,
49
+ doneButtonBackgroundColor: "#4ca30d",
50
+ doneButtonTextColor: "#ffffff",
51
+ keyboardBackgroundColor: "#f9f9f9",
52
+ keyboardButtonBackgroundColor: "#ffffff",
53
+ keyboardButtonTextColor: "#000000",
54
+ keyboardButtonHoverColor: "#f5f5f5"
55
+ }
56
+ };
57
+ // Annotate the CommonJS export names for ESM import in node:
58
+ 0 && (module.exports = {
59
+ amountThemeConfig
60
+ });
@@ -0,0 +1,44 @@
1
+ /// <reference types="react" />
2
+ import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
3
+ export interface RightItemsStyleProps {
4
+ buttonBackgroundColor?: string;
5
+ textColor?: string;
6
+ resetButtonBackgroundColor?: string;
7
+ resetButtonTextColor?: string;
8
+ isDoneButtonFollowTheme?: boolean;
9
+ doneButtonBackgroundColor?: string;
10
+ doneButtonTextColor?: string;
11
+ }
12
+ export interface AmountProps {
13
+ max?: number;
14
+ min?: number;
15
+ doneText?: string;
16
+ resetText?: string;
17
+ defaultValue?: string | number;
18
+ placeholder?: string;
19
+ amountProps?: {
20
+ showCurrencySymbol: boolean;
21
+ useThousandsSeparator: boolean;
22
+ };
23
+ presets?: BaseNumberKeyboardProps['presets'];
24
+ value?: string | number;
25
+ onChange?: (val: string | number) => void;
26
+ onEnter?: (val: string | number) => void;
27
+ defaultSelect?: boolean;
28
+ inputFormat?: (_v: string) => React.ReactNode | null;
29
+ rightItemsStyle?: RightItemsStyleProps;
30
+ selectType?: 'light' | 'dark';
31
+ backgroundColor?: string;
32
+ containerBackgroundColor?: string;
33
+ buttonBackgroundColor?: string;
34
+ textColor?: string;
35
+ resetButtonBackgroundColor?: string;
36
+ resetButtonTextColor?: string;
37
+ isDoneButtonFollowTheme?: boolean;
38
+ doneButtonBackgroundColor?: string;
39
+ doneButtonTextColor?: string;
40
+ keyboardBackgroundColor?: string;
41
+ keyboardButtonBackgroundColor?: string;
42
+ keyboardButtonTextColor?: string;
43
+ keyboardButtonHoverColor?: string;
44
+ }
@@ -0,0 +1,17 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+
15
+ // src/components/virtual-keyboard/Amount/types.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./Presets.less";
3
2
  export declare type PresetsItem = {
4
3
  label: string;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- export interface NumberProps {
3
- max?: number;
4
- min?: number;
5
- doneText?: string;
6
- resetText: string;
7
- defaultValue?: string | number;
8
- placeholder?: string;
9
- value?: string | number;
10
- onChange?: (val: string | number) => void;
11
- onEnter?: (val: string | number) => void;
12
- }
1
+ import { NumberProps } from './types';
2
+ import './index.less';
3
+ export type { NumberProps };
13
4
  declare const Number: (props: NumberProps) => JSX.Element;
14
5
  export default Number;
@@ -34,7 +34,12 @@ __export(Number_exports, {
34
34
  module.exports = __toCommonJS(Number_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_ahooks = require("ahooks");
37
+ var import_classnames = __toESM(require("classnames"));
38
+ var import_utils = require("@pisell/utils");
37
39
  var import_BaseNumberKeyboard = __toESM(require("../BaseNumberKeyboard"));
40
+ var import_usePisellConfig = __toESM(require("../../pisell-config-provider/hooks/usePisellConfig"));
41
+ var import_themeConfig = require("./themeConfig");
42
+ var import_index = require("./index.less");
38
43
  var Number = (props) => {
39
44
  const {
40
45
  min,
@@ -43,23 +48,72 @@ var Number = (props) => {
43
48
  resetText,
44
49
  defaultValue,
45
50
  placeholder,
46
- onEnter
51
+ onEnter,
52
+ selectType = "light",
53
+ ...others
47
54
  } = props;
55
+ const config = (0, import_usePisellConfig.default)();
48
56
  const [value, setValue] = (0, import_ahooks.useControllableValue)(props, {
49
57
  defaultValue: defaultValue || ""
50
58
  });
59
+ (0, import_react.useEffect)(() => {
60
+ document.body.id = "body";
61
+ }, []);
62
+ const configColor = (0, import_react.useMemo)(() => {
63
+ const currentConfig = import_themeConfig.numberThemeConfig[selectType];
64
+ const validProps = Object.entries(props).reduce((acc, [key, value2]) => {
65
+ if (value2 !== void 0 && key in currentConfig) {
66
+ acc[key] = value2;
67
+ }
68
+ return acc;
69
+ }, {});
70
+ return { ...currentConfig, ...validProps };
71
+ }, [selectType, props]);
72
+ (0, import_react.useEffect)(() => {
73
+ (0, import_utils.setTheme)({
74
+ "--pisell-number-background-color": configColor.backgroundColor,
75
+ "--pisell-number-container-background-color": configColor.containerBackgroundColor,
76
+ "--pisell-number-text-color": configColor.textColor,
77
+ "--pisell-number-keyboard-background-color": configColor.keyboardBackgroundColor,
78
+ "--pisell-number-keyboard-button-background-color": configColor.keyboardButtonBackgroundColor,
79
+ "--pisell-number-keyboard-button-text-color": configColor.keyboardButtonTextColor,
80
+ "--pisell-number-keyboard-button-hover-color": configColor.keyboardButtonHoverColor,
81
+ "--pisell-number-reset-button-background-color": configColor.resetButtonBackgroundColor,
82
+ "--pisell-number-reset-button-text-color": configColor.resetButtonTextColor,
83
+ "--pisell-number-done-button-background-color": configColor.doneButtonBackgroundColor,
84
+ "--pisell-number-done-button-text-color": configColor.doneButtonTextColor
85
+ });
86
+ }, [configColor]);
51
87
  return /* @__PURE__ */ import_react.default.createElement(
52
- import_BaseNumberKeyboard.default,
88
+ "div",
53
89
  {
54
- max,
55
- min,
56
- value,
57
- onChange: setValue,
58
- placeholder,
59
- doneText,
60
- resetText,
61
- onEnter
62
- }
90
+ className: (0, import_classnames.default)("pisell-number-keyboard-wrap", {
91
+ "pisell-number-keyboard-dark": selectType === "dark",
92
+ "pisell-number-keyboard-light": selectType === "light"
93
+ })
94
+ },
95
+ /* @__PURE__ */ import_react.default.createElement(
96
+ import_BaseNumberKeyboard.default,
97
+ {
98
+ max,
99
+ min,
100
+ value,
101
+ onChange: setValue,
102
+ placeholder,
103
+ doneText,
104
+ resetText,
105
+ onEnter,
106
+ rightItemsStyle: {
107
+ buttonBackgroundColor: configColor.buttonBackgroundColor,
108
+ textColor: configColor.textColor,
109
+ resetButtonBackgroundColor: configColor.resetButtonBackgroundColor,
110
+ resetButtonTextColor: configColor.resetButtonTextColor,
111
+ isDoneButtonFollowTheme: configColor.isDoneButtonFollowTheme,
112
+ doneButtonBackgroundColor: configColor.doneButtonBackgroundColor,
113
+ doneButtonTextColor: configColor.doneButtonTextColor
114
+ }
115
+ }
116
+ )
63
117
  );
64
118
  };
65
119
  var Number_default = Number;
@@ -0,0 +1,39 @@
1
+ .pisell-number-keyboard-wrap {
2
+ background-color: var(--pisell-number-background-color, #ffffff);
3
+
4
+ &.pisell-number-keyboard-dark {
5
+ background-color: var(--pisell-number-background-color, rgba(0, 0, 0, 0.70));
6
+ }
7
+
8
+ &.pisell-number-keyboard-light {
9
+ background-color: var(--pisell-number-background-color, #ffffff);
10
+ }
11
+
12
+ .pisell-virtual-keyboard-input {
13
+ background-color: var(--pisell-number-container-background-color, #d0d5dd);
14
+ color: var(--pisell-number-text-color, #000000);
15
+ }
16
+
17
+ .pisell-keyboard {
18
+ background-color: var(--pisell-number-keyboard-background-color, #f9f9f9);
19
+
20
+ .pisell-keyboard-item {
21
+ background-color: var(--pisell-number-keyboard-button-background-color, #ffffff);
22
+ color: var(--pisell-number-keyboard-button-text-color, #000000);
23
+
24
+ &:hover {
25
+ background-color: var(--pisell-number-keyboard-button-hover-color, #f5f5f5);
26
+ }
27
+ }
28
+
29
+ .pisell-keyboard-reset-button {
30
+ background-color: var(--pisell-number-reset-button-background-color, #ffffff);
31
+ color: var(--pisell-number-reset-button-text-color, #d92d20);
32
+ }
33
+
34
+ .pisell-keyboard-done-button {
35
+ background-color: var(--pisell-number-done-button-background-color, #4ca30d);
36
+ color: var(--pisell-number-done-button-text-color, #ffffff);
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,32 @@
1
+ export declare const numberThemeConfig: {
2
+ dark: {
3
+ backgroundColor: string;
4
+ containerBackgroundColor: string;
5
+ buttonBackgroundColor: string;
6
+ textColor: string;
7
+ resetButtonBackgroundColor: string;
8
+ resetButtonTextColor: string;
9
+ isDoneButtonFollowTheme: boolean;
10
+ doneButtonBackgroundColor: string;
11
+ doneButtonTextColor: string;
12
+ keyboardBackgroundColor: string;
13
+ keyboardButtonBackgroundColor: string;
14
+ keyboardButtonTextColor: string;
15
+ keyboardButtonHoverColor: string;
16
+ };
17
+ light: {
18
+ backgroundColor: string;
19
+ containerBackgroundColor: string;
20
+ buttonBackgroundColor: string;
21
+ textColor: string;
22
+ resetButtonBackgroundColor: string;
23
+ resetButtonTextColor: string;
24
+ isDoneButtonFollowTheme: boolean;
25
+ doneButtonBackgroundColor: string;
26
+ doneButtonTextColor: string;
27
+ keyboardBackgroundColor: string;
28
+ keyboardButtonBackgroundColor: string;
29
+ keyboardButtonTextColor: string;
30
+ keyboardButtonHoverColor: string;
31
+ };
32
+ };
@@ -0,0 +1,60 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/virtual-keyboard/Number/themeConfig.ts
20
+ var themeConfig_exports = {};
21
+ __export(themeConfig_exports, {
22
+ numberThemeConfig: () => numberThemeConfig
23
+ });
24
+ module.exports = __toCommonJS(themeConfig_exports);
25
+ var numberThemeConfig = {
26
+ dark: {
27
+ backgroundColor: "rgba(0, 0, 0, 0.70)",
28
+ containerBackgroundColor: "rgba(0, 0, 0, 0.40)",
29
+ buttonBackgroundColor: "#ffffff",
30
+ textColor: "#000000",
31
+ resetButtonBackgroundColor: "#ffffff",
32
+ resetButtonTextColor: "#d92d20",
33
+ isDoneButtonFollowTheme: true,
34
+ doneButtonBackgroundColor: "#4ca30d",
35
+ doneButtonTextColor: "#ffffff",
36
+ keyboardBackgroundColor: "rgba(0, 0, 0, 0.40)",
37
+ keyboardButtonBackgroundColor: "#ffffff",
38
+ keyboardButtonTextColor: "#000000",
39
+ keyboardButtonHoverColor: "#f5f5f5"
40
+ },
41
+ light: {
42
+ backgroundColor: "#ffffff",
43
+ containerBackgroundColor: "#d0d5dd",
44
+ buttonBackgroundColor: "#ffffff",
45
+ textColor: "#000000",
46
+ resetButtonBackgroundColor: "#ffffff",
47
+ resetButtonTextColor: "#d92d20",
48
+ isDoneButtonFollowTheme: true,
49
+ doneButtonBackgroundColor: "#4ca30d",
50
+ doneButtonTextColor: "#ffffff",
51
+ keyboardBackgroundColor: "#f9f9f9",
52
+ keyboardButtonBackgroundColor: "#ffffff",
53
+ keyboardButtonTextColor: "#000000",
54
+ keyboardButtonHoverColor: "#f5f5f5"
55
+ }
56
+ };
57
+ // Annotate the CommonJS export names for ESM import in node:
58
+ 0 && (module.exports = {
59
+ numberThemeConfig
60
+ });