Skip to content

Commit

Permalink
Bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet committed Mar 20, 2024
1 parent d23d97f commit 18d5c24
Show file tree
Hide file tree
Showing 7 changed files with 417 additions and 387 deletions.
58 changes: 29 additions & 29 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"pre-publish": "npm upgrade && vite build"
},
"devDependencies": {
"@protonemedia/laravel-splade": "file:../protonemedia-laravel-splade-1.4.16.tgz",
"@protonemedia/laravel-splade": "file:../protonemedia-laravel-splade-1.4.19.tgz",
"@tailwindcss/forms": "^0.5.2",
"@tailwindcss/typography": "^0.5.2",
"@vitejs/plugin-vue": "^4.1.0",
Expand Down
86 changes: 43 additions & 43 deletions dist/protone-media-laravel-splade.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,28 +559,28 @@ const ue = {
},
emits: ["close"],
setup(e, { emit: t }) {
const r = e, n = y(null);
function i() {
const o = document.createElement("html");
o.innerHTML = r.html, o.querySelectorAll("a").forEach((u) => u.setAttribute("target", "_top")), document.body.style.overflow = "hidden";
const l = n.value;
if (!l.contentWindow)
const r = e, n = t, i = y(null);
function s() {
const l = document.createElement("html");
l.innerHTML = r.html, l.querySelectorAll("a").forEach((c) => c.setAttribute("target", "_top")), document.body.style.overflow = "hidden";
const u = i.value;
if (!u.contentWindow)
throw new Error("iframe not yet ready.");
l.contentWindow.document.open(), l.contentWindow.document.write(o.outerHTML), l.contentWindow.document.close(), document.addEventListener("keydown", s);
u.contentWindow.document.open(), u.contentWindow.document.write(l.outerHTML), u.contentWindow.document.close(), document.addEventListener("keydown", a);
}
function s(o) {
o.keyCode === 27 && a();
function a(l) {
l.keyCode === 27 && o();
}
function a() {
document.body.style.overflow = "visible", document.removeEventListener("keydown", s), t("close");
function o() {
document.body.style.overflow = "visible", document.removeEventListener("keydown", a), n("close");
}
return V(() => i()), (o, l) => (B(), ce("div", {
return V(() => s()), (l, u) => (B(), ce("div", {
style: { position: "fixed", top: "0px", right: "0px", bottom: "0px", left: "0px", "z-index": "200000", "box-sizing": "border-box", height: "100vh", width: "100vw", "background-color": "rgb(0 0 0 / 0.75)", padding: "2rem" },
onClick: a
onClick: o
}, [
gr("iframe", {
ref_key: "iframeElement",
ref: n,
ref: i,
class: "bg-white w-full h-full"
}, null, 512)
]));
Expand Down Expand Up @@ -4076,7 +4076,7 @@ const fn = Ff, kf = {
* This determines the order of all files, existing and new, and sets it on the form.
*/
setOrder() {
if (!this.multiple || !this.handlesExistingFiles || !this.filepondInstance)
if (!this.multiple || !this.filepondInstance)
return;
const t = this.filepondInstance.getFiles().filter((n) => !n.getMetadata("identifier")), r = this.filepondInstance.getFiles().map((n) => {
const i = n.getMetadata("identifier");
Expand Down Expand Up @@ -4821,7 +4821,7 @@ function Jf(e, t, r, n, i, s) {
passthrough: r.passthrough
}, null, 8, ["html", "passthrough"])) : r.show ? K(e.$slots, "default", { key: 1 }) : Fr("", !0);
}
const Qf = /* @__PURE__ */ _e(Kf, [["render", Jf]]), Yf = ["href", "onClick"], Zf = {
const Qf = /* @__PURE__ */ _e(Kf, [["render", Jf]]), Yf = ["href"], Zf = {
__name: "Link",
props: {
href: {
Expand Down Expand Up @@ -4911,48 +4911,48 @@ const Qf = /* @__PURE__ */ _e(Kf, [["render", Jf]]), Yf = ["href", "onClick"], Z
}
},
setup(e) {
const t = e, r = z("stack"), n = y(null);
const t = z("stack"), r = y(null), n = e;
function i() {
if (n.value = null, !t.confirm)
if (r.value = null, !n.confirm)
return s();
p.confirm(
gs(t.confirm) ? "" : t.confirm,
t.confirmText,
t.confirmButton,
t.cancelButton,
!!t.requirePassword,
t.requirePasswordOnce,
!!t.confirmDanger
gs(n.confirm) ? "" : n.confirm,
n.confirmText,
n.confirmButton,
n.cancelButton,
!!n.requirePassword,
n.requirePasswordOnce,
!!n.confirmDanger
).then((a) => {
if (!t.requirePassword) {
if (!n.requirePassword) {
s();
return;
}
a && (n.value = a), s();
a && (r.value = a), s();
}).catch(() => {
});
}
function s() {
if (t.away)
return window.location = t.href;
const o = r > 0 && t.keepModal;
if (t.modal && !o)
return p.modal(t.href);
if (t.slideover && !o)
return p.slideover(t.href);
if (et(t.href, "#")) {
if (p.openPreloadedModal(t.href.substring(1)))
if (n.away)
return window.location = n.href;
const o = t > 0 && n.keepModal;
if (n.modal && !o)
return p.modal(n.href);
if (n.slideover && !o)
return p.slideover(n.href);
if (et(n.href, "#")) {
if (p.openPreloadedModal(n.href.substring(1)))
return;
console.log("No preloaded modal found for " + t.href);
console.log("No preloaded modal found for " + n.href);
}
let l = t.method.trim().toUpperCase();
let l = n.method.trim().toUpperCase();
const u = {
...t.headers
...n.headers
};
if (o && (u["X-Splade-Modal"] = p.stackType(r), u["X-Splade-Modal-Target"] = r), t.preserveScroll && (u["X-Splade-Preserve-Scroll"] = !0), l === "GET")
return t.replace ? p.replace(t.href, u) : p.visit(t.href, u);
const c = t.data instanceof FormData ? t.data : pn(t.data);
l !== "POST" && (c.append("_method", l), l = "POST"), n.value && (c.append(se(t.requirePassword) && t.requirePassword ? t.requirePassword : "password", n.value), n.value = null), p.request(t.href, l, c, u, t.replace);
if (o && (u["X-Splade-Modal"] = p.stackType(t), u["X-Splade-Modal-Target"] = t), n.preserveScroll && (u["X-Splade-Preserve-Scroll"] = !0), l === "GET")
return n.replace ? p.replace(n.href, u) : p.visit(n.href, u);
const c = n.data instanceof FormData ? n.data : pn(n.data);
l !== "POST" && (c.append("_method", l), l = "POST"), r.value && (c.append(se(n.requirePassword) && n.requirePassword ? n.requirePassword : "password", r.value), r.value = null), p.request(n.href, l, c, u, n.replace);
}
return (a, o) => (B(), ce("a", {
href: e.href,
Expand Down
Loading

0 comments on commit 18d5c24

Please sign in to comment.