tabulator-tables 5.1.8 → 5.2.2

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 (100) hide show
  1. package/bower.json +1 -1
  2. package/dist/css/tabulator.css +64 -51
  3. package/dist/css/tabulator.css.map +1 -1
  4. package/dist/css/tabulator.min.css +1 -1
  5. package/dist/css/tabulator.min.css.map +1 -1
  6. package/dist/css/tabulator_bootstrap3.css +64 -51
  7. package/dist/css/tabulator_bootstrap3.css.map +1 -1
  8. package/dist/css/tabulator_bootstrap3.min.css +1 -1
  9. package/dist/css/tabulator_bootstrap3.min.css.map +1 -1
  10. package/dist/css/tabulator_bootstrap4.css +64 -51
  11. package/dist/css/tabulator_bootstrap4.css.map +1 -1
  12. package/dist/css/tabulator_bootstrap4.min.css +1 -1
  13. package/dist/css/tabulator_bootstrap4.min.css.map +1 -1
  14. package/dist/css/tabulator_bootstrap5.css +1580 -0
  15. package/dist/css/tabulator_bootstrap5.css.map +1 -0
  16. package/dist/css/tabulator_bootstrap5.min.css +2 -0
  17. package/dist/css/tabulator_bootstrap5.min.css.map +1 -0
  18. package/dist/css/tabulator_bulma.css +64 -51
  19. package/dist/css/tabulator_bulma.css.map +1 -1
  20. package/dist/css/tabulator_bulma.min.css +1 -1
  21. package/dist/css/tabulator_bulma.min.css.map +1 -1
  22. package/dist/css/tabulator_materialize.css +64 -51
  23. package/dist/css/tabulator_materialize.css.map +1 -1
  24. package/dist/css/tabulator_materialize.min.css +1 -1
  25. package/dist/css/tabulator_materialize.min.css.map +1 -1
  26. package/dist/css/tabulator_midnight.css +64 -51
  27. package/dist/css/tabulator_midnight.css.map +1 -1
  28. package/dist/css/tabulator_midnight.min.css +1 -1
  29. package/dist/css/tabulator_midnight.min.css.map +1 -1
  30. package/dist/css/tabulator_modern.css +64 -51
  31. package/dist/css/tabulator_modern.css.map +1 -1
  32. package/dist/css/tabulator_modern.min.css +1 -1
  33. package/dist/css/tabulator_modern.min.css.map +1 -1
  34. package/dist/css/tabulator_semanticui.css +64 -51
  35. package/dist/css/tabulator_semanticui.css.map +1 -1
  36. package/dist/css/tabulator_semanticui.min.css +1 -1
  37. package/dist/css/tabulator_semanticui.min.css.map +1 -1
  38. package/dist/css/tabulator_simple.css +64 -51
  39. package/dist/css/tabulator_simple.css.map +1 -1
  40. package/dist/css/tabulator_simple.min.css +1 -1
  41. package/dist/css/tabulator_simple.min.css.map +1 -1
  42. package/dist/css/tabulator_site.css +64 -51
  43. package/dist/css/tabulator_site.css.map +1 -1
  44. package/dist/css/tabulator_site.min.css +1 -1
  45. package/dist/css/tabulator_site.min.css.map +1 -1
  46. package/dist/js/tabulator.js +2540 -1659
  47. package/dist/js/tabulator.js.map +1 -1
  48. package/dist/js/tabulator.min.js +2 -2
  49. package/dist/js/tabulator.min.js.map +1 -1
  50. package/dist/js/tabulator_esm.js +2743 -2067
  51. package/dist/js/tabulator_esm.js.map +1 -1
  52. package/dist/js/tabulator_esm.min.js +2 -2
  53. package/dist/js/tabulator_esm.min.js.map +1 -1
  54. package/package.json +1 -1
  55. package/src/js/core/FooterManager.js +6 -13
  56. package/src/js/core/Module.js +44 -2
  57. package/src/js/core/Tabulator.js +341 -289
  58. package/src/js/core/cell/Cell.js +9 -38
  59. package/src/js/core/column/Column.js +8 -44
  60. package/src/js/core/column/defaults/options.js +0 -2
  61. package/src/js/core/defaults/options.js +5 -2
  62. package/src/js/core/modules/optional.js +2 -0
  63. package/src/js/core/row/Row.js +127 -118
  64. package/src/js/core/tools/Alert.js +63 -0
  65. package/src/js/core/tools/DataLoader.js +12 -84
  66. package/src/js/core/tools/InteractionMonitor.js +1 -1
  67. package/src/js/core/tools/ModuleBinder.js +30 -23
  68. package/src/js/core/tools/Popup.js +251 -0
  69. package/src/js/modules/ColumnCalcs/ColumnCalcs.js +2 -2
  70. package/src/js/modules/Edit/Edit.js +5 -25
  71. package/src/js/modules/Edit/List.js +997 -0
  72. package/src/js/modules/Edit/defaults/editors/autocomplete.js +6 -446
  73. package/src/js/modules/Edit/defaults/editors/input.js +4 -0
  74. package/src/js/modules/Edit/defaults/editors/list.js +7 -0
  75. package/src/js/modules/Edit/defaults/editors/number.js +4 -0
  76. package/src/js/modules/Edit/defaults/editors/select.js +5 -585
  77. package/src/js/modules/Edit/defaults/editors/textarea.js +4 -0
  78. package/src/js/modules/Edit/defaults/editors/tickCross.js +17 -5
  79. package/src/js/modules/Edit/defaults/editors.js +2 -0
  80. package/src/js/modules/Filter/Filter.js +7 -4
  81. package/src/js/modules/Format/defaults/formatters/datetime.js +9 -1
  82. package/src/js/modules/Format/defaults/formatters/datetimediff.js +10 -3
  83. package/src/js/modules/Format/defaults/formatters/link.js +12 -1
  84. package/src/js/modules/Format/defaults/formatters/money.js +5 -3
  85. package/src/js/modules/Format/defaults/formatters/tickCross.js +2 -1
  86. package/src/js/modules/FrozenColumns/FrozenColumns.js +30 -8
  87. package/src/js/modules/HtmlTableImport/HtmlTableImport.js +5 -1
  88. package/src/js/modules/Menu/Menu.js +58 -158
  89. package/src/js/modules/Mutator/Mutator.js +20 -0
  90. package/src/js/modules/Page/Page.js +7 -3
  91. package/src/js/modules/Persistence/Persistence.js +1 -1
  92. package/src/js/modules/Popup/Popup.js +194 -0
  93. package/src/js/modules/ResizeColumns/ResizeColumns.js +139 -82
  94. package/src/js/modules/Sort/defaults/sorters/datetime.js +15 -2
  95. package/src/js/modules/Tooltip/Tooltip.js +132 -0
  96. package/src/js/modules/Validate/Validate.js +107 -71
  97. package/src/scss/tabulator.scss +354 -349
  98. package/src/scss/themes/bootstrap/functions5.scss +302 -0
  99. package/src/scss/themes/bootstrap/tabulator_bootstrap5.scss +546 -0
  100. package/src/scss/themes/bootstrap/variables5.scss +1641 -0
@@ -0,0 +1,546 @@
1
+ @import "functions5.scss";
2
+ @import "variables5.scss";
3
+
4
+ // Style conversion file, bootstrap to tabulator
5
+
6
+ //Main Theme Variables
7
+ $backgroundColor: $table-bg !default; //background color of tabulator
8
+ $borderColor:$table-border-color !default; //border to tabulator
9
+ $textSize:16px !default; //table text size
10
+
11
+ //header themeing
12
+ $headerBackgroundColor:$table-bg !default; //border to tabulator
13
+ $headerForegroundColor:inherit !default; //border to tabulator
14
+ $headerSeperatorColor:$table-border-color !default; //header bottom seperator color
15
+
16
+ $cellPadding:12px !default; //padding round header
17
+
18
+ //column header arrows
19
+ $sortArrowActive: #666 !default;
20
+ $sortArrowInactive: #bbb !default;
21
+
22
+ //row themeing
23
+ $rowBackgroundColor:$backgroundColor !default; //table row background color
24
+ $rowAltBackgroundColor: $table-striped-bg !default; //table row background color
25
+ $rowBorderColor:$table-border-color !default; //table border color
26
+ $rowHoverBackground:$table-hover-bg !default; //row background color on hover
27
+
28
+ $rowSelectedBackground: #9ABCEA !default; //row background color when selected
29
+ $rowSelectedBackgroundHover: #769BCC !default;//row background color when selected and hovered
30
+
31
+
32
+ $editBoxColor:#1D68CD !default; //border color for edit boxes
33
+ $errorColor:#dd0000 !default; //error indication
34
+
35
+ //footer themeing
36
+ $footerBorderColor:$pagination-border-color !default; //footer border color
37
+ $footerSeperatorColor:$table-border-color !default; //footer bottom seperator color
38
+ $footerActiveColor:$pagination-active-color !default; //footer bottom active text color
39
+
40
+ $table-cell-padding-sm: 5px;
41
+
42
+ @import "../../tabulator.scss";
43
+
44
+ .tabulator{
45
+ background-color: $backgroundColor;
46
+ border:none;
47
+
48
+ .tabulator-header{
49
+ border-top:1px solid $headerSeperatorColor;
50
+ border-bottom:2px solid $headerSeperatorColor;
51
+ color:$headerForegroundColor;
52
+
53
+ .tabulator-col{
54
+ border-right:none;
55
+ background-color: $headerBackgroundColor;
56
+
57
+ .tabulator-col-content{
58
+ padding:$cellPadding;
59
+
60
+ .tabulator-col-sorter{
61
+ right:0;
62
+ }
63
+ }
64
+
65
+ &.tabulator-col-group{
66
+ .tabulator-col-group-cols{
67
+ border-top:1px solid $borderColor;
68
+ }
69
+ }
70
+
71
+ .tabulator-header-filter{
72
+ input{
73
+ padding: .375rem .75rem;
74
+
75
+ background-color: #fff;
76
+ background-clip: padding-box;
77
+
78
+ border: 1px solid #ced4da;
79
+ border-radius: .25rem;
80
+
81
+ transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
82
+
83
+ font-size: 1rem;
84
+ line-height: 1.5;
85
+ color: #495057;
86
+
87
+ &:focus {
88
+ color: #495057;
89
+ background-color: #fff;
90
+ border:1px solid $editBoxColor;
91
+ outline: 0;
92
+ // box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
93
+ }
94
+ }
95
+ }
96
+ }
97
+
98
+ .tabulator-calcs-holder{
99
+ width:100%;
100
+ border-bottom:1px solid $headerSeperatorColor;
101
+ }
102
+ }
103
+
104
+ .tabulator-tableholder{
105
+ .tabulator-placeholder{
106
+ span{
107
+ color:#000;
108
+ }
109
+ }
110
+
111
+ .tabulator-table{
112
+ color:inherit;
113
+ }
114
+ }
115
+
116
+ .tabulator-footer{
117
+ color:inherit;
118
+
119
+ .tabulator-paginator{
120
+ color:inherit;
121
+ }
122
+
123
+ .tabulator-pages{
124
+ margin:0;
125
+ }
126
+
127
+ .tabulator-page{
128
+ margin:0;
129
+ margin-top:5px;
130
+ padding:8px 12px;
131
+
132
+ &[data-page="first"]{
133
+ border-top-left-radius:4px;
134
+ border-bottom-left-radius:4px;
135
+ }
136
+
137
+ &[data-page="last"]{
138
+ border:1px solid $footerBorderColor;
139
+ border-top-right-radius:4px;
140
+ border-bottom-right-radius:4px;
141
+ }
142
+
143
+ &.active{
144
+ border-color:$pagination-active-border-color;
145
+ background-color:$pagination-active-bg;
146
+ color:$footerActiveColor;
147
+ }
148
+
149
+ &:disabled{
150
+ border-color:$pagination-disabled-border-color;
151
+ background:$pagination-disabled-bg;
152
+ color:$pagination-disabled-color;
153
+ }
154
+
155
+ &:not(.disabled){
156
+ &:hover{
157
+ border-color:$pagination-hover-border-color;
158
+ background:$pagination-hover-bg;
159
+ color:$pagination-hover-color;
160
+ }
161
+ }
162
+ }
163
+ }
164
+
165
+ //Bootstrap theming classes
166
+
167
+ &.thead-dark{
168
+ .tabulator-header{
169
+ border-color: $table-border-color;
170
+ background-color: $table-bg;
171
+ color: $table-color;
172
+
173
+ .tabulator-col{
174
+ border-color: $table-border-color;
175
+ background-color: $table-bg;
176
+ color: $table-color;
177
+ }
178
+ }
179
+ }
180
+
181
+ &.table{
182
+ background-color: $table-bg;
183
+
184
+ &:not(.thead-light) .tabulator-header{
185
+ border-color: $table-border-color;
186
+ background-color: $table-bg;
187
+ color: $table-color;
188
+
189
+ .tabulator-col{
190
+ border-color: $table-border-color;
191
+ background-color: $table-bg;
192
+ color: $table-color;
193
+ }
194
+ }
195
+
196
+ .tabulator-tableholder{
197
+ color: $table-color;
198
+ }
199
+
200
+
201
+ .tabulator-row{
202
+ border-color: $table-border-color;
203
+ background-color: $table-bg;
204
+ color: $table-color;
205
+
206
+ &:hover{
207
+ background-color: $table-border-color;
208
+
209
+ .tabulator-cell{
210
+ background-color: $table-hover-bg;
211
+ }
212
+ }
213
+
214
+ &.tabulator-selected{
215
+ background-color:$rowSelectedBackground;
216
+ }
217
+ }
218
+
219
+ .tabulator-footer{
220
+ border-color: $table-border-color !important;
221
+
222
+ .tabulator-calcs-holder{
223
+ border-color: $table-border-color !important;
224
+ background:$table-bg !important;
225
+
226
+ .tabulator-row{
227
+ border-color: $table-border-color !important;
228
+ background-color: $table-bg !important;
229
+ color: $table-color !important;
230
+ }
231
+ }
232
+ }
233
+ }
234
+
235
+ &.table-striped{
236
+ &:not(.table){
237
+ .tabulator-row{
238
+ &:nth-child(even){
239
+ background-color: $rowAltBackgroundColor;
240
+
241
+ &.tabulator-selected{
242
+ background-color:$rowSelectedBackground;
243
+ }
244
+
245
+ &.tabulator-selectable:hover{
246
+ background-color:$rowHoverBackground;
247
+ cursor: pointer;
248
+ }
249
+
250
+ &.tabulator-selected:hover{
251
+ background-color:$rowSelectedBackgroundHover;
252
+ cursor: pointer;
253
+ }
254
+ }
255
+ }
256
+ }
257
+
258
+ &.table{
259
+ .tabulator-row{
260
+ &:nth-child(even){
261
+ .tabulator-cell{
262
+ background-color: $table-accent-bg;
263
+ }
264
+ }
265
+ }
266
+ }
267
+ }
268
+
269
+ &.table-bordered{
270
+ border:1px solid $borderColor;
271
+
272
+ .tabulator-header{
273
+ .tabulator-col{
274
+ border-right:1px solid $borderColor;
275
+ }
276
+ }
277
+
278
+ .tabulator-tableholder{
279
+ .tabulator-table{
280
+ .tabulator-row{
281
+ .tabulator-cell{
282
+ border-right:1px solid $borderColor;
283
+ }
284
+ }
285
+ }
286
+ }
287
+ }
288
+
289
+
290
+ &.table-borderless{
291
+ .tabulator-header{
292
+ border:none;
293
+ }
294
+
295
+ .tabulator-row{
296
+ border:none;
297
+ }
298
+ }
299
+
300
+ &.table-sm{
301
+ .tabulator-header{
302
+ .tabulator-col{
303
+ .tabulator-col-content{
304
+ padding:$table-cell-padding-sm !important;
305
+ }
306
+ }
307
+ }
308
+
309
+ .tabulator-tableholder{
310
+ .tabulator-table{
311
+ .tabulator-row{
312
+ min-height:$textSize + ($table-cell-padding-sm * 2);
313
+
314
+ .tabulator-cell{
315
+ padding:$table-cell-padding-sm !important;
316
+ }
317
+ }
318
+ }
319
+ }
320
+ }
321
+
322
+
323
+ //row colors
324
+ .tabulator-tableholder{
325
+ .tabulator-table{
326
+ .tabulator-row{
327
+ &.table-primary{
328
+ background:theme-color-level("primary", -9) !important;
329
+ }
330
+ &.table-secondary{
331
+ background:theme-color-level("secondary", -9) !important;
332
+ }
333
+ &.table-success{
334
+ background:theme-color-level("success", -9) !important;
335
+ }
336
+ &.table-info{
337
+ background:theme-color-level("info", -9) !important;
338
+ }
339
+ &.table-warning{
340
+ background:theme-color-level("warning", -9) !important;
341
+ }
342
+ &.table-danger{
343
+ background:theme-color-level("danger", -9) !important;
344
+ }
345
+ &.table-light{
346
+ background:theme-color-level("light", -9) !important;
347
+ }
348
+ &.table{
349
+ background:theme-color-level("dark", -9) !important;
350
+ }
351
+ &.table-active{
352
+ background:$table-active-bg !important;
353
+ }
354
+
355
+ &.bg-primary{
356
+ background:theme-color-level("primary", 0) !important;
357
+ }
358
+ &.bg-secondary{
359
+ background:theme-color-level("secondary", 0) !important;
360
+ }
361
+ &.bg-success{
362
+ background:theme-color-level("success", 0) !important;
363
+ }
364
+ &.bg-info{
365
+ background:theme-color-level("info", 0) !important;
366
+ }
367
+ &.bg-warning{
368
+ background:theme-color-level("warning", 0) !important;
369
+ }
370
+ &.bg-danger{
371
+ background:theme-color-level("danger", 0) !important;
372
+ }
373
+ &.bg-light{
374
+ background:theme-color-level("light", 0) !important;
375
+ }
376
+ &.bg-dark{
377
+ background:theme-color-level("dark", 0) !important;
378
+ }
379
+ &.bg-active{
380
+ background:$table-active-bg !important;
381
+ }
382
+
383
+ .tabulator-cell{
384
+ &.table-primary{
385
+ background:theme-color-level("primary", -9) !important;
386
+ }
387
+ &.table-secondary{
388
+ background:theme-color-level("secondary", -9) !important;
389
+ }
390
+ &.table-success{
391
+ background:theme-color-level("success", -9) !important;
392
+ }
393
+ &.table-info{
394
+ background:theme-color-level("info", -9) !important;
395
+ }
396
+ &.table-warning{
397
+ background:theme-color-level("warning", -9) !important;
398
+ }
399
+ &.table-danger{
400
+ background:theme-color-level("danger", -9) !important;
401
+ }
402
+ &.table-light{
403
+ background:theme-color-level("light", -9) !important;
404
+ }
405
+ &.table{
406
+ background:theme-color-level("dark", -9) !important;
407
+ }
408
+ &.table-active{
409
+ background:$table-active-bg !important;
410
+ }
411
+
412
+ &.bg-primary{
413
+ background:theme-color-level("primary", 0) !important;
414
+ }
415
+ &.bg-secondary{
416
+ background:theme-color-level("secondary", 0) !important;
417
+ }
418
+ &.bg-success{
419
+ background:theme-color-level("success", 0) !important;
420
+ }
421
+ &.bg-info{
422
+ background:theme-color-level("info", 0) !important;
423
+ }
424
+ &.bg-warning{
425
+ background:theme-color-level("warning", 0) !important;
426
+ }
427
+ &.bg-danger{
428
+ background:theme-color-level("danger", 0) !important;
429
+ }
430
+ &.bg-light{
431
+ background:theme-color-level("light", 0) !important;
432
+ }
433
+ &.bg-dark{
434
+ background:theme-color-level("dark", 0) !important;
435
+ }
436
+ &.bg-active{
437
+ background:$table-active-bg !important;
438
+ }
439
+ }
440
+ }
441
+ }
442
+ }
443
+ }
444
+
445
+ .tabulator-row{
446
+ min-height:$textSize + ($cellPadding * 2);
447
+ border-bottom:1px solid $rowBorderColor;
448
+
449
+ .tabulator-cell{
450
+ padding:$cellPadding;
451
+ border-right:none;
452
+
453
+ &:last-of-type{
454
+ border-right: none;
455
+ }
456
+
457
+ .tabulator-data-tree-control{
458
+ border:1px solid #ccc;
459
+
460
+ .tabulator-data-tree-control-collapse{
461
+ &:after {
462
+ background: #ccc;
463
+ }
464
+ }
465
+
466
+ .tabulator-data-tree-control-expand{
467
+ background: #ccc;
468
+
469
+ &:after {
470
+ background: #ccc;
471
+ }
472
+ }
473
+ }
474
+ }
475
+
476
+ &.tabulator-group{
477
+ background:#fafafa;
478
+
479
+ span{
480
+ color:#666;
481
+ }
482
+ }
483
+ }
484
+
485
+ .tabulator-edit-select-list{
486
+ background:$headerBackgroundColor;
487
+
488
+ .tabulator-edit-select-list-item{
489
+ &.active{
490
+ color:$headerBackgroundColor;
491
+
492
+ &.focused{
493
+ outline:1px solid rgba($headerBackgroundColor, .5);
494
+ }
495
+ }
496
+
497
+ &:hover{
498
+ color:$headerBackgroundColor;
499
+ }
500
+ }
501
+
502
+ .tabulator-edit-select-list-notice{
503
+ color:inherit;
504
+ }
505
+
506
+ .tabulator-edit-select-list-group{
507
+ color:inherit;
508
+ }
509
+ }
510
+
511
+ .tabulator.tabulator-rtl{
512
+ .tabulator-header {
513
+ .tabulator-col{
514
+ text-align: initial;
515
+ border-left:initial;
516
+ }
517
+ }
518
+ }
519
+
520
+ .tabulator-print-table{
521
+ .tabulator-print-table-group{
522
+ background:#fafafa;
523
+
524
+ span{
525
+ color:#666;
526
+ }
527
+ }
528
+
529
+ .tabulator-data-tree-control{
530
+ color:inherit;
531
+
532
+ .tabulator-data-tree-control-collapse{
533
+ &:after {
534
+ background: #ccc;
535
+ }
536
+ }
537
+
538
+ .tabulator-data-tree-control-expand{
539
+ background: #ccc;
540
+
541
+ &:after {
542
+ background: #ccc;
543
+ }
544
+ }
545
+ }
546
+ }