ms-react-table 1.0.0 → 2.0.1
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 +310 -144
- package/dist/index.css +271 -25
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +47 -12
- package/dist/index.d.ts +47 -12
- package/dist/index.js +864 -144
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +851 -127
- package/dist/index.mjs.map +1 -1
- package/package.json +47 -43
package/dist/index.css
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
/* src/_assets/style.css */
|
|
2
|
+
:root {
|
|
3
|
+
--text-color: #434343;
|
|
4
|
+
--bg-color: #F1F1F1;
|
|
5
|
+
--overlay-color: #D2D2D260;
|
|
6
|
+
--item-bg-color: #F2F2F2;
|
|
7
|
+
}
|
|
2
8
|
.text-center {
|
|
3
9
|
text-align: center;
|
|
4
10
|
}
|
|
@@ -15,30 +21,42 @@
|
|
|
15
21
|
cursor: not-allowed !important;
|
|
16
22
|
opacity: 0.6;
|
|
17
23
|
}
|
|
18
|
-
.table-wrapper {
|
|
24
|
+
.ms-table-wrapper {
|
|
19
25
|
display: grid;
|
|
20
26
|
margin: 15px;
|
|
21
27
|
font-family: "Nunito Sans";
|
|
22
28
|
position: relative;
|
|
29
|
+
overflow: hidden;
|
|
23
30
|
}
|
|
24
|
-
.table-container {
|
|
31
|
+
.ms-table-container {
|
|
25
32
|
width: 100%;
|
|
26
33
|
position: relative;
|
|
27
|
-
overflow:
|
|
34
|
+
overflow: hidden;
|
|
28
35
|
max-height: 600px;
|
|
29
36
|
}
|
|
37
|
+
.ms-table-container:hover {
|
|
38
|
+
overflow: auto;
|
|
39
|
+
}
|
|
40
|
+
.ms-table-container::-webkit-scrollbar {
|
|
41
|
+
width: 4px;
|
|
42
|
+
height: 4px;
|
|
43
|
+
}
|
|
44
|
+
.ms-table-container::-webkit-scrollbar-thumb {
|
|
45
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
46
|
+
border-radius: 4px;
|
|
47
|
+
}
|
|
30
48
|
.ms-auto-width .ms-react-table {
|
|
31
49
|
table-layout: auto !important;
|
|
32
50
|
}
|
|
33
51
|
.ms-react-table {
|
|
34
52
|
table-layout: fixed;
|
|
35
53
|
width: 100%;
|
|
36
|
-
height: 100%;
|
|
37
54
|
}
|
|
38
55
|
.ms-react-table > thead {
|
|
39
56
|
position: sticky;
|
|
40
57
|
top: 0;
|
|
41
|
-
background-color:
|
|
58
|
+
background-color: var(--bg-color);
|
|
59
|
+
z-index: 2;
|
|
42
60
|
}
|
|
43
61
|
.ms-react-table .ms-table-header-cell {
|
|
44
62
|
display: flex;
|
|
@@ -65,7 +83,7 @@
|
|
|
65
83
|
width: auto;
|
|
66
84
|
}
|
|
67
85
|
.ms-react-table tbody > tr:hover {
|
|
68
|
-
background-color:
|
|
86
|
+
background-color: var(--item-bg-color);
|
|
69
87
|
}
|
|
70
88
|
.ms-table-header-cell-title {
|
|
71
89
|
cursor: pointer;
|
|
@@ -89,18 +107,14 @@
|
|
|
89
107
|
right: 0;
|
|
90
108
|
top: 50%;
|
|
91
109
|
width: 1.5px;
|
|
92
|
-
height:
|
|
93
|
-
cursor:
|
|
110
|
+
height: 100%;
|
|
111
|
+
cursor: e-resize;
|
|
94
112
|
user-select: none;
|
|
95
|
-
background-color: #
|
|
113
|
+
background-color: #a1a1a1;
|
|
96
114
|
transform: translateY(-50%);
|
|
97
115
|
}
|
|
98
|
-
.ms-
|
|
99
|
-
|
|
100
|
-
width: 10px;
|
|
101
|
-
right: 5px !important;
|
|
102
|
-
top: 0;
|
|
103
|
-
height: 100%;
|
|
116
|
+
.ms-table-column-resizer.disabled::after {
|
|
117
|
+
cursor: auto;
|
|
104
118
|
}
|
|
105
119
|
.ms-react-table th:last-child .ms-table-header-cell {
|
|
106
120
|
margin-right: 10px;
|
|
@@ -110,7 +124,7 @@
|
|
|
110
124
|
display: flex;
|
|
111
125
|
justify-content: space-between;
|
|
112
126
|
align-items: center;
|
|
113
|
-
background-color:
|
|
127
|
+
background-color: var(--bg-color);
|
|
114
128
|
}
|
|
115
129
|
.table-footer label {
|
|
116
130
|
font-size: 14px;
|
|
@@ -200,7 +214,7 @@
|
|
|
200
214
|
width: 16px;
|
|
201
215
|
}
|
|
202
216
|
.header-menu .column-list {
|
|
203
|
-
background-color: #
|
|
217
|
+
background-color: #fff;
|
|
204
218
|
min-width: 160px;
|
|
205
219
|
padding: 5px;
|
|
206
220
|
box-shadow: 0px 0px 10px 2px #aaa;
|
|
@@ -216,8 +230,6 @@ input.search-input {
|
|
|
216
230
|
box-sizing: border-box;
|
|
217
231
|
padding: 5px;
|
|
218
232
|
}
|
|
219
|
-
.search-input:active {
|
|
220
|
-
}
|
|
221
233
|
.header-menu .column-list .list {
|
|
222
234
|
border-top: 1px solid #ccc;
|
|
223
235
|
max-height: 300px;
|
|
@@ -232,15 +244,15 @@ input.search-input {
|
|
|
232
244
|
display: flex;
|
|
233
245
|
gap: 10px;
|
|
234
246
|
align-items: center;
|
|
247
|
+
&:hover {
|
|
248
|
+
background-color: var(--item-bg-color);
|
|
249
|
+
}
|
|
235
250
|
}
|
|
236
251
|
.overlay-message {
|
|
237
252
|
position: absolute;
|
|
238
|
-
|
|
239
|
-
left:
|
|
240
|
-
|
|
241
|
-
display: flex;
|
|
242
|
-
align-items: center;
|
|
243
|
-
justify-content: center;
|
|
253
|
+
top: 50%;
|
|
254
|
+
left: 50%;
|
|
255
|
+
transform: translate(-50%, -50%);
|
|
244
256
|
}
|
|
245
257
|
.left-pinned {
|
|
246
258
|
position: sticky !important;
|
|
@@ -250,4 +262,238 @@ input.search-input {
|
|
|
250
262
|
position: sticky !important;
|
|
251
263
|
right: 0;
|
|
252
264
|
}
|
|
265
|
+
.filter-modal {
|
|
266
|
+
position: absolute;
|
|
267
|
+
right: -16rem;
|
|
268
|
+
top: 5px;
|
|
269
|
+
width: 15rem;
|
|
270
|
+
height: 98%;
|
|
271
|
+
background-color: #fff;
|
|
272
|
+
z-index: 35;
|
|
273
|
+
border-radius: 5px;
|
|
274
|
+
box-shadow: 0px 0px 10px 1px #aaa;
|
|
275
|
+
transition: all .5s ease-in-out;
|
|
276
|
+
transform-origin: right;
|
|
277
|
+
}
|
|
278
|
+
.ms-overlay {
|
|
279
|
+
height: 100%;
|
|
280
|
+
width: 0;
|
|
281
|
+
position: absolute;
|
|
282
|
+
left: 0;
|
|
283
|
+
top: 0;
|
|
284
|
+
background-color: var(--overlay-color);
|
|
285
|
+
backdrop-filter: blur(1.5px);
|
|
286
|
+
z-index: 2;
|
|
287
|
+
transition: all .5s ease-in-out;
|
|
288
|
+
transform-origin: left;
|
|
289
|
+
}
|
|
290
|
+
.filter-header {
|
|
291
|
+
padding: 5px 10px;
|
|
292
|
+
border-bottom: 1px solid #ddd;
|
|
293
|
+
}
|
|
294
|
+
.filter-header .close {
|
|
295
|
+
float: right;
|
|
296
|
+
}
|
|
297
|
+
.filter-header .close svg {
|
|
298
|
+
height: 20px;
|
|
299
|
+
cursor: pointer;
|
|
300
|
+
}
|
|
301
|
+
.filter-footer {
|
|
302
|
+
position: absolute;
|
|
303
|
+
bottom: 0;
|
|
304
|
+
width: -webkit-fill-available;
|
|
305
|
+
padding: 5px 10px;
|
|
306
|
+
border-top: 1px solid #ddd;
|
|
307
|
+
text-align: right;
|
|
308
|
+
}
|
|
309
|
+
.ms-table-btn {
|
|
310
|
+
padding: 5px 10px;
|
|
311
|
+
background: #434343;
|
|
312
|
+
color: rgb(255, 255, 255);
|
|
313
|
+
border: none;
|
|
314
|
+
border-radius: 4px;
|
|
315
|
+
cursor: pointer;
|
|
316
|
+
}
|
|
317
|
+
.ms-table-btn.ms-table-btn-default {
|
|
318
|
+
background-color: transparent;
|
|
319
|
+
border: 1px solid #888;
|
|
320
|
+
color: #434343;
|
|
321
|
+
}
|
|
322
|
+
.ms-table-btn:disabled {
|
|
323
|
+
background-color: #ccc;
|
|
324
|
+
color: #f2f2f2;
|
|
325
|
+
border: 1px solid #888;
|
|
326
|
+
cursor: not-allowed;
|
|
327
|
+
}
|
|
328
|
+
.filter-body {
|
|
329
|
+
padding: 5px;
|
|
330
|
+
overflow-y: hidden;
|
|
331
|
+
&:hover {
|
|
332
|
+
overflow-y: auto;
|
|
333
|
+
}
|
|
334
|
+
&::-webkit-scrollbar {
|
|
335
|
+
width: 4px;
|
|
336
|
+
height: 4px;
|
|
337
|
+
}
|
|
338
|
+
&::-webkit-scrollbar-thumb {
|
|
339
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
340
|
+
border-radius: 4px;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
.ms-form-item {
|
|
344
|
+
margin-bottom: 5PX;
|
|
345
|
+
label {
|
|
346
|
+
font-size: 14px;
|
|
347
|
+
color: #434343;
|
|
348
|
+
font-weight: 600;
|
|
349
|
+
}
|
|
350
|
+
Select {
|
|
351
|
+
border: 1px solid #ccc;
|
|
352
|
+
border-radius: 4px;
|
|
353
|
+
box-sizing: border-box;
|
|
354
|
+
padding: 5px;
|
|
355
|
+
width: -webkit-fill-available;
|
|
356
|
+
margin-bottom: 5px;
|
|
357
|
+
color: #434343;
|
|
358
|
+
}
|
|
359
|
+
input {
|
|
360
|
+
border: 1px solid #ccc;
|
|
361
|
+
border-radius: 4px;
|
|
362
|
+
box-sizing: border-box;
|
|
363
|
+
padding: 5px;
|
|
364
|
+
width: -webkit-fill-available;
|
|
365
|
+
color: #434343;
|
|
366
|
+
}
|
|
367
|
+
.ms-range-icon {
|
|
368
|
+
display: flex;
|
|
369
|
+
justify-content: center;
|
|
370
|
+
align-items: center;
|
|
371
|
+
margin: 2px auto;
|
|
372
|
+
}
|
|
373
|
+
svg {
|
|
374
|
+
width: 16px;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
.ms-radio-group {
|
|
378
|
+
display: flex;
|
|
379
|
+
align-items: center;
|
|
380
|
+
gap: 15px;
|
|
381
|
+
.ms-radio-item {
|
|
382
|
+
display: flex;
|
|
383
|
+
align-items: center;
|
|
384
|
+
line-height: 1;
|
|
385
|
+
.ms-table-radio {
|
|
386
|
+
margin: 0;
|
|
387
|
+
margin-right: 5px;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
.ms-table-clear-item {
|
|
392
|
+
height: 14px;
|
|
393
|
+
cursor: pointer;
|
|
394
|
+
color: #ccc;
|
|
395
|
+
}
|
|
396
|
+
.ms-table-clear-item:hover {
|
|
397
|
+
color: #434343;
|
|
398
|
+
}
|
|
399
|
+
.ms-loader-wrapper {
|
|
400
|
+
width: 100%;
|
|
401
|
+
height: 100%;
|
|
402
|
+
position: absolute;
|
|
403
|
+
top: 50%;
|
|
404
|
+
left: 50%;
|
|
405
|
+
transform: translate(-50%, -50%);
|
|
406
|
+
z-index: 9;
|
|
407
|
+
display: flex;
|
|
408
|
+
justify-content: center;
|
|
409
|
+
align-items: center;
|
|
410
|
+
gap: 5px;
|
|
411
|
+
span {
|
|
412
|
+
font-size: 1rem;
|
|
413
|
+
font-weight: 500;
|
|
414
|
+
z-index: 1;
|
|
415
|
+
}
|
|
416
|
+
.ms-loader-overlay {
|
|
417
|
+
width: 100%;
|
|
418
|
+
height: 100%;
|
|
419
|
+
position: absolute;
|
|
420
|
+
top: 0;
|
|
421
|
+
background-color: #c5c5c56e;
|
|
422
|
+
backdrop-filter: blur(1.5px);
|
|
423
|
+
}
|
|
424
|
+
.ms-loader {
|
|
425
|
+
width: 35px;
|
|
426
|
+
height: 35px;
|
|
427
|
+
border: 5px solid #434343;
|
|
428
|
+
border-bottom-color: #fff;
|
|
429
|
+
border-radius: 50%;
|
|
430
|
+
display: inline-block;
|
|
431
|
+
box-sizing: border-box;
|
|
432
|
+
animation: rotation 1s linear infinite;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
@keyframes rotation {
|
|
436
|
+
0% {
|
|
437
|
+
transform: rotate(0deg);
|
|
438
|
+
}
|
|
439
|
+
100% {
|
|
440
|
+
transform: rotate(360deg);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
.ms-checkbox-wrapper {
|
|
444
|
+
--size: 14px;
|
|
445
|
+
position: relative;
|
|
446
|
+
display: inline-block;
|
|
447
|
+
line-height: 1;
|
|
448
|
+
display: flex;
|
|
449
|
+
align-items: center;
|
|
450
|
+
.ms-promoted-input-checkbox {
|
|
451
|
+
position: absolute;
|
|
452
|
+
opacity: 0;
|
|
453
|
+
cursor: pointer;
|
|
454
|
+
margin: 0;
|
|
455
|
+
}
|
|
456
|
+
.ms-checkbox-box {
|
|
457
|
+
display: inline-block;
|
|
458
|
+
height: var(--size);
|
|
459
|
+
width: var(--size);
|
|
460
|
+
border: 2px solid var(--text-color);
|
|
461
|
+
border-radius: 3px;
|
|
462
|
+
cursor: pointer;
|
|
463
|
+
}
|
|
464
|
+
svg {
|
|
465
|
+
cursor: pointer;
|
|
466
|
+
stroke: var(--text-color);
|
|
467
|
+
stroke-width: 3px;
|
|
468
|
+
height: 0;
|
|
469
|
+
width: calc(var(--size) * 0.6);
|
|
470
|
+
position: absolute;
|
|
471
|
+
left: calc(var(--size) * 0.3);
|
|
472
|
+
top: calc(var(--size) * 0.3);
|
|
473
|
+
stroke-dasharray: 33;
|
|
474
|
+
}
|
|
475
|
+
.ms-promoted-input-checkbox:checked ~ svg {
|
|
476
|
+
height: calc(var(--size) * 0.6);
|
|
477
|
+
animation: ms-draw-checkbox ease-in-out 0.2s forwards;
|
|
478
|
+
cursor: pointer;
|
|
479
|
+
}
|
|
480
|
+
.ms-promoted-input-checkbox:disabled {
|
|
481
|
+
cursor: not-allowed;
|
|
482
|
+
}
|
|
483
|
+
.ms-promoted-input-checkbox:disabled + .ms-checkbox-box {
|
|
484
|
+
background-color: #D2D2D2;
|
|
485
|
+
cursor: not-allowed;
|
|
486
|
+
}
|
|
487
|
+
.ms-promoted-input-checkbox:disabled ~ svg {
|
|
488
|
+
cursor: not-allowed;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
@keyframes ms-draw-checkbox {
|
|
492
|
+
0% {
|
|
493
|
+
stroke-dashoffset: 33;
|
|
494
|
+
}
|
|
495
|
+
100% {
|
|
496
|
+
stroke-dashoffset: 0;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
253
499
|
/*# sourceMappingURL=index.css.map */
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/_assets/style.css"],"sourcesContent":[".text-center {\r\n text-align: center;\r\n}\r\n\r\n.text-left {\r\n text-align: left;\r\n}\r\n\r\n.text-right {\r\n text-align: right;\r\n}\r\n\r\n.cursor-pointer {\r\n cursor: pointer;\r\n}\r\n\r\n.cursor-disabled {\r\n cursor: not-allowed !important;\r\n opacity: 0.6;\r\n}\r\n\r\n.table-wrapper {\r\n display: grid;\r\n margin: 15px;\r\n font-family: 'Nunito Sans';\r\n position: relative;\r\n}\r\n\r\n.table-container {\r\n width: 100%;\r\n position: relative;\r\n overflow: auto;\r\n max-height: 600px;\r\n}\r\n\r\n.ms-auto-width .ms-react-table {\r\n table-layout: auto !important;\r\n}\r\n\r\n.ms-react-table {\r\n table-layout: fixed;\r\n width: 100%;\r\n height: 100%;\r\n}\r\n\r\n.ms-react-table>thead {\r\n position: sticky;\r\n top: 0;\r\n background-color: #ddd;\r\n}\r\n\r\n.ms-react-table .ms-table-header-cell {\r\n display: flex;\r\n flex: 0 0 1;\r\n justify-content: space-between;\r\n align-items: center;\r\n user-select: none;\r\n}\r\n\r\n.ms-react-table th {\r\n padding: 10px;\r\n position: relative;\r\n}\r\n\r\n.ms-react-table th .ms-table-header-action {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.ms-react-table th .ms-table-header-action svg {\r\n cursor: pointer;\r\n}\r\n\r\n.ms-react-table td {\r\n padding: 5px 10px;\r\n border-top: 1px solid #e9e9e9;\r\n border-bottom: 1px solid #e9e9e9;\r\n width: auto;\r\n}\r\n.ms-react-table tbody > tr:hover{\r\n background-color: #f4f4f4;\r\n}\r\n\r\n.ms-table-header-cell-title {\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n gap: 5px;\r\n}\r\n\r\n.ms-table-header-cell-title svg {\r\n width: 14px;\r\n height: 14px;\r\n}\r\n\r\n.ms-table-header-cell-title,\r\n.ms-react-table td {\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n}\r\n\r\n.ms-table-column-resizer::after {\r\n content: '';\r\n position: absolute;\r\n right: 0;\r\n top: 50%;\r\n width: 1.5px;\r\n height: 1.5rem;\r\n cursor: col-resize;\r\n user-select: none;\r\n background-color: #2e2e2e;\r\n transform: translateY(-50%);\r\n}\r\n\r\n.ms-react-table th:last-child .ms-table-column-resizer {\r\n position: absolute;\r\n width: 10px;\r\n right: 5px !important;\r\n top: 0;\r\n height: 100%;\r\n}\r\n\r\n.ms-react-table th:last-child .ms-table-header-cell {\r\n margin-right: 10px;\r\n}\r\n\r\n.table-footer {\r\n padding: 5px 10px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n background-color: #ddd;\r\n}\r\n\r\n.table-footer label {\r\n font-size: 14px;\r\n}\r\n\r\n.pagination-controls {\r\n display: flex;\r\n align-items: center;\r\n gap: 10px;\r\n}\r\n\r\n.pagination-buttons {\r\n display: flex;\r\n align-items: center;\r\n line-height: 1;\r\n gap: 5px;\r\n}\r\n\r\n.pagination-buttons span {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n font-size: 14px;\r\n cursor: pointer;\r\n}\r\n\r\n.pagination-buttons span svg {\r\n width: 16px;\r\n color: #2e2e2e;\r\n}\r\n\r\n.pagination-info select {\r\n margin-left: 5px;\r\n padding: 2px 5px;\r\n border: 1px solid #2e2e2e;\r\n border-radius: 4px;\r\n background-color: white;\r\n}\r\n\r\n.pagination-info select option {\r\n border: none;\r\n outline: none;\r\n}\r\n\r\n.header-menu {\r\n position: absolute;\r\n top: 0;\r\n}\r\n\r\n.header-menu ul {\r\n background-color: #fff;\r\n box-shadow: 0px 0px 10px 2px #aaa;\r\n list-style: none;\r\n padding: 0;\r\n border-radius: 2px;\r\n margin: 0;\r\n width: 200px;\r\n}\r\n\r\n.header-menu ul li {\r\n cursor: pointer;\r\n position: relative;\r\n font-size: 14px;\r\n padding: 10px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: left;\r\n gap: 5px;\r\n border-bottom: 2px groove #f3f3f3;\r\n /* Adjust thickness as needed */\r\n}\r\n\r\n.header-menu ul li:last-child {\r\n border-bottom: none;\r\n}\r\n\r\n.header-menu ul li:hover {\r\n background-color: #f2f2f2;\r\n}\r\n\r\n.header-menu ul li:hover ul {\r\n transform: scaleX(1) !important;\r\n}\r\n\r\n.header-menu ul>li>span {\r\n line-height: .5;\r\n}\r\n\r\n.header-menu ul>li>span>svg {\r\n width: 16px;\r\n height: 16px;\r\n}\r\n\r\n/* Child menu css */\r\n.header-menu ul li>ul {\r\n position: absolute;\r\n top: 0;\r\n right: -6.25rem;\r\n transform: scaleX(0);\r\n transition: all 0.25s ease-in-out;\r\n transform-origin: left;\r\n}\r\n\r\n.header-menu ul li>ul li span {\r\n width: 16px;\r\n}\r\n\r\n.header-menu .column-list {\r\n background-color: #f2f2f2;\r\n min-width: 160px;\r\n padding: 5px;\r\n box-shadow: 0px 0px 10px 2px #aaa;\r\n}\r\n\r\n.header-menu .column-list .search {\r\n margin-bottom: 10px;\r\n}\r\n\r\ninput.search-input {\r\n width: 100%;\r\n display: inline-block;\r\n border: 1px solid rgb(77, 77, 77);\r\n border-radius: 4px;\r\n box-sizing: border-box;\r\n padding: 5px;\r\n}\r\n\r\n.search-input:active {\r\n /* border: 1px solid ; */\r\n}\r\n\r\n.header-menu .column-list .list {\r\n border-top: 1px solid #ccc;\r\n max-height: 300px;\r\n overflow-y: auto;\r\n}\r\n.ms-checkbox-input{\r\n height: 14px;\r\n width: 14px;\r\n}\r\n.header-menu .column-list .list .item {\r\n padding: 5px;\r\n display: flex;\r\n gap: 10px;\r\n align-items: center;\r\n}\r\n\r\n.overlay-message {\r\n position: absolute;\r\n width: 100%;\r\n left: 0;\r\n top: 0;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n/* Pinned Style start*/\r\n.left-pinned {\r\n position: sticky !important;\r\n left: 0;\r\n}\r\n\r\n.right-pinned {\r\n position: sticky !important;\r\n right: 0;\r\n}\r\n"],"mappings":";AAAA,CAAC;AACG,cAAY;AAChB;AAEA,CAAC;AACG,cAAY;AAChB;AAEA,CAAC;AACG,cAAY;AAChB;AAEA,CAAC;AACG,UAAQ;AACZ;AAEA,CAAC;AACG,UAAQ;AACR,WAAS;AACb;AAEA,CAAC;AACG,WAAS;AACT,UAAQ;AACR,eAAa;AACb,YAAU;AACd;AAEA,CAAC;AACG,SAAO;AACP,YAAU;AACV,YAAU;AACV,cAAY;AAChB;AAEA,CAAC,cAAc,CAAC;AACZ,gBAAc;AAClB;AAEA,CAJgB;AAKZ,gBAAc;AACd,SAAO;AACP,UAAQ;AACZ;AAEA,CAVgB,eAUD,EAAC;AACZ,YAAU;AACV,OAAK;AACL,oBAAkB;AACtB;AAEA,CAhBgB,eAgBA,CAAC;AACb,WAAS;AACT,QAAM,EAAE,EAAE;AACV,mBAAiB;AACjB,eAAa;AACb,eAAa;AACjB;AAEA,CAxBgB,eAwBA;AACZ,WAAS;AACT,YAAU;AACd;AAEA,CA7BgB,eA6BA,GAAG,CAAC;AAChB,WAAS;AACT,eAAa;AACjB;AAEA,CAlCgB,eAkCA,GAAG,CALC,uBAKuB;AACvC,UAAQ;AACZ;AAEA,CAtCgB,eAsCA;AACZ,WAAS,IAAI;AACb,cAAY,IAAI,MAAM;AACtB,iBAAe,IAAI,MAAM;AACzB,SAAO;AACX;AACA,CA5CgB,eA4CA,MAAM,EAAE,EAAE;AACtB,oBAAkB;AACtB;AAEA,CAAC;AACG,UAAQ;AACR,WAAS;AACT,eAAa;AACb,OAAK;AACT;AAEA,CAPC,2BAO2B;AACxB,SAAO;A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YAAU;AACV,SAAO;AACX;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/_assets/style.css"],"sourcesContent":[":root {\r\n --text-color : #434343;\r\n --bg-color: #F1F1F1;\r\n --overlay-color: #D2D2D260;\r\n --item-bg-color: #F2F2F2;\r\n}\r\n\r\n.text-center {\r\n text-align: center;\r\n}\r\n\r\n.text-left {\r\n text-align: left;\r\n}\r\n\r\n.text-right {\r\n text-align: right;\r\n}\r\n\r\n.cursor-pointer {\r\n cursor: pointer;\r\n}\r\n\r\n.cursor-disabled {\r\n cursor: not-allowed !important;\r\n opacity: 0.6;\r\n}\r\n\r\n.ms-table-wrapper {\r\n display: grid;\r\n margin: 15px;\r\n font-family: 'Nunito Sans';\r\n position: relative;\r\n overflow: hidden;\r\n}\r\n\r\n.ms-table-container {\r\n width: 100%;\r\n position: relative;\r\n overflow: hidden;\r\n max-height: 600px;\r\n}\r\n\r\n/* Show scrollbars only on hover */\r\n.ms-table-container:hover {\r\n overflow: auto;\r\n}\r\n\r\n/* Optional: style scrollbar for WebKit browsers */\r\n.ms-table-container::-webkit-scrollbar {\r\n width: 4px;\r\n height: 4px;\r\n}\r\n\r\n.ms-table-container::-webkit-scrollbar-thumb {\r\n background-color: rgba(0,0,0,0.4);\r\n border-radius: 4px;\r\n}\r\n\r\n\r\n.ms-auto-width .ms-react-table {\r\n table-layout: auto !important;\r\n}\r\n\r\n.ms-react-table {\r\n table-layout: fixed;\r\n width: 100%;\r\n}\r\n\r\n.ms-react-table>thead {\r\n position: sticky;\r\n top: 0;\r\n background-color: var(--bg-color);\r\n z-index: 2\r\n}\r\n\r\n.ms-react-table .ms-table-header-cell {\r\n display: flex;\r\n flex: 0 0 1;\r\n justify-content: space-between;\r\n align-items: center;\r\n user-select: none;\r\n}\r\n\r\n.ms-react-table th {\r\n padding: 10px;\r\n position: relative;\r\n}\r\n\r\n.ms-react-table th .ms-table-header-action {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.ms-react-table th .ms-table-header-action svg {\r\n cursor: pointer;\r\n}\r\n\r\n.ms-react-table td {\r\n padding: 5px 10px;\r\n border-top: 1px solid #e9e9e9;\r\n border-bottom: 1px solid #e9e9e9;\r\n width: auto;\r\n}\r\n\r\n.ms-react-table tbody>tr:hover {\r\n background-color: var(--item-bg-color);\r\n}\r\n\r\n.ms-table-header-cell-title {\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n gap: 5px;\r\n}\r\n\r\n.ms-table-header-cell-title svg {\r\n width: 14px;\r\n height: 14px;\r\n}\r\n\r\n.ms-table-header-cell-title,\r\n.ms-react-table td {\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n}\r\n\r\n.ms-table-column-resizer::after {\r\n content: '';\r\n position: absolute;\r\n right: 0;\r\n top: 50%;\r\n width: 1.5px;\r\n height: 100%;\r\n cursor: e-resize;\r\n user-select: none;\r\n background-color: #a1a1a1;\r\n transform: translateY(-50%);\r\n}\r\n\r\n.ms-table-column-resizer.disabled::after {\r\n cursor: auto;\r\n}\r\n\r\n.ms-react-table th:last-child .ms-table-header-cell {\r\n margin-right: 10px;\r\n}\r\n\r\n.table-footer {\r\n padding: 5px 10px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n background-color: var(--bg-color);\r\n}\r\n\r\n.table-footer label {\r\n font-size: 14px;\r\n}\r\n\r\n.pagination-controls {\r\n display: flex;\r\n align-items: center;\r\n gap: 10px;\r\n}\r\n\r\n.pagination-buttons {\r\n display: flex;\r\n align-items: center;\r\n line-height: 1;\r\n gap: 5px;\r\n}\r\n\r\n.pagination-buttons span {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n font-size: 14px;\r\n cursor: pointer;\r\n}\r\n\r\n.pagination-buttons span svg {\r\n width: 16px;\r\n color: #2e2e2e;\r\n}\r\n\r\n.pagination-info select {\r\n margin-left: 5px;\r\n padding: 2px 5px;\r\n border: 1px solid #2e2e2e;\r\n border-radius: 4px;\r\n background-color: white;\r\n}\r\n\r\n.pagination-info select option {\r\n border: none;\r\n outline: none;\r\n}\r\n\r\n.header-menu {\r\n position: absolute;\r\n top: 0;\r\n}\r\n\r\n.header-menu ul {\r\n background-color: #fff;\r\n box-shadow: 0px 0px 10px 2px #aaa;\r\n list-style: none;\r\n padding: 0;\r\n border-radius: 2px;\r\n margin: 0;\r\n width: 200px;\r\n}\r\n\r\n.header-menu ul li {\r\n cursor: pointer;\r\n position: relative;\r\n font-size: 14px;\r\n padding: 10px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: left;\r\n gap: 5px;\r\n border-bottom: 2px groove #f3f3f3;\r\n /* Adjust thickness as needed */\r\n}\r\n\r\n.header-menu ul li:last-child {\r\n border-bottom: none;\r\n}\r\n\r\n.header-menu ul li:hover {\r\n background-color: #f2f2f2;\r\n}\r\n\r\n.header-menu ul li:hover ul {\r\n transform: scaleX(1) !important;\r\n}\r\n\r\n.header-menu ul>li>span {\r\n line-height: .5;\r\n}\r\n\r\n.header-menu ul>li>span>svg {\r\n width: 16px;\r\n height: 16px;\r\n}\r\n\r\n/* Child menu css */\r\n.header-menu ul li>ul {\r\n position: absolute;\r\n top: 0;\r\n right: -6.25rem;\r\n transform: scaleX(0);\r\n transition: all 0.25s ease-in-out;\r\n transform-origin: left;\r\n}\r\n\r\n.header-menu ul li>ul li span {\r\n width: 16px;\r\n}\r\n\r\n.header-menu .column-list {\r\n background-color: #fff;\r\n min-width: 160px;\r\n padding: 5px;\r\n box-shadow: 0px 0px 10px 2px #aaa;\r\n}\r\n\r\n.header-menu .column-list .search {\r\n margin-bottom: 10px;\r\n}\r\n\r\ninput.search-input {\r\n width: 100%;\r\n display: inline-block;\r\n border: 1px solid rgb(77, 77, 77);\r\n border-radius: 4px;\r\n box-sizing: border-box;\r\n padding: 5px;\r\n}\r\n\r\n.header-menu .column-list .list {\r\n border-top: 1px solid #ccc;\r\n max-height: 300px;\r\n overflow-y: auto;\r\n}\r\n\r\n.ms-checkbox-input {\r\n height: 14px;\r\n width: 14px;\r\n}\r\n\r\n.header-menu .column-list .list .item {\r\n padding: 5px;\r\n display: flex;\r\n gap: 10px;\r\n align-items: center;\r\n &:hover{\r\n background-color: var(--item-bg-color);\r\n }\r\n}\r\n\r\n.overlay-message {\r\n position: absolute;\r\n top: 50%;\r\n left: 50%;\r\n transform: translate(-50%, -50%);\r\n}\r\n\r\n/* Pinned Style start*/\r\n.left-pinned {\r\n position: sticky !important;\r\n left: 0;\r\n}\r\n\r\n.right-pinned {\r\n position: sticky !important;\r\n right: 0;\r\n}\r\n\r\n/* Filter Modal Css */\r\n.filter-modal {\r\n position: absolute;\r\n right: -16rem;\r\n top: 5px;\r\n width: 15rem;\r\n height: 98%;\r\n background-color: #fff;\r\n z-index: 35;\r\n border-radius: 5px;\r\n box-shadow: 0px 0px 10px 1px #aaa;\r\n transition: all .5s ease-in-out;\r\n transform-origin: right;\r\n}\r\n\r\n.ms-overlay {\r\n height: 100%;\r\n width: 0;\r\n position: absolute;\r\n left: 0;\r\n top: 0;\r\n background-color: var(--overlay-color);\r\n backdrop-filter: blur(1.5px);\r\n z-index: 2;\r\n transition: all .5s ease-in-out;\r\n transform-origin: left;\r\n}\r\n\r\n.filter-header {\r\n padding: 5px 10px;\r\n border-bottom: 1px solid #ddd;\r\n}\r\n\r\n.filter-header .close {\r\n float: right;\r\n}\r\n\r\n.filter-header .close svg {\r\n height: 20px;\r\n cursor: pointer;\r\n}\r\n\r\n.filter-footer {\r\n position: absolute;\r\n bottom: 0;\r\n width: -webkit-fill-available;\r\n padding: 5px 10px;\r\n border-top: 1px solid #ddd;\r\n text-align: right;\r\n}\r\n\r\n.ms-table-btn {\r\n padding: 5px 10px;\r\n background: #434343;\r\n color: rgb(255, 255, 255);\r\n border: none;\r\n border-radius: 4px;\r\n cursor: pointer;\r\n}\r\n\r\n.ms-table-btn.ms-table-btn-default {\r\n background-color: transparent;\r\n border: 1px solid #888;\r\n color: #434343;\r\n}\r\n\r\n.ms-table-btn:disabled {\r\n background-color: #ccc;\r\n color: #f2f2f2;\r\n border: 1px solid #888;\r\n cursor: not-allowed;\r\n}\r\n\r\n.filter-body {\r\n padding: 5px;\r\n overflow-y: hidden;\r\n\r\n &:hover {\r\n overflow-y: auto;\r\n }\r\n\r\n /* Optional: style scrollbar for WebKit browsers */\r\n &::-webkit-scrollbar {\r\n width: 4px;\r\n height: 4px;\r\n }\r\n\r\n &::-webkit-scrollbar-thumb {\r\n background-color: rgba(0,0,0,0.4);\r\n border-radius: 4px;\r\n }\r\n}\r\n\r\n.ms-form-item {\r\n margin-bottom: 5PX;\r\n\r\n label {\r\n font-size: 14px;\r\n color: #434343;\r\n font-weight: 600;\r\n }\r\n\r\n Select {\r\n border: 1px solid #ccc;\r\n border-radius: 4px;\r\n box-sizing: border-box;\r\n padding: 5px;\r\n width: -webkit-fill-available;\r\n margin-bottom: 5px;\r\n color: #434343;\r\n }\r\n\r\n input {\r\n border: 1px solid #ccc;\r\n border-radius: 4px;\r\n box-sizing: border-box;\r\n padding: 5px;\r\n width: -webkit-fill-available;\r\n color: #434343;\r\n }\r\n\r\n .ms-range-icon {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n margin: 2px auto;\r\n }\r\n\r\n svg {\r\n width: 16px;\r\n }\r\n}\r\n\r\n.ms-radio-group {\r\n display: flex;\r\n align-items: center;\r\n gap: 15px;\r\n\r\n .ms-radio-item {\r\n display: flex;\r\n align-items: center;\r\n line-height: 1;\r\n\r\n .ms-table-radio {\r\n margin: 0;\r\n margin-right: 5px;\r\n }\r\n }\r\n}\r\n\r\n.ms-table-clear-item {\r\n height: 14px;\r\n cursor: pointer;\r\n color: #ccc;\r\n}\r\n\r\n.ms-table-clear-item:hover {\r\n color: #434343;\r\n}\r\n\r\n.ms-loader-wrapper {\r\n width: 100%;\r\n height: 100%;\r\n position: absolute;\r\n top: 50%;\r\n left: 50%;\r\n transform: translate(-50%, -50%);\r\n z-index: 9;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n gap: 5px;\r\n\r\n span {\r\n font-size: 1rem;\r\n font-weight: 500;\r\n z-index: 1;\r\n }\r\n\r\n .ms-loader-overlay {\r\n width: 100%;\r\n height: 100%;\r\n position: absolute;\r\n top: 0;\r\n background-color: #c5c5c56e;\r\n backdrop-filter: blur(1.5px);\r\n }\r\n\r\n .ms-loader {\r\n width: 35px;\r\n height: 35px;\r\n border: 5px solid #434343;\r\n border-bottom-color: #fff;\r\n border-radius: 50%;\r\n display: inline-block;\r\n box-sizing: border-box;\r\n animation: rotation 1s linear infinite;\r\n }\r\n}\r\n\r\n@keyframes rotation {\r\n 0% {\r\n transform: rotate(0deg);\r\n\r\n }\r\n\r\n 100% {\r\n transform: rotate(360deg);\r\n }\r\n}\r\n\r\n.ms-checkbox-wrapper {\r\n --size: 14px;\r\n position: relative;\r\n display: inline-block;\r\n line-height:1;\r\n display: flex;\r\n align-items: center;\r\n .ms-promoted-input-checkbox {\r\n position: absolute;\r\n opacity: 0;\r\n cursor: pointer;\r\n margin: 0;\r\n }\r\n .ms-checkbox-box {\r\n display: inline-block;\r\n height: var(--size);\r\n width: var(--size);\r\n border: 2px solid var(--text-color);\r\n border-radius: 3px;\r\n cursor: pointer;\r\n }\r\n svg {\r\n cursor: pointer;\r\n stroke: var(--text-color);\r\n stroke-width: 3px;\r\n height: 0;\r\n width: calc(var(--size) * 0.6);\r\n position: absolute;\r\n left: calc(var(--size) * 0.3);\r\n top: calc(var(--size) * 0.3);\r\n stroke-dasharray: 33;\r\n }\r\n\r\n /* When checked, show tick */\r\n .ms-promoted-input-checkbox:checked~svg {\r\n height: calc(var(--size) * 0.6);\r\n animation: ms-draw-checkbox ease-in-out 0.2s forwards;\r\n cursor: pointer;\r\n }\r\n .ms-promoted-input-checkbox:disabled{\r\n cursor: not-allowed;\r\n }\r\n .ms-promoted-input-checkbox:disabled + .ms-checkbox-box {\r\n background-color: #D2D2D2;\r\n cursor: not-allowed;\r\n }\r\n .ms-promoted-input-checkbox:disabled~svg {\r\n cursor: not-allowed;\r\n }\r\n}\r\n\r\n@keyframes ms-draw-checkbox {\r\n 0% {\r\n stroke-dashoffset: 33;\r\n }\r\n\r\n 100% {\r\n stroke-dashoffset: 0;\r\n }\r\n}"],"mappings":";AAAA;AACI,gBAAe;AACf,cAAY;AACZ,mBAAiB;AACjB,mBAAiB;AACrB;AAEA,CAAC;AACG,cAAY;AAChB;AAEA,CAAC;AACG,cAAY;AAChB;AAEA,CAAC;AACG,cAAY;AAChB;AAEA,CAAC;AACG,UAAQ;AACZ;AAEA,CAAC;AACG,UAAQ;AACR,WAAS;AACb;AAEA,CAAC;AACG,WAAS;AACT,UAAQ;AACR,eAAa;AACb,YAAU;AACV,YAAU;AACd;AAEA,CAAC;AACG,SAAO;AACP,YAAU;AACV,YAAU;AACV,cAAY;AAChB;AAGA,CARC,kBAQkB;AACjB,YAAU;AACZ;AAGA,CAbC,kBAakB;AACjB,SAAO;AACP,UAAQ;AACV;AAEA,CAlBC,kBAkBkB;AACjB,oBAAkB,KAAK,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC;AAC7B,iBAAe;AACjB;AAGA,CAAC,cAAc,CAAC;AACZ,gBAAc;AAClB;AAEA,CAJgB;AAKZ,gBAAc;AACd,SAAO;AACX;AAEA,CATgB,eASD,EAAC;AACZ,YAAU;AACV,OAAK;AACL,oBAAkB,IAAI;AACtB,WAAS;AACb;AAEA,CAhBgB,eAgBA,CAAC;AACb,WAAS;AACT,QAAM,EAAE,EAAE;AACV,mBAAiB;AACjB,eAAa;AACb,eAAa;AACjB;AAEA,CAxBgB,eAwBA;AACZ,WAAS;AACT,YAAU;AACd;AAEA,CA7BgB,eA6BA,GAAG,CAAC;AAChB,WAAS;AACT,eAAa;AACjB;AAEA,CAlCgB,eAkCA,GAAG,CALC,uBAKuB;AACvC,UAAQ;AACZ;AAEA,CAtCgB,eAsCA;AACZ,WAAS,IAAI;AACb,cAAY,IAAI,MAAM;AACtB,iBAAe,IAAI,MAAM;AACzB,SAAO;AACX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AACG,cAAU;AACV,aAAS;AACT,YAAQ;AACR,YAAQ;AACZ;AACA,GAAC;AACG,aAAS;AACT,YAAQ,IAAI;AACZ,WAAO,IAAI;AACX,YAAQ,IAAI,MAAM,IAAI;AACtB,mBAAe;AACf,YAAQ;AACZ;AACA;AACI,YAAQ;AACR,YAAQ,IAAI;AACZ,kBAAc;AACd,YAAQ;AACR,WAAO,KAAK,IAAI,QAAQ,EAAE;AAC1B,cAAU;AACV,UAAM,KAAK,IAAI,QAAQ,EAAE;AACzB,SAAK,KAAK,IAAI,QAAQ,EAAE;AACxB,sBAAkB;AACtB;AAGA,GA3BC,0BA2B0B,SAAQ,EAAC;AAChC,YAAQ,KAAK,IAAI,QAAQ,EAAE;AAC3B,eAAW,iBAAiB,YAAY,KAAK;AAC7C,YAAQ;AACZ;AACA,GAhCC,0BAgC0B;AACvB,YAAQ;AACZ;AACA,GAnCC,0BAmC0B,UAAU,EAAE,CA7BtC;AA8BG,sBAAkB;AAClB,YAAQ;AACZ;AACA,GAvCC,0BAuC0B,UAAS,EAAC;AACjC,YAAQ;AACZ;AACJ;AAEA,WAfmB;AAgBf;AACI,uBAAmB;AACvB;AAEA;AACI,uBAAmB;AACvB;AACJ;","names":[]}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,45 +1,80 @@
|
|
|
1
1
|
import React, { JSX } from 'react';
|
|
2
2
|
|
|
3
|
+
type sortDirection = "asc" | "desc" | "";
|
|
4
|
+
interface GridFunctions {
|
|
5
|
+
showFilterModal: (visible: boolean) => void;
|
|
6
|
+
setRowData: (data: any[], count: number) => void;
|
|
7
|
+
exportToCSV: (fileName: string) => void;
|
|
8
|
+
exportToExcel: (fileName: string) => void;
|
|
9
|
+
}
|
|
10
|
+
type dataType = "string" | "number" | "date" | "boolean" | "object" | undefined;
|
|
11
|
+
type Operation = "include" | "not include" | "=" | "!=" | ">" | "<" | "<>";
|
|
12
|
+
interface FilterRule {
|
|
13
|
+
type: dataType;
|
|
14
|
+
operation: Operation;
|
|
15
|
+
value: any;
|
|
16
|
+
}
|
|
17
|
+
interface filterValuesType {
|
|
18
|
+
[dataIndex: string]: FilterRule;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type DisplayAs = {
|
|
22
|
+
true: string;
|
|
23
|
+
false: string;
|
|
24
|
+
};
|
|
3
25
|
interface MsTableHeaderCellTypes {
|
|
4
26
|
title: string;
|
|
5
27
|
dataIndex: string;
|
|
6
28
|
isHidden?: boolean;
|
|
7
29
|
width?: number;
|
|
8
|
-
type?: 'string' | 'number' | 'date' | '
|
|
30
|
+
type?: 'string' | 'number' | 'date' | 'boolean' | 'object';
|
|
9
31
|
align?: 'left' | 'center' | 'right';
|
|
10
32
|
sortable?: boolean;
|
|
11
33
|
sortKey?: 'asc' | 'desc' | '';
|
|
12
34
|
resizable?: boolean;
|
|
13
35
|
pinned?: 'left' | 'right' | "";
|
|
14
|
-
|
|
36
|
+
displayAs?: DisplayAs;
|
|
15
37
|
headerCellClassName?: string;
|
|
16
38
|
dataCellClassName?: string;
|
|
17
|
-
cellRenderer?: (
|
|
39
|
+
cellRenderer?: (rowData: any, dataIndex: string) => JSX.Element;
|
|
40
|
+
isFilterEnabled?: boolean;
|
|
18
41
|
hideActionMenu?: boolean;
|
|
19
42
|
}
|
|
43
|
+
interface rowSelectionConfig {
|
|
44
|
+
showHeaderCheckbox: boolean;
|
|
45
|
+
headerCheckBoxTitle: string;
|
|
46
|
+
selectionMode?: 'single' | 'multiple';
|
|
47
|
+
isResizable?: true | false;
|
|
48
|
+
isDisabled?: (data: any) => boolean;
|
|
49
|
+
isChecked?: (data: any) => boolean;
|
|
50
|
+
}
|
|
20
51
|
interface MsTablePropsTypes {
|
|
21
52
|
columns: MsTableHeaderCellTypes[];
|
|
22
|
-
data
|
|
53
|
+
data?: any[];
|
|
54
|
+
isLoading?: true | false;
|
|
23
55
|
height?: string;
|
|
24
56
|
isClientSideRendering?: boolean;
|
|
25
57
|
showPagination?: boolean;
|
|
26
58
|
pageSizeOptions?: number[];
|
|
27
59
|
defaultPageSize?: number;
|
|
28
|
-
totalRecords?: number;
|
|
29
60
|
className?: string;
|
|
30
61
|
headerClassName?: string;
|
|
31
|
-
showCheckBoxSelector?: boolean;
|
|
32
|
-
selectAllCheckbox?: boolean;
|
|
33
|
-
selectionMode?: 'single' | 'multiple';
|
|
34
62
|
style?: React.CSSProperties;
|
|
35
|
-
|
|
63
|
+
ref?: React.RefObject<GridFunctions>;
|
|
64
|
+
customComponentForNoRecords?: React.ReactNode;
|
|
65
|
+
customComponentForFooter?: React.ReactNode;
|
|
66
|
+
hideDefaultFilterButton?: true | false;
|
|
67
|
+
rowSelectConfig?: rowSelectionConfig;
|
|
36
68
|
onPageChange?: (currentPage: number, pageSize: number) => void;
|
|
37
69
|
onSortChange?: (dataIndex: string, sortKey: 'asc' | 'desc' | null) => void;
|
|
38
70
|
onFilterChange?: (dataIndex: string, filterValue: any) => void;
|
|
39
|
-
|
|
40
|
-
|
|
71
|
+
onRowSelect?: (rowData: any) => void;
|
|
72
|
+
setRowData?: (pageNo: number, pageSize: number, filters: filterValuesType, sortBy: {
|
|
73
|
+
key: string;
|
|
74
|
+
sortBy: sortDirection;
|
|
75
|
+
}) => void;
|
|
41
76
|
}
|
|
42
77
|
|
|
43
78
|
declare const MsReactTable: React.FC<MsTablePropsTypes>;
|
|
44
79
|
|
|
45
|
-
export {
|
|
80
|
+
export { type MsTableHeaderCellTypes, type MsTablePropsTypes, MsReactTable as default, type rowSelectionConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,45 +1,80 @@
|
|
|
1
1
|
import React, { JSX } from 'react';
|
|
2
2
|
|
|
3
|
+
type sortDirection = "asc" | "desc" | "";
|
|
4
|
+
interface GridFunctions {
|
|
5
|
+
showFilterModal: (visible: boolean) => void;
|
|
6
|
+
setRowData: (data: any[], count: number) => void;
|
|
7
|
+
exportToCSV: (fileName: string) => void;
|
|
8
|
+
exportToExcel: (fileName: string) => void;
|
|
9
|
+
}
|
|
10
|
+
type dataType = "string" | "number" | "date" | "boolean" | "object" | undefined;
|
|
11
|
+
type Operation = "include" | "not include" | "=" | "!=" | ">" | "<" | "<>";
|
|
12
|
+
interface FilterRule {
|
|
13
|
+
type: dataType;
|
|
14
|
+
operation: Operation;
|
|
15
|
+
value: any;
|
|
16
|
+
}
|
|
17
|
+
interface filterValuesType {
|
|
18
|
+
[dataIndex: string]: FilterRule;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type DisplayAs = {
|
|
22
|
+
true: string;
|
|
23
|
+
false: string;
|
|
24
|
+
};
|
|
3
25
|
interface MsTableHeaderCellTypes {
|
|
4
26
|
title: string;
|
|
5
27
|
dataIndex: string;
|
|
6
28
|
isHidden?: boolean;
|
|
7
29
|
width?: number;
|
|
8
|
-
type?: 'string' | 'number' | 'date' | '
|
|
30
|
+
type?: 'string' | 'number' | 'date' | 'boolean' | 'object';
|
|
9
31
|
align?: 'left' | 'center' | 'right';
|
|
10
32
|
sortable?: boolean;
|
|
11
33
|
sortKey?: 'asc' | 'desc' | '';
|
|
12
34
|
resizable?: boolean;
|
|
13
35
|
pinned?: 'left' | 'right' | "";
|
|
14
|
-
|
|
36
|
+
displayAs?: DisplayAs;
|
|
15
37
|
headerCellClassName?: string;
|
|
16
38
|
dataCellClassName?: string;
|
|
17
|
-
cellRenderer?: (
|
|
39
|
+
cellRenderer?: (rowData: any, dataIndex: string) => JSX.Element;
|
|
40
|
+
isFilterEnabled?: boolean;
|
|
18
41
|
hideActionMenu?: boolean;
|
|
19
42
|
}
|
|
43
|
+
interface rowSelectionConfig {
|
|
44
|
+
showHeaderCheckbox: boolean;
|
|
45
|
+
headerCheckBoxTitle: string;
|
|
46
|
+
selectionMode?: 'single' | 'multiple';
|
|
47
|
+
isResizable?: true | false;
|
|
48
|
+
isDisabled?: (data: any) => boolean;
|
|
49
|
+
isChecked?: (data: any) => boolean;
|
|
50
|
+
}
|
|
20
51
|
interface MsTablePropsTypes {
|
|
21
52
|
columns: MsTableHeaderCellTypes[];
|
|
22
|
-
data
|
|
53
|
+
data?: any[];
|
|
54
|
+
isLoading?: true | false;
|
|
23
55
|
height?: string;
|
|
24
56
|
isClientSideRendering?: boolean;
|
|
25
57
|
showPagination?: boolean;
|
|
26
58
|
pageSizeOptions?: number[];
|
|
27
59
|
defaultPageSize?: number;
|
|
28
|
-
totalRecords?: number;
|
|
29
60
|
className?: string;
|
|
30
61
|
headerClassName?: string;
|
|
31
|
-
showCheckBoxSelector?: boolean;
|
|
32
|
-
selectAllCheckbox?: boolean;
|
|
33
|
-
selectionMode?: 'single' | 'multiple';
|
|
34
62
|
style?: React.CSSProperties;
|
|
35
|
-
|
|
63
|
+
ref?: React.RefObject<GridFunctions>;
|
|
64
|
+
customComponentForNoRecords?: React.ReactNode;
|
|
65
|
+
customComponentForFooter?: React.ReactNode;
|
|
66
|
+
hideDefaultFilterButton?: true | false;
|
|
67
|
+
rowSelectConfig?: rowSelectionConfig;
|
|
36
68
|
onPageChange?: (currentPage: number, pageSize: number) => void;
|
|
37
69
|
onSortChange?: (dataIndex: string, sortKey: 'asc' | 'desc' | null) => void;
|
|
38
70
|
onFilterChange?: (dataIndex: string, filterValue: any) => void;
|
|
39
|
-
|
|
40
|
-
|
|
71
|
+
onRowSelect?: (rowData: any) => void;
|
|
72
|
+
setRowData?: (pageNo: number, pageSize: number, filters: filterValuesType, sortBy: {
|
|
73
|
+
key: string;
|
|
74
|
+
sortBy: sortDirection;
|
|
75
|
+
}) => void;
|
|
41
76
|
}
|
|
42
77
|
|
|
43
78
|
declare const MsReactTable: React.FC<MsTablePropsTypes>;
|
|
44
79
|
|
|
45
|
-
export {
|
|
80
|
+
export { type MsTableHeaderCellTypes, type MsTablePropsTypes, MsReactTable as default, type rowSelectionConfig };
|