aio-table 2.0.0 → 5.0.0

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 (4) hide show
  1. package/README.md +792 -1
  2. package/index.css +178 -103
  3. package/index.js +1613 -741
  4. package/package.json +2 -1
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- .r-table{
1
+ .aio-table{
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  box-sizing: border-box;
@@ -9,77 +9,79 @@
9
9
  position: relative;
10
10
  color:#999;
11
11
  font-size:14px;
12
+ overflow: hidden;
13
+ height:500px;
12
14
  }
13
- .r-table.rtl{
15
+ .aio-table.rtl{
14
16
  direction:rtl;
15
17
  }
16
- .r-table-body{
18
+ .aio-table-body{
17
19
  display: flex;
18
20
  width:100%;
19
- overflow:hidden;
21
+ flex:1;
20
22
  }
21
- .r-table-unit{
23
+ .aio-table-unit{
22
24
  display: grid;
23
25
  width:100%;
24
26
  overflow:auto;
25
27
  align-content: flex-start;
26
28
  }
27
- #r-table-first-split{
29
+ #aio-table-first-split{
28
30
  width:fit-content;
29
31
  overflow-x:scroll;
30
32
  }
31
- #r-table-second-split{
33
+ #aio-table-second-split{
32
34
  flex:1;
33
35
  overflow-x:scroll;
34
36
  }
35
37
 
36
38
  /* custom scrollbar */
37
- .r-table-unit::-webkit-scrollbar {
39
+ .aio-table-unit::-webkit-scrollbar {
38
40
  width: 10px !important;
39
41
  height:10px !important;
40
42
  }
41
- #r-table-first-split::-webkit-scrollbar {
43
+ #aio-table-first-split::-webkit-scrollbar {
42
44
  width: 0px !important;
43
45
  height: 10px !important;
44
46
  }
45
47
 
46
- .r-table-unit::-webkit-scrollbar-track {
48
+ .aio-table-unit::-webkit-scrollbar-track {
47
49
  background-color: transparent;
48
50
  }
49
51
 
50
- .r-table-unit::-webkit-scrollbar-thumb {
52
+ .aio-table-unit::-webkit-scrollbar-thumb {
51
53
  background-color: #cdd4e0;
52
54
  border-radius: 20px;
53
55
  border: 3px solid transparent;
54
56
  background-clip: content-box;
55
57
  }
56
58
 
57
- .r-table-unit::-webkit-scrollbar-thumb:hover {
59
+ .aio-table-unit::-webkit-scrollbar-thumb:hover {
58
60
  background-color: #868e9e;
59
61
  }
60
- .r-table-title{
61
- background:#fff;
62
+ .aio-table-title{
62
63
  display:flex;
63
64
  align-items: center;
64
65
  padding:0 6px;
65
66
  position:sticky;
66
67
  box-sizing:border-box;
67
68
  position: -webkit-sticky;
69
+ background: #fff;
68
70
  z-index:100;
69
71
  border-bottom:1px solid #ddd;
70
72
  border-left:1px solid #ddd;
71
- box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.2);
73
+ box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.1);
72
74
  }
73
- .r-table.rtl .r-table-title{
74
- box-shadow: -1px 4px 6px -2px rgba(0,0,0,0.2);
75
+ .aio-table.rtl .aio-table-title{
76
+ box-shadow: -1px 4px 6px -2px rgba(0,0,0,0.1);
75
77
  }
76
- .r-table-title-text{
78
+ .aio-table-title-text{
77
79
  flex:1;
78
80
  height:100%;
79
81
  display:flex;
80
82
  align-items:center;
81
83
  }
82
- .r-table-resize{
84
+ .aio-table-resize{
83
85
  width:8px;
84
86
  height:100%;
85
87
  position:absolute;
@@ -87,33 +89,47 @@
87
89
  opacity:1;
88
90
  cursor:col-resize;
89
91
  }
90
- .r-table.rtl .r-table-title{
92
+ .aio-table.rtl .aio-table-title{
91
93
  border-left:none;
92
94
  border-right:1px solid #ddd;
93
95
  }
94
- .r-table-title:first-child{
96
+ .aio-table-title:first-child{
95
97
  border-left:none;
96
98
  border-right:none;
97
99
  }
98
- .r-table-indent{
100
+ .aio-table-indent{
99
101
  flex-shrink:0;
100
102
  }
101
- .r-table-cell{
103
+ .aio-table-cell{
102
104
  display:flex;
103
105
  align-items: center;
104
- background:#fff;
105
- padding:6px 8px;
106
+ padding:0 8px;
106
107
  box-sizing: border-box;
107
108
  position: relative;
108
- box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.2);
109
+ box-shadow: 3px 4px 6px -2px rgba(0,0,0,0.1);
109
110
  white-space:nowrap;
110
111
  text-overflow:ellipsis;
112
+ background:#fff;
113
+ }
114
+ .aio-table-content{
115
+ width:100%;
116
+ overflow:hidden;
117
+ display: flex;
118
+ }
119
+ .aio-table-icon{
120
+ height:24px;
121
+ display:flex;
122
+ font-size:16px;
123
+ align-items: center;
124
+ justify-content: center;
125
+ width:fit-content;
111
126
  }
112
- .r-table.rtl .r-table-cell{
113
- box-shadow: -1px 4px 6px -2px rgba(0,0,0,0.2);
127
+
128
+ .aio-table.rtl .aio-table-cell{
129
+ box-shadow: -3px 4px 6px -2px rgba(0,0,0,0.1);
114
130
  }
115
131
 
116
- .r-table-input-container{
132
+ .aio-table-input-container{
117
133
  width:100%;
118
134
  height:100%;
119
135
  left:0;
@@ -126,21 +142,25 @@
126
142
  justify-content: flex-start;
127
143
  max-height:75%;
128
144
  }
129
- .r-table-input{
145
+ .aio-table-input-container.on-template{
146
+ flex:1;
147
+ position: absolute;
148
+ max-height:100%;
149
+ }
150
+ .aio-table-input{
130
151
  border:none;
131
152
  outline:none;
132
153
  flex:1;
133
154
  width:100%;
134
155
  position:relative;
135
- color:inherit;
156
+ color:inherit;
136
157
  font-size:inherit;
137
158
 
138
159
  }
139
- select.r-table-input{
160
+ select.aio-table-input{
140
161
  background: rgba(0,0,0,0.02);
141
-
142
162
  }
143
- .r-table-input-border{
163
+ .aio-table-input-border{
144
164
  height:2px;
145
165
  width:0%;
146
166
  display: flex;
@@ -148,26 +168,18 @@ select.r-table-input{
148
168
  justify-content: center;
149
169
  background:dodgerblue;
150
170
  }
151
- .r-table-input:focus + .r-table-input-border{
171
+ .aio-table-input:focus + .aio-table-input-border{
152
172
  width:100%;
153
173
  transition: 0.3s;
154
174
  }
155
- .r-table-icon{
156
- height:24px;
157
- display:flex;
158
- font-size:16px;
159
- align-items: center;
160
- justify-content: center;
161
- }
162
175
 
163
- .r-table-nodata{
176
+ .aio-table-nodata{
164
177
  display:flex;
165
178
  align-items: center;
166
179
  justify-content: center;
167
- background:#fff;
168
180
  }
169
181
 
170
- .r-table-paging{
182
+ .aio-table-paging{
171
183
  display: flex;
172
184
  padding:6px 0;
173
185
  align-items: center;
@@ -176,7 +188,7 @@ select.r-table-input{
176
188
  border-top:1px solid #ddd;
177
189
  background:#eaecf0;
178
190
  }
179
- .r-table-paging-button{
191
+ .aio-table-paging-button{
180
192
  background:#fff;
181
193
  width:24px;
182
194
  height:24px;
@@ -187,36 +199,36 @@ select.r-table-input{
187
199
  justify-content: center;
188
200
  color:inherit;
189
201
  }
190
- select.r-table-paging-button{
202
+ select.aio-table-paging-button{
191
203
  width:60px;
192
204
  border-radius:24px;
193
205
  border:none;
194
206
  padding:0 6px;
195
207
  outline:none;
196
208
  }
197
- .r-table-paging-number{
209
+ .aio-table-paging-number{
198
210
  padding:0 6px;
199
211
  }
200
- .r-table-toggle{
212
+ .aio-table-toggle{
201
213
  height:24px;
202
214
  flex-shrink:0;
203
215
  cursor:pointer;
204
216
  }
205
- .r-table-gap{
217
+ .aio-table-gap{
206
218
  width:6px;
207
219
  flex-shrink:0;
208
220
  }
209
221
 
210
- .r-table-space{
222
+ .aio-table-space{
211
223
  background:#fff;
212
224
  }
213
225
 
214
226
 
215
- .r-table.rtl .r-table-resize{
227
+ .aio-table.rtl .aio-table-resize{
216
228
  left:0;
217
229
  right:unset;
218
230
  }
219
- .r-table-error{
231
+ .aio-table-error{
220
232
  position: absolute;
221
233
  width:100%;
222
234
  height:100%;
@@ -238,7 +250,7 @@ select.r-table-paging-button{
238
250
  transform: scaleY(1.0);
239
251
  }
240
252
  }
241
- .r-table-loading{
253
+ .aio-table-loading{
242
254
  z-index:100;
243
255
  position: absolute;
244
256
  width:100%;
@@ -249,34 +261,36 @@ select.r-table-paging-button{
249
261
  align-items: center;
250
262
  }
251
263
 
252
- .r-table-cell.r-table-relative-filter{
264
+ .aio-table-cell.aio-table-relative-filter{
253
265
  opacity:.4;
254
266
  }
255
- .r-table-filter-popup{
267
+ .aio-table-filter-popup{
256
268
  background:#e3e6ea;
257
269
  padding:6px;
258
270
  }
259
- .r-table-filter-icon{
271
+ .aio-table-filter-icon{
260
272
  width:24px;
261
273
  height:100%;
262
274
  display:flex;
263
275
  align-items: center;
264
276
  justify-content: center;
265
277
  }
266
- .r-table-filter-icon button{
278
+ .aio-table-filter-icon button{
267
279
  color:inherit;
280
+ height:100%;
281
+ background:none;
268
282
  }
269
283
 
270
- .r-table-filter-item{
284
+ .aio-table-filter-item{
271
285
  display: flex;
272
286
  margin-bottom:6px;
273
287
  }
274
- .r-table-filter-footer{
288
+ .aio-table-filter-footer{
275
289
  display:flex;
276
290
  align-items: center;
277
291
  justify-content: center;
278
292
  }
279
- .r-table-filter-footer button{
293
+ .aio-table-filter-footer button{
280
294
  border:none;
281
295
  width:100%;
282
296
  min-width:200px;
@@ -286,20 +300,20 @@ select.r-table-paging-button{
286
300
  cursor:pointer;
287
301
  }
288
302
 
289
- .r-table-filter-item select{
303
+ .aio-table-filter-item select{
290
304
  height:26px;
291
305
  width:90px;
292
306
  border:none;
293
307
  outline:none;
294
308
  cursor: pointer;
295
309
  }
296
- .r-table-filter-item input{
310
+ .aio-table-filter-item input{
297
311
  height:24px;
298
312
  outline:none;
299
313
  width:120px;
300
314
  border:none;
301
315
  }
302
- .r-table-filter-remove{
316
+ .aio-table-filter-remove{
303
317
  height:26px;
304
318
  width:26px;
305
319
  display: flex;
@@ -308,29 +322,14 @@ select.r-table-paging-button{
308
322
  justify-content: center;
309
323
  background:#fff;
310
324
  }
311
- .r-table-boolean{
325
+ .aio-table-boolean{
312
326
  height: 24px;
313
327
  display: flex;
314
328
  align-items: center;
315
329
  justify-content: center;
316
330
  margin-bottom: 6px;
317
- font-size:16px;
318
- font-weight:bold;
319
331
  }
320
-
321
- .r-table-checkbox{
322
- width:100%;
323
- height:100%;
324
- display:flex;
325
- align-items: center;
326
- justify-content: center;
327
- cursor:pointer;
328
- }
329
- .r-table-checkbox.disabled{
330
- opacity:0.2;
331
- cursor:not-allowed;
332
- }
333
- .r-table-group{
332
+ .aio-table-group{
334
333
  display:flex;
335
334
  padding:0 12px;
336
335
  height:24px;
@@ -338,18 +337,30 @@ select.r-table-paging-button{
338
337
  white-space:nowrap;
339
338
  background:#fff;
340
339
  text-overflow:ellipsis;
340
+ overflow: hidden;
341
341
  position:relative;
342
- box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.2);
342
+ box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.1);
343
343
  }
344
- .r-table-toolbar{
345
- background:#fff;
346
- padding:6px;
344
+ .aio-table-group-text{
345
+ height:100%;
346
+ display: flex;
347
+ flex:1;
348
+ align-items: center;
349
+ white-space: pre-wrap;
350
+ }
351
+ .aio-table-toolbar{
352
+ padding:0 6px;
347
353
  display:flex;
348
354
  align-items: center;
349
355
  flex-shrink:0;
350
- border-bottom:1px solid #ddd;
356
+ height:36px;
357
+ }
358
+ @media print{
359
+ .aio-table-toolbar{
360
+ display:none;
361
+ }
351
362
  }
352
- .r-table-toolbar-dropdown{
363
+ .aio-table-toolbar-button{
353
364
  background:dodgerblue;
354
365
  color:#fff;
355
366
  height:30px;
@@ -357,31 +368,31 @@ select.r-table-paging-button{
357
368
  margin:0 3px;
358
369
  }
359
370
 
360
- .r-table-splitter{
361
- width:1px;
371
+ .aio-table-splitter{
372
+ width:2px;
362
373
  background:#ddd;
363
374
  position:relative;
364
375
  display: flex;
365
376
  align-items: center;
366
377
  justify-content: center;
367
378
  }
368
- .r-table-splitter:after{
379
+ .aio-table-splitter:after{
369
380
  content:'';
370
381
  opacity:0;
371
382
  z-index:1;
372
383
  cursor:col-resize;
373
384
  position:absolute;
374
385
  height:100%;
375
- width:5px;
386
+ width:6px;
376
387
  flex:1;
377
388
  background:red;
378
389
  }
379
390
 
380
- .r-table-search{
391
+ .aio-table-search{
381
392
  flex:1;
382
393
  border-radius:36px;
383
394
  margin:0 6px;
384
- background:rgba(0,0,0,.06);
395
+ background:#fff;
385
396
  height:30px;
386
397
  display:flex;
387
398
  align-items: center;
@@ -389,36 +400,100 @@ select.r-table-paging-button{
389
400
  padding:0 6px;
390
401
  box-sizing: border-box;
391
402
  }
392
- .r-table-search-input{
403
+ .aio-table-search-input{
393
404
  flex:1;
394
405
  border:none;
395
406
  outline:none;
396
407
  height:100%;
397
408
  background:none;
398
409
  }
399
- .r-table-title-gantt{
410
+ .aio-table-title-gantt{
400
411
  background:#fff !important;
401
412
  }
402
- .r-table-title-gantt .r-range-slider{
413
+ .aio-table-title-gantt .r-range-slider{
403
414
  flex:1;
404
415
  padding:0;
405
416
  height:unset;
406
417
  }
407
- .r-table-cell-gantt .r-range-slider{
418
+ .aio-table-cell-gantt .r-range-slider{
408
419
  flex:1;
409
420
  padding:0;
410
- height:100%;
421
+ height:24px;
411
422
  }
412
- .r-table-cell-gantt .r-range-slider-fill{
423
+ .aio-table-cell-gantt .r-range-slider-fill{
413
424
  height:16px !important;
414
425
  color:#79a4cf
415
426
  }
416
- .r-table-cell-gantt .r-range-slider-fill-container div:not(.r-range-slider-fill){
427
+ .aio-table-cell-gantt .r-range-slider-fill-container div:not(.r-range-slider-fill){
417
428
  z-index:1;
418
- color:#fff;
419
429
  font-size:10px;
420
430
  }
421
- .r-table-cell-gantt .r-range-slider-point{
431
+ .aio-table-cell-gantt .r-range-slider-point{
422
432
  border-radius:0;
423
433
  background:rgba(0, 174, 255, 0);
424
- }
434
+ }
435
+ .aio-table-arrow-up,.aio-table-arrow-down{
436
+ width:30px;
437
+ height:24px;
438
+ display:flex;
439
+ align-items: center;
440
+ justify-content: flex-end;
441
+ }
442
+ .aio-table-arrow-up:after{
443
+ content:'';
444
+ border-bottom:8px solid;
445
+ border-left:8px solid transparent;
446
+ border-right:8px solid transparent;
447
+ }
448
+ .aio-table-arrow-down:after{
449
+ content:'';
450
+ border-top:8px solid;
451
+ border-left:8px solid transparent;
452
+ border-right:8px solid transparent;
453
+ }
454
+ .aio-table-card{
455
+ background:#fff;
456
+ position:relative;
457
+ display:flex;
458
+ box-sizing: border-box;
459
+ }
460
+
461
+ .r-layout-item{
462
+ overflow:auto;
463
+ display:flex;
464
+ position: relative;
465
+ flex-grow:0;
466
+ flex-shrink: 0;
467
+ }
468
+ .r-layout-parent{
469
+ position:relative;
470
+ display:flex;
471
+ flex-grow:0;
472
+ flex-shrink: 0;
473
+ overflow:auto;
474
+ }
475
+ .r-layout-html{
476
+ position: absolute;
477
+ width:100%;
478
+ height:100%;
479
+ left:0;
480
+ top:0;
481
+ overflow:hidden;
482
+ }
483
+ .r-layout-gap{
484
+ flex-shrink:0;
485
+ }
486
+ .r-layout-gap:last-child{
487
+ display:none;
488
+ }
489
+
490
+ @media screen and (max-width: 768px) {
491
+ .r-layout-hide-in-small {
492
+ display: none !important;
493
+ }
494
+ }
495
+ @media screen and (min-width: 768px) {
496
+ .r-layout-hide-in-large {
497
+ display: none !important;
498
+ }
499
+ }