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