@eturnity/eturnity_reusable_components 1.1.72 → 1.1.75

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.72",
3
+ "version": "1.1.75",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -13,6 +13,7 @@
13
13
  v-for="(item, index) in tableItems"
14
14
  :key="index"
15
15
  ref="dropdownItem"
16
+ :isNested="isNested"
16
17
  :class="{
17
18
  'table-dropdown-item': item.type !== 'input',
18
19
  }"
@@ -196,7 +197,13 @@ const DropdownRow = styled("div", rowAttrs)`
196
197
  }
197
198
  `
198
199
 
199
- const ComponentItem = styled.td`
200
+ const ItemAttrs = { isNested: Boolean }
201
+ const ComponentItem = styled("td", ItemAttrs)`
202
+ display: grid;
203
+ align-items: center;
204
+ grid-template-columns: ${(props) => (props.isNested ? "auto 1fr" : "1fr")};
205
+ grid-gap: 5px;
206
+ padding-left: ${(props) => (props.isNested ? "14px" : "0")};
200
207
  overflow: hidden;
201
208
  text-overflow: ellipsis;
202
209
  padding-right: 0 !important;
@@ -394,7 +401,9 @@ const TextContainer = styled.div`
394
401
 
395
402
  const NestedIcon = styled.div`
396
403
  background-image: ${() =>
397
- `url(${require("@/assets/icons/subposition_marker.svg")})`};
404
+ `url(${require("../../assets/icons/subposition_marker.svg")})`};
405
+ height: 10px;
406
+ width: 6px;
398
407
  `
399
408
 
400
409
  export default {