wave-ui 1.45.5 → 1.45.7

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": "wave-ui",
3
- "version": "1.45.5",
3
+ "version": "1.45.7",
4
4
  "description": "An emerging UI framework for Vue.js & Vue 3 with only the bright side. :sunny:",
5
5
  "author": "Antoni Andre <antoniandre.web@gmail.com>",
6
6
  "main": "./dist/wave-ui.umd.js",
@@ -19,7 +19,8 @@
19
19
  :tabindex="-1"
20
20
  text
21
21
  @keypress.stop
22
- @click.stop="!item._disabled && toggleItem(item, $event)")
22
+ @click.stop="!item._disabled && toggleItem(item, $event)"
23
+ :class="{ 'w-accordion__expand-icon--expanded': item._expanded }")
23
24
  //- Title.
24
25
  slot(
25
26
  v-if="$scopedSlots[`item-title.${item.id || i + 1}`]"
@@ -34,7 +35,8 @@
34
35
  :icon="(item._expanded && collapseIcon) || expandIcon"
35
36
  text
36
37
  @keypress.stop
37
- @click.stop="!item._disabled && toggleItem(item, $event)")
38
+ @click.stop="!item._disabled && toggleItem(item, $event)"
39
+ :class="{ 'w-accordion__expand-icon--expanded': item._expanded }")
38
40
  //- Content.
39
41
  w-transition-expand(y)
40
42
  .w-accordion__item-content(v-if="item._expanded" :class="contentClass")
@@ -76,6 +78,7 @@ export default {
76
78
  computed: {
77
79
  accordionItems () {
78
80
  const items = typeof this.items === 'number' ? Array(this.items).fill({}) : this.items || []
81
+ // eslint-disable-next-line new-cap
79
82
  return items.map((item, _index) => new Vue.observable({
80
83
  ...item,
81
84
  _index,
@@ -148,8 +151,8 @@ export default {
148
151
  margin-right: $base-increment;
149
152
 
150
153
  .w-accordion--rotate-icon & {@include default-transition;}
151
- .w-accordion--rotate-icon .w-accordion__item--expanded & {transform: rotate(-180deg);}
152
- .w-accordion--rotate-icon.w-accordion--icon-right .w-accordion__item--expanded & {transform: rotate(180deg);}
154
+ &--expanded {transform: rotate(-180deg);}
155
+ .w-accordion--icon-right &--expanded {transform: rotate(180deg);}
153
156
 
154
157
  .w-icon:before {font-size: 1.1em;}
155
158
  }
@@ -40,7 +40,7 @@ export default {
40
40
  classes () {
41
41
  return {
42
42
  'd-block': this.block,
43
- 'row': this.row,
43
+ row: this.row,
44
44
  'align-center': this.alignCenter,
45
45
  'align-end': this.alignEnd,
46
46
  'justify-center': this.justifyCenter,
@@ -26,6 +26,7 @@ export default {
26
26
  justifyEnd: { type: Boolean },
27
27
  justifySpaceBetween: { type: Boolean },
28
28
  justifySpaceAround: { type: Boolean },
29
+ justifySpaceEvenly: { type: Boolean },
29
30
  basisZero: { type: Boolean },
30
31
  gap: { type: Number, default: 0 }
31
32
  },
@@ -48,6 +49,7 @@ export default {
48
49
  'justify-end': this.justifyEnd,
49
50
  'justify-space-between': this.justifySpaceBetween,
50
51
  'justify-space-around': this.justifySpaceAround,
52
+ 'justify-space-evenly': this.justifySpaceEvenly,
51
53
  'basis-zero': this.basisZero,
52
54
  [`w-flex--gap${this.gap}`]: this.gap
53
55
  }
@@ -273,7 +273,6 @@ export default {
273
273
  reader.addEventListener('progress', event => {
274
274
  if (event.loaded && event.total) {
275
275
  this.$set(file, 'progress', event.loaded * 100 / event.total)
276
- console.log(`Progress: ${Math.round(file.progress)}`)
277
276
  }
278
277
  })
279
278
 
@@ -106,6 +106,7 @@ export default {
106
106
  tabsItems () {
107
107
  const items = typeof this.items === 'number' ? Array(this.items).fill({}) : this.items
108
108
 
109
+ // eslint-disable-next-line new-cap
109
110
  return items.map((item, _index) => new Vue.observable({
110
111
  ...item,
111
112
  _index,
@@ -6,6 +6,6 @@
6
6
  */
7
7
  export const objectifyClasses = (classes = {}) => {
8
8
  if (typeof classes === 'string') classes = { [classes]: true }
9
- else if (typeof classes === 'array') classes = { [classes.join(' ')]: true }
9
+ else if (Array.isArray(classes)) classes = { [classes.join(' ')]: true }
10
10
  return classes
11
11
  }