wave-ui 1.45.1 → 1.45.5
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.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +11 -10
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/wave-ui/components/w-input.vue +1 -0
- package/src/wave-ui/components/w-menu.vue +1 -1
- package/src/wave-ui/components/w-textarea.vue +1 -1
- package/src/wave-ui/components/w-tooltip.vue +94 -94
- package/src/wave-ui/scss/_base.scss +0 -21
- package/src/wave-ui/scss/_variables.scss +4 -0
- package/src/wave-ui/scss/index.scss +0 -1
package/dist/wave-ui.es.js
CHANGED
|
@@ -2605,7 +2605,7 @@ const __vue2_script$u = {
|
|
|
2605
2605
|
return listeners;
|
|
2606
2606
|
},
|
|
2607
2607
|
hasValue() {
|
|
2608
|
-
return this.inputValue || ["date", "time"].includes(this.type) || this.type === "number" && this.inputNumberError || this.type === "file" && this.inputFiles.length;
|
|
2608
|
+
return this.inputValue || this.inputValue === 0 || ["date", "time"].includes(this.type) || this.type === "number" && this.inputNumberError || this.type === "file" && this.inputFiles.length;
|
|
2609
2609
|
},
|
|
2610
2610
|
hasLabel() {
|
|
2611
2611
|
return this.label || this.$slots.default;
|
|
@@ -5282,7 +5282,7 @@ const __vue2_script$b = {
|
|
|
5282
5282
|
return listeners;
|
|
5283
5283
|
},
|
|
5284
5284
|
hasValue() {
|
|
5285
|
-
return this.inputValue;
|
|
5285
|
+
return this.inputValue || this.inputValue === 0;
|
|
5286
5286
|
},
|
|
5287
5287
|
hasLabel() {
|
|
5288
5288
|
return this.label || this.$slots.default;
|
|
@@ -5481,7 +5481,7 @@ var render$8 = function() {
|
|
|
5481
5481
|
var _vm = this;
|
|
5482
5482
|
var _h = _vm.$createElement;
|
|
5483
5483
|
var _c = _vm._self._c || _h;
|
|
5484
|
-
return _c("div", {
|
|
5484
|
+
return _c("div", { staticClass: "w-tooltip-wrap", class: { "w-tooltip-wrap--attached": !_vm.detachTo } }, [_vm._t("activator", null, { "on": _vm.eventHandlers }), _c("transition", { attrs: { "name": _vm.transitionName, "appear": "" } }, [_c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.showTooltip, expression: "showTooltip" }], ref: "tooltip", staticClass: "w-tooltip", class: _vm.classes, style: _vm.styles }, [_vm._t("default")], 2)])], 2);
|
|
5485
5485
|
};
|
|
5486
5486
|
var staticRenderFns$8 = [];
|
|
5487
5487
|
var wTooltip_vue_vue_type_style_index_0_lang = "";
|
|
@@ -5547,7 +5547,7 @@ const __vue2_script$8 = {
|
|
|
5547
5547
|
return target;
|
|
5548
5548
|
},
|
|
5549
5549
|
tooltipParentEl() {
|
|
5550
|
-
return this.detachTo ? this.detachToTarget : this.$
|
|
5550
|
+
return this.detachTo ? this.detachToTarget : this.$el;
|
|
5551
5551
|
},
|
|
5552
5552
|
position() {
|
|
5553
5553
|
return this.top && "top" || this.bottom && "bottom" || this.left && "left" || this.right && "right" || "bottom";
|
|
@@ -5581,8 +5581,8 @@ const __vue2_script$8 = {
|
|
|
5581
5581
|
},
|
|
5582
5582
|
classes() {
|
|
5583
5583
|
return __spreadProps(__spreadValues({
|
|
5584
|
-
[this.color]:
|
|
5585
|
-
[`${this.bgColor}
|
|
5584
|
+
[this.color]: this.color,
|
|
5585
|
+
[`${this.bgColor}--bg`]: this.bgColor
|
|
5586
5586
|
}, this.tooltipClasses), {
|
|
5587
5587
|
[`w-tooltip--${this.position}`]: true,
|
|
5588
5588
|
"w-tooltip--tile": this.tile,
|
|
@@ -5597,8 +5597,9 @@ const __vue2_script$8 = {
|
|
|
5597
5597
|
styles() {
|
|
5598
5598
|
return {
|
|
5599
5599
|
zIndex: this.zIndex || this.zIndex === 0 || null,
|
|
5600
|
-
top: `${~~this.tooltipCoordinates.top}px
|
|
5601
|
-
left: `${~~this.tooltipCoordinates.left}px`
|
|
5600
|
+
top: this.tooltipCoordinates.top && `${~~this.tooltipCoordinates.top}px` || null,
|
|
5601
|
+
left: this.tooltipCoordinates.left && `${~~this.tooltipCoordinates.left}px` || null,
|
|
5602
|
+
"--w-tooltip-bg-color": this.$waveui.colors[this.bgColor || "white"]
|
|
5602
5603
|
};
|
|
5603
5604
|
},
|
|
5604
5605
|
eventHandlers() {
|
|
@@ -5685,7 +5686,7 @@ const __vue2_script$8 = {
|
|
|
5685
5686
|
return coords;
|
|
5686
5687
|
},
|
|
5687
5688
|
insertTooltip() {
|
|
5688
|
-
const wrapper = this.$
|
|
5689
|
+
const wrapper = this.$el;
|
|
5689
5690
|
this.tooltipEl = this.$refs.tooltip.$el || this.$refs.tooltip;
|
|
5690
5691
|
wrapper.parentNode.insertBefore(this.activatorEl, wrapper);
|
|
5691
5692
|
this.detachToTarget.appendChild(this.$refs.tooltip);
|
|
@@ -5696,7 +5697,7 @@ const __vue2_script$8 = {
|
|
|
5696
5697
|
}
|
|
5697
5698
|
},
|
|
5698
5699
|
mounted() {
|
|
5699
|
-
this.activatorEl = this.$
|
|
5700
|
+
this.activatorEl = this.$el.firstElementChild;
|
|
5700
5701
|
if (this.detachTo)
|
|
5701
5702
|
this.insertTooltip();
|
|
5702
5703
|
if (this.value)
|