wave-ui 4.0.0 → 4.0.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/.nojekyll +0 -0
- package/dist/types/types/components/WMenu.d.ts +2 -1
- package/dist/types/types/components/WTooltip.d.ts +2 -1
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/mixins/detachable.d.ts +7 -0
- package/dist/types/types/mixins/detachable.js +2 -0
- package/dist/wave-ui.cjs.js +2 -2
- package/dist/wave-ui.esm.js +15 -10
- package/dist/wave-ui.umd.js +2 -2
- package/package.json +1 -1
- package/src/wave-ui/components/w-menu.vue +1 -1
- package/src/wave-ui/components/w-tooltip.vue +1 -1
- package/src/wave-ui/mixins/detachable.js +29 -21
package/dist/wave-ui.esm.js
CHANGED
|
@@ -5198,6 +5198,7 @@ var kn = {
|
|
|
5198
5198
|
},
|
|
5199
5199
|
inject: { detachableDefaultRoot: { default: null } },
|
|
5200
5200
|
data: () => ({
|
|
5201
|
+
detachableDomReady: !1,
|
|
5201
5202
|
docEventListenersHandlers: [],
|
|
5202
5203
|
openTimeout: null,
|
|
5203
5204
|
viewportPlacementOverride: null,
|
|
@@ -5362,12 +5363,14 @@ var kn = {
|
|
|
5362
5363
|
}
|
|
5363
5364
|
},
|
|
5364
5365
|
mounted() {
|
|
5365
|
-
this.
|
|
5366
|
-
this.activator ? this.bindActivatorEvents() : this
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5366
|
+
this.detachableDomReady = !0, this.$nextTick(() => {
|
|
5367
|
+
this.activator ? this.bindActivatorEvents() : this.$nextTick(() => {
|
|
5368
|
+
this.activator ? this.bindActivatorEvents() : this._attachActivatorListeners(), this.modelValue && !this.disable && this.open({ target: this.activatorEl });
|
|
5369
|
+
}), this.overlay && (this.overlayEl = this.$refs.overlay?.$el), this.modelValue && this.activator && !this.disable ? this.toggle({
|
|
5370
|
+
type: this.shouldShowOnClick ? "click" : "mouseenter",
|
|
5371
|
+
target: this.activatorEl
|
|
5372
|
+
}) : this.modelValue && !this.disable && this.open({ target: this.activatorEl });
|
|
5373
|
+
});
|
|
5371
5374
|
},
|
|
5372
5375
|
unmounted() {
|
|
5373
5376
|
this.close(), this._detachActivatorListeners(), this.unbindActivatorDocEvents();
|
|
@@ -5391,7 +5394,8 @@ function An(t, i, a, l, d, p) {
|
|
|
5391
5394
|
return x(), c(e, null, [
|
|
5392
5395
|
T(t.$slots, "activator"),
|
|
5393
5396
|
t.$slots.activator ? s("", !0) : T(t.$slots, "default", { key: 0 }),
|
|
5394
|
-
(x(), o(n, {
|
|
5397
|
+
t.detachableDomReady ? (x(), o(n, {
|
|
5398
|
+
key: 1,
|
|
5395
5399
|
to: t.teleportTarget,
|
|
5396
5400
|
disabled: !t.teleportTarget
|
|
5397
5401
|
}, [f(r, {
|
|
@@ -5459,7 +5463,7 @@ function An(t, i, a, l, d, p) {
|
|
|
5459
5463
|
"persistent",
|
|
5460
5464
|
"class",
|
|
5461
5465
|
"z-index"
|
|
5462
|
-
])) : s("", !0)], 8, ["to", "disabled"]))
|
|
5466
|
+
])) : s("", !0)], 8, ["to", "disabled"])) : s("", !0)
|
|
5463
5467
|
], 64);
|
|
5464
5468
|
}
|
|
5465
5469
|
var jn = /* @__PURE__ */ J({
|
|
@@ -9124,7 +9128,8 @@ function Ki(t, i, a, l, u, p) {
|
|
|
9124
9128
|
return x(), c(e, null, [
|
|
9125
9129
|
T(t.$slots, "activator"),
|
|
9126
9130
|
t.$slots.activator ? s("", !0) : T(t.$slots, "default", { key: 0 }),
|
|
9127
|
-
(x(), o(n, {
|
|
9131
|
+
t.detachableDomReady ? (x(), o(n, {
|
|
9132
|
+
key: 1,
|
|
9128
9133
|
to: t.teleportTarget,
|
|
9129
9134
|
disabled: !t.teleportTarget
|
|
9130
9135
|
}, [f(r, {
|
|
@@ -9139,7 +9144,7 @@ function Ki(t, i, a, l, u, p) {
|
|
|
9139
9144
|
style: b(p.styles)
|
|
9140
9145
|
}, [a.tooltip ? (x(), c(e, { key: 0 }, [d(k(a.tooltip), 1)], 64)) : t.$slots.tooltip ? T(t.$slots, "tooltip", { key: 1 }) : t.$slots.activator ? T(t.$slots, "default", { key: 2 }) : s("", !0)], 6)) : s("", !0)]),
|
|
9141
9146
|
_: 3
|
|
9142
|
-
}, 8, ["name", "onAfterLeave"])], 8, ["to", "disabled"]))
|
|
9147
|
+
}, 8, ["name", "onAfterLeave"])], 8, ["to", "disabled"])) : s("", !0)
|
|
9143
9148
|
], 64);
|
|
9144
9149
|
}
|
|
9145
9150
|
var qi = /* @__PURE__ */ J({
|