@worksafevictoria/wcl7.5 1.14.0-beta.2 → 1.14.0-beta.4

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": "@worksafevictoria/wcl7.5",
3
- "version": "1.14.0-beta.2",
3
+ "version": "1.14.0-beta.4",
4
4
  "main": "src/index.js",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -418,8 +418,6 @@ export default {
418
418
  },
419
419
  mounted() {
420
420
  this.selected = this.isSelected
421
- },
422
- created() {
423
421
  this.parentGrid = this.getParentGridItem()
424
422
  if (this.parentGrid) {
425
423
  this.parentGrid.registerChild(this)
@@ -50,7 +50,7 @@
50
50
  <slot name="preContent"></slot>
51
51
  </column>
52
52
  </row>
53
-
53
+
54
54
  <div
55
55
  class="section-group__content section-group__row"
56
56
  :class="{
@@ -61,7 +61,7 @@
61
61
  subHeading ||
62
62
  $slots.headerRight
63
63
  ),
64
- [`${contentClass}`]: hasContentClass
64
+ [`${contentClass}`]: hasContentClass,
65
65
  }"
66
66
  :style="applyBackgroundOn === 'content' ? backgroundStyle : null"
67
67
  >
@@ -99,7 +99,7 @@ export default {
99
99
  type: String,
100
100
  default: 'page',
101
101
  validator: (value) =>
102
- ['half-content', 'content', 'page', 'full'].indexOf(value) >= 0
102
+ ['half-content', 'content', 'page', 'full'].indexOf(value) >= 0,
103
103
  },
104
104
  backgroundVariant: {
105
105
  type: String,
@@ -113,48 +113,48 @@ export default {
113
113
  'yellow',
114
114
  'white',
115
115
  'lightblue',
116
- 'lightred'
117
- ].indexOf(value) >= 0
116
+ 'lightred',
117
+ ].indexOf(value) >= 0,
118
118
  },
119
119
  applyBackgroundOn: {
120
120
  type: String,
121
121
  default: 'section',
122
122
  validator: (value) =>
123
- ['content', 'block', 'container', 'section'].indexOf(value) >= 0
123
+ ['content', 'block', 'container', 'section'].indexOf(value) >= 0,
124
124
  },
125
125
  backgroundImage: {
126
126
  type: String,
127
- default: ''
127
+ default: '',
128
128
  },
129
129
  noPaddingTop: {
130
- type: Boolean
130
+ type: Boolean,
131
131
  },
132
132
  noPaddingBottom: {
133
- type: Boolean
133
+ type: Boolean,
134
134
  },
135
135
  bordered: {
136
- type: Boolean
136
+ type: Boolean,
137
137
  },
138
138
  rtl: {
139
139
  type: Boolean,
140
- default: false
140
+ default: false,
141
141
  },
142
142
  title: {
143
143
  type: String,
144
- default: null
144
+ default: null,
145
145
  },
146
146
  subHeading: {
147
147
  type: String,
148
- default: null
148
+ default: null,
149
149
  },
150
150
  titleTag: {
151
151
  type: String,
152
- default: 'h2'
152
+ default: 'h2',
153
153
  },
154
154
  contentClass: {
155
155
  type: String,
156
- default: ''
157
- }
156
+ default: '',
157
+ },
158
158
  },
159
159
  computed: {
160
160
  generatedClass() {
@@ -162,7 +162,7 @@ export default {
162
162
  rtl: this.rtl,
163
163
  [`section-group--noPaddingTop`]: this.noPaddingTop,
164
164
  [`section-group--noPaddingBottom`]: this.noPaddingBottom,
165
- [`section-group--size-` + this.size]: !!this.size
165
+ [`section-group--size-` + this.size]: !!this.size,
166
166
  }
167
167
  },
168
168
  backgroundStyle() {
@@ -175,7 +175,7 @@ export default {
175
175
  [`background-size`]: `cover`,
176
176
  [`background-position`]: `center center`,
177
177
  color: '#ffffff',
178
- ['border-radius']: borderRadius
178
+ ['border-radius']: borderRadius,
179
179
  }
180
180
  }
181
181
  if (this.backgroundVariant) {
@@ -206,14 +206,14 @@ export default {
206
206
  styles = {
207
207
  ...(styles || {}),
208
208
  [`background-color`]: bgColour,
209
- ['border-radius']: borderRadius
209
+ ['border-radius']: borderRadius,
210
210
  }
211
211
  }
212
212
 
213
213
  if (this.bordered) {
214
214
  styles = {
215
215
  ...(styles || {}),
216
- [`border`]: `1px solid ` + colors.gray
216
+ [`border`]: `1px solid ` + colors.gray,
217
217
  }
218
218
  }
219
219
 
@@ -221,7 +221,7 @@ export default {
221
221
  },
222
222
  hasContentClass() {
223
223
  return this.contentClass.length > 0
224
- }
224
+ },
225
225
  },
226
226
  mounted() {
227
227
  window.addEventListener('resize', this.setColumnSize)
@@ -241,8 +241,8 @@ export default {
241
241
  this.$emit('isDesktopView', !isTabletView && !isMobileView)
242
242
  this.$emit('isMobileOrTabletView', isMobileView || isTabletView)
243
243
  })
244
- }
245
- }
244
+ },
245
+ },
246
246
  }
247
247
  </script>
248
248