@pisell/materials 1.0.946 → 1.0.948

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 (41) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +3 -3
  6. package/build/lowcode/view.js +2 -2
  7. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  8. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +4 -2
  9. package/es/components/filter/index.d.ts +0 -1
  10. package/es/components/table/Actions/index.js +4 -1
  11. package/es/components/table/BasicTable/index.d.ts +0 -1
  12. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  13. package/es/components/table/View/index.d.ts +0 -1
  14. package/es/components/table/hooks/useTableSetting.js +2 -2
  15. package/es/locales/en-US.d.ts +342 -0
  16. package/es/locales/en-US.js +1 -1
  17. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  18. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +4 -2
  19. package/lib/components/filter/index.d.ts +0 -1
  20. package/lib/components/table/Actions/index.js +4 -1
  21. package/lib/components/table/BasicTable/index.d.ts +0 -1
  22. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  23. package/lib/components/table/View/index.d.ts +0 -1
  24. package/lib/components/table/hooks/useTableSetting.js +2 -2
  25. package/lib/locales/en-US.d.ts +342 -0
  26. package/lib/locales/en-US.js +1 -1
  27. package/package.json +3 -3
  28. package/es/components/pisellCardList/index.d.ts +0 -107
  29. package/es/components/pisellGoodPassCard/index.d.ts +0 -50
  30. package/es/components/pisellWalletPassCard/index.d.ts +0 -140
  31. package/es/components/productCard/index.d.ts +0 -7
  32. package/es/components/table/Actions/index.d.ts +0 -18
  33. package/es/components/walletCard/index.d.ts +0 -71
  34. package/es/index.d.ts +0 -146
  35. package/lib/components/pisellCardList/index.d.ts +0 -107
  36. package/lib/components/pisellGoodPassCard/index.d.ts +0 -50
  37. package/lib/components/pisellWalletPassCard/index.d.ts +0 -140
  38. package/lib/components/productCard/index.d.ts +0 -7
  39. package/lib/components/table/Actions/index.d.ts +0 -18
  40. package/lib/components/walletCard/index.d.ts +0 -71
  41. package/lib/index.d.ts +0 -146
@@ -0,0 +1,342 @@
1
+ declare const _default: {
2
+ 'table-filter-search': string;
3
+ 'table-filter-clear': string;
4
+ 'table-filter-filter': string;
5
+ 'table-filter-min': string;
6
+ 'table-filter-max': string;
7
+ 'table-pagination-previous': string;
8
+ 'table-pagination-next': string;
9
+ 'table-pagination-total': (current: string, total: string) => string;
10
+ 'select-dropdown-render-select-all': string;
11
+ 'select-dropdown-render-search': string;
12
+ 'sort-button-text': string;
13
+ 'sort-oldest-to-newest': string;
14
+ 'sort-newest-to-oldest': string;
15
+ 'sort-a-z': string;
16
+ 'sort-z-a': string;
17
+ 'sort-from-morning-to-night': string;
18
+ 'sort-from-evening-to-morning': string;
19
+ 'sort-0-9': string;
20
+ 'sort-9-0': string;
21
+ 'table-action-filter-button': string;
22
+ 'table-action-filter-quick-filter': string;
23
+ 'table-action-filter-quick-filter-tip': (count: number) => string;
24
+ 'table-action-filter-other-filter': string;
25
+ 'table-action-filter-other-filter-tip': () => string;
26
+ 'table-action-group-by-title': string;
27
+ 'table-action-group-by-title-tip': string;
28
+ 'table-action-column-title': string;
29
+ 'table-column-group-records': string;
30
+ 'table-column-group-lock-tip': string;
31
+ 'table-column-drag-sort-disabled-tip': string;
32
+ 'table-action-filter-no-filter': string;
33
+ 'table-action-range-picker-presets-today': string;
34
+ 'table-action-range-picker-presets-yesterday': string;
35
+ 'table-action-range-picker-presets-last-3-day': string;
36
+ 'table-action-range-picker-presets-last-7-day': string;
37
+ 'table-action-range-picker-presets-last-14-day': string;
38
+ 'table-action-range-picker-presets-last-30-day': string;
39
+ 'table-action-range-picker-presets-last-90-day': string;
40
+ 'virtual-keyboard-time-now': string;
41
+ 'virtual-keyboard-time-ok': string;
42
+ 'batch-editor-batch-edit': string;
43
+ 'batch-editor-actions': string;
44
+ 'batch-editor-remove': string;
45
+ 'batch-editor-price': string;
46
+ 'batch-editor-cancel': string;
47
+ 'batch-editor-search': string;
48
+ 'batch-editor-confirm': string;
49
+ 'batch-editor-batch-remove': string;
50
+ 'batch-editor-quick-edit': string;
51
+ 'batch-editor-what-price': string;
52
+ 'batch-editor-quick-edit-title': (product: string, num: string) => string;
53
+ 'batch-editor-quick-edit-title-2': (product: string) => string;
54
+ 'table-action-export-import-export-success': string;
55
+ 'table-action-export-import-button': string;
56
+ 'table-action-export-import-export-range': string;
57
+ 'table-action-export-import-current-page': string;
58
+ 'table-action-export-import-all-records': string;
59
+ 'table-action-export-import-selected-records': string;
60
+ 'table-action-export-import-selected': string;
61
+ 'table-action-export-import-item': (length: number) => string;
62
+ 'table-action-export-import-product': string;
63
+ 'table-action-export-import-table-text-input-title': string;
64
+ 'table-action-export-import-table-text-input-describe': string;
65
+ 'table-action-export-import-table-error-file': string;
66
+ 'table-action-export-import-import-success': string;
67
+ 'table-action-export-import-import-phone': string;
68
+ 'table-action-export-import-table-success-download': string;
69
+ 'table-action-export-import-table-textimport-product': string;
70
+ 'table-action-export-import-table-text-product-template': string;
71
+ 'table-action-export-import-table-text-click-download': string;
72
+ 'table-action-export-import-table-text-edit-file': string;
73
+ 'table-action-export-import-button-import': string;
74
+ 'table-action-export-import-cancel': string;
75
+ 'table-action-export-import-file-completed': string;
76
+ 'table-action-export-import-file-processing': string;
77
+ 'table-action-export-import-file-pending': string;
78
+ 'table-action-export-import-file-refresh': string;
79
+ 'table-action-export-import-export-title': string;
80
+ 'table-action-export-import-file-hint': string;
81
+ 'table-action-export-import-file-name': string;
82
+ 'table-action-export-import-file-content': string;
83
+ 'table-action-export-import-file-content-all': string;
84
+ 'table-action-export-import-file-content-part': string;
85
+ 'table-action-export-import-file-status': string;
86
+ 'table-action-export-import-file-account': string;
87
+ 'table-action-export-import-file-created': string;
88
+ 'table-action-export-import-file-record': (length: number) => string;
89
+ 'table-action-export-import-import-title': string;
90
+ 'table-action-export-import-log-hint': string;
91
+ 'table-action-export-import-log-name': string;
92
+ 'table-action-export-import-log-result': string;
93
+ 'table-action-export-import-log-ok': (num: number) => string;
94
+ 'table-action-export-import-log-err': (num: number) => string;
95
+ 'table-action-export-import-log-check': string;
96
+ 'table-action-export-import-log-detail-title': string;
97
+ 'table-action-export-import-log-err-log': string;
98
+ 'table-action-export-import-log-copy': string;
99
+ 'table-action-export-import-table-success-copy': string;
100
+ 'drag-sort-tree-unavailable-today-tip': string;
101
+ 'date-picker-today': string;
102
+ 'date-picker-yesterday': string;
103
+ 'date-picker-tomorrow': string;
104
+ 'date-picker-next_monday': string;
105
+ 'date-picker-last_friday': string;
106
+ 'date-picker-first_day_of_this_month': string;
107
+ 'date-picker-last_day_of_this_month': string;
108
+ 'date-picker-first_day_of_next_month': string;
109
+ 'date-picker-last_day_of_last_month': string;
110
+ 'date-picker-invalid-date': string;
111
+ 'date-picker-apply': string;
112
+ 'date-picker-shortcut-custom': string;
113
+ 'pisell-input-copy-success': string;
114
+ 'pisell-input-copy': string;
115
+ 'pisell-empty-description-no-data': string;
116
+ 'pisell-information-entry-input-search': string;
117
+ 'pisell-information-entry-input-confirm': string;
118
+ 'pisell-information-entry-scan-exit': string;
119
+ 'pisell-wallet-pass-card-detail': string;
120
+ 'pisell-wallet-pass-card-edit': string;
121
+ 'pisell-wallet-pass-card-name': string;
122
+ 'pisell-wallet-pass-card-store-name': string;
123
+ 'pisell-wallet-pass-card-balance': string;
124
+ 'pisell-wallet-pass-card-redeem': string;
125
+ 'pisell-wallet-pass-card-code': string;
126
+ 'pisell-wallet-pass-card-valid-to': string;
127
+ 'pisell-wallet-pass-card-valid': string;
128
+ 'pisell-wallet-pass-card-confirm': string;
129
+ 'pisell-wallet-pass-card-cancel': string;
130
+ 'pisell-wallet-pass-card-required': string;
131
+ 'pisell-wallet-pass-card-expireDate': string;
132
+ 'pisell-adjust-price-price-override': string;
133
+ 'pisell-adjust-price-discount': string;
134
+ 'pisell-adjust-price-discount-amount': string;
135
+ 'pisell-adjust-price-discount-percentage': string;
136
+ 'pisell-adjust-price-total-after-discount': string;
137
+ 'pisell-adjust-price-discount-can-be-maximum': string;
138
+ 'pisell-discount-card-title': string;
139
+ 'pisell-discount-card-unit': string;
140
+ 'pisell-discount-card-fixed-amount-prefix': string;
141
+ 'pisell-data-source-table-add': string;
142
+ 'pisell-data-source-table-edit': string;
143
+ 'pisell-data-source-table-detail': string;
144
+ 'pisell-data-source-table-delete': string;
145
+ 'pisell-record-view-available': string;
146
+ 'pisell-record-view-unavailable': string;
147
+ 'pisell-data-source-form-required-message': string;
148
+ 'pisell-data-source-form-email-message': string;
149
+ 'pisell-data-source-form-domain-message': string;
150
+ 'pisell-data-source-form-url-message': string;
151
+ 'pisell-data-source-form-phone-message': string;
152
+ 'pisell-data-source-form-min-length-message': (minLength: number) => string;
153
+ 'pisell-data-source-form-max-length-message': (maxLength: number) => string;
154
+ 'pisell-data-source-form-min-value-message': (minValue: number) => string;
155
+ 'pisell-data-source-form-max-value-message': (maxValue: number) => string;
156
+ 'pisell-data-source-form-mobile-message': string;
157
+ 'pisell-data-source-form-pattern-message': string;
158
+ 'pisell-number-format-thousand': string;
159
+ 'pisell-number-format-million': string;
160
+ 'pisell-number-format-billion': string;
161
+ 'walletCard-done': string;
162
+ 'walletCard-qrcode': string;
163
+ 'walletCard-barcode': string;
164
+ 'walletCard-viewPin': string;
165
+ 'pisell-upload-button': string;
166
+ 'pisell-upload-setting-size-error': (maxSize: number) => string;
167
+ 'pisell-upload-setting-type-error': (type: string) => string;
168
+ 'pisell-upload-count-error': (count: number) => string;
169
+ 'pisell-upload-error': (name: string) => string;
170
+ 'pisell-upload-multilingual-title': string;
171
+ 'pisell-upload-multilingual-item-title-original': string;
172
+ 'pisell-upload-multilingual-item-title-en': string;
173
+ 'pisell-upload-multilingual-item-title-zh-CN': string;
174
+ 'pisell-upload-multilingual-item-title-zh-HK': string;
175
+ 'pisell-color-picker-default': string;
176
+ 'pisell-action-get-data': string;
177
+ 'pisell-action-delete-success': string;
178
+ 'pisell-action-delete-failed': string;
179
+ 'walletCard-point': string;
180
+ 'walletCard-rechargeable': string;
181
+ 'walletCard-voucher': string;
182
+ 'walletCard-discount': string;
183
+ 'pisellQrcode-done': string;
184
+ 'pisellQrcode-qrcode': string;
185
+ 'pisell-delete-confirm-title': string;
186
+ 'pisell-delete-confirm-content': string;
187
+ 'pisell-delete-confirm-ok': string;
188
+ 'pisell-delete-confirm-cancel': string;
189
+ 'pisell-design-mode-action-disabled': string;
190
+ 'pisell-translation-original': string;
191
+ 'pisell-version-modal-title': string;
192
+ 'pisell-version-modal-current-version': string;
193
+ 'pisell-version-modal-version': string;
194
+ 'pisell-version-modal-update-notes': string;
195
+ 'pisell-version-modal-patch': string;
196
+ 'pisell-version-modal-minor': string;
197
+ 'pisell-version-modal-major': string;
198
+ 'pisell-version-modal-custom': string;
199
+ 'pisell-version-modal-cancel': string;
200
+ 'pisell-version-modal-confirm': string;
201
+ 'pisell-version-modal-describe-update-notes': string;
202
+ 'pisell-version-modal-version-error': string;
203
+ 'pisell-version-modal-version-required': string;
204
+ 'pisell-version-modal-based-on-version': string;
205
+ 'subdomain-error-too-short': string;
206
+ 'subdomain-error-too-long': string;
207
+ 'subdomain-error-pattern': string;
208
+ 'subdomain-error-numbers-only': string;
209
+ 'subdomain-error-hyphen-ends': string;
210
+ 'subdomain-error-consecutive-hyphens': string;
211
+ 'subdomain-error-required': string;
212
+ 'pisell-icon-select-outlined': string;
213
+ 'pisell-icon-select-filled': string;
214
+ 'pisell-icon-select-two-tone': string;
215
+ 'pisell-icon-select-iconfont': string;
216
+ 'pisell-icon-select-search': string;
217
+ 'pisell-icon-select-select': string;
218
+ 'pisell-lowcode-app-version-control-live': string;
219
+ 'pisell-lowcode-app-version-control-draft': string;
220
+ 'pisell-lowcode-app-version-control-deprecated': string;
221
+ 'pisell-lowcode-app-version-control-new-version': string;
222
+ 'pisell-lowcode-app-version-control-promote-to-live': string;
223
+ 'pisell-lowcode-app-version-control-promote-version': (version: string) => string;
224
+ 'pisell-lowcode-app-version-control-promote-version-describe': string;
225
+ 'pisell-lowcode-app-version-control-promote-version-ok': string;
226
+ 'pisell-lowcode-app-version-control-promote-version-cancel': string;
227
+ 'pisell-lowcode-app-version-control-version-exists': string;
228
+ 'pisell-lowcode-app-version-control-version-create-title': string;
229
+ 'pisell-lowcode-drop-sort-add': string;
230
+ 'pisell-lowcode-navigation-menu-add-sub-menu': string;
231
+ 'pisell-lowcode-navigation-menu-add-page': string;
232
+ 'pisell-lowcode-navigation-menu-add-page-tip': string;
233
+ 'pisell-lowcode-navigation-menu-tag-base': string;
234
+ 'pisell-lowcode-navigation-menu-tag-proCode': string;
235
+ 'pisell-lowcode-navigation-menu-tag-pisell1': string;
236
+ 'pisell-lowcode-navigation-menu-tag-group': string;
237
+ 'pisell-lowcode-navigation-menu-tag-sub-menu': string;
238
+ 'pisell-lowcode-navigation-menu-tag-custom': string;
239
+ 'pisell-data-source-form-app-identifier-pattern': string;
240
+ 'pisell-data-source-form-app-identifier-start-with-letter': string;
241
+ 'pisell-group-permissions-rule-required': string;
242
+ 'pisell-group-permissions-rule-limit': string;
243
+ 'pisell-data-source-form-app-identifier-letters-only': string;
244
+ 'pisell-data-source-form-app-identifier-alphanumeric': string;
245
+ 'pisell-data-source-form-app-identifier-special-ends': string;
246
+ 'pisell-data-source-form-app-identifier-consecutive-special': string;
247
+ 'qrscanner-loading': string;
248
+ 'qrscanner-success': string;
249
+ 'qrscanner-success-qrcode': string;
250
+ 'qrscanner-success-barcode': string;
251
+ 'qrscanner-error-upload-image': string;
252
+ 'qrscanner-error-load-failed': string;
253
+ 'qrscanner-error-no-code': string;
254
+ 'qrscanner-error-camera-init': string;
255
+ 'qrscanner-error-process-image': string;
256
+ 'pisell-login-and-register-title': string;
257
+ 'pisell-login-and-register-subtitle': string;
258
+ 'pisell-login-and-register-email-label': string;
259
+ 'pisell-login-and-register-email-placeholder': string;
260
+ 'pisell-login-and-register-password-label': string;
261
+ 'pisell-login-and-register-password-placeholder': string;
262
+ 'pisell-login-and-register-email-error': string;
263
+ 'pisell-login-and-register-email-error-valid': string;
264
+ 'pisell-login-and-register-password-error': string;
265
+ 'pisell-login-and-register-login': string;
266
+ 'pisell-login-and-register-google': string;
267
+ 'pisell-login-and-register-facebook': string;
268
+ 'pisell-login-and-register-apple': string;
269
+ 'pisell-login-and-register-sign-up': string;
270
+ 'pisell-login-and-register-login-tab': string;
271
+ 'pisell-login-and-register-register-tab': string;
272
+ 'pisell-login-and-register-register-email-placeholder': string;
273
+ 'pisell-login-and-register-register-password-placeholder': string;
274
+ 'pisell-login-and-register-register-button-text': string;
275
+ 'pisell-login-and-register-remember-me': string;
276
+ 'pisell-login-and-register-forgot-password': string;
277
+ 'pisell-login-and-register-register-password-error': string;
278
+ 'pisell-login-and-register-register-password-error-valid': string;
279
+ 'pisell2.text.goodpass.product-vouchers': string;
280
+ 'pisell2.text.goodpass.last-settlement': string;
281
+ 'pisell2.text.goodpass.view-more': string;
282
+ 'pisell2.text.goodpass.save': string;
283
+ 'pisell2.text.hardware-error.fatal': string;
284
+ 'pisell2.text.hardware-error.critical': string;
285
+ 'pisell2.text.hardware-error.normal': string;
286
+ 'pisell2.text.hardware-error.info': string;
287
+ 'pisell2.text.hardware-error.error-center': string;
288
+ 'pisell2.text.hardware-error.error-list': string;
289
+ 'pisell2.text.hardware-error.error-code': string;
290
+ 'pisell2.text.hardware-error.time': string;
291
+ 'pisell2.text.hardware-error.error-description': string;
292
+ 'pisell2.text.hardware-error.solution': string;
293
+ 'pisell2.text.hardware-error.info-number': string;
294
+ 'pisell2.text.hardware-error.tip-content': string;
295
+ 'pisell2.text.hardware-error.device.all': string;
296
+ 'pisell2.text.hardware-error.device.printer': string;
297
+ 'pisell2.text.hardware-error.device.barcode-scanner': string;
298
+ 'pisell2.text.hardware-error.device.cds': string;
299
+ 'pisell2.text.hardware-error.device.kds': string;
300
+ 'pisell2.text.hardware-error.device.display': string;
301
+ 'pisell2.text.hardware-error.device.card-reader': string;
302
+ 'pisell2.text.hardware-error.device.till': string;
303
+ 'pisell2.text.hardware-error.device.scale': string;
304
+ 'pisell2.text.hardware-error.error-logs': string;
305
+ 'pisell2.text.hardware-error.all-devices': string;
306
+ 'pisell2.text.hardware-error.all-levels': string;
307
+ 'pisell2.text.hardware-error.debug-info': string;
308
+ 'pisell2.text.hardware-error.important-info': string;
309
+ 'pisell2.text.hardware-error.error-info': string;
310
+ 'pisell2.text.hardware-error.search-logs': string;
311
+ 'pisell2.text.hardware-error.export-logs': string;
312
+ 'pisell2.text.hardware-error.no-errors': string;
313
+ 'pisell2.text.hardware-error.no-logs': string;
314
+ 'pisell-wallet-pass-card-status-used': string;
315
+ 'pisell-wallet-pass-card-status-expired': string;
316
+ 'pisell-wallet-pass-card-status-disabled': string;
317
+ 'pisell-wallet-pass-card-status-conflict': string;
318
+ 'pisell-wallet-pass-card-status-lastPayment': string;
319
+ 'pisell-wallet-pass-card-reset': string;
320
+ 'pisell-wallet-pass-card-done': string;
321
+ 'pisell-list-tab-group-default': string;
322
+ 'pisell-list-empty-text-default': string;
323
+ 'pisell-list-load-more': string;
324
+ 'pisell-list-view-less': string;
325
+ 'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
326
+ 'pisell-list-scroll-down': string;
327
+ 'pisell-list-scroll-right': string;
328
+ 'pisell-list-pagination-page-of': (current: number, total: number) => string;
329
+ 'pisell-list-pagination-previous': string;
330
+ 'pisell-list-pagination-next': string;
331
+ 'pisell-camera-no-camera-accessible': string;
332
+ 'pisell-camera-permission-denied': string;
333
+ 'pisell-camera-switch-camera': string;
334
+ 'pisell-camera-canvas': string;
335
+ 'pisell-camera-checking': string;
336
+ 'pisell-camera-no-camera-desc': string;
337
+ 'pisell-upload-camera-local-files': string;
338
+ 'pisell-upload-camera-capture': string;
339
+ 'pisell-upload-camera-retake': string;
340
+ 'pisell-upload-camera-use': string;
341
+ };
342
+ export default _default;
@@ -169,7 +169,7 @@ var en_US_default = {
169
169
  "pisell-adjust-price-total-after-discount": "Total after discount: ",
170
170
  "pisell-adjust-price-discount-can-be-maximum": "Discount can be maximum",
171
171
  "pisell-discount-card-title": "Discount",
172
- "pisell-discount-card-unit": "off",
172
+ "pisell-discount-card-unit": "OFF",
173
173
  "pisell-discount-card-fixed-amount-prefix": "Save",
174
174
  // 数据源表格
175
175
  "pisell-data-source-table-add": "Add",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.946",
3
+ "version": "1.0.948",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -76,8 +76,8 @@
76
76
  "vod-js-sdk-v6": "^1.4.11",
77
77
  "react-camera-pro": "1.4.0",
78
78
  "@pisell/date-picker": "1.0.127",
79
- "@pisell/icon": "0.0.10",
80
- "@pisell/utils": "1.0.55"
79
+ "@pisell/utils": "1.0.55",
80
+ "@pisell/icon": "0.0.10"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "react": "^18.0.0",
@@ -1,107 +0,0 @@
1
- import React from 'react';
2
- import { PisellCheckboxGroupProps } from '../pisellCheckboxGroup';
3
- import { PisellContextType } from '../pisell-config-provider/context';
4
- import { PisellWalletPassCardProps, FormatOption } from '../pisellWalletPassCard';
5
- import './index.less';
6
- export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'options'> {
7
- platform?: PisellContextType['platform'];
8
- /** 当用户查看完所有记录时,底部会显示此消息 */
9
- endMessage?: React.ReactNode;
10
- /** 加载下次数据时的加载站位 */
11
- loader?: React.ReactNode;
12
- /** 是否有更多数据 */
13
- hasMore: boolean;
14
- /** 加载更多数据回调 */
15
- loadMoreData?: () => Promise<void>;
16
- /** 当前list数据 */
17
- data: PisellWalletPassCardProps[];
18
- /** list空数据时展示内容 */
19
- empty?: React.ReactNode;
20
- /** 是否展示空状态 */
21
- showEmpty?: boolean;
22
- /** 是否展示卡片名称 */
23
- showName?: boolean;
24
- /** 是否展示店铺名称 */
25
- showStoreName?: boolean;
26
- /** 是否展示核销金额 */
27
- showRedeem?: boolean;
28
- /** 是否展示余额 */
29
- showBalance?: boolean;
30
- /** 是否展示编码 */
31
- showCode?: boolean;
32
- /** 是否展示到期时间 */
33
- showValidDate?: boolean;
34
- /** 使用日程信息计算有效期 */
35
- validDateBySchedule?: boolean;
36
- /** 日程列表 */
37
- scheduleList?: any[];
38
- /** 是否展示详情按钮 */
39
- showDetail?: boolean;
40
- /** 是否展示二维码 */
41
- showQrCode?: boolean;
42
- /** 是否展示封面图 */
43
- showCover?: boolean;
44
- /** 是否余额货币单位 */
45
- showBalanceSymbol?: boolean;
46
- /** 卡片大小 */
47
- type?: 'default' | 'mini';
48
- /** 展示操作按钮 */
49
- showActions?: boolean;
50
- /** 操作按钮配置 */
51
- actions?: {
52
- /** 按钮展示方式 */
53
- layout: 'expanded' | 'collapsed';
54
- /** detail 按钮配置 */
55
- detail?: {
56
- visible: boolean;
57
- iconColor: string;
58
- };
59
- /** edit按钮配置 */
60
- edit?: {
61
- visible: boolean;
62
- iconColor: string;
63
- dialogTitle: string;
64
- enableDialog: boolean;
65
- fields: {
66
- name: string;
67
- label: string;
68
- };
69
- };
70
- };
71
- /** 编辑编辑按钮后,弹窗展示之前 */
72
- beforeEdit?: (value: any, index: number) => Promise<any> | boolean | void;
73
- /** 编辑弹窗点击提交 */
74
- onConfirmEdit?: (value: any, index: number, data: any) => void;
75
- /** 是否展示状态标识 */
76
- showStatus?: boolean;
77
- /** 名称标题字号字重颜色配置 */
78
- nameTitleStyle?: {
79
- fontSize: number;
80
- fontWeight: number;
81
- color: string;
82
- };
83
- /** 开启编辑金额 */
84
- enableEditAmount?: boolean;
85
- /** 编辑金额事件 */
86
- onConfirmEditAmount?: (value: number, index: number, data: any) => void;
87
- /** 是否使用外部详情处理 */
88
- useExternalDetail?: boolean;
89
- /** 详情事件 */
90
- onDetail?: (value: any, index: number) => void;
91
- /** 自定义余额格式化函数,如果提供则优先使用 */
92
- formatBalance?: (balance?: number, option?: FormatOption) => React.ReactNode;
93
- /** 自定义余额标题格式化函数,如果提供则优先使用 */
94
- formatBalanceTitle?: (balanceTitle?: string, option?: FormatOption) => React.ReactNode;
95
- /** 自定义使用金额格式化函数,如果提供则优先使用 */
96
- formatRedeem?: (redeem?: number, option?: FormatOption) => React.ReactNode;
97
- /** 自定义使用金额标题格式化函数,如果提供则优先使用 */
98
- formatRedeemTitle?: (redeemTitle?: string, option?: FormatOption) => React.ReactNode;
99
- /** 编辑金额前事件 */
100
- onBeforeEditAmount?: (value: any, index: number, data: any) => Promise<any> | boolean | void;
101
- /** 选项点击事件 */
102
- onItemClick?: (e: React.MouseEvent<HTMLDivElement>, option: any) => void;
103
- /** 是否展示选中状态的背景色 */
104
- showActiveBackground?: boolean;
105
- }
106
- declare const _default: React.NamedExoticComponent<PisellCardListProps>;
107
- export default _default;
@@ -1,50 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface ApplicableProductDetails {
4
- amount: string;
5
- type: string;
6
- resource_id: number;
7
- title: string;
8
- original_amount: string;
9
- }
10
- interface Discount {
11
- id: number;
12
- product_name: string;
13
- encoded: string;
14
- code: string;
15
- tag: string;
16
- expire_time?: string;
17
- product_id: number;
18
- relation_type: string;
19
- par_value: string;
20
- used_par_value: string;
21
- limit_status: string;
22
- limited_relation_product_data: any;
23
- balance: string;
24
- format_title: any;
25
- product: any;
26
- savedAmount: number;
27
- isDisabled: boolean;
28
- isSelected?: boolean;
29
- isAvailable?: boolean;
30
- isUsed?: boolean;
31
- applicableProductIds?: number[];
32
- applicableProductDetails: ApplicableProductDetails[];
33
- appliedProductDetails: any[];
34
- }
35
- export interface PisellGoodPassCardProps {
36
- /**数据源 */
37
- dataSource: Array<Discount>;
38
- /**事件 */
39
- onChange?: (current: {
40
- id: string | number;
41
- isSelected: boolean;
42
- }) => void;
43
- /**样式 */
44
- style: React.CSSProperties;
45
- /**快捷展示排序 */
46
- mixedSort?: (val: Discount[]) => Discount[];
47
- isInModal: boolean;
48
- }
49
- declare const index: (props: PisellGoodPassCardProps) => JSX.Element;
50
- export default index;
@@ -1,140 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface FormatOption {
4
- /** 原始 DOM 元素 */
5
- originDom: React.ReactNode;
6
- /** 是否选中状态 */
7
- active: boolean;
8
- /** 完整的组件数据 */
9
- data: PisellWalletPassCardProps;
10
- }
11
- export interface PisellWalletPassCardProps {
12
- id: number;
13
- /** 卡片样式 */
14
- type: 'default' | 'mini';
15
- /** 商品名称 */
16
- name: string;
17
- /** 二维码 */
18
- qrCode: string;
19
- /** 共享店铺名称 */
20
- storeName: string;
21
- /** 余额 */
22
- balance?: number;
23
- /** 识别码编号 */
24
- code: string;
25
- /** 有效期 */
26
- validDate: string;
27
- /** 使用金额 */
28
- redeem?: number;
29
- /** 是否禁用 */
30
- disabled?: boolean;
31
- /** 禁用原因 */
32
- disabledReason?: string;
33
- /** 是否展示禁用原因 */
34
- showDisabledReason?: boolean;
35
- /** 封面图 */
36
- cover?: string;
37
- /** 余额标题文案 */
38
- balanceTitle?: string;
39
- /** 使用金额标题文案 */
40
- redeemTitle?: string;
41
- /** 是否选中 */
42
- active?: boolean;
43
- /** 是否展示商品名称 */
44
- showName?: boolean;
45
- /** 是否展示共享店铺名称 */
46
- showStoreName?: boolean | ((data: any) => boolean);
47
- /** 是否展示使用金额 */
48
- showRedeem?: boolean;
49
- /** 是否展示余额 */
50
- showBalance?: boolean;
51
- /** 是否展示识别码编号 */
52
- showCode?: boolean;
53
- /** 是否展示有效期 */
54
- showValidDate?: boolean;
55
- /** 使用日程信息计算有效期 */
56
- validDateBySchedule?: boolean;
57
- /** 日程列表 */
58
- scheduleList?: any[];
59
- /** 是否展示右上角详情按钮 */
60
- showDetail?: boolean;
61
- /** 是否展示qrCode */
62
- showQrCode?: boolean;
63
- /** 是否展示封面 */
64
- showCover?: boolean;
65
- /** 是否展示余额货币符号 */
66
- showBalanceSymbol?: boolean;
67
- /** 展示操作按钮 */
68
- showActions?: boolean;
69
- /** 操作按钮配置 */
70
- actions?: {
71
- /** 按钮展示方式 */
72
- layout: 'expanded' | 'collapsed';
73
- /** detail 按钮配置 */
74
- detail?: {
75
- visible: boolean;
76
- iconColor: string;
77
- };
78
- /** edit按钮配置 */
79
- edit?: {
80
- visible: boolean;
81
- iconColor: string;
82
- dialogTitle: string;
83
- enableDialog: boolean;
84
- fields: {
85
- name: string;
86
- label: string;
87
- };
88
- };
89
- };
90
- /** 编辑编辑按钮后,弹窗展示之前 */
91
- beforeEdit?: (value: any) => Promise<any> | boolean | void;
92
- /** 编辑弹窗点击提交 */
93
- onConfirmEdit?: (value: any) => void;
94
- /** 编辑金额事件 */
95
- onConfirmEditAmount?: (value: number) => void;
96
- /** 详情按钮点击事件 */
97
- onDetail?: (data: {
98
- id: number;
99
- name: string;
100
- storeName: string;
101
- balance?: number;
102
- redeem?: number;
103
- code: string;
104
- validDate: string;
105
- originData?: any;
106
- }) => void;
107
- /** 是否使用外部详情处理(当为 true 且提供了 onDetail 时,不显示内部模态框) */
108
- useExternalDetail?: boolean;
109
- /** 单选或者多选 */
110
- mode?: 'multiple' | 'single';
111
- /** 是否展示选中图标 */
112
- showActiveIcon?: boolean;
113
- /** 开启编辑金额 */
114
- enableEditAmount?: boolean;
115
- /** 显示状态标识 */
116
- showStatus?: boolean;
117
- /** 名称标题字号字重颜色配置 */
118
- nameTitleStyle?: {
119
- fontSize: number;
120
- fontWeight: number;
121
- color: string;
122
- };
123
- /** 卡片状态 */
124
- cardStatus?: 'used' | 'expired' | 'disabled' | 'conflict' | 'lastPayment';
125
- /** 自定义余额格式化函数,如果提供则优先使用 */
126
- formatBalance?: (balance?: number, option?: FormatOption) => React.ReactNode;
127
- /** 自定义余额标题格式化函数,如果提供则优先使用 */
128
- formatBalanceTitle?: (balanceTitle?: string, option?: FormatOption) => React.ReactNode;
129
- /** 自定义使用金额格式化函数,如果提供则优先使用 */
130
- formatRedeem?: (redeem?: number, option?: FormatOption) => React.ReactNode;
131
- /** 自定义使用金额标题格式化函数,如果提供则优先使用 */
132
- formatRedeemTitle?: (redeemTitle?: string, option?: FormatOption) => React.ReactNode;
133
- /** 最大使用金额 */
134
- maxRedeem?: number;
135
- /** 编辑金额前事件 */
136
- onBeforeEditAmount?: (value: any) => Promise<any> | boolean | void;
137
- [key: string]: any;
138
- }
139
- declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => JSX.Element;
140
- export default PisellWalletPassCard;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { ProductCardTypes } from './types';
3
- import './index.less';
4
- declare const ProductCard: React.FC<ProductCardTypes> & {
5
- V2: any;
6
- };
7
- export default ProductCard;