wave-ui 3.27.0 → 3.27.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/dist/wave-ui.cjs.js +2 -2
- package/dist/wave-ui.esm.js +12 -12
- package/dist/wave-ui.umd.js +2 -2
- package/package.json +1 -1
- package/src/wave-ui/components/w-list.vue +2 -2
- package/src/wave-ui/components/w-select.vue +1 -1
- package/src/wave-ui/components/w-slider.vue +1 -1
- package/src/wave-ui/components/w-tabs/index.vue +3 -3
- package/src/wave-ui/components/w-tooltip.vue +3 -2
- package/src/wave-ui/mixins/form-elements.js +5 -4
package/dist/wave-ui.esm.js
CHANGED
|
@@ -2646,7 +2646,7 @@ var gt = /* @__PURE__ */ Y({
|
|
|
2646
2646
|
}) }
|
|
2647
2647
|
},
|
|
2648
2648
|
setup() {
|
|
2649
|
-
return {
|
|
2649
|
+
return { waveUiUseId: A() };
|
|
2650
2650
|
},
|
|
2651
2651
|
props: {
|
|
2652
2652
|
id: { type: String },
|
|
@@ -2662,10 +2662,10 @@ var gt = /* @__PURE__ */ Y({
|
|
|
2662
2662
|
computed: {
|
|
2663
2663
|
inputId() {
|
|
2664
2664
|
let e = this.$options.name || "w-field";
|
|
2665
|
-
return this.id || `${e}--${this.
|
|
2665
|
+
return this.id || `${e}--${this.waveUiUseId}`;
|
|
2666
2666
|
},
|
|
2667
2667
|
inputName() {
|
|
2668
|
-
return this.name || `${this.$options.name}--${this.
|
|
2668
|
+
return this.name || `${this.$options.name}--${this.waveUiUseId}`;
|
|
2669
2669
|
},
|
|
2670
2670
|
isDisabled() {
|
|
2671
2671
|
return this.disabled || this.formProps.disabled;
|
|
@@ -4561,7 +4561,7 @@ function fn(t, n, r, i, a, l) {
|
|
|
4561
4561
|
var pn = /* @__PURE__ */ Y({
|
|
4562
4562
|
name: "w-list",
|
|
4563
4563
|
setup() {
|
|
4564
|
-
return {
|
|
4564
|
+
return { waveUiUseId: A() };
|
|
4565
4565
|
},
|
|
4566
4566
|
props: {
|
|
4567
4567
|
items: {
|
|
@@ -4625,7 +4625,7 @@ var pn = /* @__PURE__ */ Y({
|
|
|
4625
4625
|
return "$router" in this;
|
|
4626
4626
|
},
|
|
4627
4627
|
listId() {
|
|
4628
|
-
return this.addIds ? typeof this.addIds == "string" ? this.addIds : `w-list--${this.
|
|
4628
|
+
return this.addIds ? typeof this.addIds == "string" ? this.addIds : `w-list--${this.waveUiUseId}` : null;
|
|
4629
4629
|
},
|
|
4630
4630
|
selectedItems() {
|
|
4631
4631
|
return this.listItems.filter((e) => e._selected);
|
|
@@ -6335,7 +6335,7 @@ var $n = /* @__PURE__ */ Y({
|
|
|
6335
6335
|
}),
|
|
6336
6336
|
computed: {
|
|
6337
6337
|
selectListId() {
|
|
6338
|
-
return this.id ? `${this.id}__listbox` : `w-select-menu--${this.
|
|
6338
|
+
return this.id ? `${this.id}__listbox` : `w-select-menu--${this.waveUiUseId}`;
|
|
6339
6339
|
},
|
|
6340
6340
|
selectItems() {
|
|
6341
6341
|
return this.items.map((e, t) => {
|
|
@@ -6651,7 +6651,7 @@ var fr = /* @__PURE__ */ Y({
|
|
|
6651
6651
|
}),
|
|
6652
6652
|
computed: {
|
|
6653
6653
|
thumbId() {
|
|
6654
|
-
return this.id ? `${this.id}__thumb` : `button--${this.
|
|
6654
|
+
return this.id ? `${this.id}__thumb` : `button--${this.waveUiUseId}`;
|
|
6655
6655
|
},
|
|
6656
6656
|
minVal() {
|
|
6657
6657
|
return parseFloat(this.min);
|
|
@@ -7092,7 +7092,7 @@ function Pr(n, a, u, d, f, p) {
|
|
|
7092
7092
|
var Fr = /* @__PURE__ */ Y({
|
|
7093
7093
|
name: "w-tabs",
|
|
7094
7094
|
setup() {
|
|
7095
|
-
return {
|
|
7095
|
+
return { tabsStableId: A() };
|
|
7096
7096
|
},
|
|
7097
7097
|
props: {
|
|
7098
7098
|
modelValue: { type: [Number, String] },
|
|
@@ -7217,7 +7217,7 @@ var Fr = /* @__PURE__ */ Y({
|
|
|
7217
7217
|
},
|
|
7218
7218
|
methods: {
|
|
7219
7219
|
addTab(e) {
|
|
7220
|
-
(e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = `${this.
|
|
7220
|
+
(e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = `${this.tabsStableId}-${this.tabs.length}`), this.tabs.push({
|
|
7221
7221
|
_uid: e[this.itemIdKey] ?? e._uid,
|
|
7222
7222
|
_index: this.tabs.length,
|
|
7223
7223
|
...e,
|
|
@@ -7226,7 +7226,7 @@ var Fr = /* @__PURE__ */ Y({
|
|
|
7226
7226
|
},
|
|
7227
7227
|
refreshTabs() {
|
|
7228
7228
|
let e = this.items;
|
|
7229
|
-
typeof e == "number" && (e = Array(e).fill().map((e, t) => this.tabs[t] || {})), this.tabs = e.map((e, t) => ((e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = `${this.
|
|
7229
|
+
typeof e == "number" && (e = Array(e).fill().map((e, t) => this.tabs[t] || {})), this.tabs = e.map((e, t) => ((e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = `${this.tabsStableId}-${t}`), {
|
|
7230
7230
|
...e,
|
|
7231
7231
|
_uid: e[this.itemIdKey] ?? e._uid,
|
|
7232
7232
|
_index: t,
|
|
@@ -8288,7 +8288,7 @@ function Ei(t, n, i, a, o, l) {
|
|
|
8288
8288
|
default: P(() => [t.detachableVisible ? (b(), c("div", {
|
|
8289
8289
|
class: g(["w-tooltip", l.classes]),
|
|
8290
8290
|
ref: "detachable",
|
|
8291
|
-
key: a.
|
|
8291
|
+
key: a.tooltipInstanceId,
|
|
8292
8292
|
style: v(l.styles)
|
|
8293
8293
|
}, [w(t.$slots, "default")], 6)) : s("", !0)]),
|
|
8294
8294
|
_: 3
|
|
@@ -8298,7 +8298,7 @@ var Di = /* @__PURE__ */ Y({
|
|
|
8298
8298
|
name: "w-tooltip",
|
|
8299
8299
|
mixins: [gn],
|
|
8300
8300
|
setup() {
|
|
8301
|
-
return {
|
|
8301
|
+
return { tooltipInstanceId: A() };
|
|
8302
8302
|
},
|
|
8303
8303
|
props: {
|
|
8304
8304
|
modelValue: {},
|