@eturnity/eturnity_reusable_components 9.19.3 → 9.19.5

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 (51) hide show
  1. package/package.json +4 -1
  2. package/src/DemoChart.vue +16 -16
  3. package/src/assets/svgIcons/3d_house.svg +3 -0
  4. package/src/assets/svgIcons/activities_app.svg +3 -0
  5. package/src/assets/svgIcons/apps_navigation.svg +3 -0
  6. package/src/assets/svgIcons/chevron_down.svg +3 -0
  7. package/src/assets/svgIcons/chevron_up.svg +3 -0
  8. package/src/assets/svgIcons/collapse_sidebar.svg +3 -0
  9. package/src/assets/svgIcons/consumption_profile.svg +3 -0
  10. package/src/assets/svgIcons/cross_filled.svg +3 -0
  11. package/src/assets/svgIcons/data_transfer.svg +2 -2
  12. package/src/assets/svgIcons/eraser.svg +1 -0
  13. package/src/assets/svgIcons/esdec.svg +3 -0
  14. package/src/assets/svgIcons/expand_sidebar.svg +3 -0
  15. package/src/assets/svgIcons/folder_unfilled.svg +3 -0
  16. package/src/assets/svgIcons/freedraw.svg +1 -0
  17. package/src/assets/svgIcons/leads_app.svg +9 -0
  18. package/src/assets/svgIcons/library_app.svg +3 -0
  19. package/src/assets/svgIcons/line.svg +1 -0
  20. package/src/assets/svgIcons/mounting_system.svg +2 -2
  21. package/src/assets/svgIcons/polyline.svg +3 -0
  22. package/src/assets/svgIcons/projects_app.svg +9 -0
  23. package/src/assets/svgIcons/question_mark.svg +2 -2
  24. package/src/assets/svgIcons/recurring_costs.svg +3 -0
  25. package/src/assets/svgIcons/settings.svg +8 -2
  26. package/src/assets/svgIcons/shading_snow.svg +3 -0
  27. package/src/assets/svgIcons/signature.svg +3 -0
  28. package/src/assets/svgIcons/tariff_menu.svg +3 -0
  29. package/src/assets/svgIcons/zev_community_solar.svg +3 -0
  30. package/src/components/banner/actionBanner/index.vue +1 -1
  31. package/src/components/barchart/BottomFields.vue +5 -2
  32. package/src/components/barchart/ChartControls.vue +5 -5
  33. package/src/components/barchart/index.vue +7 -2
  34. package/src/components/buttons/buttonIcon/index.vue +9 -0
  35. package/src/components/buttons/mainButton/index.vue +26 -26
  36. package/src/components/buttons/splitButtons/index.vue +1 -1
  37. package/src/components/dropdown/index.vue +7 -7
  38. package/src/components/errorMessage/index.vue +1 -1
  39. package/src/components/inputs/searchInput/SearchInput.stories.js +1 -1
  40. package/src/components/inputs/searchInput/searchInput.spec.js +1 -1
  41. package/src/components/inputs/select/index.vue +406 -79
  42. package/src/components/inputs/select/option/index.vue +9 -1
  43. package/src/components/modals/cookieConsent/CookieConsent.vue +4 -4
  44. package/src/components/navigationSideMenu/index.vue +1098 -0
  45. package/src/components/pageSubtitle/index.vue +1 -1
  46. package/src/components/projectMarker/ProjectMarker.stories.js +26 -36
  47. package/src/components/projectMarker/index.vue +172 -93
  48. package/src/components/tabsHeader/index.vue +9 -1
  49. package/src/components/videoThumbnail/index.vue +1 -1
  50. package/src/helpers/cookieHelper.js +23 -13
  51. package/src/helpers/dateTimeFormatting.js +0 -1
@@ -1,5 +1,10 @@
1
1
  <template>
2
- <Container :data-id="`${dataId}_chart`" :data-qa-id="`${dataQaId}_chart`" :class="`barchart-${chartId}`" :width="width">
2
+ <Container
3
+ :class="`barchart-${chartId}`"
4
+ :data-id="`${dataId}_chart`"
5
+ :data-qa-id="`${dataQaId}_chart`"
6
+ :width="width"
7
+ >
3
8
  <ChartControlsWrapper
4
9
  v-if="isChartControlsShown('top')"
5
10
  :position="chartControlsPosition"
@@ -164,11 +169,11 @@
164
169
  :data-id="dataId"
165
170
  :data-qa-id="dataQaId"
166
171
  :field-mode="fieldMode"
172
+ :input-error-message="inputErrorMessage"
167
173
  :is-chart-controls-shown-in-bottom="isChartControlsShown('bottom')"
168
174
  :is-inputs-disabled="isLoading"
169
175
  :is-scrollable="isScrollable"
170
176
  :percentage-error-message="percentageErrorMessage"
171
- :input-error-message="inputErrorMessage"
172
177
  :series="series"
173
178
  :y-axis-width="yAxisWidth"
174
179
  @input-blur="handleInputBlur"
@@ -11,6 +11,7 @@
11
11
  :is-active="isActive"
12
12
  :is-disabled="isDisabled"
13
13
  :is-hovered="isHovered"
14
+ :is-transparent="isTransparent"
14
15
  :min-width="minWidth"
15
16
  :type="type"
16
17
  :variant="variant"
@@ -43,6 +44,7 @@
43
44
  />
44
45
  </IconContainer>
45
46
  <ButtonContainer
47
+ v-if="text"
46
48
  :button-size="buttonSize"
47
49
  data-test-id="button-icon-text"
48
50
  :height="height"
@@ -118,6 +120,7 @@
118
120
  isActive: Boolean,
119
121
  isHovered: Boolean,
120
122
  height: String,
123
+ isTransparent: Boolean,
121
124
  }
122
125
  const ButtonWrapper = styled('div', ButtonAttrs)`
123
126
  position: relative;
@@ -138,6 +141,8 @@
138
141
  props.isDisabled
139
142
  ? props.theme.mainButton[props.appTheme][props.type][props.variant]
140
143
  .disabled.backgroundColor
144
+ : props.isTransparent
145
+ ? 'transparent'
141
146
  : props.customColor
142
147
  ? props.customColor
143
148
  : props.isActive
@@ -403,6 +408,10 @@
403
408
  type: String,
404
409
  default: '',
405
410
  },
411
+ isTransparent: {
412
+ type: Boolean,
413
+ default: false,
414
+ },
406
415
  isFirstLetterCapitalized: {
407
416
  required: false,
408
417
  default: false,
@@ -4,13 +4,16 @@
4
4
  :id="id"
5
5
  :app-theme="appTheme"
6
6
  :button-size="buttonSize"
7
+ :custom-text-color="customTextColor"
7
8
  :data-id="dataId"
8
9
  :data-qa-id="dataQaId"
9
10
  :height="height"
10
11
  :is-active="isActive"
11
12
  :is-disabled="isDisabled"
12
13
  :min-width="minWidth"
14
+ :no-background-color="noBackgroundColor"
13
15
  :no-wrap="noWrap"
16
+ :opacity-level="opacityLevel"
14
17
  :type="type"
15
18
  :variant="variant"
16
19
  :width="width"
@@ -67,6 +70,9 @@
67
70
  buttonSize: String,
68
71
  appTheme: String,
69
72
  isActive: Boolean,
73
+ noBackgroundColor: Boolean,
74
+ customTextColor: String,
75
+ opacityLevel: String,
70
76
  }
71
77
  const ButtonContainer = styled('div', ButtonAttrs)`
72
78
  display: flex;
@@ -77,13 +83,17 @@
77
83
  font-size: ${(props) =>
78
84
  props.theme?.mainButton?.size?.[props.buttonSize]?.fontSize};
79
85
  color: ${(props) =>
80
- props.isDisabled
86
+ props.customTextColor
87
+ ? props.customTextColor
88
+ : props.isDisabled
81
89
  ? props.theme.mainButton[props.appTheme][props.type][props.variant]
82
90
  .disabled.textColor
83
91
  : props.theme.mainButton[props.appTheme][props.type][props.variant]
84
92
  .default.textColor};
85
93
  background-color: ${(props) =>
86
- props.isDisabled
94
+ props.noBackgroundColor
95
+ ? 'transparent'
96
+ : props.isDisabled
87
97
  ? props.theme.mainButton[props.appTheme][props.type][props.variant]
88
98
  .disabled.backgroundColor
89
99
  : props.isActive
@@ -108,6 +118,7 @@
108
118
  height: ${(props) => props.height};
109
119
  line-height: 1;
110
120
  width: ${(props) => props.width};
121
+ opacity: ${(props) => props.opacityLevel};
111
122
 
112
123
  @media (hover: hover) and (pointer: fine) {
113
124
  &:hover {
@@ -130,30 +141,6 @@
130
141
  }
131
142
  `
132
143
 
133
- const AltAttrs = {
134
- altStyle: Boolean,
135
- color: String,
136
- }
137
-
138
- const IconContainer = styled('div', AltAttrs)`
139
- background-color: ${(props) =>
140
- props.color ? props.color : props.theme.colors.transparentWhite1};
141
- padding: 7px;
142
- height: 100%;
143
- width: 30%;
144
- justify-content: center;
145
- display: flex;
146
- align-items: center;
147
- border-radius: 4px 0 0 4px;
148
- color: ${(props) => props.theme.colors.white};
149
- all: ${(props) => (props.altStyle ? '' : 'unset')};
150
- `
151
-
152
- const TextContainer = styled('span', AltAttrs)`
153
- padding: ${(props) => (props.altStyle ? '7px' : '0')};
154
- all: ${(props) => (props.altStyle ? '' : 'unset')};
155
- `
156
-
157
144
  const LabelAttrs = {
158
145
  hasIcon: Boolean,
159
146
  reverseDirection: Boolean,
@@ -305,6 +292,19 @@
305
292
  type: Boolean,
306
293
  default: false,
307
294
  },
295
+ noBackgroundColor: {
296
+ type: Boolean,
297
+ default: false,
298
+ },
299
+ customTextColor: {
300
+ required: false,
301
+ default: null,
302
+ },
303
+ opacityLevel: {
304
+ required: false,
305
+ default: '100%',
306
+ type: String,
307
+ },
308
308
  },
309
309
  computed: {
310
310
  theme() {
@@ -2,8 +2,8 @@
2
2
  <Container>
3
3
  <SplitButton
4
4
  v-for="(option, index) in options"
5
- :data-id-key="`${dataIdKey}_${option.value}`"
6
5
  :key="index"
6
+ :data-id-key="`${dataIdKey}_${option.value}`"
7
7
  :length="options.length"
8
8
  :position="getButtonPosition(index)"
9
9
  :selected="modelValue === option.value"
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <Wrapper
3
- data-test-id="dropdown_wrapper"
4
3
  ref="dropdown"
4
+ data-test-id="dropdown_wrapper"
5
5
  :opening-mode="openingMode"
6
6
  >
7
7
  <WrapperButton
@@ -115,10 +115,15 @@
115
115
  isOpenByClick: false,
116
116
  }
117
117
  },
118
+ watch: {
119
+ isOpenByClick(newVal) {
120
+ this.$emit('on-dropdown-toggle', newVal)
121
+ },
122
+ },
118
123
  mounted() {
119
124
  document.addEventListener('click', this.clickOutside)
120
125
  },
121
- beforeDestroy() {
126
+ beforeUnmount() {
122
127
  document.removeEventListener('click', this.clickOutside)
123
128
  },
124
129
  methods: {
@@ -138,10 +143,5 @@
138
143
  }
139
144
  },
140
145
  },
141
- watch: {
142
- isOpenByClick(newVal) {
143
- this.$emit('on-dropdown-toggle', newVal)
144
- },
145
- },
146
146
  }
147
147
  </script>
@@ -25,7 +25,7 @@
25
25
  font-size: 11px;
26
26
  font-weight: 400;
27
27
  border-radius: 4px;
28
- z-index: 999;
28
+ z-index: 998;
29
29
  color: ${(props) => props.theme.colors.white};
30
30
  margin-bottom: 8px;
31
31
  :before {
@@ -64,4 +64,4 @@ Sizes.args = {
64
64
  ...defaultProps,
65
65
  'input-width': '250px',
66
66
  'is-filter': true,
67
- }
67
+ }
@@ -62,4 +62,4 @@ describe('SearchInput.vue', () => {
62
62
  // Check that the focus method was called
63
63
  expect(focusSpy).toHaveBeenCalled()
64
64
  })
65
- })
65
+ })