wave-ui 1.55.0 → 1.56.2
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/dist/wave-ui.es.js
CHANGED
|
@@ -1056,7 +1056,11 @@ const __vue2_script$M = {
|
|
|
1056
1056
|
const css = document.createElement("style");
|
|
1057
1057
|
css.id = "wave-ui-styles";
|
|
1058
1058
|
css.innerHTML = this.dynamicStyles();
|
|
1059
|
-
document.head.
|
|
1059
|
+
const firstStyle = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
1060
|
+
if (firstStyle)
|
|
1061
|
+
firstStyle.before(css);
|
|
1062
|
+
else
|
|
1063
|
+
document.head.appendChild(css);
|
|
1060
1064
|
}
|
|
1061
1065
|
this.getBreakpoint(window.innerWidth);
|
|
1062
1066
|
window.addEventListener("resize", this.getBreakpoint);
|
|
@@ -3658,7 +3662,7 @@ var render$r = function() {
|
|
|
3658
3662
|
var _vm = this;
|
|
3659
3663
|
var _h = _vm.$createElement;
|
|
3660
3664
|
var _c = _vm._self._c || _h;
|
|
3661
|
-
return _c("transition", { attrs: { "name": _vm.transitionName, "appear": "" } }, [_vm.show ? _c("div", { staticClass: "w-notification", class: _vm.classes, style: _vm.styles }, [_c("w-alert", _vm._b({
|
|
3665
|
+
return _c("transition", { attrs: { "name": _vm.transitionName, "appear": "" } }, [_vm.show ? _c("div", { staticClass: "w-notification", class: _vm.classes, style: _vm.styles }, [_c("w-alert", _vm._b({ class: _vm.alertClasses, on: { "input": function($event) {
|
|
3662
3666
|
_vm.$emit("update:modelValue", false);
|
|
3663
3667
|
_vm.$emit("input", false);
|
|
3664
3668
|
} } }, "w-alert", _vm.alertProps, false), [_vm._t("default")], 2)], 1) : _vm._e()]);
|
|
@@ -3765,6 +3769,11 @@ const __vue2_script$r = {
|
|
|
3765
3769
|
[`w-notification--${this.position.join(" w-notification--")}`]: true
|
|
3766
3770
|
};
|
|
3767
3771
|
},
|
|
3772
|
+
alertClasses() {
|
|
3773
|
+
if (this.bgColor || (this.success || this.info || this.warning || this.error) && this.plain)
|
|
3774
|
+
return null;
|
|
3775
|
+
return "white--bg";
|
|
3776
|
+
},
|
|
3768
3777
|
styles() {
|
|
3769
3778
|
return {
|
|
3770
3779
|
zIndex: this.zIndex || this.zIndex === 0 || null
|