@pisell/materials 1.0.783 → 1.0.785

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 (79) 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 +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/appVersionControl/index.d.ts +4 -0
  8. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +39 -0
  9. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +98 -0
  10. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +79 -0
  11. package/es/components/drag-sort-tree/index.d.ts +3 -0
  12. package/es/components/login-and-register/index.d.ts +82 -0
  13. package/es/components/pisell-config-provider/index.d.ts +12 -0
  14. package/es/components/pisellCardList/index.d.ts +71 -0
  15. package/es/components/pisellCheckboxGroup/index.d.ts +36 -0
  16. package/es/components/pisellEmpty/index.d.ts +19 -0
  17. package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  18. package/es/components/pisellInformationEntry/index.d.ts +33 -0
  19. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  20. package/es/components/pisellWalletPassCard/index.d.ts +83 -0
  21. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  22. package/es/components/productCard/components/Time/components/Like/index.d.ts +10 -0
  23. package/es/components/productCard/components/Time/components/Like/index.js +10 -9
  24. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +4 -0
  25. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -1
  26. package/es/components/productCard/components/Time/components/SelectResource/index.js +7 -8
  27. package/es/components/productCard/components/Time/index.js +5 -5
  28. package/es/components/productCard/locales.d.ts +54 -0
  29. package/es/components/productCard/types.d.ts +83 -0
  30. package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  31. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  32. package/es/components/table/Gallery/index.d.ts +5 -0
  33. package/es/components/table/Table/index.d.ts +4 -0
  34. package/es/components/table/Table/utils.d.ts +173 -0
  35. package/es/components/table/hooks/useTableSetting.d.ts +22 -0
  36. package/es/components/table/hooks/useTransDataSource.d.ts +12 -0
  37. package/es/components/table/types.d.ts +253 -0
  38. package/es/components/versionModal/index.d.ts +24 -0
  39. package/es/index.d.ts +141 -0
  40. package/es/locales/en-US.d.ts +276 -0
  41. package/es/locales/zh-CN.d.ts +271 -0
  42. package/es/locales/zh-TW.d.ts +271 -0
  43. package/lib/components/appVersionControl/index.d.ts +4 -0
  44. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +39 -0
  45. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +98 -0
  46. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +79 -0
  47. package/lib/components/drag-sort-tree/index.d.ts +3 -0
  48. package/lib/components/login-and-register/index.d.ts +82 -0
  49. package/lib/components/pisell-config-provider/index.d.ts +12 -0
  50. package/lib/components/pisellCardList/index.d.ts +71 -0
  51. package/lib/components/pisellCheckboxGroup/index.d.ts +36 -0
  52. package/lib/components/pisellEmpty/index.d.ts +19 -0
  53. package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  54. package/lib/components/pisellInformationEntry/index.d.ts +33 -0
  55. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  56. package/lib/components/pisellWalletPassCard/index.d.ts +83 -0
  57. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  58. package/lib/components/productCard/components/Time/components/Like/index.d.ts +10 -0
  59. package/lib/components/productCard/components/Time/components/Like/index.js +10 -9
  60. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +4 -0
  61. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -1
  62. package/lib/components/productCard/components/Time/components/SelectResource/index.js +21 -24
  63. package/lib/components/productCard/components/Time/index.js +5 -5
  64. package/lib/components/productCard/locales.d.ts +54 -0
  65. package/lib/components/productCard/types.d.ts +83 -0
  66. package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  67. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  68. package/lib/components/table/Gallery/index.d.ts +5 -0
  69. package/lib/components/table/Table/index.d.ts +4 -0
  70. package/lib/components/table/Table/utils.d.ts +173 -0
  71. package/lib/components/table/hooks/useTableSetting.d.ts +22 -0
  72. package/lib/components/table/hooks/useTransDataSource.d.ts +12 -0
  73. package/lib/components/table/types.d.ts +253 -0
  74. package/lib/components/versionModal/index.d.ts +24 -0
  75. package/lib/index.d.ts +141 -0
  76. package/lib/locales/en-US.d.ts +276 -0
  77. package/lib/locales/zh-CN.d.ts +271 -0
  78. package/lib/locales/zh-TW.d.ts +271 -0
  79. package/package.json +2 -2
@@ -0,0 +1,271 @@
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-app-version-control-version-create-title': string;
225
+ 'pisell-lowcode-drop-sort-add': string;
226
+ 'pisell-lowcode-navigation-menu-add-sub-menu': string;
227
+ 'pisell-lowcode-navigation-menu-add-page': string;
228
+ 'pisell-lowcode-navigation-menu-add-page-tip': string;
229
+ 'pisell-lowcode-navigation-menu-tag-base': string;
230
+ 'pisell-lowcode-navigation-menu-tag-pisell1': string;
231
+ 'pisell-data-source-form-app-identifier-pattern': string;
232
+ 'pisell-data-source-form-app-identifier-start-with-letter': string;
233
+ 'pisell-data-source-form-app-identifier-special-ends': string;
234
+ 'pisell-data-source-form-app-identifier-consecutive-special': string;
235
+ "qrscanner-loading": string;
236
+ "qrscanner-success": string;
237
+ "qrscanner-success-qrcode": string;
238
+ "qrscanner-success-barcode": string;
239
+ "qrscanner-error-upload-image": string;
240
+ "qrscanner-error-load-failed": string;
241
+ "qrscanner-error-no-code": string;
242
+ "qrscanner-error-camera-init": string;
243
+ "qrscanner-error-process-image": string;
244
+ 'pisell-login-and-register-title': string;
245
+ 'pisell-login-and-register-subtitle': string;
246
+ 'pisell-login-and-register-email-label': string;
247
+ 'pisell-login-and-register-email-placeholder': string;
248
+ 'pisell-login-and-register-password-label': string;
249
+ 'pisell-login-and-register-password-placeholder': string;
250
+ 'pisell-login-and-register-email-error': string;
251
+ 'pisell-login-and-register-email-error-valid': string;
252
+ 'pisell-login-and-register-password-error': string;
253
+ 'pisell-login-and-register-login': string;
254
+ 'pisell-login-and-register-google': string;
255
+ 'pisell-login-and-register-facebook': string;
256
+ 'pisell-login-and-register-apple': string;
257
+ 'pisell-login-and-register-sign-up': string;
258
+ 'pisell-login-and-register-login-tab': string;
259
+ 'pisell-login-and-register-register-tab': string;
260
+ 'pisell-login-and-register-register-email-placeholder': string;
261
+ 'pisell-login-and-register-register-password-placeholder': string;
262
+ 'pisell-login-and-register-register-button-text': string;
263
+ 'pisell-login-and-register-remember-me': string;
264
+ 'pisell-login-and-register-forgot-password': string;
265
+ 'pisell-login-and-register-register-password-error': string;
266
+ 'pisell-login-and-register-register-password-error-valid': string;
267
+ 'pisell2.text.goodpass.product-vouchers': string;
268
+ 'pisell2.text.goodpass.view-more': string;
269
+ 'pisell2.text.goodpass.save': string;
270
+ };
271
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { AppVersionControlProps } from './types';
2
+ import './index.less';
3
+ declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
4
+ export default AppVersionControl;
@@ -0,0 +1,39 @@
1
+ import { Drawer } from 'antd';
2
+ import React from 'react';
3
+ import { OperationItem } from '../type';
4
+ declare const useDrawerState: (operationContent?: {
5
+ [key: string]: React.ReactNode;
6
+ } | undefined) => {
7
+ drawerVisible: boolean;
8
+ setDrawerVisible: React.Dispatch<React.SetStateAction<boolean>>;
9
+ openDrawer: (item: OperationItem) => void;
10
+ closeDrawer: () => void;
11
+ drawerContent: React.ReactNode;
12
+ Container: {
13
+ (props: import("../../../pisellModal").PisellModalProps): JSX.Element;
14
+ confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
15
+ destroy: () => void;
16
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
17
+ };
18
+ info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
19
+ destroy: () => void;
20
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
+ };
22
+ error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
23
+ destroy: () => void;
24
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
25
+ };
26
+ warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
27
+ warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
28
+ destroy: () => void;
29
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
30
+ };
31
+ success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
32
+ destroy: () => void;
33
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
34
+ };
35
+ Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
36
+ } | typeof Drawer;
37
+ containerProps: {};
38
+ };
39
+ export default useDrawerState;
@@ -0,0 +1,98 @@
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
+ }
13
+ /**
14
+ * 处理table的props
15
+ * 转换title
16
+ * @param props
17
+ * @returns
18
+ */
19
+ declare const useTableProps: (props: UseTablePropsProps) => {
20
+ title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
21
+ pagination: {
22
+ total: number;
23
+ current: number;
24
+ pageSize: number;
25
+ size: string;
26
+ showSizeChanger: boolean;
27
+ };
28
+ columns: import("./useColumns").Column[];
29
+ subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
30
+ buttons: any[] | null;
31
+ filter: JSX.Element | null;
32
+ onRow: (record: any) => any;
33
+ actionButtons: any[] | null;
34
+ titleButtons?: {
35
+ show: boolean;
36
+ maxCount: number;
37
+ items: OperationItem[];
38
+ } | undefined;
39
+ tableButtons?: {
40
+ show: boolean;
41
+ maxCount: number;
42
+ items: OperationItem[];
43
+ } | undefined;
44
+ operation?: {
45
+ show: boolean;
46
+ title: string; /**
47
+ * 处理table的props
48
+ * 转换title
49
+ * @param props
50
+ * @returns
51
+ */
52
+ width: number;
53
+ align: "center" | "left" | "right";
54
+ fixed: false | "left" | "right";
55
+ type: "button" | "link";
56
+ items: OperationItem[];
57
+ } | undefined;
58
+ operationContent?: {
59
+ [key: string]: React.ReactNode;
60
+ } | undefined;
61
+ dataSource: import("../../provider/dataSource/DataSourceContext").DataSourceType;
62
+ search?: {
63
+ show: boolean;
64
+ placeholder: string;
65
+ } | undefined;
66
+ __designMode: string;
67
+ componentId: string;
68
+ clickToDetail?: {
69
+ show: boolean;
70
+ useCustomAction: boolean;
71
+ actionType: string;
72
+ openMode: "modal" | "drawer";
73
+ openContentSize: "small" | "large" | "middle";
74
+ openTitle: string;
75
+ key: string;
76
+ } | undefined;
77
+ filterBy?: Record<string, any> | undefined;
78
+ sortBy: string;
79
+ tabs?: {
80
+ show: boolean;
81
+ type: string;
82
+ items: {
83
+ name: string;
84
+ filterBy: Record<string, any>;
85
+ sortBy: string;
86
+ }[];
87
+ } | undefined;
88
+ onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
89
+ onDeleteFinish?: ((record: Record<string, any>) => void) | undefined;
90
+ extraParams?: {
91
+ list?: Record<string, any> | undefined;
92
+ get?: Record<string, any> | undefined;
93
+ update?: Record<string, any> | undefined;
94
+ create?: Record<string, any> | undefined;
95
+ destroy?: Record<string, any> | undefined;
96
+ } | undefined;
97
+ };
98
+ export default useTableProps;
@@ -0,0 +1,79 @@
1
+ /// <reference types="react" />
2
+ import { ColumnType } from 'antd/es/table';
3
+ import { DataSourceType } from '../provider/dataSource/DataSourceContext';
4
+ export declare type OperationItem = {
5
+ label?: string;
6
+ openMode: 'modal' | 'drawer' | 'custom';
7
+ openContentSize: 'small' | 'middle' | 'large';
8
+ openTitle: string;
9
+ actionType: 'detail' | 'edit' | 'delete' | 'custom';
10
+ key: string;
11
+ buttonProps?: any;
12
+ onClick?: (record: any) => void;
13
+ };
14
+ export interface DataSourceTableProps {
15
+ title?: string | React.ReactNode | (() => React.ReactNode);
16
+ subTitle?: string | React.ReactNode | (() => React.ReactNode);
17
+ titleButtons?: {
18
+ show: boolean;
19
+ maxCount: number;
20
+ items: OperationItem[];
21
+ };
22
+ tableButtons?: {
23
+ show: boolean;
24
+ maxCount: number;
25
+ items: OperationItem[];
26
+ };
27
+ buttons?: any[];
28
+ operation?: {
29
+ show: boolean;
30
+ title: string;
31
+ width: number;
32
+ align: 'left' | 'center' | 'right';
33
+ fixed: 'left' | 'right' | false;
34
+ type: 'link' | 'button';
35
+ items: OperationItem[];
36
+ };
37
+ operationContent?: {
38
+ [key: string]: React.ReactNode;
39
+ };
40
+ dataSource: DataSourceType;
41
+ columns: ColumnType<any>[];
42
+ filter: any;
43
+ search?: {
44
+ show: boolean;
45
+ placeholder: string;
46
+ };
47
+ __designMode: string;
48
+ componentId: string;
49
+ clickToDetail?: {
50
+ show: boolean;
51
+ useCustomAction: boolean;
52
+ actionType: string;
53
+ openMode: 'modal' | 'drawer';
54
+ openContentSize: 'small' | 'middle' | 'large';
55
+ openTitle: string;
56
+ key: string;
57
+ };
58
+ onRow?: any;
59
+ filterBy?: Record<string, any>;
60
+ sortBy: string;
61
+ tabs?: {
62
+ show: boolean;
63
+ type: string;
64
+ items: {
65
+ name: string;
66
+ filterBy: Record<string, any>;
67
+ sortBy: string;
68
+ }[];
69
+ };
70
+ onValuesChange?: (changedValues: any, values: any) => void;
71
+ onDeleteFinish?: (record: Record<string, any>) => void;
72
+ extraParams?: {
73
+ list?: Record<string, any>;
74
+ get?: Record<string, any>;
75
+ update?: Record<string, any>;
76
+ create?: Record<string, any>;
77
+ destroy?: Record<string, any>;
78
+ };
79
+ }
@@ -0,0 +1,3 @@
1
+ import { SortType } from './types';
2
+ declare const DragSortTree: (props: SortType) => JSX.Element;
3
+ export default DragSortTree;
@@ -0,0 +1,82 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ /**
4
+ * loginAndRegister组件的属性接口
5
+ */
6
+ export interface loginAndRegisterProps {
7
+ /** Logo相关配置 */
8
+ showLogo?: boolean;
9
+ logo?: string;
10
+ logoPosition?: 'left' | 'center' | 'right';
11
+ logoSize?: {
12
+ width?: number;
13
+ height?: number;
14
+ };
15
+ /** 标题相关配置 */
16
+ title?: string;
17
+ showTitle?: boolean;
18
+ titleAlign?: 'left' | 'center' | 'right';
19
+ /** 副标题相关配置 */
20
+ subtitle?: string;
21
+ showSubtitle?: boolean;
22
+ subtitleAlign?: 'left' | 'center' | 'right';
23
+ /** 登录方式配置 */
24
+ loginMethods?: ('email' | 'google' | 'facebook' | 'apple')[];
25
+ defaultLoginMethod?: 'email' | 'google' | 'facebook' | 'apple';
26
+ /** 表单配置 */
27
+ emailLabel?: string;
28
+ passwordLabel?: string;
29
+ emailPlaceholder?: string;
30
+ passwordPlaceholder?: string;
31
+ emailRules?: any[];
32
+ buttonText?: string;
33
+ rememberMeText?: string;
34
+ forgotPasswordText?: string;
35
+ showRememberMe?: boolean;
36
+ showForgotPassword?: boolean;
37
+ /** 社交登录配置 */
38
+ socialLoginTexts?: {
39
+ google?: string;
40
+ facebook?: string;
41
+ apple?: string;
42
+ };
43
+ /** 底部配置 */
44
+ showFooter?: boolean;
45
+ showSignUp?: boolean;
46
+ signUpText?: string;
47
+ signUpLink?: string;
48
+ signUpPosition?: 'left' | 'center' | 'right';
49
+ otherLinks?: Array<{
50
+ text: string;
51
+ url: string;
52
+ }>;
53
+ otherLinksPosition?: 'left' | 'center' | 'right';
54
+ /** 登录/注册切换配置 */
55
+ showTabs?: boolean;
56
+ loginTabText?: string;
57
+ registerTabText?: string;
58
+ /** 注册表单配置 */
59
+ registerEmailPlaceholder?: string;
60
+ registerPasswordPlaceholder?: string;
61
+ registerButtonText?: string;
62
+ /** 事件回调 */
63
+ onLogin?: (values: {
64
+ email: string;
65
+ loginMethod: string;
66
+ }) => void;
67
+ onSocialLogin?: (type: 'google' | 'facebook' | 'apple') => void;
68
+ onSignUp?: () => void;
69
+ onRegister?: (values: {
70
+ email: string;
71
+ password: string;
72
+ }) => void;
73
+ /** 新增背景图片属性 */
74
+ backgroundImage?: string;
75
+ }
76
+ /**
77
+ * Saas登录组件
78
+ * @param props - 组件属性
79
+ * @returns React组件
80
+ */
81
+ declare const loginAndRegister: React.FC<loginAndRegisterProps>;
82
+ export default loginAndRegister;
@@ -0,0 +1,12 @@
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;
@@ -0,0 +1,71 @@
1
+ import React from 'react';
2
+ import { PisellCheckboxGroupProps } from '../pisellCheckboxGroup';
3
+ import { PisellContextType } from '../pisell-config-provider/context';
4
+ import { PisellWalletPassCardProps } 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
+ showDetail?: boolean;
36
+ /** 是否展示二维码 */
37
+ showQrCode?: boolean;
38
+ /** 是否展示封面图 */
39
+ showCover?: boolean;
40
+ /** 是否余额货币单位 */
41
+ showBalanceSymbol?: boolean;
42
+ /** 卡片大小 */
43
+ type?: 'default' | 'mini';
44
+ /** 展示操作按钮 */
45
+ showActions?: boolean;
46
+ /** 操作按钮配置 */
47
+ actions?: {
48
+ /** 按钮展示方式 */
49
+ layout: 'expanded' | 'collapsed';
50
+ /** detail 按钮配置 */
51
+ detail?: {
52
+ visible: boolean;
53
+ iconColor: string;
54
+ };
55
+ /** edit按钮配置 */
56
+ edit?: {
57
+ visible: boolean;
58
+ iconColor: string;
59
+ dialogTitle: string;
60
+ enableDialog: boolean;
61
+ fields: {
62
+ name: string;
63
+ label: string;
64
+ };
65
+ };
66
+ };
67
+ /** 编辑弹窗点击提交 */
68
+ onConfirmEdit?: (value: any, index: number) => void;
69
+ }
70
+ declare const _default: React.NamedExoticComponent<PisellCardListProps>;
71
+ export default _default;