@infinite-table/infinite-react 0.4.11 → 0.4.12
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/README.md +3 -3
- package/index.css +146 -59
- package/index.d.ts +110 -36
- package/index.esm.css +146 -59
- package/index.esm.js +342 -89
- package/index.js +338 -89
- package/package.json +11 -2
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
|
17
17
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
18
18
|
|
|
19
|
-
- [🤔 What is Infinite?](#-what-is-infinite)
|
|
19
|
+
- [🤔 What is Infinite Table?](#-what-is-infinite-table)
|
|
20
20
|
- [📦 Installation](#-installation)
|
|
21
21
|
- [📄 Extensive documentation](#-extensive-documentation)
|
|
22
22
|
- [❤️ TypeScript](#-typescript)
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
## 🤔 What is Infinite?
|
|
34
|
+
## 🤔 What is Infinite Table?
|
|
35
35
|
|
|
36
|
-
Infinite Table is a React DataGrid component for displaying virtualized tabular data. It helps you display huge datasets and get the most out of them by providing you the right tools to do so:
|
|
36
|
+
`Infinite Table` is a React DataGrid component for displaying virtualized tabular data. It helps you display huge datasets and get the most out of them by providing you the right tools to do so:
|
|
37
37
|
|
|
38
38
|
* [🔃 sorting](https://infinite-table.com/docs/latest/learn/working-with-data/sorting)
|
|
39
39
|
* [💪 row grouping](https://infinite-table.com/docs/latest/learn/grouping-and-pivoting/grouping-rows) - both server-side and client-side
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/theme.css.ts.vanilla.css?source=#H4sIAAAAAAAAA+
|
|
1
|
+
/* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/theme.css.ts.vanilla.css?source=#H4sIAAAAAAAAA+1YzY7iOBC+8xSWuDTSuJU/oMlcVtoncWKHWAQbOYaGWfW7rx1CJ3HskDA72kuwEA31latS/qpc1bHgXIJ/FgBASFlGGZUElieUEujFwBPk+NMm85Xs3Q/WLnmg5W5xqMVOaaSlW6d4HQPfJdso2YDdrRY7pR8xCAaUdzEInfFQwYr6wowzCUv66x5Mm+UGUYV0YzPfYAJXZBpIFdqPYUxkjWAjX7ui2EA2jkg2iK0rmhUkQ0da3GJAWU4ElQYk5QUXMVhGH3oZQpSmRO3wwGTZ1otCA0OE4KIF8dTLgCRcYCKgQJieyxhckHjr03hlKqH0sBf8zHAMPnP1iyE/UgZzQve5VPHxvNPVZAspSCopZzDNSXpI+BUekdgrLcoKyshYP46EnTvOGGqNyKpZB8ZQSklR3EVWpRPCmLK9w8XQbkhvWSvCCxGSpqh4fYecC/pL0eeVPeo4P3HCs26g/jhCTEuUFAQPxd04lxGbcWWWyltVHpzonCu3h+wK/tkDuY2fBCnL4QeZtuEd2XqUnftZHsa/0b4BLTjC6rTKA5TkKjtOin2C3oL1+sfjrUqd6VWjrp0q0K2zw16g21OF1oOYhaUB1zlkL2ANbDhr1m7vh+tTR2puoiKsK3COGC50vZT0oj4EQfCTYpmrwtyvTF2dB+4JrM/L5SbJsk0yqJVyVkqBVLnDz5ndquTmY+YE6RhU2d3xgWC9BtAWv3Gm14DOowZdx5Yem/LtN5R7qlYDqzGo6woM2KPqgKo7XOXmpseANrLkQt7h9+o6pDBwxvaDdIWkvtQ3mV79xuF8ZA/o4yYO+3Rv7roYpGchVEfxt/5mg9W5VueEb99rOM+D3rE4zr1l0H4/t51ZgZIXFINlutHL2OpEmc6w13YMUBiEZgq14ZRdaEnVFRYDxpnZB7WR0zqs+gQFuSuTLFMNE8RngXTbFIP3oOz1g1V9a5ss5U07hlGZ9+qABe48WQu24gyEKpbb7Wi0ooUf7UbDE1V5ffMG7cC/kwSi4pSj+7Q1QQFCqdsPeGYZT8/qOq7mObNqqx7gpR5TK3Lc7S+WVbqaHNXIe09stCNL7JNdZqZ3B24p4ioHP3pKWnrqPcwyTdJ1asaswdY8ZKSUVVpbaoitR9KeJ3pZsCdOmdScvqhqU0I1P6gTKFPBi6Iygc6S/1x8Ld4LXbZ+gPemK6h/qD5jPbL3pPE8yM+D/DzIz4P8PMjPg/w8yM+D/DzIz4P8PMjPg/w8yM+D/DzI/z+DPEbi0J7U9XdzRu+Y9D0/8k1+dRJfcXswtY3imoZ6jb1v/STwA9P8k/s2CIJdGPyhq8JxMmESbdfRaAp6KCDRVAp6SRCF6I9mUhCpIzSTtX2hfR/f1+KvI8EUgTfVdWdElHWFKdX0eawKpDisKmY1/wcaw7KJPBvHtKlce41t/x3fpjFuMudeZN1v8G4K855zD4Cvxde/sYVarigkAAA= */
|
|
2
2
|
:root {
|
|
3
3
|
--infinite-space-0: 0rem;
|
|
4
4
|
--infinite-space-1: 0.125rem;
|
|
@@ -27,6 +27,18 @@
|
|
|
27
27
|
--infinite-background: white;
|
|
28
28
|
--infinite-min-height: 100px;
|
|
29
29
|
--infinite-selection-checkbox-margin-inline: var(--infinite-space-2);
|
|
30
|
+
--infinite-menu-background: var(--infinite-background);
|
|
31
|
+
--infinite-menu-color: var(--infinite-cell-color);
|
|
32
|
+
--infinite-menu-padding: var(--infinite-space-3);
|
|
33
|
+
--infinite-menu-cell-padding-vertical: var(--infinite-space-3);
|
|
34
|
+
--infinite-menu-cell-padding-horizontal: var(--infinite-space-3);
|
|
35
|
+
--infinite-menu-cell-margin-vertical: var(--infinite-space-0);
|
|
36
|
+
--infinite-menu-item-disabled-background: var(--infinite-menu-background);
|
|
37
|
+
--infinite-menu-item-disabled-opacity: 0.5;
|
|
38
|
+
--infinite-menu-item-hover-background: var(--infinite-row-hover-background);
|
|
39
|
+
--infinite-menu-item-pressed-background: var(--infinite-row-hover-background);
|
|
40
|
+
--infinite-menu-item-hover-opacity: 0.95;
|
|
41
|
+
--infinite-menu-item-pressed-opacity: 1;
|
|
30
42
|
--infinite-load-mask-text-background: rgba(255,255,255,0.8);
|
|
31
43
|
--infinite-load-mask-overlay-background: gray;
|
|
32
44
|
--infinite-load-mask-overlay-opacity: 0.3;
|
|
@@ -102,6 +114,18 @@
|
|
|
102
114
|
--infinite-background: white;
|
|
103
115
|
--infinite-min-height: 100px;
|
|
104
116
|
--infinite-selection-checkbox-margin-inline: var(--infinite-space-2);
|
|
117
|
+
--infinite-menu-background: var(--infinite-background);
|
|
118
|
+
--infinite-menu-color: var(--infinite-cell-color);
|
|
119
|
+
--infinite-menu-padding: var(--infinite-space-3);
|
|
120
|
+
--infinite-menu-cell-padding-vertical: var(--infinite-space-3);
|
|
121
|
+
--infinite-menu-cell-padding-horizontal: var(--infinite-space-3);
|
|
122
|
+
--infinite-menu-cell-margin-vertical: var(--infinite-space-0);
|
|
123
|
+
--infinite-menu-item-disabled-background: var(--infinite-menu-background);
|
|
124
|
+
--infinite-menu-item-disabled-opacity: 0.5;
|
|
125
|
+
--infinite-menu-item-hover-background: var(--infinite-row-hover-background);
|
|
126
|
+
--infinite-menu-item-pressed-background: var(--infinite-row-hover-background);
|
|
127
|
+
--infinite-menu-item-hover-opacity: 0.95;
|
|
128
|
+
--infinite-menu-item-pressed-opacity: 1;
|
|
105
129
|
--infinite-load-mask-text-background: rgba(255,255,255,0.8);
|
|
106
130
|
--infinite-load-mask-overlay-background: gray;
|
|
107
131
|
--infinite-load-mask-overlay-opacity: 0.3;
|
|
@@ -178,7 +202,7 @@
|
|
|
178
202
|
}
|
|
179
203
|
}
|
|
180
204
|
|
|
181
|
-
/* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/utilities.css.ts.vanilla.css?source=#
|
|
205
|
+
/* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/utilities.css.ts.vanilla.css?source=#H4sIAAAAAAAAA5WW227bMAyG7/sUvhnQDXMRt1sP3uUeZFBk2mYjS6kkx0mHvfsYq1tMST0EuTHyf5Qokf7pq1/VrRoqnFbF74uiWJt96fAZdVfTs23AlvTXj4s/F1f/wXoNrbHwcV60HuyH8eLLGei5uVDEWdlUM7g1Dj0aXRcWlPC4AwZdR5BYO6NGz6GbCHIe5ebAkG8R0uIeGkZ8n4kWlaoLOVoL2v80ylgG3S6gnbCXZYm6RY0eSiElhZTyGPOZBd3NQYOwHdLOK6bdz5rz1mzgjX0fGPbhnUWohZCbzppRN3WBugeLnlHrmfJWaEcFH+rwSMWAm+Zy9ZV+fFV5Jt/EvDWe4MuHVQMdR+EVtLpP2XZm6cqcsTWVFjU1HyM6RjTQilHxo/eMoBssLVDb8vbCl96ZNyhhR5ft6kIbzbHH0BsK9nVRMWWzUJIwNYvPVM4mjRwikTePjlUum0Tm+jbVOfCUAThhcwRHXBbhjH8n0/G9THfvZjrNRINuq8ShnovB9D3XpaFiU50Zc+BMUspnrq+VkRtueStOdBa5CVUVB1Ar1FBmVrrOgsmxqpssl24cDHJ01OEOFEifOV8VPLIH7HofO1l1y0QqwSeuBxucsPF9Enu/1NLQYH/ebJNAcVLSsGBsCto0WbmQ0sBmoYrRG67+G4nemyFZuGViunTwJJu9wX6ppaG4lNO0Tv5DbWCm2c7GQXNok4fI9nZgXVRuFcPWTJwYMkR+reBVQmGnSxpaAznocWpFjl2ZFKOpB172nAve9TjSqG8P5cvbml/yKY/OSTsvLJ8IlX0DBx29NcHcDJ03HL/HpoHoyn3EpJUbI2KHDtcqusBgcbOECv3hFWxKsFxO+5f3TalS9kJ3UJ+GLieD50398UPDbYWEoy9MVmw5FqzPw96Xp3OAUrh1eDTRv6P1IEAMCwAA */
|
|
182
206
|
._16lm1iw0 {
|
|
183
207
|
box-sizing: border-box;
|
|
184
208
|
}
|
|
@@ -217,183 +241,201 @@
|
|
|
217
241
|
fill: var(--infinite-accent-color);
|
|
218
242
|
}
|
|
219
243
|
._16lm1iw7 {
|
|
220
|
-
|
|
244
|
+
margin: 0;
|
|
221
245
|
}
|
|
222
246
|
._16lm1iw8 {
|
|
223
|
-
stroke:
|
|
247
|
+
stroke: currentColor;
|
|
224
248
|
}
|
|
225
249
|
._16lm1iw9 {
|
|
226
|
-
|
|
250
|
+
stroke: var(--infinite-accent-color);
|
|
227
251
|
}
|
|
228
252
|
._16lm1iwa {
|
|
229
|
-
|
|
253
|
+
background: inherit;
|
|
230
254
|
}
|
|
231
255
|
._16lm1iwb {
|
|
232
256
|
transform: translate3d(0, 0, 0);
|
|
233
257
|
}
|
|
234
258
|
._16lm1iwc {
|
|
235
|
-
transform:
|
|
259
|
+
transform: translate3d(0, 0, 0);
|
|
236
260
|
}
|
|
237
261
|
._16lm1iwd {
|
|
238
|
-
transform: rotate(
|
|
262
|
+
transform: rotate(90deg);
|
|
239
263
|
}
|
|
240
264
|
._16lm1iwe {
|
|
241
|
-
|
|
265
|
+
transform: rotate(180deg);
|
|
242
266
|
}
|
|
243
267
|
._16lm1iwf {
|
|
244
|
-
cursor:
|
|
268
|
+
cursor: pointer;
|
|
245
269
|
}
|
|
246
270
|
._16lm1iwg {
|
|
247
|
-
|
|
271
|
+
cursor: default;
|
|
248
272
|
}
|
|
249
273
|
._16lm1iwh {
|
|
250
|
-
|
|
274
|
+
cursor: col-resize;
|
|
251
275
|
}
|
|
252
276
|
._16lm1iwi {
|
|
253
|
-
|
|
277
|
+
pointer-events: none;
|
|
254
278
|
}
|
|
255
279
|
._16lm1iwj {
|
|
256
|
-
|
|
280
|
+
flex: 1;
|
|
257
281
|
}
|
|
258
282
|
._16lm1iwk {
|
|
259
|
-
|
|
283
|
+
flex: none;
|
|
260
284
|
}
|
|
261
285
|
._16lm1iwl {
|
|
262
|
-
z-index:
|
|
286
|
+
z-index: 1;
|
|
263
287
|
}
|
|
264
288
|
._16lm1iwm {
|
|
265
|
-
z-index:
|
|
289
|
+
z-index: 10;
|
|
266
290
|
}
|
|
267
291
|
._16lm1iwn {
|
|
268
|
-
z-index:
|
|
292
|
+
z-index: 100;
|
|
269
293
|
}
|
|
270
294
|
._16lm1iwo {
|
|
271
|
-
z-index:
|
|
295
|
+
z-index: 1000;
|
|
272
296
|
}
|
|
273
297
|
._16lm1iwp {
|
|
274
|
-
z-index:
|
|
298
|
+
z-index: 10000;
|
|
275
299
|
}
|
|
276
300
|
._16lm1iwq {
|
|
277
|
-
z-index:
|
|
301
|
+
z-index: 100000;
|
|
278
302
|
}
|
|
279
303
|
._16lm1iwr {
|
|
280
|
-
z-index:
|
|
304
|
+
z-index: 1000000;
|
|
281
305
|
}
|
|
282
306
|
._16lm1iws {
|
|
283
|
-
z-index:
|
|
307
|
+
z-index: 10000000;
|
|
284
308
|
}
|
|
285
309
|
._16lm1iwt {
|
|
286
|
-
z-index:
|
|
310
|
+
z-index: 1000;
|
|
287
311
|
}
|
|
288
312
|
._16lm1iwu {
|
|
289
|
-
|
|
313
|
+
z-index: 10000;
|
|
290
314
|
}
|
|
291
315
|
._16lm1iwv {
|
|
292
|
-
|
|
316
|
+
z-index: 100000;
|
|
293
317
|
}
|
|
294
318
|
._16lm1iww {
|
|
295
|
-
display:
|
|
319
|
+
display: flex;
|
|
296
320
|
}
|
|
297
321
|
._16lm1iwx {
|
|
298
|
-
display:
|
|
322
|
+
display: contents;
|
|
299
323
|
}
|
|
300
324
|
._16lm1iwy {
|
|
325
|
+
display: none;
|
|
326
|
+
}
|
|
327
|
+
._16lm1iwz {
|
|
328
|
+
display: block;
|
|
329
|
+
}
|
|
330
|
+
._16lm1iw10 {
|
|
331
|
+
display: grid;
|
|
332
|
+
}
|
|
333
|
+
._16lm1iw11 {
|
|
334
|
+
display: inline-block;
|
|
335
|
+
}
|
|
336
|
+
._16lm1iw12 {
|
|
337
|
+
display: inline-flex;
|
|
338
|
+
}
|
|
339
|
+
._16lm1iw13 {
|
|
340
|
+
display: inline-grid;
|
|
341
|
+
}
|
|
342
|
+
._16lm1iw14 {
|
|
301
343
|
-webkit-user-select: none;
|
|
302
344
|
-moz-user-select: none;
|
|
303
345
|
-ms-user-select: none;
|
|
304
346
|
user-select: none;
|
|
305
347
|
}
|
|
306
|
-
.
|
|
348
|
+
._16lm1iw15 {
|
|
307
349
|
height: 0;
|
|
308
350
|
}
|
|
309
|
-
.
|
|
351
|
+
._16lm1iw16 {
|
|
310
352
|
height: 100%;
|
|
311
353
|
}
|
|
312
|
-
.
|
|
354
|
+
._16lm1iw17 {
|
|
313
355
|
width: 0;
|
|
314
356
|
}
|
|
315
|
-
.
|
|
357
|
+
._16lm1iw18 {
|
|
316
358
|
width: 100%;
|
|
317
359
|
}
|
|
318
|
-
.
|
|
360
|
+
._16lm1iw19 {
|
|
319
361
|
top: 0;
|
|
320
362
|
}
|
|
321
|
-
.
|
|
363
|
+
._16lm1iw1a {
|
|
322
364
|
top: 100%;
|
|
323
365
|
}
|
|
324
|
-
.
|
|
366
|
+
._16lm1iw1b {
|
|
325
367
|
left: 0;
|
|
326
368
|
}
|
|
327
|
-
.
|
|
369
|
+
._16lm1iw1c {
|
|
328
370
|
left: 100%;
|
|
329
371
|
}
|
|
330
|
-
.
|
|
372
|
+
._16lm1iw1d {
|
|
331
373
|
left: auto;
|
|
332
374
|
}
|
|
333
|
-
.
|
|
375
|
+
._16lm1iw1e {
|
|
334
376
|
bottom: 0;
|
|
335
377
|
}
|
|
336
|
-
.
|
|
378
|
+
._16lm1iw1f {
|
|
337
379
|
bottom: 100%;
|
|
338
380
|
}
|
|
339
|
-
.
|
|
381
|
+
._16lm1iw1g {
|
|
340
382
|
right: 0;
|
|
341
383
|
}
|
|
342
|
-
.
|
|
384
|
+
._16lm1iw1h {
|
|
343
385
|
right: 100%;
|
|
344
386
|
}
|
|
345
|
-
.
|
|
387
|
+
._16lm1iw1i {
|
|
346
388
|
right: auto;
|
|
347
389
|
}
|
|
348
|
-
.
|
|
390
|
+
._16lm1iw1j {
|
|
349
391
|
flex-flow: column;
|
|
350
392
|
}
|
|
351
|
-
.
|
|
393
|
+
._16lm1iw1k {
|
|
352
394
|
flex-flow: column-reverse;
|
|
353
395
|
}
|
|
354
|
-
.
|
|
396
|
+
._16lm1iw1l {
|
|
355
397
|
flex-flow: row;
|
|
356
398
|
}
|
|
357
|
-
.
|
|
399
|
+
._16lm1iw1m {
|
|
358
400
|
flex-flow: row-reverse;
|
|
359
401
|
}
|
|
360
|
-
.
|
|
402
|
+
._16lm1iw1n {
|
|
361
403
|
align-items: center;
|
|
362
404
|
}
|
|
363
|
-
.
|
|
405
|
+
._16lm1iw1o {
|
|
364
406
|
align-items: stretch;
|
|
365
407
|
}
|
|
366
|
-
.
|
|
408
|
+
._16lm1iw1p {
|
|
367
409
|
justify-content: center;
|
|
368
410
|
}
|
|
369
|
-
.
|
|
411
|
+
._16lm1iw1q {
|
|
370
412
|
justify-content: flex-start;
|
|
371
413
|
}
|
|
372
|
-
.
|
|
414
|
+
._16lm1iw1r {
|
|
373
415
|
justify-content: flex-end;
|
|
374
416
|
}
|
|
375
|
-
.
|
|
417
|
+
._16lm1iw1s {
|
|
376
418
|
overflow: hidden;
|
|
377
419
|
}
|
|
378
|
-
.
|
|
420
|
+
._16lm1iw1t {
|
|
379
421
|
overflow: auto;
|
|
380
422
|
}
|
|
381
|
-
.
|
|
423
|
+
._16lm1iw1u {
|
|
382
424
|
overflow: visible;
|
|
383
425
|
}
|
|
384
|
-
.
|
|
426
|
+
._16lm1iw1v {
|
|
385
427
|
visibility: visible;
|
|
386
428
|
}
|
|
387
|
-
.
|
|
429
|
+
._16lm1iw1w {
|
|
388
430
|
visibility: hidden;
|
|
389
431
|
}
|
|
390
|
-
.
|
|
432
|
+
._16lm1iw1x {
|
|
391
433
|
will-change: transform;
|
|
392
434
|
}
|
|
393
|
-
.
|
|
435
|
+
._16lm1iw1y {
|
|
394
436
|
white-space: nowrap;
|
|
395
437
|
}
|
|
396
|
-
.
|
|
438
|
+
._16lm1iw1z {
|
|
397
439
|
text-overflow: ellipsis;
|
|
398
440
|
}
|
|
399
441
|
|
|
@@ -768,3 +810,48 @@
|
|
|
768
810
|
background: var(--infinite-load-mask-text-background);
|
|
769
811
|
border-radius: var(--infinite-load-mask-border-radius);
|
|
770
812
|
}
|
|
813
|
+
|
|
814
|
+
/* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/Menu/MenuCls.css.ts.vanilla.css?source=#H4sIAAAAAAAAA+1VTXOCMBC9+ytylBljrU4Ppcf+knwBO4aEWYLWdvzvxYAFFDT20ks5QfL27Vv27exS8g3DZEW+ZoQUTEowaUx2DOeUgknAgFM0V6ai7WX0VgOF1RbHYf7KgzgT2xRtZeQ4sruv4cfZslGy7iuhXFuxnUiktD6LojuFDgTTPvH5EIwGowKiM4vwaY1r43OGKZi7uVvYIDW3KNX1n2HCwU5RtHvaIBZ3EXQP0mVTOC+gD4yi+4ylO2gVwuiBIYy+2QuCKZ/fZ/VgSnGKdwSbPoDlUf10PaCtRx0yUxYMlXE9l228y2zBBLjDeI/rl5xKKBnXStIWGmTsYeS4zV+8gCCmzNYWG9KESG/COt0/qVdxYkVVkvbztVHyb9w/Nu5kf+IEsHRUZKBlr1cUIc3cbZtfUWk2xqRV8iiRsW7eFxY1Jx1/FJTgkWJ4+MgUqMrycvZChuYcODI2ol+Qs0VMnosPUloNkogKT2LfT/J7RXHrnM1jsuptFR9ZrwtxabwbS408kfVgM7W8v6M5fgNIcGiK9AcAAA== */
|
|
815
|
+
.db3arf0 {
|
|
816
|
+
padding: var(--infinite-menu-padding);
|
|
817
|
+
color: var(--infinite-menu-color);
|
|
818
|
+
background: var(--infinite-menu-background);
|
|
819
|
+
}
|
|
820
|
+
.db3arf2 {
|
|
821
|
+
padding-block: var(--infinite-menu-cell-padding-vertical);
|
|
822
|
+
padding-inline: var(--infinite-menu-cell-padding-horizontal);
|
|
823
|
+
margin-block: var(--infinite-menu-cell-margin-vertical);
|
|
824
|
+
border: var(--infinite-active-row-border, var(--infinite-active-row-border-width, var(--infinite-active-cell-border-width)) var(--infinite-active-row-border-style, var(--infinite-active-cell-border-style)) var(--infinite-active-row-border-color, rgb(var(--infinite-active-cell-border-color--r) var(--infinite-active-cell-border-color--g) var(--infinite-active-cell-border-color--b))));
|
|
825
|
+
border-color: transparent;
|
|
826
|
+
}
|
|
827
|
+
.db3arf3 {
|
|
828
|
+
opacity: var(--infinite-menu-item-disabled-opacity);
|
|
829
|
+
background: var(--infinite-menu-item-disabled-background);
|
|
830
|
+
}
|
|
831
|
+
.db3arf5 {
|
|
832
|
+
background: var(--infinite-menu-item-hover-background);
|
|
833
|
+
opacity: var(--infinite-menu-item-hover-opacity);
|
|
834
|
+
}
|
|
835
|
+
.db3arf0:focus .db3arf9 {
|
|
836
|
+
border: var(--infinite-active-row-border, var(--infinite-active-row-border-width, var(--infinite-active-cell-border-width)) var(--infinite-active-row-border-style, var(--infinite-active-cell-border-style)) var(--infinite-active-row-border-color, rgb(var(--infinite-active-cell-border-color--r) var(--infinite-active-cell-border-color--g) var(--infinite-active-cell-border-color--b))));
|
|
837
|
+
}
|
|
838
|
+
.db3arf0:focus .db3arf9:first-child {
|
|
839
|
+
border-right-color: transparent;
|
|
840
|
+
}
|
|
841
|
+
.db3arf0:focus .db3arf9:last-child {
|
|
842
|
+
border-left-color: transparent;
|
|
843
|
+
}
|
|
844
|
+
.db3arf0:focus .db3arf9:not(:first-child):not(:last-child) {
|
|
845
|
+
border-left-color: transparent;
|
|
846
|
+
border-right-color: transparent;
|
|
847
|
+
}
|
|
848
|
+
.db3arfb {
|
|
849
|
+
background: var(--infinite-menu-item-pressed-background);
|
|
850
|
+
opacity: var(--infinite-menu-item-pressed-opacity);
|
|
851
|
+
}
|
|
852
|
+
.db3arfc {
|
|
853
|
+
border-top: 1px solid currentColor;
|
|
854
|
+
border-bottom: 0;
|
|
855
|
+
margin-top: calc(var(--infinite-menu-cell-padding-vertical) / 2);
|
|
856
|
+
margin-bottom: calc(var(--infinite-menu-cell-padding-vertical) / 2);
|
|
857
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -77,28 +77,6 @@ declare class DeepMap<KeyType, ValueType> {
|
|
|
77
77
|
private sortedIterator;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
declare type ComponentStateContext<T_STATE, T_ACTIONS> = {
|
|
81
|
-
getComponentState: () => T_STATE;
|
|
82
|
-
componentState: T_STATE;
|
|
83
|
-
componentActions: T_ACTIONS;
|
|
84
|
-
};
|
|
85
|
-
declare type ComponentStateGeneratedActions<T_STATE> = {
|
|
86
|
-
[k in keyof T_STATE]: T_STATE[k] | React.SetStateAction<T_STATE[k]>;
|
|
87
|
-
};
|
|
88
|
-
declare type ComponentInterceptedActions<T_STATE> = {
|
|
89
|
-
[k in keyof T_STATE]?: (value: T_STATE[k], { actions, state, }: {
|
|
90
|
-
actions: ComponentStateGeneratedActions<T_STATE>;
|
|
91
|
-
state: T_STATE;
|
|
92
|
-
}) => void | boolean;
|
|
93
|
-
};
|
|
94
|
-
declare type ComponentMappedCallbacks<T_STATE> = {
|
|
95
|
-
[k in keyof T_STATE]: (value: T_STATE[k], state: T_STATE) => {
|
|
96
|
-
callbackName: string;
|
|
97
|
-
callbackParams: any[];
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
declare type ComponentStateActions<T_STATE> = ComponentStateGeneratedActions<T_STATE>;
|
|
101
|
-
|
|
102
80
|
declare enum InfiniteTableActionType {
|
|
103
81
|
SET_COLUMN_SIZE = 0,
|
|
104
82
|
SET_SCROLL_POSITION = 1,
|
|
@@ -183,14 +161,15 @@ declare type InfiniteTableColumnHeaderParam<DATA_TYPE, COL_TYPE = InfiniteTableC
|
|
|
183
161
|
selectionCheckBox?: Renderable;
|
|
184
162
|
};
|
|
185
163
|
};
|
|
164
|
+
declare type InfiniteTableColumnRenderBag = {
|
|
165
|
+
value: string | number | Renderable;
|
|
166
|
+
groupIcon?: Renderable;
|
|
167
|
+
selectionCheckBox?: Renderable;
|
|
168
|
+
};
|
|
186
169
|
declare type InfiniteTableColumnRenderParamBase<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = {
|
|
187
170
|
domRef: InfiniteTableCellProps<DATA_TYPE>['domRef'];
|
|
188
171
|
value: string | number | Renderable;
|
|
189
|
-
renderBag:
|
|
190
|
-
value: string | number | Renderable;
|
|
191
|
-
groupIcon?: Renderable;
|
|
192
|
-
selectionCheckBox?: Renderable;
|
|
193
|
-
};
|
|
172
|
+
renderBag: InfiniteTableColumnRenderBag;
|
|
194
173
|
rowIndex: number;
|
|
195
174
|
rowActive: boolean;
|
|
196
175
|
api: InfiniteTableApi<DATA_TYPE>;
|
|
@@ -670,7 +649,7 @@ declare type RowSelectionStateConfig<T> = {
|
|
|
670
649
|
onlyUsePrimaryKeys: boolean;
|
|
671
650
|
};
|
|
672
651
|
declare type GetRowSelectionStateConfig<T> = () => RowSelectionStateConfig<T>;
|
|
673
|
-
declare type
|
|
652
|
+
declare type RowSelectionStateOverride = {
|
|
674
653
|
getGroupKeysForPrimaryKey: RowSelectionState<any>['getGroupKeysForPrimaryKey'];
|
|
675
654
|
getGroupByLength: RowSelectionState<any>['getGroupByLength'];
|
|
676
655
|
getGroupCount: RowSelectionState<any>['getGroupCount'];
|
|
@@ -696,8 +675,8 @@ declare class RowSelectionState<T = any> {
|
|
|
696
675
|
getGroupKeysDirectlyInsideGroup(groupKeys: any[]): any[][];
|
|
697
676
|
getAllPrimaryKeysInsideGroup(groupKeys: any[]): any[];
|
|
698
677
|
getGroupByLength(): number;
|
|
699
|
-
static from<T>(rowSeleStateObject: RowSelectionStateObject, getConfig: GetRowSelectionStateConfig<T>,
|
|
700
|
-
constructor(state: RowSelectionStateObject | RowSelectionState, getConfig: GetRowSelectionStateConfig<T>, _forTestingOnly?:
|
|
678
|
+
static from<T>(rowSeleStateObject: RowSelectionStateObject, getConfig: GetRowSelectionStateConfig<T>, overrides?: RowSelectionStateOverride): RowSelectionState<T>;
|
|
679
|
+
constructor(state: RowSelectionStateObject | RowSelectionState, getConfig: GetRowSelectionStateConfig<T>, _forTestingOnly?: RowSelectionStateOverride);
|
|
701
680
|
mapSet: (name: 'selected' | 'deselected', key: any | any[]) => void;
|
|
702
681
|
_selectedMapSet: (key: any | any[]) => void;
|
|
703
682
|
_deselectedMapSet: (key: any | any[]) => void;
|
|
@@ -903,6 +882,28 @@ declare class ReactHeadlessTableRenderer extends Logger {
|
|
|
903
882
|
reset(): void;
|
|
904
883
|
}
|
|
905
884
|
|
|
885
|
+
declare type ComponentStateContext<T_STATE, T_ACTIONS> = {
|
|
886
|
+
getComponentState: () => T_STATE;
|
|
887
|
+
componentState: T_STATE;
|
|
888
|
+
componentActions: T_ACTIONS;
|
|
889
|
+
};
|
|
890
|
+
declare type ComponentStateGeneratedActions<T_STATE> = {
|
|
891
|
+
[k in keyof T_STATE]: T_STATE[k] | React.SetStateAction<T_STATE[k]>;
|
|
892
|
+
};
|
|
893
|
+
declare type ComponentInterceptedActions<T_STATE> = {
|
|
894
|
+
[k in keyof T_STATE]?: (value: T_STATE[k], { actions, state, }: {
|
|
895
|
+
actions: ComponentStateGeneratedActions<T_STATE>;
|
|
896
|
+
state: T_STATE;
|
|
897
|
+
}) => void | boolean;
|
|
898
|
+
};
|
|
899
|
+
declare type ComponentMappedCallbacks<T_STATE> = {
|
|
900
|
+
[k in keyof T_STATE]: (value: T_STATE[k], state: T_STATE) => {
|
|
901
|
+
callbackName: string;
|
|
902
|
+
callbackParams: any[];
|
|
903
|
+
};
|
|
904
|
+
};
|
|
905
|
+
declare type ComponentStateActions<T_STATE> = ComponentStateGeneratedActions<T_STATE>;
|
|
906
|
+
|
|
906
907
|
declare type CellPosition = {
|
|
907
908
|
rowIndex: number;
|
|
908
909
|
colIndex: number;
|
|
@@ -1053,6 +1054,13 @@ interface InfiniteTableContextValue<T> {
|
|
|
1053
1054
|
getState: () => InfiniteTableState<T>;
|
|
1054
1055
|
}
|
|
1055
1056
|
|
|
1057
|
+
declare type GroupKeyType$1<T extends any = any> = T;
|
|
1058
|
+
declare type GroupBy<DataType, KeyType> = {
|
|
1059
|
+
field: keyof DataType;
|
|
1060
|
+
toKey?: (value: any, data: DataType) => GroupKeyType$1<KeyType>;
|
|
1061
|
+
column?: Partial<InfiniteTableGroupColumnBase<DataType>>;
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1056
1064
|
declare type RenderRange = {
|
|
1057
1065
|
renderStartIndex: number;
|
|
1058
1066
|
renderEndIndex: number;
|
|
@@ -1659,11 +1667,6 @@ declare type DeepMapGroupValueType<DataType, KeyType> = {
|
|
|
1659
1667
|
reducerResults: Record<string, AggregationReducerResult>;
|
|
1660
1668
|
pivotDeepMap?: DeepMap<GroupKeyType<KeyType>, PivotGroupValueType<DataType, KeyType>>;
|
|
1661
1669
|
};
|
|
1662
|
-
declare type GroupBy<DataType, KeyType> = {
|
|
1663
|
-
field: keyof DataType;
|
|
1664
|
-
toKey?: (value: any, data: DataType) => GroupKeyType<KeyType>;
|
|
1665
|
-
column?: Partial<InfiniteTableGroupColumnBase<DataType>>;
|
|
1666
|
-
};
|
|
1667
1670
|
declare type PivotBy<DataType, KeyType> = Omit<GroupBy<DataType, KeyType>, 'column'> & {
|
|
1668
1671
|
column?: ColumnTypeWithInherit<Partial<InfiniteTableColumn<DataType>>> | (({ column, }: {
|
|
1669
1672
|
column: InfiniteTablePivotFinalColumnVariant<DataType, KeyType>;
|
|
@@ -1972,6 +1975,77 @@ declare function debounce(fn: Function, { wait }: {
|
|
|
1972
1975
|
wait: number;
|
|
1973
1976
|
}): (...args: any[]) => void;
|
|
1974
1977
|
|
|
1978
|
+
/**
|
|
1979
|
+
|
|
1980
|
+
We have this utility - it's used in Menu Renderable declaration
|
|
1981
|
+
because:
|
|
1982
|
+
|
|
1983
|
+
type Renderable = React.ReactNode;
|
|
1984
|
+
|
|
1985
|
+
const x: Renderable = <div />;
|
|
1986
|
+
const y: Renderable = {};
|
|
1987
|
+
|
|
1988
|
+
we don't want to allow the above `y` as a valid declaration
|
|
1989
|
+
|
|
1990
|
+
it breaks some types in the Menu component as well
|
|
1991
|
+
|
|
1992
|
+
*/
|
|
1993
|
+
declare type RemoveObject<T> = T extends null | undefined ? T : T extends unknown ? keyof T extends never ? never : T : never;
|
|
1994
|
+
|
|
1995
|
+
declare type MenuRenderable = string | number | RemoveObject<Renderable>;
|
|
1996
|
+
declare type MenuProps = {
|
|
1997
|
+
items?: MenuItemDefinition[];
|
|
1998
|
+
columns?: MenuColumn[];
|
|
1999
|
+
children?: MenuRenderable;
|
|
2000
|
+
addSubmenuColumnIfNeeded?: boolean;
|
|
2001
|
+
};
|
|
2002
|
+
declare type MenuSeparator = '-';
|
|
2003
|
+
declare type MenuItemDefinition = MenuItemObject | MenuDecoration | MenuSeparator;
|
|
2004
|
+
declare type MenuItemObject = {
|
|
2005
|
+
key: string;
|
|
2006
|
+
label: NonUndefined<MenuRenderable>;
|
|
2007
|
+
span?: number;
|
|
2008
|
+
description?: MenuRenderable;
|
|
2009
|
+
disabled?: boolean;
|
|
2010
|
+
menu?: Omit<MenuProps, 'children' | 'items'> & {
|
|
2011
|
+
items: (MenuItemObject | MenuSeparator)[];
|
|
2012
|
+
};
|
|
2013
|
+
[k: string]: any;
|
|
2014
|
+
};
|
|
2015
|
+
declare type MenuDecoration = MenuRenderable;
|
|
2016
|
+
declare type MenuColumn = {
|
|
2017
|
+
flex?: number;
|
|
2018
|
+
width?: string | number;
|
|
2019
|
+
style?: CSSProperties;
|
|
2020
|
+
name: string;
|
|
2021
|
+
field?: string;
|
|
2022
|
+
render?: (param: MenuColumnRenderParam) => MenuRenderable;
|
|
2023
|
+
};
|
|
2024
|
+
declare type MenuColumnRenderParam = {
|
|
2025
|
+
item: MenuItemObject;
|
|
2026
|
+
column: MenuColumn;
|
|
2027
|
+
value: MenuRenderable;
|
|
2028
|
+
domProps: HTMLProps<HTMLDivElement>;
|
|
2029
|
+
};
|
|
2030
|
+
|
|
2031
|
+
declare function Menu(props: MenuProps & HTMLProps<HTMLDivElement>): JSX.Element;
|
|
2032
|
+
declare namespace Menu {
|
|
2033
|
+
var defaultProps: MenuProps;
|
|
2034
|
+
}
|
|
2035
|
+
declare function MenuItem(_props: {
|
|
2036
|
+
key: MenuItemObject['key'];
|
|
2037
|
+
span?: MenuItemObject['span'];
|
|
2038
|
+
label?: MenuItemObject['label'];
|
|
2039
|
+
children?: MenuItemObject['description'];
|
|
2040
|
+
description?: MenuItemObject['description'];
|
|
2041
|
+
__is_menu_item: boolean;
|
|
2042
|
+
}): null;
|
|
2043
|
+
declare namespace MenuItem {
|
|
2044
|
+
var defaultProps: {
|
|
2045
|
+
__is_menu_item: boolean;
|
|
2046
|
+
};
|
|
2047
|
+
}
|
|
2048
|
+
|
|
1975
2049
|
declare type ForwardPropsToStateFnResult<TYPE_PROPS, TYPE_RESULT> = {
|
|
1976
2050
|
[propName in keyof TYPE_PROPS & keyof TYPE_RESULT]: 1 | ((value: TYPE_PROPS[propName]) => TYPE_RESULT[propName]);
|
|
1977
2051
|
};
|
|
@@ -2034,4 +2108,4 @@ declare const components: {
|
|
|
2034
2108
|
LoadMask: (props: LoadMaskProps) => JSX.Element;
|
|
2035
2109
|
};
|
|
2036
2110
|
|
|
2037
|
-
export { ColumnTypeWithInherit, DataSource, DataSourceAction, DataSourceActionType, DataSourceAggregationReducer, DataSourceComponentActions, DataSourceContextValue, DataSourceData, DataSourceDataParams, DataSourceDataParamsChanges, DataSourceDerivedState, DataSourceFilterFunctionParam, DataSourceFilterOperator, DataSourceFilterOperatorFunction, DataSourceFilterOperatorFunctionParam, DataSourceFilterType, DataSourceFilterValueItem, DataSourceFilterValueItemValueGetter, DataSourceGroupBy, DataSourceGroupRowsList, DataSourceLivePaginationCursorFn, DataSourceLivePaginationCursorParams, DataSourceLivePaginationCursorValue, DataSourceMappedState, DataSourceMappings, DataSourcePivotBy, DataSourcePropAggregationReducers, DataSourcePropCellSelection, DataSourcePropFilterFunction, DataSourcePropFilterTypes, DataSourcePropFilterValue, DataSourcePropGroupBy, DataSourcePropGroupRowsStateObject, DataSourcePropIsRowSelected, DataSourcePropLivePaginationCursor, DataSourcePropMultiRowSelectionChangeParamType, DataSourcePropOnCellSelectionChange, DataSourcePropOnRowSelectionChange, DataSourcePropOnRowSelectionChange_MultiRow, DataSourcePropOnRowSelectionChange_SingleRow, DataSourcePropPivotBy, DataSourcePropRowSelection, DataSourcePropRowSelection_MultiRow, DataSourcePropRowSelection_SingleRow, DataSourcePropSelectionMode, DataSourcePropSortInfo, DataSourcePropSortTypes, DataSourceProps, DataSourceReducer, DataSourceRemoteData, DataSourceSetupState, DataSourceSingleSortInfo, DataSourceSortInfo, DataSourceState, GroupRowsState, InfiniteTable, InfiniteTableAction, InfiniteTableActionType, InfiniteTableApi, InfiniteTableClassName, InfiniteTableColumn, InfiniteTableColumnAggregator, InfiniteTableColumnComparer, InfiniteTableColumnGroup, InfiniteTableColumnRenderFunctionForGroupRows, InfiniteTableColumnRenderFunctionForNormalRows, InfiniteTableColumnRenderParam, InfiniteTableColumnRenderValueParam, InfiniteTableColumnRowspanParam, InfiniteTableColumnSizingOptions, InfiniteTableColumnsMap, InfiniteTableComponent, InfiniteTableComputedColumn, InfiniteTableComputedValues, InfiniteTableContextValue, InfiniteTableFilterEditorProps, InfiniteTableGroupColumnBase, InfiniteTableGroupColumnFunction, InfiniteTableGroupColumnGetterOptions, InfiniteTablePivotColumn, InfiniteTablePropAutoSizeColumnsKey, InfiniteTablePropColumnGroups, InfiniteTablePropColumnOrder, InfiniteTablePropColumnPinning, InfiniteTablePropColumnSizing, InfiniteTablePropColumnTypes, InfiniteTablePropColumnVisibility, InfiniteTablePropColumns, InfiniteTablePropComponents, InfiniteTablePropFilterEditors, InfiniteTablePropGroupColumn, InfiniteTablePropGroupRenderStrategy, InfiniteTablePropHeaderOptions, InfiniteTablePropKeyboardNavigation, InfiniteTablePropRowClassName, InfiniteTablePropRowStyle, InfiniteTableProps, InfiniteTableRowClassNameFn, InfiniteTableRowInfo, InfiniteTableRowStyleFn, InfiniteTableState, LazyGroupDataDeepMap, LazyGroupDataItem, LazyRowInfoGroup, NumberFilterEditor, RowSelectionState, Scrollbars, StringFilterEditor, components, debounce, defaultFilterEditors, defaultFilterTypes, defaultFilterTypes as filterTypes, flatten, getComponentStateRoot, group, interceptMap, multisort, useComponentState, useDataSource, useEffectWithChanges, useInfiniteColumnCell, useInfiniteHeaderCell };
|
|
2111
|
+
export { ColumnTypeWithInherit, DataSource, DataSourceAction, DataSourceActionType, DataSourceAggregationReducer, DataSourceComponentActions, DataSourceContextValue, DataSourceData, DataSourceDataParams, DataSourceDataParamsChanges, DataSourceDerivedState, DataSourceFilterFunctionParam, DataSourceFilterOperator, DataSourceFilterOperatorFunction, DataSourceFilterOperatorFunctionParam, DataSourceFilterType, DataSourceFilterValueItem, DataSourceFilterValueItemValueGetter, DataSourceGroupBy, DataSourceGroupRowsList, DataSourceLivePaginationCursorFn, DataSourceLivePaginationCursorParams, DataSourceLivePaginationCursorValue, DataSourceMappedState, DataSourceMappings, DataSourcePivotBy, DataSourcePropAggregationReducers, DataSourcePropCellSelection, DataSourcePropFilterFunction, DataSourcePropFilterTypes, DataSourcePropFilterValue, DataSourcePropGroupBy, DataSourcePropGroupRowsStateObject, DataSourcePropIsRowSelected, DataSourcePropLivePaginationCursor, DataSourcePropMultiRowSelectionChangeParamType, DataSourcePropOnCellSelectionChange, DataSourcePropOnRowSelectionChange, DataSourcePropOnRowSelectionChange_MultiRow, DataSourcePropOnRowSelectionChange_SingleRow, DataSourcePropPivotBy, DataSourcePropRowSelection, DataSourcePropRowSelection_MultiRow, DataSourcePropRowSelection_SingleRow, DataSourcePropSelectionMode, DataSourcePropSortInfo, DataSourcePropSortTypes, DataSourceProps, DataSourceReducer, DataSourceRemoteData, DataSourceSetupState, DataSourceSingleSortInfo, DataSourceSortInfo, DataSourceState, GroupRowsState, InfiniteTable, InfiniteTableAction, InfiniteTableActionType, InfiniteTableApi, InfiniteTableClassName, InfiniteTableColumn, InfiniteTableColumnAggregator, InfiniteTableColumnComparer, InfiniteTableColumnGroup, InfiniteTableColumnRenderFunctionForGroupRows, InfiniteTableColumnRenderFunctionForNormalRows, InfiniteTableColumnRenderParam, InfiniteTableColumnRenderValueParam, InfiniteTableColumnRowspanParam, InfiniteTableColumnSizingOptions, InfiniteTableColumnsMap, InfiniteTableComponent, InfiniteTableComputedColumn, InfiniteTableComputedValues, InfiniteTableContextValue, InfiniteTableFilterEditorProps, InfiniteTableGroupColumnBase, InfiniteTableGroupColumnFunction, InfiniteTableGroupColumnGetterOptions, InfiniteTablePivotColumn, InfiniteTablePropAutoSizeColumnsKey, InfiniteTablePropColumnGroups, InfiniteTablePropColumnOrder, InfiniteTablePropColumnPinning, InfiniteTablePropColumnSizing, InfiniteTablePropColumnTypes, InfiniteTablePropColumnVisibility, InfiniteTablePropColumns, InfiniteTablePropComponents, InfiniteTablePropFilterEditors, InfiniteTablePropGroupColumn, InfiniteTablePropGroupRenderStrategy, InfiniteTablePropHeaderOptions, InfiniteTablePropKeyboardNavigation, InfiniteTablePropRowClassName, InfiniteTablePropRowStyle, InfiniteTableProps, InfiniteTableRowClassNameFn, InfiniteTableRowInfo, InfiniteTableRowStyleFn, InfiniteTableState, LazyGroupDataDeepMap, LazyGroupDataItem, LazyRowInfoGroup, Menu, MenuItem, MenuItemDefinition, MenuItemObject, MenuProps, NumberFilterEditor, RowSelectionState, Scrollbars, StringFilterEditor, components, debounce, defaultFilterEditors, defaultFilterTypes, defaultFilterTypes as filterTypes, flatten, getComponentStateRoot, group, interceptMap, multisort, useComponentState, useDataSource, useEffectWithChanges, useInfiniteColumnCell, useInfiniteHeaderCell };
|