wave-ui 2.40.2 → 2.40.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/README.md +2 -0
- package/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +82 -69
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +4 -3
- package/src/wave-ui/components/w-divider.vue +1 -1
- package/src/wave-ui/components/w-form.vue +3 -5
- package/src/wave-ui/core.js +2 -0
package/dist/wave-ui.es.js
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
2
7
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
3
32
|
var __publicField = (obj, key, value) => {
|
|
4
33
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
34
|
return value;
|
|
@@ -63,17 +92,16 @@ const _NotificationManager$1 = class {
|
|
|
63
92
|
};
|
|
64
93
|
}
|
|
65
94
|
notify(...args) {
|
|
66
|
-
let notification = {
|
|
95
|
+
let notification = __spreadProps(__spreadValues({}, this._notificationDefaults), { _uid: this._uid++ });
|
|
67
96
|
if (typeof args[0] === "object")
|
|
68
|
-
notification = {
|
|
97
|
+
notification = __spreadValues(__spreadValues({}, notification), args[0]);
|
|
69
98
|
else {
|
|
70
99
|
const [message, type, timeout] = args;
|
|
71
|
-
notification = {
|
|
72
|
-
...notification,
|
|
100
|
+
notification = __spreadProps(__spreadValues({}, notification), {
|
|
73
101
|
message: message || "",
|
|
74
102
|
[type === void 0 ? "info" : type]: true,
|
|
75
103
|
timeout: timeout || timeout === 0 ? parseFloat(timeout) : 4e3
|
|
76
|
-
};
|
|
104
|
+
});
|
|
77
105
|
}
|
|
78
106
|
this.notifications.push(notification);
|
|
79
107
|
if (~~notification.timeout !== 0)
|
|
@@ -409,7 +437,7 @@ const _WaveUI = class {
|
|
|
409
437
|
obj[color.label] = color.color;
|
|
410
438
|
color.shades.forEach((shade) => obj[shade.label] = shade.color);
|
|
411
439
|
return obj;
|
|
412
|
-
}, {
|
|
440
|
+
}, __spreadProps(__spreadValues({}, config.colors), { black: "#000", white: "#fff", transparent: "transparent", inherit: "inherit" })));
|
|
413
441
|
__publicField(this, "config", {});
|
|
414
442
|
if (_WaveUI.instance)
|
|
415
443
|
return _WaveUI.instance;
|
|
@@ -437,6 +465,7 @@ const _WaveUI = class {
|
|
|
437
465
|
}
|
|
438
466
|
}
|
|
439
467
|
this.config = config;
|
|
468
|
+
this.notify = (...args) => notificationManager.notify(...args);
|
|
440
469
|
_WaveUI.instance = this;
|
|
441
470
|
app.config.globalProperties.$waveui = reactive(this);
|
|
442
471
|
}
|
|
@@ -634,8 +663,7 @@ const _sfc_main$P = {
|
|
|
634
663
|
},
|
|
635
664
|
updateItems() {
|
|
636
665
|
const items = typeof this.items === "number" ? Array(this.items).fill({}) : this.items || [];
|
|
637
|
-
this.accordionItems = items.map((item, _index) => ({
|
|
638
|
-
...item,
|
|
666
|
+
this.accordionItems = items.map((item, _index) => __spreadProps(__spreadValues({}, item), {
|
|
639
667
|
_index,
|
|
640
668
|
_expanded: this.modelValue && this.modelValue[_index],
|
|
641
669
|
_disabled: !!item.disabled
|
|
@@ -826,7 +854,7 @@ const _sfc_main$N = {
|
|
|
826
854
|
},
|
|
827
855
|
methods: {
|
|
828
856
|
notifProps(notif) {
|
|
829
|
-
const { _value, _uid, message, timeout,
|
|
857
|
+
const _a = notif, { _value, _uid, message, timeout } = _a, props = __objRest(_a, ["_value", "_uid", "message", "timeout"]);
|
|
830
858
|
return props;
|
|
831
859
|
}
|
|
832
860
|
},
|
|
@@ -846,7 +874,7 @@ const cssVars = {
|
|
|
846
874
|
const generateColors = (config2) => {
|
|
847
875
|
let styles = "";
|
|
848
876
|
const { cssScope } = cssVars;
|
|
849
|
-
const { info, warning, success, error,
|
|
877
|
+
const _a = config2.colors, { info, warning, success, error } = _a, colors2 = __objRest(_a, ["info", "warning", "success", "error"]);
|
|
850
878
|
for (const color in colors2) {
|
|
851
879
|
styles += `${cssScope} .${color}--bg{background-color:${config2.colors[color]}}${cssScope} .${color}{color:${config2.colors[color]}}`;
|
|
852
880
|
}
|
|
@@ -1309,8 +1337,7 @@ const _sfc_main$J = {
|
|
|
1309
1337
|
return this.hasRouter ? this.$router.resolve(this.route).href : this.route;
|
|
1310
1338
|
},
|
|
1311
1339
|
listeners() {
|
|
1312
|
-
return this.route && this.hasRouter && !this.forceLink && !this.externalLink ? {
|
|
1313
|
-
...this.$attrs,
|
|
1340
|
+
return this.route && this.hasRouter && !this.forceLink && !this.externalLink ? __spreadProps(__spreadValues({}, this.$attrs), {
|
|
1314
1341
|
click: (e) => {
|
|
1315
1342
|
if (this.$attrs.click)
|
|
1316
1343
|
this.$attrs.click(e);
|
|
@@ -1318,7 +1345,7 @@ const _sfc_main$J = {
|
|
|
1318
1345
|
e.stopPropagation();
|
|
1319
1346
|
e.preventDefault();
|
|
1320
1347
|
}
|
|
1321
|
-
} : this.$attrs;
|
|
1348
|
+
}) : this.$attrs;
|
|
1322
1349
|
},
|
|
1323
1350
|
size() {
|
|
1324
1351
|
return this.xs && "xs" || this.sm && "sm" || this.lg && "lg" || this.xl && "xl" || "md";
|
|
@@ -1376,7 +1403,7 @@ function render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1376
1403
|
}, [
|
|
1377
1404
|
_ctx.$slots.title || $props.title ? (openBlock(), createElementBlock("div", {
|
|
1378
1405
|
key: 0,
|
|
1379
|
-
class: normalizeClass(["w-card__title", { "w-card__title--has-toolbar": _ctx.$slots.title && $options.titleHasToolbar,
|
|
1406
|
+
class: normalizeClass(["w-card__title", __spreadValues({ "w-card__title--has-toolbar": _ctx.$slots.title && $options.titleHasToolbar }, $options.titleClasses)])
|
|
1380
1407
|
}, [
|
|
1381
1408
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
1382
1409
|
createTextVNode(toDisplayString($props.title), 1)
|
|
@@ -1437,11 +1464,10 @@ const _sfc_main$I = {
|
|
|
1437
1464
|
return actions && actions().map((vnode) => vnode.type.name).join("").includes("w-toolbar");
|
|
1438
1465
|
},
|
|
1439
1466
|
imgProps() {
|
|
1440
|
-
return {
|
|
1467
|
+
return __spreadValues({
|
|
1441
1468
|
tag: "div",
|
|
1442
|
-
ratio: 1 / 2
|
|
1443
|
-
|
|
1444
|
-
};
|
|
1469
|
+
ratio: 1 / 2
|
|
1470
|
+
}, this.imageProps);
|
|
1445
1471
|
},
|
|
1446
1472
|
classes() {
|
|
1447
1473
|
return {
|
|
@@ -1708,14 +1734,13 @@ const _sfc_main$G = {
|
|
|
1708
1734
|
checkboxItems() {
|
|
1709
1735
|
return (this.items || []).map((item, i) => {
|
|
1710
1736
|
const itemValue = item[this.itemValueKey] === void 0 ? item[this.itemLabelKey] || i : item[this.itemValueKey];
|
|
1711
|
-
return reactive({
|
|
1712
|
-
...item,
|
|
1737
|
+
return reactive(__spreadProps(__spreadValues({}, item), {
|
|
1713
1738
|
label: item[this.itemLabelKey],
|
|
1714
1739
|
_index: i,
|
|
1715
1740
|
value: itemValue,
|
|
1716
1741
|
color: item[this.itemColorKey] || this.color,
|
|
1717
1742
|
_isChecked: this.modelValue && this.modelValue.includes(itemValue)
|
|
1718
|
-
});
|
|
1743
|
+
}));
|
|
1719
1744
|
});
|
|
1720
1745
|
},
|
|
1721
1746
|
classes() {
|
|
@@ -1754,7 +1779,7 @@ function render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1754
1779
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.showPopup = $event)
|
|
1755
1780
|
}, $options.wMenuProps), {
|
|
1756
1781
|
activator: withCtx(({ on }) => [
|
|
1757
|
-
createVNode(_component_w_button, mergeProps({ class: "w-confirm__button" }, {
|
|
1782
|
+
createVNode(_component_w_button, mergeProps({ class: "w-confirm__button" }, __spreadValues(__spreadValues(__spreadValues({}, _ctx.$attrs), $options.buttonProps), on)), {
|
|
1758
1783
|
default: withCtx(() => [
|
|
1759
1784
|
renderSlot(_ctx.$slots, "default")
|
|
1760
1785
|
]),
|
|
@@ -1846,7 +1871,7 @@ const _sfc_main$F = {
|
|
|
1846
1871
|
return button;
|
|
1847
1872
|
},
|
|
1848
1873
|
cancelButtonProps() {
|
|
1849
|
-
const { label,
|
|
1874
|
+
const _a = this.cancelButton, { label } = _a, props = __objRest(_a, ["label"]);
|
|
1850
1875
|
return props;
|
|
1851
1876
|
},
|
|
1852
1877
|
confirmButton() {
|
|
@@ -1856,11 +1881,11 @@ const _sfc_main$F = {
|
|
|
1856
1881
|
return button;
|
|
1857
1882
|
},
|
|
1858
1883
|
confirmButtonProps() {
|
|
1859
|
-
const { label,
|
|
1884
|
+
const _a = this.confirmButton, { label } = _a, props = __objRest(_a, ["label"]);
|
|
1860
1885
|
return props;
|
|
1861
1886
|
},
|
|
1862
1887
|
wMenuProps() {
|
|
1863
|
-
return {
|
|
1888
|
+
return __spreadValues({
|
|
1864
1889
|
top: this.top,
|
|
1865
1890
|
bottom: this.bottom,
|
|
1866
1891
|
left: this.left,
|
|
@@ -1871,17 +1896,15 @@ const _sfc_main$F = {
|
|
|
1871
1896
|
alignLeft: this.alignLeft,
|
|
1872
1897
|
alignRight: this.alignRight,
|
|
1873
1898
|
persistent: this.persistent,
|
|
1874
|
-
transition: this.transition
|
|
1875
|
-
|
|
1876
|
-
};
|
|
1899
|
+
transition: this.transition
|
|
1900
|
+
}, this.menu);
|
|
1877
1901
|
},
|
|
1878
1902
|
buttonProps() {
|
|
1879
|
-
return {
|
|
1903
|
+
return __spreadValues({
|
|
1880
1904
|
bgColor: this.bgColor,
|
|
1881
1905
|
color: this.color,
|
|
1882
|
-
icon: this.icon
|
|
1883
|
-
|
|
1884
|
-
};
|
|
1906
|
+
icon: this.icon
|
|
1907
|
+
}, this.mainButton);
|
|
1885
1908
|
}
|
|
1886
1909
|
},
|
|
1887
1910
|
methods: {
|
|
@@ -2053,11 +2076,11 @@ const _sfc_main$D = {
|
|
|
2053
2076
|
}
|
|
2054
2077
|
};
|
|
2055
2078
|
var wDialog = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", render$D]]);
|
|
2056
|
-
const _hoisted_1$j = ["aria-orientation"];
|
|
2079
|
+
const _hoisted_1$j = ["role", "aria-orientation"];
|
|
2057
2080
|
function render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2058
2081
|
return openBlock(), createElementBlock("div", {
|
|
2059
2082
|
class: normalizeClass(["w-divider", $options.classes]),
|
|
2060
|
-
role: "presentation",
|
|
2083
|
+
role: _ctx.$slots.default ? null : "presentation",
|
|
2061
2084
|
"aria-orientation": $props.vertical ? "vertical" : "horizontal"
|
|
2062
2085
|
}, [
|
|
2063
2086
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -2445,8 +2468,6 @@ const _sfc_main$z = {
|
|
|
2445
2468
|
el.Validation.message = validationMessage;
|
|
2446
2469
|
},
|
|
2447
2470
|
reset(e) {
|
|
2448
|
-
if (!e)
|
|
2449
|
-
return;
|
|
2450
2471
|
this.status = null;
|
|
2451
2472
|
this.formElements.forEach((item) => item.reset());
|
|
2452
2473
|
this.updateErrorsCount(0, true);
|
|
@@ -2647,10 +2668,7 @@ const _sfc_main$x = {
|
|
|
2647
2668
|
return obj;
|
|
2648
2669
|
}, {});
|
|
2649
2670
|
}
|
|
2650
|
-
return {
|
|
2651
|
-
...breakpointsColumns || { [`columns${this.columns}`]: this.columns },
|
|
2652
|
-
...breakpointsGap || { [`gap${this.gap}`]: this.gap }
|
|
2653
|
-
};
|
|
2671
|
+
return __spreadValues(__spreadValues({}, breakpointsColumns || { [`columns${this.columns}`]: this.columns }), breakpointsGap || { [`gap${this.gap}`]: this.gap });
|
|
2654
2672
|
}
|
|
2655
2673
|
}
|
|
2656
2674
|
};
|
|
@@ -3161,15 +3179,15 @@ const _sfc_main$u = {
|
|
|
3161
3179
|
},
|
|
3162
3180
|
computed: {
|
|
3163
3181
|
attrs() {
|
|
3164
|
-
const { class: classes,
|
|
3182
|
+
const _a = this.$attrs, { class: classes } = _a, attrs = __objRest(_a, ["class"]);
|
|
3165
3183
|
return attrs;
|
|
3166
3184
|
},
|
|
3167
3185
|
listeners() {
|
|
3168
|
-
const { input, focus, blur,
|
|
3186
|
+
const _a = this.$attrs, { input, focus, blur } = _a, listeners = __objRest(_a, ["input", "focus", "blur"]);
|
|
3169
3187
|
return listeners;
|
|
3170
3188
|
},
|
|
3171
3189
|
attrs() {
|
|
3172
|
-
const { class: Class,
|
|
3190
|
+
const _a = this.$attrs, { class: Class } = _a, htmlAttrs = __objRest(_a, ["class"]);
|
|
3173
3191
|
return htmlAttrs;
|
|
3174
3192
|
},
|
|
3175
3193
|
hasValue() {
|
|
@@ -3585,7 +3603,7 @@ const _sfc_main$t = {
|
|
|
3585
3603
|
const items = this.selectedItems.map((item) => {
|
|
3586
3604
|
if (!this.returnObject)
|
|
3587
3605
|
return item._value;
|
|
3588
|
-
const { _value, _selected,
|
|
3606
|
+
const _a = item, { _value, _selected } = _a, Item = __objRest(_a, ["_value", "_selected"]);
|
|
3589
3607
|
return Item;
|
|
3590
3608
|
});
|
|
3591
3609
|
const selection = this.isMultipleSelect ? items : items[0] !== void 0 ? items[0] : null;
|
|
@@ -3600,13 +3618,12 @@ const _sfc_main$t = {
|
|
|
3600
3618
|
this.$el.querySelector(`#${this.listId}_item-${index2 + 1}`).focus();
|
|
3601
3619
|
},
|
|
3602
3620
|
cleanLi(li) {
|
|
3603
|
-
const { _index, _value, _label, _selected, _focused,
|
|
3621
|
+
const _a = li, { _index, _value, _label, _selected, _focused } = _a, cleanLi = __objRest(_a, ["_index", "_value", "_label", "_selected", "_focused"]);
|
|
3604
3622
|
return cleanLi;
|
|
3605
3623
|
},
|
|
3606
3624
|
refreshListItems() {
|
|
3607
3625
|
const items = typeof this.items === "number" ? Array(this.items).fill({}) : this.items || [];
|
|
3608
|
-
this.listItems = items.map((item, i) => ({
|
|
3609
|
-
...item,
|
|
3626
|
+
this.listItems = items.map((item, i) => __spreadProps(__spreadValues({}, item), {
|
|
3610
3627
|
_index: i,
|
|
3611
3628
|
_value: item[this.itemValueKey] === void 0 ? item[this.itemLabelKey] || i : item[this.itemValueKey],
|
|
3612
3629
|
_selected: item._selected || false,
|
|
@@ -3754,11 +3771,10 @@ var DetachableMixin = {
|
|
|
3754
3771
|
if (!this.fixed) {
|
|
3755
3772
|
const { top: targetTop, left: targetLeft } = this.detachableParentEl.getBoundingClientRect();
|
|
3756
3773
|
const computedStyles = window.getComputedStyle(this.detachableParentEl, null);
|
|
3757
|
-
coords = {
|
|
3758
|
-
...coords,
|
|
3774
|
+
coords = __spreadProps(__spreadValues({}, coords), {
|
|
3759
3775
|
top: top - targetTop + this.detachableParentEl.scrollTop - parseInt(computedStyles.getPropertyValue("border-top-width")),
|
|
3760
3776
|
left: left - targetLeft + this.detachableParentEl.scrollLeft - parseInt(computedStyles.getPropertyValue("border-left-width"))
|
|
3761
|
-
};
|
|
3777
|
+
});
|
|
3762
3778
|
}
|
|
3763
3779
|
return coords;
|
|
3764
3780
|
},
|
|
@@ -4035,16 +4051,15 @@ const _sfc_main$s = {
|
|
|
4035
4051
|
return objectifyClasses(this.contentClass);
|
|
4036
4052
|
},
|
|
4037
4053
|
overlayClasses() {
|
|
4038
|
-
return {
|
|
4039
|
-
...objectifyClasses(this.overlayClass),
|
|
4054
|
+
return __spreadProps(__spreadValues({}, objectifyClasses(this.overlayClass)), {
|
|
4040
4055
|
"w-overlay--no-pointer-event": this.showOnHover
|
|
4041
|
-
};
|
|
4056
|
+
});
|
|
4042
4057
|
},
|
|
4043
4058
|
classes() {
|
|
4044
|
-
return {
|
|
4059
|
+
return __spreadProps(__spreadValues({
|
|
4045
4060
|
[this.color]: this.color,
|
|
4046
|
-
[`${this.bgColor}--bg`]: this.bgColor
|
|
4047
|
-
|
|
4061
|
+
[`${this.bgColor}--bg`]: this.bgColor
|
|
4062
|
+
}, this.menuClasses), {
|
|
4048
4063
|
[`w-menu--${this.position}`]: !this.noPosition,
|
|
4049
4064
|
[`w-menu--align-${this.alignment}`]: !this.noPosition && this.alignment,
|
|
4050
4065
|
"w-menu--tile": this.tile,
|
|
@@ -4053,7 +4068,7 @@ const _sfc_main$s = {
|
|
|
4053
4068
|
"w-menu--arrow": this.arrow,
|
|
4054
4069
|
"w-menu--shadow": this.shadow,
|
|
4055
4070
|
"w-menu--fixed": this.fixed
|
|
4056
|
-
};
|
|
4071
|
+
});
|
|
4057
4072
|
},
|
|
4058
4073
|
styles() {
|
|
4059
4074
|
return {
|
|
@@ -4728,8 +4743,7 @@ const _sfc_main$m = {
|
|
|
4728
4743
|
}),
|
|
4729
4744
|
computed: {
|
|
4730
4745
|
radioItems() {
|
|
4731
|
-
return (this.items || []).map((item, i) => ({
|
|
4732
|
-
...item,
|
|
4746
|
+
return (this.items || []).map((item, i) => __spreadProps(__spreadValues({}, item), {
|
|
4733
4747
|
_index: i,
|
|
4734
4748
|
label: item[this.itemLabelKey],
|
|
4735
4749
|
value: item[this.itemValueKey] === void 0 ? item[this.itemLabelKey] || i : item[this.itemValueKey],
|
|
@@ -5134,7 +5148,7 @@ const _sfc_main$k = {
|
|
|
5134
5148
|
computed: {
|
|
5135
5149
|
selectItems() {
|
|
5136
5150
|
return this.items.map((item, i) => {
|
|
5137
|
-
const obj = {
|
|
5151
|
+
const obj = __spreadValues({}, item);
|
|
5138
5152
|
obj.value = obj[this.itemValueKey] === void 0 ? obj[this.itemLabelKey] || i : obj[this.itemValueKey];
|
|
5139
5153
|
obj.index = i;
|
|
5140
5154
|
return obj;
|
|
@@ -5930,11 +5944,10 @@ const _sfc_main$e = {
|
|
|
5930
5944
|
},
|
|
5931
5945
|
tabsItems() {
|
|
5932
5946
|
const items = typeof this.items === "number" ? Array(this.items).fill({}) : this.items;
|
|
5933
|
-
return items.map((item, _index) => reactive({
|
|
5934
|
-
...item,
|
|
5947
|
+
return items.map((item, _index) => reactive(__spreadProps(__spreadValues({}, item), {
|
|
5935
5948
|
_index,
|
|
5936
5949
|
_disabled: !!item.disabled
|
|
5937
|
-
}));
|
|
5950
|
+
})));
|
|
5938
5951
|
},
|
|
5939
5952
|
activeTab() {
|
|
5940
5953
|
return this.tabsItems[this.activeTabIndex] || this.tabsItems[0] || {};
|
|
@@ -6788,7 +6801,7 @@ const _sfc_main$b = {
|
|
|
6788
6801
|
},
|
|
6789
6802
|
computed: {
|
|
6790
6803
|
listeners() {
|
|
6791
|
-
const { input, focus, blur,
|
|
6804
|
+
const _a = this.$attrs, { input, focus, blur } = _a, listeners = __objRest(_a, ["input", "focus", "blur"]);
|
|
6792
6805
|
return listeners;
|
|
6793
6806
|
},
|
|
6794
6807
|
hasValue() {
|
|
@@ -7059,10 +7072,10 @@ const _sfc_main$8 = {
|
|
|
7059
7072
|
return this.transition || `w-tooltip-slide-fade-${direction}`;
|
|
7060
7073
|
},
|
|
7061
7074
|
classes() {
|
|
7062
|
-
return {
|
|
7075
|
+
return __spreadProps(__spreadValues({
|
|
7063
7076
|
[this.color]: this.color,
|
|
7064
|
-
[`${this.bgColor}--bg`]: this.bgColor
|
|
7065
|
-
|
|
7077
|
+
[`${this.bgColor}--bg`]: this.bgColor
|
|
7078
|
+
}, this.tooltipClasses), {
|
|
7066
7079
|
[`w-tooltip--${this.position}`]: !this.noPosition,
|
|
7067
7080
|
[`w-tooltip--align-${this.alignment}`]: !this.noPosition && this.alignment,
|
|
7068
7081
|
"w-tooltip--tile": this.tile,
|
|
@@ -7071,7 +7084,7 @@ const _sfc_main$8 = {
|
|
|
7071
7084
|
"w-tooltip--fixed": this.fixed,
|
|
7072
7085
|
"w-tooltip--no-border": this.noBorder || this.bgColor,
|
|
7073
7086
|
"w-tooltip--custom-transition": this.transition
|
|
7074
|
-
};
|
|
7087
|
+
});
|
|
7075
7088
|
},
|
|
7076
7089
|
styles() {
|
|
7077
7090
|
return {
|
|
@@ -7511,5 +7524,5 @@ var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
7511
7524
|
WTransitionTwist: wTransitionTwist
|
|
7512
7525
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7513
7526
|
const install = WaveUI.install;
|
|
7514
|
-
WaveUI.install = (app, options = {}) => install.call(WaveUI, app, { components,
|
|
7527
|
+
WaveUI.install = (app, options = {}) => install.call(WaveUI, app, __spreadValues({ components }, options));
|
|
7515
7528
|
export { WaveUI as default };
|