@eturnity/eturnity_reusable_components 6.48.2 → 6.50.1-EPDM-9012.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/package.json +2 -2
- package/src/assets/svgIcons/erase.svg +1 -1
- package/src/assets/svgIcons/integrations.svg +3 -0
- package/src/components/buttons/mainButton/index.vue +35 -23
- package/src/components/icon/iconCollection.vue +5 -5
- package/src/components/icon/index.vue +2 -1
- package/src/components/iconWrapper/index.vue +79 -57
- package/src/components/infoText/index.vue +1 -12
- package/src/components/inputs/checkbox/index.vue +5 -0
- package/src/components/inputs/inputNumber/InputNumber.stories.js +1 -3
- package/src/components/inputs/inputNumber/index.vue +24 -18
- package/src/components/inputs/inputText/InputText.stories.js +0 -1
- package/src/components/inputs/inputText/index.vue +0 -6
- package/src/components/inputs/radioButton/index.vue +66 -49
- package/src/components/inputs/select/index.vue +5 -6
- package/src/components/inputs/select/option/index.vue +45 -6
- package/src/components/inputs/switchField/index.vue +0 -9
- package/src/components/inputs/textAreaInput/TextAreaInput.stories.js +0 -8
- package/src/components/inputs/textAreaInput/index.vue +0 -6
- package/src/components/inputs/toggle/index.vue +82 -82
- package/src/components/modals/modal/index.vue +1 -1
- package/src/components/pageSubtitle/index.vue +1 -8
- package/src/components/pageTitle/index.vue +28 -4
- package/src/components/sideMenu/index.vue +2 -0
- package/src/components/tableDropdown/index.vue +2 -0
- package/src/helpers/numberConverter.js +5 -12
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@eturnity/eturnity_reusable_components",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.50.1-EPDM-9012.0",
|
4
4
|
"private": false,
|
5
5
|
"scripts": {
|
6
6
|
"dev": "vue-cli-service serve",
|
@@ -63,4 +63,4 @@
|
|
63
63
|
"author": "Aaron Enser",
|
64
64
|
"license": "ISC",
|
65
65
|
"homepage": "https://bitbucket.org/eturnitydevs/eturnity_reusable_components#readme"
|
66
|
-
}
|
66
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<svg fill="none" height="16" viewbox="12 12 16 16" width="16" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<circle cx="20" cy="20"
|
2
|
+
<circle cx="20" cy="20" r="7"></circle>
|
3
3
|
<path d="M24.9592 15.0408C22.2382 12.3197 17.7618 12.3197 15.0408 15.0408C12.3197 17.7618 12.3197 22.2382 15.0408 24.9592C17.7618 27.6803 22.2382 27.6803 24.9592 24.9592C27.6803 22.2382 27.6803 17.8495 24.9592 15.0408ZM23.6426 22.5016L22.4138 23.7304L19.9561 21.2727L17.4984 23.7304L16.2696 22.5016L18.7273 20.0439L16.2696 17.5862L17.4984 16.3574L19.9561 18.815L22.4138 16.3574L23.6426 17.5862L21.185 20.0439L23.6426 22.5016Z" fill="#FF5656"></path>
|
4
4
|
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 0H11H16C17.1046 0 18 0.895431 18 2V12H12C10.8954 12 10 11.1046 10 10V4L0 4V2C0 0.89543 0.895431 0 2 0H10ZM0 6H6C7.10457 6 8 6.89543 8 8V14H18V16C18 17.1046 17.1046 18 16 18H8H7H2C0.895431 18 0 17.1046 0 16V6Z" fill="white"/>
|
3
|
+
</svg>
|
@@ -6,6 +6,7 @@
|
|
6
6
|
:isDisabled="isDisabled"
|
7
7
|
:customColor="customColor"
|
8
8
|
:noWrap="noWrap"
|
9
|
+
:data-id="dataId"
|
9
10
|
>
|
10
11
|
{{ text }}
|
11
12
|
</button-container>
|
@@ -21,38 +22,45 @@
|
|
21
22
|
// type="secondary" // primary, secondary, cancel
|
22
23
|
// :isDisabled="true"
|
23
24
|
// :minWidth="minWidth"
|
25
|
+
// :dataId="test_data_id"
|
24
26
|
// />
|
25
27
|
|
26
|
-
import styled from
|
28
|
+
import styled from 'vue-styled-components'
|
27
29
|
|
28
30
|
const PageContainer = styled.div``
|
29
31
|
|
30
|
-
const ButtonAttrs = {
|
31
|
-
|
32
|
+
const ButtonAttrs = {
|
33
|
+
type: String,
|
34
|
+
isDisabled: Boolean,
|
35
|
+
minWidth: String,
|
36
|
+
customColor: String,
|
37
|
+
noWrap: Boolean
|
38
|
+
}
|
39
|
+
const ButtonContainer = styled('div', ButtonAttrs)`
|
32
40
|
padding: 7px 15px;
|
33
41
|
font-size: 13px;
|
34
42
|
color: ${(props) => props.theme.colors.white};
|
35
43
|
background-color: ${(props) =>
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
44
|
+
props.isDisabled
|
45
|
+
? props.theme.colors.disabled
|
46
|
+
: props.customColor
|
47
|
+
? props.customColor
|
48
|
+
: props.type === 'primary'
|
49
|
+
? props.theme.colors.black
|
50
|
+
: props.type === 'secondary'
|
51
|
+
? props.theme.colors.grey3
|
52
|
+
: props.type === 'cancel'
|
53
|
+
? props.theme.colors.red
|
54
|
+
: props.theme.colors.black};
|
47
55
|
border-radius: 4px;
|
48
56
|
text-align: center;
|
49
|
-
cursor: ${(props) => (props.isDisabled ?
|
57
|
+
cursor: ${(props) => (props.isDisabled ? 'not-allowed' : 'pointer')};
|
50
58
|
user-select: none;
|
51
59
|
${(props) => (props.minWidth ? `min-width: ${props.minWidth};` : '')};
|
52
60
|
${(props) => (props.noWrap ? `white-space: nowrap;` : '')};
|
53
61
|
|
54
62
|
&:hover {
|
55
|
-
opacity: ${(props) => (props.isDisabled ?
|
63
|
+
opacity: ${(props) => (props.isDisabled ? '1' : '0.8')};
|
56
64
|
}
|
57
65
|
|
58
66
|
&:active {
|
@@ -61,26 +69,26 @@ const ButtonContainer = styled("div", ButtonAttrs)`
|
|
61
69
|
`
|
62
70
|
|
63
71
|
export default {
|
64
|
-
name:
|
72
|
+
name: 'main-button',
|
65
73
|
components: {
|
66
74
|
PageContainer,
|
67
|
-
ButtonContainer
|
75
|
+
ButtonContainer
|
68
76
|
},
|
69
77
|
props: {
|
70
78
|
type: {
|
71
79
|
required: false,
|
72
|
-
default:
|
80
|
+
default: 'primary'
|
73
81
|
},
|
74
82
|
isDisabled: {
|
75
83
|
required: false,
|
76
|
-
default: false
|
84
|
+
default: false
|
77
85
|
},
|
78
86
|
text: {
|
79
|
-
required: true
|
87
|
+
required: true
|
80
88
|
},
|
81
89
|
customColor: {
|
82
90
|
required: false,
|
83
|
-
default: null
|
91
|
+
default: null
|
84
92
|
},
|
85
93
|
noWrap: {
|
86
94
|
required: false,
|
@@ -89,7 +97,11 @@ export default {
|
|
89
97
|
minWidth: {
|
90
98
|
required: false,
|
91
99
|
default: null
|
100
|
+
},
|
101
|
+
dataId: {
|
102
|
+
type: String,
|
103
|
+
default: ''
|
92
104
|
}
|
93
|
-
}
|
105
|
+
}
|
94
106
|
}
|
95
107
|
</script>
|
@@ -20,13 +20,13 @@ import styled from 'vue-styled-components'
|
|
20
20
|
|
21
21
|
const Wrapper = styled.div`
|
22
22
|
display: block;
|
23
|
-
text-align:center;
|
24
|
-
justify-items:center
|
25
|
-
width:100%;
|
26
|
-
background-color
|
23
|
+
text-align: center;
|
24
|
+
justify-items: center;
|
25
|
+
width: 100%;
|
26
|
+
background-color: #ccc;
|
27
27
|
`
|
28
28
|
const IconWrapper = styled.div`
|
29
|
-
display:inline-flex
|
29
|
+
display: inline-flex;
|
30
30
|
flex-direction: column;
|
31
31
|
background-color: white;
|
32
32
|
border-radius: 6px;
|
@@ -30,7 +30,7 @@ import styled from 'vue-styled-components'
|
|
30
30
|
const wrapperAttrs = { isDisabled: Boolean, size: String, cursor: String }
|
31
31
|
const Wrapper = styled('div', wrapperAttrs)`
|
32
32
|
display: flex;
|
33
|
-
position:relative
|
33
|
+
position: relative;
|
34
34
|
align-content: center;
|
35
35
|
justify-content: center;
|
36
36
|
width: ${(props) => props.size};
|
@@ -58,6 +58,7 @@ const strikedLine = styled('div', strikedAttrs)`
|
|
58
58
|
`
|
59
59
|
const IconImageProps = { color: String, hoveredColor: String, size: String }
|
60
60
|
const IconImage = styled('div', IconImageProps)`
|
61
|
+
width: 100%;
|
61
62
|
svg {
|
62
63
|
width: 100%;
|
63
64
|
height: 100%;
|
@@ -8,63 +8,85 @@
|
|
8
8
|
:color="iconColor"
|
9
9
|
:hoveredBackgroundColor="hoveredBackgroundColor"
|
10
10
|
:isHovered="isHovered"
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
11
|
+
>
|
12
|
+
<icon
|
13
|
+
:disabled="disabled"
|
14
|
+
:size="iconSize"
|
15
|
+
:name="name"
|
16
|
+
:color="iconColor"
|
17
|
+
:hoveredColor="hoveredIconColor"
|
18
|
+
:isStriked="isStriked"
|
19
|
+
/>
|
20
|
+
|
21
|
+
<caret v-if="hasCaret">
|
22
|
+
<iconWrapper
|
23
|
+
:disabled="disabled"
|
24
|
+
size="10px"
|
25
|
+
name="arrow_down"
|
26
|
+
:iconColor="iconColor"
|
27
|
+
:hoveredBackgroundColor="hoveredIconColor"
|
28
|
+
borderRadius="1px"
|
29
|
+
/>
|
30
|
+
</caret>
|
31
|
+
</Wrapper>
|
32
|
+
</template>
|
33
|
+
|
34
|
+
<script>
|
35
|
+
// import Icon from "@eturnity/eturnity_reusable_components/src/components/icon"
|
36
|
+
// How to use:
|
37
|
+
//<icon
|
38
|
+
// name="House" //required. a svg file named [name].svg should be present in /assets/svgIcons
|
39
|
+
// color="red"
|
40
|
+
// hoveredColor="blue"
|
41
|
+
// size="60px" by default, this is 30px
|
42
|
+
// />
|
43
|
+
|
44
|
+
import styled from 'vue-styled-components'
|
45
|
+
import icon from '../icon'
|
46
|
+
const wrapperAttrs = {
|
47
|
+
color: String,
|
48
|
+
isHovered: Boolean,
|
49
|
+
borderRadius: String,
|
50
|
+
disabled: Boolean,
|
51
|
+
size: String,
|
52
|
+
backgroundColor: String,
|
53
|
+
hoveredBackgroundColor: String,
|
54
|
+
hasBorder: Boolean
|
55
|
+
}
|
56
|
+
const Wrapper = styled('div', wrapperAttrs)`
|
57
|
+
position: relative;
|
58
|
+
display: inline-flex;
|
59
|
+
width: ${(props) => props.size};
|
60
|
+
height: ${(props) => props.size};
|
61
|
+
border: ${(props) =>
|
62
|
+
props.hasBorder
|
63
|
+
? 'solid 1px ' + props.theme.colors[props.color] || props.color
|
64
|
+
: ''};
|
65
|
+
justify-content: center;
|
66
|
+
align-items: center;
|
67
|
+
cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};
|
68
|
+
background-color: ${(props) =>
|
69
|
+
props.theme.colors[props.backgroundColor] || props.backgroundColor};
|
70
|
+
border-radius: ${(props) => props.borderRadius};
|
71
|
+
${(props) =>
|
72
|
+
props.isHovered
|
73
|
+
? 'background-color:' +
|
74
|
+
props.theme.colors[props.hoveredBackgroundColor] ||
|
75
|
+
props.hoveredBackgroundColor
|
76
|
+
: ''};
|
77
|
+
&:hover {
|
78
|
+
background-color: ${(props) =>
|
79
|
+
props.theme.colors[props.hoveredBackgroundColor] ||
|
80
|
+
props.hoveredBackgroundColor};
|
81
|
+
}
|
82
|
+
`
|
83
|
+
const caret = styled.div`
|
84
|
+
position: absolute;
|
85
|
+
bottom: 3px;
|
86
|
+
right: 2px;
|
87
|
+
height: 10px;
|
88
|
+
`
|
89
|
+
|
68
90
|
export default {
|
69
91
|
name: 'iconWrapper',
|
70
92
|
components: {
|
@@ -10,7 +10,6 @@
|
|
10
10
|
</icon-img>
|
11
11
|
<text-overlay
|
12
12
|
v-if="showInfo"
|
13
|
-
:borderColor="borderColor"
|
14
13
|
:width="width"
|
15
14
|
:halfComputedTextInfoWidth="halfComputedTextInfoWidth"
|
16
15
|
:alignArrow="alignArrow"
|
@@ -27,7 +26,6 @@
|
|
27
26
|
//To use:
|
28
27
|
// <info-text
|
29
28
|
// text="Veritatis et quasi architecto beatae vitae"
|
30
|
-
// borderColor="#ccc"
|
31
29
|
// size="20"
|
32
30
|
// alignArrow="right" // which side the arrow should be on
|
33
31
|
// />
|
@@ -37,7 +35,6 @@ import icon from '../icon'
|
|
37
35
|
|
38
36
|
const textAttrs = {
|
39
37
|
iconSize: String,
|
40
|
-
borderColor: String,
|
41
38
|
alignArrow: String,
|
42
39
|
width: String,
|
43
40
|
halfComputedTextInfoWidth: Number
|
@@ -111,10 +108,6 @@ export default {
|
|
111
108
|
text: {
|
112
109
|
required: false
|
113
110
|
},
|
114
|
-
borderColor: {
|
115
|
-
required: false,
|
116
|
-
default: null
|
117
|
-
},
|
118
111
|
size: {
|
119
112
|
required: false,
|
120
113
|
default: '14px'
|
@@ -156,11 +149,7 @@ export default {
|
|
156
149
|
},
|
157
150
|
computed: {
|
158
151
|
iconColor() {
|
159
|
-
return
|
160
|
-
? this.borderColor
|
161
|
-
? this.borderColor
|
162
|
-
: theme.colors.secondary
|
163
|
-
: theme.colors.mediumGray
|
152
|
+
return theme.colors.mediumGray
|
164
153
|
},
|
165
154
|
halfComputedTextInfoWidth() {
|
166
155
|
return parseInt(this.width) / 2
|
@@ -11,6 +11,7 @@
|
|
11
11
|
<input-checkbox
|
12
12
|
type="checkbox"
|
13
13
|
:checked="isChecked"
|
14
|
+
:data-id="dataId"
|
14
15
|
@change="onChangeHandler(!isChecked)"
|
15
16
|
/>
|
16
17
|
<div>
|
@@ -168,6 +169,10 @@ export default {
|
|
168
169
|
isDisabled: {
|
169
170
|
required: false,
|
170
171
|
default: false
|
172
|
+
},
|
173
|
+
dataId: {
|
174
|
+
type: String,
|
175
|
+
default: ''
|
171
176
|
}
|
172
177
|
},
|
173
178
|
methods: {
|
@@ -32,7 +32,6 @@ const Template = (args, { argTypes }) => ({
|
|
32
32
|
// fontSize="13px"
|
33
33
|
// labelText="Number of Modules"
|
34
34
|
// labelInfoText="Here is some information for you..."
|
35
|
-
// labelInfoAlign="left"
|
36
35
|
// />
|
37
36
|
})
|
38
37
|
|
@@ -129,8 +128,7 @@ WithLabelInfo.args = {
|
|
129
128
|
textAlign: "left",
|
130
129
|
showLinearUnitName: false,
|
131
130
|
labelText: "Number Input",
|
132
|
-
labelInfoText: "Here is some information for you..."
|
133
|
-
labelInfoAlign: "right",
|
131
|
+
labelInfoText: "Here is some information for you..."
|
134
132
|
}
|
135
133
|
|
136
134
|
export const LargerFont = Template.bind({})
|
@@ -16,13 +16,10 @@
|
|
16
16
|
<label-text :labelFontColor="labelFontColor" :data-id="labelDataId">
|
17
17
|
{{ labelText }}
|
18
18
|
</label-text>
|
19
|
-
|
19
|
+
|
20
20
|
<info-text
|
21
21
|
v-if="labelInfoText"
|
22
22
|
:text="labelInfoText"
|
23
|
-
borderColor="#ccc"
|
24
|
-
size="14px"
|
25
|
-
:alignArrow="labelInfoAlign"
|
26
23
|
/>
|
27
24
|
</label-wrapper>
|
28
25
|
<input-wrapper>
|
@@ -84,6 +81,7 @@
|
|
84
81
|
// inputWidth="150px" //by default, this is 100%
|
85
82
|
// minWidth="100px"
|
86
83
|
// :numberPrecision="3"
|
84
|
+
// minDecimals="2"
|
87
85
|
// unitName="pc"
|
88
86
|
// :value="inputValue" //required -- String
|
89
87
|
// @input-change="onInputChange($event)" //required
|
@@ -96,7 +94,6 @@
|
|
96
94
|
// fontSize="13px"
|
97
95
|
// labelText="Number of Modules"
|
98
96
|
// labelInfoText="Here is some information for you..."
|
99
|
-
// labelInfoAlign="left"
|
100
97
|
// :minNumber="0"
|
101
98
|
// fontColor="blue"
|
102
99
|
// />
|
@@ -358,6 +355,10 @@ export default {
|
|
358
355
|
required: false,
|
359
356
|
default: 0
|
360
357
|
},
|
358
|
+
minDecimals: {
|
359
|
+
required: false,
|
360
|
+
default: 0
|
361
|
+
},
|
361
362
|
unitName: {
|
362
363
|
required: false,
|
363
364
|
default: ''
|
@@ -401,10 +402,6 @@ export default {
|
|
401
402
|
required: false,
|
402
403
|
default: null
|
403
404
|
},
|
404
|
-
labelInfoAlign: {
|
405
|
-
required: false,
|
406
|
-
default: 'left'
|
407
|
-
},
|
408
405
|
defaultNumber: {
|
409
406
|
required: false,
|
410
407
|
default: null
|
@@ -498,7 +495,8 @@ export default {
|
|
498
495
|
} else {
|
499
496
|
let num = stringToNumber({
|
500
497
|
value: item,
|
501
|
-
numberPrecision: false
|
498
|
+
numberPrecision: false,
|
499
|
+
minDecimals: this.minDecimals
|
502
500
|
})
|
503
501
|
return num
|
504
502
|
}
|
@@ -509,7 +507,8 @@ export default {
|
|
509
507
|
if (typeof evaluated === 'string') {
|
510
508
|
evaluated = stringToNumber({
|
511
509
|
value: evaluated,
|
512
|
-
numberPrecision: this.numberPrecision
|
510
|
+
numberPrecision: this.numberPrecision,
|
511
|
+
minDecimals: this.minDecimals
|
513
512
|
})
|
514
513
|
} else if (typeof evaluated === 'number') {
|
515
514
|
evaluated = evaluated.toFixed(this.numberPrecision)
|
@@ -569,7 +568,8 @@ export default {
|
|
569
568
|
: this.defaultNumber
|
570
569
|
? this.defaultNumber
|
571
570
|
: this.minNumber,
|
572
|
-
numberPrecision: this.numberPrecision
|
571
|
+
numberPrecision: this.numberPrecision,
|
572
|
+
minDecimals: this.minDecimals
|
573
573
|
})
|
574
574
|
}
|
575
575
|
let adjustedMinValue =
|
@@ -614,7 +614,8 @@ export default {
|
|
614
614
|
let input = this.numberToStringEnabled
|
615
615
|
? numberToString({
|
616
616
|
value: adjustedMinValue,
|
617
|
-
numberPrecision: this.numberPrecision
|
617
|
+
numberPrecision: this.numberPrecision,
|
618
|
+
minDecimals: this.minDecimals
|
618
619
|
})
|
619
620
|
: adjustedMinValue
|
620
621
|
let unit = this.showLinearUnitName ? '' : this.unitName
|
@@ -626,7 +627,8 @@ export default {
|
|
626
627
|
return this.numberToStringEnabled
|
627
628
|
? numberToString({
|
628
629
|
value: adjustedMinValue,
|
629
|
-
numberPrecision: this.numberPrecision
|
630
|
+
numberPrecision: this.numberPrecision,
|
631
|
+
minDecimals: this.minDecimals
|
630
632
|
})
|
631
633
|
: adjustedMinValue
|
632
634
|
}
|
@@ -645,7 +647,8 @@ export default {
|
|
645
647
|
|
646
648
|
this.textInput = numberToString({
|
647
649
|
value: value && value.length ? value : this.minNumber,
|
648
|
-
numberPrecision: this.numberPrecision
|
650
|
+
numberPrecision: this.numberPrecision,
|
651
|
+
minDecimals: this.minDecimals
|
649
652
|
})
|
650
653
|
//this.value=value
|
651
654
|
},
|
@@ -660,17 +663,20 @@ export default {
|
|
660
663
|
if (this.value) {
|
661
664
|
this.textInput = numberToString({
|
662
665
|
value: this.value,
|
663
|
-
numberPrecision: this.numberPrecision
|
666
|
+
numberPrecision: this.numberPrecision,
|
667
|
+
minDecimals: this.minDecimals
|
664
668
|
})
|
665
669
|
} else if (this.defaultNumber !== null) {
|
666
670
|
this.textInput = numberToString({
|
667
671
|
value: this.defaultNumber,
|
668
|
-
numberPrecision: this.numberPrecision
|
672
|
+
numberPrecision: this.numberPrecision,
|
673
|
+
minDecimals: this.minDecimals
|
669
674
|
})
|
670
675
|
} else if (this.minNumber !== null) {
|
671
676
|
this.textInput = numberToString({
|
672
677
|
value: this.minNumber,
|
673
|
-
numberPrecision: this.numberPrecision
|
678
|
+
numberPrecision: this.numberPrecision,
|
679
|
+
minDecimals: this.minDecimals
|
674
680
|
})
|
675
681
|
}
|
676
682
|
},
|
@@ -21,7 +21,6 @@ const Template = (args, { argTypes }) => ({
|
|
21
21
|
// @input-change="onInputChange({ value: $event, type: 'companyName' })"
|
22
22
|
// :isError="checkErrors()"
|
23
23
|
// :errorMessage="This is my error message"
|
24
|
-
// infoTextAlign="right" // left by default
|
25
24
|
// infoTextMessage="My info message"
|
26
25
|
// label="Question 5"
|
27
26
|
// alignItems="horizontal" // horizontal, vertical
|
@@ -17,9 +17,7 @@
|
|
17
17
|
<info-text
|
18
18
|
v-if="infoTextMessage"
|
19
19
|
:text="infoTextMessage"
|
20
|
-
borderColor="#ccc"
|
21
20
|
:size="fontSize ? fontSize : '16px'"
|
22
|
-
:alignArrow="infoTextAlign"
|
23
21
|
/>
|
24
22
|
</label-wrapper>
|
25
23
|
<input-error-wrapper>
|
@@ -206,7 +204,6 @@ export default {
|
|
206
204
|
// @input-blur="onInputBlur($event)"
|
207
205
|
// :isError="checkErrors()"
|
208
206
|
// :errorMessage="This is my error message"
|
209
|
-
// infoTextAlign="right" // left by default
|
210
207
|
// infoTextMessage="My info message"
|
211
208
|
// label="Question 5"
|
212
209
|
// alignItems="horizontal" // horizontal, vertical
|
@@ -270,9 +267,6 @@ export default {
|
|
270
267
|
infoTextMessage: {
|
271
268
|
required: false
|
272
269
|
},
|
273
|
-
infoTextAlign: {
|
274
|
-
required: false
|
275
|
-
},
|
276
270
|
label: {
|
277
271
|
required: false
|
278
272
|
},
|