@eturnity/eturnity_reusable_components 1.1.69 → 1.1.72

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.69",
3
+ "version": "1.1.72",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -0,0 +1,3 @@
1
+ <svg width="7" height="11" viewBox="0 0 7 11" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M1 0V10H7" stroke="#B2B9C5"/>
3
+ </svg>
@@ -43,7 +43,7 @@ const Container = styled.div`
43
43
  const labelAttrs = { fontSize: String }
44
44
  const InputLabel = styled("div", labelAttrs)`
45
45
  font-weight: bold;
46
- font-size: ${(props) => (props.fontSize ? props.fontSize : "16px")};
46
+ font-size: ${(props) => (props.fontSize ? props.fontSize : "13px")};
47
47
  `
48
48
 
49
49
  const LabelWrapper = styled.div`
@@ -56,7 +56,6 @@ const LabelWrapper = styled.div`
56
56
  grid-template-columns: auto 1fr;
57
57
  grid-gap: 12px;
58
58
  align-items: center;
59
- margin-bottom: 12px;
60
59
  `
61
60
 
62
61
  const inputProps = {
@@ -1,11 +1,14 @@
1
1
  <template>
2
2
  <dropdown-row
3
- :colspan="colSpan"
3
+ :colspan="isNested ? colSpan + 1 : colSpan"
4
4
  :isOpen="isOpen"
5
5
  @click="toggleOpen"
6
6
  :disabled="disabled"
7
7
  >
8
- <component-container :colSpan="colSpan - 1" class="table-dropdown">
8
+ <component-container
9
+ :colSpan="isNested ? colSpan : colSpan - 1"
10
+ class="table-dropdown"
11
+ >
9
12
  <component-item
10
13
  v-for="(item, index) in tableItems"
11
14
  :key="index"
@@ -14,6 +17,7 @@
14
17
  'table-dropdown-item': item.type !== 'input',
15
18
  }"
16
19
  >
20
+ <nested-icon v-if="isNested" />
17
21
  <template-button
18
22
  @click.stop="onTemplateClick(item.row)"
19
23
  v-if="
@@ -294,7 +298,7 @@ const OptionsWrapper = styled.div`
294
298
  position: relative;
295
299
  padding: 12px;
296
300
  grid-gap: 4px;
297
- font-size: 14px;
301
+ font-size: 13px;
298
302
  grid-template-rows: max-content;
299
303
  height: max-content;
300
304
  min-width: 400px; // kind of an arbitrary number until we know all use cases
@@ -388,6 +392,11 @@ const TextContainer = styled.div`
388
392
  align-items: center;
389
393
  `
390
394
 
395
+ const NestedIcon = styled.div`
396
+ background-image: ${() =>
397
+ `url(${require("@/assets/icons/subposition_marker.svg")})`};
398
+ `
399
+
391
400
  export default {
392
401
  name: "table-dropdown",
393
402
  components: {
@@ -414,6 +423,7 @@ export default {
414
423
  CustomSubtext,
415
424
  ArrowContainer,
416
425
  TextContainer,
426
+ NestedIcon,
417
427
  },
418
428
  props: {
419
429
  colSpan: {
@@ -460,6 +470,10 @@ export default {
460
470
  required: false,
461
471
  default: false,
462
472
  },
473
+ isNested: {
474
+ required: false,
475
+ default: false,
476
+ },
463
477
  },
464
478
  data() {
465
479
  return {