@pisell/materials 1.0.472 → 1.0.474

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +7 -7
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +18 -18
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +17 -17
  11. package/es/components/cardMetricItem/index.less +1 -0
  12. package/es/components/dataSourceComponents/dataSourceForm/index.less +1 -1
  13. package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +1 -0
  14. package/es/components/dataSourceComponents/dataSourceForm/serve.js +4 -3
  15. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +2 -2
  16. package/es/components/dataSourceComponents/dataSourceForm/utils.js +41 -17
  17. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +3 -0
  18. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.js +4 -0
  19. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +3 -0
  20. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.js +4 -0
  21. package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +10 -0
  22. package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.js +15 -0
  23. package/es/components/dataSourceComponents/dataSourceShow/utils.d.ts +6 -0
  24. package/es/components/dataSourceComponents/dataSourceShow/utils.js +82 -0
  25. package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +33 -139
  26. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +25 -0
  27. package/es/components/dataSourceComponents/dataSourceTable/filter/index.js +162 -0
  28. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +8 -0
  29. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.js +135 -0
  30. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  31. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.js +1 -1
  32. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.js +35 -39
  33. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +20 -4
  34. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +65 -11
  35. package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +17 -1
  36. package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +105 -6
  37. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +77 -0
  38. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +245 -0
  39. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +20 -7
  40. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +41 -12
  41. package/es/components/dataSourceComponents/dataSourceTable/index.d.ts +1 -0
  42. package/es/components/dataSourceComponents/dataSourceTable/index.js +1 -0
  43. package/es/components/dataSourceComponents/dataSourceTable/index.less +5 -0
  44. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +57 -9
  45. package/es/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.d.ts +7 -0
  46. package/es/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.js +23 -0
  47. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +2 -4
  48. package/es/components/dataSourceComponents/dataSourceWrapper/index.js +17 -2
  49. package/es/components/dataSourceComponents/fields/Checkbox/ReadPretty.js +7 -1
  50. package/es/components/dataSourceComponents/fields/Checkbox/index.js +3 -1
  51. package/es/components/dataSourceComponents/fields/DatePicker/index.js +5 -1
  52. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +4 -0
  53. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.js +7 -0
  54. package/es/components/dataSourceComponents/fields/DateRangePicker/WithMode.d.ts +4 -0
  55. package/es/components/dataSourceComponents/fields/DateRangePicker/WithMode.js +5 -0
  56. package/es/components/dataSourceComponents/fields/DateRangePicker/index.d.ts +4 -0
  57. package/es/components/dataSourceComponents/fields/DateRangePicker/index.js +5 -0
  58. package/es/components/dataSourceComponents/fields/DateRangePicker/index.less +14 -0
  59. package/es/components/dataSourceComponents/fields/DateRangePicker/type.d.ts +4 -0
  60. package/es/components/dataSourceComponents/fields/DateRangePicker/type.js +1 -0
  61. package/es/components/dataSourceComponents/fields/Input/index.d.ts +6 -1
  62. package/es/components/dataSourceComponents/fields/Input/index.js +4 -0
  63. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +4 -0
  64. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.js +5 -0
  65. package/es/components/dataSourceComponents/fields/Input.Email/WithMode.d.ts +4 -0
  66. package/es/components/dataSourceComponents/fields/Input.Email/WithMode.js +17 -0
  67. package/es/components/dataSourceComponents/fields/Input.Email/index.d.ts +3 -0
  68. package/es/components/dataSourceComponents/fields/Input.Email/index.js +4 -0
  69. package/es/components/dataSourceComponents/fields/Input.Email/type.d.ts +5 -0
  70. package/es/components/dataSourceComponents/fields/Input.Email/type.js +1 -0
  71. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.js +2 -2
  72. package/es/components/dataSourceComponents/fields/Input.Json/WithMode.d.ts +2 -2
  73. package/es/components/dataSourceComponents/fields/Input.Json/WithMode.js +41 -1
  74. package/es/components/dataSourceComponents/fields/Input.Json/index.d.ts +1 -1
  75. package/es/components/dataSourceComponents/fields/Input.Phone/ReadPretty.d.ts +4 -0
  76. package/es/components/dataSourceComponents/fields/Input.Phone/ReadPretty.js +5 -0
  77. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +4 -0
  78. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.js +12 -0
  79. package/es/components/dataSourceComponents/fields/Input.Phone/index.d.ts +3 -0
  80. package/es/components/dataSourceComponents/fields/Input.Phone/index.js +4 -0
  81. package/es/components/dataSourceComponents/fields/Input.Phone/type.d.ts +5 -0
  82. package/es/components/dataSourceComponents/fields/Input.Phone/type.js +1 -0
  83. package/es/components/dataSourceComponents/fields/InputNumber/index.js +5 -1
  84. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  85. package/es/components/dataSourceComponents/fields/index.d.ts +46 -5
  86. package/es/components/dataSourceComponents/fields/index.js +7 -2
  87. package/es/components/dataSourceComponents/fields/type.d.ts +18 -0
  88. package/es/components/dataSourceComponents/fields/type.js +1 -0
  89. package/es/components/dataSourceComponents/fields/utils.d.ts +3 -0
  90. package/es/components/dataSourceComponents/fields/utils.js +111 -0
  91. package/es/components/dataSourceComponents/hooks/useActions.js +22 -7
  92. package/es/components/dataSourceComponents/hooks/useComponentId.d.ts +2 -0
  93. package/es/components/dataSourceComponents/hooks/useComponentId.js +9 -0
  94. package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +19 -2
  95. package/es/components/dataSourceComponents/provider/dataSource/DataSourceProvider.d.ts +1 -1
  96. package/es/components/dataSourceComponents/provider/dataSource/DataSourceProvider.js +37 -27
  97. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +3 -2
  98. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.js +19 -13
  99. package/es/components/dataSourceComponents/provider/variables/utils.d.ts +2 -0
  100. package/es/components/dataSourceComponents/provider/variables/utils.js +9 -0
  101. package/es/components/filter/components/Dropdown/index.d.ts +1 -0
  102. package/es/components/filter/components/Dropdown/index.js +6 -2
  103. package/es/components/filter/components/FilterButton/index.js +5 -3
  104. package/es/components/filter/components/FilterButton/types.d.ts +2 -0
  105. package/es/components/pisellAnchor/index.less +77 -77
  106. package/es/components/pisellStatisticList/index.less +1 -1
  107. package/es/components/pisellWalletPassCard/index.js +3 -1
  108. package/es/components/pisellWalletPassCard/index.less +23 -9
  109. package/es/components/table/Actions/index.js +16 -7
  110. package/es/components/table/Gallery/index.d.ts +3 -3
  111. package/es/components/table/Gallery/index.js +25 -7
  112. package/es/components/table/Gallery/index.less +1 -0
  113. package/es/components/table/Header/index.d.ts +10 -3
  114. package/es/components/table/Header/index.js +37 -11
  115. package/es/components/table/Header/index.less +10 -2
  116. package/es/components/table/Table/utils.js +4 -0
  117. package/es/components/table/Tabs/index.d.ts +14 -0
  118. package/es/components/table/Tabs/index.js +37 -0
  119. package/es/components/table/hooks/useTriggerValuesChange.js +3 -0
  120. package/es/components/table/index.js +16 -3
  121. package/es/components/table/types.d.ts +14 -2
  122. package/es/components/typography/index.d.ts +2 -2
  123. package/es/components/typography/index.js +4 -3
  124. package/es/components/walletCard/index.d.ts +6 -4
  125. package/es/components/walletCard/index.js +34 -15
  126. package/es/index.d.ts +4 -0
  127. package/es/index.js +5 -1
  128. package/es/locales/en-US.d.ts +7 -0
  129. package/es/locales/en-US.js +16 -1
  130. package/es/locales/zh-CN.d.ts +7 -0
  131. package/es/locales/zh-CN.js +16 -1
  132. package/es/locales/zh-TW.d.ts +7 -0
  133. package/es/locales/zh-TW.js +16 -1
  134. package/lib/components/cardMetricItem/index.less +1 -0
  135. package/lib/components/dataSourceComponents/dataSourceForm/index.less +1 -1
  136. package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +1 -0
  137. package/lib/components/dataSourceComponents/dataSourceForm/serve.js +3 -2
  138. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +2 -2
  139. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +58 -11
  140. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +3 -0
  141. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.js +38 -0
  142. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +3 -0
  143. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.js +38 -0
  144. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +10 -0
  145. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.js +44 -0
  146. package/lib/components/dataSourceComponents/dataSourceShow/utils.d.ts +6 -0
  147. package/lib/components/dataSourceComponents/dataSourceShow/utils.js +95 -0
  148. package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +29 -90
  149. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +25 -0
  150. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.js +176 -0
  151. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +8 -0
  152. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.js +176 -0
  153. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  154. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.js +1 -1
  155. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.js +24 -37
  156. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +20 -4
  157. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +53 -7
  158. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +17 -1
  159. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +73 -3
  160. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +77 -0
  161. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +236 -0
  162. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +20 -7
  163. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +38 -11
  164. package/lib/components/dataSourceComponents/dataSourceTable/index.d.ts +1 -0
  165. package/lib/components/dataSourceComponents/dataSourceTable/index.js +1 -0
  166. package/lib/components/dataSourceComponents/dataSourceTable/index.less +5 -0
  167. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +57 -9
  168. package/lib/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.d.ts +7 -0
  169. package/lib/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.js +51 -0
  170. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +2 -4
  171. package/lib/components/dataSourceComponents/dataSourceWrapper/index.js +14 -2
  172. package/lib/components/dataSourceComponents/fields/Checkbox/ReadPretty.js +3 -1
  173. package/lib/components/dataSourceComponents/fields/Checkbox/index.js +3 -1
  174. package/lib/components/dataSourceComponents/fields/DatePicker/index.js +5 -1
  175. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +4 -0
  176. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.js +41 -0
  177. package/lib/components/dataSourceComponents/fields/DateRangePicker/WithMode.d.ts +4 -0
  178. package/lib/components/dataSourceComponents/fields/DateRangePicker/WithMode.js +42 -0
  179. package/lib/components/dataSourceComponents/fields/DateRangePicker/index.d.ts +4 -0
  180. package/lib/components/dataSourceComponents/fields/DateRangePicker/index.js +39 -0
  181. package/lib/components/dataSourceComponents/fields/DateRangePicker/index.less +14 -0
  182. package/lib/components/dataSourceComponents/fields/DateRangePicker/type.d.ts +4 -0
  183. package/lib/components/dataSourceComponents/fields/DateRangePicker/type.js +17 -0
  184. package/lib/components/dataSourceComponents/fields/Input/index.d.ts +6 -1
  185. package/lib/components/dataSourceComponents/fields/Input/index.js +4 -0
  186. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +4 -0
  187. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.js +39 -0
  188. package/lib/components/dataSourceComponents/fields/Input.Email/WithMode.d.ts +4 -0
  189. package/lib/components/dataSourceComponents/fields/Input.Email/WithMode.js +57 -0
  190. package/lib/components/dataSourceComponents/fields/Input.Email/index.d.ts +3 -0
  191. package/lib/components/dataSourceComponents/fields/Input.Email/index.js +38 -0
  192. package/lib/components/dataSourceComponents/fields/Input.Email/type.d.ts +5 -0
  193. package/lib/components/dataSourceComponents/fields/Input.Email/type.js +17 -0
  194. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.js +2 -2
  195. package/lib/components/dataSourceComponents/fields/Input.Json/WithMode.d.ts +2 -2
  196. package/lib/components/dataSourceComponents/fields/Input.Json/WithMode.js +30 -2
  197. package/lib/components/dataSourceComponents/fields/Input.Json/index.d.ts +1 -1
  198. package/lib/components/dataSourceComponents/fields/Input.Phone/ReadPretty.d.ts +4 -0
  199. package/lib/components/dataSourceComponents/fields/Input.Phone/ReadPretty.js +39 -0
  200. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +4 -0
  201. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.js +43 -0
  202. package/lib/components/dataSourceComponents/fields/Input.Phone/index.d.ts +3 -0
  203. package/lib/components/dataSourceComponents/fields/Input.Phone/index.js +38 -0
  204. package/lib/components/dataSourceComponents/fields/Input.Phone/type.d.ts +5 -0
  205. package/lib/components/dataSourceComponents/fields/Input.Phone/type.js +17 -0
  206. package/lib/components/dataSourceComponents/fields/InputNumber/index.js +5 -1
  207. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  208. package/lib/components/dataSourceComponents/fields/index.d.ts +46 -5
  209. package/lib/components/dataSourceComponents/fields/index.js +6 -1
  210. package/lib/components/dataSourceComponents/fields/type.d.ts +18 -0
  211. package/lib/components/dataSourceComponents/fields/type.js +17 -0
  212. package/lib/components/dataSourceComponents/fields/utils.d.ts +3 -0
  213. package/lib/components/dataSourceComponents/fields/utils.js +134 -0
  214. package/lib/components/dataSourceComponents/hooks/useActions.js +14 -5
  215. package/lib/components/dataSourceComponents/hooks/useComponentId.d.ts +2 -0
  216. package/lib/components/dataSourceComponents/hooks/useComponentId.js +32 -0
  217. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +19 -2
  218. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceProvider.d.ts +1 -1
  219. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceProvider.js +29 -16
  220. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +3 -2
  221. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.js +17 -8
  222. package/lib/components/dataSourceComponents/provider/variables/utils.d.ts +2 -0
  223. package/lib/components/dataSourceComponents/provider/variables/utils.js +15 -2
  224. package/lib/components/filter/components/Dropdown/index.d.ts +1 -0
  225. package/lib/components/filter/components/Dropdown/index.js +6 -2
  226. package/lib/components/filter/components/FilterButton/index.js +5 -3
  227. package/lib/components/filter/components/FilterButton/types.d.ts +2 -0
  228. package/lib/components/pisellAnchor/index.less +77 -77
  229. package/lib/components/pisellStatisticList/index.less +1 -1
  230. package/lib/components/pisellWalletPassCard/index.js +1 -1
  231. package/lib/components/pisellWalletPassCard/index.less +23 -9
  232. package/lib/components/table/Actions/index.js +18 -9
  233. package/lib/components/table/Gallery/index.d.ts +3 -3
  234. package/lib/components/table/Gallery/index.js +17 -0
  235. package/lib/components/table/Gallery/index.less +1 -0
  236. package/lib/components/table/Header/index.d.ts +10 -3
  237. package/lib/components/table/Header/index.js +29 -4
  238. package/lib/components/table/Header/index.less +10 -2
  239. package/lib/components/table/Table/utils.js +4 -0
  240. package/lib/components/table/Tabs/index.d.ts +14 -0
  241. package/lib/components/table/Tabs/index.js +70 -0
  242. package/lib/components/table/hooks/useTriggerValuesChange.js +3 -0
  243. package/lib/components/table/index.js +17 -2
  244. package/lib/components/table/types.d.ts +14 -2
  245. package/lib/components/typography/index.d.ts +2 -2
  246. package/lib/components/typography/index.js +4 -3
  247. package/lib/components/walletCard/index.d.ts +6 -4
  248. package/lib/components/walletCard/index.js +24 -13
  249. package/lib/index.d.ts +4 -0
  250. package/lib/index.js +12 -0
  251. package/lib/locales/en-US.d.ts +7 -0
  252. package/lib/locales/en-US.js +8 -1
  253. package/lib/locales/zh-CN.d.ts +7 -0
  254. package/lib/locales/zh-CN.js +8 -1
  255. package/lib/locales/zh-TW.d.ts +7 -0
  256. package/lib/locales/zh-TW.js +8 -1
  257. package/lowcode/_utils/defaultSchema.ts +452 -83
  258. package/lowcode/_utils/type.ts +5 -0
  259. package/lowcode/_utils/utils.ts +1 -0
  260. package/lowcode/button/meta.ts +1 -2
  261. package/lowcode/data-source-form/constants.ts +5 -0
  262. package/lowcode/data-source-form/meta.ts +259 -273
  263. package/lowcode/data-source-form/snippets.ts +9 -0
  264. package/lowcode/data-source-form/utils.ts +80 -15
  265. package/lowcode/data-source-image/meta.ts +74 -0
  266. package/lowcode/data-source-image/snippets.ts +14 -0
  267. package/lowcode/data-source-qrcode/meta.ts +158 -0
  268. package/lowcode/data-source-qrcode/snippets.ts +20 -0
  269. package/lowcode/data-source-table/meta.ts +4577 -2285
  270. package/lowcode/data-source-table/snippets.ts +10 -4
  271. package/lowcode/data-source-table/utils.tsx +254 -0
  272. package/lowcode/data-source-typography/meta.ts +54 -0
  273. package/lowcode/data-source-typography.text/meta.ts +212 -0
  274. package/lowcode/data-source-typography.text/snippets.ts +12 -0
  275. package/lowcode/data-source-wrapper/meta.ts +243 -0
  276. package/lowcode/data-source-wrapper/snippets.ts +11 -0
  277. package/lowcode/data-source-wrapper/utils.ts +45 -0
  278. package/lowcode/form-item-color-picker/snippets.ts +1 -0
  279. package/lowcode/form-item-input/meta.ts +2 -1
  280. package/lowcode/form-item-input/snippets.ts +2 -1
  281. package/lowcode/form-item-input.email/meta.ts +284 -0
  282. package/lowcode/form-item-input.email/snippets.ts +35 -0
  283. package/lowcode/form-item-input.phone/meta.ts +295 -0
  284. package/lowcode/form-item-input.phone/snippets.ts +16 -0
  285. package/lowcode/form-item-input.text-area/meta.ts +243 -32
  286. package/lowcode/form-item-input.text-area/snippets.ts +2 -1
  287. package/lowcode/form-item-input.url/meta.ts +44 -20
  288. package/lowcode/form-item-input.url/snippets.ts +5 -5
  289. package/lowcode/table/snippets.ts +6 -0
  290. package/lowcode/test/meta.ts +1 -2
  291. package/package.json +4 -4
@@ -9,17 +9,28 @@
9
9
  background-size: cover;
10
10
  height: 190px;
11
11
  background-position: center center;
12
- border-width: 1px ;
13
- border-style: solid;
14
- border-color: var(--Gray-300, #D0D5DD);
15
- &.pisell-card-active{
16
- border-color: var(--primary-600, #7f56d9);
12
+ border-width: 2px;
13
+ border-style: solid;
14
+ border-color: var(--Gray-300, #d0d5dd);
15
+ cursor: pointer;
16
+ &.pisell-card-active {
17
+ border-color: var(--theme-color, #7f56d9);
17
18
  }
18
19
  .pisell-card-name-wrap {
19
20
  display: flex;
20
21
  justify-content: space-between;
21
22
  font-weight: 500;
22
23
  line-height: 20px;
24
+
25
+ white-space: nowrap;
26
+ overflow: hidden;
27
+ text-overflow: ellipsis;
28
+ .pisell-card-name {
29
+ flex: 1;
30
+ white-space: nowrap;
31
+ overflow: hidden;
32
+ text-overflow: ellipsis;
33
+ }
23
34
  }
24
35
  .pisell-card-store-name {
25
36
  height: 20px;
@@ -27,6 +38,9 @@ border-color: var(--Gray-300, #D0D5DD);
27
38
  font-weight: 400;
28
39
  line-height: 18px; /* 150% */
29
40
  margin-bottom: 22px;
41
+ white-space: nowrap;
42
+ overflow: hidden;
43
+ text-overflow: ellipsis;
30
44
  }
31
45
  .pisell-card-amount-wrap {
32
46
  display: flex;
@@ -64,7 +78,7 @@ border-color: var(--Gray-300, #D0D5DD);
64
78
  right: -6px;
65
79
  .pisell-lowcode-qrcode-wrap {
66
80
  .pisell-lowcode-qrcode {
67
- background: rgba(255,255,255,0.8) !important;
81
+ background: rgba(255, 255, 255, 0.8) !important;
68
82
  }
69
83
  }
70
84
  }
@@ -77,7 +91,7 @@ border-color: var(--Gray-300, #D0D5DD);
77
91
  bottom: 0;
78
92
  width: 100%;
79
93
  left: 0;
80
- background: var(--Warning-200, #FEDF89);
94
+ background: var(--Warning-200, #fedf89);
81
95
  display: flex;
82
96
  padding: 10px 16px;
83
97
  color: var(--Gray-900, #101828);
@@ -85,7 +99,7 @@ border-color: var(--Gray-300, #D0D5DD);
85
99
  line-height: 20px;
86
100
  .pisell-card-icon {
87
101
  font-size: 20px;
88
- color: #DC6803;
102
+ color: #dc6803;
89
103
  margin-right: 6px;
90
104
  }
91
105
  }
@@ -107,4 +121,4 @@ border-color: var(--Gray-300, #D0D5DD);
107
121
  }
108
122
  .pisell-card-disabled-hide-disabled-reason {
109
123
  height: 165px !important;
110
- }
124
+ }
@@ -63,6 +63,9 @@ var Actions = ({
63
63
  preserve: true
64
64
  });
65
65
  const showActions = (0, import_react.useMemo)(() => {
66
+ if (import_react.default.isValidElement(filter)) {
67
+ return true;
68
+ }
66
69
  return (filter == null ? void 0 : filter.show) || (sort == null ? void 0 : sort.show) || (columnSetting == null ? void 0 : columnSetting.show) || (dataSourceGroup == null ? void 0 : dataSourceGroup.show) || view.multiple || (exportImport == null ? void 0 : exportImport.show);
67
70
  }, [
68
71
  filter == null ? void 0 : filter.show,
@@ -72,16 +75,22 @@ var Actions = ({
72
75
  view.multiple,
73
76
  exportImport == null ? void 0 : exportImport.show
74
77
  ]);
75
- return showActions ? /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-actions" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "left-wrap" }, /* @__PURE__ */ import_react.default.createElement(
76
- import_filter.default,
77
- {
78
- filter,
79
- isRenderFormContent: false,
80
- tableId,
81
- viewMode,
82
- isMobile: isMobileBool
78
+ const filterRender = (0, import_react.useMemo)(() => {
79
+ if (import_react.default.isValidElement(filter)) {
80
+ return filter;
83
81
  }
84
- )), /* @__PURE__ */ import_react.default.createElement(
82
+ return /* @__PURE__ */ import_react.default.createElement(
83
+ import_filter.default,
84
+ {
85
+ filter,
86
+ isRenderFormContent: false,
87
+ tableId,
88
+ viewMode,
89
+ isMobile: isMobileBool
90
+ }
91
+ );
92
+ }, [filter, tableId, viewMode, isMobileBool]);
93
+ return showActions ? /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-actions" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "left-wrap" }, filterRender), /* @__PURE__ */ import_react.default.createElement(
85
94
  "div",
86
95
  {
87
96
  className: "right-wrap",
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { GalleryProps } from "./types";
3
- import "./index.less";
1
+ import React from 'react';
2
+ import { GalleryProps } from './types';
3
+ import './index.less';
4
4
  declare const _default: React.MemoExoticComponent<(props: GalleryProps) => React.JSX.Element>;
5
5
  export default _default;
@@ -35,6 +35,7 @@ module.exports = __toCommonJS(Gallery_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
37
  var import_utils = require("@pisell/utils");
38
+ var import_Pagination = require("../../Pagination");
38
39
  var import_useTransDataSource = __toESM(require("../hooks/useTransDataSource"));
39
40
  var import_hooks = require("../../../hooks");
40
41
  var import_model = require("../model");
@@ -97,6 +98,9 @@ var Gallery = (props) => {
97
98
  },
98
99
  [gallery_setting, gallery, columnsMap, column_setting]
99
100
  );
101
+ const total = (0, import_react.useMemo)(() => {
102
+ return pagination == null ? void 0 : pagination.total;
103
+ }, [pagination]);
100
104
  const gap = (0, import_react.useMemo)(() => {
101
105
  return [horizontalGutter, verticalGutter];
102
106
  }, [horizontalGutter, verticalGutter]);
@@ -164,6 +168,19 @@ var Gallery = (props) => {
164
168
  gap,
165
169
  rowHeight
166
170
  }
171
+ ), !pagination.localPagination && /* @__PURE__ */ import_react.default.createElement(
172
+ import_antd.Form.Item,
173
+ {
174
+ name: "pagination",
175
+ style: {
176
+ margin: 0,
177
+ position: "absolute",
178
+ bottom: 0,
179
+ left: 0,
180
+ right: 0
181
+ }
182
+ },
183
+ /* @__PURE__ */ import_react.default.createElement(import_Pagination.FormPagination, { ...pagination, total })
167
184
  )));
168
185
  };
169
186
  var Gallery_default = (0, import_react.memo)(Gallery);
@@ -14,6 +14,7 @@
14
14
  flex: 1 1 auto;
15
15
  height: 100%;
16
16
  overflow: hidden;
17
+ position: relative;
17
18
  }
18
19
  &-gallery-item-wrap {
19
20
  cursor: pointer;
@@ -1,4 +1,11 @@
1
- import React from "react";
2
- import "./index.less";
3
- declare const Header: ({ buttons, title }: any) => React.JSX.Element | null;
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface HeaderProps {
4
+ buttons: React.ReactNode | any[];
5
+ title: React.ReactNode | (() => React.ReactNode);
6
+ subTitle: React.ReactNode | (() => React.ReactNode);
7
+ showTitle?: boolean;
8
+ showSubTitle?: boolean;
9
+ }
10
+ declare const Header: ({ buttons, title, subTitle, showTitle, showSubTitle, }: HeaderProps) => React.JSX.Element | null;
4
11
  export default Header;
@@ -33,12 +33,37 @@ __export(Header_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(Header_exports);
35
35
  var import_react = __toESM(require("react"));
36
+ var import_utils = require("@pisell/utils");
36
37
  var import_Buttons = __toESM(require("./Buttons"));
37
38
  var import_index = require("./index.less");
38
- var Header = ({ buttons, title }) => {
39
+ var Header = ({
40
+ buttons,
41
+ title,
42
+ subTitle,
43
+ showTitle,
44
+ showSubTitle
45
+ }) => {
39
46
  const showHeader = (0, import_react.useMemo)(() => {
40
- return title || (buttons == null ? void 0 : buttons.length);
41
- }, [buttons, title]);
42
- return showHeader ? /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "left-wrap" }, title && title()), /* @__PURE__ */ import_react.default.createElement("div", { className: "right-wrap" }, /* @__PURE__ */ import_react.default.createElement(import_Buttons.default, { list: buttons }))) : null;
47
+ return title && showTitle || (Array.isArray(buttons) ? buttons.length > 0 : buttons) || subTitle && showSubTitle;
48
+ }, [buttons, title, subTitle, showTitle, showSubTitle]);
49
+ const titleNode = (0, import_react.useMemo)(() => {
50
+ if ((0, import_utils.isFunction)(title)) {
51
+ return title();
52
+ }
53
+ return title;
54
+ }, [title]);
55
+ const buttonsNode = (0, import_react.useMemo)(() => {
56
+ if (Array.isArray(buttons)) {
57
+ return /* @__PURE__ */ import_react.default.createElement(import_Buttons.default, { list: buttons });
58
+ }
59
+ return buttons;
60
+ }, [buttons]);
61
+ const subTitleNode = (0, import_react.useMemo)(() => {
62
+ if ((0, import_utils.isFunction)(subTitle)) {
63
+ return subTitle();
64
+ }
65
+ return subTitle;
66
+ }, [subTitle]);
67
+ return showHeader ? /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-header-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-header" }, showTitle && /* @__PURE__ */ import_react.default.createElement("div", { className: "left-wrap" }, titleNode), /* @__PURE__ */ import_react.default.createElement("div", { className: "right-wrap" }, buttonsNode)), showSubTitle && subTitleNode && /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-sub-title" }, subTitleNode)) : null;
43
68
  };
44
69
  var Header_default = Header;
@@ -1,8 +1,12 @@
1
+ .materials-grid-header-wrap {
2
+ margin-bottom: 16px;
3
+ }
4
+
1
5
  .materials-grid-header {
2
6
  display: flex;
3
7
  align-items: center;
4
8
  justify-content: space-between;
5
- margin-bottom: 16px;
9
+ margin-bottom: 0;
6
10
 
7
11
  .left-wrap {}
8
12
 
@@ -10,7 +14,11 @@
10
14
  display: flex;
11
15
  align-items: center;
12
16
  gap: 8px;
17
+ }
18
+ }
13
19
 
14
20
 
15
- }
21
+ .materials-grid-sub-title {
22
+ margin-top: 8px;
23
+ color: #425569;
16
24
  }
@@ -49,6 +49,7 @@ __export(utils_exports, {
49
49
  stringify: () => stringify
50
50
  });
51
51
  module.exports = __toCommonJS(utils_exports);
52
+ var import_react = __toESM(require("react"));
52
53
  var import_dayjs = __toESM(require("dayjs"));
53
54
  var import_utils = require("@pisell/utils");
54
55
  var import_md5 = __toESM(require("crypto-js/md5"));
@@ -453,6 +454,9 @@ var stringify = (obj) => {
453
454
  if ((0, import_utils.isFunction)(value)) {
454
455
  return value.toString();
455
456
  }
457
+ if (import_react.default.isValidElement(value)) {
458
+ return value.toString();
459
+ }
456
460
  return value;
457
461
  });
458
462
  };
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ export interface TabItem {
3
+ name: string;
4
+ filterBy?: Record<string, any>;
5
+ sortBy?: string;
6
+ }
7
+ export interface CustomTabsProps {
8
+ items?: TabItem[];
9
+ show?: boolean;
10
+ type?: 'default' | 'button' | 'buttonGroup' | 'dropdown';
11
+ onChange?: (filterBy?: Record<string, any>, sortBy?: string) => void;
12
+ }
13
+ declare const Tabs: React.FC<CustomTabsProps>;
14
+ export default Tabs;
@@ -0,0 +1,70 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/table/Tabs/index.tsx
30
+ var Tabs_exports = {};
31
+ __export(Tabs_exports, {
32
+ default: () => Tabs_default
33
+ });
34
+ module.exports = __toCommonJS(Tabs_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_tabs = __toESM(require("../../tabs"));
37
+ var Tabs = ({
38
+ items = [],
39
+ type = "default",
40
+ onChange,
41
+ show = false
42
+ }) => {
43
+ const tabItems = (0, import_react.useMemo)(() => {
44
+ return items.map((item, index) => ({
45
+ key: String(index),
46
+ label: item.name
47
+ }));
48
+ }, [items]);
49
+ const handleChange = (0, import_react.useCallback)(
50
+ (activeKey) => {
51
+ const currentTab = items[Number(activeKey)];
52
+ if (currentTab && onChange) {
53
+ onChange(currentTab);
54
+ }
55
+ },
56
+ [items, onChange]
57
+ );
58
+ if (!(items == null ? void 0 : items.length) || !show) {
59
+ return null;
60
+ }
61
+ return /* @__PURE__ */ import_react.default.createElement(
62
+ import_tabs.default,
63
+ {
64
+ items: tabItems,
65
+ onChange: handleChange,
66
+ type
67
+ }
68
+ );
69
+ };
70
+ var Tabs_default = Tabs;
@@ -47,6 +47,9 @@ var useTriggerValuesChange = (params) => {
47
47
  if (changedKey === "view_mode") {
48
48
  return false;
49
49
  }
50
+ if (changedKey === "tabs") {
51
+ return true;
52
+ }
50
53
  if (changedKey === "order_by") {
51
54
  if (sortShow && (sortList == null ? void 0 : sortList.length)) {
52
55
  const value = changedValues[changedKey];
@@ -36,6 +36,7 @@ var import_ahooks = require("ahooks");
36
36
  var import_antd = require("antd");
37
37
  var import_react = __toESM(require("react"));
38
38
  var import_classNames = __toESM(require("classNames"));
39
+ var import_Tabs = __toESM(require("./Tabs"));
39
40
  var import_hooks = require("../../hooks");
40
41
  var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
41
42
  var import_Actions = __toESM(require("./Actions"));
@@ -68,6 +69,9 @@ var GridView = (0, import_model.Provider)(
68
69
  buttons,
69
70
  actionButtons,
70
71
  title,
72
+ showTitle = true,
73
+ subTitle,
74
+ showSubTitle = true,
71
75
  summary,
72
76
  onValuesChange,
73
77
  columnSetting,
@@ -78,6 +82,7 @@ var GridView = (0, import_model.Provider)(
78
82
  // pagination,
79
83
  exportImport,
80
84
  currentComponentId,
85
+ tabs,
81
86
  ...other
82
87
  } = props;
83
88
  const modal = (0, import_hooks.useSharedState)(import_model.Context);
@@ -266,7 +271,7 @@ var GridView = (0, import_model.Provider)(
266
271
  }, [(0, import_utils.stringify)(removeTitleColumns)]);
267
272
  (0, import_react.useEffect)(() => {
268
273
  form.setFieldsValue(initialValuesRef.current);
269
- }, [JSON.stringify(propsFilter)]);
274
+ }, [(0, import_utils.stringify)(propsFilter)]);
270
275
  return /* @__PURE__ */ import_react.default.createElement(
271
276
  import_antd.Form,
272
277
  {
@@ -313,7 +318,17 @@ var GridView = (0, import_model.Provider)(
313
318
  style,
314
319
  ref: wrapRef
315
320
  },
316
- /* @__PURE__ */ import_react.default.createElement(import_Header.default, { title, buttons }),
321
+ /* @__PURE__ */ import_react.default.createElement(
322
+ import_Header.default,
323
+ {
324
+ title,
325
+ showTitle,
326
+ subTitle,
327
+ showSubTitle,
328
+ buttons
329
+ }
330
+ ),
331
+ (tabs == null ? void 0 : tabs.show) && /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "tabs", noStyle: true }, /* @__PURE__ */ import_react.default.createElement(import_Tabs.default, { ...tabs })),
317
332
  /* @__PURE__ */ import_react.default.createElement(
318
333
  import_Actions.default,
319
334
  {
@@ -208,10 +208,13 @@ export declare type GridViewProps = {
208
208
  style: React.CSSProperties;
209
209
  pagination: any;
210
210
  filter: FilterType;
211
- buttons: any;
211
+ buttons: React.ReactNode | any[];
212
212
  actionButtons: any;
213
213
  sort: SortType;
214
- title: any;
214
+ title?: React.ReactNode | (() => React.ReactNode);
215
+ showTitle?: boolean;
216
+ subTitle?: React.ReactNode | (() => React.ReactNode);
217
+ showSubTitle?: boolean;
215
218
  exportImport: ExportImportType;
216
219
  onValuesChange: (changedValues: any, values: any) => void;
217
220
  summary: any;
@@ -237,5 +240,14 @@ export declare type GridViewProps = {
237
240
  * @param currentDataSource
238
241
  */
239
242
  onDataSourceChange?: (currentDataSource: Record<string, any>[]) => void;
243
+ tabs: {
244
+ show: boolean;
245
+ type: 'default' | 'button' | 'buttonGroup' | 'dropdown';
246
+ items: {
247
+ name: string;
248
+ filterBy?: Record<string, any>;
249
+ sortBy?: string;
250
+ }[];
251
+ };
240
252
  };
241
253
  export {};
@@ -1,2 +1,2 @@
1
- import { Typography as AntTypography } from "antd";
2
- export default AntTypography;
1
+ declare const Typography: import("antd").TypographyProps;
2
+ export default Typography;
@@ -70,6 +70,7 @@ var Title = (props) => {
70
70
  }, [pcIsEllipsis, padIsEllipsis, mobileIsEllipsis, ellipsis, responsive]);
71
71
  return /* @__PURE__ */ import_react.default.createElement(AntTitle, { ...others, ...ellipsisObj });
72
72
  };
73
- import_antd.Typography.Paragraph = Paragraph;
74
- import_antd.Typography.Title = Title;
75
- var typography_default = import_antd.Typography;
73
+ var Typography = import_antd.Typography;
74
+ Typography.Paragraph = Paragraph;
75
+ Typography.Title = Title;
76
+ var typography_default = Typography;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import './index.less';
3
3
  interface WalletCardProps {
4
+ platform: 'pc' | 'h5' | 'ipad';
4
5
  mode?: 'dark' | 'light';
5
6
  cardStyle?: 'normal' | 'full';
6
7
  codeType?: 'one' | 'two';
@@ -17,10 +18,11 @@ interface WalletCardProps {
17
18
  coupon?: boolean;
18
19
  vouCher?: boolean;
19
20
  discountCard?: boolean;
20
- pointsValue: number;
21
- balanceValue: number;
22
- couponValue: number;
23
- vouCherValue: number;
21
+ pointsValue?: number;
22
+ balanceValue?: number;
23
+ couponValue?: number;
24
+ vouCherValue?: number;
25
+ discountCardValue?: number;
24
26
  }
25
27
  declare const WalletCard: (props: WalletCardProps) => React.JSX.Element;
26
28
  export default WalletCard;
@@ -56,6 +56,7 @@ var WalletCard = (props) => {
56
56
  balanceValue = 0,
57
57
  vouCherValue = 0,
58
58
  couponValue = 0,
59
+ discountCardValue = 0,
59
60
  cardNo = "",
60
61
  isShowCardNo = true,
61
62
  codeDirection = "bottom",
@@ -64,7 +65,8 @@ var WalletCard = (props) => {
64
65
  balance = true,
65
66
  coupon = true,
66
67
  vouCher = true,
67
- discountCard = true
68
+ discountCard = true,
69
+ platform
68
70
  } = props;
69
71
  const context = (0, import_useEngineContext.default)();
70
72
  const [isModalOpen, setIsModalOpen] = (0, import_react.useState)(false);
@@ -75,6 +77,18 @@ var WalletCard = (props) => {
75
77
  const codeRender = () => {
76
78
  return /* @__PURE__ */ import_react.default.createElement(import_antd.Flex, { justify: "center" }, codeType === "one" ? /* @__PURE__ */ import_react.default.createElement(import_react_barcode.default, { value: cardNo, height: 114, width: 3 }) : /* @__PURE__ */ import_react.default.createElement(import_antd.QRCode, { size: 250, value: cardNo, bordered: false }));
77
79
  };
80
+ const modalProps = {
81
+ title: "QR code",
82
+ platform,
83
+ onCancel: () => setIsModalOpen(false),
84
+ open: isModalOpen,
85
+ footer: null,
86
+ mobileModalHeight: "auto",
87
+ className: (0, import_classnames.default)("pisell-qrcode-modal"),
88
+ bodyStyle: {
89
+ padding: 0
90
+ }
91
+ };
78
92
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Card, { className: (0, import_classnames.default)("pisell-wallet-card-wrapper") }, /* @__PURE__ */ import_react.default.createElement(
79
93
  import_antd.Flex,
80
94
  {
@@ -173,12 +187,12 @@ var WalletCard = (props) => {
173
187
  value: balanceValue
174
188
  }
175
189
  ))),
176
- coupon && /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("p", null, "Coupon"), /* @__PURE__ */ import_react.default.createElement("p", null, /* @__PURE__ */ import_react.default.createElement(
190
+ discountCard && /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("p", null, "Discount card"), /* @__PURE__ */ import_react.default.createElement("p", null, /* @__PURE__ */ import_react.default.createElement(
177
191
  import_Amount.default,
178
192
  {
179
193
  className: "pisell-card-amount-item-value",
180
194
  useThousandsSeparator: true,
181
- value: couponValue
195
+ value: discountCardValue
182
196
  }
183
197
  ))),
184
198
  vouCher && /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("p", null, "VouCher"), /* @__PURE__ */ import_react.default.createElement("p", null, /* @__PURE__ */ import_react.default.createElement(
@@ -189,20 +203,17 @@ var WalletCard = (props) => {
189
203
  value: vouCherValue
190
204
  }
191
205
  )))
192
- ),
193
- /* @__PURE__ */ import_react.default.createElement(import_antd.Flex, { className: (0, import_classnames.default)("pisell-wallet-card-row") }, discountCard && /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("p", null, "Discount card"), /* @__PURE__ */ import_react.default.createElement("p", null, 0)))
206
+ )
194
207
  )
195
208
  ),
196
209
  showCode && cardStyle === "full" && /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-wallet-card-showCode") }, codeRender())
197
- )), /* @__PURE__ */ import_react.default.createElement(
198
- import_antd.Modal,
210
+ )), /* @__PURE__ */ import_react.default.createElement(PisellModal, { ...modalProps }, /* @__PURE__ */ import_react.default.createElement(import_antd.QRCode, { size: 200, value, style: { marginTop: 24 } }), /* @__PURE__ */ import_react.default.createElement("p", { className: (0, import_classnames.default)("pisell-qrcode-modal-value") }, value), /* @__PURE__ */ import_react.default.createElement(Divider, null), /* @__PURE__ */ import_react.default.createElement(
211
+ Button,
199
212
  {
200
- open: isModalOpen,
201
- onCancel: () => setIsModalOpen(false),
202
- style: { bottom: 0 },
203
- footer: null
213
+ onClick: () => setIsModalOpen(false),
214
+ className: (0, import_classnames.default)("pisell-qrcode-modal-button")
204
215
  },
205
- codeRender()
206
- ));
216
+ "Done"
217
+ )));
207
218
  };
208
219
  var walletCard_default = WalletCard;
package/lib/index.d.ts CHANGED
@@ -136,3 +136,7 @@ export { default as FormItemRadio } from './components/dataSourceComponents/fiel
136
136
  export { default as FormItemSelect } from './components/dataSourceComponents/fields/Select';
137
137
  export { default as FormItemTimePicker } from './components/dataSourceComponents/fields/TimePicker';
138
138
  export { default as DataSourceTable } from './components/dataSourceComponents/dataSourceTable';
139
+ export { default as DataSourceWrapper } from './components/dataSourceComponents/dataSourceWrapper';
140
+ export { default as DataSourceTypography } from './components/dataSourceComponents/dataSourceShow/dataSourceTypography';
141
+ export { default as DataSourceImage } from './components/dataSourceComponents/dataSourceShow/dataSourceImage';
142
+ export { default as DataSourceQRCode } from './components/dataSourceComponents/dataSourceShow/dataSourceQRCode';
package/lib/index.js CHANGED
@@ -56,7 +56,11 @@ __export(src_exports, {
56
56
  ConfigProvider: () => import_config_provider.default,
57
57
  CropPhoto: () => import_cropPhoto.default,
58
58
  DataSourceForm: () => import_dataSourceForm.default,
59
+ DataSourceImage: () => import_dataSourceImage.default,
60
+ DataSourceQRCode: () => import_dataSourceQRCode.default,
59
61
  DataSourceTable: () => import_dataSourceTable.default,
62
+ DataSourceTypography: () => import_dataSourceTypography.default,
63
+ DataSourceWrapper: () => import_dataSourceWrapper.default,
60
64
  DatePicker: () => import_date_picker.default,
61
65
  Descriptions: () => import_antd10.Descriptions,
62
66
  Div: () => import_div.default,
@@ -308,6 +312,10 @@ var import_Radio = __toESM(require("./components/dataSourceComponents/fields/Rad
308
312
  var import_Select = __toESM(require("./components/dataSourceComponents/fields/Select"));
309
313
  var import_TimePicker = __toESM(require("./components/dataSourceComponents/fields/TimePicker"));
310
314
  var import_dataSourceTable = __toESM(require("./components/dataSourceComponents/dataSourceTable"));
315
+ var import_dataSourceWrapper = __toESM(require("./components/dataSourceComponents/dataSourceWrapper"));
316
+ var import_dataSourceTypography = __toESM(require("./components/dataSourceComponents/dataSourceShow/dataSourceTypography"));
317
+ var import_dataSourceImage = __toESM(require("./components/dataSourceComponents/dataSourceShow/dataSourceImage"));
318
+ var import_dataSourceQRCode = __toESM(require("./components/dataSourceComponents/dataSourceShow/dataSourceQRCode"));
311
319
  // Annotate the CommonJS export names for ESM import in node:
312
320
  0 && (module.exports = {
313
321
  Affix,
@@ -337,7 +345,11 @@ var import_dataSourceTable = __toESM(require("./components/dataSourceComponents/
337
345
  ConfigProvider,
338
346
  CropPhoto,
339
347
  DataSourceForm,
348
+ DataSourceImage,
349
+ DataSourceQRCode,
340
350
  DataSourceTable,
351
+ DataSourceTypography,
352
+ DataSourceWrapper,
341
353
  DatePicker,
342
354
  Descriptions,
343
355
  Div,
@@ -133,5 +133,12 @@ declare const _default: {
133
133
  'pisell-data-source-table-delete': string;
134
134
  'pisell-record-view-available': string;
135
135
  'pisell-record-view-unavailable': string;
136
+ 'pisell-data-source-form-required-message': string;
137
+ 'pisell-data-source-form-email-message': string;
138
+ 'pisell-data-source-form-phone-message': string;
139
+ 'pisell-data-source-form-min-length-message': (minLength: number) => string;
140
+ 'pisell-data-source-form-max-length-message': (maxLength: number) => string;
141
+ 'pisell-data-source-form-min-value-message': (minValue: number) => string;
142
+ 'pisell-data-source-form-max-value-message': (maxValue: number) => string;
136
143
  };
137
144
  export default _default;
@@ -167,5 +167,12 @@ var en_US_default = {
167
167
  "pisell-data-source-table-delete": "Delete",
168
168
  // recordView组件
169
169
  "pisell-record-view-available": "Available",
170
- "pisell-record-view-unavailable": "No available"
170
+ "pisell-record-view-unavailable": "No available",
171
+ "pisell-data-source-form-required-message": "This field is required",
172
+ "pisell-data-source-form-email-message": "Please enter a valid email address",
173
+ "pisell-data-source-form-phone-message": "Please enter a valid phone number",
174
+ "pisell-data-source-form-min-length-message": (minLength) => `Length must be at least ${minLength} character`,
175
+ "pisell-data-source-form-max-length-message": (maxLength) => `Length must be at most ${maxLength} character`,
176
+ "pisell-data-source-form-min-value-message": (minValue) => `Value must be greater than or equal to ${minValue}`,
177
+ "pisell-data-source-form-max-value-message": (maxValue) => `Value must be less than or equal to ${maxValue}`
171
178
  };