@pisell/materials 6.3.4 → 6.4.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 +4 -4
  6. package/build/lowcode/preview.js +150 -150
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +28 -24
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +34 -30
  11. package/es/components/DragSortList/index.js +6 -6
  12. package/es/components/classicLayout/index.js +4 -5
  13. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  16. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  17. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  18. package/es/components/dataSourceComponents/fields/index.d.ts +10 -10
  19. package/es/components/filter/index.d.ts +1 -0
  20. package/es/components/icon/index.js +5 -5
  21. package/es/components/iconfont/index.js +1 -1
  22. package/es/components/list/index.d.ts +1 -0
  23. package/es/components/list/index.js +6 -6
  24. package/es/components/pisell-config-provider/context.d.ts +2 -0
  25. package/es/components/pisell-config-provider/index.d.ts +1 -0
  26. package/es/components/pisellAdjustPrice/index.js +5 -1
  27. package/es/components/pisellAdjustPrice/type.d.ts +2 -0
  28. package/es/components/pisellCardList/index.d.ts +32 -2
  29. package/es/components/pisellCardList/index.js +42 -3
  30. package/es/components/pisellCardList/index.less +9 -1
  31. package/es/components/pisellCheckboxGroup/index.d.ts +4 -0
  32. package/es/components/pisellCheckboxGroup/index.js +23 -4
  33. package/es/components/pisellCheckboxGroup/index.less +28 -1
  34. package/es/components/pisellGoodPassCard/index.d.ts +1 -0
  35. package/es/components/pisellGoodPassCard/index.js +17 -5
  36. package/es/components/pisellText/components/Amount/index.js +2 -1
  37. package/es/components/pisellToast/index.js +3 -0
  38. package/es/components/pisellWalletPassCard/index.d.ts +53 -1
  39. package/es/components/pisellWalletPassCard/index.js +333 -75
  40. package/es/components/pisellWalletPassCard/index.less +48 -11
  41. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  42. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.js +80 -0
  43. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.less +75 -0
  44. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  45. package/es/components/productCard/cartSkuCard/components/MultiDay/index.js +82 -0
  46. package/es/components/productCard/cartSkuCard/components/MultiDay/index.less +31 -0
  47. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  48. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.js +56 -0
  49. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  50. package/es/components/productCard/cartSkuCard/components/Note/index.js +29 -0
  51. package/es/components/productCard/cartSkuCard/components/Note/index.less +27 -0
  52. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
  53. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +93 -0
  54. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +117 -0
  55. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  56. package/es/components/productCard/cartSkuCard/components/discountReason/index.js +51 -0
  57. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  58. package/es/components/productCard/cartSkuCard/components/holders/index.js +32 -0
  59. package/es/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  60. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  61. package/es/components/productCard/cartSkuCard/components/packages/index.js +52 -0
  62. package/es/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  63. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  64. package/es/components/productCard/cartSkuCard/components/packages/utils.js +40 -0
  65. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  66. package/es/components/productCard/cartSkuCard/components/resources/index.js +39 -0
  67. package/es/components/productCard/cartSkuCard/components/resources/index.less +19 -0
  68. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  69. package/es/components/productCard/cartSkuCard/components/sales/index.js +57 -0
  70. package/es/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  71. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  72. package/es/components/productCard/cartSkuCard/components/specs/index.js +44 -0
  73. package/es/components/productCard/cartSkuCard/components/specs/index.less +34 -0
  74. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +45 -0
  75. package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +292 -0
  76. package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +35 -0
  77. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  78. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +54 -0
  79. package/es/components/productCard/cartSkuCard/components/timeRange/index.less +38 -0
  80. package/es/components/productCard/cartSkuCard/index.d.ts +10 -0
  81. package/es/components/productCard/cartSkuCard/index.js +201 -0
  82. package/es/components/productCard/cartSkuCard/index.less +33 -0
  83. package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
  84. package/es/components/productCard/cartSkuCard/locales.js +30 -0
  85. package/es/components/productCard/components/Action/index.js +14 -1
  86. package/es/components/productCard/components/Action/index.less +3 -0
  87. package/es/components/productCard/components/Header/index.js +23 -8
  88. package/es/components/productCard/components/Header/index.less +16 -1
  89. package/es/components/productCard/components/Sales/index.js +2 -2
  90. package/es/components/productCard/components/Time/components/SelectHolderModal/index.js +3 -1
  91. package/es/components/productCard/components/Time/components/SelectHolderModal/index.less +3 -0
  92. package/es/components/productCard/index.d.ts +3 -1
  93. package/es/components/productCard/index.js +5 -2
  94. package/es/components/productCard/index.less +6 -0
  95. package/es/components/productCard/locales.js +3 -0
  96. package/es/components/qrcode/index.js +1 -1
  97. package/es/components/sort/components/InlineMenu/index.js +1 -1
  98. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  99. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  100. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
  101. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  102. package/es/components/table/Header/Buttons/index.js +5 -5
  103. package/es/components/table/Table/AddFieldModal/index.d.ts +1 -0
  104. package/es/components/table/Table/AddFieldModal/index.js +13 -13
  105. package/es/components/table/Table/AddFieldModal/index.less +11 -11
  106. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  107. package/es/components/table/Table/SelectField/index.js +4 -4
  108. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  109. package/es/components/table/Table/fields/index.d.ts +3 -2
  110. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  111. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  112. package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
  113. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  114. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  115. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  116. package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
  117. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  118. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  119. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  120. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  121. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  122. package/es/components/table/Table/utils.d.ts +1 -1
  123. package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
  124. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  125. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  126. package/es/components/translation/utils.js +5 -5
  127. package/es/components/virtual-keyboard/Number/index.js +4 -1
  128. package/es/components/virtual-keyboard/Number/types.d.ts +1 -0
  129. package/es/components/virtual-keyboard/index.d.ts +11 -0
  130. package/es/components/virtual-keyboard/index.js +88 -3
  131. package/es/components/virtual-keyboard/index.less +33 -1
  132. package/es/components/walletCard/Guide/index.js +12 -1
  133. package/es/hooks/useResponsive.js +2 -2
  134. package/es/index.d.ts +1 -0
  135. package/es/locales/en-US.d.ts +6 -0
  136. package/es/locales/en-US.js +9 -2
  137. package/es/locales/zh-CN.d.ts +6 -0
  138. package/es/locales/zh-CN.js +9 -2
  139. package/es/locales/zh-TW.d.ts +6 -0
  140. package/es/locales/zh-TW.js +9 -2
  141. package/es/utils/hoc.js +1 -1
  142. package/es/utils/index.d.ts +1 -1
  143. package/es/utils/miniRedux.js +8 -9
  144. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  145. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  146. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  147. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  148. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  149. package/lib/components/dataSourceComponents/fields/index.d.ts +10 -10
  150. package/lib/components/filter/index.d.ts +1 -0
  151. package/lib/components/iconfont/index.js +1 -1
  152. package/lib/components/list/index.d.ts +1 -0
  153. package/lib/components/lowCodePage/index.js +1 -2
  154. package/lib/components/pisell-config-provider/context.d.ts +2 -0
  155. package/lib/components/pisell-config-provider/index.d.ts +1 -0
  156. package/lib/components/pisellAdjustPrice/index.js +4 -0
  157. package/lib/components/pisellAdjustPrice/type.d.ts +2 -0
  158. package/lib/components/pisellCardList/index.d.ts +32 -2
  159. package/lib/components/pisellCardList/index.js +42 -3
  160. package/lib/components/pisellCardList/index.less +9 -1
  161. package/lib/components/pisellCheckboxGroup/index.d.ts +4 -0
  162. package/lib/components/pisellCheckboxGroup/index.js +22 -1
  163. package/lib/components/pisellCheckboxGroup/index.less +28 -1
  164. package/lib/components/pisellGoodPassCard/index.d.ts +1 -0
  165. package/lib/components/pisellGoodPassCard/index.js +31 -4
  166. package/lib/components/pisellText/components/Amount/index.js +2 -1
  167. package/lib/components/pisellToast/index.js +3 -0
  168. package/lib/components/pisellWalletPassCard/index.d.ts +53 -1
  169. package/lib/components/pisellWalletPassCard/index.js +253 -59
  170. package/lib/components/pisellWalletPassCard/index.less +48 -11
  171. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  172. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.js +80 -0
  173. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.less +75 -0
  174. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  175. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.js +71 -0
  176. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.less +31 -0
  177. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  178. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.js +77 -0
  179. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  180. package/lib/components/productCard/cartSkuCard/components/Note/index.js +56 -0
  181. package/lib/components/productCard/cartSkuCard/components/Note/index.less +27 -0
  182. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
  183. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +82 -0
  184. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +117 -0
  185. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  186. package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +70 -0
  187. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  188. package/lib/components/productCard/cartSkuCard/components/holders/index.js +52 -0
  189. package/lib/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  190. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  191. package/lib/components/productCard/cartSkuCard/components/packages/index.js +73 -0
  192. package/lib/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  193. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  194. package/lib/components/productCard/cartSkuCard/components/packages/utils.js +44 -0
  195. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  196. package/lib/components/productCard/cartSkuCard/components/resources/index.js +71 -0
  197. package/lib/components/productCard/cartSkuCard/components/resources/index.less +19 -0
  198. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  199. package/lib/components/productCard/cartSkuCard/components/sales/index.js +77 -0
  200. package/lib/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  201. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  202. package/lib/components/productCard/cartSkuCard/components/specs/index.js +66 -0
  203. package/lib/components/productCard/cartSkuCard/components/specs/index.less +34 -0
  204. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +45 -0
  205. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +339 -0
  206. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +35 -0
  207. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  208. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +68 -0
  209. package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +38 -0
  210. package/lib/components/productCard/cartSkuCard/index.d.ts +10 -0
  211. package/lib/components/productCard/cartSkuCard/index.js +239 -0
  212. package/lib/components/productCard/cartSkuCard/index.less +33 -0
  213. package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
  214. package/lib/components/productCard/cartSkuCard/locales.js +61 -0
  215. package/lib/components/productCard/components/Action/index.js +9 -0
  216. package/lib/components/productCard/components/Action/index.less +3 -0
  217. package/lib/components/productCard/components/Header/index.js +21 -11
  218. package/lib/components/productCard/components/Header/index.less +16 -1
  219. package/lib/components/productCard/components/Sales/index.js +2 -2
  220. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.js +1 -1
  221. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.less +3 -0
  222. package/lib/components/productCard/index.d.ts +3 -1
  223. package/lib/components/productCard/index.js +6 -2
  224. package/lib/components/productCard/index.less +6 -0
  225. package/lib/components/productCard/locales.js +12 -3
  226. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  227. package/lib/components/table/Table/AddFieldModal/index.d.ts +1 -0
  228. package/lib/components/table/Table/AddFieldModal/index.js +9 -9
  229. package/lib/components/table/Table/AddFieldModal/index.less +11 -11
  230. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  231. package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
  232. package/lib/components/table/Table/fields/index.d.ts +3 -2
  233. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
  234. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  235. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  236. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  237. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  238. package/lib/components/table/Table/fields/utils/index.js +1 -2
  239. package/lib/components/table/Table/utils.d.ts +1 -1
  240. package/lib/components/virtual-keyboard/Number/index.js +3 -0
  241. package/lib/components/virtual-keyboard/Number/types.d.ts +1 -0
  242. package/lib/components/virtual-keyboard/index.d.ts +11 -0
  243. package/lib/components/virtual-keyboard/index.js +60 -2
  244. package/lib/components/virtual-keyboard/index.less +33 -1
  245. package/lib/components/walletCard/Guide/index.js +11 -1
  246. package/lib/hooks/useResponsive.js +3 -6
  247. package/lib/index.d.ts +1 -0
  248. package/lib/locales/en-US.d.ts +6 -0
  249. package/lib/locales/en-US.js +9 -2
  250. package/lib/locales/zh-CN.d.ts +6 -0
  251. package/lib/locales/zh-CN.js +9 -2
  252. package/lib/locales/zh-TW.d.ts +6 -0
  253. package/lib/locales/zh-TW.js +9 -2
  254. package/lib/utils/index.d.ts +1 -1
  255. package/lowcode/_setters/antd-icon-setter/index.tsx +3 -2
  256. package/lowcode/pisell-card-list/meta.ts +50 -1
  257. package/lowcode/pisell-wallet-pass-card/actionsMeta.ts +7 -0
  258. package/lowcode/virtual-keyboard/meta.ts +131 -0
  259. package/package.json +7 -4
  260. package/dist/umd/materials.min.css +0 -1
  261. package/dist/umd/materials.min.js +0 -1
  262. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  263. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  264. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  265. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  266. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  267. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
package/lib/index.d.ts CHANGED
@@ -96,6 +96,7 @@ export { default as PisellTooltip } from './components/pisellTooltip';
96
96
  export { default as PisellUpload } from './components/pisellUpload';
97
97
  export { default as PisellViewGrid } from './components/pisellViewGrid';
98
98
  export { default as PisellWalletPassCard } from './components/pisellWalletPassCard';
99
+ export type { PisellWalletPassCardProps } from './components/pisellWalletPassCard';
99
100
  export { default as ProfileMenu } from './components/profileMenu';
100
101
  export { default as QRCode } from './components/qrcode';
101
102
  export { default as Radio } from './components/radio';
@@ -274,5 +274,11 @@ declare const _default: {
274
274
  'pisell2.text.goodpass.last-settlement': string;
275
275
  'pisell2.text.goodpass.view-more': string;
276
276
  'pisell2.text.goodpass.save': string;
277
+ 'pisell-wallet-pass-card-status-used': string;
278
+ 'pisell-wallet-pass-card-status-expired': string;
279
+ 'pisell-wallet-pass-card-status-disabled': string;
280
+ 'pisell-wallet-pass-card-status-conflict': string;
281
+ 'pisell-wallet-pass-card-reset': string;
282
+ 'pisell-wallet-pass-card-done': string;
277
283
  };
278
284
  export default _default;
@@ -153,7 +153,7 @@ var en_US_default = {
153
153
  "pisell-wallet-pass-card-name": "Name",
154
154
  "pisell-wallet-pass-card-store-name": "StoreName",
155
155
  "pisell-wallet-pass-card-balance": "Balance",
156
- "pisell-wallet-pass-card-redeem": "Redeem",
156
+ "pisell-wallet-pass-card-redeem": "use",
157
157
  "pisell-wallet-pass-card-code": "Code",
158
158
  "pisell-wallet-pass-card-valid-to": "Valid to",
159
159
  "pisell-wallet-pass-card-confirm": "Confirm",
@@ -326,5 +326,12 @@ var en_US_default = {
326
326
  "pisell2.text.goodpass.product-vouchers": "Promotions & Vouchers",
327
327
  "pisell2.text.goodpass.last-settlement": "(Last payment)",
328
328
  "pisell2.text.goodpass.view-more": "View More",
329
- "pisell2.text.goodpass.save": "Save"
329
+ "pisell2.text.goodpass.save": "Save",
330
+ // 钱包卡片组件
331
+ "pisell-wallet-pass-card-status-used": "Used",
332
+ "pisell-wallet-pass-card-status-expired": "Expired",
333
+ "pisell-wallet-pass-card-status-disabled": "Disabled",
334
+ "pisell-wallet-pass-card-status-conflict": "Conflict",
335
+ "pisell-wallet-pass-card-reset": "Reset",
336
+ "pisell-wallet-pass-card-done": "Done"
330
337
  };
@@ -269,5 +269,11 @@ declare const _default: {
269
269
  'pisell2.text.goodpass.last-settlement': string;
270
270
  'pisell2.text.goodpass.view-more': string;
271
271
  'pisell2.text.goodpass.save': string;
272
+ 'pisell-wallet-pass-card-status-used': string;
273
+ 'pisell-wallet-pass-card-status-expired': string;
274
+ 'pisell-wallet-pass-card-status-disabled': string;
275
+ 'pisell-wallet-pass-card-status-conflict': string;
276
+ 'pisell-wallet-pass-card-reset': string;
277
+ 'pisell-wallet-pass-card-done': string;
272
278
  };
273
279
  export default _default;
@@ -153,7 +153,7 @@ var zh_CN_default = {
153
153
  "pisell-wallet-pass-card-name": "商品名称",
154
154
  "pisell-wallet-pass-card-store-name": "共享店铺名称",
155
155
  "pisell-wallet-pass-card-balance": "余额",
156
- "pisell-wallet-pass-card-redeem": "兑换",
156
+ "pisell-wallet-pass-card-redeem": "使用",
157
157
  "pisell-wallet-pass-card-code": "识别码编号",
158
158
  "pisell-wallet-pass-card-valid-to": "有效期至",
159
159
  "pisell-wallet-pass-card-confirm": "确认",
@@ -317,5 +317,12 @@ var zh_CN_default = {
317
317
  "pisell2.text.goodpass.product-vouchers": "优惠促销",
318
318
  "pisell2.text.goodpass.last-settlement": "(上次结算)",
319
319
  "pisell2.text.goodpass.view-more": "查看更多",
320
- "pisell2.text.goodpass.save": "节省"
320
+ "pisell2.text.goodpass.save": "节省",
321
+ // 钱包卡片组件
322
+ "pisell-wallet-pass-card-status-used": "已使用",
323
+ "pisell-wallet-pass-card-status-expired": "已过期",
324
+ "pisell-wallet-pass-card-status-disabled": "已禁用",
325
+ "pisell-wallet-pass-card-status-conflict": "冲突",
326
+ "pisell-wallet-pass-card-reset": "清空",
327
+ "pisell-wallet-pass-card-done": "保存"
321
328
  };
@@ -269,5 +269,11 @@ declare const _default: {
269
269
  'pisell2.text.goodpass.last-settlement': string;
270
270
  'pisell2.text.goodpass.view-more': string;
271
271
  'pisell2.text.goodpass.save': string;
272
+ 'pisell-wallet-pass-card-status-used': string;
273
+ 'pisell-wallet-pass-card-status-expired': string;
274
+ 'pisell-wallet-pass-card-status-disabled': string;
275
+ 'pisell-wallet-pass-card-status-conflict': string;
276
+ 'pisell-wallet-pass-card-reset': string;
277
+ 'pisell-wallet-pass-card-done': string;
272
278
  };
273
279
  export default _default;
@@ -153,7 +153,7 @@ var zh_TW_default = {
153
153
  "pisell-wallet-pass-card-name": "商品名稱",
154
154
  "pisell-wallet-pass-card-store-name": "共享店鋪名稱",
155
155
  "pisell-wallet-pass-card-balance": "餘額",
156
- "pisell-wallet-pass-card-redeem": "兌換",
156
+ "pisell-wallet-pass-card-redeem": "使用",
157
157
  "pisell-wallet-pass-card-code": "識別碼編號",
158
158
  "pisell-wallet-pass-card-valid-to": "有效期至",
159
159
  "pisell-wallet-pass-card-confirm": "確認",
@@ -318,5 +318,12 @@ var zh_TW_default = {
318
318
  "pisell2.text.goodpass.product-vouchers": "優惠促銷",
319
319
  "pisell2.text.goodpass.last-settlement": "(上次結算)",
320
320
  "pisell2.text.goodpass.view-more": "查看更多",
321
- "pisell2.text.goodpass.save": "節省"
321
+ "pisell2.text.goodpass.save": "節省",
322
+ // 钱包卡片组件
323
+ "pisell-wallet-pass-card-status-used": "已使用",
324
+ "pisell-wallet-pass-card-status-expired": "已過期",
325
+ "pisell-wallet-pass-card-status-disabled": "已禁用",
326
+ "pisell-wallet-pass-card-status-conflict": "衝突",
327
+ "pisell-wallet-pass-card-reset": "清空",
328
+ "pisell-wallet-pass-card-done": "保存"
322
329
  };
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string | number;
2
+ export declare const getCssNumber: (val: string | number) => string;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';
@@ -226,11 +226,12 @@ const AntdIconSetter = (props: AntdIconSetterProps) => {
226
226
  <Balloon
227
227
  className="lc-antd-icon-setter-balloon"
228
228
  trigger={triggerNode}
229
- needAdjust
229
+ autoAdjust
230
230
  triggerType="click"
231
231
  closable={false}
232
232
  alignEdge
233
- align="lt"
233
+ align="l"
234
+ v2
234
235
  style={{ width: 300 }}
235
236
  >
236
237
  <div className="lc-antd-icon-setter-header">
@@ -167,6 +167,50 @@ export default {
167
167
  setter: 'BoolSetter',
168
168
  defaultValue: true,
169
169
  },
170
+ {
171
+ type: 'group',
172
+ title: '商品名称样式',
173
+ display: 'entry',
174
+ condition: (target: IPublicModelSettingField) => {
175
+ return target.parent.getPropValue('showName') === true;
176
+ },
177
+ items: [
178
+ {
179
+ name: 'nameTitleStyle.fontSize',
180
+ title: {
181
+ type: 'i18n',
182
+ 'en-US': 'Font Size',
183
+ 'zh-CN': '字号',
184
+ },
185
+ setter: 'NumberSetter'
186
+ },
187
+ {
188
+ name: 'nameTitleStyle.fontWeight',
189
+ title: {
190
+ type: 'i18n',
191
+ 'en-US': 'Font Weight',
192
+ 'zh-CN': '字重',
193
+ },
194
+ setter: 'NumberSetter'
195
+ },
196
+ {
197
+ name: 'nameTitleStyle.color',
198
+ title: {
199
+ type: 'i18n',
200
+ 'en-US': 'Color',
201
+ 'zh-CN': '颜色',
202
+ },
203
+ setter: 'ColorSetter'
204
+ },
205
+ ]
206
+ },
207
+ {
208
+ name: 'showStatus',
209
+ title: { label: '显示状态标识', tip: '显示状态标识' },
210
+ propType: 'bool',
211
+ setter: 'BoolSetter',
212
+ defaultValue: true,
213
+ },
170
214
  {
171
215
  name: 'showStoreName',
172
216
  title: { label: '显示共享店铺名称', tip: '显示共享店铺名称' },
@@ -258,9 +302,14 @@ export default {
258
302
  },
259
303
  {
260
304
  name: 'onConfirmEdit',
261
- templete:
305
+ template:
262
306
  "onConfirmEdit(value, index){\n// 编辑弹窗点击确认\nconsole.log('onConfirmEdit');}",
263
307
  },
308
+ {
309
+ name: 'onConfirmEditAmount',
310
+ template:
311
+ "onConfirmEditAmount(value, index){\n// 编辑金额点击确认\nconsole.log('onConfirmEditAmount');}",
312
+ },
264
313
  ],
265
314
  },
266
315
  },
@@ -213,5 +213,12 @@ export const actionsMeta = {
213
213
  },
214
214
  ],
215
215
  },
216
+ {
217
+ name: 'enableEditAmount',
218
+ title: { label: '开启编辑金额' },
219
+ propType: 'bool',
220
+ setter: 'BoolSetter',
221
+ defaultValue: false,
222
+ }
216
223
  ],
217
224
  }
@@ -21,6 +21,137 @@ const VirtualKeyboardMeta: ComponentMetadata = {
21
21
  name: "others",
22
22
  setter: ["JsonSetter", "VariableSetter"],
23
23
  },
24
+ {
25
+ name: 'selectType',
26
+ title: { label: '选择类型', tip: 'selectType | 选择类型' },
27
+ setter: {
28
+ componentName: 'RadioGroupSetter',
29
+ props: {
30
+ options: [
31
+ { title: 'Light', value: 'light' },
32
+ { title: 'Dark', value: 'dark' },
33
+ ],
34
+ },
35
+ },
36
+ defaultValue: 'light',
37
+ extraProps: {
38
+ onChange: (value: string, target: any) => {
39
+ // 根据主题切换自动设置颜色
40
+ const isLight = value === 'light';
41
+
42
+ target.getProps().setPropValue('backgroundColor', isLight ? '#ffffff' : 'rgba(0, 0, 0, 0.70)');
43
+ target.getProps().setPropValue('containerBackgroundColor', isLight ? '#d0d5dd' : 'rgba(0, 0, 0, 0.40)');
44
+ target.getProps().setPropValue('buttonBackgroundColor', '#ffffff');
45
+ target.getProps().setPropValue('textColor', "#000000");
46
+ target.getProps().setPropValue('keyboardBackgroundColor', isLight ? '#f9f9f9' : 'rgba(0, 0, 0, 0.40)');
47
+ target.getProps().setPropValue('keyboardButtonBackgroundColor', '#ffffff');
48
+ target.getProps().setPropValue('keyboardButtonTextColor', '#000000');
49
+ target.getProps().setPropValue('keyboardButtonHoverColor', '#f5f5f5');
50
+ target.getProps().setPropValue('primaryButtonBackgroundColor', '#4ca30d');
51
+ target.getProps().setPropValue('primaryButtonTextColor', '#ffffff');
52
+ }
53
+ }
54
+ },
55
+ {
56
+ name: "backgroundColor",
57
+ title: {
58
+ label: "背景色",
59
+ tip: "backgroundColor | 背景色",
60
+ },
61
+ propType: "string",
62
+ setter: "ColorSetter",
63
+ defaultValue: "#ffffff",
64
+ },
65
+ {
66
+ name: "containerBackgroundColor",
67
+ title: {
68
+ label: "容器背景色",
69
+ tip: "containerBackgroundColor | 容器背景色",
70
+ },
71
+ propType: "string",
72
+ setter: "ColorSetter",
73
+ defaultValue: "#d0d5dd",
74
+ },
75
+ {
76
+ name: "buttonBackgroundColor",
77
+ title: {
78
+ label: "按钮背景色",
79
+ tip: "buttonBackgroundColor | 按钮背景色",
80
+ },
81
+ propType: "string",
82
+ setter: "ColorSetter",
83
+ defaultValue: "#ffffff",
84
+ },
85
+ {
86
+ name: "textColor",
87
+ title: {
88
+ label: "文本颜色",
89
+ tip: "textColor | 文本颜色",
90
+ },
91
+ propType: "string",
92
+ setter: "ColorSetter",
93
+ defaultValue: "#000000",
94
+ },
95
+ {
96
+ name: "keyboardBackgroundColor",
97
+ title: {
98
+ label: "键盘背景色",
99
+ tip: "keyboardBackgroundColor | 键盘背景色",
100
+ },
101
+ propType: "string",
102
+ setter: "ColorSetter",
103
+ defaultValue: "#f9f9f9",
104
+ },
105
+ {
106
+ name: "keyboardButtonBackgroundColor",
107
+ title: {
108
+ label: "键盘按钮背景色",
109
+ tip: "keyboardButtonBackgroundColor | 键盘按钮背景色",
110
+ },
111
+ propType: "string",
112
+ setter: "ColorSetter",
113
+ defaultValue: "#ffffff",
114
+ },
115
+ {
116
+ name: "keyboardButtonTextColor",
117
+ title: {
118
+ label: "键盘按钮文本颜色",
119
+ tip: "keyboardButtonTextColor | 键盘按钮文本颜色",
120
+ },
121
+ propType: "string",
122
+ setter: "ColorSetter",
123
+ defaultValue: "#000000",
124
+ },
125
+ {
126
+ name: "keyboardButtonHoverColor",
127
+ title: {
128
+ label: "键盘按钮悬停颜色",
129
+ tip: "keyboardButtonHoverColor | 键盘按钮悬停颜色",
130
+ },
131
+ propType: "string",
132
+ setter: "ColorSetter",
133
+ defaultValue: "#f5f5f5",
134
+ },
135
+ {
136
+ name: "primaryButtonBackgroundColor",
137
+ title: {
138
+ label: "主要按钮背景色",
139
+ tip: "primaryButtonBackgroundColor | 主要按钮背景色",
140
+ },
141
+ propType: "string",
142
+ setter: "ColorSetter",
143
+ defaultValue: "#4ca30d",
144
+ },
145
+ {
146
+ name: "primaryButtonTextColor",
147
+ title: {
148
+ label: "主要按钮文本颜色",
149
+ tip: "primaryButtonTextColor | 主要按钮文本颜色",
150
+ },
151
+ propType: "string",
152
+ setter: "ColorSetter",
153
+ defaultValue: "#ffffff",
154
+ },
24
155
  ],
25
156
  configure: {
26
157
  supports: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.3.4",
3
+ "version": "6.4.2",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -55,6 +55,8 @@
55
55
  "@dnd-kit/modifiers": "^6.0.1",
56
56
  "@dnd-kit/sortable": "^7.0.2",
57
57
  "@dnd-kit/utilities": "^3.2.1",
58
+ "@react-spring/web": "^9.6.1",
59
+ "@use-gesture/react": "^10.3.1",
58
60
  "@zxing/library": "0.21.2",
59
61
  "ahooks": "^3.7.6",
60
62
  "antd": "^5.6.3",
@@ -63,17 +65,18 @@
63
65
  "crypto-js": "^4.2.0",
64
66
  "dayjs": "^1.11.8",
65
67
  "libphonenumber-js": "^1.11.17",
68
+ "react-barcode": "^1.5.3",
66
69
  "react-infinite-scroll-component": "^6.1.0",
67
70
  "react-resizable": "^3.0.5",
68
71
  "react-virtualized-auto-sizer": "^1.0.20",
69
72
  "react-window": "^1.8.10",
70
73
  "styled-components": "^6.0.0-rc.3",
71
74
  "swiper": "^8.4.7",
72
- "react-barcode": "^1.5.3",
73
75
  "vod-js-sdk-v6": "^1.4.11",
76
+ "antd-mobile": "^5.38.1",
77
+ "@pisell/date-picker": "3.0.6",
74
78
  "@pisell/icon": "0.0.11",
75
- "@pisell/date-picker": "3.0.4",
76
- "@pisell/utils": "3.0.1"
79
+ "@pisell/utils": "3.0.2"
77
80
  },
78
81
  "peerDependencies": {
79
82
  "react": "^18.0.0",
@@ -1 +0,0 @@
1
- .materials-grid{display:flex;flex-direction:column;height:100%;width:100%}.materials-grid-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.materials-grid-header .right-wrap{align-items:center;display:flex;gap:8px}.materials-grid-actions{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.materials-grid-actions .left-wrap{align-items:center;display:flex;flex:1 1}.materials-grid-actions .left-wrap .pisell-lowcode-form-item{margin-bottom:0}.materials-grid-actions .right-wrap{align-items:center;display:flex;gap:8px}.materials-grid-actions .right-wrap .icon{cursor:pointer;transition:.2s}.materials-grid-actions .right-wrap .icon:hover{color:var(--theme-color)}.materials-grid-actions .right-wrap .button{align-items:center;display:flex;font-size:12px;height:28px;justify-content:center}.filter-dropdown-wrap{display:flex;flex-direction:column;max-height:400px;max-width:calc(100vw - 24px);min-width:250px;padding:4px;width:400px}.filter-dropdown-wrap .filter-dropdown-wrap-content{flex:1 1;overflow:auto}.filter-dropdown-wrap .filter-dropdown-drag-item{align-items:center;background:#f9fafb;background:var(--gray-50,#f9fafb);border-radius:8px;display:flex;margin-bottom:12px;padding:8px 12px 12px}.filter-dropdown-wrap .filter-dropdown-drag-item .dots-six-icon{color:#98a2b3;cursor:pointer;font-size:24px}.filter-dropdown-wrap .filter-dropdown-drag-item .pisell-lowcode-form-item{margin-bottom:0}.filter-dropdown-wrap .filter-dropdown-drag-item .filter-dropdown-drag-item-right{flex:1 1;margin-left:16px}.filter-dropdown-wrap .filter-dropdown-drag-item .filter-dropdown-drag-item-right .filter-dropdown-drag-item-title{color:#777;color:var(--text-text-2,#777);font-size:14px;font-style:normal;font-weight:600;line-height:20px}.filter-dropdown-container-wrap{border-bottom:1px solid #e2e2e2;border-bottom:1px solid var(--surface-surface-4,#e2e2e2);margin-bottom:20px;min-height:70px}.filter-dropdown-container-wrap:last-child{border:none}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap{align-items:center;color:#919191;color:var(--text-text-3,#919191);display:flex;font-size:16px;font-style:normal;font-weight:600;line-height:22px;margin-bottom:12px}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap .filter-dropdown-container-title{color:#101828;color:var(--gray-900,#101828);font-size:16px;font-style:normal;font-weight:600;line-height:24px;margin-right:6px}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap .filter-dropdown-container-icon-help{color:#98a2b3;color:var(--gray-400,#98a2b3);font-size:20px}.filter-dropdown-container-wrap .filter-dropdown-container-filter-wrap{min-height:80px}.materials-sort-list-empty{color:#5a5a5a;display:block;padding-top:22px;text-align:center}.materials-grid-summary{margin-bottom:16px}.grid-view-table-wrap{position:relative}.materials-grid-paginator{align-items:center;background-color:#fff;border:1px solid #f0f0f0;border-radius:0 0 8px 8px;border-top:none;display:flex;height:50px;justify-content:center;margin:0!important;padding:0 20px;width:100%}.materials-grid-paginator .pisell-lowcode-pagination-total-text{color:#667085;color:var(--gray-500,#667085);font-size:14px;font-style:normal;font-weight:500;margin-right:auto}.materials-grid-paginator .pisell-lowcode-pagination-item{border:1px solid #d0d5dd;border-radius:0;border-right:0;margin:0;position:relative}.materials-grid-paginator .pisell-lowcode-pagination-jump-next,.materials-grid-paginator .pisell-lowcode-pagination-jump-prev{border:1px solid #d0d5dd;border-radius:0;border-right:none;margin:0}.materials-grid-paginator .pisell-lowcode-pagination-item-link:hover{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-item-link:hover .pisell-lowcode-pagination-item-link-icon{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-item-active:hover{border-color:#d0d5dd!important}.materials-grid-paginator .pisell-lowcode-pagination-item-active{background-color:rgba(0,0,0,.06)}.materials-grid-paginator .pisell-lowcode-pagination-item-active a{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-prev{align-items:center;border:1px solid #d0d5dd;border-radius:8px 0 0 8px;border-right:none;display:flex;justify-content:center;margin:0;min-width:auto}.materials-grid-paginator .pisell-lowcode-pagination-next{align-items:center;border:1px solid #d0d5dd;border-radius:0 8px 8px 0;display:flex;justify-content:center;margin:0;min-width:auto}.paginator-page-btn{align-items:center;border-radius:4px 4px 4px 4px;color:#344054;color:var(--gray-700,#344054);cursor:pointer;display:flex;font-size:12px;font-weight:400;justify-content:center;padding:10px 16px;transition:.2s;-ms-user-select:none;user-select:none}.paginator-page-btn .paginator-page-btn-text{font-weight:600}.paginator-page-btn .paginator-page-btn-left-icon,.paginator-page-btn .paginator-page-btn-right-icon{font-size:20px}.paginator-page-btn .paginator-page-btn-left-icon{margin-right:8px}.paginator-page-btn .paginator-page-btn-right-icon{margin-left:8px}.paginator-page-btn.left{margin-right:auto}.paginator-page-btn.left .icon{font-size:18px;margin-right:8px}.paginator-page-btn.right{margin-left:auto}.paginator-page-btn.right .icon{font-size:18px;margin-left:8px;transform:rotate(180deg)}.materials-grid-paginator-mini{align-items:center;background-color:#fff;border:1px solid #f0f0f0;border-radius:0 0 8px 8px;border-top:none;display:flex;height:50px;justify-content:space-between;margin:0!important;overflow:hidden;padding:0 20px;width:100%}.materials-grid-paginator-mini .paginator-page-btn{padding:8px}.materials-grid-paginator-mini .materials-grid-paginator-center{align-items:center;display:flex;gap:4px;justify-content:center}.materials-grid-paginator-mini .materials-grid-paginator-center .materials-grid-paginator-center-text{color:#344054;color:var(--gray-700,#344054);font-size:14px;font-style:normal;font-weight:400}.materials-grid-paginator-mini .materials-grid-paginator-center .materials-grid-paginator-center-value{color:#344054;color:var(--gray-700,#344054);font-size:14px;font-style:normal;font-weight:500}.materials-grid-paginator-mini .pisell-lowcode-pagination-next,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev{border:1px solid #d0d5dd;border-radius:8px;margin:0}.materials-grid-paginator-mini .pisell-lowcode-pagination-next .paginator-page-btn-left-icon,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev .paginator-page-btn-left-icon{margin-right:0}.materials-grid-paginator-mini .pisell-lowcode-pagination-next .paginator-page-btn-right-icon,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev .paginator-page-btn-right-icon{margin-left:0}.react-resizable{position:relative}.react-resizable-handle{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZaIiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+);background-origin:content-box;background-position:100% 100%;background-repeat:no-repeat;box-sizing:border-box;height:20px;padding:0 3px 3px 0;position:absolute;width:20px}.react-resizable-handle-sw{bottom:0;cursor:sw-resize;left:0;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;cursor:se-resize;right:0}.react-resizable-handle-nw{cursor:nw-resize;left:0;top:0;transform:rotate(180deg)}.react-resizable-handle-ne{cursor:ne-resize;right:0;top:0;transform:rotate(270deg)}.react-resizable-handle-e,.react-resizable-handle-w{cursor:ew-resize;margin-top:-10px;top:50%}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{cursor:ns-resize;left:50%;margin-left:-10px}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.materials-grid-table-header-cell{align-items:center;display:flex;height:44px;padding:0 14px}.materials-grid-table-header-cell .field-icon{color:#777;font-size:18px}.materials-grid-table-header-cell .materials-grid-table-header-cell-content{color:#1b1b1b;flex:auto;font-size:14px;font-weight:600;overflow:hidden;padding-right:10px;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.materials-grid-table-header-cell .actions{align-items:center;display:flex;gap:8px}.materials-grid-table-header-cell .actions .action{color:#ababab;cursor:pointer;font-size:14px}.editable-cell-value-wrap{height:100%;width:100%}.materials-grid-table-cell{height:1px;padding:0!important}.cell-provider{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:100%;justify-content:center;padding:12px;position:relative;width:100%}.cell-provider.focus{box-shadow:var(--theme-color) 0 0 0 1px!important}