@pisell/materials 6.2.39 → 6.2.40

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 (82) 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 +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +36 -21
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +35 -20
  11. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +23 -12
  12. package/es/components/dataSourceComponents/fields/Upload/BaseUpload.js +199 -19
  13. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.js +66 -0
  14. package/es/components/dataSourceComponents/fields/Upload/index.less +35 -3
  15. package/es/components/filter/types.d.ts +1 -0
  16. package/es/components/pisellCamera/index.js +228 -0
  17. package/es/components/pisellCamera/index.less +131 -0
  18. package/es/components/pisellWalletPassCard/index.d.ts +1 -0
  19. package/es/components/pisellWalletPassCard/index.js +6 -1
  20. package/es/components/table/hooks/useTableSetting.js +1 -1
  21. package/es/components/walletCard/index.js +29 -3
  22. package/es/components/walletCard/index.less +27 -0
  23. package/es/locales/en-US.js +83 -69
  24. package/es/locales/zh-CN.js +84 -70
  25. package/es/locales/zh-TW.js +84 -70
  26. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +10 -4
  27. package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.js +168 -5
  28. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.js +95 -0
  29. package/lib/components/dataSourceComponents/fields/Upload/index.less +35 -3
  30. package/lib/components/filter/types.d.ts +1 -0
  31. package/lib/components/pisellCamera/index.js +222 -0
  32. package/lib/components/pisellCamera/index.less +131 -0
  33. package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
  34. package/lib/components/pisellWalletPassCard/index.js +9 -1
  35. package/lib/components/table/hooks/useTableSetting.js +1 -1
  36. package/lib/components/walletCard/index.js +27 -3
  37. package/lib/components/walletCard/index.less +27 -0
  38. package/lib/locales/en-US.js +15 -1
  39. package/lib/locales/zh-CN.js +15 -1
  40. package/lib/locales/zh-TW.js +15 -1
  41. package/lowcode/data-source-table/meta.ts +119 -66
  42. package/lowcode/form-item-upload/meta.ts +20 -5
  43. package/lowcode/pisell-upload/meta.ts +8 -0
  44. package/lowcode/pisell-wallet-pass-card/meta.ts +19 -0
  45. package/lowcode/wallet-card/meta.ts +81 -63
  46. package/package.json +4 -3
  47. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -97
  48. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +0 -37
  49. package/es/components/pisell-config-provider/context.d.ts +0 -20
  50. package/es/components/pisell-config-provider/index.d.ts +0 -12
  51. package/es/components/pisellAdjustPrice/index.d.ts +0 -4
  52. package/es/components/pisellAdjustPrice/type.d.ts +0 -20
  53. package/es/components/pisellCheckboxGroup/index.d.ts +0 -37
  54. package/es/components/pisellQRScanner/index.d.ts +0 -37
  55. package/es/components/pisellText/components/Amount/index.d.ts +0 -20
  56. package/es/components/table/Table/AddFieldModal/index.d.ts +0 -3
  57. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -11
  58. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -21
  59. package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
  60. package/es/components/virtual-keyboard/Number/types.d.ts +0 -25
  61. package/es/components/walletCard/index.d.ts +0 -67
  62. package/es/locales/en-US.d.ts +0 -278
  63. package/es/locales/zh-CN.d.ts +0 -273
  64. package/es/locales/zh-TW.d.ts +0 -273
  65. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -97
  66. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +0 -37
  67. package/lib/components/pisell-config-provider/context.d.ts +0 -20
  68. package/lib/components/pisell-config-provider/index.d.ts +0 -12
  69. package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
  70. package/lib/components/pisellAdjustPrice/type.d.ts +0 -20
  71. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -37
  72. package/lib/components/pisellQRScanner/index.d.ts +0 -37
  73. package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
  74. package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -3
  75. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -11
  76. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -21
  77. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
  78. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -25
  79. package/lib/components/walletCard/index.d.ts +0 -67
  80. package/lib/locales/en-US.d.ts +0 -278
  81. package/lib/locales/zh-CN.d.ts +0 -273
  82. package/lib/locales/zh-TW.d.ts +0 -273
@@ -1,273 +0,0 @@
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-what-price': string;
51
- 'batch-editor-quick-edit': 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-confirm': string;
128
- 'pisell-wallet-pass-card-cancel': string;
129
- 'pisell-wallet-pass-card-required': string;
130
- 'pisell-wallet-pass-card-expireDate': string;
131
- 'pisell-adjust-price-price-override': string;
132
- 'pisell-adjust-price-discount': string;
133
- 'pisell-adjust-price-discount-amount': string;
134
- 'pisell-adjust-price-discount-percentage': string;
135
- 'pisell-adjust-price-total-after-discount': string;
136
- 'pisell-adjust-price-discount-can-be-maximum': string;
137
- 'pisell-discount-card-title': string;
138
- 'pisell-discount-card-unit': string;
139
- 'pisell-data-source-table-add': string;
140
- 'pisell-data-source-table-edit': string;
141
- 'pisell-data-source-table-detail': string;
142
- 'pisell-data-source-table-delete': string;
143
- 'pisell-record-view-available': string;
144
- 'pisell-record-view-unavailable': string;
145
- 'pisell-data-source-form-required-message': string;
146
- 'pisell-data-source-form-email-message': string;
147
- 'pisell-data-source-form-domain-message': string;
148
- 'pisell-data-source-form-url-message': string;
149
- 'pisell-data-source-form-phone-message': string;
150
- 'pisell-data-source-form-min-length-message': (minLength: number) => string;
151
- 'pisell-data-source-form-max-length-message': (maxLength: number) => string;
152
- 'pisell-data-source-form-min-value-message': (minValue: number) => string;
153
- 'pisell-data-source-form-max-value-message': (maxValue: number) => string;
154
- 'pisell-data-source-form-mobile-message': string;
155
- 'pisell-number-format-thousand': string;
156
- 'pisell-number-format-million': string;
157
- 'pisell-number-format-billion': string;
158
- 'walletCard-done': string;
159
- 'walletCard-qrcode': string;
160
- 'walletCard-barcode': string;
161
- 'pisell-upload-button': string;
162
- 'pisell-upload-setting-size-error': (maxSize: number) => string;
163
- 'pisell-upload-setting-type-error': (type: string) => string;
164
- 'pisell-upload-count-error': (count: number) => string;
165
- 'pisell-upload-error': (name: string) => string;
166
- 'pisell-upload-multilingual-title': string;
167
- 'pisell-upload-multilingual-item-title-original': string;
168
- 'pisell-upload-multilingual-item-title-en': string;
169
- 'pisell-upload-multilingual-item-title-zh-CN': string;
170
- 'pisell-upload-multilingual-item-title-zh-HK': string;
171
- 'pisell-color-picker-default': string;
172
- 'pisell-action-get-data': string;
173
- 'pisell-action-delete-success': string;
174
- 'pisell-action-delete-failed': string;
175
- 'walletCard-piont': string;
176
- 'walletCard-rechargeable': string;
177
- 'walletCard-voucher': string;
178
- 'walletCard-discount': string;
179
- 'pisellQrcode-done': string;
180
- 'pisellQrcode-qrcode': string;
181
- 'pisell-delete-confirm-title': string;
182
- 'pisell-delete-confirm-content': string;
183
- 'pisell-delete-confirm-ok': string;
184
- 'pisell-delete-confirm-cancel': string;
185
- 'pisell-design-mode-action-disabled': string;
186
- 'pisell-translation-original': string;
187
- 'pisell-version-modal-title': string;
188
- 'pisell-version-modal-current-version': string;
189
- 'pisell-version-modal-version': string;
190
- 'pisell-version-modal-update-notes': string;
191
- 'pisell-version-modal-patch': string;
192
- 'pisell-version-modal-minor': string;
193
- 'pisell-version-modal-major': string;
194
- 'pisell-version-modal-custom': string;
195
- 'pisell-version-modal-cancel': string;
196
- 'pisell-version-modal-confirm': string;
197
- 'pisell-version-modal-describe-update-notes': string;
198
- 'pisell-version-modal-version-error': string;
199
- 'pisell-version-modal-version-required': string;
200
- 'pisell-version-modal-based-on-version': string;
201
- 'subdomain-error-too-short': string;
202
- 'subdomain-error-too-long': string;
203
- 'subdomain-error-pattern': string;
204
- 'subdomain-error-numbers-only': string;
205
- 'subdomain-error-hyphen-ends': string;
206
- 'subdomain-error-consecutive-hyphens': string;
207
- 'pisell-icon-select-placeholder': string;
208
- 'pisell-icon-select-outlined': string;
209
- 'pisell-icon-select-filled': string;
210
- 'pisell-icon-select-two-tone': string;
211
- 'pisell-icon-select-iconfont': string;
212
- 'pisell-icon-select-search': string;
213
- 'pisell-icon-select-select': string;
214
- 'pisell-lowcode-app-version-control-live': string;
215
- 'pisell-lowcode-app-version-control-draft': string;
216
- 'pisell-lowcode-app-version-control-deprecated': string;
217
- 'pisell-lowcode-app-version-control-new-version': string;
218
- 'pisell-lowcode-app-version-control-promote-to-live': string;
219
- 'pisell-lowcode-app-version-control-promote-version': (version: string) => string;
220
- 'pisell-lowcode-app-version-control-promote-version-describe': string;
221
- 'pisell-lowcode-app-version-control-promote-version-ok': string;
222
- 'pisell-lowcode-app-version-control-promote-version-cancel': string;
223
- 'pisell-lowcode-app-version-control-version-exists': string;
224
- 'pisell-lowcode-drop-sort-add': string;
225
- 'pisell-lowcode-navigation-menu-add-sub-menu': string;
226
- 'pisell-lowcode-navigation-menu-add-page': string;
227
- 'pisell-lowcode-navigation-menu-add-page-tip': string;
228
- 'pisell-lowcode-navigation-menu-tag-base': string;
229
- 'pisell-lowcode-navigation-menu-tag-proCode': string;
230
- 'pisell-lowcode-navigation-menu-tag-pisell1': string;
231
- 'pisell-lowcode-navigation-menu-tag-group': string;
232
- 'pisell-lowcode-navigation-menu-tag-sub-menu': string;
233
- 'pisell-lowcode-navigation-menu-tag-custom': string;
234
- 'pisell-data-source-form-app-identifier-pattern': string;
235
- 'pisell-data-source-form-app-identifier-start-with-letter': string;
236
- 'pisell-data-source-form-app-identifier-special-ends': string;
237
- 'pisell-data-source-form-app-identifier-consecutive-special': string;
238
- "qrscanner-loading": string;
239
- "qrscanner-success": string;
240
- "qrscanner-success-qrcode": string;
241
- "qrscanner-success-barcode": string;
242
- "qrscanner-error-upload-image": string;
243
- "qrscanner-error-load-failed": string;
244
- "qrscanner-error-no-code": string;
245
- "qrscanner-error-camera-init": string;
246
- "qrscanner-error-process-image": string;
247
- 'pisell-login-and-register-title': string;
248
- 'pisell-login-and-register-subtitle': string;
249
- 'pisell-login-and-register-email-label': string;
250
- 'pisell-login-and-register-email-placeholder': string;
251
- 'pisell-login-and-register-password-label': string;
252
- 'pisell-login-and-register-password-placeholder': string;
253
- 'pisell-login-and-register-email-error': string;
254
- 'pisell-login-and-register-email-error-valid': string;
255
- 'pisell-login-and-register-password-error': string;
256
- 'pisell-login-and-register-login': string;
257
- 'pisell-login-and-register-google': string;
258
- 'pisell-login-and-register-facebook': string;
259
- 'pisell-login-and-register-apple': string;
260
- 'pisell-login-and-register-sign-up': string;
261
- 'pisell-login-and-register-login-tab': string;
262
- 'pisell-login-and-register-register-tab': string;
263
- 'pisell-login-and-register-register-email-placeholder': string;
264
- 'pisell-login-and-register-register-password-placeholder': string;
265
- 'pisell-login-and-register-register-button-text': string;
266
- 'pisell-login-and-register-remember-me': string;
267
- 'pisell-login-and-register-forgot-password': string;
268
- 'pisell2.text.goodpass.product-vouchers': string;
269
- 'pisell2.text.goodpass.last-settlement': string;
270
- 'pisell2.text.goodpass.view-more': string;
271
- 'pisell2.text.goodpass.save': string;
272
- };
273
- export default _default;
@@ -1,97 +0,0 @@
1
- import React from 'react';
2
- import { DataSourceTableProps } from '../type';
3
- import { OperationItem } from '../type';
4
- interface UseTablePropsProps {
5
- data: any;
6
- originProps: DataSourceTableProps;
7
- openDrawer: (type: OperationItem) => void;
8
- closeDrawer: () => void;
9
- refreshData: () => void;
10
- handleFilterChange: (changedFields: any, allFields: any) => void;
11
- tableRef: any;
12
- getInitialValues: () => Record<string, any>;
13
- }
14
- /**
15
- * 处理table的props
16
- * 转换title
17
- * @param props
18
- * @returns
19
- */
20
- declare const useTableProps: (props: UseTablePropsProps) => {
21
- currentComponentId: any;
22
- title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
23
- pagination: {
24
- total: number;
25
- current: number;
26
- pageSize: number;
27
- size: string;
28
- showSizeChanger: boolean;
29
- };
30
- columns: import("./useColumns").Column[];
31
- subTitle: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
32
- buttons: any[] | null;
33
- filter: any;
34
- onRow: (record: any) => any;
35
- actionButtons: any[] | null;
36
- __id?: string | undefined;
37
- currentSettingKey?: string | undefined;
38
- titleButtons?: {
39
- show: boolean;
40
- maxCount: number;
41
- items: OperationItem[];
42
- } | undefined;
43
- tableButtons?: {
44
- show: boolean;
45
- maxCount: number;
46
- items: OperationItem[];
47
- } | undefined;
48
- operation?: {
49
- show: boolean;
50
- title: string;
51
- width: number;
52
- align: "center" | "left" | "right";
53
- fixed: false | "left" | "right";
54
- type: "button" | "link";
55
- items: OperationItem[];
56
- } | undefined;
57
- operationContent?: {
58
- [key: string]: React.ReactNode;
59
- } | undefined;
60
- dataSource: import("../../provider/dataSource/DataSourceContext").DataSourceType;
61
- search?: {
62
- show: boolean;
63
- placeholder: string;
64
- } | undefined;
65
- __designMode: string;
66
- componentId: string;
67
- clickToDetail?: {
68
- show: boolean;
69
- useCustomAction: boolean;
70
- actionType: string;
71
- openMode: "modal" | "drawer";
72
- openContentSize: "small" | "middle" | "large";
73
- openTitle: string;
74
- key: string;
75
- } | undefined;
76
- filterBy?: Record<string, any> | undefined;
77
- sortBy: string;
78
- tabs?: {
79
- show: boolean;
80
- type: string;
81
- items: {
82
- name: string;
83
- filterBy: Record<string, any>;
84
- sortBy: string;
85
- }[];
86
- } | undefined;
87
- onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
88
- extraParams?: {
89
- list?: Record<string, any> | undefined;
90
- get?: Record<string, any> | undefined;
91
- update?: Record<string, any> | undefined;
92
- create?: Record<string, any> | undefined;
93
- destroy?: Record<string, any> | undefined;
94
- } | undefined;
95
- localSettings?: import("../../../table/types").LocalSettingsType | undefined;
96
- };
97
- export default useTableProps;
@@ -1,37 +0,0 @@
1
- import { UploadFile as AntdUploadFile } from 'antd/es/upload/interface';
2
- import type { UploadValue, UploadChangeHandler } from './types';
3
- export interface UploadFile extends AntdUploadFile {
4
- metadata?: {
5
- width?: number;
6
- height?: number;
7
- duration?: number;
8
- bitrate?: number;
9
- };
10
- }
11
- export interface UploadProps {
12
- renderMode?: string;
13
- fieldKey: string;
14
- maxSize?: number;
15
- minCount?: number;
16
- maxCount?: number;
17
- multiple?: boolean;
18
- presetType?: string[];
19
- presetTypeString?: string[];
20
- customType?: string[];
21
- enablePresetType?: boolean;
22
- enableCustomType?: boolean;
23
- allowPreview?: boolean;
24
- value?: UploadValue;
25
- typeMaxSizeMap?: Record<string, number>;
26
- enableMultilingual?: boolean;
27
- onChange?: UploadChangeHandler;
28
- disabled?: boolean;
29
- mediaUploadUrl?: string;
30
- getHeaders?: () => Record<string, string>;
31
- mediaConfig?: {
32
- data: {
33
- upload_onetime_limit: number;
34
- upload_maxsize: number;
35
- };
36
- };
37
- }
@@ -1,20 +0,0 @@
1
- /// <reference types="react" />
2
- export interface PisellContextType {
3
- platform: 'h5' | 'pc' | 'ipad';
4
- /** 货币符号 */
5
- symbol?: string;
6
- /** 当前语言环境 */
7
- locale?: string;
8
- }
9
- export declare const PisellContext: import("react").Context<PisellContextType>;
10
- /**
11
- * provider外获取当前全局配置
12
- */
13
- declare class GlobalConfig {
14
- private config;
15
- constructor();
16
- setConfig(config: PisellContextType): void;
17
- getConfig(): PisellContextType;
18
- }
19
- export declare const globalConfig: GlobalConfig;
20
- export default PisellContext;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from './context';
3
- interface PisellConfigProviderType {
4
- platform?: PisellContextType['platform'];
5
- children: React.ReactNode;
6
- /** 货币符号 */
7
- symbol?: string;
8
- /** 当前语言环境 */
9
- locale?: string;
10
- }
11
- declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
12
- export default PisellConfigProvider;
@@ -1,4 +0,0 @@
1
- import './index.less';
2
- import { PisellAdjustPriceProps } from './type';
3
- declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
4
- export default PisellAdjustPrice;
@@ -1,20 +0,0 @@
1
- export interface PisellAdjustPriceProps {
2
- value?: number;
3
- originValue: number;
4
- defaultValue?: number;
5
- onChange?: (val: number) => void;
6
- selectType?: 'light' | 'dark';
7
- backgroundColor?: string;
8
- containerBackgroundColor?: string;
9
- buttonBackgroundColor?: string;
10
- textColor?: string;
11
- resetButtonBackgroundColor?: string;
12
- resetButtonTextColor?: string;
13
- isDoneButtonFollowTheme?: boolean;
14
- doneButtonBackgroundColor?: string;
15
- doneButtonTextColor?: string;
16
- isShowMainText?: boolean;
17
- mainTextColor?: string;
18
- isShowSubText?: boolean;
19
- subTextColor?: string;
20
- }
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from '../pisell-config-provider/context';
3
- import './index.less';
4
- export interface PisellCheckboxGroupOption {
5
- label: string;
6
- value: string;
7
- disabled?: boolean;
8
- [key: string]: any;
9
- }
10
- declare type PisellCheckboxGroupValue = string | string[] | any;
11
- export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
12
- platform?: PisellContextType['platform'];
13
- direction?: 'horizontal' | 'vertical';
14
- fullWidth?: boolean;
15
- gap?: number;
16
- padding?: number;
17
- options: PisellCheckboxGroupOption[];
18
- onChange?: (value: PisellCheckboxGroupValue, item: PisellCheckboxGroupOption) => void;
19
- value?: PisellCheckboxGroupValue;
20
- renderOption?: (option: PisellCheckboxGroupOption, active: boolean, index: number) => React.ReactNode;
21
- rowKey?: string;
22
- mode?: 'multiple' | 'single';
23
- iconPosition?: 'left' | 'right' | 'hide';
24
- optionClassName?: string;
25
- optionActiveClassName?: string;
26
- onChangeDebounce?: boolean;
27
- }
28
- /**
29
- * @title: PisellCheckboxGroup
30
- * @description: 选中组件
31
- * @param {PisellCheckboxGroupProps} props
32
- * @return {*}
33
- * @Author: zhiwei.Wang
34
- * @Date: 2024-08-16 10:34
35
- */
36
- declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) => JSX.Element;
37
- export default PisellCheckboxGroup;
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- import type { DetailedHTMLProps, HTMLAttributes, VideoHTMLAttributes, InputHTMLAttributes } from 'react';
4
- declare type ExtendedDetailedHTMLProps<T extends HTMLAttributes<E>, E extends HTMLElement> = DetailedHTMLProps<T, E> & {
5
- children?: React.ReactNode;
6
- };
7
- declare global {
8
- namespace JSX {
9
- interface IntrinsicElements {
10
- div: ExtendedDetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
11
- video: DetailedHTMLProps<VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
12
- input: DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
13
- }
14
- }
15
- }
16
- export interface PisellQRScannerProps {
17
- /** 是否可见 */
18
- visible: boolean;
19
- /** 是否显示上传图片按钮 */
20
- showUpload?: boolean;
21
- /** 关闭回调 */
22
- onClose: () => void;
23
- /** 扫码成功回调 */
24
- onScan: (value: string) => void;
25
- /**
26
- * 样式属性,可选
27
- * 注意: 不应传入renderMode等不必要属性
28
- */
29
- style?: React.CSSProperties;
30
- /** 类名,可选 */
31
- className?: string;
32
- }
33
- /**
34
- * 二维码扫描组件
35
- */
36
- declare const PisellQRScanner: React.FC<PisellQRScannerProps>;
37
- export default PisellQRScanner;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from '../../../pisell-config-provider/context';
3
- export interface AmountProps extends React.HTMLAttributes<HTMLSpanElement> {
4
- /** 平台 */
5
- platform?: PisellContextType['platform'];
6
- /** 当前数值 */
7
- value?: number | string;
8
- /** 小数点后位数 默认是小数点后2位 */
9
- precision?: number;
10
- /** 显示货币符号 指的是 ¥$ 等货币符号等显隐,默认是展示 */
11
- showCurrencySymbol?: boolean;
12
- /** 千分位 指的是长金额的千分位逗号隔开,比如“123, 245, 315” 这种展现形式,默认是关闭 */
13
- useThousandsSeparator?: boolean;
14
- /** 整数位隐藏小数 指的是如果价格为整数,后面的".00" 将被省略以节省页面空间 */
15
- hideDecimalForWholeNumbers?: boolean;
16
- /** 货币符号 */
17
- symbol?: string;
18
- }
19
- declare const Amount: (props: AmountProps) => JSX.Element;
20
- export default Amount;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const AddFieldModal: React.FC;
3
- export default AddFieldModal;
@@ -1,11 +0,0 @@
1
- import "./Presets.less";
2
- export declare type PresetsItem = {
3
- label: string;
4
- value: number | string;
5
- };
6
- export interface PresetsProps {
7
- presets?: PresetsItem[];
8
- onChange: (val: string) => void;
9
- }
10
- declare const Presets: (props: PresetsProps) => JSX.Element | null;
11
- export default Presets;
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { PresetsProps } from './Presets';
3
- import { RightItemsStyleProps } from '../Amount';
4
- import './index.less';
5
- export interface BaseNumberKeyboardProps {
6
- placeholder?: string;
7
- format?: (val: string) => React.ReactNode;
8
- defaultValue?: string | number;
9
- doneText?: string;
10
- resetText?: string;
11
- onChange?: (val: string) => void;
12
- onEnter?: (val: string) => void;
13
- value?: string | number;
14
- max?: number;
15
- min?: number;
16
- presets?: PresetsProps['presets'];
17
- defaultSelect?: boolean;
18
- rightItemsStyle?: RightItemsStyleProps;
19
- }
20
- declare const BaseNumberKeyboard: (props: BaseNumberKeyboardProps) => JSX.Element;
21
- export default BaseNumberKeyboard;
@@ -1,5 +0,0 @@
1
- import { NumberProps } from './types';
2
- import './index.less';
3
- export type { NumberProps };
4
- declare const Number: (props: NumberProps) => JSX.Element;
5
- export default Number;
@@ -1,25 +0,0 @@
1
- export interface NumberProps {
2
- max?: number;
3
- min?: number;
4
- doneText?: string;
5
- resetText: string;
6
- defaultValue?: string | number;
7
- placeholder?: string;
8
- value?: string | number;
9
- onChange?: (val: string | number) => void;
10
- onEnter?: (val: string | number) => void;
11
- selectType?: 'light' | 'dark';
12
- backgroundColor?: string;
13
- containerBackgroundColor?: string;
14
- buttonBackgroundColor?: string;
15
- textColor?: string;
16
- resetButtonBackgroundColor?: string;
17
- resetButtonTextColor?: string;
18
- isDoneButtonFollowTheme?: boolean;
19
- doneButtonBackgroundColor?: string;
20
- doneButtonTextColor?: string;
21
- keyboardBackgroundColor?: string;
22
- keyboardButtonBackgroundColor?: string;
23
- keyboardButtonTextColor?: string;
24
- keyboardButtonHoverColor?: string;
25
- }