tabulator-tables 5.4.2 → 5.4.4

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