@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.
- package/package.json +4 -1
- package/src/DemoChart.vue +16 -16
- package/src/assets/svgIcons/3d_house.svg +3 -0
- package/src/assets/svgIcons/activities_app.svg +3 -0
- package/src/assets/svgIcons/apps_navigation.svg +3 -0
- package/src/assets/svgIcons/chevron_down.svg +3 -0
- package/src/assets/svgIcons/chevron_up.svg +3 -0
- package/src/assets/svgIcons/collapse_sidebar.svg +3 -0
- package/src/assets/svgIcons/consumption_profile.svg +3 -0
- package/src/assets/svgIcons/cross_filled.svg +3 -0
- package/src/assets/svgIcons/data_transfer.svg +2 -2
- package/src/assets/svgIcons/eraser.svg +1 -0
- package/src/assets/svgIcons/esdec.svg +3 -0
- package/src/assets/svgIcons/expand_sidebar.svg +3 -0
- package/src/assets/svgIcons/folder_unfilled.svg +3 -0
- package/src/assets/svgIcons/freedraw.svg +1 -0
- package/src/assets/svgIcons/leads_app.svg +9 -0
- package/src/assets/svgIcons/library_app.svg +3 -0
- package/src/assets/svgIcons/line.svg +1 -0
- package/src/assets/svgIcons/mounting_system.svg +2 -2
- package/src/assets/svgIcons/polyline.svg +3 -0
- package/src/assets/svgIcons/projects_app.svg +9 -0
- package/src/assets/svgIcons/question_mark.svg +2 -2
- package/src/assets/svgIcons/recurring_costs.svg +3 -0
- package/src/assets/svgIcons/settings.svg +8 -2
- package/src/assets/svgIcons/shading_snow.svg +3 -0
- package/src/assets/svgIcons/signature.svg +3 -0
- package/src/assets/svgIcons/tariff_menu.svg +3 -0
- package/src/assets/svgIcons/zev_community_solar.svg +3 -0
- package/src/components/banner/actionBanner/index.vue +1 -1
- package/src/components/barchart/BottomFields.vue +5 -2
- package/src/components/barchart/ChartControls.vue +5 -5
- package/src/components/barchart/index.vue +7 -2
- package/src/components/buttons/buttonIcon/index.vue +9 -0
- package/src/components/buttons/mainButton/index.vue +26 -26
- package/src/components/buttons/splitButtons/index.vue +1 -1
- package/src/components/dropdown/index.vue +7 -7
- package/src/components/errorMessage/index.vue +1 -1
- package/src/components/inputs/searchInput/SearchInput.stories.js +1 -1
- package/src/components/inputs/searchInput/searchInput.spec.js +1 -1
- package/src/components/inputs/select/index.vue +406 -79
- package/src/components/inputs/select/option/index.vue +9 -1
- package/src/components/modals/cookieConsent/CookieConsent.vue +4 -4
- package/src/components/navigationSideMenu/index.vue +1098 -0
- package/src/components/pageSubtitle/index.vue +1 -1
- package/src/components/projectMarker/ProjectMarker.stories.js +26 -36
- package/src/components/projectMarker/index.vue +172 -93
- package/src/components/tabsHeader/index.vue +9 -1
- package/src/components/videoThumbnail/index.vue +1 -1
- package/src/helpers/cookieHelper.js +23 -13
- 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="
|
|
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') {
|