@eturnity/eturnity_reusable_components 7.30.3-EPDM-10647.0 → 7.30.3-EPDM-10576.2
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 +184 -0
- package/.prettierrc +8 -6
- package/package.json +9 -21
- package/src/App.vue +79 -78
- package/src/assets/theme.js +3 -3
- package/src/components/addNewButton/AddNewButton.stories.js +2 -2
- package/src/components/addNewButton/index.vue +48 -51
- package/src/components/banner/actionBanner/index.vue +54 -55
- package/src/components/banner/banner/banner.stories.js +5 -5
- package/src/components/banner/banner/index.vue +159 -159
- package/src/components/banner/infoBanner/index.vue +41 -53
- package/src/components/buttons/buttonIcon/index.vue +125 -122
- package/src/components/buttons/closeButton/CloseButton.stories.js +3 -3
- package/src/components/buttons/closeButton/index.vue +49 -49
- package/src/components/buttons/mainButton/index.vue +108 -108
- package/src/components/card/index.vue +70 -70
- package/src/components/collapsableInfoText/index.vue +96 -94
- package/src/components/deleteIcon/DeleteIcon.stories.js +4 -4
- package/src/components/deleteIcon/index.vue +54 -54
- package/src/components/draggableInputHandle/index.vue +37 -37
- package/src/components/dropdown/Dropdown.stories.js +9 -10
- package/src/components/dropdown/index.vue +106 -106
- package/src/components/errorMessage/index.vue +52 -52
- package/src/components/filter/filterSettings.vue +486 -452
- package/src/components/filter/index.vue +135 -135
- package/src/components/filter/parentDropdown.vue +73 -73
- package/src/components/icon/Icons.stories.js +7 -7
- package/src/components/icon/iconCollection.vue +53 -53
- package/src/components/icon/index.vue +122 -122
- package/src/components/iconWrapper/index.vue +156 -156
- package/src/components/infoCard/index.vue +30 -32
- package/src/components/infoText/index.vue +142 -137
- package/src/components/inputs/checkbox/Checkbox.stories.js +8 -8
- package/src/components/inputs/checkbox/index.vue +190 -180
- package/src/components/inputs/inputNumber/InputNumber.stories.js +41 -41
- package/src/components/inputs/inputNumber/index.vue +696 -701
- package/src/components/inputs/inputNumberQuestion/index.vue +185 -182
- package/src/components/inputs/inputText/InputText.stories.js +22 -22
- package/src/components/inputs/inputText/index.vue +337 -336
- package/src/components/inputs/radioButton/RadioButton.stories.js +16 -16
- package/src/components/inputs/radioButton/index.vue +222 -219
- package/src/components/inputs/searchInput/SearchInput.stories.js +8 -8
- package/src/components/inputs/searchInput/index.vue +127 -126
- package/src/components/inputs/select/index.vue +792 -792
- package/src/components/inputs/select/option/index.vue +124 -124
- package/src/components/inputs/select/select.stories.js +31 -32
- package/src/components/inputs/slider/index.vue +99 -99
- package/src/components/inputs/switchField/index.vue +220 -222
- package/src/components/inputs/textAreaInput/TextAreaInput.stories.js +57 -57
- package/src/components/inputs/textAreaInput/index.vue +171 -173
- package/src/components/inputs/toggle/Toggle.stories.js +14 -14
- package/src/components/inputs/toggle/index.vue +214 -217
- package/src/components/label/index.vue +82 -82
- package/src/components/markerItem/index.vue +68 -66
- package/src/components/modals/actionModal/index.vue +54 -54
- package/src/components/modals/infoModal/index.vue +39 -36
- package/src/components/modals/modal/index.vue +134 -134
- package/src/components/modals/modal/modal.stories.js +5 -5
- package/src/components/navigationTabs/index.vue +96 -94
- package/src/components/pageSubtitle/index.vue +55 -49
- package/src/components/pageTitle/index.vue +56 -56
- package/src/components/pagination/index.vue +92 -89
- package/src/components/progressBar/index.vue +107 -107
- package/src/components/projectMarker/index.vue +246 -244
- package/src/components/rangeSlider/Slider.vue +491 -465
- package/src/components/rangeSlider/index.vue +410 -410
- package/src/components/rangeSlider/utils/dom.js +5 -5
- package/src/components/selectedOptions/index.vue +119 -119
- package/src/components/sideMenu/index.vue +199 -199
- package/src/components/spinner/index.vue +57 -57
- package/src/components/tableDropdown/index.vue +520 -520
- package/src/components/tables/mainTable/index.vue +417 -400
- package/src/components/tables/viewTable/index.vue +171 -171
- package/src/components/threeDots/index.vue +340 -334
- package/src/components/videoThumbnail/index.vue +86 -86
- package/src/components/videoThumbnail/videoThumbnail.stories.js +14 -16
- package/src/helpers/numberConverter.js +2 -2
- package/src/helpers/translateLang.js +9 -9
- package/src/mixins/inputValidations.js +5 -5
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -17
- package/src/utils/index.js +0 -12
@@ -1,150 +1,151 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
<
|
2
|
+
<Container :input-width="inputWidth">
|
3
|
+
<InputWrapper :icon-color="iconColor" :icon-position="iconPosition">
|
4
4
|
<SearchIconSvg class="search-icn" />
|
5
|
-
<
|
5
|
+
<InputContainer
|
6
6
|
ref="inputElement"
|
7
|
+
:data-id="dataId"
|
8
|
+
:disabled="disabled"
|
9
|
+
:has-focus="hasFocus"
|
10
|
+
:input-width="inputWidth"
|
11
|
+
:is-disabled="disabled"
|
12
|
+
:is-filter="isFilter"
|
7
13
|
:placeholder="placeholder"
|
8
14
|
:value="value"
|
9
15
|
@input="onChangeHandler($event)"
|
10
|
-
:disabled="disabled"
|
11
|
-
:isDisabled="disabled"
|
12
|
-
:inputWidth="inputWidth"
|
13
|
-
:isFilter="isFilter"
|
14
|
-
:hasFocus="hasFocus"
|
15
|
-
:data-id="dataId"
|
16
16
|
/>
|
17
|
-
</
|
18
|
-
</
|
17
|
+
</InputWrapper>
|
18
|
+
</Container>
|
19
19
|
</template>
|
20
20
|
|
21
21
|
<script>
|
22
|
-
// import SearchInput from "@eturnity/eturnity_reusable_components/src/components/inputs/searchInput"
|
23
|
-
// To use:
|
24
|
-
// <search-input
|
25
|
-
// placeholder="Company name"
|
26
|
-
// :value="companyName"
|
27
|
-
// :disabled="true"
|
28
|
-
// inputWidth="250px"
|
29
|
-
// @on-change="function($event)"
|
30
|
-
// :isFilter="true" // to set the height at 30px
|
31
|
-
// data-id="test-data-id"
|
32
|
-
// iconPosition="left"
|
33
|
-
// iconColor="grey2"
|
34
|
-
// />
|
35
|
-
import styled from 'vue3-styled-components'
|
36
|
-
import SearchIconSvg from '../../../assets/icons/search_icon_black.svg'
|
37
|
-
|
38
|
-
const inputAttrs = {
|
39
|
-
isDisabled: Boolean,
|
40
|
-
inputWidth: String,
|
41
|
-
isFilter: Boolean
|
42
|
-
}
|
43
|
-
const Container = styled('div', inputAttrs)`
|
44
|
-
width: ${(props) => (props.inputWidth ? props.inputWidth : '100%')};
|
45
|
-
position: relative;
|
46
|
-
`
|
22
|
+
// import SearchInput from "@eturnity/eturnity_reusable_components/src/components/inputs/searchInput"
|
23
|
+
// To use:
|
24
|
+
// <search-input
|
25
|
+
// placeholder="Company name"
|
26
|
+
// :value="companyName"
|
27
|
+
// :disabled="true"
|
28
|
+
// inputWidth="250px"
|
29
|
+
// @on-change="function($event)"
|
30
|
+
// :isFilter="true" // to set the height at 30px
|
31
|
+
// data-id="test-data-id"
|
32
|
+
// iconPosition="left"
|
33
|
+
// iconColor="grey2"
|
34
|
+
// />
|
35
|
+
import styled from 'vue3-styled-components'
|
36
|
+
import SearchIconSvg from '../../../assets/icons/search_icon_black.svg'
|
47
37
|
|
48
|
-
const
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
border-radius: 4px;
|
53
|
-
font-size: 13px;
|
54
|
-
color: ${(props) => props.theme.colors.black};
|
55
|
-
width: ${(props) => (props.inputWidth ? props.inputWidth : '100%')};
|
56
|
-
box-sizing: border-box;
|
57
|
-
cursor: ${(props) => (props.isDisabled ? 'not-allowed' : 'auto')};
|
58
|
-
background: ${(props) => props.theme.colors.white} !important;
|
59
|
-
&::placeholder {
|
60
|
-
color: ${(props) => props.theme.colors.darkGray};
|
38
|
+
const inputAttrs = {
|
39
|
+
isDisabled: Boolean,
|
40
|
+
inputWidth: String,
|
41
|
+
isFilter: Boolean,
|
61
42
|
}
|
43
|
+
const Container = styled('div', inputAttrs)`
|
44
|
+
width: ${(props) => (props.inputWidth ? props.inputWidth : '100%')};
|
45
|
+
position: relative;
|
46
|
+
`
|
62
47
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
48
|
+
const InputContainer = styled('input', inputAttrs)`
|
49
|
+
border: 1px solid ${(props) => props.theme.colors.grey4};
|
50
|
+
padding: ${(props) =>
|
51
|
+
props.isFilter ? '7px 30px 7px 10px' : '11px 30px 11px 10px'};
|
52
|
+
border-radius: 4px;
|
53
|
+
font-size: 13px;
|
54
|
+
color: ${(props) => props.theme.colors.black};
|
55
|
+
width: ${(props) => (props.inputWidth ? props.inputWidth : '100%')};
|
56
|
+
box-sizing: border-box;
|
57
|
+
cursor: ${(props) => (props.isDisabled ? 'not-allowed' : 'auto')};
|
58
|
+
background: ${(props) => props.theme.colors.white} !important;
|
59
|
+
&::placeholder {
|
60
|
+
color: ${(props) => props.theme.colors.darkGray};
|
61
|
+
}
|
67
62
|
|
68
|
-
|
69
|
-
|
63
|
+
&:focus {
|
64
|
+
outline: none;
|
65
|
+
}
|
66
|
+
`
|
70
67
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
top: 50%;
|
75
|
-
${(props) => (props.iconPosition === 'right' ? 'right' : 'left')}: 10px;
|
68
|
+
const wrapperAttrs = { iconColor: String, iconPosition: String }
|
69
|
+
const InputWrapper = styled('div', wrapperAttrs)`
|
70
|
+
position: relative;
|
76
71
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
72
|
+
svg {
|
73
|
+
position: absolute;
|
74
|
+
transform: translateY(-50%);
|
75
|
+
top: 50%;
|
76
|
+
${(props) => (props.iconPosition === 'right' ? 'right' : 'left')}: 10px;
|
77
|
+
|
78
|
+
path {
|
79
|
+
fill: ${(props) =>
|
80
|
+
props.theme.colors[props.iconColor]
|
81
|
+
? props.theme.colors[props.iconColor]
|
82
|
+
: props.iconColor};
|
83
|
+
}
|
82
84
|
}
|
83
|
-
|
84
|
-
`
|
85
|
+
`
|
85
86
|
|
86
|
-
export default {
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
},
|
94
|
-
props: {
|
95
|
-
value: {
|
96
|
-
required: true
|
97
|
-
},
|
98
|
-
disabled: {
|
99
|
-
required: false,
|
100
|
-
default: false
|
101
|
-
},
|
102
|
-
placeholder: {
|
103
|
-
required: false,
|
104
|
-
default: ''
|
105
|
-
},
|
106
|
-
inputWidth: {
|
107
|
-
required: false,
|
108
|
-
default: null
|
109
|
-
},
|
110
|
-
isFilter: {
|
111
|
-
required: false,
|
112
|
-
default: false
|
87
|
+
export default {
|
88
|
+
name: 'SearchInput',
|
89
|
+
components: {
|
90
|
+
InputContainer,
|
91
|
+
InputWrapper,
|
92
|
+
Container,
|
93
|
+
SearchIconSvg,
|
113
94
|
},
|
114
|
-
|
115
|
-
|
116
|
-
|
95
|
+
props: {
|
96
|
+
value: {
|
97
|
+
required: true,
|
98
|
+
},
|
99
|
+
disabled: {
|
100
|
+
required: false,
|
101
|
+
default: false,
|
102
|
+
},
|
103
|
+
placeholder: {
|
104
|
+
required: false,
|
105
|
+
default: '',
|
106
|
+
},
|
107
|
+
inputWidth: {
|
108
|
+
required: false,
|
109
|
+
default: null,
|
110
|
+
},
|
111
|
+
isFilter: {
|
112
|
+
required: false,
|
113
|
+
default: false,
|
114
|
+
},
|
115
|
+
hasFocus: {
|
116
|
+
required: false,
|
117
|
+
default: false,
|
118
|
+
},
|
119
|
+
dataId: {
|
120
|
+
required: false,
|
121
|
+
default: '',
|
122
|
+
},
|
123
|
+
iconPosition: {
|
124
|
+
type: String,
|
125
|
+
default: 'right',
|
126
|
+
},
|
127
|
+
iconColor: {
|
128
|
+
type: String,
|
129
|
+
default: 'black',
|
130
|
+
},
|
117
131
|
},
|
118
|
-
|
119
|
-
|
120
|
-
|
132
|
+
emits: ['on-change'],
|
133
|
+
watch: {
|
134
|
+
hasFocus(newVal) {
|
135
|
+
if (newVal) {
|
136
|
+
this.focusInputElement()
|
137
|
+
}
|
138
|
+
},
|
121
139
|
},
|
122
|
-
|
123
|
-
|
124
|
-
|
140
|
+
methods: {
|
141
|
+
onChangeHandler(event) {
|
142
|
+
this.$emit('on-change', event.target.value)
|
143
|
+
},
|
144
|
+
focusInputElement() {
|
145
|
+
this.$nextTick(() => {
|
146
|
+
this.$refs.inputElement.$el.focus()
|
147
|
+
})
|
148
|
+
},
|
125
149
|
},
|
126
|
-
iconColor: {
|
127
|
-
type: String,
|
128
|
-
default: 'black'
|
129
|
-
}
|
130
|
-
},
|
131
|
-
emits: ['on-change'],
|
132
|
-
methods: {
|
133
|
-
onChangeHandler(event) {
|
134
|
-
this.$emit('on-change', event.target.value)
|
135
|
-
},
|
136
|
-
focusInputElement() {
|
137
|
-
this.$nextTick(() => {
|
138
|
-
this.$refs.inputElement.$el.focus()
|
139
|
-
})
|
140
|
-
}
|
141
|
-
},
|
142
|
-
watch: {
|
143
|
-
hasFocus(newVal) {
|
144
|
-
if (newVal) {
|
145
|
-
this.focusInputElement()
|
146
|
-
}
|
147
|
-
}
|
148
150
|
}
|
149
|
-
}
|
150
151
|
</script>
|