@next-bricks/advanced 0.50.5 → 0.50.7

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.
package/dist/types.json CHANGED
@@ -1,238 +1,4 @@
1
1
  {
2
- "eo-workbench-layout": {
3
- "properties": [
4
- {
5
- "name": "cardTitle",
6
- "annotation": {
7
- "type": "keyword",
8
- "value": "string"
9
- }
10
- },
11
- {
12
- "name": "isEdit",
13
- "annotation": {
14
- "type": "keyword",
15
- "value": "boolean"
16
- }
17
- },
18
- {
19
- "name": "layouts",
20
- "annotation": {
21
- "type": "array",
22
- "elementType": {
23
- "type": "reference",
24
- "typeName": {
25
- "type": "identifier",
26
- "name": "Layout"
27
- }
28
- }
29
- }
30
- },
31
- {
32
- "name": "componentList",
33
- "annotation": {
34
- "type": "array",
35
- "elementType": {
36
- "type": "reference",
37
- "typeName": {
38
- "type": "identifier",
39
- "name": "Item"
40
- }
41
- }
42
- }
43
- }
44
- ],
45
- "events": [
46
- {
47
- "name": "change",
48
- "detail": {
49
- "annotation": {
50
- "type": "array",
51
- "elementType": {
52
- "type": "reference",
53
- "typeName": {
54
- "type": "identifier",
55
- "name": "Layout"
56
- }
57
- }
58
- }
59
- }
60
- },
61
- {
62
- "name": "save",
63
- "detail": {
64
- "annotation": {
65
- "type": "array",
66
- "elementType": {
67
- "type": "reference",
68
- "typeName": {
69
- "type": "identifier",
70
- "name": "Layout"
71
- }
72
- }
73
- }
74
- }
75
- },
76
- {
77
- "name": "cancel",
78
- "detail": {
79
- "annotation": {
80
- "type": "keyword",
81
- "value": "void"
82
- }
83
- }
84
- },
85
- {
86
- "name": "action.click",
87
- "detail": {
88
- "annotation": {
89
- "type": "typeLiteral",
90
- "members": [
91
- {
92
- "type": "propertySignature",
93
- "key": {
94
- "type": "identifier",
95
- "name": "action"
96
- },
97
- "annotation": {
98
- "type": "reference",
99
- "typeName": {
100
- "type": "identifier",
101
- "name": "SimpleAction"
102
- }
103
- },
104
- "computed": false
105
- },
106
- {
107
- "type": "propertySignature",
108
- "key": {
109
- "type": "identifier",
110
- "name": "layouts"
111
- },
112
- "annotation": {
113
- "type": "array",
114
- "elementType": {
115
- "type": "reference",
116
- "typeName": {
117
- "type": "identifier",
118
- "name": "Layout"
119
- }
120
- }
121
- },
122
- "computed": false
123
- }
124
- ]
125
- }
126
- }
127
- }
128
- ],
129
- "methods": [
130
- {
131
- "name": "setLayouts",
132
- "params": [
133
- {
134
- "name": "layouts",
135
- "annotation": {
136
- "type": "array",
137
- "elementType": {
138
- "type": "reference",
139
- "typeName": {
140
- "type": "identifier",
141
- "name": "Layout"
142
- }
143
- }
144
- }
145
- }
146
- ],
147
- "returns": {}
148
- }
149
- ],
150
- "types": [
151
- {
152
- "type": "interface",
153
- "name": "Item",
154
- "body": [
155
- {
156
- "type": "propertySignature",
157
- "key": {
158
- "type": "identifier",
159
- "name": "position"
160
- },
161
- "annotation": {
162
- "type": "reference",
163
- "typeName": {
164
- "type": "identifier",
165
- "name": "Layout"
166
- }
167
- },
168
- "computed": false
169
- },
170
- {
171
- "type": "propertySignature",
172
- "key": {
173
- "type": "identifier",
174
- "name": "key"
175
- },
176
- "annotation": {
177
- "type": "keyword",
178
- "value": "string"
179
- },
180
- "computed": false
181
- },
182
- {
183
- "type": "propertySignature",
184
- "key": {
185
- "type": "identifier",
186
- "name": "title"
187
- },
188
- "annotation": {
189
- "type": "keyword",
190
- "value": "string"
191
- },
192
- "computed": false
193
- },
194
- {
195
- "type": "propertySignature",
196
- "key": {
197
- "type": "identifier",
198
- "name": "style"
199
- },
200
- "annotation": {
201
- "type": "reference",
202
- "typeName": {
203
- "type": "qualifiedName",
204
- "left": {
205
- "type": "identifier",
206
- "name": "React"
207
- },
208
- "right": {
209
- "type": "identifier",
210
- "name": "CSSProperties"
211
- }
212
- }
213
- },
214
- "optional": true,
215
- "computed": false
216
- },
217
- {
218
- "type": "propertySignature",
219
- "key": {
220
- "type": "identifier",
221
- "name": "useBrick"
222
- },
223
- "annotation": {
224
- "type": "reference",
225
- "typeName": {
226
- "type": "identifier",
227
- "name": "UseSingleBrickConf"
228
- }
229
- },
230
- "computed": false
231
- }
232
- ]
233
- }
234
- ]
235
- },
236
2
  "eo-cascader": {
237
3
  "properties": [
238
4
  {
@@ -498,7 +264,136 @@
498
264
  }
499
265
  }
500
266
  }
501
- ]
267
+ ]
268
+ },
269
+ "computed": false
270
+ }
271
+ ]
272
+ }
273
+ }
274
+ }
275
+ ],
276
+ "methods": []
277
+ },
278
+ "eo-workbench-layout": {
279
+ "properties": [
280
+ {
281
+ "name": "cardTitle",
282
+ "annotation": {
283
+ "type": "keyword",
284
+ "value": "string"
285
+ }
286
+ },
287
+ {
288
+ "name": "isEdit",
289
+ "annotation": {
290
+ "type": "keyword",
291
+ "value": "boolean"
292
+ }
293
+ },
294
+ {
295
+ "name": "layouts",
296
+ "annotation": {
297
+ "type": "array",
298
+ "elementType": {
299
+ "type": "reference",
300
+ "typeName": {
301
+ "type": "identifier",
302
+ "name": "Layout"
303
+ }
304
+ }
305
+ }
306
+ },
307
+ {
308
+ "name": "componentList",
309
+ "annotation": {
310
+ "type": "array",
311
+ "elementType": {
312
+ "type": "reference",
313
+ "typeName": {
314
+ "type": "identifier",
315
+ "name": "Item"
316
+ }
317
+ }
318
+ }
319
+ }
320
+ ],
321
+ "events": [
322
+ {
323
+ "name": "change",
324
+ "detail": {
325
+ "annotation": {
326
+ "type": "array",
327
+ "elementType": {
328
+ "type": "reference",
329
+ "typeName": {
330
+ "type": "identifier",
331
+ "name": "Layout"
332
+ }
333
+ }
334
+ }
335
+ }
336
+ },
337
+ {
338
+ "name": "save",
339
+ "detail": {
340
+ "annotation": {
341
+ "type": "array",
342
+ "elementType": {
343
+ "type": "reference",
344
+ "typeName": {
345
+ "type": "identifier",
346
+ "name": "Layout"
347
+ }
348
+ }
349
+ }
350
+ }
351
+ },
352
+ {
353
+ "name": "cancel",
354
+ "detail": {
355
+ "annotation": {
356
+ "type": "keyword",
357
+ "value": "void"
358
+ }
359
+ }
360
+ },
361
+ {
362
+ "name": "action.click",
363
+ "detail": {
364
+ "annotation": {
365
+ "type": "typeLiteral",
366
+ "members": [
367
+ {
368
+ "type": "propertySignature",
369
+ "key": {
370
+ "type": "identifier",
371
+ "name": "action"
372
+ },
373
+ "annotation": {
374
+ "type": "reference",
375
+ "typeName": {
376
+ "type": "identifier",
377
+ "name": "SimpleAction"
378
+ }
379
+ },
380
+ "computed": false
381
+ },
382
+ {
383
+ "type": "propertySignature",
384
+ "key": {
385
+ "type": "identifier",
386
+ "name": "layouts"
387
+ },
388
+ "annotation": {
389
+ "type": "array",
390
+ "elementType": {
391
+ "type": "reference",
392
+ "typeName": {
393
+ "type": "identifier",
394
+ "name": "Layout"
395
+ }
396
+ }
502
397
  },
503
398
  "computed": false
504
399
  }
@@ -507,7 +402,112 @@
507
402
  }
508
403
  }
509
404
  ],
510
- "methods": []
405
+ "methods": [
406
+ {
407
+ "name": "setLayouts",
408
+ "params": [
409
+ {
410
+ "name": "layouts",
411
+ "annotation": {
412
+ "type": "array",
413
+ "elementType": {
414
+ "type": "reference",
415
+ "typeName": {
416
+ "type": "identifier",
417
+ "name": "Layout"
418
+ }
419
+ }
420
+ }
421
+ }
422
+ ],
423
+ "returns": {}
424
+ }
425
+ ],
426
+ "types": [
427
+ {
428
+ "type": "interface",
429
+ "name": "Item",
430
+ "body": [
431
+ {
432
+ "type": "propertySignature",
433
+ "key": {
434
+ "type": "identifier",
435
+ "name": "position"
436
+ },
437
+ "annotation": {
438
+ "type": "reference",
439
+ "typeName": {
440
+ "type": "identifier",
441
+ "name": "Layout"
442
+ }
443
+ },
444
+ "computed": false
445
+ },
446
+ {
447
+ "type": "propertySignature",
448
+ "key": {
449
+ "type": "identifier",
450
+ "name": "key"
451
+ },
452
+ "annotation": {
453
+ "type": "keyword",
454
+ "value": "string"
455
+ },
456
+ "computed": false
457
+ },
458
+ {
459
+ "type": "propertySignature",
460
+ "key": {
461
+ "type": "identifier",
462
+ "name": "title"
463
+ },
464
+ "annotation": {
465
+ "type": "keyword",
466
+ "value": "string"
467
+ },
468
+ "computed": false
469
+ },
470
+ {
471
+ "type": "propertySignature",
472
+ "key": {
473
+ "type": "identifier",
474
+ "name": "style"
475
+ },
476
+ "annotation": {
477
+ "type": "reference",
478
+ "typeName": {
479
+ "type": "qualifiedName",
480
+ "left": {
481
+ "type": "identifier",
482
+ "name": "React"
483
+ },
484
+ "right": {
485
+ "type": "identifier",
486
+ "name": "CSSProperties"
487
+ }
488
+ }
489
+ },
490
+ "optional": true,
491
+ "computed": false
492
+ },
493
+ {
494
+ "type": "propertySignature",
495
+ "key": {
496
+ "type": "identifier",
497
+ "name": "useBrick"
498
+ },
499
+ "annotation": {
500
+ "type": "reference",
501
+ "typeName": {
502
+ "type": "identifier",
503
+ "name": "UseSingleBrickConf"
504
+ }
505
+ },
506
+ "computed": false
507
+ }
508
+ ]
509
+ }
510
+ ]
511
511
  },
512
512
  "eo-tree": {
513
513
  "properties": [
@@ -956,6 +956,70 @@
956
956
  }
957
957
  ]
958
958
  },
959
+ "eo-text-tooltip": {
960
+ "properties": [
961
+ {
962
+ "name": "label",
963
+ "annotation": {
964
+ "type": "keyword",
965
+ "value": "string"
966
+ }
967
+ },
968
+ {
969
+ "name": "lineClamp",
970
+ "annotation": {
971
+ "type": "keyword",
972
+ "value": "number"
973
+ }
974
+ }
975
+ ],
976
+ "events": [],
977
+ "methods": []
978
+ },
979
+ "advanced.pdf-viewer": {
980
+ "properties": [
981
+ {
982
+ "name": "url",
983
+ "annotation": {
984
+ "type": "keyword",
985
+ "value": "string"
986
+ }
987
+ },
988
+ {
989
+ "name": "page",
990
+ "annotation": {
991
+ "type": "keyword",
992
+ "value": "number"
993
+ }
994
+ },
995
+ {
996
+ "name": "search",
997
+ "annotation": {
998
+ "type": "keyword",
999
+ "value": "string"
1000
+ }
1001
+ },
1002
+ {
1003
+ "name": "viewerStyle",
1004
+ "annotation": {
1005
+ "type": "reference",
1006
+ "typeName": {
1007
+ "type": "qualifiedName",
1008
+ "left": {
1009
+ "type": "identifier",
1010
+ "name": "React"
1011
+ },
1012
+ "right": {
1013
+ "type": "identifier",
1014
+ "name": "CSSProperties"
1015
+ }
1016
+ }
1017
+ }
1018
+ }
1019
+ ],
1020
+ "events": [],
1021
+ "methods": []
1022
+ },
959
1023
  "eo-tree-select": {
960
1024
  "properties": [
961
1025
  {
@@ -1303,70 +1367,6 @@
1303
1367
  ],
1304
1368
  "methods": []
1305
1369
  },
1306
- "eo-text-tooltip": {
1307
- "properties": [
1308
- {
1309
- "name": "label",
1310
- "annotation": {
1311
- "type": "keyword",
1312
- "value": "string"
1313
- }
1314
- },
1315
- {
1316
- "name": "lineClamp",
1317
- "annotation": {
1318
- "type": "keyword",
1319
- "value": "number"
1320
- }
1321
- }
1322
- ],
1323
- "events": [],
1324
- "methods": []
1325
- },
1326
- "advanced.pdf-viewer": {
1327
- "properties": [
1328
- {
1329
- "name": "url",
1330
- "annotation": {
1331
- "type": "keyword",
1332
- "value": "string"
1333
- }
1334
- },
1335
- {
1336
- "name": "page",
1337
- "annotation": {
1338
- "type": "keyword",
1339
- "value": "number"
1340
- }
1341
- },
1342
- {
1343
- "name": "search",
1344
- "annotation": {
1345
- "type": "keyword",
1346
- "value": "string"
1347
- }
1348
- },
1349
- {
1350
- "name": "viewerStyle",
1351
- "annotation": {
1352
- "type": "reference",
1353
- "typeName": {
1354
- "type": "qualifiedName",
1355
- "left": {
1356
- "type": "identifier",
1357
- "name": "React"
1358
- },
1359
- "right": {
1360
- "type": "identifier",
1361
- "name": "CSSProperties"
1362
- }
1363
- }
1364
- }
1365
- }
1366
- ],
1367
- "events": [],
1368
- "methods": []
1369
- },
1370
1370
  "advanced.capture-snapshot": {
1371
1371
  "type": "provider",
1372
1372
  "params": [
@@ -39,7 +39,7 @@ declare global {
39
39
  selectedOptions: Record<string, any>[] | Record<string, any>[][];
40
40
  }>) => void;
41
41
  };
42
- "eo-next-table": DetailedHTMLProps<HTMLAttributes<EoNextTable>, EoNextTable> & Omit<NextTableProps, "columns"> & {
42
+ "eo-next-table": DetailedHTMLProps<HTMLAttributes<EoNextTable>, EoNextTable> & Omit<NextTableProps, "columns" | "cell"> & {
43
43
  columns?: Array<Omit<ColumnProp, "useBrick" | "headerBrick"> & {
44
44
  align?: string;
45
45
  dataIndex?: number | string;
@@ -54,13 +54,26 @@ declare global {
54
54
  showSorterTooltip?: boolean | object;
55
55
  sortDirections?: ("descend" | "ascend" | null)[];
56
56
  render?: (data: {
57
- rowData: object;
57
+ rowData: Record<string, any>;
58
58
  cellData: any;
59
59
  }) => React.ReactNode;
60
60
  headerBrick?: {
61
61
  render?: (data: any) => React.ReactNode;
62
62
  };
63
63
  }>;
64
+ cell?: {
65
+ render?: (data: {
66
+ rowData: Record<string, any>;
67
+ cellData: any;
68
+ columnKey: string | number;
69
+ }) => React.ReactNode;
70
+ header?: {
71
+ render?: (data: {
72
+ title: string;
73
+ columnKey: string | number;
74
+ }) => React.ReactNode;
75
+ };
76
+ };
64
77
  onPageChange?: (event: CustomEvent<{
65
78
  page: number;
66
79
  pageSize: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/advanced",
3
- "version": "0.50.5",
3
+ "version": "0.50.7",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/advanced",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,5 +46,5 @@
46
46
  "@next-bricks/form": "*",
47
47
  "@next-bricks/icons": "*"
48
48
  },
49
- "gitHead": "44ff0a9a170ae911252a2030b9edde16ad229532"
49
+ "gitHead": "afb3515bbe0f27c73168c1e8f09311ce4ec61671"
50
50
  }