vpuserlayout
Advanced tools
Comparing version 1.0.9 to 1.0.10
{ | ||
"name": "vpuserlayout", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "vpuserlayout.es.js", |
@@ -1,14 +0,14 @@ | ||
import { inject as I, getCurrentInstance as L, onMounted as M, onUnmounted as D, ref as E, resolveComponent as V, openBlock as t, createBlock as N, unref as a, createSlots as P, withCtx as _, createElementBlock as n, Fragment as d, renderList as p, createElementVNode as e, toDisplayString as w, createCommentVNode as f, normalizeClass as U, createVNode as j, pushScopeId as z, popScopeId as O } from "vue"; | ||
import { inject as I, getCurrentInstance as L, onMounted as M, onUnmounted as D, ref as E, resolveComponent as V, openBlock as t, createBlock as N, unref as r, createSlots as P, withCtx as w, createElementVNode as e, createVNode as U, createElementBlock as n, Fragment as d, renderList as p, toDisplayString as f, createCommentVNode as x, normalizeClass as j, pushScopeId as z, popScopeId as O } from "vue"; | ||
import A from "vitepress/theme"; | ||
import { useMediaQuery as x } from "@vueuse/core"; | ||
import { useMediaQuery as g } from "@vueuse/core"; | ||
import { useData as F } from "vitepress"; | ||
const G = (o, s) => { | ||
const r = o.__vccOpts || o; | ||
for (const [l, m] of s) | ||
r[l] = m; | ||
return r; | ||
}, g = (o) => (z("data-v-314a0a92"), o = o(), O(), o), H = { class: "container" }, Q = { | ||
const G = (o, a) => { | ||
const s = o.__vccOpts || o; | ||
for (const [l, h] of a) | ||
s[l] = h; | ||
return s; | ||
}, m = (o) => (z("data-v-582a5016"), o = o(), O(), o), H = /* @__PURE__ */ m(() => /* @__PURE__ */ e("h1", null, "Parent Component", -1)), Q = { class: "container" }, T = { | ||
key: 0, | ||
class: "dropdown" | ||
}, T = /* @__PURE__ */ g(() => /* @__PURE__ */ e("span", { class: "user-menu" }, [ | ||
}, W = /* @__PURE__ */ m(() => /* @__PURE__ */ e("span", { class: "user-menu" }, [ | ||
/* @__PURE__ */ e("svg", { | ||
@@ -45,3 +45,3 @@ xmlns: "http://www.w3.org/2000/svg", | ||
]) | ||
], -1)), W = /* @__PURE__ */ g(() => /* @__PURE__ */ e("span", { class: "vpi-chevron-down text-icon" }, null, -1)), $ = { class: "dropdown-content" }, q = { class: "dropdown-menu" }, J = { class: "menuItem" }, K = { | ||
], -1)), $ = /* @__PURE__ */ m(() => /* @__PURE__ */ e("span", { class: "vpi-chevron-down text-icon" }, null, -1)), q = { class: "dropdown-content" }, J = { class: "dropdown-menu" }, K = { class: "menuItem" }, R = { | ||
__name: "VPUserLayout", | ||
@@ -53,13 +53,13 @@ props: { | ||
setup(o) { | ||
const s = I("dynamicData"), r = L(); | ||
const a = I("dynamicData"), s = L(); | ||
M(() => { | ||
window.addEventListener("resize", v); | ||
window.addEventListener("resize", _); | ||
}), D(() => { | ||
window.removeEventListener("resize", v); | ||
window.removeEventListener("resize", _); | ||
}); | ||
const { lang: l, theme: m } = F(); | ||
var h = x("(min-width: 1280px)").value; | ||
const { lang: l, theme: h } = F(); | ||
var v = g("(min-width: 1280px)").value; | ||
const { Layout: k } = A; | ||
function v() { | ||
h = x("(min-width: 1280px)").value, r.proxy.$forceUpdate(); | ||
function _() { | ||
v = g("(min-width: 1280px)").value, s.proxy.$forceUpdate(); | ||
} | ||
@@ -73,18 +73,22 @@ const c = E(!1); | ||
} | ||
return (Z, ee) => { | ||
return (ee, te) => { | ||
const S = V("SimpleComponent"); | ||
return t(), N(a(k), null, P({ _: 2 }, [ | ||
a(h) ? { | ||
return t(), N(r(k), null, P({ _: 2 }, [ | ||
r(v) ? { | ||
name: "nav-bar-content-after", | ||
fn: _(() => [ | ||
(t(!0), n(d, null, p(a(s), (i, b) => (t(), n("div", H, [ | ||
a(l) === i.lang ? (t(), n("div", Q, [ | ||
T, | ||
fn: w(() => [ | ||
e("div", null, [ | ||
H, | ||
U(S, { msg: "Hello from Parent!" }) | ||
]), | ||
(t(!0), n(d, null, p(r(a), (i, b) => (t(), n("div", Q, [ | ||
r(l) === i.lang ? (t(), n("div", T, [ | ||
W, | ||
e("div", $, [ | ||
e("div", q, [ | ||
(t(!0), n(d, null, p(i.menus, (u, B) => (t(), n("div", J, w(u), 1))), 256)) | ||
$, | ||
e("div", q, [ | ||
e("div", J, [ | ||
(t(!0), n(d, null, p(i.menus, (u, B) => (t(), n("div", K, f(u), 1))), 256)) | ||
]) | ||
]) | ||
])) : f("", !0) | ||
])) : x("", !0) | ||
]))), 256)) | ||
@@ -95,7 +99,7 @@ ]), | ||
name: "nav-screen-content-after", | ||
fn: _(() => [ | ||
(t(!0), n(d, null, p(a(s), (i, b) => (t(), n("div", { class: "mobileDropdown" }, [ | ||
a(l) === i.lang ? (t(), n("div", { | ||
fn: w(() => [ | ||
(t(!0), n(d, null, p(r(a), (i, b) => (t(), n("div", { class: "mobileDropdown" }, [ | ||
r(l) === i.lang ? (t(), n("div", { | ||
key: 0, | ||
class: U(["BMNavScreenMenuGroup", { open: c.value }]) | ||
class: j(["BMNavScreenMenuGroup", { open: c.value }]) | ||
}, [ | ||
@@ -146,9 +150,5 @@ e("button", { | ||
onClick: C | ||
}, w(u), 1))), 256)) | ||
]), | ||
e("div", null, [ | ||
e("h1", null, "Parent Component"), | ||
j(S, { msg: "Hello from Parent!" }) | ||
}, f(u), 1))), 256)) | ||
]) | ||
], 2)) : f("", !0) | ||
], 2)) : x("", !0) | ||
]))), 256)) | ||
@@ -161,10 +161,10 @@ ]), | ||
} | ||
}, R = /* @__PURE__ */ G(K, [["__scopeId", "data-v-314a0a92"]]), X = [R], Y = function(o, s) { | ||
X.forEach((r) => { | ||
o.component(r.name, r); | ||
}, X = /* @__PURE__ */ G(R, [["__scopeId", "data-v-582a5016"]]), Y = [X], Z = function(o, a) { | ||
Y.forEach((s) => { | ||
o.component(s.name, s); | ||
}); | ||
}, ae = { install: Y }; | ||
}, ae = { install: Z }; | ||
export { | ||
R as VPUserLayout, | ||
X as VPUserLayout, | ||
ae as default | ||
}; |
@@ -1,1 +0,1 @@ | ||
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vitepress/theme"),require("@vueuse/core"),require("vitepress")):typeof define=="function"&&define.amd?define(["exports","vue","vitepress/theme","@vueuse/core","vitepress"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.VPUserLayout={},t.Vue,t.DefaultTheme,t.core,t.vitepress))})(this,function(t,e,V,d,f){"use strict";const k=(n,r)=>{const o=n.__vccOpts||n;for(const[l,p]of r)o[l]=p;return o},i=n=>(e.pushScopeId("data-v-314a0a92"),n=n(),e.popScopeId(),n),N={class:"container"},_={key:0,class:"dropdown"},w=i(()=>e.createElementVNode("span",{class:"user-menu"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M2 21a8 8 0 0 1 10.434-7.62"}),e.createElementVNode("circle",{cx:"10",cy:"8",r:"5"}),e.createElementVNode("circle",{cx:"18",cy:"18",r:"3"}),e.createElementVNode("path",{d:"m19.5 14.3-.4.9"}),e.createElementVNode("path",{d:"m16.9 20.8-.4.9"}),e.createElementVNode("path",{d:"m21.7 19.5-.9-.4"}),e.createElementVNode("path",{d:"m15.2 16.9-.9-.4"}),e.createElementVNode("path",{d:"m21.7 16.5-.9.4"}),e.createElementVNode("path",{d:"m15.2 19.1-.9.4"}),e.createElementVNode("path",{d:"m19.5 21.7-.4-.9"}),e.createElementVNode("path",{d:"m16.9 15.2-.4-.9"})])],-1)),B=i(()=>e.createElementVNode("span",{class:"vpi-chevron-down text-icon"},null,-1)),g={class:"dropdown-content"},x={class:"dropdown-menu"},y={class:"menuItem"},m=k({__name:"VPUserLayout",props:{test:String,items:Array},setup(n){const r=e.inject("dynamicData"),o=e.getCurrentInstance();e.onMounted(()=>{window.addEventListener("resize",E)}),e.onUnmounted(()=>{window.removeEventListener("resize",E)});const{lang:l,theme:p}=f.useData();var h=d.useMediaQuery("(min-width: 1280px)").value;const{Layout:S}=V;function E(){h=d.useMediaQuery("(min-width: 1280px)").value,o.proxy.$forceUpdate()}const c=e.ref(!1);function L(){c.value=!c.value,console.log(c.value)}function M(){alert("menu1")}return(j,q)=>{const P=e.resolveComponent("SimpleComponent");return e.openBlock(),e.createBlock(e.unref(S),null,e.createSlots({_:2},[e.unref(h)?{name:"nav-bar-content-after",fn:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(a,D)=>(e.openBlock(),e.createElementBlock("div",N,[e.unref(l)===a.lang?(e.openBlock(),e.createElementBlock("div",_,[w,B,e.createElementVNode("div",g,[e.createElementVNode("div",x,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.menus,(s,I)=>(e.openBlock(),e.createElementBlock("div",y,e.toDisplayString(s),1))),256))])])])):e.createCommentVNode("",!0)]))),256))]),key:"0"}:{name:"nav-screen-content-after",fn:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(a,D)=>(e.openBlock(),e.createElementBlock("div",{class:"mobileDropdown"},[e.unref(l)===a.lang?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["BMNavScreenMenuGroup",{open:c.value}])},[e.createElementVNode("button",{class:"button","aria-expanded":c.value,onClick:L},[e.createElementVNode("span",null,[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M2 21a8 8 0 0 1 10.434-7.62"}),e.createElementVNode("circle",{cx:"10",cy:"8",r:"5"}),e.createElementVNode("circle",{cx:"18",cy:"18",r:"3"}),e.createElementVNode("path",{d:"m19.5 14.3-.4.9"}),e.createElementVNode("path",{d:"m16.9 20.8-.4.9"}),e.createElementVNode("path",{d:"m21.7 19.5-.9-.4"}),e.createElementVNode("path",{d:"m15.2 16.9-.9-.4"}),e.createElementVNode("path",{d:"m21.7 16.5-.9.4"}),e.createElementVNode("path",{d:"m15.2 19.1-.9.4"}),e.createElementVNode("path",{d:"m19.5 21.7-.4-.9"}),e.createElementVNode("path",{d:"m16.9 15.2-.4-.9"})]))]),e.createElementVNode("span",{class:"vpi-plus button-icon"})],8,["aria-expanded"]),e.createElementVNode("div",{class:"items group"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.menus,(s,I)=>(e.openBlock(),e.createElementBlock("div",{class:"item",onClick:M},e.toDisplayString(s),1))),256))]),e.createElementVNode("div",null,[e.createElementVNode("h1",null,"Parent Component"),e.createVNode(P,{msg:"Hello from Parent!"})])],2)):e.createCommentVNode("",!0)]))),256))]),key:"1"}]),1024)}}},[["__scopeId","data-v-314a0a92"]]),C=[m],u={install:function(n,r){C.forEach(o=>{n.component(o.name,o)})}};t.VPUserLayout=m,t.default=u,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); | ||
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vitepress/theme"),require("@vueuse/core"),require("vitepress")):typeof define=="function"&&define.amd?define(["exports","vue","vitepress/theme","@vueuse/core","vitepress"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.VPUserLayout={},t.Vue,t.DefaultTheme,t.core,t.vitepress))})(this,function(t,e,V,i,f){"use strict";const k=(n,r)=>{const o=n.__vccOpts||n;for(const[l,p]of r)o[l]=p;return o},s=n=>(e.pushScopeId("data-v-582a5016"),n=n(),e.popScopeId(),n),_=s(()=>e.createElementVNode("h1",null,"Parent Component",-1)),N={class:"container"},w={key:0,class:"dropdown"},B=s(()=>e.createElementVNode("span",{class:"user-menu"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M2 21a8 8 0 0 1 10.434-7.62"}),e.createElementVNode("circle",{cx:"10",cy:"8",r:"5"}),e.createElementVNode("circle",{cx:"18",cy:"18",r:"3"}),e.createElementVNode("path",{d:"m19.5 14.3-.4.9"}),e.createElementVNode("path",{d:"m16.9 20.8-.4.9"}),e.createElementVNode("path",{d:"m21.7 19.5-.9-.4"}),e.createElementVNode("path",{d:"m15.2 16.9-.9-.4"}),e.createElementVNode("path",{d:"m21.7 16.5-.9.4"}),e.createElementVNode("path",{d:"m15.2 19.1-.9.4"}),e.createElementVNode("path",{d:"m19.5 21.7-.4-.9"}),e.createElementVNode("path",{d:"m16.9 15.2-.4-.9"})])],-1)),g=s(()=>e.createElementVNode("span",{class:"vpi-chevron-down text-icon"},null,-1)),x={class:"dropdown-content"},y={class:"dropdown-menu"},C={class:"menuItem"},m=k({__name:"VPUserLayout",props:{test:String,items:Array},setup(n){const r=e.inject("dynamicData"),o=e.getCurrentInstance();e.onMounted(()=>{window.addEventListener("resize",E)}),e.onUnmounted(()=>{window.removeEventListener("resize",E)});const{lang:l,theme:p}=f.useData();var h=i.useMediaQuery("(min-width: 1280px)").value;const{Layout:L}=V;function E(){h=i.useMediaQuery("(min-width: 1280px)").value,o.proxy.$forceUpdate()}const c=e.ref(!1);function M(){c.value=!c.value,console.log(c.value)}function P(){alert("menu1")}return(q,F)=>{const D=e.resolveComponent("SimpleComponent");return e.openBlock(),e.createBlock(e.unref(L),null,e.createSlots({_:2},[e.unref(h)?{name:"nav-bar-content-after",fn:e.withCtx(()=>[e.createElementVNode("div",null,[_,e.createVNode(D,{msg:"Hello from Parent!"})]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(a,I)=>(e.openBlock(),e.createElementBlock("div",N,[e.unref(l)===a.lang?(e.openBlock(),e.createElementBlock("div",w,[B,g,e.createElementVNode("div",x,[e.createElementVNode("div",y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.menus,(d,U)=>(e.openBlock(),e.createElementBlock("div",C,e.toDisplayString(d),1))),256))])])])):e.createCommentVNode("",!0)]))),256))]),key:"0"}:{name:"nav-screen-content-after",fn:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(a,I)=>(e.openBlock(),e.createElementBlock("div",{class:"mobileDropdown"},[e.unref(l)===a.lang?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["BMNavScreenMenuGroup",{open:c.value}])},[e.createElementVNode("button",{class:"button","aria-expanded":c.value,onClick:M},[e.createElementVNode("span",null,[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M2 21a8 8 0 0 1 10.434-7.62"}),e.createElementVNode("circle",{cx:"10",cy:"8",r:"5"}),e.createElementVNode("circle",{cx:"18",cy:"18",r:"3"}),e.createElementVNode("path",{d:"m19.5 14.3-.4.9"}),e.createElementVNode("path",{d:"m16.9 20.8-.4.9"}),e.createElementVNode("path",{d:"m21.7 19.5-.9-.4"}),e.createElementVNode("path",{d:"m15.2 16.9-.9-.4"}),e.createElementVNode("path",{d:"m21.7 16.5-.9.4"}),e.createElementVNode("path",{d:"m15.2 19.1-.9.4"}),e.createElementVNode("path",{d:"m19.5 21.7-.4-.9"}),e.createElementVNode("path",{d:"m16.9 15.2-.4-.9"})]))]),e.createElementVNode("span",{class:"vpi-plus button-icon"})],8,["aria-expanded"]),e.createElementVNode("div",{class:"items group"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.menus,(d,U)=>(e.openBlock(),e.createElementBlock("div",{class:"item",onClick:P},e.toDisplayString(d),1))),256))])],2)):e.createCommentVNode("",!0)]))),256))]),key:"1"}]),1024)}}},[["__scopeId","data-v-582a5016"]]),u=[m],S={install:function(n,r){u.forEach(o=>{n.component(o.name,o)})}};t.VPUserLayout=m,t.default=S,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15521