@rio-cloud/rio-uikit 0.16.1-beta-7 → 0.16.1-beta-10

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 (212) hide show
  1. package/lib/.DS_Store +0 -0
  2. package/lib/components/.DS_Store +0 -0
  3. package/lib/components/applicationHeader/AppMenu.js +3 -2
  4. package/lib/components/applicationHeader/AppMenuDropdown.js +7 -5
  5. package/lib/components/applicationHeader/ApplicationHeader.js +84 -162
  6. package/lib/components/applicationHeader/MobileAppMenu.js +77 -0
  7. package/lib/components/applicationHeader/MobileHeaderModal.js +90 -0
  8. package/lib/components/applicationHeader/MobileSubmoduleNavigation.js +89 -0
  9. package/lib/components/applicationHeader/NavItems.js +167 -274
  10. package/lib/components/applicationLayout/ApplicationLayoutBody.js +1 -3
  11. package/lib/components/applicationLayout/SubNavigation.js +60 -0
  12. package/lib/components/assetTree/AssetTree.js +4 -7
  13. package/lib/components/assetTree/Tree.js +46 -54
  14. package/lib/components/assetTree/TreeLeaf.js +1 -1
  15. package/lib/components/assetTree/TreeSelectAll.js +2 -1
  16. package/lib/components/assetTree/TreeSidebar.js +10 -22
  17. package/lib/components/assetTree/TypeCounter.js +10 -8
  18. package/lib/components/charts/AreaChart.js +5 -3
  19. package/lib/components/charts/BarChart.js +5 -3
  20. package/lib/components/charts/ChartTooltip.js +14 -0
  21. package/lib/components/charts/LineChart.js +4 -2
  22. package/lib/components/charts/PieChart.js +5 -3
  23. package/lib/components/charts/RadialBarChart.js +4 -4
  24. package/lib/components/charts/chartHelper.js +1 -1
  25. package/lib/components/dialog/Dialog.js +4 -4
  26. package/lib/components/dialog/baseDialogPropTypes.js +1 -1
  27. package/lib/components/map/.DS_Store +0 -0
  28. package/lib/components/map/components/.DS_Store +0 -0
  29. package/lib/components/map/components/features/.DS_Store +0 -0
  30. package/lib/components/map/components/features/settings/.DS_Store +0 -0
  31. package/lib/components/steppedProgressBar/SteppedProgressBar.js +59 -107
  32. package/lib/es/ChartTooltip.d.ts +5 -0
  33. package/lib/es/ChartTooltip.js +15 -0
  34. package/lib/es/Colors.js +1 -1
  35. package/lib/es/DeviceUtils.d.ts +5 -1
  36. package/lib/es/SubNavigation.d.ts +5 -0
  37. package/lib/es/SubNavigation.js +15 -0
  38. package/lib/es/VolkswagenApplicationHeader.d.ts +5 -0
  39. package/lib/es/VolkswagenApplicationHeader.js +15 -0
  40. package/lib/es/deviceUtils.js +24 -0
  41. package/lib/hooks/useClickOutside.js +2 -1
  42. package/lib/index.js +1 -1
  43. package/lib/style/css/_exports/rio-website.less +36 -22
  44. package/lib/style/css/_exports/vw-uikit.less +5 -1
  45. package/lib/style/css/components/ApplicationHeader.less +288 -257
  46. package/lib/style/css/components/ApplicationLayout.less +7 -5
  47. package/lib/style/css/components/AssetTree.less +3 -3
  48. package/lib/style/css/variables.less +1 -1
  49. package/lib/style/fonts/rioglyph/rioglyph.less +56 -1
  50. package/lib/style/fonts/rioglyph/rioglyph.svg +68 -2
  51. package/lib/style/fonts/rioglyph/rioglyph.ttf +0 -0
  52. package/lib/style/fonts/rioglyph/rioglyph.woff +0 -0
  53. package/lib/styles/animations/_imports.less +10 -0
  54. package/lib/styles/animations/collapse.less +16 -0
  55. package/lib/styles/animations/fade.less +28 -0
  56. package/lib/styles/animations/pinging.less +7 -0
  57. package/lib/styles/animations/pulsing.less +5 -0
  58. package/lib/styles/animations/rotate.less +52 -0
  59. package/lib/styles/animations/scale.less +35 -0
  60. package/lib/styles/animations/slide.less +39 -0
  61. package/lib/styles/animations/spinning.less +4 -0
  62. package/lib/styles/animations/transition.less +129 -0
  63. package/lib/styles/animations/translate.less +28 -0
  64. package/lib/styles/components/Activity.less +93 -0
  65. package/lib/styles/components/ApplicationHeader.less +469 -0
  66. package/lib/styles/components/ApplicationLayout.less +240 -0
  67. package/lib/styles/components/AssetTree.less +439 -0
  68. package/lib/styles/components/AutoSuggest.less +22 -0
  69. package/lib/styles/components/BottomSheet.less +14 -0
  70. package/lib/styles/components/Carousel.less +212 -0
  71. package/lib/styles/components/Checkbox.less +224 -0
  72. package/lib/styles/components/ClearableInput.less +115 -0
  73. package/lib/styles/components/Counter.less +142 -0
  74. package/lib/styles/components/DataTabs.less +100 -0
  75. package/lib/styles/components/DatePicker.less +391 -0
  76. package/lib/styles/components/Dialog.less +484 -0
  77. package/lib/styles/components/Dropdown.less +185 -0
  78. package/lib/styles/components/Expander.less +196 -0
  79. package/lib/styles/components/FilePicker.less +8 -0
  80. package/lib/styles/components/ListMenu.less +77 -0
  81. package/lib/styles/components/MapHere.less +91 -0
  82. package/lib/styles/components/MapMarker.less +347 -0
  83. package/lib/styles/components/MapSettings.less +140 -0
  84. package/lib/styles/components/NoData.less +8 -0
  85. package/lib/styles/components/Notification.less +234 -0
  86. package/lib/styles/components/RadioButton.less +173 -0
  87. package/lib/styles/components/Resizer.less +43 -0
  88. package/lib/styles/components/Select.less +287 -0
  89. package/lib/styles/components/Sidebar.less +157 -0
  90. package/lib/styles/components/Slider.less +278 -0
  91. package/lib/styles/components/Spinner.less +49 -0
  92. package/lib/styles/components/StatsWidget.less +111 -0
  93. package/lib/styles/components/SteppedProgressBar.less +310 -0
  94. package/lib/styles/components/SupportMarker.less +34 -0
  95. package/lib/styles/components/Switch.less +145 -0
  96. package/lib/styles/components/TableSettingsDialog.less +96 -0
  97. package/lib/styles/components/TableSortArrows.less +54 -0
  98. package/lib/styles/components/TableToolbar.less +121 -0
  99. package/lib/styles/components/Tag.less +246 -0
  100. package/lib/styles/components/TagManager.less +4 -0
  101. package/lib/styles/components/Teaser.less +12 -0
  102. package/lib/styles/components/Timeline.less +69 -0
  103. package/lib/styles/components/Tooltip.less +222 -0
  104. package/lib/styles/design/alerts.less +55 -0
  105. package/lib/styles/design/aspect-ratio.less +23 -0
  106. package/lib/styles/design/badges.less +120 -0
  107. package/lib/styles/design/blockquote.less +49 -0
  108. package/lib/styles/design/border.less +192 -0
  109. package/lib/styles/design/breadcrumbs.less +20 -0
  110. package/lib/styles/design/button-groups.less +194 -0
  111. package/lib/styles/design/buttons.less +543 -0
  112. package/lib/styles/design/callouts.less +27 -0
  113. package/lib/styles/design/caret.less +28 -0
  114. package/lib/styles/design/close.less +12 -0
  115. package/lib/styles/design/code.less +45 -0
  116. package/lib/styles/design/colors.less +202 -0
  117. package/lib/styles/design/cols.less +56 -0
  118. package/lib/styles/design/container.less +29 -0
  119. package/lib/styles/design/cursors.less +19 -0
  120. package/lib/styles/design/custom.less +20 -0
  121. package/lib/styles/design/ellipsis.less +46 -0
  122. package/lib/styles/design/flexgrid.less +7 -0
  123. package/lib/styles/design/fonts.less +458 -0
  124. package/lib/styles/design/form-input-groups.less +245 -0
  125. package/lib/styles/design/form-inputs.less +655 -0
  126. package/lib/styles/design/iframe.less +80 -0
  127. package/lib/styles/design/images.less +47 -0
  128. package/lib/styles/design/labels.less +66 -0
  129. package/lib/styles/design/list-group.less +100 -0
  130. package/lib/styles/design/navs.less +262 -0
  131. package/lib/styles/design/normalize.less +436 -0
  132. package/lib/styles/design/opacity.less +26 -0
  133. package/lib/styles/design/overflow.less +1 -0
  134. package/lib/styles/design/pagination.less +161 -0
  135. package/lib/styles/design/panels.less +105 -0
  136. package/lib/styles/design/popovers.less +119 -0
  137. package/lib/styles/design/position.less +16 -0
  138. package/lib/styles/design/progress-bars.less +131 -0
  139. package/lib/styles/design/responsive/_imports.less +67 -0
  140. package/lib/styles/design/responsive/backgrounds.less +32 -0
  141. package/lib/styles/design/responsive/display.less +9 -0
  142. package/lib/styles/design/responsive/flexgrid.less +75 -0
  143. package/lib/styles/design/responsive/floating.less +4 -0
  144. package/lib/styles/design/responsive/gap.less +41 -0
  145. package/lib/styles/design/responsive/margin.less +127 -0
  146. package/lib/styles/design/responsive/overflow.less +16 -0
  147. package/lib/styles/design/responsive/padding.less +71 -0
  148. package/lib/styles/design/responsive/position.less +103 -0
  149. package/lib/styles/design/responsive/sizing.less +96 -0
  150. package/lib/styles/design/responsive/text.less +71 -0
  151. package/lib/styles/design/responsive-embed.less +31 -0
  152. package/lib/styles/design/responsive-video.less +22 -0
  153. package/lib/styles/design/rioglyph.less +13 -0
  154. package/lib/styles/design/rounded.less +44 -0
  155. package/lib/styles/design/shadows.less +65 -0
  156. package/lib/styles/design/sizing.less +18 -0
  157. package/lib/styles/design/tables.less +855 -0
  158. package/lib/styles/design/text.less +201 -0
  159. package/lib/styles/design/theme.less +206 -0
  160. package/lib/styles/design/thumbnails.less +29 -0
  161. package/lib/styles/design/transition.less +33 -0
  162. package/lib/styles/design/type.less +159 -0
  163. package/lib/styles/design/utilities.less +75 -0
  164. package/lib/styles/design/visibility.less +186 -0
  165. package/lib/styles/design/wells.less +17 -0
  166. package/lib/styles/design/z-index.less +21 -0
  167. package/lib/styles/filter/_imports.less +1 -0
  168. package/lib/styles/filter/blur.less +17 -0
  169. package/lib/styles/mapping/breakpoint-map.less +44 -0
  170. package/lib/styles/mapping/color-map.less +200 -0
  171. package/lib/styles/mapping/cols-map.less +15 -0
  172. package/lib/styles/mapping/numbers-map.less +16 -0
  173. package/lib/styles/mapping/positions-map.less +21 -0
  174. package/lib/styles/mapping/sizes-map.less +129 -0
  175. package/lib/styles/mapping/spacings-map.less +28 -0
  176. package/lib/styles/mixins/_mixins.less +13 -0
  177. package/lib/styles/mixins/alerts.less +13 -0
  178. package/lib/styles/mixins/border-radius.less +16 -0
  179. package/lib/styles/mixins/buttons.less +117 -0
  180. package/lib/styles/mixins/clearfix.less +9 -0
  181. package/lib/styles/mixins/cols.less +59 -0
  182. package/lib/styles/mixins/forms.less +61 -0
  183. package/lib/styles/mixins/panels.less +27 -0
  184. package/lib/styles/mixins/placeholder.less +17 -0
  185. package/lib/styles/mixins/reset.less +27 -0
  186. package/lib/styles/mixins/sizings.less +21 -0
  187. package/lib/styles/mixins/spinner.less +30 -0
  188. package/lib/styles/mixins/table.less +26 -0
  189. package/lib/styles/mixins/tabs.less +4 -0
  190. package/lib/styles/mixins/text.less +5 -0
  191. package/lib/styles/print/print.less +163 -0
  192. package/lib/styles/rio-uikit-core.less +114 -0
  193. package/lib/styles/rio-uikit-print-utilities.less +16 -0
  194. package/lib/styles/rio-uikit-responsive-utilities.less +16 -0
  195. package/lib/styles/shared/colors.json +56 -0
  196. package/lib/styles/shared/colors.less +73 -0
  197. package/lib/styles/shared/screens.less +7 -0
  198. package/lib/styles/shared/text.less +23 -0
  199. package/lib/styles/variables.less +180 -0
  200. package/lib/themes/BuyButton/styles/rio-buyButton.less +183 -0
  201. package/lib/themes/MAN/styles/man-uikit.less +48 -0
  202. package/lib/themes/RIO/styles/rio-uikit.less +20 -0
  203. package/lib/themes/SCANIA/styles/scania-uikit.less +36 -0
  204. package/lib/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +94 -0
  205. package/lib/themes/Volkswagen/components/applicationHeader/modulePropTypes.js +17 -0
  206. package/lib/themes/Volkswagen/styles/vw-uikit.less +205 -0
  207. package/lib/themes/Website/styles/rio-website.less +2236 -0
  208. package/lib/themes/Xmas/styles/rio-xmas.less +36 -0
  209. package/lib/types.ts +19 -11
  210. package/lib/utils/deviceUtils.js +9 -1
  211. package/lib/version.json +1 -1
  212. package/package.json +96 -95
@@ -0,0 +1,855 @@
1
+ @table-cell-padding: 12px;
2
+ @table-condensed-cell-padding: 7px;
3
+ @table-bg: @color-white;
4
+ @table-bg-hover: @gray-light;
5
+ @table-bg-active: @gray-light;
6
+ @table-bg-highlight: @color-highlight-lightest;
7
+ @table-border-color: @gray-lighter;
8
+
9
+ .table {
10
+ background-color: transparent;
11
+ font-weight: @font-normal;
12
+ max-width: 100%;
13
+ width: 100%;
14
+ // margin-bottom: @grid-gutter-height;
15
+
16
+ > tbody > tr > td,
17
+ > tbody > tr > th,
18
+ > tfoot > tr > td,
19
+ > tfoot > tr > th,
20
+ > thead > tr > td,
21
+ > thead > tr > th {
22
+ padding: @table-cell-padding;
23
+ line-height: 1.25;
24
+
25
+ .panel & {
26
+ padding: @table-cell-padding @panel-x-padding;
27
+ }
28
+ }
29
+
30
+ // .table-responsive
31
+ &-responsive {
32
+ overflow-x: auto;
33
+
34
+ @media screen and (max-width: @screen-ls) {
35
+ -ms-overflow-style: -ms-autohiding-scrollbar;
36
+ border: 1px solid @table-border-color;
37
+ overflow-y: hidden;
38
+ width: 100%;
39
+
40
+ > .table {
41
+ > thead,
42
+ > tbody,
43
+ > tfoot {
44
+ > tr {
45
+ > th,
46
+ > td {
47
+ white-space: nowrap;
48
+ }
49
+ }
50
+ }
51
+ }
52
+
53
+ > .table-bordered {
54
+ border: 0;
55
+
56
+ > thead,
57
+ > tbody,
58
+ > tfoot {
59
+ > tr {
60
+ > th:first-child,
61
+ > td:first-child {
62
+ border-left: 0;
63
+ }
64
+
65
+ > th:last-child,
66
+ > td:last-child {
67
+ border-right: 0;
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+
75
+ // .table.table-condensed
76
+ &.table-condensed {
77
+ > thead > tr > th,
78
+ > tbody > tr > th,
79
+ > tfoot > tr > th,
80
+ > thead > tr > td,
81
+ > tbody > tr > td,
82
+ > tfoot > tr > td {
83
+ padding: @table-condensed-cell-padding @table-cell-padding;
84
+
85
+ .panel & {
86
+ padding: @table-condensed-cell-padding @panel-x-padding;
87
+ }
88
+ }
89
+ }
90
+
91
+ // .table.table-layout-fixed
92
+ &.table-layout-fixed {
93
+ table-layout: fixed;
94
+ }
95
+
96
+ // .table.table-head-filled
97
+ &.table-head-filled {
98
+ thead > tr th {
99
+ background-color: @gray-lightest;
100
+
101
+ &.table-checkbox {
102
+ z-index: 2;
103
+ }
104
+ }
105
+ }
106
+
107
+ // .table.table-sticky
108
+ &[class*="table-sticky"] {
109
+ thead > tr th {
110
+ position: sticky;
111
+ z-index: 1;
112
+ }
113
+
114
+ &:not([class*="-in-container"]) {
115
+ thead > tr th {
116
+ @media (max-width: @screen-ls) {
117
+ top: -(@ApplicationLayoutBodyPadding*0.5);
118
+ }
119
+ @media (min-width: @screen-ls) {
120
+ top: -(@ApplicationLayoutBodyPadding);
121
+ }
122
+ }
123
+ }
124
+
125
+ &[class*="-in-container"] {
126
+ thead > tr th {
127
+ top: 0;
128
+ }
129
+ }
130
+ }
131
+
132
+ // .table.table-sticky-cell
133
+ &[class*="table-sticky-cell"] {
134
+ margin-bottom: 0;
135
+
136
+ thead > tr th {
137
+ position: sticky;
138
+ top: 0;
139
+ }
140
+
141
+ &[class*="-first"] {
142
+ thead > tr th {
143
+ &:first-child {
144
+ left: 0;
145
+ z-index: 2;
146
+ border-right: 4px solid @table-border-color;
147
+ }
148
+
149
+ &:last-child {
150
+ right: 0;
151
+ z-index: 2;
152
+ border-left: 4px solid @table-border-color;
153
+ }
154
+ }
155
+
156
+ tbody > tr {
157
+ td {
158
+ &:first-child {
159
+ background-color: @color-white;
160
+ left: 0;
161
+ position: sticky;
162
+ //z-index: 2;
163
+ border-right: 4px solid @table-border-color;
164
+ }
165
+ }
166
+ }
167
+ }
168
+
169
+ &[class*="-last"]{
170
+ thead > tr th {
171
+ &:last-child {
172
+ right: 0;
173
+ //z-index: 2;
174
+ }
175
+ }
176
+
177
+ tbody > tr {
178
+ td {
179
+ &:last-child {
180
+ background-color: @color-white;
181
+ right: 0;
182
+ position: sticky;
183
+ //z-index: 2;
184
+ border-left: 4px solid @table-border-color;
185
+ }
186
+ }
187
+ }
188
+ }
189
+ }
190
+
191
+ // .table.table-column-overflow-hidden
192
+ &.table-column-overflow-hidden {
193
+ > thead > tr > th,
194
+ > tbody > tr > th,
195
+ > tfoot > tr > th,
196
+ > thead > tr > td,
197
+ > tbody > tr > td,
198
+ > tfoot > tr > td {
199
+ &:not(.table-action):not(.table-checkbox):not(.overflow-visible) {
200
+ overflow: hidden;
201
+ }
202
+ }
203
+ }
204
+
205
+ // .table.table-row-first-border-none
206
+ &.table-row-first-border-none {
207
+ > tbody > tr {
208
+ &:first-child {
209
+ > td {
210
+ border-top: none;
211
+ }
212
+ }
213
+ }
214
+ }
215
+
216
+ // .table.table-row-last-border-none
217
+ &.table-row-last-border-none {
218
+ > tbody > tr {
219
+ &:last-child {
220
+ border-bottom: none;
221
+ }
222
+ }
223
+ }
224
+
225
+ colgroup {
226
+ col {
227
+ &.table-checkbox {
228
+ min-width: 40px;
229
+ width: 40px;
230
+
231
+ &:first-child {
232
+ min-width: 50px;
233
+ width: 50px;
234
+ }
235
+ }
236
+
237
+ &.table-action {
238
+ min-width: 40px;
239
+ width: 40px;
240
+
241
+ &:last-child {
242
+ min-width: 60px;
243
+ width: 60px;
244
+ }
245
+ }
246
+ }
247
+ }
248
+
249
+ > thead {
250
+ &:first-child {
251
+ > tr:first-child {
252
+ > th,
253
+ > td {
254
+ border-top: 0;
255
+ }
256
+ }
257
+ }
258
+
259
+ > tr {
260
+ background-color: transparent;
261
+
262
+ > th {
263
+ border-bottom: 2px solid @table-border-color;
264
+ border-top: 1px solid @table-border-color;
265
+ font-weight: @font-light;
266
+ text-align: left;
267
+ white-space: nowrap;
268
+
269
+ &.table-action {
270
+ width: 40px;
271
+ text-align: center;
272
+ }
273
+
274
+ &.table-checkbox {
275
+ padding-bottom: 0;
276
+ padding-top: 0;
277
+ text-align: center;
278
+ vertical-align: middle;
279
+ width: 40px;
280
+ font-weight: normal;
281
+
282
+ &:first-child {
283
+ padding-left: @table-cell-padding;
284
+ }
285
+
286
+ // > .dropdown > .dropdown-toggle {
287
+ // justify-content: flex-end;
288
+ // }
289
+ }
290
+ }
291
+ }
292
+ }
293
+
294
+ > tbody > tr {
295
+ background-color: @table-bg;
296
+ .table-state(info, @brand-info, false);
297
+ .table-state(warning, @brand-warning, false);
298
+ .table-state(success, @brand-success, false);
299
+ .table-state(danger, @brand-danger, false);
300
+
301
+ th,
302
+ td {
303
+ &:not([class*='bg-']) {
304
+ background-color: transparent;
305
+ }
306
+ }
307
+
308
+ &:last-child {
309
+ border-bottom: 1px solid @table-border-color;
310
+ }
311
+
312
+ td {
313
+ border-top: 1px solid @table-border-color;
314
+ vertical-align: middle;
315
+
316
+ &:focus,
317
+ &:active:focus {
318
+ outline: 0;
319
+ }
320
+
321
+ &.table-action {
322
+ padding: 0;
323
+ text-align: center;
324
+
325
+ &:first-child {
326
+ padding-left: 8px;
327
+ }
328
+
329
+ .rioglyph[class*="rioglyph-chevron"] {
330
+ font-size: 14px;
331
+ }
332
+ }
333
+
334
+ &.table-checkbox {
335
+ padding: 0;
336
+ text-align: center;
337
+
338
+ &:first-child {
339
+ padding-left: 8px;
340
+ }
341
+
342
+ > .checkbox {
343
+ .checkbox-text {
344
+ &::before,
345
+ &:after {
346
+ margin-right: 0;
347
+ }
348
+ }
349
+ }
350
+ }
351
+ }
352
+
353
+ &.active {
354
+ td {
355
+ .table-state(active, @brand-primary, false)
356
+ }
357
+ }
358
+
359
+ &.disabled,
360
+ &[disabled] {
361
+ opacity: 0.5;
362
+ pointer-events: none;
363
+ }
364
+ }
365
+
366
+ .checkboxWrapper > label {
367
+ margin-bottom: 0;
368
+ }
369
+
370
+ // .table.table-bordered
371
+ &.table-bordered {
372
+ border: none;
373
+ border-collapse: separate;
374
+
375
+ > thead > tr > th,
376
+ > tbody > tr > td {
377
+ border: none;
378
+ border-top: 4px solid @table-border-color;
379
+ }
380
+
381
+ > tbody > tr:last-child {
382
+ border-bottom: 4px solid @table-border-color;
383
+ }
384
+
385
+ > tbody > tr > td {
386
+ vertical-align: middle;
387
+ }
388
+ }
389
+
390
+ // Zebra-striping
391
+ &.table-striped {
392
+ > tbody > tr:nth-of-type(odd) {
393
+ background-color: darken(@table-bg, 2%);
394
+ }
395
+ }
396
+
397
+ // .table.table-hover
398
+ &.table-hover {
399
+ > tbody > tr {
400
+ .table-state(info, @brand-info, true);
401
+ .table-state(warning, @brand-warning, true);
402
+ .table-state(success, @brand-success, true);
403
+ .table-state(danger, @brand-danger, true);
404
+
405
+ &:hover {
406
+ background-color: @table-bg;
407
+
408
+ td:not([class*='bg-']) {
409
+ box-shadow: inset 0 500px 0 0 @table-bg-highlight;
410
+ }
411
+ }
412
+ &.active:hover {
413
+ td {
414
+ .table-state(active, @brand-primary, false)
415
+ }
416
+ }
417
+ }
418
+ }
419
+
420
+ // .table.table-cards
421
+ &.table-cards {
422
+ @cardsSpace: 10px;
423
+ overflow: hidden;
424
+
425
+ &.table-cards-with-border {
426
+ &.table-single-card,
427
+ &.table-multi-cards {
428
+ tbody {
429
+ tr {
430
+ border: 3px solid @gray-lighter;
431
+ }
432
+ }
433
+ }
434
+ }
435
+
436
+ &.table-single-card,
437
+ &.table-multi-cards {
438
+ display: block;
439
+ padding-bottom: 5px;
440
+ padding-top: 5px;
441
+ width: 100%;
442
+
443
+ colgroup {
444
+ display: none;
445
+ }
446
+
447
+ thead {
448
+ display: block;
449
+
450
+ th {
451
+ &:not(.table-checkbox) {
452
+ display: none;
453
+ }
454
+
455
+ &.table-checkbox {
456
+ background: transparent;
457
+ display: block;
458
+ margin-bottom: 20px;
459
+ margin-top: -5px;
460
+ padding: 0;
461
+ text-align: left;
462
+
463
+ .dropdown {
464
+ &:not(.open) {
465
+ .dropdown-toggle {
466
+ padding: 0 6px;
467
+ .button-variant(
468
+ ~'!important';
469
+ @btn-default-bg;
470
+ @btn-default-border;
471
+ @btn-default-color;
472
+ @btn-default-color;
473
+ @btn-default-color;
474
+ @btn-default-color;
475
+ darken(@btn-default-color, 17%);
476
+ darken(@btn-default-border, 12%);
477
+ darken(@btn-default-border, 12%);
478
+ darken(@btn-default-border, 25%);
479
+ darken(@btn-default-border, 25%);
480
+ @btn-default-bg;
481
+ @btn-default-bg;
482
+ @btn-default-bg;
483
+ @btn-default-bg;
484
+ );
485
+
486
+ &:focus,
487
+ &:active {
488
+ background-color: @color-white !important;
489
+ border-color: @color-highlight !important;
490
+
491
+ &:hover {
492
+ .rioglyph {
493
+ color: @color-highlight !important;
494
+ }
495
+ }
496
+ }
497
+
498
+ &:hover {
499
+ .rioglyph {
500
+ color: @color-white !important;
501
+ }
502
+ }
503
+ }
504
+ }
505
+
506
+ &.open {
507
+ .dropdown-toggle {
508
+ .button-variant(
509
+ ~'!important';
510
+ @btn-default-bg;
511
+ @btn-default-border;
512
+ @btn-default-color;
513
+ @btn-default-color;
514
+ @btn-default-color;
515
+ @btn-default-color;
516
+ darken(@btn-default-color, 17%);
517
+ darken(@btn-default-border, 12%);
518
+ darken(@btn-default-border, 12%);
519
+ darken(@btn-default-border, 25%);
520
+ darken(@btn-default-border, 25%);
521
+ @btn-default-bg;
522
+ @btn-default-bg;
523
+ @btn-default-bg;
524
+ @btn-default-bg;
525
+ );
526
+
527
+ &:hover, &:active, &:focus {
528
+ .rioglyph:before {
529
+ color: @color-white !important;
530
+ }
531
+ }
532
+ }
533
+ }
534
+ }
535
+ }
536
+ }
537
+ }
538
+
539
+ tbody {
540
+ overflow: visible;
541
+ display: block;
542
+ flex-wrap: wrap;
543
+ display: flex;
544
+ margin: -(@cardsSpace * 0.5) - (@cardsSpace * 0.5) 0 - (@cardsSpace * 0.5);
545
+
546
+ tr {
547
+ border: 3px solid @color-white;
548
+ display: flex;
549
+ flex-wrap: wrap;
550
+ margin: @cardsSpace * 0.5;
551
+ width: 100%;
552
+
553
+ &.table-card-placeholder {
554
+ background: none;
555
+ border-bottom: none;
556
+ border-left-color: transparent;
557
+ border-right-color: transparent;
558
+ border-top: none;
559
+ margin-bottom: 0;
560
+ margin-top: 0;
561
+ }
562
+
563
+ td {
564
+ border-top: none;
565
+ min-height: 44px;
566
+ order: 3;
567
+ padding: @table-cell-padding;
568
+ white-space: normal;
569
+ width: 100%;
570
+
571
+ &:not([class*='table-']) {
572
+ border-top: 1px solid @gray-lighter;
573
+ width: 100%;
574
+ }
575
+
576
+ &:not(.cards-multiline):not([class*='table-']) {
577
+ display: flex;
578
+
579
+ &[data-field]:not([data-field='']) {
580
+ > * {
581
+ display: flex;
582
+ flex: 1 0;
583
+ }
584
+ }
585
+ }
586
+
587
+ &[class*='table-'] {
588
+ align-items: center;
589
+ display: inline-flex;
590
+ padding: 5px;
591
+ }
592
+
593
+ &.table-action {
594
+ flex: 1 1 auto;
595
+ justify-content: flex-end;
596
+ order: 2;
597
+ width: auto;
598
+ }
599
+
600
+ &.table-checkbox {
601
+ order: 1;
602
+ padding-left: @table-cell-padding;
603
+ width: 50%;
604
+ }
605
+
606
+ &.cards-multiline {
607
+ display: block;
608
+ }
609
+
610
+ &[data-field]:not([data-field='']) {
611
+ &:before {
612
+ color: @gray;
613
+ content: attr(data-field) ':';
614
+ float: left;
615
+ margin-right: 10px;
616
+ text-align: left !important;
617
+ transition: all 0.2s ease-in-out;
618
+ }
619
+ }
620
+
621
+ &:first-child {
622
+ border-top: none !important;
623
+
624
+ .checkboxWrapper {
625
+ float: left;
626
+ }
627
+ }
628
+
629
+ &.cards-hide {
630
+ display: none !important;
631
+ }
632
+
633
+ // custom styling
634
+ h1,
635
+ h2,
636
+ h3,
637
+ h4,
638
+ h5,
639
+ h6 {
640
+ margin: 0;
641
+ }
642
+
643
+ br {
644
+ display: none;
645
+ }
646
+ }
647
+
648
+ &:not(.active):not(.table-card-placeholder) {
649
+ background-color: @color-white !important;
650
+ }
651
+
652
+ &.active {
653
+ background: @table-bg-highlight !important;
654
+ border-color: @brand-primary;
655
+
656
+ td {
657
+ box-shadow: none !important;
658
+ }
659
+ }
660
+ }
661
+ }
662
+
663
+ &.table-hover {
664
+ tbody {
665
+ tr {
666
+ &:hover {
667
+ border-color: @table-bg-highlight;
668
+
669
+ &.active {
670
+ border-color: @brand-primary;
671
+ }
672
+
673
+ td {
674
+ background: @table-bg-highlight;
675
+ border-color: darken(@table-border-color, 8%);
676
+ }
677
+ }
678
+ }
679
+ }
680
+ }
681
+ }
682
+
683
+ &.table-multi-cards {
684
+ tbody {
685
+ tr {
686
+ td {
687
+ text-align: right !important;
688
+
689
+ > * {
690
+ justify-content: flex-end;
691
+
692
+ &:before {
693
+ content: '';
694
+ flex: 1 0;
695
+ }
696
+
697
+ img {
698
+ float: right;
699
+ }
700
+ }
701
+
702
+ &[data-field]:not([data-field='']) {
703
+ &:before {
704
+ max-width: 50%;
705
+ }
706
+ }
707
+ }
708
+ }
709
+ }
710
+ }
711
+
712
+ &.table-single-card {
713
+ tbody {
714
+ tr {
715
+ td {
716
+ &:not(.cards-text-right) {
717
+ text-align: left !important;
718
+
719
+ > * {
720
+ justify-content: flex-start;
721
+ }
722
+ }
723
+
724
+ &.cards-text-right {
725
+ text-align: right !important;
726
+
727
+ > * {
728
+ justify-content: flex-end;
729
+ }
730
+ }
731
+
732
+ &[data-field]:not([data-field='']) {
733
+ &:before {
734
+ @media (max-width: @screen-sm) {
735
+ width: 40%;
736
+ }
737
+
738
+ @media (min-width: @screen-sm) {
739
+ width: 30%;
740
+ }
741
+
742
+ @media (min-width: @screen-lg) {
743
+ width: 20%;
744
+ }
745
+ }
746
+ }
747
+ }
748
+ }
749
+ }
750
+ }
751
+
752
+ &.table-multi-cards {
753
+ tbody {
754
+ tr {
755
+ flex: 1 1;
756
+ min-width: 250px;
757
+ }
758
+ }
759
+ }
760
+ }
761
+
762
+ // grouped tr`s
763
+ tr {
764
+ &.compactRow {
765
+ background-color: @color-white !important;
766
+ }
767
+
768
+ &.extendedRow {
769
+ background-color: darken(@table-bg, 2%) !important;
770
+
771
+ td {
772
+ border-top: 2px solid @table-border-color !important;
773
+ }
774
+
775
+ + .compactRow {
776
+ td {
777
+ border-top: 20px solid @table-border-color !important;
778
+ }
779
+ }
780
+ }
781
+ }
782
+
783
+ .formatExpander {
784
+ &.animate {
785
+ transition: transform 0.2s ease-in-out;
786
+ }
787
+
788
+ &.open {
789
+ transform: rotate(180deg);
790
+ }
791
+ }
792
+
793
+ // Remove top border from thead by default
794
+ > caption + thead,
795
+ > colgroup + thead,
796
+ > thead:first-child {
797
+ > tr:first-child {
798
+ > th,
799
+ > td {
800
+ border-top: 0;
801
+ }
802
+ }
803
+ }
804
+ }
805
+
806
+ // States
807
+ .table-state(@state, @color, @hoverable) {
808
+ & when (@state = active) {
809
+ background-color: transparent;
810
+ box-shadow: inset 0 2px 0 0 @color, inset 0 -2px 0 0 @color, inset 0 500px 0 0 @table-bg-highlight;
811
+
812
+ &:first-child {
813
+ box-shadow: inset 0 2px 0 0 @color, inset 0 -2px 0 0 @color, inset 2px 0 0 0 @color,
814
+ inset 0 500px 0 0 @table-bg-highlight;
815
+ }
816
+
817
+ &:last-child {
818
+ box-shadow: inset 0 2px 0 0 @color, inset -2px 0 0 0 @color, inset 0 -2px 0 0 @color,
819
+ inset 0 500px 0 0 @table-bg-highlight;
820
+ }
821
+ }
822
+
823
+ & when (@state = info), (@state = warning), (@state = success), (@state = danger) {
824
+ &.@{state} {
825
+ & when (@hoverable = true) {
826
+ &:hover > td:first-child {
827
+ box-shadow: inset 5px 0 0 0 @color, inset 0 500px 0 0 @table-bg-highlight;
828
+ }
829
+ }
830
+
831
+ &.active, &.active:hover {
832
+ > td:first-child {
833
+ box-shadow: inset 5px 0 0 0 @color, inset 0 2px 0 0 @brand-primary, inset 0 -2px 0 0 @brand-primary,
834
+ inset 0 500px 0 0 @table-bg-highlight;
835
+ }
836
+ }
837
+
838
+ > td {
839
+ background-color: transparent !important;
840
+
841
+ &:first-child {
842
+ box-shadow: inset 5px 0 0 0 @color;
843
+ }
844
+ }
845
+ }
846
+ }
847
+ }
848
+
849
+ // Bootstrap Cols
850
+ table td[class*="col-"],
851
+ table th[class*="col-"] {
852
+ display: table-cell;
853
+ float: none;
854
+ position: static;
855
+ }