@eturnity/eturnity_reusable_components 7.24.3-EPDM-10576.1 → 7.24.3-EPDM-11320.0
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/.eslintrc.js +125 -0
- package/package.json +6 -20
- package/src/App.vue +75 -70
- package/src/components/addNewButton/index.vue +24 -27
- package/src/components/banner/actionBanner/index.vue +32 -30
- package/src/components/banner/banner/index.vue +88 -80
- package/src/components/banner/infoBanner/index.vue +36 -44
- package/src/components/buttons/buttonIcon/index.vue +83 -78
- package/src/components/buttons/closeButton/index.vue +26 -26
- package/src/components/buttons/mainButton/index.vue +80 -76
- package/src/components/card/index.vue +56 -52
- package/src/components/collapsableInfoText/index.vue +81 -76
- package/src/components/deleteIcon/index.vue +31 -28
- package/src/components/draggableInputHandle/index.vue +20 -17
- package/src/components/dropdown/Dropdown.stories.js +8 -8
- package/src/components/dropdown/index.vue +75 -72
- package/src/components/errorMessage/index.vue +23 -23
- package/src/components/filter/filterSettings.vue +349 -333
- package/src/components/filter/index.vue +130 -130
- package/src/components/filter/parentDropdown.vue +43 -40
- package/src/components/icon/Icons.stories.js +4 -4
- package/src/components/icon/iconCache.js +1 -1
- package/src/components/icon/iconCollection.vue +40 -37
- package/src/components/icon/index.vue +72 -65
- package/src/components/iconWrapper/index.vue +122 -118
- package/src/components/infoCard/index.vue +20 -17
- package/src/components/infoText/index.vue +88 -82
- package/src/components/inputs/checkbox/index.vue +91 -94
- package/src/components/inputs/inputNumber/index.vue +508 -488
- package/src/components/inputs/inputNumberQuestion/index.vue +127 -124
- package/src/components/inputs/inputText/index.vue +265 -252
- package/src/components/inputs/radioButton/index.vue +135 -120
- package/src/components/inputs/searchInput/index.vue +84 -81
- package/src/components/inputs/select/index.vue +644 -631
- package/src/components/inputs/select/option/index.vue +91 -91
- package/src/components/inputs/select/select.stories.js +7 -7
- package/src/components/inputs/slider/index.vue +46 -46
- package/src/components/inputs/switchField/index.vue +159 -152
- package/src/components/inputs/textAreaInput/index.vue +120 -113
- package/src/components/inputs/toggle/index.vue +137 -127
- package/src/components/label/index.vue +64 -61
- package/src/components/markerItem/index.vue +40 -40
- package/src/components/modals/actionModal/index.vue +32 -29
- package/src/components/modals/infoModal/index.vue +34 -27
- package/src/components/modals/modal/index.vue +88 -80
- package/src/components/navigationTabs/index.vue +50 -47
- package/src/components/pageSubtitle/index.vue +33 -29
- package/src/components/pageTitle/index.vue +47 -39
- package/src/components/pagination/index.vue +64 -62
- package/src/components/progressBar/index.vue +70 -67
- package/src/components/projectMarker/index.vue +172 -163
- package/src/components/rangeSlider/Slider.vue +449 -449
- package/src/components/rangeSlider/index.vue +282 -270
- package/src/components/rangeSlider/utils/dom.js +3 -3
- package/src/components/selectedOptions/index.vue +51 -51
- package/src/components/sideMenu/index.vue +117 -109
- package/src/components/spinner/index.vue +37 -34
- package/src/components/tableDropdown/index.vue +343 -326
- package/src/components/tables/mainTable/index.vue +109 -106
- package/src/components/tables/viewTable/index.vue +105 -92
- package/src/components/threeDots/index.vue +174 -171
- package/src/components/videoThumbnail/index.vue +67 -59
- package/src/components/videoThumbnail/videoThumbnail.stories.js +6 -6
- package/.prettierrc +0 -7
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -17
@@ -1,57 +1,64 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
<
|
4
|
-
:
|
2
|
+
<Container>
|
3
|
+
<FlexWrapper
|
4
|
+
:align-items="alignItems"
|
5
5
|
:disabled="disabled"
|
6
|
-
:alignItems="alignItems"
|
7
6
|
:label="label"
|
7
|
+
:size="size"
|
8
8
|
>
|
9
|
-
<
|
9
|
+
<LabelContainer
|
10
10
|
v-if="label && labelAlign === 'left'"
|
11
|
-
:
|
12
|
-
:
|
13
|
-
:
|
14
|
-
:
|
11
|
+
:color-mode="colorMode"
|
12
|
+
:has-info-message="!!infoTextMessage"
|
13
|
+
:primary-color="primaryColor"
|
14
|
+
:secondary-color="secondaryColor"
|
15
15
|
>
|
16
|
-
<
|
17
|
-
|
16
|
+
<LabelText :size="size">
|
17
|
+
{{ label }}
|
18
|
+
</LabelText>
|
19
|
+
<InfoText
|
18
20
|
v-if="infoTextMessage"
|
19
21
|
:text="infoTextMessage"
|
20
22
|
/>
|
21
|
-
</
|
23
|
+
</LabelContainer>
|
22
24
|
|
23
|
-
<
|
24
|
-
:
|
25
|
+
<SwitchWrapper
|
26
|
+
:background-color="backgroundColor"
|
25
27
|
:disabled="disabled"
|
26
|
-
:
|
28
|
+
:size="size"
|
27
29
|
>
|
28
|
-
<
|
30
|
+
<SwitchOption
|
29
31
|
v-for="(item, index) in options"
|
30
32
|
:key="index"
|
31
|
-
|
32
|
-
:isActive="selectedValue == item.value"
|
33
|
-
:colorMode="colorMode"
|
34
|
-
:primaryColor="primaryColor"
|
35
|
-
:secondaryColor="secondaryColor"
|
36
|
-
:inactiveColor="inactiveColor"
|
33
|
+
:color-mode="colorMode"
|
37
34
|
:data-id="item.hasOwnProperty('dataId') ? item.dataId : ''"
|
35
|
+
:inactive-color="inactiveColor"
|
36
|
+
:is-active="selectedValue == item.value"
|
37
|
+
:primary-color="primaryColor"
|
38
|
+
:secondary-color="secondaryColor"
|
39
|
+
@click="selectItem(item.value)"
|
38
40
|
>
|
39
41
|
{{ item.content }}
|
40
|
-
</
|
41
|
-
</
|
42
|
-
<
|
42
|
+
</SwitchOption>
|
43
|
+
</SwitchWrapper>
|
44
|
+
<LabelContainer
|
43
45
|
v-if="label && labelAlign === 'right'"
|
44
|
-
:
|
46
|
+
:has-info-message="!!infoTextMessage"
|
45
47
|
>
|
46
|
-
<
|
47
|
-
|
48
|
-
|
48
|
+
<LabelText
|
49
|
+
:font-color="fontColor"
|
50
|
+
:size="size"
|
51
|
+
>
|
52
|
+
{{ label }}
|
53
|
+
</LabelText>
|
54
|
+
<InfoText
|
49
55
|
v-if="infoTextMessage"
|
50
56
|
:text="infoTextMessage"
|
57
|
+
@click.stop
|
51
58
|
/>
|
52
|
-
</
|
53
|
-
</
|
54
|
-
</
|
59
|
+
</LabelContainer>
|
60
|
+
</FlexWrapper>
|
61
|
+
</Container>
|
55
62
|
</template>
|
56
63
|
|
57
64
|
<script>
|
@@ -70,43 +77,43 @@
|
|
70
77
|
// :disabled="false"
|
71
78
|
// />
|
72
79
|
|
73
|
-
import styled from 'vue3-styled-components'
|
74
|
-
import InfoText from '../../infoText'
|
75
|
-
import theme from '../../../assets/theme'
|
76
|
-
const Container = styled.div``
|
80
|
+
import styled from 'vue3-styled-components'
|
81
|
+
import InfoText from '../../infoText'
|
82
|
+
import theme from '../../../assets/theme'
|
83
|
+
const Container = styled.div``
|
77
84
|
|
78
|
-
const flexAttrs = {
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
}
|
84
|
-
const FlexWrapper = styled('div', flexAttrs)`
|
85
|
+
const flexAttrs = {
|
86
|
+
label: String,
|
87
|
+
size: String,
|
88
|
+
disabled: Boolean,
|
89
|
+
alignItems: String
|
90
|
+
}
|
91
|
+
const FlexWrapper = styled('div', flexAttrs)`
|
85
92
|
display: grid;
|
86
93
|
grid-template-columns: auto 1fr;
|
87
94
|
grid-gap: 10px;
|
88
95
|
align-items: center;
|
89
96
|
cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};
|
90
97
|
grid-template-columns: ${(props) =>
|
91
|
-
|
98
|
+
props.alignItems === 'vertical' || !props.label ? '1fr' : 'auto 1fr'};
|
92
99
|
`
|
93
100
|
|
94
|
-
const toggleAttrs = {
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
}
|
103
|
-
const LabelText = styled('div', toggleAttrs)`
|
101
|
+
const toggleAttrs = {
|
102
|
+
size: String,
|
103
|
+
fontColor: String,
|
104
|
+
disabled: Boolean,
|
105
|
+
backgroundColor: String,
|
106
|
+
isChecked: Boolean,
|
107
|
+
secondaryColor: String,
|
108
|
+
primaryColor: String,
|
109
|
+
}
|
110
|
+
const LabelText = styled('div', toggleAttrs)`
|
104
111
|
color: ${(props) => props.primaryColor };
|
105
112
|
font-size: 13px;
|
106
113
|
font-weight: 700;
|
107
114
|
`
|
108
115
|
|
109
|
-
const SwitchWrapper = styled('span', toggleAttrs)`
|
116
|
+
const SwitchWrapper = styled('span', toggleAttrs)`
|
110
117
|
display: flex;
|
111
118
|
position: relative;
|
112
119
|
cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};
|
@@ -115,19 +122,19 @@ const SwitchWrapper = styled('span', toggleAttrs)`
|
|
115
122
|
? '24px'
|
116
123
|
: props.size === 'small'
|
117
124
|
? '16px'
|
118
|
-
|
125
|
+
: '24px'};
|
119
126
|
`
|
120
|
-
const optionAttrs = {
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
}
|
126
|
-
const
|
127
|
+
const optionAttrs = {
|
128
|
+
isActive: Boolean,
|
129
|
+
primaryColor: String,
|
130
|
+
secondaryColor: String,
|
131
|
+
inactiveColor: String
|
132
|
+
}
|
133
|
+
const SwitchOption = styled('div', optionAttrs)`
|
127
134
|
color: ${(props) =>
|
128
|
-
|
135
|
+
props.isActive ? props.primaryColor : props.inactiveColor};
|
129
136
|
background-color: ${(props) =>
|
130
|
-
|
137
|
+
props.isActive ? props.secondaryColor : 'transparent'};
|
131
138
|
border: 1px solid
|
132
139
|
${(props) => (props.isActive ? props.secondaryColor : props.inactiveColor)};
|
133
140
|
display: flex;
|
@@ -152,105 +159,105 @@ const switchOption = styled('div', optionAttrs)`
|
|
152
159
|
}
|
153
160
|
`
|
154
161
|
|
155
|
-
const labelAttrs = { hasInfoMessage: Boolean }
|
156
|
-
const LabelContainer = styled('div', labelAttrs)`
|
162
|
+
const labelAttrs = { hasInfoMessage: Boolean }
|
163
|
+
const LabelContainer = styled('div', labelAttrs)`
|
157
164
|
display: inline-grid;
|
158
165
|
grid-template-columns: ${(props) =>
|
159
|
-
|
166
|
+
props.hasInfoMessage ? 'auto 1fr' : 'auto'};
|
160
167
|
grid-gap: 12px;
|
161
168
|
align-items: center;
|
162
169
|
`
|
163
170
|
|
164
|
-
export default {
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
},
|
175
|
-
props: {
|
176
|
-
label: {
|
177
|
-
required: false,
|
178
|
-
default: ''
|
179
|
-
},
|
180
|
-
toggleColor: {
|
181
|
-
required: false
|
182
|
-
},
|
183
|
-
backgroundColor: {
|
184
|
-
required: false
|
171
|
+
export default {
|
172
|
+
name: 'SwitchField',
|
173
|
+
components: {
|
174
|
+
Container,
|
175
|
+
SwitchWrapper,
|
176
|
+
FlexWrapper,
|
177
|
+
LabelText,
|
178
|
+
InfoText,
|
179
|
+
LabelContainer,
|
180
|
+
SwitchOption
|
185
181
|
},
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
182
|
+
props: {
|
183
|
+
label: {
|
184
|
+
required: false,
|
185
|
+
default: ''
|
186
|
+
},
|
187
|
+
toggleColor: {
|
188
|
+
required: false
|
189
|
+
},
|
190
|
+
backgroundColor: {
|
191
|
+
required: false
|
192
|
+
},
|
193
|
+
size: {
|
194
|
+
required: false,
|
195
|
+
default: 'small'
|
196
|
+
},
|
197
|
+
labelAlign: {
|
198
|
+
required: false,
|
199
|
+
default: 'left'
|
200
|
+
},
|
201
|
+
fontColor: {
|
202
|
+
required: false
|
203
|
+
},
|
204
|
+
disabled: {
|
205
|
+
required: false,
|
206
|
+
default: false
|
207
|
+
},
|
208
|
+
infoTextMessage: {
|
209
|
+
required: false
|
210
|
+
},
|
211
|
+
colorMode: {
|
212
|
+
required: false,
|
213
|
+
default: 'light'
|
214
|
+
},
|
215
|
+
alignItems: {
|
216
|
+
required: false,
|
217
|
+
default: 'horizontal'
|
218
|
+
},
|
219
|
+
options: {
|
220
|
+
required: true
|
221
|
+
},
|
222
|
+
value: {
|
223
|
+
required: false,
|
224
|
+
default: null
|
225
|
+
}
|
207
226
|
},
|
208
|
-
|
209
|
-
|
210
|
-
|
227
|
+
data() {
|
228
|
+
return {
|
229
|
+
selectedValue: null,
|
230
|
+
primaryColor: 'white',
|
231
|
+
secondaryColor: 'black',
|
232
|
+
inactiveColor: 'grey6'
|
233
|
+
}
|
211
234
|
},
|
212
|
-
|
213
|
-
|
235
|
+
watch: {
|
236
|
+
value(val) {
|
237
|
+
this.selectedValue = val
|
238
|
+
}
|
214
239
|
},
|
215
|
-
|
216
|
-
|
217
|
-
default: null
|
218
|
-
}
|
219
|
-
},
|
220
|
-
data() {
|
221
|
-
return {
|
222
|
-
selectedValue: null,
|
223
|
-
primaryColor: 'white',
|
224
|
-
secondaryColor: 'black',
|
225
|
-
inactiveColor: 'grey6'
|
226
|
-
}
|
227
|
-
},
|
228
|
-
created() {
|
229
|
-
this.selectedValue = this.value
|
240
|
+
created() {
|
241
|
+
this.selectedValue = this.value
|
230
242
|
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
243
|
+
if (this.colorMode == 'dark') {
|
244
|
+
this.primaryColor = theme.colors.black
|
245
|
+
this.secondaryColor = theme.colors.white
|
246
|
+
this.inactiveColor = theme.colors.grey6
|
247
|
+
} else {
|
248
|
+
this.primaryColor = theme.colors.white
|
249
|
+
this.secondaryColor = theme.colors.black
|
250
|
+
this.inactiveColor = theme.colors.grey6
|
251
|
+
}
|
252
|
+
},
|
253
|
+
methods: {
|
254
|
+
selectItem(value) {
|
255
|
+
if (this.disabled) {
|
256
|
+
return
|
257
|
+
}
|
258
|
+
this.selectedValue = value
|
259
|
+
this.$emit('on-switch-change', this.selectedValue)
|
245
260
|
}
|
246
|
-
this.selectedValue = value
|
247
|
-
this.$emit('on-switch-change', this.selectedValue)
|
248
|
-
}
|
249
|
-
},
|
250
|
-
watch: {
|
251
|
-
value(val) {
|
252
|
-
this.selectedValue = val
|
253
261
|
}
|
254
262
|
}
|
255
|
-
}
|
256
263
|
</script>
|
@@ -1,38 +1,45 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
<
|
4
|
-
:
|
5
|
-
:
|
2
|
+
<Container :input-width="inputWidth">
|
3
|
+
<InputWrapper
|
4
|
+
:align-items="alignItems"
|
5
|
+
:has-label="label && label.length > 0"
|
6
6
|
>
|
7
|
-
<
|
8
|
-
<
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
<LabelWrapper v-if="label">
|
8
|
+
<InputLabel
|
9
|
+
:data-id="labelDataId"
|
10
|
+
:font-size="fontSize"
|
11
|
+
>
|
12
|
+
{{
|
13
|
+
label
|
14
|
+
}}
|
15
|
+
</InputLabel>
|
16
|
+
<InfoText
|
12
17
|
v-if="infoTextMessage"
|
13
|
-
:text="infoTextMessage"
|
14
18
|
size="16px"
|
19
|
+
:text="infoTextMessage"
|
15
20
|
/>
|
16
|
-
</
|
17
|
-
<
|
18
|
-
:inputWidth="inputWidth"
|
19
|
-
:isError="isError"
|
20
|
-
:fontSize="fontSize"
|
21
|
+
</LabelWrapper>
|
22
|
+
<InputContainer
|
21
23
|
:disabled="isDisabled"
|
24
|
+
:font-size="fontSize"
|
25
|
+
:input-width="inputWidth"
|
26
|
+
:is-error="isError"
|
22
27
|
>
|
23
28
|
<textarea
|
29
|
+
:data-id="inputDataId"
|
30
|
+
:disabled="isDisabled"
|
24
31
|
:placeholder="placeholder"
|
32
|
+
:resize="resize"
|
25
33
|
:rows="rowHeight"
|
26
34
|
:value="value"
|
27
|
-
:disabled="isDisabled"
|
28
35
|
@input="onChangeHandler"
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
</
|
36
|
+
></textarea>
|
37
|
+
</InputContainer>
|
38
|
+
</InputWrapper>
|
39
|
+
<ErrorMessage v-if="isError && errorText">
|
40
|
+
{{ errorText }}
|
41
|
+
</ErrorMessage>
|
42
|
+
</Container>
|
36
43
|
</template>
|
37
44
|
|
38
45
|
<script>
|
@@ -51,39 +58,39 @@
|
|
51
58
|
// :isDisabled="true"
|
52
59
|
// fontSize="13px"
|
53
60
|
// />
|
54
|
-
import styled from 'vue3-styled-components'
|
55
|
-
import InfoText from '../../infoText'
|
56
|
-
import ErrorMessage from '../../errorMessage'
|
61
|
+
import styled from 'vue3-styled-components'
|
62
|
+
import InfoText from '../../infoText'
|
63
|
+
import ErrorMessage from '../../errorMessage'
|
57
64
|
|
58
|
-
const containerProps = { inputWidth: String }
|
59
|
-
const Container = styled('div', containerProps)`
|
65
|
+
const containerProps = { inputWidth: String }
|
66
|
+
const Container = styled('div', containerProps)`
|
60
67
|
width: ${(props) => (props.inputWidth ? props.inputWidth : '100%')};
|
61
68
|
position: relative;
|
62
69
|
margin-bottom: 20px;
|
63
70
|
`
|
64
71
|
|
65
|
-
const LabelWrapper = styled.div`
|
72
|
+
const LabelWrapper = styled.div`
|
66
73
|
display: inline-grid;
|
67
74
|
grid-template-columns: auto 1fr;
|
68
75
|
grid-gap: 12px;
|
69
76
|
align-items: center;
|
70
77
|
`
|
71
78
|
|
72
|
-
const inputProps = {
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
}
|
79
|
+
const inputProps = {
|
80
|
+
isError: Boolean,
|
81
|
+
disabled: Boolean,
|
82
|
+
fontSize: String,
|
83
|
+
inputWidth: String
|
84
|
+
}
|
78
85
|
|
79
|
-
const InputContainer = styled('div', inputProps)`
|
86
|
+
const InputContainer = styled('div', inputProps)`
|
80
87
|
textarea {
|
81
88
|
border: ${(props) =>
|
82
89
|
props.isError
|
83
90
|
? `1px solid ${props.theme.colors.red} !important`
|
84
|
-
|
91
|
+
: `1px solid ${props.theme.colors.grey4} !important`};
|
85
92
|
padding: ${(props) =>
|
86
|
-
|
93
|
+
props.hasUnit ? '11px 40px 11px 10px !important' : '15px !important'};
|
87
94
|
border-radius: 4px !important;
|
88
95
|
font-size: ${(props) => `${props.fontSize} !important`};
|
89
96
|
color: ${(props) => `${props.theme.colors.grey1} !important`};
|
@@ -102,8 +109,8 @@ const InputContainer = styled('div', inputProps)`
|
|
102
109
|
}
|
103
110
|
`
|
104
111
|
|
105
|
-
const inputAttrs = { alignItems: String, hasLabel: Boolean }
|
106
|
-
const InputWrapper = styled('div', inputAttrs)`
|
112
|
+
const inputAttrs = { alignItems: String, hasLabel: Boolean }
|
113
|
+
const InputWrapper = styled('div', inputAttrs)`
|
107
114
|
position: relative;
|
108
115
|
display: grid;
|
109
116
|
align-items: center;
|
@@ -113,88 +120,88 @@ const InputWrapper = styled('div', inputAttrs)`
|
|
113
120
|
? '1fr'
|
114
121
|
: props.alignItems === 'vertical'
|
115
122
|
? '1fr'
|
116
|
-
|
123
|
+
: 'auto 1fr'};
|
117
124
|
`
|
118
125
|
|
119
|
-
const labelAttrs = { fontSize: String }
|
120
|
-
const InputLabel = styled('div', labelAttrs)`
|
126
|
+
const labelAttrs = { fontSize: String }
|
127
|
+
const InputLabel = styled('div', labelAttrs)`
|
121
128
|
font-weight: bold;
|
122
129
|
font-size: ${(props) => (props.fontSize ? props.fontSize : '16px')};
|
123
130
|
`
|
124
131
|
|
125
|
-
export default {
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
},
|
136
|
-
props: {
|
137
|
-
placeholder: {
|
138
|
-
required: false,
|
139
|
-
default: ''
|
140
|
-
},
|
141
|
-
isError: {
|
142
|
-
required: false,
|
143
|
-
default: false
|
144
|
-
},
|
145
|
-
rowHeight: {
|
146
|
-
required: false,
|
147
|
-
default: '2'
|
132
|
+
export default {
|
133
|
+
name: 'TextAreaInput',
|
134
|
+
components: {
|
135
|
+
Container,
|
136
|
+
InputContainer,
|
137
|
+
InputWrapper,
|
138
|
+
ErrorMessage,
|
139
|
+
InfoText,
|
140
|
+
LabelWrapper,
|
141
|
+
InputLabel
|
148
142
|
},
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
143
|
+
props: {
|
144
|
+
placeholder: {
|
145
|
+
required: false,
|
146
|
+
default: ''
|
147
|
+
},
|
148
|
+
isError: {
|
149
|
+
required: false,
|
150
|
+
default: false
|
151
|
+
},
|
152
|
+
rowHeight: {
|
153
|
+
required: false,
|
154
|
+
default: '2'
|
155
|
+
},
|
156
|
+
value: {
|
157
|
+
required: true,
|
158
|
+
default: null
|
159
|
+
},
|
160
|
+
errorText: {
|
161
|
+
required: false
|
162
|
+
},
|
163
|
+
isDisabled: {
|
164
|
+
required: false,
|
165
|
+
default: false
|
166
|
+
},
|
167
|
+
alignItems: {
|
168
|
+
required: false,
|
169
|
+
default: 'horizontal'
|
170
|
+
},
|
171
|
+
infoTextMessage: {
|
172
|
+
required: false
|
173
|
+
},
|
174
|
+
label: {
|
175
|
+
required: false
|
176
|
+
},
|
177
|
+
fontSize: {
|
178
|
+
required: false,
|
179
|
+
default: '13px'
|
180
|
+
},
|
181
|
+
inputWidth: {
|
182
|
+
required: false,
|
183
|
+
default: null
|
184
|
+
},
|
185
|
+
resize: {
|
186
|
+
required: false,
|
187
|
+
default: 'none'
|
188
|
+
},
|
189
|
+
labelDataId: {
|
190
|
+
required: false,
|
191
|
+
default: ''
|
192
|
+
},
|
193
|
+
inputDataId: {
|
194
|
+
required: false,
|
195
|
+
default: ''
|
196
|
+
}
|
185
197
|
},
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
onChangeHandler($event) {
|
193
|
-
if (this.isDisabled) {
|
194
|
-
return
|
198
|
+
methods: {
|
199
|
+
onChangeHandler($event) {
|
200
|
+
if (this.isDisabled) {
|
201
|
+
return
|
202
|
+
}
|
203
|
+
this.$emit('input-change', $event.target.value)
|
195
204
|
}
|
196
|
-
this.$emit('input-change', $event.target.value)
|
197
205
|
}
|
198
206
|
}
|
199
|
-
}
|
200
207
|
</script>
|