@eturnity/eturnity_reusable_components 1.1.9 → 1.1.12

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": "1.1.9",
3
+ "version": "1.1.12",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <dropdown-row
3
3
  :colspan="colSpan"
4
+ :isOpen="isOpen"
4
5
  @click="toggleOpen"
5
6
  ref="dropdownItem"
6
7
  :disabled="disabled"
@@ -143,9 +144,13 @@ import Spinner from "@eturnity/eturnity_reusable_components/src/components/spinn
143
144
  import SearchInput from "@eturnity/eturnity_reusable_components/src/components/inputs/searchInput"
144
145
  import InputText from "@eturnity/eturnity_reusable_components/src/components/inputs/inputText"
145
146
 
146
- const rowAttrs = { disabled: Boolean }
147
+ const rowAttrs = { disabled: Boolean, isOpen: Boolean }
147
148
  const DropdownRow = styled("td", rowAttrs)`
148
149
  cursor: ${(props) => (props.disabled ? "not-allowed" : "pointer")};
150
+
151
+ input {
152
+ cursor: ${(props) => (!props.isOpen ? "pointer !important" : "inherit")};
153
+ }
149
154
  `
150
155
 
151
156
  const ComponentItem = styled.div`
@@ -194,6 +194,10 @@ const TableContainer = styled.table`
194
194
  background-color: ${(props) => props.theme.colors.grey5};
195
195
  border-top: 1px solid ${(props) => props.theme.colors.grey4};
196
196
  }
197
+
198
+ .text {
199
+ cursor: auto !important;
200
+ }
197
201
  }
198
202
 
199
203
  .text {
@@ -1,11 +1,11 @@
1
1
  <template>
2
- <page-container>
3
- <button-container @click="toggleButton()">
2
+ <page-container @click="toggleButton()">
3
+ <button-container>
4
4
  <dot-item />
5
5
  <dot-item />
6
6
  <dot-item />
7
7
  </button-container>
8
- <dropdown-container v-if="isOpen">
8
+ <dropdown-container v-if="isOpen" @click.stop>
9
9
  <loading-container v-if="isLoading">
10
10
  <spinner />
11
11
  </loading-container>
@@ -38,7 +38,7 @@
38
38
  v-for="(item, index) in options"
39
39
  :key="item.value"
40
40
  tabindex="0"
41
- @click="onSelect({ item: item, hasChildren: hasChildren(item) })"
41
+ @click.stop="onSelect({ item: item, hasChildren: hasChildren(item) })"
42
42
  @keyup.enter="
43
43
  onSelect({ item: item, hasChildren: hasChildren(item) })
44
44
  "
@@ -118,6 +118,13 @@ const PageContainer = styled.div`
118
118
  display: grid;
119
119
  align-items: center;
120
120
  justify-items: center;
121
+ width: 30px;
122
+ height: 30px;
123
+
124
+ &:hover {
125
+ background-color: ${(props) => props.theme.colors.grey5};
126
+ border-radius: 4px;
127
+ }
121
128
  `
122
129
 
123
130
  const ButtonContainer = styled.div`
@@ -127,18 +134,11 @@ const ButtonContainer = styled.div`
127
134
  justify-content: center;
128
135
  padding: 5px;
129
136
  cursor: pointer;
130
- width: 20px;
131
- height: 20px;
132
137
 
133
138
  div {
134
139
  // This is the dot color
135
140
  background-color: #263238;
136
141
  }
137
-
138
- &:hover {
139
- background-color: ${(props) => props.theme.colors.grey5};
140
- border-radius: 4px;
141
- }
142
142
  `
143
143
 
144
144
  const DotItem = styled.div`