@eturnity/eturnity_reusable_components 7.24.3-EPDM-11320.0 → 7.24.3-EPDM-11143.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.
Files changed (67) hide show
  1. package/.prettierrc +7 -0
  2. package/package.json +20 -6
  3. package/public/favicon.ico +0 -0
  4. package/public/index.html +17 -0
  5. package/src/App.vue +70 -75
  6. package/src/assets/svgIcons/copy.svg +10 -0
  7. package/src/components/addNewButton/index.vue +27 -24
  8. package/src/components/banner/actionBanner/index.vue +30 -32
  9. package/src/components/banner/banner/index.vue +80 -88
  10. package/src/components/banner/infoBanner/index.vue +44 -36
  11. package/src/components/buttons/buttonIcon/index.vue +78 -83
  12. package/src/components/buttons/closeButton/index.vue +26 -26
  13. package/src/components/buttons/mainButton/index.vue +76 -80
  14. package/src/components/card/index.vue +52 -56
  15. package/src/components/collapsableInfoText/index.vue +76 -81
  16. package/src/components/deleteIcon/index.vue +28 -31
  17. package/src/components/draggableInputHandle/index.vue +17 -20
  18. package/src/components/dropdown/Dropdown.stories.js +8 -8
  19. package/src/components/dropdown/index.vue +72 -75
  20. package/src/components/errorMessage/index.vue +23 -23
  21. package/src/components/filter/filterSettings.vue +329 -349
  22. package/src/components/filter/index.vue +130 -130
  23. package/src/components/filter/parentDropdown.vue +40 -43
  24. package/src/components/icon/Icons.stories.js +4 -4
  25. package/src/components/icon/iconCache.js +1 -1
  26. package/src/components/icon/iconCollection.vue +37 -40
  27. package/src/components/icon/index.vue +65 -72
  28. package/src/components/iconWrapper/index.vue +118 -122
  29. package/src/components/infoCard/index.vue +17 -20
  30. package/src/components/infoText/index.vue +82 -88
  31. package/src/components/inputs/checkbox/index.vue +94 -91
  32. package/src/components/inputs/inputNumber/index.vue +488 -508
  33. package/src/components/inputs/inputNumberQuestion/index.vue +124 -127
  34. package/src/components/inputs/inputText/index.vue +252 -265
  35. package/src/components/inputs/radioButton/index.vue +120 -135
  36. package/src/components/inputs/searchInput/index.vue +81 -84
  37. package/src/components/inputs/select/index.vue +631 -644
  38. package/src/components/inputs/select/option/index.vue +91 -91
  39. package/src/components/inputs/select/select.stories.js +7 -7
  40. package/src/components/inputs/slider/index.vue +46 -46
  41. package/src/components/inputs/switchField/index.vue +152 -159
  42. package/src/components/inputs/textAreaInput/index.vue +113 -120
  43. package/src/components/inputs/toggle/index.vue +127 -137
  44. package/src/components/label/index.vue +61 -64
  45. package/src/components/markerItem/index.vue +40 -40
  46. package/src/components/modals/actionModal/index.vue +29 -32
  47. package/src/components/modals/infoModal/index.vue +27 -34
  48. package/src/components/modals/modal/index.vue +80 -88
  49. package/src/components/navigationTabs/index.vue +47 -50
  50. package/src/components/pageSubtitle/index.vue +29 -33
  51. package/src/components/pageTitle/index.vue +39 -47
  52. package/src/components/pagination/index.vue +62 -64
  53. package/src/components/progressBar/index.vue +67 -70
  54. package/src/components/projectMarker/index.vue +163 -172
  55. package/src/components/rangeSlider/Slider.vue +449 -449
  56. package/src/components/rangeSlider/index.vue +270 -282
  57. package/src/components/rangeSlider/utils/dom.js +3 -3
  58. package/src/components/selectedOptions/index.vue +51 -51
  59. package/src/components/sideMenu/index.vue +109 -117
  60. package/src/components/spinner/index.vue +34 -37
  61. package/src/components/tableDropdown/index.vue +326 -343
  62. package/src/components/tables/mainTable/index.vue +106 -109
  63. package/src/components/tables/viewTable/index.vue +92 -105
  64. package/src/components/threeDots/index.vue +171 -174
  65. package/src/components/videoThumbnail/index.vue +59 -67
  66. package/src/components/videoThumbnail/videoThumbnail.stories.js +6 -6
  67. package/.eslintrc.js +0 -125
@@ -1,22 +1,15 @@
1
1
  <template>
2
- <Wrapper
3
- :cursor="cursor"
4
- :disabled="disabled"
5
- :size="size"
6
- >
7
- <IconImage
8
- :animation="animation"
9
- :background-color="backgroundColor"
2
+ <wrapper :disabled="disabled" :size="size" :cursor="cursor">
3
+ <icon-image
10
4
  :color="color"
5
+ :background-color="backgroundColor"
11
6
  :hovered-color="hoveredColor"
7
+ :animation="animation"
12
8
  >
13
- <i v-html="icon.html"></i>
14
- </IconImage>
15
- <StrikedLine
16
- v-if="isStriked"
17
- :color="color"
18
- />
19
- </Wrapper>
9
+ <i v-html="icon.html" />
10
+ </icon-image>
11
+ <striked-line v-if="isStriked" :color="color"></striked-line>
12
+ </wrapper>
20
13
  </template>
21
14
 
22
15
  <script setup>
@@ -31,51 +24,51 @@
31
24
  // isStriked = "true"
32
25
  // />
33
26
 
34
- import { onMounted, reactive, watch } from 'vue'
35
- import styled from 'vue3-styled-components'
36
- import { fetchIcon } from './iconCache'
27
+ import { onMounted, reactive, watch } from 'vue'
28
+ import styled from 'vue3-styled-components'
29
+ import { fetchIcon } from './iconCache'
37
30
 
38
- const props = defineProps({
39
- disabled: {
40
- required: false,
41
- default: false
42
- },
43
- name: {
44
- required: true
45
- },
46
- color: {
47
- required: false
48
- },
49
- hoveredColor: {
50
- required: false
51
- },
52
- size: {
53
- required: false,
54
- default: '30px'
55
- },
56
- cursor: {
57
- required: false,
58
- default: null
59
- },
60
- isStriked: {
61
- required: false,
62
- default: false
63
- },
64
- backgroundColor: {
65
- required: false,
66
- default: null
67
- },
68
- animation: {
69
- required: false,
70
- default: 'none'
71
- }
72
- })
31
+ const props = defineProps({
32
+ disabled: {
33
+ required: false,
34
+ default: false
35
+ },
36
+ name: {
37
+ required: true
38
+ },
39
+ color: {
40
+ required: false
41
+ },
42
+ hoveredColor: {
43
+ required: false
44
+ },
45
+ size: {
46
+ required: false,
47
+ default: '30px'
48
+ },
49
+ cursor: {
50
+ required: false,
51
+ default: null
52
+ },
53
+ isStriked: {
54
+ required: false,
55
+ default: false
56
+ },
57
+ backgroundColor: {
58
+ required: false,
59
+ default: null
60
+ },
61
+ animation: {
62
+ required: false,
63
+ default: 'none'
64
+ }
65
+ })
73
66
 
74
- const Wrapper = styled('div', {
75
- size: String,
76
- disabled: Boolean,
77
- cursor: String
78
- })`
67
+ const Wrapper = styled('div', {
68
+ size: String,
69
+ disabled: Boolean,
70
+ cursor: String
71
+ })`
79
72
  display: flex;
80
73
  position: relative;
81
74
  align-content: center;
@@ -88,7 +81,7 @@
88
81
  line-height: 0;
89
82
  `
90
83
 
91
- const StrikedLine = styled('div', { color: String })`
84
+ const StrikedLine = styled('div', { color: String })`
92
85
  display: flex;
93
86
  position: absolute;
94
87
  bottom: 0;
@@ -103,19 +96,19 @@
103
96
  transform-origin: 0% 100%;
104
97
  transform: rotate(-45deg);
105
98
  `
106
- const IconImage = styled('div', {
107
- color: String,
108
- backgroundColor: String,
109
- hoveredColor: String,
110
- animation: String
111
- })`
99
+ const IconImage = styled('div', {
100
+ color: String,
101
+ backgroundColor: String,
102
+ hoveredColor: String,
103
+ animation: String
104
+ })`
112
105
  animation: ${(props) => props.animation};
113
106
  width: 100%;
114
107
  svg {
115
108
  width: 100%;
116
109
  height: 100%;
117
110
  background-color: ${(props) =>
118
- props.backgroundColor ? props.backgroundColor : 'transparent'};
111
+ props.backgroundColor ? props.backgroundColor : 'transparent'};
119
112
  padding: ${(props) => (props.backgroundColor ? '3px' : '0')};
120
113
  }
121
114
  svg path {
@@ -134,13 +127,13 @@
134
127
  }
135
128
  `
136
129
 
137
- const icon = reactive({ html: '' })
130
+ const icon = reactive({ html: '' })
138
131
 
139
- const loadSvg = async() => {
140
- icon.html = await fetchIcon(props.name.toLowerCase())
141
- }
132
+ const loadSvg = async () => {
133
+ icon.html = await fetchIcon(props.name.toLowerCase())
134
+ }
142
135
 
143
- onMounted(() => loadSvg())
136
+ onMounted(() => loadSvg())
144
137
 
145
- watch(() => props.name, loadSvg)
138
+ watch(() => props.name, loadSvg)
146
139
  </script>
@@ -1,43 +1,39 @@
1
1
  <template>
2
2
  <Wrapper
3
- :background-color="backgroundColor"
4
- :border-radius="borderRadius"
5
- :color="iconColor"
6
- :data-id="dataId"
7
3
  :disabled="disabled"
8
- :has-border="hasBorder"
9
- :hovered-background-color="hoveredBackgroundColor"
10
- :is-hovered="isHovered"
11
- :no-cursor="noCursor"
12
4
  :size="size"
5
+ :backgroundColor="backgroundColor"
6
+ :borderRadius="borderRadius"
7
+ :hasBorder="hasBorder"
8
+ :color="iconColor"
9
+ :hoveredBackgroundColor="hoveredBackgroundColor"
10
+ :isHovered="isHovered"
11
+ :data-id="dataId"
12
+ :noCursor="noCursor"
13
13
  >
14
- <Icon
15
- :animation="isLoading ? 'fade 3s infinite' : 'none'"
16
- :color="iconColor"
14
+ <icon
17
15
  :disabled="disabled"
18
- :hovered-color="hoveredIconColor"
19
- :is-striked="isStriked"
20
- :name="name"
21
16
  :size="iconSize"
17
+ :name="name"
18
+ :color="iconColor"
19
+ :hoveredColor="hoveredIconColor"
20
+ :isStriked="isStriked"
21
+ :animation="isLoading ? 'fade 3s infinite' : 'none'"
22
22
  />
23
23
 
24
- <CaretIcon v-if="hasCaret">
25
- <IconWrapper
26
- border-radius="1px"
24
+ <caret v-if="hasCaret">
25
+ <iconWrapper
27
26
  :disabled="disabled"
28
- :hovered-background-color="hoveredIconColor"
29
- :icon-color="iconColor"
30
- name="arrow_down"
31
27
  size="10px"
28
+ name="arrow_down"
29
+ :iconColor="iconColor"
30
+ :hoveredBackgroundColor="hoveredIconColor"
31
+ borderRadius="1px"
32
32
  />
33
- </CaretIcon>
34
- <LockContainer v-if="hasLock">
35
- <RCIcon
36
- color="yellow"
37
- name="lock"
38
- size="9px"
39
- />
40
- </LockContainer>
33
+ </caret>
34
+ <lockContainer v-if="hasLock">
35
+ <icon size="9px" name="lock" color="yellow" />
36
+ </lockContainer>
41
37
  </Wrapper>
42
38
  </template>
43
39
 
@@ -51,26 +47,26 @@
51
47
  // size="60px" by default, this is 30px
52
48
  // />
53
49
 
54
- import styled from 'vue3-styled-components'
55
- import RCIcon from '../icon'
50
+ import styled from 'vue3-styled-components'
51
+ import icon from '../icon'
56
52
 
57
- const wrapperAttrs = {
58
- color: String,
59
- isHovered: Boolean,
60
- borderRadius: String,
61
- disabled: Boolean,
62
- size: String,
63
- backgroundColor: String,
64
- hoveredBackgroundColor: String,
65
- hasBorder: Boolean,
66
- noCursor: Boolean
67
- }
68
- const LockContainer = styled.div`
53
+ const wrapperAttrs = {
54
+ color: String,
55
+ isHovered: Boolean,
56
+ borderRadius: String,
57
+ disabled: Boolean,
58
+ size: String,
59
+ backgroundColor: String,
60
+ hoveredBackgroundColor: String,
61
+ hasBorder: Boolean,
62
+ noCursor: Boolean
63
+ }
64
+ const lockContainer = styled.div`
69
65
  position: absolute;
70
66
  bottom: 6px;
71
67
  right: 6px;
72
68
  `
73
- const Wrapper = styled('div', wrapperAttrs)`
69
+ const Wrapper = styled('div', wrapperAttrs)`
74
70
  position: relative;
75
71
  display: inline-flex;
76
72
  width: ${(props) => props.size};
@@ -78,106 +74,106 @@
78
74
  border: ${(props) =>
79
75
  props.hasBorder
80
76
  ? 'solid 1px ' + props.theme.colors[props.color] || props.color
81
- : ''};
77
+ : ''};
82
78
  justify-content: center;
83
79
  align-items: center;
84
80
  cursor: ${(props) =>
85
- props.noCursor ? 'auto' : props.disabled ? 'not-allowed' : 'pointer'};
81
+ props.noCursor ? 'auto' : props.disabled ? 'not-allowed' : 'pointer'};
86
82
  background-color: ${(props) =>
87
- props.theme.colors[props.backgroundColor] || props.backgroundColor};
83
+ props.theme.colors[props.backgroundColor] || props.backgroundColor};
88
84
  border-radius: ${(props) => props.borderRadius};
89
85
  ${(props) =>
90
86
  props.isHovered
91
87
  ? 'background-color:' +
92
88
  props.theme.colors[props.hoveredBackgroundColor] ||
93
89
  props.hoveredBackgroundColor
94
- : ''};
90
+ : ''};
95
91
  &:hover {
96
92
  background-color: ${(props) =>
97
93
  props.theme.colors[props.hoveredBackgroundColor] ||
98
- props.hoveredBackgroundColor};
94
+ props.hoveredBackgroundColor};
99
95
  }
100
96
  `
101
- const CaretIcon = styled.div`
97
+ const caret = styled.div`
102
98
  position: absolute;
103
99
  bottom: 3px;
104
100
  right: 2px;
105
101
  height: 10px;
106
102
  `
107
103
 
108
- export default {
109
- name: 'IconWrapper',
110
- components: {
111
- Wrapper,
112
- RCIcon,
113
- CaretIcon,
114
- LockContainer
115
- },
116
- props: {
117
- disabled: {
118
- required: false,
119
- default: false
120
- },
121
- name: {
122
- required: true
123
- },
124
- iconColor: {
125
- required: false,
126
- default: 'white'
127
- },
128
- hoveredIconColor: {
129
- required: false
130
- },
131
- backgroundColor: {
132
- required: false
133
- },
134
- hasBorder: {
135
- required: false
136
- },
137
- hoveredBackgroundColor: {
138
- required: false,
139
- default: 'transparentWhite2'
140
- },
141
- size: {
142
- required: false,
143
- default: '32px'
144
- },
145
- iconSize: {
146
- required: false,
147
- default: '18px'
148
- },
149
- hasCaret: {
150
- required: false,
151
- default: false
152
- },
153
- borderRadius: {
154
- required: false,
155
- default: '6px'
156
- },
157
- dataId: {
158
- type: String,
159
- default: ''
160
- },
161
- isHovered: {
162
- required: false,
163
- default: false
164
- },
165
- isStriked: {
166
- required: false,
167
- default: false
168
- },
169
- isLoading: {
170
- required: false,
171
- default: false
172
- },
173
- noCursor: {
174
- required: false,
175
- default: false
176
- },
177
- hasLock: {
178
- required: false,
179
- default: false
180
- }
104
+ export default {
105
+ name: 'iconWrapper',
106
+ components: {
107
+ Wrapper,
108
+ icon,
109
+ caret,
110
+ lockContainer
111
+ },
112
+ props: {
113
+ disabled: {
114
+ required: false,
115
+ default: false
116
+ },
117
+ name: {
118
+ required: true
119
+ },
120
+ iconColor: {
121
+ required: false,
122
+ default: 'white'
123
+ },
124
+ hoveredIconColor: {
125
+ required: false
126
+ },
127
+ backgroundColor: {
128
+ required: false
129
+ },
130
+ hasBorder: {
131
+ required: false
132
+ },
133
+ hoveredBackgroundColor: {
134
+ required: false,
135
+ default: 'transparentWhite2'
136
+ },
137
+ size: {
138
+ required: false,
139
+ default: '32px'
140
+ },
141
+ iconSize: {
142
+ required: false,
143
+ default: '18px'
144
+ },
145
+ hasCaret: {
146
+ required: false,
147
+ default: false
148
+ },
149
+ borderRadius: {
150
+ required: false,
151
+ default: '6px'
152
+ },
153
+ dataId: {
154
+ type: String,
155
+ default: ''
156
+ },
157
+ isHovered: {
158
+ required: false,
159
+ default: false
160
+ },
161
+ isStriked: {
162
+ required: false,
163
+ default: false
164
+ },
165
+ isLoading: {
166
+ required: false,
167
+ default: false
168
+ },
169
+ noCursor: {
170
+ required: false,
171
+ default: false
172
+ },
173
+ hasLock: {
174
+ required: false,
175
+ default: false
181
176
  }
182
177
  }
178
+ }
183
179
  </script>
@@ -1,20 +1,17 @@
1
1
  <template>
2
- <InfoContainer>
3
- <RCIcon
4
- name="info"
5
- size="24px"
6
- />
7
- <TextContainer>
8
- <slot></slot>
9
- </TextContainer>
10
- </InfoContainer>
2
+ <info-container>
3
+ <icon name="info" size="24px" />
4
+ <text-container>
5
+ <slot />
6
+ </text-container>
7
+ </info-container>
11
8
  </template>
12
9
 
13
10
  <script>
14
- import styled from 'vue3-styled-components'
15
- import RCIcon from '../icon'
11
+ import styled from 'vue3-styled-components'
12
+ import Icon from '../icon'
16
13
 
17
- const InfoContainer = styled.div`
14
+ const InfoContainer = styled.div`
18
15
  display: flex;
19
16
  gap: 15px;
20
17
  padding: 20px;
@@ -22,17 +19,17 @@
22
19
  border-radius: 4px;
23
20
  `
24
21
 
25
- const TextContainer = styled.div`
22
+ const TextContainer = styled.div`
26
23
  font-size: 13px;
27
24
  width: 100%;
28
25
  `
29
26
 
30
- export default {
31
- name: 'InfoCard',
32
- components: {
33
- RCIcon,
34
- InfoContainer,
35
- TextContainer
36
- }
27
+ export default {
28
+ name: 'InfoCard',
29
+ components: {
30
+ Icon,
31
+ InfoContainer,
32
+ TextContainer
37
33
  }
34
+ }
38
35
  </script>