@pisell/materials 6.2.36 → 6.3.2

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 (267) 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 +3 -3
  6. package/build/lowcode/preview.js +164 -148
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +39 -25
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +39 -25
  11. package/es/components/batch-editor/index.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  13. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  14. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
  16. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  17. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  18. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  19. package/es/components/dataSourceComponents/fields/index.d.ts +11 -10
  20. package/es/components/date-picker/index.d.ts +1 -0
  21. package/es/components/filter/index.d.ts +1 -0
  22. package/es/components/iconfont/index.js +1 -1
  23. package/es/components/page/index.d.ts +1 -0
  24. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  25. package/es/components/pisellCardList/index.js +3 -1
  26. package/es/components/pisellCheckboxGroup/index.d.ts +1 -0
  27. package/es/components/pisellCheckboxGroup/index.js +15 -1
  28. package/es/components/pisellGoodPassCard/index.d.ts +0 -1
  29. package/es/components/pisellGoodPassCard/index.js +5 -17
  30. package/es/components/pisellInput/index.d.ts +1 -0
  31. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  32. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  33. package/es/components/pisellModal/components/index.d.ts +1 -0
  34. package/es/components/pisellToast/index.js +0 -3
  35. package/es/components/pisellWalletPassCard/index.d.ts +1 -0
  36. package/es/components/productCard/components/Action/index.js +1 -14
  37. package/es/components/productCard/components/Action/index.less +0 -3
  38. package/es/components/productCard/components/Header/index.js +8 -23
  39. package/es/components/productCard/components/Header/index.less +1 -16
  40. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  41. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  42. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  43. package/es/components/productCard/components/Sales/index.js +2 -2
  44. package/es/components/productCard/components/Time/components/SelectHolderModal/index.js +1 -3
  45. package/es/components/productCard/components/Time/components/SelectHolderModal/index.less +0 -3
  46. package/es/components/productCard/index.d.ts +1 -3
  47. package/es/components/productCard/index.js +2 -5
  48. package/es/components/productCard/index.less +0 -6
  49. package/es/components/productCard/locales.js +0 -3
  50. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  51. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  52. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  53. package/es/components/table/Actions/index.d.ts +1 -0
  54. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  55. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  56. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  57. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  58. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  59. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  60. package/es/components/table/Table/fields/index.d.ts +3 -2
  61. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  62. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  63. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  64. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  65. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  66. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  67. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  68. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  69. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  70. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  71. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  72. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  73. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  74. package/es/components/table/Table/utils.d.ts +1 -1
  75. package/es/components/table/View/index.d.ts +1 -0
  76. package/es/components/versionSelect/index.d.ts +1 -0
  77. package/es/components/virtual-keyboard/index.d.ts +0 -11
  78. package/es/components/virtual-keyboard/index.js +3 -88
  79. package/es/components/virtual-keyboard/index.less +1 -33
  80. package/es/components/walletCard/Guide/index.js +12 -1
  81. package/lib/components/batch-editor/index.d.ts +1 -0
  82. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  83. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  84. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  85. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
  86. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  87. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  88. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  89. package/lib/components/dataSourceComponents/fields/index.d.ts +11 -10
  90. package/lib/components/date-picker/index.d.ts +1 -0
  91. package/lib/components/filter/index.d.ts +1 -0
  92. package/lib/components/iconfont/index.js +1 -1
  93. package/lib/components/page/index.d.ts +1 -0
  94. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  95. package/lib/components/pisellCardList/index.js +3 -1
  96. package/lib/components/pisellCheckboxGroup/index.d.ts +1 -0
  97. package/lib/components/pisellCheckboxGroup/index.js +16 -0
  98. package/lib/components/pisellGoodPassCard/index.d.ts +0 -1
  99. package/lib/components/pisellGoodPassCard/index.js +4 -31
  100. package/lib/components/pisellInput/index.d.ts +1 -0
  101. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  102. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  103. package/lib/components/pisellModal/components/index.d.ts +1 -0
  104. package/lib/components/pisellToast/index.js +0 -3
  105. package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
  106. package/lib/components/productCard/components/Action/index.js +0 -9
  107. package/lib/components/productCard/components/Action/index.less +0 -3
  108. package/lib/components/productCard/components/Header/index.js +11 -21
  109. package/lib/components/productCard/components/Header/index.less +1 -16
  110. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  111. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  112. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  113. package/lib/components/productCard/components/Sales/index.js +2 -2
  114. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.js +1 -1
  115. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.less +0 -3
  116. package/lib/components/productCard/index.d.ts +1 -3
  117. package/lib/components/productCard/index.js +2 -6
  118. package/lib/components/productCard/index.less +0 -6
  119. package/lib/components/productCard/locales.js +3 -12
  120. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  121. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  122. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  123. package/lib/components/table/Actions/index.d.ts +1 -0
  124. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  125. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  126. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  127. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  128. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  129. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  130. package/lib/components/table/Table/fields/index.d.ts +3 -2
  131. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  132. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  133. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  134. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  135. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  136. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  137. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  138. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  139. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  140. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  141. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  142. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  143. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  144. package/lib/components/table/Table/utils.d.ts +1 -1
  145. package/lib/components/table/View/index.d.ts +1 -0
  146. package/lib/components/versionSelect/index.d.ts +1 -0
  147. package/lib/components/virtual-keyboard/index.d.ts +0 -11
  148. package/lib/components/virtual-keyboard/index.js +2 -60
  149. package/lib/components/virtual-keyboard/index.less +1 -33
  150. package/lib/components/walletCard/Guide/index.js +11 -1
  151. package/lowcode/_setters/antd-icon-setter/index.tsx +2 -3
  152. package/lowcode/virtual-keyboard/meta.ts +0 -131
  153. package/package.json +4 -6
  154. package/dist/umd/materials.min.css +0 -1
  155. package/dist/umd/materials.min.js +0 -1
  156. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  157. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  158. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  159. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  160. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  161. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
  162. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  163. package/es/components/pisellAdjustPrice/type.d.ts +0 -20
  164. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
  165. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.js +0 -76
  166. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.less +0 -75
  167. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
  168. package/es/components/productCard/cartSkuCard/components/MultiDay/index.js +0 -82
  169. package/es/components/productCard/cartSkuCard/components/MultiDay/index.less +0 -31
  170. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  171. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.js +0 -56
  172. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  173. package/es/components/productCard/cartSkuCard/components/Note/index.js +0 -29
  174. package/es/components/productCard/cartSkuCard/components/Note/index.less +0 -27
  175. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
  176. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +0 -93
  177. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -117
  178. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  179. package/es/components/productCard/cartSkuCard/components/discountReason/index.js +0 -51
  180. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  181. package/es/components/productCard/cartSkuCard/components/holders/index.js +0 -32
  182. package/es/components/productCard/cartSkuCard/components/holders/index.less +0 -32
  183. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  184. package/es/components/productCard/cartSkuCard/components/packages/index.js +0 -52
  185. package/es/components/productCard/cartSkuCard/components/packages/index.less +0 -22
  186. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  187. package/es/components/productCard/cartSkuCard/components/packages/utils.js +0 -40
  188. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  189. package/es/components/productCard/cartSkuCard/components/resources/index.js +0 -39
  190. package/es/components/productCard/cartSkuCard/components/resources/index.less +0 -19
  191. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  192. package/es/components/productCard/cartSkuCard/components/sales/index.js +0 -57
  193. package/es/components/productCard/cartSkuCard/components/sales/index.less +0 -22
  194. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  195. package/es/components/productCard/cartSkuCard/components/specs/index.js +0 -44
  196. package/es/components/productCard/cartSkuCard/components/specs/index.less +0 -34
  197. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
  198. package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +0 -292
  199. package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +0 -35
  200. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  201. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +0 -54
  202. package/es/components/productCard/cartSkuCard/components/timeRange/index.less +0 -38
  203. package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
  204. package/es/components/productCard/cartSkuCard/index.js +0 -203
  205. package/es/components/productCard/cartSkuCard/index.less +0 -33
  206. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
  207. package/es/components/productCard/cartSkuCard/locales.js +0 -30
  208. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  209. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
  210. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  211. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  212. package/es/components/virtual-keyboard/Number/types.d.ts +0 -25
  213. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  214. package/es/components/walletCard/Guide/index.d.ts +0 -3
  215. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  216. package/lib/components/pisellAdjustPrice/type.d.ts +0 -20
  217. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
  218. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.js +0 -80
  219. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.less +0 -75
  220. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
  221. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.js +0 -71
  222. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.less +0 -31
  223. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  224. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.js +0 -77
  225. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  226. package/lib/components/productCard/cartSkuCard/components/Note/index.js +0 -56
  227. package/lib/components/productCard/cartSkuCard/components/Note/index.less +0 -27
  228. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
  229. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +0 -82
  230. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -117
  231. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  232. package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +0 -70
  233. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  234. package/lib/components/productCard/cartSkuCard/components/holders/index.js +0 -52
  235. package/lib/components/productCard/cartSkuCard/components/holders/index.less +0 -32
  236. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  237. package/lib/components/productCard/cartSkuCard/components/packages/index.js +0 -73
  238. package/lib/components/productCard/cartSkuCard/components/packages/index.less +0 -22
  239. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  240. package/lib/components/productCard/cartSkuCard/components/packages/utils.js +0 -44
  241. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  242. package/lib/components/productCard/cartSkuCard/components/resources/index.js +0 -71
  243. package/lib/components/productCard/cartSkuCard/components/resources/index.less +0 -19
  244. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  245. package/lib/components/productCard/cartSkuCard/components/sales/index.js +0 -77
  246. package/lib/components/productCard/cartSkuCard/components/sales/index.less +0 -22
  247. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  248. package/lib/components/productCard/cartSkuCard/components/specs/index.js +0 -66
  249. package/lib/components/productCard/cartSkuCard/components/specs/index.less +0 -34
  250. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
  251. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +0 -339
  252. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +0 -35
  253. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  254. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +0 -68
  255. package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +0 -38
  256. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
  257. package/lib/components/productCard/cartSkuCard/index.js +0 -239
  258. package/lib/components/productCard/cartSkuCard/index.less +0 -33
  259. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
  260. package/lib/components/productCard/cartSkuCard/locales.js +0 -61
  261. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  262. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
  263. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  264. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  265. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -25
  266. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  267. package/lib/components/walletCard/Guide/index.d.ts +0 -3
@@ -1,203 +0,0 @@
1
- var _excluded = ["dataSource", "isShowImage", "isShowHolder", "isShowNote", "isShowDelete", "isShowPackageNote", "isShowEditProduct", "onEditProduct", "onAction", "onDelete", "onNote", "onLike", "onCard", "onChangeResource", "onChangeHolder", "type", "rightActions", "escapeDom"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
7
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
8
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import React, { useMemo, useRef } from 'react';
12
- import classNames from 'classnames';
13
- import { locales } from '@pisell/utils';
14
- import localeTexts from "./locales";
15
- import BasicInfo from "./components/basicInfo";
16
- import DiscountReason from "./components/discountReason";
17
- import TimeRange from "./components/timeRange";
18
- import Resources from "./components/resources";
19
- import Packages from "./components/packages";
20
- import Sales from "./components/sales";
21
- import { SwipeAction } from "./components/swipeAction";
22
- import Note from "./components/Note";
23
- import AmountFooter from "./components/AmountFooter";
24
- import Items from "./components/MultiDay";
25
- import "./index.less";
26
- import Iconfont from "../../iconfont";
27
- import useEngineContext from "../../../hooks/useEngineContext";
28
- import Action from "../components/Action";
29
- import { defaultValue } from "../status";
30
- export var PREFIX = 'pisell-cart-sku-card';
31
- var CartSkuCard = function CartSkuCard(props) {
32
- var _context$appHelper$ut;
33
- var _props$dataSource = props.dataSource,
34
- dataSource = _props$dataSource === void 0 ? defaultValue.dataSource : _props$dataSource,
35
- _props$isShowImage = props.isShowImage,
36
- isShowImage = _props$isShowImage === void 0 ? defaultValue.isShowImage : _props$isShowImage,
37
- _props$isShowHolder = props.isShowHolder,
38
- isShowHolder = _props$isShowHolder === void 0 ? defaultValue.isShowHolder : _props$isShowHolder,
39
- _props$isShowNote = props.isShowNote,
40
- isShowNote = _props$isShowNote === void 0 ? defaultValue.isShowNote : _props$isShowNote,
41
- _props$isShowDelete = props.isShowDelete,
42
- isShowDelete = _props$isShowDelete === void 0 ? defaultValue.isShowDelete : _props$isShowDelete,
43
- _props$isShowPackageN = props.isShowPackageNote,
44
- isShowPackageNote = _props$isShowPackageN === void 0 ? defaultValue.isShowPackageNote : _props$isShowPackageN,
45
- _props$isShowEditProd = props.isShowEditProduct,
46
- isShowEditProduct = _props$isShowEditProd === void 0 ? defaultValue.isShowEditProduct : _props$isShowEditProd,
47
- onEditProduct = props.onEditProduct,
48
- _onAction = props.onAction,
49
- onDelete = props.onDelete,
50
- onNote = props.onNote,
51
- onLike = props.onLike,
52
- onCard = props.onCard,
53
- onChangeResource = props.onChangeResource,
54
- onChangeHolder = props.onChangeHolder,
55
- type = props.type,
56
- _props$rightActions = props.rightActions,
57
- rightActions = _props$rightActions === void 0 ? [] : _props$rightActions,
58
- escapeDom = props.escapeDom,
59
- other = _objectWithoutProperties(props, _excluded);
60
- var useOpenNoteRef = useRef();
61
- var context = useEngineContext();
62
- locales.init(localeTexts, ((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut = _context$appHelper$ut.storage) === null || _context$appHelper$ut === void 0 ? void 0 : _context$appHelper$ut.get('umi_locale')) || 'en');
63
- console.log('prodcut props', props);
64
- var isShowAction = dataSource.isShowAction,
65
- actionText = dataSource.actionText;
66
- var _rightActions = useMemo(function () {
67
- var deleteAction = {
68
- key: 'delete',
69
- text: /*#__PURE__*/React.createElement("div", {
70
- style: {
71
- display: 'flex',
72
- justifyContent: 'center',
73
- alignItems: 'center',
74
- color: 'white',
75
- cursor: 'pointer',
76
- padding: '10px 0px'
77
- }
78
- }, /*#__PURE__*/React.createElement(Iconfont, {
79
- type: "pisell2-trash-01",
80
- style: {
81
- fontSize: 20,
82
- marginRight: 4
83
- }
84
- }), /*#__PURE__*/React.createElement("span", {
85
- style: {
86
- fontSize: 12,
87
- fontWeight: 500
88
- }
89
- }, locales.getText('pisell2.cart.sku-card.actions.delete'))),
90
- color: 'danger',
91
- onClick: function onClick(e) {
92
- e.preventDefault();
93
- e.stopPropagation();
94
- onDelete === null || onDelete === void 0 || onDelete(dataSource);
95
- }
96
- };
97
- var actions = _toConsumableArray(rightActions);
98
- if (isShowDelete) {
99
- actions.unshift(deleteAction);
100
- }
101
- return actions;
102
- }, [dataSource, onDelete, isShowDelete, rightActions]);
103
- var hideDivider = useMemo(function () {
104
- return false;
105
- // const { bundle, relation_products } = dataSource;
106
- // return bundle?.length || relation_products?.length;
107
- }, [dataSource]);
108
- var renderA2 = function renderA2() {
109
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BasicInfo, {
110
- isShowImage: isShowImage,
111
- dataSource: dataSource,
112
- isMainProduct: true
113
- }), /*#__PURE__*/React.createElement(DiscountReason, {
114
- dataSource: dataSource
115
- }), isShowNote ? /*#__PURE__*/React.createElement(Note, _extends({}, other, {
116
- item: dataSource,
117
- openNote: function openNote() {
118
- useOpenNoteRef.current.open({
119
- item: dataSource
120
- });
121
- }
122
- })) : null);
123
- };
124
- var renderA5 = function renderA5() {
125
- var _dataSource$bundle, _dataSource$items;
126
- return /*#__PURE__*/React.createElement(React.Fragment, null, isShowDelete ? /*#__PURE__*/React.createElement("div", {
127
- className: "".concat(PREFIX, "__delete-btn"),
128
- onClick: function onClick(e) {
129
- e.preventDefault();
130
- e.stopPropagation();
131
- onDelete === null || onDelete === void 0 || onDelete(dataSource);
132
- }
133
- }, /*#__PURE__*/React.createElement(Iconfont, {
134
- type: "pisell2-trash-01"
135
- })) : null, /*#__PURE__*/React.createElement(BasicInfo, {
136
- isShowImage: isShowImage,
137
- dataSource: dataSource,
138
- isMainProduct: true,
139
- type: type
140
- }), /*#__PURE__*/React.createElement(TimeRange, {
141
- dataSource: dataSource
142
- }), /*#__PURE__*/React.createElement(Resources, {
143
- dataSource: dataSource
144
- }), /*#__PURE__*/React.createElement(Packages, {
145
- dataSource: dataSource,
146
- isShowImage: isShowImage
147
- }), /*#__PURE__*/React.createElement(Sales, {
148
- dataSource: dataSource,
149
- hideDivider: !!(dataSource !== null && dataSource !== void 0 && (_dataSource$bundle = dataSource.bundle) !== null && _dataSource$bundle !== void 0 && _dataSource$bundle.length),
150
- isShowImage: isShowImage
151
- }), (_dataSource$items = dataSource.items) !== null && _dataSource$items !== void 0 && _dataSource$items.length ? /*#__PURE__*/React.createElement(Items, {
152
- dataSource: dataSource,
153
- hideDivider: hideDivider
154
- }) : /*#__PURE__*/React.createElement(AmountFooter, {
155
- item: dataSource,
156
- hideDivider: hideDivider,
157
- type: "total"
158
- }), /*#__PURE__*/React.createElement(DiscountReason, {
159
- dataSource: dataSource
160
- }), isShowNote ? /*#__PURE__*/React.createElement(Note, _extends({}, other, {
161
- item: dataSource,
162
- openNote: function openNote() {
163
- useOpenNoteRef.current.open({
164
- item: dataSource
165
- });
166
- }
167
- })) : null, isShowAction && actionText ? /*#__PURE__*/React.createElement(Action, {
168
- item: dataSource,
169
- onAction: function onAction() {
170
- return _onAction === null || _onAction === void 0 ? void 0 : _onAction(dataSource);
171
- }
172
- }) : null);
173
- };
174
- var renderContent = function renderContent() {
175
- if (type === 'a5') {
176
- return renderA5();
177
- }
178
- return renderA2();
179
- };
180
- return /*#__PURE__*/React.createElement(React.Fragment, null, type === 'a2' ? /*#__PURE__*/React.createElement(SwipeAction, {
181
- closeOnAction: false,
182
- className: classNames("".concat(PREFIX, "-wrapper")),
183
- rightActions: _rightActions,
184
- escapeDom: escapeDom
185
- }, /*#__PURE__*/React.createElement("div", {
186
- className: classNames(PREFIX, "".concat(PREFIX, "--").concat(type)),
187
- onClick: function onClick(e) {
188
- e.preventDefault();
189
- e.stopPropagation();
190
- onCard === null || onCard === void 0 || onCard(dataSource);
191
- }
192
- }, renderContent())) : /*#__PURE__*/React.createElement("div", {
193
- className: classNames("".concat(PREFIX, "-wrapper"))
194
- }, /*#__PURE__*/React.createElement("div", {
195
- className: classNames(PREFIX, "".concat(PREFIX, "-").concat(type)),
196
- onClick: function onClick(e) {
197
- e.preventDefault();
198
- e.stopPropagation();
199
- onCard === null || onCard === void 0 || onCard(dataSource);
200
- }
201
- }, renderContent())));
202
- };
203
- export default CartSkuCard;
@@ -1,33 +0,0 @@
1
- .pisell-cart-sku-card-wrapper {
2
- border-radius: 8px;
3
- background: var(--Base-White, #fff);
4
- border: 1px solid var(--Gray-300, #d0d5dd);
5
- }
6
-
7
- .pisell-cart-sku-card {
8
- padding: 4px 8px 4px 4px;
9
- border-radius: inherit;
10
- user-select: none;
11
- position: relative;
12
- display: flex;
13
- flex-direction: column;
14
- gap: 4px;
15
-
16
- &-a5 {
17
- cursor: pointer;
18
- }
19
-
20
- &__delete-btn {
21
- cursor: pointer;
22
- position: absolute;
23
- padding: 10px;
24
- top: 0;
25
- right: 0;
26
- z-index: 1;
27
-
28
- > span {
29
- color: #667085;
30
- font-size: 20px;
31
- }
32
- }
33
- }
@@ -1,96 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.product.card.discount.reason': string;
4
- 'pisell2.cart.sku-card.more': string;
5
- 'pisell2.cart.sku-card.packages.title': string;
6
- 'pisell2.cart.sku-card.sales.title': string;
7
- 'pisell2.cart.sku-card.actions.delete': string;
8
- 'pisell2.product.card.day': (val: number) => string;
9
- 'pisell2.product.card.day.event': (val: number) => string;
10
- 'pisell2.product.card.minute': (val: number) => string;
11
- 'pisell2.product.card.discount.note': string;
12
- 'pisell2.product.card.edit': string;
13
- 'pisell2.product.card.discount.add.note': string;
14
- 'pisell2.product.card.discount.edit.note': string;
15
- 'pisell2.product.card.confirm': string;
16
- 'pisell2.product.card.cancel': string;
17
- 'pisell2.product.card.note.pla': string;
18
- 'pisell2.product.card.items.package': string;
19
- 'pisell2.product.card.view-all': string;
20
- 'pisell2.product.card.view-less': string;
21
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
22
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
23
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
24
- 'pisell2.product.card.add.holder.modal.title.1': string;
25
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
26
- 'pisell2.product.card.sales': string;
27
- 'pisell2.product.card.add.holder.modal.cancel': string;
28
- 'pisell2.product.card.add.holder.modal.clear': string;
29
- 'pisell2.product.card.add.holder.modal.apply': string;
30
- 'pisell2.product.card.add.holder.modal.add': string;
31
- 'pisell2.product.card.closing-soon.warning': string;
32
- };
33
- 'zh-CN': {
34
- 'pisell2.product.card.discount.reason': string;
35
- 'pisell2.cart.sku-card.more': string;
36
- 'pisell2.cart.sku-card.packages.title': string;
37
- 'pisell2.cart.sku-card.sales.title': string;
38
- 'pisell2.cart.sku-card.actions.delete': string;
39
- 'pisell2.product.card.edit': string;
40
- 'pisell2.product.card.day': (val: number) => string;
41
- 'pisell2.product.card.day.event': (val: number) => string;
42
- 'pisell2.product.card.minute': (val: number) => string;
43
- 'pisell2.product.card.discount.note': string;
44
- 'pisell2.product.card.discount.add.note': string;
45
- 'pisell2.product.card.discount.edit.note': string;
46
- 'pisell2.product.card.confirm': string;
47
- 'pisell2.product.card.cancel': string;
48
- 'pisell2.product.card.note.pla': string;
49
- 'pisell2.product.card.items.package': string;
50
- 'pisell2.product.card.view-all': string;
51
- 'pisell2.product.card.view-less': string;
52
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
53
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
54
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
55
- 'pisell2.product.card.add.holder.modal.title.1': string;
56
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
57
- 'pisell2.product.card.sales': string;
58
- 'pisell2.product.card.add.holder.modal.cancel': string;
59
- 'pisell2.product.card.add.holder.modal.clear': string;
60
- 'pisell2.product.card.add.holder.modal.apply': string;
61
- 'pisell2.product.card.add.holder.modal.add': string;
62
- 'pisell2.product.card.closing-soon.warning': string;
63
- };
64
- 'zh-HK': {
65
- 'pisell2.product.card.discount.reason': string;
66
- 'pisell2.cart.sku-card.more': string;
67
- 'pisell2.cart.sku-card.packages.title': string;
68
- 'pisell2.cart.sku-card.sales.title': string;
69
- 'pisell2.cart.sku-card.actions.delete': string;
70
- 'pisell2.product.card.edit': string;
71
- 'pisell2.product.card.day': (val: number) => string;
72
- 'pisell2.product.card.day.event': (val: number) => string;
73
- 'pisell2.product.card.minute': (val: number) => string;
74
- 'pisell2.product.card.discount.note': string;
75
- 'pisell2.product.card.discount.add.note': string;
76
- 'pisell2.product.card.discount.edit.note': string;
77
- 'pisell2.product.card.confirm': string;
78
- 'pisell2.product.card.cancel': string;
79
- 'pisell2.product.card.note.pla': string;
80
- 'pisell2.product.card.items.package': string;
81
- 'pisell2.product.card.view-all': string;
82
- 'pisell2.product.card.view-less': string;
83
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
84
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
85
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
86
- 'pisell2.product.card.add.holder.modal.title.1': string;
87
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
88
- 'pisell2.product.card.sales': string;
89
- 'pisell2.product.card.add.holder.modal.cancel': string;
90
- 'pisell2.product.card.add.holder.modal.clear': string;
91
- 'pisell2.product.card.add.holder.modal.apply': string;
92
- 'pisell2.product.card.add.holder.modal.add': string;
93
- 'pisell2.product.card.closing-soon.warning': string;
94
- };
95
- };
96
- export default _default;
@@ -1,30 +0,0 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- import localeTexts from "../locales";
8
- export default {
9
- en: _objectSpread(_objectSpread({}, localeTexts.en), {}, {
10
- 'pisell2.product.card.discount.reason': 'Discount reason',
11
- 'pisell2.cart.sku-card.more': 'more...',
12
- 'pisell2.cart.sku-card.packages.title': 'Items in package',
13
- 'pisell2.cart.sku-card.sales.title': 'Sales',
14
- 'pisell2.cart.sku-card.actions.delete': 'Delete'
15
- }),
16
- 'zh-CN': _objectSpread(_objectSpread({}, localeTexts['zh-CN']), {}, {
17
- 'pisell2.product.card.discount.reason': '折扣原因',
18
- 'pisell2.cart.sku-card.more': '更多……',
19
- 'pisell2.cart.sku-card.packages.title': '包含的商品',
20
- 'pisell2.cart.sku-card.sales.title': '销售',
21
- 'pisell2.cart.sku-card.actions.delete': '删除'
22
- }),
23
- 'zh-HK': _objectSpread(_objectSpread({}, localeTexts['zh-HK']), {}, {
24
- 'pisell2.product.card.discount.reason': '折扣原因',
25
- 'pisell2.cart.sku-card.more': '更多……',
26
- 'pisell2.cart.sku-card.packages.title': '包含的商品',
27
- 'pisell2.cart.sku-card.sales.title': '銷售',
28
- 'pisell2.cart.sku-card.actions.delete': '刪除'
29
- })
30
- };
@@ -1,32 +0,0 @@
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
- };
@@ -1,44 +0,0 @@
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
- }
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export declare type ItemValue = string | number;
4
- export interface Item {
5
- value: ItemValue;
6
- label: React.ReactNode;
7
- disabled: boolean;
8
- type: 'text' | 'primary';
9
- style?: React.CSSProperties;
10
- size?: number;
11
- }
12
- export interface KeyboardProps {
13
- className?: string;
14
- style?: React.CSSProperties;
15
- onChange?: (value?: ItemValue) => void;
16
- items?: Item[];
17
- rightItems?: Item[];
18
- keydown?: boolean;
19
- }
20
- declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
21
- export default _default;
@@ -1,32 +0,0 @@
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
- };
@@ -1,25 +0,0 @@
1
- export interface NumberProps {
2
- max?: number;
3
- min?: number;
4
- doneText?: string;
5
- resetText: string;
6
- defaultValue?: string | number;
7
- placeholder?: string;
8
- value?: string | number;
9
- onChange?: (val: string | number) => void;
10
- onEnter?: (val: string | number) => void;
11
- selectType?: 'light' | 'dark';
12
- backgroundColor?: string;
13
- containerBackgroundColor?: string;
14
- buttonBackgroundColor?: string;
15
- textColor?: string;
16
- resetButtonBackgroundColor?: string;
17
- resetButtonTextColor?: string;
18
- isDoneButtonFollowTheme?: boolean;
19
- doneButtonBackgroundColor?: string;
20
- doneButtonTextColor?: string;
21
- keyboardBackgroundColor?: string;
22
- keyboardButtonBackgroundColor?: string;
23
- keyboardButtonTextColor?: string;
24
- keyboardButtonHoverColor?: string;
25
- }
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { InputProps } from 'antd';
3
- import './index.less';
4
- export interface VirtualKeyInputProps extends InputProps {
5
- previewValue?: string;
6
- renderInput?: (props: any) => any;
7
- showDelete?: boolean;
8
- onValueSelect?: (selected: boolean) => void;
9
- defaultSelect?: boolean;
10
- style?: React.CSSProperties;
11
- }
12
- declare const VirtualKeyInput: (props: VirtualKeyInputProps) => JSX.Element;
13
- export default VirtualKeyInput;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Guide: (props: any) => JSX.Element;
3
- export default Guide;
@@ -1,32 +0,0 @@
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
- };
@@ -1,20 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
3
- export default Footer;