Skip to content

Commit 18d5c24

Browse files
committed
Bump deps
1 parent d23d97f commit 18d5c24

7 files changed

+417
-387
lines changed

app/package-lock.json

+29-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"pre-publish": "npm upgrade && vite build"
77
},
88
"devDependencies": {
9-
"@protonemedia/laravel-splade": "file:../protonemedia-laravel-splade-1.4.16.tgz",
9+
"@protonemedia/laravel-splade": "file:../protonemedia-laravel-splade-1.4.19.tgz",
1010
"@tailwindcss/forms": "^0.5.2",
1111
"@tailwindcss/typography": "^0.5.2",
1212
"@vitejs/plugin-vue": "^4.1.0",

dist/protone-media-laravel-splade.js

+43-43
Original file line numberDiff line numberDiff line change
@@ -559,28 +559,28 @@ const ue = {
559559
},
560560
emits: ["close"],
561561
setup(e, { emit: t }) {
562-
const r = e, n = y(null);
563-
function i() {
564-
const o = document.createElement("html");
565-
o.innerHTML = r.html, o.querySelectorAll("a").forEach((u) => u.setAttribute("target", "_top")), document.body.style.overflow = "hidden";
566-
const l = n.value;
567-
if (!l.contentWindow)
562+
const r = e, n = t, i = y(null);
563+
function s() {
564+
const l = document.createElement("html");
565+
l.innerHTML = r.html, l.querySelectorAll("a").forEach((c) => c.setAttribute("target", "_top")), document.body.style.overflow = "hidden";
566+
const u = i.value;
567+
if (!u.contentWindow)
568568
throw new Error("iframe not yet ready.");
569-
l.contentWindow.document.open(), l.contentWindow.document.write(o.outerHTML), l.contentWindow.document.close(), document.addEventListener("keydown", s);
569+
u.contentWindow.document.open(), u.contentWindow.document.write(l.outerHTML), u.contentWindow.document.close(), document.addEventListener("keydown", a);
570570
}
571-
function s(o) {
572-
o.keyCode === 27 && a();
571+
function a(l) {
572+
l.keyCode === 27 && o();
573573
}
574-
function a() {
575-
document.body.style.overflow = "visible", document.removeEventListener("keydown", s), t("close");
574+
function o() {
575+
document.body.style.overflow = "visible", document.removeEventListener("keydown", a), n("close");
576576
}
577-
return V(() => i()), (o, l) => (B(), ce("div", {
577+
return V(() => s()), (l, u) => (B(), ce("div", {
578578
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" },
579-
onClick: a
579+
onClick: o
580580
}, [
581581
gr("iframe", {
582582
ref_key: "iframeElement",
583-
ref: n,
583+
ref: i,
584584
class: "bg-white w-full h-full"
585585
}, null, 512)
586586
]));
@@ -4076,7 +4076,7 @@ const fn = Ff, kf = {
40764076
* This determines the order of all files, existing and new, and sets it on the form.
40774077
*/
40784078
setOrder() {
4079-
if (!this.multiple || !this.handlesExistingFiles || !this.filepondInstance)
4079+
if (!this.multiple || !this.filepondInstance)
40804080
return;
40814081
const t = this.filepondInstance.getFiles().filter((n) => !n.getMetadata("identifier")), r = this.filepondInstance.getFiles().map((n) => {
40824082
const i = n.getMetadata("identifier");
@@ -4821,7 +4821,7 @@ function Jf(e, t, r, n, i, s) {
48214821
passthrough: r.passthrough
48224822
}, null, 8, ["html", "passthrough"])) : r.show ? K(e.$slots, "default", { key: 1 }) : Fr("", !0);
48234823
}
4824-
const Qf = /* @__PURE__ */ _e(Kf, [["render", Jf]]), Yf = ["href", "onClick"], Zf = {
4824+
const Qf = /* @__PURE__ */ _e(Kf, [["render", Jf]]), Yf = ["href"], Zf = {
48254825
__name: "Link",
48264826
props: {
48274827
href: {
@@ -4911,48 +4911,48 @@ const Qf = /* @__PURE__ */ _e(Kf, [["render", Jf]]), Yf = ["href", "onClick"], Z
49114911
}
49124912
},
49134913
setup(e) {
4914-
const t = e, r = z("stack"), n = y(null);
4914+
const t = z("stack"), r = y(null), n = e;
49154915
function i() {
4916-
if (n.value = null, !t.confirm)
4916+
if (r.value = null, !n.confirm)
49174917
return s();
49184918
p.confirm(
4919-
gs(t.confirm) ? "" : t.confirm,
4920-
t.confirmText,
4921-
t.confirmButton,
4922-
t.cancelButton,
4923-
!!t.requirePassword,
4924-
t.requirePasswordOnce,
4925-
!!t.confirmDanger
4919+
gs(n.confirm) ? "" : n.confirm,
4920+
n.confirmText,
4921+
n.confirmButton,
4922+
n.cancelButton,
4923+
!!n.requirePassword,
4924+
n.requirePasswordOnce,
4925+
!!n.confirmDanger
49264926
).then((a) => {
4927-
if (!t.requirePassword) {
4927+
if (!n.requirePassword) {
49284928
s();
49294929
return;
49304930
}
4931-
a && (n.value = a), s();
4931+
a && (r.value = a), s();
49324932
}).catch(() => {
49334933
});
49344934
}
49354935
function s() {
4936-
if (t.away)
4937-
return window.location = t.href;
4938-
const o = r > 0 && t.keepModal;
4939-
if (t.modal && !o)
4940-
return p.modal(t.href);
4941-
if (t.slideover && !o)
4942-
return p.slideover(t.href);
4943-
if (et(t.href, "#")) {
4944-
if (p.openPreloadedModal(t.href.substring(1)))
4936+
if (n.away)
4937+
return window.location = n.href;
4938+
const o = t > 0 && n.keepModal;
4939+
if (n.modal && !o)
4940+
return p.modal(n.href);
4941+
if (n.slideover && !o)
4942+
return p.slideover(n.href);
4943+
if (et(n.href, "#")) {
4944+
if (p.openPreloadedModal(n.href.substring(1)))
49454945
return;
4946-
console.log("No preloaded modal found for " + t.href);
4946+
console.log("No preloaded modal found for " + n.href);
49474947
}
4948-
let l = t.method.trim().toUpperCase();
4948+
let l = n.method.trim().toUpperCase();
49494949
const u = {
4950-
...t.headers
4950+
...n.headers
49514951
};
4952-
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")
4953-
return t.replace ? p.replace(t.href, u) : p.visit(t.href, u);
4954-
const c = t.data instanceof FormData ? t.data : pn(t.data);
4955-
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);
4952+
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")
4953+
return n.replace ? p.replace(n.href, u) : p.visit(n.href, u);
4954+
const c = n.data instanceof FormData ? n.data : pn(n.data);
4955+
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);
49564956
}
49574957
return (a, o) => (B(), ce("a", {
49584958
href: e.href,

0 commit comments

Comments
 (0)