@eturnity/eturnity_reusable_components 1.2.2-EPDM-4371.0 → 1.2.2-EPDM-4371.1
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 +1 -1
- package/src/App.vue +55 -62
- package/src/components/errorMessage/index.vue +5 -36
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -29,13 +29,6 @@
|
|
|
29
29
|
</tbody>
|
|
30
30
|
</main-table>
|
|
31
31
|
<br />
|
|
32
|
-
<input-number :isError="false" errorMessage="Test " />
|
|
33
|
-
<input-number :isError="false" errorMessage="Test " />
|
|
34
|
-
<input-number :isError="false" errorMessage="Test " />
|
|
35
|
-
<input-number :isError="false" errorMessage="Test " />
|
|
36
|
-
<input-number :isError="true" errorMessage="Test " />
|
|
37
|
-
<input-number :isError="true" errorMessage="Test " />
|
|
38
|
-
<input-number :isError="true" errorMessage="Test " />
|
|
39
32
|
<br />
|
|
40
33
|
<toggle
|
|
41
34
|
@on-toggle-change="onInputChange($event)"
|
|
@@ -68,17 +61,17 @@
|
|
|
68
61
|
</template>
|
|
69
62
|
|
|
70
63
|
<script>
|
|
71
|
-
import { ThemeProvider } from
|
|
72
|
-
import theme from
|
|
73
|
-
import styled from
|
|
74
|
-
import MainTable from
|
|
75
|
-
import ThreeDots from
|
|
76
|
-
import Toggle from
|
|
77
|
-
import InputNumber from
|
|
78
|
-
import Checkbox from
|
|
79
|
-
import PageSubtitle from
|
|
80
|
-
import Spinner from
|
|
81
|
-
import ExternalButton from
|
|
64
|
+
import { ThemeProvider } from "vue-styled-components"
|
|
65
|
+
import theme from "./assets/theme"
|
|
66
|
+
import styled from "vue-styled-components"
|
|
67
|
+
import MainTable from "@/components/tables/mainTable"
|
|
68
|
+
import ThreeDots from "@/components/threeDots"
|
|
69
|
+
import Toggle from "@/components/inputs/toggle"
|
|
70
|
+
import InputNumber from "@/components/inputs/inputNumber"
|
|
71
|
+
import Checkbox from "@/components/inputs/checkbox"
|
|
72
|
+
import PageSubtitle from "@/components/pageSubtitle"
|
|
73
|
+
import Spinner from "@/components/spinner"
|
|
74
|
+
import ExternalButton from "@/components/buttons/externalButton"
|
|
82
75
|
// import TableDropdown from "@/components/tableDropdown"
|
|
83
76
|
|
|
84
77
|
const PageContainer = styled.div`
|
|
@@ -86,7 +79,7 @@ const PageContainer = styled.div`
|
|
|
86
79
|
`
|
|
87
80
|
|
|
88
81
|
export default {
|
|
89
|
-
name:
|
|
82
|
+
name: "App",
|
|
90
83
|
components: {
|
|
91
84
|
ThemeProvider,
|
|
92
85
|
PageContainer,
|
|
@@ -97,66 +90,66 @@ export default {
|
|
|
97
90
|
PageSubtitle,
|
|
98
91
|
Spinner,
|
|
99
92
|
Checkbox,
|
|
100
|
-
ExternalButton
|
|
93
|
+
ExternalButton,
|
|
101
94
|
// TableDropdown,
|
|
102
95
|
},
|
|
103
96
|
data() {
|
|
104
97
|
return {
|
|
105
98
|
inputValue: null,
|
|
106
|
-
checkedOption:
|
|
99
|
+
checkedOption: "button_1",
|
|
107
100
|
question: {
|
|
108
101
|
number_format_precision: 4,
|
|
109
102
|
number_min_allowed: 0,
|
|
110
103
|
number_max_allowed: 10,
|
|
111
|
-
unit_short_name:
|
|
104
|
+
unit_short_name: "cm",
|
|
112
105
|
},
|
|
113
106
|
dropdownOpen: false,
|
|
114
107
|
isChecked: false,
|
|
115
108
|
listOptions: [
|
|
116
109
|
{
|
|
117
|
-
name:
|
|
118
|
-
value:
|
|
119
|
-
disabled: true
|
|
110
|
+
name: "Option 1",
|
|
111
|
+
value: "option_1",
|
|
112
|
+
disabled: true,
|
|
120
113
|
},
|
|
121
114
|
{
|
|
122
|
-
name:
|
|
123
|
-
value:
|
|
115
|
+
name: "Option 2",
|
|
116
|
+
value: "option_2",
|
|
124
117
|
},
|
|
125
118
|
{
|
|
126
|
-
name:
|
|
127
|
-
value:
|
|
119
|
+
name: "Option 3",
|
|
120
|
+
value: "option_3",
|
|
128
121
|
},
|
|
129
122
|
{
|
|
130
|
-
name:
|
|
131
|
-
value:
|
|
132
|
-
}
|
|
123
|
+
name: "Option 4",
|
|
124
|
+
value: "option_4",
|
|
125
|
+
},
|
|
133
126
|
],
|
|
134
127
|
itemOptions: [
|
|
135
128
|
{
|
|
136
|
-
display_name:
|
|
137
|
-
company_item_number:
|
|
138
|
-
model:
|
|
139
|
-
id: 1
|
|
129
|
+
display_name: "Test 1",
|
|
130
|
+
company_item_number: "123",
|
|
131
|
+
model: "BTB-2145 Long Text Long Text Long Text Long Text Long Text",
|
|
132
|
+
id: 1,
|
|
140
133
|
},
|
|
141
134
|
{
|
|
142
|
-
display_name:
|
|
143
|
-
company_item_number:
|
|
144
|
-
model:
|
|
145
|
-
id: 2
|
|
135
|
+
display_name: "Test 2",
|
|
136
|
+
company_item_number: "1234",
|
|
137
|
+
model: "BTB-123",
|
|
138
|
+
id: 2,
|
|
146
139
|
},
|
|
147
140
|
{
|
|
148
|
-
display_name:
|
|
149
|
-
company_item_number:
|
|
150
|
-
model:
|
|
151
|
-
id: 3
|
|
141
|
+
display_name: "Test 3",
|
|
142
|
+
company_item_number: "12345",
|
|
143
|
+
model: "BTB-543",
|
|
144
|
+
id: 3,
|
|
152
145
|
},
|
|
153
146
|
{
|
|
154
|
-
display_name:
|
|
155
|
-
company_item_number:
|
|
156
|
-
model:
|
|
157
|
-
id: 4
|
|
158
|
-
}
|
|
159
|
-
]
|
|
147
|
+
display_name: "Test 4",
|
|
148
|
+
company_item_number: "123456",
|
|
149
|
+
model: "BTB-4930",
|
|
150
|
+
id: 4,
|
|
151
|
+
},
|
|
152
|
+
],
|
|
160
153
|
}
|
|
161
154
|
},
|
|
162
155
|
methods: {
|
|
@@ -170,7 +163,7 @@ export default {
|
|
|
170
163
|
return this.dropdownOpen
|
|
171
164
|
},
|
|
172
165
|
onClickButton() {
|
|
173
|
-
console.log(
|
|
166
|
+
console.log("Test")
|
|
174
167
|
},
|
|
175
168
|
toggleDropdownOpen() {
|
|
176
169
|
this.dropdownOpen = !this.dropdownOpen
|
|
@@ -181,21 +174,21 @@ export default {
|
|
|
181
174
|
{
|
|
182
175
|
value: this.getComponentInfo({
|
|
183
176
|
row: this.itemOptions[0],
|
|
184
|
-
value:
|
|
185
|
-
})
|
|
177
|
+
value: "display_name",
|
|
178
|
+
}),
|
|
186
179
|
},
|
|
187
180
|
{
|
|
188
181
|
value: this.getComponentInfo({
|
|
189
182
|
row: this.itemOptions[0],
|
|
190
|
-
value:
|
|
191
|
-
})
|
|
183
|
+
value: "company_item_number",
|
|
184
|
+
}),
|
|
192
185
|
},
|
|
193
186
|
{
|
|
194
187
|
value: this.getComponentInfo({
|
|
195
188
|
row: this.itemOptions[0],
|
|
196
|
-
value:
|
|
197
|
-
})
|
|
198
|
-
}
|
|
189
|
+
value: "model",
|
|
190
|
+
}),
|
|
191
|
+
},
|
|
199
192
|
]
|
|
200
193
|
return items
|
|
201
194
|
},
|
|
@@ -206,11 +199,11 @@ export default {
|
|
|
206
199
|
} else if (row[value]) {
|
|
207
200
|
item = row[value]
|
|
208
201
|
} else {
|
|
209
|
-
item =
|
|
202
|
+
item = "-"
|
|
210
203
|
}
|
|
211
204
|
return item
|
|
212
|
-
}
|
|
213
|
-
}
|
|
205
|
+
},
|
|
206
|
+
},
|
|
214
207
|
}
|
|
215
208
|
</script>
|
|
216
209
|
|
|
@@ -220,4 +213,4 @@ body {
|
|
|
220
213
|
height: 100%;
|
|
221
214
|
margin: 0;
|
|
222
215
|
}
|
|
223
|
-
</style>
|
|
216
|
+
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<component-wrapper>
|
|
3
|
-
<text-overlay
|
|
3
|
+
<text-overlay>
|
|
4
4
|
<slot></slot>
|
|
5
5
|
</text-overlay>
|
|
6
6
|
</component-wrapper>
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
import styled from 'vue-styled-components'
|
|
17
17
|
|
|
18
|
-
const
|
|
19
|
-
const TextOverlay = styled('div', textAttrs)`
|
|
18
|
+
const TextOverlay = styled.div`
|
|
20
19
|
position: absolute;
|
|
21
20
|
top: calc(100% + 13px);
|
|
22
21
|
background: ${(props) => props.theme.colors.red};
|
|
@@ -54,40 +53,10 @@ export default {
|
|
|
54
53
|
TextOverlay,
|
|
55
54
|
ComponentWrapper
|
|
56
55
|
},
|
|
57
|
-
props: {
|
|
58
|
-
|
|
59
|
-
required: true
|
|
60
|
-
},
|
|
61
|
-
size: {
|
|
62
|
-
required: false,
|
|
63
|
-
default: '20'
|
|
64
|
-
},
|
|
65
|
-
alignText: {
|
|
66
|
-
required: false,
|
|
67
|
-
default: 'left' // "left" or "right"
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
methods: {
|
|
71
|
-
toggleShowInfo() {
|
|
72
|
-
this.showInfo = !this.showInfo
|
|
73
|
-
|
|
74
|
-
if (this.showInfo) {
|
|
75
|
-
document.addEventListener('click', this.clickOutside)
|
|
76
|
-
} else {
|
|
77
|
-
document.removeEventListener('click', this.clickOutside)
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
clickOutside(event) {
|
|
81
|
-
if (this.$el.contains(event.target)) {
|
|
82
|
-
return
|
|
83
|
-
}
|
|
84
|
-
this.toggleShowInfo()
|
|
85
|
-
}
|
|
86
|
-
},
|
|
56
|
+
props: {},
|
|
57
|
+
methods: {},
|
|
87
58
|
data() {
|
|
88
|
-
return {
|
|
89
|
-
showInfo: true
|
|
90
|
-
}
|
|
59
|
+
return {}
|
|
91
60
|
}
|
|
92
61
|
}
|
|
93
62
|
</script>
|