@eturnity/eturnity_reusable_components 7.35.1-EPDM-10620.7 → 7.35.1-EPDM-10620.8

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "7.35.1-EPDM-10620.7",
3
+ "version": "7.35.1-EPDM-10620.8",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -15,11 +15,10 @@
15
15
  >
16
16
  {{ item.name }}
17
17
  </ListItem>
18
- <IconContainer>
18
+ <IconContainer @click="expandOptions">
19
19
  <ButtonContainer
20
20
  v-if="optionsList.length > optionLimit || hasComponent"
21
21
  name="more_options,_tool_tips"
22
- @click="expandOptions"
23
22
  >
24
23
  <DotItem />
25
24
  <DotItem />
@@ -64,14 +63,9 @@
64
63
  :key="item.type"
65
64
  :disabled="item.disabled || false"
66
65
  :hover-color="item.hoverColor"
67
- @click="
68
- !item?.component && !item.disabled && $emit('on-' + item.type)
69
- "
66
+ @click="handleExpandedOptionClick(item)"
70
67
  >
71
- <ListItemWrapper
72
- v-if="item?.component"
73
- @click="!item.disabled && toggleElement(item.type)"
74
- >
68
+ <ListItemWrapper v-if="item?.component">
75
69
  <ListItemTitle>
76
70
  {{ item.name }}
77
71
  <InfoText
@@ -428,6 +422,17 @@
428
422
  this.expanded = !this.expanded
429
423
  this.expandedOptions = this.optionsList
430
424
  },
425
+ handleExpandedOptionClick(item) {
426
+ if (item.disabled) return
427
+
428
+ if (!item.component) {
429
+ this.$emit('on-' + item.type)
430
+
431
+ return
432
+ }
433
+
434
+ this.toggleElement(item.type)
435
+ },
431
436
  },
432
437
  }
433
438
  </script>