@eturnity/eturnity_reusable_components 1.0.16 → 1.0.20
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
package/src/App.vue
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<ThemeProvider :theme="getTheme()" :style="{ height: '100%' }">
|
|
3
3
|
<page-container>
|
|
4
|
-
<
|
|
4
|
+
<main-table>
|
|
5
|
+
<thead>
|
|
6
|
+
<tr>
|
|
7
|
+
<th>Column 1</th>
|
|
8
|
+
<th>Column 2</th>
|
|
9
|
+
<th>Column 3</th>
|
|
10
|
+
<th>Column 4</th>
|
|
11
|
+
</tr>
|
|
12
|
+
</thead>
|
|
13
|
+
<tbody>
|
|
14
|
+
<tr>
|
|
15
|
+
<td class="text">Body 1</td>
|
|
16
|
+
<td class="text">Body 2</td>
|
|
17
|
+
<td class="text">Body 3</td>
|
|
18
|
+
<td class="text">Body 4</td>
|
|
19
|
+
</tr>
|
|
20
|
+
</tbody>
|
|
21
|
+
</main-table>
|
|
5
22
|
</page-container>
|
|
6
23
|
</ThemeProvider>
|
|
7
24
|
</template>
|
|
@@ -10,7 +27,7 @@
|
|
|
10
27
|
import { ThemeProvider } from "vue-styled-components"
|
|
11
28
|
import theme from "./assets/theme"
|
|
12
29
|
import styled from "vue-styled-components"
|
|
13
|
-
import
|
|
30
|
+
import MainTable from "@/components/tables/mainTable"
|
|
14
31
|
|
|
15
32
|
const PageContainer = styled.div`
|
|
16
33
|
padding: 40px;
|
|
@@ -21,7 +38,7 @@ export default {
|
|
|
21
38
|
components: {
|
|
22
39
|
ThemeProvider,
|
|
23
40
|
PageContainer,
|
|
24
|
-
|
|
41
|
+
MainTable,
|
|
25
42
|
},
|
|
26
43
|
data() {
|
|
27
44
|
return {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="10" height="16" viewBox="0 0 10 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M4 2C4 3.10457 3.10457 4 2 4C0.89543 4 0 3.10457 0 2C0 0.89543 0.89543 0 2 0C3.10457 0 4 0.89543 4 2Z" fill="#B2B9C5"/>
|
|
3
|
+
<path d="M10 2C10 3.10457 9.10457 4 8 4C6.89543 4 6 3.10457 6 2C6 0.89543 6.89543 0 8 0C9.10457 0 10 0.89543 10 2Z" fill="#B2B9C5"/>
|
|
4
|
+
<path d="M4 8C4 9.10457 3.10457 10 2 10C0.89543 10 0 9.10457 0 8C0 6.89543 0.89543 6 2 6C3.10457 6 4 6.89543 4 8Z" fill="#B2B9C5"/>
|
|
5
|
+
<path d="M10 8C10 9.10457 9.10457 10 8 10C6.89543 10 6 9.10457 6 8C6 6.89543 6.89543 6 8 6C9.10457 6 10 6.89543 10 8Z" fill="#B2B9C5"/>
|
|
6
|
+
<path d="M4 14C4 15.1046 3.10457 16 2 16C0.89543 16 0 15.1046 0 14C0 12.8954 0.89543 12 2 12C3.10457 12 4 12.8954 4 14Z" fill="#B2B9C5"/>
|
|
7
|
+
<path d="M10 14C10 15.1046 9.10457 16 8 16C6.89543 16 6 15.1046 6 14C6 12.8954 6.89543 12 8 12C9.10457 12 10 12.8954 10 14Z" fill="#B2B9C5"/>
|
|
8
|
+
</svg>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<spinner-container v-if="fullWidth">
|
|
3
3
|
<container>
|
|
4
|
-
<spinner-wrapper :src="require('../../assets/icons/
|
|
4
|
+
<spinner-wrapper :src="require('../../assets/icons/black_spinner.svg')" />
|
|
5
5
|
</container>
|
|
6
6
|
</spinner-container>
|
|
7
7
|
<container v-else>
|
|
8
|
-
<spinner-wrapper :src="require('../../assets/icons/
|
|
8
|
+
<spinner-wrapper :src="require('../../assets/icons/black_spinner.svg')" />
|
|
9
9
|
</container>
|
|
10
10
|
</template>
|
|
11
11
|
|
|
@@ -12,8 +12,10 @@
|
|
|
12
12
|
</template>
|
|
13
13
|
|
|
14
14
|
<script>
|
|
15
|
+
// ToDo: add this to storybook
|
|
16
|
+
// import MainTable from "@eturnity/eturnity_reusable_components/src/components/tables/mainTable"
|
|
15
17
|
import styled from "vue-styled-components"
|
|
16
|
-
import Spinner from "../../
|
|
18
|
+
import Spinner from "../../spinner"
|
|
17
19
|
|
|
18
20
|
const TableScroll = styled.div`
|
|
19
21
|
position: relative;
|
|
@@ -63,12 +65,23 @@ const TableContainer = styled.table`
|
|
|
63
65
|
th {
|
|
64
66
|
padding: 12px 20px;
|
|
65
67
|
background-color: ${(props) => props.theme.colors.blue1};
|
|
68
|
+
|
|
69
|
+
.ordering {
|
|
70
|
+
display: grid;
|
|
71
|
+
grid-template-columns: 1fr auto;
|
|
72
|
+
grid-gap: 6px;
|
|
73
|
+
}
|
|
66
74
|
}
|
|
67
75
|
|
|
68
76
|
td {
|
|
69
77
|
padding: 7px 10px;
|
|
70
78
|
border-bottom: 1px solid ${(props) => props.theme.colors.grey4};
|
|
71
79
|
|
|
80
|
+
&.empty {
|
|
81
|
+
height: 100px;
|
|
82
|
+
text-align: center;
|
|
83
|
+
}
|
|
84
|
+
|
|
72
85
|
&.no-border {
|
|
73
86
|
border-bottom: none;
|
|
74
87
|
}
|
|
@@ -191,7 +204,7 @@ const TableContainer = styled.table`
|
|
|
191
204
|
cursor: grab;
|
|
192
205
|
background-position: center;
|
|
193
206
|
background-image: ${() =>
|
|
194
|
-
`url(${require("
|
|
207
|
+
`url(${require("../../../assets/icons/drag_icon.svg")})`};
|
|
195
208
|
|
|
196
209
|
&:active {
|
|
197
210
|
cursor: grabbing;
|
|
@@ -204,7 +217,7 @@ const TableContainer = styled.table`
|
|
|
204
217
|
background: no-repeat;
|
|
205
218
|
margin-left: 10px;
|
|
206
219
|
background-image: ${() =>
|
|
207
|
-
`url(${require("
|
|
220
|
+
`url(${require("../../../assets/icons/subposition_icon.svg")})`};
|
|
208
221
|
}
|
|
209
222
|
|
|
210
223
|
.arrow-down {
|
|
@@ -213,7 +226,7 @@ const TableContainer = styled.table`
|
|
|
213
226
|
background: no-repeat;
|
|
214
227
|
background-position: center;
|
|
215
228
|
background-image: ${() =>
|
|
216
|
-
`url(${require("
|
|
229
|
+
`url(${require("../../../assets/icons/arrow_down.svg")})`};
|
|
217
230
|
}
|
|
218
231
|
|
|
219
232
|
.arrow-up {
|
|
@@ -222,7 +235,7 @@ const TableContainer = styled.table`
|
|
|
222
235
|
background: no-repeat;
|
|
223
236
|
background-position: center;
|
|
224
237
|
background-image: ${() =>
|
|
225
|
-
`url(${require("
|
|
238
|
+
`url(${require("../../../assets/icons/arrow_up_red.svg")})`};
|
|
226
239
|
}
|
|
227
240
|
}
|
|
228
241
|
|