@eturnity/eturnity_reusable_components 9.19.4 → 9.19.6

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 (53) hide show
  1. package/package.json +25 -20
  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/esdec.svg +3 -0
  13. package/src/assets/svgIcons/expand_sidebar.svg +3 -0
  14. package/src/assets/svgIcons/external_link.svg +3 -0
  15. package/src/assets/svgIcons/folder_unfilled.svg +3 -0
  16. package/src/assets/svgIcons/leads_app.svg +9 -0
  17. package/src/assets/svgIcons/library_app.svg +3 -0
  18. package/src/assets/svgIcons/mail.svg +3 -0
  19. package/src/assets/svgIcons/mounting_system.svg +2 -2
  20. package/src/assets/svgIcons/portal.svg +3 -0
  21. package/src/assets/svgIcons/projects_app.svg +9 -0
  22. package/src/assets/svgIcons/question_mark.svg +2 -2
  23. package/src/assets/svgIcons/recurring_costs.svg +3 -0
  24. package/src/assets/svgIcons/settings.svg +8 -2
  25. package/src/assets/svgIcons/shading_snow.svg +3 -0
  26. package/src/assets/svgIcons/signature.svg +3 -0
  27. package/src/assets/svgIcons/tariff_menu.svg +3 -0
  28. package/src/assets/svgIcons/zev_community_solar.svg +3 -0
  29. package/src/components/banner/actionBanner/index.vue +1 -1
  30. package/src/components/barchart/BottomFields.vue +5 -2
  31. package/src/components/barchart/ChartControls.vue +5 -5
  32. package/src/components/barchart/index.vue +7 -2
  33. package/src/components/buttons/buttonIcon/index.vue +9 -0
  34. package/src/components/buttons/mainButton/index.vue +26 -26
  35. package/src/components/buttons/splitButtons/index.vue +1 -1
  36. package/src/components/card/index.vue +35 -5
  37. package/src/components/dropdown/index.vue +7 -7
  38. package/src/components/infoCard/index.vue +30 -4
  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/progressStep/index.vue +82 -18
  47. package/src/components/progressStep/progressStep.stories.js +8 -0
  48. package/src/components/projectMarker/ProjectMarker.stories.js +26 -36
  49. package/src/components/projectMarker/index.vue +172 -93
  50. package/src/components/tabsHeader/index.vue +9 -1
  51. package/src/components/videoThumbnail/index.vue +1 -1
  52. package/src/helpers/cookieHelper.js +23 -13
  53. package/src/helpers/dateTimeFormatting.js +0 -1
@@ -11,7 +11,7 @@
11
11
  :cursor-type="cursorType"
12
12
  :data-id="dataId"
13
13
  :data-qa-id="dataQaId"
14
- :data-value="value"
14
+ :data-value="domDataValue"
15
15
  :disabled-bg-color="disabledBgColor"
16
16
  :disabled-text-color="disabledTextColor"
17
17
  :hovered-bg-color="
@@ -172,6 +172,14 @@
172
172
  }
173
173
  },
174
174
  computed: {
175
+ /** Vue omits `data-value` when bound to null, so the parent select cannot find this row for search filtering. */
176
+ domDataValue() {
177
+ const v = this.value
178
+ if (v === null || v === undefined) {
179
+ return '__rc_select_null__'
180
+ }
181
+ return v
182
+ },
175
183
  selectDropdownParent() {
176
184
  // Search up the component hierarchy for the dropdown component
177
185
  let parent = this.$parent
@@ -179,7 +179,7 @@
179
179
  filterCategories(categories) {
180
180
  // Helper method to filter categories based on current toggleOptions
181
181
  const filtered = {}
182
- this.toggleOptions.forEach(opt => {
182
+ this.toggleOptions.forEach((opt) => {
183
183
  if (categories.hasOwnProperty(opt.choice)) {
184
184
  filtered[opt.choice] = categories[opt.choice]
185
185
  }
@@ -235,19 +235,19 @@
235
235
 
236
236
  // Initialize fresh categories object
237
237
  const categories = {}
238
-
238
+
239
239
  this.toggleOptions.forEach((option) => {
240
240
  categories[option.choice] = !!option.isRequired
241
241
  })
242
242
 
243
243
  if (choice === 'reject_all') {
244
244
  // Set all to false EXCEPT required ones
245
- this.toggleOptions.forEach(opt => {
245
+ this.toggleOptions.forEach((opt) => {
246
246
  categories[opt.choice] = !!opt.isRequired
247
247
  })
248
248
  } else if (choice === 'accept_all') {
249
249
  // Set all categories to true
250
- this.toggleOptions.forEach(opt => {
250
+ this.toggleOptions.forEach((opt) => {
251
251
  categories[opt.choice] = true
252
252
  })
253
253
  } else if (choice === 'save_selected') {