@eturnity/eturnity_reusable_components 6.34.0 → 6.37.0-3d-qa-6.38.0

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": "6.34.0",
3
+ "version": "6.37.0-3d-qa-6.38.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -60,4 +60,4 @@
60
60
  "author": "Aaron Enser",
61
61
  "license": "ISC",
62
62
  "homepage": "https://bitbucket.org/eturnitydevs/eturnity_reusable_components#readme"
63
- }
63
+ }
@@ -432,6 +432,10 @@ export default {
432
432
  labelFontColor: {
433
433
  required: false,
434
434
  default: 'eturnityGrey'
435
+ },
436
+ focus:{
437
+ required: false,
438
+ default: false
435
439
  }
436
440
  },
437
441
  computed: {
@@ -544,7 +548,7 @@ export default {
544
548
  }
545
549
  this.isFocused = true
546
550
  this.$nextTick(() => {
547
- this.$refs.inputField1.$el.select()
551
+ this.$refs.inputField1.$el.focus()
548
552
  })
549
553
  this.$emit('input-focus')
550
554
  },
@@ -630,7 +634,17 @@ export default {
630
634
  })
631
635
  }
632
636
  },
637
+ mounted(){
638
+ if(this.focus){
639
+ this.focusInput()
640
+ }
641
+ },
633
642
  watch: {
643
+ focus(value){
644
+ if(value){
645
+ this.focusInput()
646
+ }
647
+ },
634
648
  clearInput: function (value) {
635
649
  if (value) {
636
650
  // If the value is typed, then we should clear the textInput on Continue
@@ -76,7 +76,9 @@
76
76
  import styled from 'vue-styled-components'
77
77
  import InfoText from '../../infoText'
78
78
  import theme from '../../../assets/theme'
79
- const Container = styled.div``
79
+ const Container = styled.div`
80
+ width:100%
81
+ `
80
82
 
81
83
  const flexAttrs = {
82
84
  label: String,
@@ -92,6 +94,7 @@ const FlexWrapper = styled('div', flexAttrs)`
92
94
  cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};
93
95
  grid-template-columns: ${(props) =>
94
96
  props.alignItems === 'vertical' || !props.label ? '1fr' : 'auto 1fr'};
97
+ width:100%;
95
98
  `
96
99
 
97
100
  const toggleAttrs = {
@@ -117,6 +120,7 @@ const SwitchWrapper = styled('span', toggleAttrs)`
117
120
  : props.size === 'small'
118
121
  ? '16px'
119
122
  : '24px'};
123
+ width:100%;
120
124
  `
121
125
  const optionAttrs = {
122
126
  isActive: Boolean,
@@ -139,9 +143,10 @@ const switchOption = styled('div', optionAttrs)`
139
143
  line-height: 1;
140
144
  text-align: center;
141
145
  padding: 10px;
142
- margin-right: -1px;
146
+ margin-right: 0;
143
147
  transition: all 0.1s ease-in-out;
144
148
  overflow: hidden;
149
+ width:100%;
145
150
  & :hover {
146
151
  cursor: pointer;
147
152
  }