tabulator-tables 5.2.2 → 5.2.5
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/bower.json +1 -1
- package/dist/css/tabulator_bootstrap5.css +57 -32
- package/dist/css/tabulator_bootstrap5.css.map +1 -1
- package/dist/css/tabulator_bootstrap5.min.css +1 -1
- package/dist/css/tabulator_bootstrap5.min.css.map +1 -1
- package/dist/css/tabulator_bulma.css +12 -0
- package/dist/css/tabulator_bulma.css.map +1 -1
- package/dist/css/tabulator_bulma.min.css +1 -1
- package/dist/css/tabulator_bulma.min.css.map +1 -1
- package/dist/js/tabulator.js +175 -199
- package/dist/js/tabulator.js.map +1 -1
- package/dist/js/tabulator.min.js +2 -2
- package/dist/js/tabulator.min.js.map +1 -1
- package/dist/js/tabulator_esm.js +122 -152
- package/dist/js/tabulator_esm.js.map +1 -1
- package/dist/js/tabulator_esm.min.js +2 -2
- package/dist/js/tabulator_esm.min.js.map +1 -1
- package/package.json +1 -1
- package/src/js/core/CoreFeature.js +2 -2
- package/src/js/core/RowManager.js +3 -1
- package/src/js/core/cell/Cell.js +1 -2
- package/src/js/core/column/Column.js +1 -81
- package/src/js/core/rendering/Renderer.js +4 -0
- package/src/js/core/tools/DataLoader.js +3 -3
- package/src/js/core/tools/Popup.js +6 -0
- package/src/js/modules/DataTree/DataTree.js +17 -0
- package/src/js/modules/Download/defaults/downloaders/csv.js +2 -3
- package/src/js/modules/Download/defaults/downloaders/pdf.js +2 -3
- package/src/js/modules/Edit/List.js +3 -3
- package/src/js/modules/Export/Export.js +1 -2
- package/src/js/modules/Filter/Filter.js +1 -1
- package/src/js/modules/FrozenColumns/FrozenColumns.js +33 -41
- package/src/js/modules/GroupRows/GroupRows.js +4 -0
- package/src/js/modules/Interaction/Interaction.js +3 -3
- package/src/js/modules/MoveColumns/MoveColumns.js +1 -1
- package/src/js/modules/Page/Page.js +1 -2
- package/src/js/modules/Persistence/Persistence.js +1 -0
- package/src/js/modules/ResizeColumns/ResizeColumns.js +38 -7
- package/src/js/modules/Sort/Sort.js +2 -2
- package/src/js/modules/Validate/Validate.js +3 -3
- package/src/scss/themes/bootstrap/tabulator_bootstrap5.scss +61 -32
- package/src/scss/themes/bulma/tabulator_bulma.scss +47 -32
|
@@ -89,7 +89,7 @@ class Validate extends Module{
|
|
|
89
89
|
var invalid = [];
|
|
90
90
|
|
|
91
91
|
column.cells.forEach((cell) => {
|
|
92
|
-
if(
|
|
92
|
+
if(this.cellValidate(cell) !== true){
|
|
93
93
|
invalid.push(cell.getComponent());
|
|
94
94
|
}
|
|
95
95
|
});
|
|
@@ -105,7 +105,7 @@ class Validate extends Module{
|
|
|
105
105
|
var invalid = [];
|
|
106
106
|
|
|
107
107
|
row.cells.forEach((cell) => {
|
|
108
|
-
if(
|
|
108
|
+
if(this.cellValidate(cell) !== true){
|
|
109
109
|
invalid.push(cell.getComponent());
|
|
110
110
|
}
|
|
111
111
|
});
|
|
@@ -305,4 +305,4 @@ Validate.moduleName = "validate";
|
|
|
305
305
|
//load defaults
|
|
306
306
|
Validate.validators = defaultValidators;
|
|
307
307
|
|
|
308
|
-
export default Validate;
|
|
308
|
+
export default Validate;
|
|
@@ -317,6 +317,15 @@ $table-cell-padding-sm: 5px;
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
+
|
|
321
|
+
.tabulator-row{
|
|
322
|
+
padding-top: 0;
|
|
323
|
+
padding-bottom: 0;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.tabulator-col-resize-handle{
|
|
327
|
+
padding:0;
|
|
328
|
+
}
|
|
320
329
|
}
|
|
321
330
|
|
|
322
331
|
|
|
@@ -325,56 +334,56 @@ $table-cell-padding-sm: 5px;
|
|
|
325
334
|
.tabulator-table{
|
|
326
335
|
.tabulator-row{
|
|
327
336
|
&.table-primary{
|
|
328
|
-
background:
|
|
337
|
+
background:map-get($table-variants, "primary") !important;
|
|
329
338
|
}
|
|
330
339
|
&.table-secondary{
|
|
331
|
-
background:
|
|
340
|
+
background:map-get($table-variants, "secondary") !important;
|
|
332
341
|
}
|
|
333
342
|
&.table-success{
|
|
334
|
-
background:
|
|
343
|
+
background:map-get($table-variants, "success") !important;
|
|
335
344
|
}
|
|
336
345
|
&.table-info{
|
|
337
|
-
background:
|
|
346
|
+
background:map-get($table-variants, "info") !important;
|
|
338
347
|
}
|
|
339
348
|
&.table-warning{
|
|
340
|
-
background:
|
|
349
|
+
background:map-get($table-variants, "warning") !important;
|
|
341
350
|
}
|
|
342
351
|
&.table-danger{
|
|
343
|
-
background:
|
|
352
|
+
background:map-get($table-variants, "danger") !important;
|
|
344
353
|
}
|
|
345
354
|
&.table-light{
|
|
346
|
-
background:
|
|
355
|
+
background:map-get($table-variants, "light") !important;
|
|
347
356
|
}
|
|
348
357
|
&.table{
|
|
349
|
-
background:
|
|
358
|
+
background:map-get($table-variants, "dark") !important;
|
|
350
359
|
}
|
|
351
360
|
&.table-active{
|
|
352
361
|
background:$table-active-bg !important;
|
|
353
362
|
}
|
|
354
363
|
|
|
355
364
|
&.bg-primary{
|
|
356
|
-
background:
|
|
365
|
+
background:map-get($table-variants, "primary") !important;
|
|
357
366
|
}
|
|
358
367
|
&.bg-secondary{
|
|
359
|
-
background:
|
|
368
|
+
background:map-get($table-variants, "secondary") !important;
|
|
360
369
|
}
|
|
361
370
|
&.bg-success{
|
|
362
|
-
background:
|
|
371
|
+
background:map-get($table-variants, "success") !important;
|
|
363
372
|
}
|
|
364
373
|
&.bg-info{
|
|
365
|
-
background:
|
|
374
|
+
background:map-get($table-variants, "info") !important;
|
|
366
375
|
}
|
|
367
376
|
&.bg-warning{
|
|
368
|
-
background:
|
|
377
|
+
background:map-get($table-variants, "warning") !important;
|
|
369
378
|
}
|
|
370
379
|
&.bg-danger{
|
|
371
|
-
background:
|
|
380
|
+
background:map-get($table-variants, "danger") !important;
|
|
372
381
|
}
|
|
373
382
|
&.bg-light{
|
|
374
|
-
background:
|
|
383
|
+
background:map-get($table-variants, "light") !important;
|
|
375
384
|
}
|
|
376
385
|
&.bg-dark{
|
|
377
|
-
background:
|
|
386
|
+
background:map-get($table-variants, "dark") !important;
|
|
378
387
|
}
|
|
379
388
|
&.bg-active{
|
|
380
389
|
background:$table-active-bg !important;
|
|
@@ -382,56 +391,56 @@ $table-cell-padding-sm: 5px;
|
|
|
382
391
|
|
|
383
392
|
.tabulator-cell{
|
|
384
393
|
&.table-primary{
|
|
385
|
-
background:
|
|
394
|
+
background:map-get($table-variants, "primary") !important;
|
|
386
395
|
}
|
|
387
396
|
&.table-secondary{
|
|
388
|
-
background:
|
|
397
|
+
background:map-get($table-variants, "secondary") !important;
|
|
389
398
|
}
|
|
390
399
|
&.table-success{
|
|
391
|
-
background:
|
|
400
|
+
background:map-get($table-variants, "success") !important;
|
|
392
401
|
}
|
|
393
402
|
&.table-info{
|
|
394
|
-
background:
|
|
403
|
+
background:map-get($table-variants, "info") !important;
|
|
395
404
|
}
|
|
396
405
|
&.table-warning{
|
|
397
|
-
background:
|
|
406
|
+
background:map-get($table-variants, "warning") !important;
|
|
398
407
|
}
|
|
399
408
|
&.table-danger{
|
|
400
|
-
background:
|
|
409
|
+
background:map-get($table-variants, "danger") !important;
|
|
401
410
|
}
|
|
402
411
|
&.table-light{
|
|
403
|
-
background:
|
|
412
|
+
background:map-get($table-variants, "light") !important;
|
|
404
413
|
}
|
|
405
414
|
&.table{
|
|
406
|
-
background:
|
|
415
|
+
background:map-get($table-variants, "dark") !important;
|
|
407
416
|
}
|
|
408
417
|
&.table-active{
|
|
409
418
|
background:$table-active-bg !important;
|
|
410
419
|
}
|
|
411
420
|
|
|
412
421
|
&.bg-primary{
|
|
413
|
-
background:
|
|
422
|
+
background:map-get($table-variants, "primary") !important;
|
|
414
423
|
}
|
|
415
424
|
&.bg-secondary{
|
|
416
|
-
background:
|
|
425
|
+
background:map-get($table-variants, "secondary") !important;
|
|
417
426
|
}
|
|
418
427
|
&.bg-success{
|
|
419
|
-
background:
|
|
428
|
+
background:map-get($table-variants, "success") !important;
|
|
420
429
|
}
|
|
421
430
|
&.bg-info{
|
|
422
|
-
background:
|
|
431
|
+
background:map-get($table-variants, "info") !important;
|
|
423
432
|
}
|
|
424
433
|
&.bg-warning{
|
|
425
|
-
background:
|
|
434
|
+
background:map-get($table-variants, "warning") !important;
|
|
426
435
|
}
|
|
427
436
|
&.bg-danger{
|
|
428
|
-
background:
|
|
437
|
+
background:map-get($table-variants, "danger") !important;
|
|
429
438
|
}
|
|
430
439
|
&.bg-light{
|
|
431
|
-
background:
|
|
440
|
+
background:map-get($table-variants, "light") !important;
|
|
432
441
|
}
|
|
433
442
|
&.bg-dark{
|
|
434
|
-
background:
|
|
443
|
+
background:map-get($table-variants, "dark") !important;
|
|
435
444
|
}
|
|
436
445
|
&.bg-active{
|
|
437
446
|
background:$table-active-bg !important;
|
|
@@ -543,4 +552,24 @@ $table-cell-padding-sm: 5px;
|
|
|
543
552
|
}
|
|
544
553
|
}
|
|
545
554
|
}
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.tabulator-popup-container{
|
|
558
|
+
background:#fff;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.tabulator-edit-list{
|
|
562
|
+
.tabulator-edit-list-item{
|
|
563
|
+
&.active{
|
|
564
|
+
color:#fff;
|
|
565
|
+
|
|
566
|
+
&.focused{
|
|
567
|
+
outline:1px solid rgba(#fff, .5);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
&:hover{
|
|
572
|
+
color:#fff;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
546
575
|
}
|
|
@@ -42,45 +42,45 @@ $footerBorderColor:$grey-lighter !default; //footer border color
|
|
|
42
42
|
|
|
43
43
|
.tabulator{
|
|
44
44
|
border:none;
|
|
45
|
-
|
|
45
|
+
|
|
46
46
|
.tabulator-header{
|
|
47
47
|
border:$table-cell-border;
|
|
48
48
|
border-width:$table-head-cell-border-width;
|
|
49
|
-
|
|
49
|
+
|
|
50
50
|
.tabulator-col{
|
|
51
51
|
border-right:none;
|
|
52
|
-
|
|
52
|
+
|
|
53
53
|
&.tabulator-moving{
|
|
54
54
|
border:none;
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
|
|
57
57
|
.tabulator-col-content{
|
|
58
58
|
padding:$table-cell-padding;
|
|
59
|
-
|
|
59
|
+
|
|
60
60
|
.tabulator-col-sorter{
|
|
61
61
|
right:0px;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
|
|
65
65
|
.tabulator-header-filter{
|
|
66
66
|
input{
|
|
67
67
|
border:$button-border-width solid $button-border-color;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
|
|
72
72
|
.tabulator-calcs-holder{
|
|
73
73
|
.tabulator-row{
|
|
74
74
|
.tabulator-cell{
|
|
75
75
|
border-bottom-width:0;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
|
|
79
79
|
border:$table-cell-border;
|
|
80
80
|
border-width:$table-foot-cell-border-width;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
|
|
84
84
|
.tabulator-tableholder{
|
|
85
85
|
.tabulator-table{
|
|
86
86
|
.tabulator-row{
|
|
@@ -89,12 +89,12 @@ $footerBorderColor:$grey-lighter !default; //footer border color
|
|
|
89
89
|
border:$table-cell-border;
|
|
90
90
|
border-width:$table-head-cell-border-width;
|
|
91
91
|
}
|
|
92
|
-
|
|
92
|
+
|
|
93
93
|
&.tabulator-calcs-bottom{
|
|
94
94
|
border:$table-cell-border;
|
|
95
95
|
border-width:$table-foot-cell-border-width;
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
|
|
98
98
|
.tabulator-cell{
|
|
99
99
|
border-bottom-width:0;
|
|
100
100
|
}
|
|
@@ -102,39 +102,39 @@ $footerBorderColor:$grey-lighter !default; //footer border color
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
|
|
106
106
|
.tabulator-footer{
|
|
107
107
|
padding:$table-cell-padding;
|
|
108
108
|
border:$table-cell-border;
|
|
109
109
|
border-width:$table-foot-cell-border-width;
|
|
110
|
-
|
|
110
|
+
|
|
111
111
|
.tabulator-calcs-holder{
|
|
112
112
|
margin:-5px -10px 10px -10px;
|
|
113
|
-
|
|
113
|
+
|
|
114
114
|
border:$table-cell-border;
|
|
115
115
|
border-width:$table-head-cell-border-width;
|
|
116
|
-
|
|
116
|
+
|
|
117
117
|
.tabulator-row{
|
|
118
118
|
.tabulator-cell{
|
|
119
119
|
border-bottom-width:0;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
|
|
124
124
|
.tabulator-page{
|
|
125
125
|
margin:0 0.1875em;
|
|
126
126
|
padding:$button-padding-vertical $button-padding-horizontal;
|
|
127
|
-
|
|
127
|
+
|
|
128
128
|
border:$button-border-width solid $button-border-color;
|
|
129
|
-
|
|
129
|
+
|
|
130
130
|
font-size: $textSize;
|
|
131
|
-
|
|
131
|
+
|
|
132
132
|
&.active{
|
|
133
133
|
border-color:$button-active-border-color;
|
|
134
134
|
color:$button-active-color;
|
|
135
135
|
font-weight:bold;
|
|
136
136
|
}
|
|
137
|
-
|
|
137
|
+
|
|
138
138
|
&:not(.disabled){
|
|
139
139
|
&:hover{
|
|
140
140
|
cursor:pointer;
|
|
@@ -145,9 +145,9 @@ $footerBorderColor:$grey-lighter !default; //footer border color
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
|
|
148
|
+
|
|
149
149
|
//Bulma theming classes
|
|
150
|
-
|
|
150
|
+
|
|
151
151
|
&.is-striped{
|
|
152
152
|
.tabulator-row{
|
|
153
153
|
&:nth-child(even){
|
|
@@ -155,16 +155,16 @@ $footerBorderColor:$grey-lighter !default; //footer border color
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
|
|
159
159
|
&.is-bordered{
|
|
160
160
|
border:$table-cell-border;
|
|
161
|
-
|
|
161
|
+
|
|
162
162
|
.tabulator-header{
|
|
163
163
|
.tabulator-col{
|
|
164
164
|
border-right:$table-cell-border;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
|
|
167
|
+
|
|
168
168
|
.tabulator-tableholder{
|
|
169
169
|
.tabulator-table{
|
|
170
170
|
.tabulator-row{
|
|
@@ -175,7 +175,7 @@ $footerBorderColor:$grey-lighter !default; //footer border color
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
|
|
178
|
+
|
|
179
179
|
&.is-narrow{
|
|
180
180
|
.tabulator-header{
|
|
181
181
|
.tabulator-col{
|
|
@@ -184,7 +184,7 @@ $footerBorderColor:$grey-lighter !default; //footer border color
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
|
|
188
188
|
.tabulator-tableholder{
|
|
189
189
|
.tabulator-table{
|
|
190
190
|
.tabulator-row{
|
|
@@ -199,25 +199,25 @@ $footerBorderColor:$grey-lighter !default; //footer border color
|
|
|
199
199
|
|
|
200
200
|
.tabulator-row{
|
|
201
201
|
min-height:14px + ($headerMargin * 2);
|
|
202
|
-
|
|
202
|
+
|
|
203
203
|
&.tabulator-row-even{
|
|
204
204
|
background-color: inherit;
|
|
205
205
|
}
|
|
206
|
-
|
|
206
|
+
|
|
207
207
|
&.tabulator-selected{
|
|
208
208
|
background-color:$rowSelectedBackground !important;
|
|
209
209
|
}
|
|
210
|
-
|
|
210
|
+
|
|
211
211
|
&.tabulator-selected:hover{
|
|
212
212
|
background-color:darken($rowSelectedBackground, 10%) !important;
|
|
213
213
|
}
|
|
214
|
-
|
|
214
|
+
|
|
215
215
|
.tabulator-cell{
|
|
216
216
|
padding:$table-cell-padding;
|
|
217
217
|
border:$table-cell-border;
|
|
218
218
|
border-width:$table-cell-border-width;
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
|
|
221
221
|
&.tabulator-group{
|
|
222
222
|
border-bottom:1px solid #999;
|
|
223
223
|
border-right:none;
|
|
@@ -236,3 +236,18 @@ $footerBorderColor:$grey-lighter !default; //footer border color
|
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
+
.tabulator-popup-container{
|
|
240
|
+
background: $backgroundColor,
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.tabulator-edit-list{
|
|
244
|
+
.tabulator-edit-list-item{
|
|
245
|
+
&.active{
|
|
246
|
+
color:$backgroundColor;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&:hover{
|
|
250
|
+
color:$backgroundColor;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|