@eturnity/eturnity_reusable_components 1.0.41 → 1.0.45

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "1.0.41",
3
+ "version": "1.0.45",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
package/src/App.vue CHANGED
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <ThemeProvider :theme="getTheme()" :style="{ height: '100%' }">
3
3
  <page-container>
4
- <main-table>
4
+ <main-table titleText="My Table">
5
5
  <thead>
6
6
  <tr>
7
7
  <th>Column 1</th>
@@ -1,14 +1,19 @@
1
1
  <template>
2
- <table-scroll>
3
- <table-wrapper :fullWidth="fullWidth">
4
- <spinner-wrapper v-if="isLoading">
5
- <spinner />
6
- </spinner-wrapper>
7
- <table-container v-else>
8
- <slot />
9
- </table-container>
10
- </table-wrapper>
11
- </table-scroll>
2
+ <page-container>
3
+ <table-title v-if="titleText">
4
+ {{ titleText }}
5
+ </table-title>
6
+ <table-scroll>
7
+ <table-wrapper :fullWidth="fullWidth">
8
+ <spinner-wrapper v-if="isLoading">
9
+ <spinner />
10
+ </spinner-wrapper>
11
+ <table-container v-else>
12
+ <slot />
13
+ </table-container>
14
+ </table-wrapper>
15
+ </table-scroll>
16
+ </page-container>
12
17
  </template>
13
18
 
14
19
  <script>
@@ -17,6 +22,14 @@
17
22
  import styled from "vue-styled-components"
18
23
  import Spinner from "../../spinner"
19
24
 
25
+ const PageContainer = styled.div``
26
+
27
+ const TableTitle = styled.div`
28
+ margin-bottom: 6px;
29
+ font-weight: bold;
30
+ font-size: 13px;
31
+ `
32
+
20
33
  const TableScroll = styled.div`
21
34
  position: relative;
22
35
  max-width: 100%;
@@ -148,6 +161,10 @@ const TableContainer = styled.table`
148
161
  cursor: not-allowed;
149
162
  }
150
163
 
164
+ .arrow-dropdown {
165
+ visibility: hidden;
166
+ }
167
+
151
168
  &.footer {
152
169
  td {
153
170
  background-color: ${(props) => props.theme.colors.grey5};
@@ -200,11 +217,15 @@ const TableContainer = styled.table`
200
217
  .drag-icon {
201
218
  visibility: visible;
202
219
  }
220
+
221
+ .arrow-dropdown {
222
+ visibility: visible;
223
+ }
203
224
  }
204
225
 
205
226
  .drag-container {
206
227
  display: table-cell;
207
- width: auto;
228
+ width: 12px;
208
229
  vertical-align: middle;
209
230
  }
210
231
 
@@ -271,6 +292,8 @@ export default {
271
292
  SpinnerWrapper,
272
293
  Spinner,
273
294
  TableContainer,
295
+ PageContainer,
296
+ TableTitle,
274
297
  },
275
298
  props: {
276
299
  fullWidth: {
@@ -281,6 +304,10 @@ export default {
281
304
  required: false,
282
305
  default: false,
283
306
  },
307
+ titleText: {
308
+ required: false,
309
+ default: null,
310
+ },
284
311
  },
285
312
  }
286
313
  </script>