wave-ui 1.45.2 → 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/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +17 -15
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/wave-ui/components/w-accordion.vue +7 -4
- package/src/wave-ui/components/w-app.vue +1 -1
- package/src/wave-ui/components/w-flex.vue +2 -0
- package/src/wave-ui/components/w-input.vue +1 -1
- package/src/wave-ui/components/w-menu.vue +1 -1
- package/src/wave-ui/components/w-tabs/index.vue +1 -0
- package/src/wave-ui/components/w-textarea.vue +1 -1
- package/src/wave-ui/components/w-tooltip.vue +94 -94
- package/src/wave-ui/utils/index.js +1 -1
package/dist/wave-ui.es.js
CHANGED
|
@@ -545,14 +545,14 @@ var render$O = function() {
|
|
|
545
545
|
return null;
|
|
546
546
|
}
|
|
547
547
|
!item._disabled && _vm.toggleItem(item, $event);
|
|
548
|
-
} } }, [_vm.expandIcon && !_vm.expandIconRight ? _c("w-button", { staticClass: "w-accordion__expand-icon", attrs: { "icon": item._expanded && _vm.collapseIcon || _vm.expandIcon, "disabled": item._disabled || null, "tabindex": -1, "text": "" }, on: { "keypress": function($event) {
|
|
548
|
+
} } }, [_vm.expandIcon && !_vm.expandIconRight ? _c("w-button", { staticClass: "w-accordion__expand-icon", class: { "w-accordion__expand-icon--expanded": item._expanded }, attrs: { "icon": item._expanded && _vm.collapseIcon || _vm.expandIcon, "disabled": item._disabled || null, "tabindex": -1, "text": "" }, on: { "keypress": function($event) {
|
|
549
549
|
$event.stopPropagation();
|
|
550
550
|
}, "click": function($event) {
|
|
551
551
|
$event.stopPropagation();
|
|
552
552
|
!item._disabled && _vm.toggleItem(item, $event);
|
|
553
553
|
} } }) : _vm._e(), _vm.$scopedSlots["item-title." + (item.id || i + 1)] ? _vm._t("item-title." + (item.id || i + 1), null, { "item": _vm.getOriginalItem(item), "expanded": item._expanded, "index": i + 1 }) : _vm._t("item-title", function() {
|
|
554
554
|
return [_c("div", { staticClass: "grow", domProps: { "innerHTML": _vm._s(item[_vm.itemTitleKey]) } })];
|
|
555
|
-
}, { "item": _vm.getOriginalItem(item), "expanded": item._expanded, "index": i + 1 }), _vm.expandIcon && _vm.expandIconRight ? _c("w-button", { staticClass: "w-accordion__expand-icon", attrs: { "icon": item._expanded && _vm.collapseIcon || _vm.expandIcon, "text": "" }, on: { "keypress": function($event) {
|
|
555
|
+
}, { "item": _vm.getOriginalItem(item), "expanded": item._expanded, "index": i + 1 }), _vm.expandIcon && _vm.expandIconRight ? _c("w-button", { staticClass: "w-accordion__expand-icon", class: { "w-accordion__expand-icon--expanded": item._expanded }, attrs: { "icon": item._expanded && _vm.collapseIcon || _vm.expandIcon, "text": "" }, on: { "keypress": function($event) {
|
|
556
556
|
$event.stopPropagation();
|
|
557
557
|
}, "click": function($event) {
|
|
558
558
|
$event.stopPropagation();
|
|
@@ -992,7 +992,7 @@ const __vue2_script$L = {
|
|
|
992
992
|
classes() {
|
|
993
993
|
return {
|
|
994
994
|
"d-block": this.block,
|
|
995
|
-
|
|
995
|
+
row: this.row,
|
|
996
996
|
"align-center": this.alignCenter,
|
|
997
997
|
"align-end": this.alignEnd,
|
|
998
998
|
"justify-center": this.justifyCenter,
|
|
@@ -1303,7 +1303,7 @@ var wButton = /* @__PURE__ */ function() {
|
|
|
1303
1303
|
const objectifyClasses = (classes = {}) => {
|
|
1304
1304
|
if (typeof classes === "string")
|
|
1305
1305
|
classes = { [classes]: true };
|
|
1306
|
-
else if (
|
|
1306
|
+
else if (Array.isArray(classes))
|
|
1307
1307
|
classes = { [classes.join(" ")]: true };
|
|
1308
1308
|
return classes;
|
|
1309
1309
|
};
|
|
@@ -1997,6 +1997,7 @@ const __vue2_script$z = {
|
|
|
1997
1997
|
justifyEnd: { type: Boolean },
|
|
1998
1998
|
justifySpaceBetween: { type: Boolean },
|
|
1999
1999
|
justifySpaceAround: { type: Boolean },
|
|
2000
|
+
justifySpaceEvenly: { type: Boolean },
|
|
2000
2001
|
basisZero: { type: Boolean },
|
|
2001
2002
|
gap: { type: Number, default: 0 }
|
|
2002
2003
|
},
|
|
@@ -2018,6 +2019,7 @@ const __vue2_script$z = {
|
|
|
2018
2019
|
"justify-end": this.justifyEnd,
|
|
2019
2020
|
"justify-space-between": this.justifySpaceBetween,
|
|
2020
2021
|
"justify-space-around": this.justifySpaceAround,
|
|
2022
|
+
"justify-space-evenly": this.justifySpaceEvenly,
|
|
2021
2023
|
"basis-zero": this.basisZero,
|
|
2022
2024
|
[`w-flex--gap${this.gap}`]: this.gap
|
|
2023
2025
|
};
|
|
@@ -2605,7 +2607,7 @@ const __vue2_script$u = {
|
|
|
2605
2607
|
return listeners;
|
|
2606
2608
|
},
|
|
2607
2609
|
hasValue() {
|
|
2608
|
-
return this.inputValue || ["date", "time"].includes(this.type) || this.type === "number" && this.inputNumberError || this.type === "file" && this.inputFiles.length;
|
|
2610
|
+
return this.inputValue || this.inputValue === 0 || ["date", "time"].includes(this.type) || this.type === "number" && this.inputNumberError || this.type === "file" && this.inputFiles.length;
|
|
2609
2611
|
},
|
|
2610
2612
|
hasLabel() {
|
|
2611
2613
|
return this.label || this.$slots.default;
|
|
@@ -2686,7 +2688,6 @@ const __vue2_script$u = {
|
|
|
2686
2688
|
reader.addEventListener("progress", (event) => {
|
|
2687
2689
|
if (event.loaded && event.total) {
|
|
2688
2690
|
this.$set(file, "progress", event.loaded * 100 / event.total);
|
|
2689
|
-
console.log(`Progress: ${Math.round(file.progress)}`);
|
|
2690
2691
|
}
|
|
2691
2692
|
});
|
|
2692
2693
|
reader.readAsDataURL(original);
|
|
@@ -5282,7 +5283,7 @@ const __vue2_script$b = {
|
|
|
5282
5283
|
return listeners;
|
|
5283
5284
|
},
|
|
5284
5285
|
hasValue() {
|
|
5285
|
-
return this.inputValue;
|
|
5286
|
+
return this.inputValue || this.inputValue === 0;
|
|
5286
5287
|
},
|
|
5287
5288
|
hasLabel() {
|
|
5288
5289
|
return this.label || this.$slots.default;
|
|
@@ -5481,7 +5482,7 @@ var render$8 = function() {
|
|
|
5481
5482
|
var _vm = this;
|
|
5482
5483
|
var _h = _vm.$createElement;
|
|
5483
5484
|
var _c = _vm._self._c || _h;
|
|
5484
|
-
return _c("div", {
|
|
5485
|
+
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
5486
|
};
|
|
5486
5487
|
var staticRenderFns$8 = [];
|
|
5487
5488
|
var wTooltip_vue_vue_type_style_index_0_lang = "";
|
|
@@ -5547,7 +5548,7 @@ const __vue2_script$8 = {
|
|
|
5547
5548
|
return target;
|
|
5548
5549
|
},
|
|
5549
5550
|
tooltipParentEl() {
|
|
5550
|
-
return this.detachTo ? this.detachToTarget : this.$
|
|
5551
|
+
return this.detachTo ? this.detachToTarget : this.$el;
|
|
5551
5552
|
},
|
|
5552
5553
|
position() {
|
|
5553
5554
|
return this.top && "top" || this.bottom && "bottom" || this.left && "left" || this.right && "right" || "bottom";
|
|
@@ -5581,8 +5582,8 @@ const __vue2_script$8 = {
|
|
|
5581
5582
|
},
|
|
5582
5583
|
classes() {
|
|
5583
5584
|
return __spreadProps(__spreadValues({
|
|
5584
|
-
[this.color]:
|
|
5585
|
-
[`${this.bgColor}
|
|
5585
|
+
[this.color]: this.color,
|
|
5586
|
+
[`${this.bgColor}--bg`]: this.bgColor
|
|
5586
5587
|
}, this.tooltipClasses), {
|
|
5587
5588
|
[`w-tooltip--${this.position}`]: true,
|
|
5588
5589
|
"w-tooltip--tile": this.tile,
|
|
@@ -5597,8 +5598,9 @@ const __vue2_script$8 = {
|
|
|
5597
5598
|
styles() {
|
|
5598
5599
|
return {
|
|
5599
5600
|
zIndex: this.zIndex || this.zIndex === 0 || null,
|
|
5600
|
-
top: `${~~this.tooltipCoordinates.top}px
|
|
5601
|
-
left: `${~~this.tooltipCoordinates.left}px`
|
|
5601
|
+
top: this.tooltipCoordinates.top && `${~~this.tooltipCoordinates.top}px` || null,
|
|
5602
|
+
left: this.tooltipCoordinates.left && `${~~this.tooltipCoordinates.left}px` || null,
|
|
5603
|
+
"--w-tooltip-bg-color": this.$waveui.colors[this.bgColor || "white"]
|
|
5602
5604
|
};
|
|
5603
5605
|
},
|
|
5604
5606
|
eventHandlers() {
|
|
@@ -5685,7 +5687,7 @@ const __vue2_script$8 = {
|
|
|
5685
5687
|
return coords;
|
|
5686
5688
|
},
|
|
5687
5689
|
insertTooltip() {
|
|
5688
|
-
const wrapper = this.$
|
|
5690
|
+
const wrapper = this.$el;
|
|
5689
5691
|
this.tooltipEl = this.$refs.tooltip.$el || this.$refs.tooltip;
|
|
5690
5692
|
wrapper.parentNode.insertBefore(this.activatorEl, wrapper);
|
|
5691
5693
|
this.detachToTarget.appendChild(this.$refs.tooltip);
|
|
@@ -5696,7 +5698,7 @@ const __vue2_script$8 = {
|
|
|
5696
5698
|
}
|
|
5697
5699
|
},
|
|
5698
5700
|
mounted() {
|
|
5699
|
-
this.activatorEl = this.$
|
|
5701
|
+
this.activatorEl = this.$el.firstElementChild;
|
|
5700
5702
|
if (this.detachTo)
|
|
5701
5703
|
this.insertTooltip();
|
|
5702
5704
|
if (this.value)
|