@eturnity/eturnity_reusable_components 7.4.4-EPDM-9606 → 7.4.4-EPDM-7260.2

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.
@@ -72,7 +72,7 @@ const TableWrapper = styled('div', wrapperAttrs)`
72
72
  overflow-y: hidden;
73
73
 
74
74
  ::-webkit-scrollbar {
75
- height: 10px; //height of the whole scrollbar area
75
+ height: 5px; //height of the whole scrollbar area
76
76
  }
77
77
 
78
78
  ::-webkit-scrollbar-track {
@@ -81,7 +81,7 @@ const TableWrapper = styled('div', wrapperAttrs)`
81
81
  }
82
82
 
83
83
  ::-webkit-scrollbar-thumb {
84
- border-bottom: 10px solid ${(props) => props.theme.colors.brightBlue}; // width of the actual scrollbar
84
+ border-bottom: 5px solid ${(props) => props.theme.colors.purple}; // width of the actual scrollbar
85
85
  border-radius: 4px;
86
86
  }
87
87
  `
@@ -1,5 +1,9 @@
1
1
  <template>
2
- <page-container @click="toggleButton()" ref="pageContainer" :activated="isOpen">
2
+ <page-container
3
+ @click="toggleButton()"
4
+ ref="pageContainer"
5
+ :activated="isOpen"
6
+ >
3
7
  <button-container ref="dropdownItem">
4
8
  <dot-item />
5
9
  <dot-item />
@@ -23,17 +27,17 @@
23
27
  v-for="child in childOpen"
24
28
  :key="child.value"
25
29
  @click.stop="
26
- onSelect({
27
- item: child,
28
- hasChildren: hasChildren(child)
29
- })
30
- "
30
+ onSelect({
31
+ item: child,
32
+ hasChildren: hasChildren(child)
33
+ })
34
+ "
31
35
  @keyup.enter.stop="
32
- onSelect({
33
- item: child,
34
- hasChildren: hasChildren(child)
35
- })
36
- "
36
+ onSelect({
37
+ item: child,
38
+ hasChildren: hasChildren(child)
39
+ })
40
+ "
37
41
  >
38
42
  {{ child.name }}
39
43
  </option-child>
@@ -43,10 +47,12 @@
43
47
  v-for="(item, index) in options"
44
48
  :key="item.value"
45
49
  tabindex="0"
46
- @click.stop="onSelect({ item: item, hasChildren: hasChildren(item) })"
50
+ @click.stop="
51
+ onSelect({ item: item, hasChildren: hasChildren(item) })
52
+ "
47
53
  @keyup.enter="
48
- onSelect({ item: item, hasChildren: hasChildren(item) })
49
- "
54
+ onSelect({ item: item, hasChildren: hasChildren(item) })
55
+ "
50
56
  @mouseover="onItemHover({ index, item })"
51
57
  :isDisabled="item.disabled"
52
58
  >
@@ -55,8 +61,8 @@
55
61
  v-if="hasChildren(item)"
56
62
  />
57
63
  <span>
58
- {{ item.name }}
59
- </span>
64
+ {{ item.name }}
65
+ </span>
60
66
  </option-item>
61
67
  </options-container>
62
68
  </template>
@@ -133,7 +139,8 @@ const PageContainer = styled('div', PageContainerAttrs)`
133
139
  width: 30px;
134
140
  height: 30px;
135
141
  border-radius: 4px;
136
- background-color: ${(props) => props.activated ? props.theme.colors.grey5 : ''};
142
+ background-color: ${(props) =>
143
+ props.activated ? props.theme.colors.grey5 : ''};
137
144
 
138
145
  &:hover {
139
146
  background-color: ${(props) => props.theme.colors.grey5};
@@ -317,21 +324,28 @@ export default {
317
324
  const positionArray = this.determineElementQuarter(button, rectButton)
318
325
  contextMenu.style.transform = ''
319
326
  if (positionArray.includes('left')) {
320
- contextMenu.style.left = (rectButton.right - rectRelativeParent.left + 5) + 'px'
327
+ contextMenu.style.left =
328
+ rectButton.right - rectRelativeParent.left + 5 + 'px'
321
329
  } else {
322
- contextMenu.style.left = (rectButton.left - rectRelativeParent.left - 5) + 'px'
330
+ contextMenu.style.left =
331
+ rectButton.left - rectRelativeParent.left - 5 + 'px'
323
332
  contextMenu.style.transform = 'translateX(-100%)'
324
333
  }
325
334
  if (positionArray.includes('top')) {
326
- contextMenu.style.top = (rectButton.top - rectRelativeParent.top) + 'px'
335
+ contextMenu.style.top = rectButton.top - rectRelativeParent.top + 'px'
327
336
  } else {
328
- contextMenu.style.top = (rectButton.bottom - rectRelativeParent.top) + 'px'
337
+ contextMenu.style.top =
338
+ rectButton.bottom - rectRelativeParent.top + 'px'
329
339
  contextMenu.style.transform += ' translateY(-100%)'
330
340
  }
331
341
  },
332
342
  findRelativeParent(element) {
333
343
  while (element.parentElement) {
334
- if (window.getComputedStyle(element.parentElement).position === 'relative' || window.getComputedStyle(element.parentElement).position === 'absolute') {
344
+ if (
345
+ window.getComputedStyle(element.parentElement).position ===
346
+ 'relative' ||
347
+ window.getComputedStyle(element.parentElement).position === 'absolute'
348
+ ) {
335
349
  return element.parentElement
336
350
  }
337
351
  element = element.parentElement
package/src/main.js CHANGED
@@ -1,6 +1,6 @@
1
- import Vue from "vue"
2
- import App from "./App.vue"
3
- import VueCompositionAPI from "@vue/composition-api"
1
+ import Vue from 'vue'
2
+ import App from './App.vue'
3
+ import VueCompositionAPI from '@vue/composition-api'
4
4
  import vClickOutside from 'v-click-outside'
5
5
 
6
6
  Vue.config.productionTip = false
@@ -9,5 +9,5 @@ Vue.use(VueCompositionAPI)
9
9
  Vue.use(vClickOutside)
10
10
 
11
11
  new Vue({
12
- render: (h) => h(App),
13
- }).$mount("#app")
12
+ render: (h) => h(App)
13
+ }).$mount('#app')