@eturnity/eturnity_reusable_components 1.2.23 → 1.2.24
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/package.json
CHANGED
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
<script>
|
|
20
20
|
// ToDo: add this to storybook
|
|
21
21
|
// import MainTable from "@eturnity/eturnity_reusable_components/src/components/tables/mainTable"
|
|
22
|
-
import styled from
|
|
23
|
-
import Spinner from
|
|
22
|
+
import styled from 'vue-styled-components'
|
|
23
|
+
import Spinner from '../../spinner'
|
|
24
24
|
|
|
25
25
|
const PageContainer = styled.div``
|
|
26
26
|
|
|
@@ -36,8 +36,8 @@ const TableScroll = styled.div`
|
|
|
36
36
|
`
|
|
37
37
|
|
|
38
38
|
const wrapperAttrs = { fullWidth: Boolean }
|
|
39
|
-
const TableWrapper = styled(
|
|
40
|
-
width: ${(props) => (props.fullWidth ?
|
|
39
|
+
const TableWrapper = styled('div', wrapperAttrs)`
|
|
40
|
+
width: ${(props) => (props.fullWidth ? '100%' : 'fit-content')};
|
|
41
41
|
max-width: 100%;
|
|
42
42
|
overflow: auto;
|
|
43
43
|
|
|
@@ -64,7 +64,7 @@ const SpinnerWrapper = styled.div`
|
|
|
64
64
|
`
|
|
65
65
|
|
|
66
66
|
const containerAttrs = { cellPaddings: String }
|
|
67
|
-
const TableContainer = styled(
|
|
67
|
+
const TableContainer = styled('table', containerAttrs)`
|
|
68
68
|
width: 100%;
|
|
69
69
|
border-collapse: collapse;
|
|
70
70
|
border: none;
|
|
@@ -82,7 +82,7 @@ const TableContainer = styled("table", containerAttrs)`
|
|
|
82
82
|
tr {
|
|
83
83
|
&:hover {
|
|
84
84
|
background-color: ${(props) => props.theme.colors.white};
|
|
85
|
-
cursor:
|
|
85
|
+
cursor: auto;
|
|
86
86
|
|
|
87
87
|
.arrow-container,
|
|
88
88
|
.input-placeholder,
|
|
@@ -115,7 +115,8 @@ const TableContainer = styled("table", containerAttrs)`
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
td {
|
|
118
|
-
padding: ${(props) =>
|
|
118
|
+
padding: ${(props) =>
|
|
119
|
+
props.cellPaddings ? props.cellPaddings : '6px 6px 7px 4px'};
|
|
119
120
|
border-bottom: 1px solid ${(props) => props.theme.colors.grey4};
|
|
120
121
|
|
|
121
122
|
&.empty {
|
|
@@ -207,7 +208,7 @@ const TableContainer = styled("table", containerAttrs)`
|
|
|
207
208
|
.text {
|
|
208
209
|
padding: 10px 15px 10px 15px;
|
|
209
210
|
color: ${(props) => props.theme.colors.black};
|
|
210
|
-
cursor:
|
|
211
|
+
cursor: auto;
|
|
211
212
|
}
|
|
212
213
|
|
|
213
214
|
.bold {
|
|
@@ -245,7 +246,7 @@ const TableContainer = styled("table", containerAttrs)`
|
|
|
245
246
|
|
|
246
247
|
&:hover {
|
|
247
248
|
input:disabled {
|
|
248
|
-
background-color: ${(props) => props.theme.colors.grey5 +
|
|
249
|
+
background-color: ${(props) => props.theme.colors.grey5 + '!important'};
|
|
249
250
|
}
|
|
250
251
|
|
|
251
252
|
.drag-icon {
|
|
@@ -284,7 +285,7 @@ const TableContainer = styled("table", containerAttrs)`
|
|
|
284
285
|
cursor: grab;
|
|
285
286
|
background-position: center;
|
|
286
287
|
background-image: ${() =>
|
|
287
|
-
`url(${require(
|
|
288
|
+
`url(${require('../../../assets/icons/drag_icon.svg')})`};
|
|
288
289
|
|
|
289
290
|
&:active {
|
|
290
291
|
cursor: grabbing;
|
|
@@ -297,7 +298,7 @@ const TableContainer = styled("table", containerAttrs)`
|
|
|
297
298
|
background: no-repeat;
|
|
298
299
|
margin-left: 10px;
|
|
299
300
|
background-image: ${() =>
|
|
300
|
-
`url(${require(
|
|
301
|
+
`url(${require('../../../assets/icons/subposition_icon.svg')})`};
|
|
301
302
|
}
|
|
302
303
|
|
|
303
304
|
.arrow-down {
|
|
@@ -306,7 +307,7 @@ const TableContainer = styled("table", containerAttrs)`
|
|
|
306
307
|
background: no-repeat;
|
|
307
308
|
background-position: center;
|
|
308
309
|
background-image: ${() =>
|
|
309
|
-
`url(${require(
|
|
310
|
+
`url(${require('../../../assets/icons/arrow_down.svg')})`};
|
|
310
311
|
}
|
|
311
312
|
|
|
312
313
|
.arrow-up {
|
|
@@ -315,7 +316,7 @@ const TableContainer = styled("table", containerAttrs)`
|
|
|
315
316
|
background: no-repeat;
|
|
316
317
|
background-position: center;
|
|
317
318
|
background-image: ${() =>
|
|
318
|
-
`url(${require(
|
|
319
|
+
`url(${require('../../../assets/icons/arrow_up_red.svg')})`};
|
|
319
320
|
}
|
|
320
321
|
}
|
|
321
322
|
|
|
@@ -338,7 +339,7 @@ const TableContainer = styled("table", containerAttrs)`
|
|
|
338
339
|
`
|
|
339
340
|
|
|
340
341
|
export default {
|
|
341
|
-
name:
|
|
342
|
+
name: 'main-table',
|
|
342
343
|
components: {
|
|
343
344
|
TableScroll,
|
|
344
345
|
TableWrapper,
|
|
@@ -346,25 +347,25 @@ export default {
|
|
|
346
347
|
Spinner,
|
|
347
348
|
TableContainer,
|
|
348
349
|
PageContainer,
|
|
349
|
-
TableTitle
|
|
350
|
+
TableTitle
|
|
350
351
|
},
|
|
351
352
|
props: {
|
|
352
353
|
fullWidth: {
|
|
353
354
|
required: false,
|
|
354
|
-
default: true
|
|
355
|
+
default: true
|
|
355
356
|
},
|
|
356
357
|
cellPaddings: {
|
|
357
358
|
required: false,
|
|
358
|
-
default: ''
|
|
359
|
+
default: ''
|
|
359
360
|
},
|
|
360
361
|
isLoading: {
|
|
361
362
|
required: false,
|
|
362
|
-
default: false
|
|
363
|
+
default: false
|
|
363
364
|
},
|
|
364
365
|
titleText: {
|
|
365
366
|
required: false,
|
|
366
|
-
default: null
|
|
367
|
-
}
|
|
368
|
-
}
|
|
367
|
+
default: null
|
|
368
|
+
}
|
|
369
|
+
}
|
|
369
370
|
}
|
|
370
371
|
</script>
|