@eturnity/eturnity_reusable_components 1.1.56 → 1.1.59
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/README.md
CHANGED
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
/>
|
|
47
47
|
<br />
|
|
48
48
|
<page-subtitle text="My Subtitle" infoText="My info Text" />
|
|
49
|
+
<spinner size="30px" />
|
|
49
50
|
</page-container>
|
|
50
51
|
</ThemeProvider>
|
|
51
52
|
</template>
|
|
@@ -59,6 +60,7 @@ import ThreeDots from "@/components/threeDots"
|
|
|
59
60
|
import Toggle from "@/components/inputs/toggle"
|
|
60
61
|
import InputNumber from "@/components/inputs/inputNumber"
|
|
61
62
|
import PageSubtitle from "@/components/pageSubtitle"
|
|
63
|
+
import Spinner from "@/components/spinner"
|
|
62
64
|
// import TableDropdown from "@/components/tableDropdown"
|
|
63
65
|
|
|
64
66
|
const PageContainer = styled.div`
|
|
@@ -75,6 +77,7 @@ export default {
|
|
|
75
77
|
Toggle,
|
|
76
78
|
InputNumber,
|
|
77
79
|
PageSubtitle,
|
|
80
|
+
Spinner,
|
|
78
81
|
// TableDropdown,
|
|
79
82
|
},
|
|
80
83
|
data() {
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<spinner-container v-if="fullWidth">
|
|
3
3
|
<container>
|
|
4
|
-
<spinner-wrapper
|
|
4
|
+
<spinner-wrapper
|
|
5
|
+
:size="size"
|
|
6
|
+
:src="require('../../assets/icons/black_spinner.svg')"
|
|
7
|
+
/>
|
|
5
8
|
</container>
|
|
6
9
|
</spinner-container>
|
|
7
10
|
<container v-else>
|
|
8
|
-
<spinner-wrapper
|
|
11
|
+
<spinner-wrapper
|
|
12
|
+
:size="size"
|
|
13
|
+
:src="require('../../assets/icons/black_spinner.svg')"
|
|
14
|
+
/>
|
|
9
15
|
</container>
|
|
10
16
|
</template>
|
|
11
17
|
|
|
12
18
|
<script>
|
|
13
19
|
// import Spinner from "@eturnity/eturnity_reusable_components/src/components/spinner"
|
|
20
|
+
// <spinner size="30px" />
|
|
14
21
|
import styled from "vue-styled-components"
|
|
15
22
|
|
|
16
23
|
const SpinnerContainer = styled.div`
|
|
@@ -32,8 +39,9 @@ const Container = styled.div`
|
|
|
32
39
|
justify-items: center;
|
|
33
40
|
`
|
|
34
41
|
|
|
35
|
-
const
|
|
36
|
-
|
|
42
|
+
const spinnerAttrs = { size: String }
|
|
43
|
+
const SpinnerWrapper = styled("img", spinnerAttrs)`
|
|
44
|
+
width: ${(props) => (props.size ? props.size : "60px")};
|
|
37
45
|
`
|
|
38
46
|
|
|
39
47
|
export default {
|
|
@@ -48,6 +56,10 @@ export default {
|
|
|
48
56
|
required: false,
|
|
49
57
|
default: false,
|
|
50
58
|
},
|
|
59
|
+
size: {
|
|
60
|
+
required: false,
|
|
61
|
+
default: null,
|
|
62
|
+
},
|
|
51
63
|
},
|
|
52
64
|
}
|
|
53
65
|
</script>
|
|
@@ -41,9 +41,13 @@
|
|
|
41
41
|
</no-template>
|
|
42
42
|
<input-container
|
|
43
43
|
v-if="item.type === 'input'"
|
|
44
|
-
@click.stop="onInputClick()"
|
|
44
|
+
@click.native.stop="onInputClick()"
|
|
45
45
|
>
|
|
46
|
+
<text-container v-if="customInputDisabled" class="input-placeholder">
|
|
47
|
+
<span> {{ item.value }}</span>
|
|
48
|
+
</text-container>
|
|
46
49
|
<input-text
|
|
50
|
+
v-else
|
|
47
51
|
class="inputField"
|
|
48
52
|
:value="item.value"
|
|
49
53
|
:noBorder="true"
|
|
@@ -181,6 +185,11 @@ const DropdownRow = styled("div", rowAttrs)`
|
|
|
181
185
|
input {
|
|
182
186
|
cursor: ${(props) => (!props.isOpen ? "pointer !important" : "inherit")};
|
|
183
187
|
}
|
|
188
|
+
|
|
189
|
+
.input-placeholder {
|
|
190
|
+
height: 25px;
|
|
191
|
+
padding-left: 12px;
|
|
192
|
+
}
|
|
184
193
|
`
|
|
185
194
|
|
|
186
195
|
const ComponentItem = styled.td`
|