wave-ui 1.64.0 → 1.65.1

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.64.0",
3
+ "version": "1.65.1",
4
4
  "description": "An emerging UI framework for Vue.js (2 & 3) with only the bright side. :sunny:",
5
5
  "author": "Antoni Andre <antoniandre.web@gmail.com>",
6
6
  "homepage": "https://antoniandre.github.io/wave-ui",
@@ -68,7 +68,7 @@ export default {
68
68
  // The classes and styles are not in $attrs. Add them from $vnode.data.staticClass, so
69
69
  // the button gets these classes wen used with tooltip.
70
70
  // https://v2.vuejs.org/v2/guide/components-props.html#Disabling-Attribute-Inheritance
71
- class: this.tooltip && this.$vnode.data.staticClass
71
+ class: this.tooltip && [this.$vnode.data.staticClass, this.$vnode.data.class]
72
72
  }
73
73
  }
74
74
  }
@@ -1,34 +1,34 @@
1
1
  <template lang="pug">
2
- .w-confirm
3
- w-menu(v-model="showPopup" v-bind="wMenuProps")
4
- template(#activator="{ on }")
5
- w-button.w-confirm__button(
6
- v-on="{ ...$listeners, ...(disablePrompt ? {} : on) }"
7
- v-bind="buttonProps")
8
- slot
9
- w-flex(:column="!inline" align-center)
10
- div
11
- slot(name="question") {{ question }}
12
- .w-flex.justify-end(:class="inline ? 'ml2' : 'mt2'")
13
- w-button.mr2(
14
- v-if="cancel !== false"
15
- v-bind="cancelButtonProps"
16
- :bg-color="(cancelButton || {}).bgColor || 'error'"
17
- @keyup.escape="!persistent && onCancel()"
18
- @click="onCancel")
19
- slot(name="cancel") {{ cancelButton.label }}
20
- w-button(
21
- v-bind="confirmButtonProps"
22
- :bg-color="(confirmButton || {}).bgColor || 'success'"
23
- v-focus
24
- @keyup.escape="!persistent && onCancel()"
25
- @click="onConfirm")
26
- slot(name="confirm") {{ confirmButton.label }}
2
+ w-menu(v-model="showPopup" v-bind="wMenuProps")
3
+ template(#activator="{ on }")
4
+ w-button.w-confirm(
5
+ v-on="{ ...$listeners, ...(disablePrompt ? {} : on) }"
6
+ v-bind="buttonProps")
7
+ slot
8
+ w-flex(:column="!inline" align-center)
9
+ div
10
+ slot(name="question") {{ question }}
11
+ .w-flex.justify-end(:class="inline ? 'ml2' : 'mt2'")
12
+ w-button.mr2(
13
+ v-if="cancel !== false"
14
+ v-bind="cancelButtonProps"
15
+ :bg-color="(cancelButton || {}).bgColor || 'error'"
16
+ @keyup.escape="!persistent && onCancel()"
17
+ @click="onCancel")
18
+ slot(name="cancel") {{ cancelButton.label }}
19
+ w-button(
20
+ v-bind="confirmButtonProps"
21
+ :bg-color="(confirmButton || {}).bgColor || 'success'"
22
+ v-focus
23
+ @keyup.escape="!persistent && onCancel()"
24
+ @click="onConfirm")
25
+ slot(name="confirm") {{ confirmButton.label }}
27
26
  </template>
28
27
 
29
28
  <script>
30
29
  export default {
31
30
  name: 'w-confirm',
31
+ inheritAttrs: false, // The attrs are only bound to the button, not the w-menu.
32
32
  props: {
33
33
  // Main button props.
34
34
  bgColor: { type: String },