prlg-ui 1.8.345 → 1.8.346
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/eventBus.util-6r7Wsblo.cjs +1 -0
- package/dist/eventBus.util-Ceh2A6vX.js +60 -0
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.css +1 -1
- package/dist/prlg-ui.es.js +87 -86
- package/dist/reka-ui/index.cjs.js +5 -5
- package/dist/reka-ui/index.es.js +3606 -3500
- package/dist/rekaUI.d.ts +271 -236
- package/dist/useBodyScroll.util-CmEMTq77.cjs +1 -0
- package/dist/useBodyScroll.util-KSxz4KRl.js +18 -0
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +73 -72
- package/package.json +1 -1
- package/dist/eventBus.util-K9Yq6hZm.cjs +0 -1
- package/dist/eventBus.util-msbJpg6N.js +0 -75
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("vue"),l=["data-layer"],s=o.defineComponent({__name:"Portal",props:{overlayType:{default:"modal"},teleport:{type:Boolean,default:!0},target:{default:"body"},zIndex:{},show:{type:Boolean,default:!0},parentId:{}},setup(n){const t=n,a=o.computed(()=>{if(t.zIndex)return t.zIndex});return(e,r)=>e.show?(o.openBlock(),o.createBlock(o.Teleport,{key:0,to:e.target,disabled:!e.teleport},[o.createElementVNode("div",{style:o.normalizeStyle({zIndex:a.value,position:"relative",isolation:"isolate"}),"data-layer":e.overlayType},[o.renderSlot(e.$slots,"default")],12,l)],8,["to","disabled"])):o.createCommentVNode("",!0)}});function d(){const n=new Map;return{on(t,a){const e=n.get(t)||[];e.push(a),n.set(t,e)},off(t,a){const e=n.get(t);e&&n.set(t,e.filter(r=>r!==a))},emit(t,a){const e=n.get(t);e&&e.forEach(r=>r(a))},clear(){n.clear()}}}exports.EventBus=d;exports._sfc_main=s;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent as n, computed as l, createBlock as s, createCommentVNode as d, openBlock as i, Teleport as p, createElementVNode as u, normalizeStyle as c, renderSlot as f } from "vue";
|
|
2
|
+
const m = ["data-layer"], h = /* @__PURE__ */ n({
|
|
3
|
+
__name: "Portal",
|
|
4
|
+
props: {
|
|
5
|
+
overlayType: { default: "modal" },
|
|
6
|
+
teleport: { type: Boolean, default: !0 },
|
|
7
|
+
target: { default: "body" },
|
|
8
|
+
zIndex: {},
|
|
9
|
+
show: { type: Boolean, default: !0 },
|
|
10
|
+
parentId: {}
|
|
11
|
+
},
|
|
12
|
+
setup(o) {
|
|
13
|
+
const t = o, a = l(() => {
|
|
14
|
+
if (t.zIndex) return t.zIndex;
|
|
15
|
+
});
|
|
16
|
+
return (e, r) => e.show ? (i(), s(p, {
|
|
17
|
+
key: 0,
|
|
18
|
+
to: e.target,
|
|
19
|
+
disabled: !e.teleport
|
|
20
|
+
}, [
|
|
21
|
+
u("div", {
|
|
22
|
+
style: c({
|
|
23
|
+
zIndex: a.value,
|
|
24
|
+
position: "relative",
|
|
25
|
+
isolation: "isolate"
|
|
26
|
+
}),
|
|
27
|
+
"data-layer": e.overlayType
|
|
28
|
+
}, [
|
|
29
|
+
f(e.$slots, "default")
|
|
30
|
+
], 12, m)
|
|
31
|
+
], 8, ["to", "disabled"])) : d("", !0);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
function v() {
|
|
35
|
+
const o = /* @__PURE__ */ new Map();
|
|
36
|
+
return {
|
|
37
|
+
on(t, a) {
|
|
38
|
+
const e = o.get(t) || [];
|
|
39
|
+
e.push(a), o.set(t, e);
|
|
40
|
+
},
|
|
41
|
+
off(t, a) {
|
|
42
|
+
const e = o.get(t);
|
|
43
|
+
e && o.set(
|
|
44
|
+
t,
|
|
45
|
+
e.filter((r) => r !== a)
|
|
46
|
+
);
|
|
47
|
+
},
|
|
48
|
+
emit(t, a) {
|
|
49
|
+
const e = o.get(t);
|
|
50
|
+
e && e.forEach((r) => r(a));
|
|
51
|
+
},
|
|
52
|
+
clear() {
|
|
53
|
+
o.clear();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
v as E,
|
|
59
|
+
h as _
|
|
60
|
+
};
|