mirror of
https://github.com/snipe/snipe-it.git
synced 2025-10-29 03:12:25 +00:00
Bump livewire to v3.6.4
This commit is contained in:
parent
77fdc370c7
commit
edaf005fe1
28
composer.lock
generated
28
composer.lock
generated
@ -4532,23 +4532,23 @@
|
||||
},
|
||||
{
|
||||
"name": "livewire/livewire",
|
||||
"version": "v3.5.18",
|
||||
"version": "v3.6.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/livewire/livewire.git",
|
||||
"reference": "62f0fa6b340a467c25baa590a567d9a134b357da"
|
||||
"reference": "ef04be759da41b14d2d129e670533180a44987dc"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/livewire/livewire/zipball/62f0fa6b340a467c25baa590a567d9a134b357da",
|
||||
"reference": "62f0fa6b340a467c25baa590a567d9a134b357da",
|
||||
"url": "https://api.github.com/repos/livewire/livewire/zipball/ef04be759da41b14d2d129e670533180a44987dc",
|
||||
"reference": "ef04be759da41b14d2d129e670533180a44987dc",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"illuminate/database": "^10.0|^11.0",
|
||||
"illuminate/routing": "^10.0|^11.0",
|
||||
"illuminate/support": "^10.0|^11.0",
|
||||
"illuminate/validation": "^10.0|^11.0",
|
||||
"illuminate/database": "^10.0|^11.0|^12.0",
|
||||
"illuminate/routing": "^10.0|^11.0|^12.0",
|
||||
"illuminate/support": "^10.0|^11.0|^12.0",
|
||||
"illuminate/validation": "^10.0|^11.0|^12.0",
|
||||
"laravel/prompts": "^0.1.24|^0.2|^0.3",
|
||||
"league/mime-type-detection": "^1.9",
|
||||
"php": "^8.1",
|
||||
@ -4557,11 +4557,11 @@
|
||||
},
|
||||
"require-dev": {
|
||||
"calebporzio/sushi": "^2.1",
|
||||
"laravel/framework": "^10.15.0|^11.0",
|
||||
"laravel/framework": "^10.15.0|^11.0|^12.0",
|
||||
"mockery/mockery": "^1.3.1",
|
||||
"orchestra/testbench": "^8.21.0|^9.0",
|
||||
"orchestra/testbench-dusk": "^8.24|^9.1",
|
||||
"phpunit/phpunit": "^10.4",
|
||||
"orchestra/testbench": "^8.21.0|^9.0|^10.0",
|
||||
"orchestra/testbench-dusk": "^8.24|^9.1|^10.0",
|
||||
"phpunit/phpunit": "^10.4|^11.5",
|
||||
"psy/psysh": "^0.11.22|^0.12"
|
||||
},
|
||||
"type": "library",
|
||||
@ -4596,7 +4596,7 @@
|
||||
"description": "A front-end framework for Laravel.",
|
||||
"support": {
|
||||
"issues": "https://github.com/livewire/livewire/issues",
|
||||
"source": "https://github.com/livewire/livewire/tree/v3.5.18"
|
||||
"source": "https://github.com/livewire/livewire/tree/v3.6.4"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@ -4604,7 +4604,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2024-12-23T15:05:02+00:00"
|
||||
"time": "2025-07-17T05:12:15+00:00"
|
||||
},
|
||||
{
|
||||
"name": "masterminds/html5",
|
||||
|
||||
261
public/vendor/livewire/livewire.esm.js
vendored
261
public/vendor/livewire/livewire.esm.js
vendored
@ -2863,7 +2863,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
});
|
||||
return obj;
|
||||
}
|
||||
var Alpine20 = {
|
||||
var Alpine23 = {
|
||||
get reactive() {
|
||||
return reactive;
|
||||
},
|
||||
@ -2876,7 +2876,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
get raw() {
|
||||
return raw;
|
||||
},
|
||||
version: "3.14.8",
|
||||
version: "3.14.9",
|
||||
flushAndStopDeferringMutations,
|
||||
dontAutoEvaluateFunctions,
|
||||
disableEffectScheduling,
|
||||
@ -2929,7 +2929,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
data,
|
||||
bind: bind2
|
||||
};
|
||||
var alpine_default = Alpine20;
|
||||
var alpine_default = Alpine23;
|
||||
var import_reactivity10 = __toESM2(require_reactivity());
|
||||
magic("nextTick", () => nextTick);
|
||||
magic("dispatch", (el) => dispatch3.bind(dispatch3, el));
|
||||
@ -3857,8 +3857,8 @@ var require_module_cjs2 = __commonJS({
|
||||
default: () => module_default
|
||||
});
|
||||
module.exports = __toCommonJS(module_exports);
|
||||
function src_default(Alpine20) {
|
||||
Alpine20.directive("collapse", collapse3);
|
||||
function src_default(Alpine23) {
|
||||
Alpine23.directive("collapse", collapse3);
|
||||
collapse3.inline = (el, { modifiers }) => {
|
||||
if (!modifiers.includes("min"))
|
||||
return;
|
||||
@ -3878,7 +3878,7 @@ var require_module_cjs2 = __commonJS({
|
||||
if (!el._x_isShown)
|
||||
el.style.overflow = "hidden";
|
||||
let setFunction = (el2, styles) => {
|
||||
let revertFunction = Alpine20.setStyles(el2, styles);
|
||||
let revertFunction = Alpine23.setStyles(el2, styles);
|
||||
return styles.height ? () => {
|
||||
} : revertFunction;
|
||||
};
|
||||
@ -3901,7 +3901,7 @@ var require_module_cjs2 = __commonJS({
|
||||
if (current === full) {
|
||||
current = floor;
|
||||
}
|
||||
Alpine20.transition(el, Alpine20.setStyles, {
|
||||
Alpine23.transition(el, Alpine23.setStyles, {
|
||||
during: transitionStyles,
|
||||
start: { height: current + "px" },
|
||||
end: { height: full + "px" }
|
||||
@ -3915,7 +3915,7 @@ var require_module_cjs2 = __commonJS({
|
||||
}, after = () => {
|
||||
}) {
|
||||
let full = el.getBoundingClientRect().height;
|
||||
Alpine20.transition(el, setFunction, {
|
||||
Alpine23.transition(el, setFunction, {
|
||||
during: transitionStyles,
|
||||
start: { height: full + "px" },
|
||||
end: { height: floor + "px" }
|
||||
@ -4751,14 +4751,14 @@ var require_module_cjs3 = __commonJS({
|
||||
module.exports = __toCommonJS(module_exports);
|
||||
var import_focus_trap = __toESM2(require_focus_trap());
|
||||
var import_tabbable = __toESM2(require_dist());
|
||||
function src_default(Alpine20) {
|
||||
function src_default(Alpine23) {
|
||||
let lastFocused;
|
||||
let currentFocused;
|
||||
window.addEventListener("focusin", () => {
|
||||
lastFocused = currentFocused;
|
||||
currentFocused = document.activeElement;
|
||||
});
|
||||
Alpine20.magic("focus", (el) => {
|
||||
Alpine23.magic("focus", (el) => {
|
||||
let within = el;
|
||||
return {
|
||||
__noscroll: false,
|
||||
@ -4862,7 +4862,7 @@ var require_module_cjs3 = __commonJS({
|
||||
}
|
||||
};
|
||||
});
|
||||
Alpine20.directive("trap", Alpine20.skipDuringClone((el, { expression, modifiers }, { effect, evaluateLater, cleanup }) => {
|
||||
Alpine23.directive("trap", Alpine23.skipDuringClone((el, { expression, modifiers }, { effect, evaluateLater, cleanup }) => {
|
||||
let evaluator = evaluateLater(expression);
|
||||
let oldValue = false;
|
||||
let options = {
|
||||
@ -4980,7 +4980,7 @@ var require_module_cjs4 = __commonJS({
|
||||
persist: () => src_default
|
||||
});
|
||||
module.exports = __toCommonJS(module_exports);
|
||||
function src_default(Alpine20) {
|
||||
function src_default(Alpine23) {
|
||||
let persist3 = () => {
|
||||
let alias;
|
||||
let storage;
|
||||
@ -4995,11 +4995,11 @@ var require_module_cjs4 = __commonJS({
|
||||
setItem: dummy.set.bind(dummy)
|
||||
};
|
||||
}
|
||||
return Alpine20.interceptor((initialValue, getter, setter, path, key) => {
|
||||
return Alpine23.interceptor((initialValue, getter, setter, path, key) => {
|
||||
let lookup = alias || `_x_${path}`;
|
||||
let initial = storageHas(lookup, storage) ? storageGet(lookup, storage) : initialValue;
|
||||
setter(initial);
|
||||
Alpine20.effect(() => {
|
||||
Alpine23.effect(() => {
|
||||
let value = getter();
|
||||
storageSet(lookup, value, storage);
|
||||
setter(value);
|
||||
@ -5015,12 +5015,12 @@ var require_module_cjs4 = __commonJS({
|
||||
};
|
||||
});
|
||||
};
|
||||
Object.defineProperty(Alpine20, "$persist", { get: () => persist3() });
|
||||
Alpine20.magic("persist", persist3);
|
||||
Alpine20.persist = (key, { get, set }, storage = localStorage) => {
|
||||
Object.defineProperty(Alpine23, "$persist", { get: () => persist3() });
|
||||
Alpine23.magic("persist", persist3);
|
||||
Alpine23.persist = (key, { get, set }, storage = localStorage) => {
|
||||
let initial = storageHas(key, storage) ? storageGet(key, storage) : get();
|
||||
set(initial);
|
||||
Alpine20.effect(() => {
|
||||
Alpine23.effect(() => {
|
||||
let value = get();
|
||||
storageSet(key, value, storage);
|
||||
set(value);
|
||||
@ -5069,8 +5069,8 @@ var require_module_cjs5 = __commonJS({
|
||||
intersect: () => src_default
|
||||
});
|
||||
module.exports = __toCommonJS(module_exports);
|
||||
function src_default(Alpine20) {
|
||||
Alpine20.directive("intersect", Alpine20.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater, cleanup }) => {
|
||||
function src_default(Alpine23) {
|
||||
Alpine23.directive("intersect", Alpine23.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater, cleanup }) => {
|
||||
let evaluate = evaluateLater(expression);
|
||||
let options = {
|
||||
rootMargin: getRootMargin(modifiers),
|
||||
@ -5151,8 +5151,8 @@ var require_module_cjs6 = __commonJS({
|
||||
resize: () => src_default
|
||||
});
|
||||
module.exports = __toCommonJS(module_exports);
|
||||
function src_default(Alpine20) {
|
||||
Alpine20.directive("resize", Alpine20.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater, cleanup }) => {
|
||||
function src_default(Alpine23) {
|
||||
Alpine23.directive("resize", Alpine23.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater, cleanup }) => {
|
||||
let evaluator = evaluateLater(expression);
|
||||
let evaluate = (width, height) => {
|
||||
evaluator(() => {
|
||||
@ -6396,20 +6396,20 @@ var require_module_cjs7 = __commonJS({
|
||||
platform: platformWithCache
|
||||
});
|
||||
};
|
||||
function src_default(Alpine20) {
|
||||
Alpine20.magic("anchor", (el) => {
|
||||
function src_default(Alpine23) {
|
||||
Alpine23.magic("anchor", (el) => {
|
||||
if (!el._x_anchor)
|
||||
throw "Alpine: No x-anchor directive found on element using $anchor...";
|
||||
return el._x_anchor;
|
||||
});
|
||||
Alpine20.interceptClone((from, to) => {
|
||||
Alpine23.interceptClone((from, to) => {
|
||||
if (from && from._x_anchor && !to._x_anchor) {
|
||||
to._x_anchor = from._x_anchor;
|
||||
}
|
||||
});
|
||||
Alpine20.directive("anchor", Alpine20.skipDuringClone((el, { expression, modifiers, value }, { cleanup, evaluate: evaluate2 }) => {
|
||||
Alpine23.directive("anchor", Alpine23.skipDuringClone((el, { expression, modifiers, value }, { cleanup, evaluate: evaluate2 }) => {
|
||||
let { placement, offsetValue, unstyled } = getOptions(modifiers);
|
||||
el._x_anchor = Alpine20.reactive({ x: 0, y: 0 });
|
||||
el._x_anchor = Alpine23.reactive({ x: 0, y: 0 });
|
||||
let reference = evaluate2(expression);
|
||||
if (!reference)
|
||||
throw "Alpine: no element provided to x-anchor...";
|
||||
@ -6784,7 +6784,8 @@ var require_module_cjs8 = __commonJS({
|
||||
return swapElements(from2, to);
|
||||
}
|
||||
let updateChildrenOnly = false;
|
||||
if (shouldSkip(updating, from2, to, () => updateChildrenOnly = true))
|
||||
let skipChildren = false;
|
||||
if (shouldSkipChildren(updating, () => skipChildren = true, from2, to, () => updateChildrenOnly = true))
|
||||
return;
|
||||
if (from2.nodeType === 1 && window.Alpine) {
|
||||
window.Alpine.cloneNode(from2, to);
|
||||
@ -6801,7 +6802,9 @@ var require_module_cjs8 = __commonJS({
|
||||
patchAttributes(from2, to);
|
||||
}
|
||||
updated(from2, to);
|
||||
patchChildren(from2, to);
|
||||
if (!skipChildren) {
|
||||
patchChildren(from2, to);
|
||||
}
|
||||
}
|
||||
function differentElementNamesTypesOrKeys(from2, to) {
|
||||
return from2.nodeType != to.nodeType || from2.nodeName != to.nodeName || getKey(from2) != getKey(to);
|
||||
@ -7015,6 +7018,11 @@ var require_module_cjs8 = __commonJS({
|
||||
hook(...args, () => skip = true);
|
||||
return skip;
|
||||
}
|
||||
function shouldSkipChildren(hook, skipChildren, ...args) {
|
||||
let skip = false;
|
||||
hook(...args, () => skip = true, skipChildren);
|
||||
return skip;
|
||||
}
|
||||
var patched = false;
|
||||
function createElement(html) {
|
||||
const template = document.createElement("template");
|
||||
@ -7095,8 +7103,8 @@ var require_module_cjs8 = __commonJS({
|
||||
to.setAttribute("id", fromId);
|
||||
to.id = fromId;
|
||||
}
|
||||
function src_default(Alpine20) {
|
||||
Alpine20.morph = morph3;
|
||||
function src_default(Alpine23) {
|
||||
Alpine23.morph = morph3;
|
||||
}
|
||||
var module_default = src_default;
|
||||
}
|
||||
@ -7129,8 +7137,8 @@ var require_module_cjs9 = __commonJS({
|
||||
stripDown: () => stripDown
|
||||
});
|
||||
module.exports = __toCommonJS(module_exports);
|
||||
function src_default(Alpine20) {
|
||||
Alpine20.directive("mask", (el, { value, expression }, { effect, evaluateLater, cleanup }) => {
|
||||
function src_default(Alpine23) {
|
||||
Alpine23.directive("mask", (el, { value, expression }, { effect, evaluateLater, cleanup }) => {
|
||||
let templateFn = () => expression;
|
||||
let lastInputValue = "";
|
||||
queueMicrotask(() => {
|
||||
@ -7139,7 +7147,7 @@ var require_module_cjs9 = __commonJS({
|
||||
effect(() => {
|
||||
templateFn = (input) => {
|
||||
let result;
|
||||
Alpine20.dontAutoEvaluateFunctions(() => {
|
||||
Alpine23.dontAutoEvaluateFunctions(() => {
|
||||
evaluator((value2) => {
|
||||
result = typeof value2 === "function" ? value2(input) : value2;
|
||||
}, { scope: {
|
||||
@ -8188,6 +8196,7 @@ var aliases = {
|
||||
"on": "$on",
|
||||
"el": "$el",
|
||||
"id": "$id",
|
||||
"js": "$js",
|
||||
"get": "$get",
|
||||
"set": "$set",
|
||||
"call": "$call",
|
||||
@ -8259,6 +8268,14 @@ wireProperty("$el", (component) => {
|
||||
wireProperty("$id", (component) => {
|
||||
return component.id;
|
||||
});
|
||||
wireProperty("$js", (component) => {
|
||||
let fn = component.addJsAction.bind(component);
|
||||
let jsActions = component.getJsActions();
|
||||
Object.keys(jsActions).forEach((name) => {
|
||||
fn[name] = component.getJsAction(name);
|
||||
});
|
||||
return fn;
|
||||
});
|
||||
wireProperty("$set", (component) => async (property, value, live = true) => {
|
||||
dataSet(component.reactive, property, value);
|
||||
if (live) {
|
||||
@ -8354,6 +8371,7 @@ var Component = class {
|
||||
this.ephemeral = extractData(deepClone(this.snapshot.data));
|
||||
this.reactive = Alpine.reactive(this.ephemeral);
|
||||
this.queuedUpdates = {};
|
||||
this.jsActions = {};
|
||||
this.$wire = generateWireObject(this, this.reactive);
|
||||
this.cleanups = [];
|
||||
this.processEffects(this.effects);
|
||||
@ -8429,6 +8447,18 @@ var Component = class {
|
||||
}
|
||||
el.setAttribute("wire:effects", JSON.stringify(effects));
|
||||
}
|
||||
addJsAction(name, action) {
|
||||
this.jsActions[name] = action;
|
||||
}
|
||||
hasJsAction(name) {
|
||||
return this.jsActions[name] !== void 0;
|
||||
}
|
||||
getJsAction(name) {
|
||||
return this.jsActions[name].bind(this.$wire);
|
||||
}
|
||||
getJsActions() {
|
||||
return this.jsActions;
|
||||
}
|
||||
addCleanup(cleanup) {
|
||||
this.cleanups.push(cleanup);
|
||||
}
|
||||
@ -9111,6 +9141,7 @@ var attributesExemptFromScriptTagHashing = [
|
||||
];
|
||||
function swapCurrentPageWithNewHtml(html, andThen) {
|
||||
let newDocument = new DOMParser().parseFromString(html, "text/html");
|
||||
let newHtml = newDocument.documentElement;
|
||||
let newBody = document.adoptNode(newDocument.body);
|
||||
let newHead = document.adoptNode(newDocument.head);
|
||||
oldBodyScriptTagHashes = oldBodyScriptTagHashes.concat(Array.from(document.body.querySelectorAll("script")).map((i) => {
|
||||
@ -9118,6 +9149,7 @@ function swapCurrentPageWithNewHtml(html, andThen) {
|
||||
}));
|
||||
let afterRemoteScriptsHaveLoaded = () => {
|
||||
};
|
||||
replaceHtmlAttributes(newHtml);
|
||||
mergeNewHead(newHead).finally(() => {
|
||||
afterRemoteScriptsHaveLoaded();
|
||||
});
|
||||
@ -9137,6 +9169,21 @@ function prepNewBodyScriptTagsToRun(newBody, oldBodyScriptTagHashes2) {
|
||||
i.replaceWith(cloneScriptTag(i));
|
||||
});
|
||||
}
|
||||
function replaceHtmlAttributes(newHtmlElement) {
|
||||
let currentHtmlElement = document.documentElement;
|
||||
Array.from(newHtmlElement.attributes).forEach((attr) => {
|
||||
const name = attr.name;
|
||||
const value = attr.value;
|
||||
if (currentHtmlElement.getAttribute(name) !== value) {
|
||||
currentHtmlElement.setAttribute(name, value);
|
||||
}
|
||||
});
|
||||
Array.from(currentHtmlElement.attributes).forEach((attr) => {
|
||||
if (!newHtmlElement.hasAttribute(attr.name)) {
|
||||
currentHtmlElement.removeAttribute(attr.name);
|
||||
}
|
||||
});
|
||||
}
|
||||
function mergeNewHead(newHead) {
|
||||
let children = Array.from(document.head.children);
|
||||
let headChildrenHtmlLookup = children.map((i) => i.outerHTML);
|
||||
@ -9240,8 +9287,8 @@ var enablePersist = true;
|
||||
var showProgressBar = true;
|
||||
var restoreScroll = true;
|
||||
var autofocus = false;
|
||||
function navigate_default(Alpine20) {
|
||||
Alpine20.navigate = (url) => {
|
||||
function navigate_default(Alpine23) {
|
||||
Alpine23.navigate = (url) => {
|
||||
let destination = createUrlObjectFromString(url);
|
||||
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
|
||||
url: destination,
|
||||
@ -9252,11 +9299,11 @@ function navigate_default(Alpine20) {
|
||||
return;
|
||||
navigateTo(destination);
|
||||
};
|
||||
Alpine20.navigate.disableProgressBar = () => {
|
||||
Alpine23.navigate.disableProgressBar = () => {
|
||||
showProgressBar = false;
|
||||
};
|
||||
Alpine20.addInitSelector(() => `[${Alpine20.prefixed("navigate")}]`);
|
||||
Alpine20.directive("navigate", (el, { modifiers }) => {
|
||||
Alpine23.addInitSelector(() => `[${Alpine23.prefixed("navigate")}]`);
|
||||
Alpine23.directive("navigate", (el, { modifiers }) => {
|
||||
let shouldPrefetchOnHover = modifiers.includes("hover");
|
||||
shouldPrefetchOnHover && whenThisLinkIsHoveredFor(el, 60, () => {
|
||||
let destination = extractDestinationFromLink(el);
|
||||
@ -9293,7 +9340,7 @@ function navigate_default(Alpine20) {
|
||||
showProgressBar && finishAndHideProgressBar();
|
||||
cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement();
|
||||
updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks();
|
||||
preventAlpineFromPickingUpDomChanges(Alpine20, (andAfterAllThis) => {
|
||||
preventAlpineFromPickingUpDomChanges(Alpine23, (andAfterAllThis) => {
|
||||
enablePersist && storePersistantElementsForLater((persistedEl) => {
|
||||
packUpPersistedTeleports(persistedEl);
|
||||
packUpPersistedPopovers(persistedEl);
|
||||
@ -9315,7 +9362,7 @@ function navigate_default(Alpine20) {
|
||||
setTimeout(() => {
|
||||
autofocus && autofocusElementsWithTheAutofocusAttribute();
|
||||
});
|
||||
nowInitializeAlpineOnTheNewPage(Alpine20);
|
||||
nowInitializeAlpineOnTheNewPage(Alpine23);
|
||||
fireEventForOtherLibrariesToHookInto("alpine:navigated");
|
||||
});
|
||||
});
|
||||
@ -9348,7 +9395,7 @@ function navigate_default(Alpine20) {
|
||||
storeScrollInformationInHtmlBeforeNavigatingAway();
|
||||
fireEventForOtherLibrariesToHookInto("alpine:navigating");
|
||||
updateCurrentPageHtmlInSnapshotCacheForLaterBackButtonClicks(currentPageUrl, currentPageKey);
|
||||
preventAlpineFromPickingUpDomChanges(Alpine20, (andAfterAllThis) => {
|
||||
preventAlpineFromPickingUpDomChanges(Alpine23, (andAfterAllThis) => {
|
||||
enablePersist && storePersistantElementsForLater((persistedEl) => {
|
||||
packUpPersistedTeleports(persistedEl);
|
||||
packUpPersistedPopovers(persistedEl);
|
||||
@ -9363,7 +9410,7 @@ function navigate_default(Alpine20) {
|
||||
restoreScrollPositionOrScrollToTop();
|
||||
andAfterAllThis(() => {
|
||||
autofocus && autofocusElementsWithTheAutofocusAttribute();
|
||||
nowInitializeAlpineOnTheNewPage(Alpine20);
|
||||
nowInitializeAlpineOnTheNewPage(Alpine23);
|
||||
fireEventForOtherLibrariesToHookInto("alpine:navigated");
|
||||
});
|
||||
});
|
||||
@ -9378,10 +9425,10 @@ function fetchHtmlOrUsePrefetchedHtml(fromDestination, callback) {
|
||||
fetchHtml(fromDestination, callback);
|
||||
});
|
||||
}
|
||||
function preventAlpineFromPickingUpDomChanges(Alpine20, callback) {
|
||||
Alpine20.stopObservingMutations();
|
||||
function preventAlpineFromPickingUpDomChanges(Alpine23, callback) {
|
||||
Alpine23.stopObservingMutations();
|
||||
callback((afterAllThis) => {
|
||||
Alpine20.startObservingMutations();
|
||||
Alpine23.startObservingMutations();
|
||||
queueMicrotask(() => {
|
||||
afterAllThis();
|
||||
});
|
||||
@ -9396,8 +9443,8 @@ function fireEventForOtherLibrariesToHookInto(name, detail) {
|
||||
document.dispatchEvent(event);
|
||||
return event.defaultPrevented;
|
||||
}
|
||||
function nowInitializeAlpineOnTheNewPage(Alpine20) {
|
||||
Alpine20.initTree(document.body, void 0, (el, skip) => {
|
||||
function nowInitializeAlpineOnTheNewPage(Alpine23) {
|
||||
Alpine23.initTree(document.body, void 0, (el, skip) => {
|
||||
if (el._x_wasPersisted)
|
||||
skip();
|
||||
});
|
||||
@ -9420,8 +9467,8 @@ function cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement() {
|
||||
}
|
||||
|
||||
// js/plugins/history/index.js
|
||||
function history2(Alpine20) {
|
||||
Alpine20.magic("queryString", (el, { interceptor }) => {
|
||||
function history2(Alpine23) {
|
||||
Alpine23.magic("queryString", (el, { interceptor }) => {
|
||||
let alias;
|
||||
let alwaysShow = false;
|
||||
let usePush = false;
|
||||
@ -9430,9 +9477,9 @@ function history2(Alpine20) {
|
||||
let { initial, replace: replace2, push: push2, pop } = track(queryKey, initialSeedValue, alwaysShow);
|
||||
setter(initial);
|
||||
if (!usePush) {
|
||||
Alpine20.effect(() => replace2(getter()));
|
||||
Alpine23.effect(() => replace2(getter()));
|
||||
} else {
|
||||
Alpine20.effect(() => push2(getter()));
|
||||
Alpine23.effect(() => push2(getter()));
|
||||
pop(async (newValue) => {
|
||||
setter(newValue);
|
||||
let tillTheEndOfTheMicrotaskQueue = () => Promise.resolve();
|
||||
@ -9455,7 +9502,7 @@ function history2(Alpine20) {
|
||||
};
|
||||
});
|
||||
});
|
||||
Alpine20.history = { track };
|
||||
Alpine23.history = { track };
|
||||
}
|
||||
function track(name, initialSeedValue, alwaysShow = false, except = null) {
|
||||
let { has, get, set, remove } = queryStringUtils();
|
||||
@ -9519,14 +9566,22 @@ function replace(url, key, object) {
|
||||
if (!state.alpine)
|
||||
state.alpine = {};
|
||||
state.alpine[key] = unwrap(object);
|
||||
window.history.replaceState(state, "", url.toString());
|
||||
try {
|
||||
window.history.replaceState(state, "", url.toString());
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
function push(url, key, object) {
|
||||
let state = window.history.state || {};
|
||||
if (!state.alpine)
|
||||
state.alpine = {};
|
||||
state = { alpine: { ...state.alpine, ...{ [key]: unwrap(object) } } };
|
||||
window.history.pushState(state, "", url.toString());
|
||||
try {
|
||||
window.history.pushState(state, "", url.toString());
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
function unwrap(object) {
|
||||
if (object === void 0)
|
||||
@ -9697,7 +9752,7 @@ function ensureLivewireScriptIsntMisplaced() {
|
||||
}
|
||||
|
||||
// js/index.js
|
||||
var import_alpinejs18 = __toESM(require_module_cjs());
|
||||
var import_alpinejs21 = __toESM(require_module_cjs());
|
||||
|
||||
// js/features/supportListeners.js
|
||||
on("effect", ({ component, effects }) => {
|
||||
@ -9754,7 +9809,7 @@ on("effect", ({ component, effects }) => {
|
||||
onlyIfScriptHasntBeenRunAlreadyForThisComponent(component, key, () => {
|
||||
let scriptContent = extractScriptTagContent(content);
|
||||
import_alpinejs6.default.dontAutoEvaluateFunctions(() => {
|
||||
import_alpinejs6.default.evaluate(component.el, scriptContent, { "$wire": component.$wire });
|
||||
import_alpinejs6.default.evaluate(component.el, scriptContent, { "$wire": component.$wire, "$js": component.$wire.$js });
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -9827,6 +9882,10 @@ function cloneScriptTag2(el) {
|
||||
|
||||
// js/features/supportJsEvaluation.js
|
||||
var import_alpinejs7 = __toESM(require_module_cjs());
|
||||
import_alpinejs7.default.magic("js", (el) => {
|
||||
let component = closestComponent(el);
|
||||
return component.$wire.js;
|
||||
});
|
||||
on("effect", ({ component, effects }) => {
|
||||
let js = effects.js;
|
||||
let xjs = effects.xjs;
|
||||
@ -9838,8 +9897,9 @@ on("effect", ({ component, effects }) => {
|
||||
});
|
||||
}
|
||||
if (xjs) {
|
||||
xjs.forEach((expression) => {
|
||||
import_alpinejs7.default.evaluate(component.el, expression);
|
||||
xjs.forEach(({ expression, params }) => {
|
||||
params = Object.values(params);
|
||||
import_alpinejs7.default.evaluate(component.el, expression, { scope: component.jsActions, params });
|
||||
});
|
||||
}
|
||||
});
|
||||
@ -9860,10 +9920,10 @@ function morph2(component, el, html) {
|
||||
to.__livewire = component;
|
||||
trigger("morph", { el, toEl: to, component });
|
||||
import_alpinejs8.default.morph(el, to, {
|
||||
updating: (el2, toEl, childrenOnly, skip) => {
|
||||
updating: (el2, toEl, childrenOnly, skip, skipChildren) => {
|
||||
if (isntElement(el2))
|
||||
return;
|
||||
trigger("morph.updating", { el: el2, toEl, component, skip, childrenOnly });
|
||||
trigger("morph.updating", { el: el2, toEl, component, skip, childrenOnly, skipChildren });
|
||||
if (el2.__livewire_replace === true)
|
||||
el2.innerHTML = toEl.innerHTML;
|
||||
if (el2.__livewire_replace_self === true) {
|
||||
@ -9874,6 +9934,8 @@ function morph2(component, el, html) {
|
||||
return skip();
|
||||
if (el2.__livewire_ignore_self === true)
|
||||
childrenOnly();
|
||||
if (el2.__livewire_ignore_children === true)
|
||||
return skipChildren();
|
||||
if (isComponentRootEl(el2) && el2.getAttribute("wire:id") !== component.id)
|
||||
return skip();
|
||||
if (isComponentRootEl(el2))
|
||||
@ -10309,6 +10371,14 @@ on("morph.added", ({ el }) => {
|
||||
el.__addedByMorph = true;
|
||||
});
|
||||
directive("transition", ({ el, directive: directive2, component, cleanup }) => {
|
||||
for (let i = 0; i < el.attributes.length; i++) {
|
||||
if (el.attributes[i].name.startsWith("wire:show")) {
|
||||
import_alpinejs11.default.bind(el, {
|
||||
[directive2.rawName.replace("wire:transition", "x-transition")]: directive2.expression
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
let visibility = import_alpinejs11.default.reactive({ state: el.__addedByMorph ? false : true });
|
||||
import_alpinejs11.default.bind(el, {
|
||||
[directive2.rawName.replace("wire:", "x-")]: "",
|
||||
@ -10446,8 +10516,10 @@ globalDirective("current", ({ el, directive: directive2, cleanup }) => {
|
||||
let refreshCurrent = (url) => {
|
||||
if (pathMatches(hrefUrl, url, options)) {
|
||||
el.classList.add(...classes);
|
||||
el.setAttribute("data-current", "");
|
||||
} else {
|
||||
el.classList.remove(...classes);
|
||||
el.removeAttribute("data-current");
|
||||
}
|
||||
};
|
||||
refreshCurrent(new URL(window.location.href));
|
||||
@ -10735,15 +10807,25 @@ directive("replace", ({ el, directive: directive2 }) => {
|
||||
directive("ignore", ({ el, directive: directive2 }) => {
|
||||
if (directive2.modifiers.includes("self")) {
|
||||
el.__livewire_ignore_self = true;
|
||||
} else if (directive2.modifiers.includes("children")) {
|
||||
el.__livewire_ignore_children = true;
|
||||
} else {
|
||||
el.__livewire_ignore = true;
|
||||
}
|
||||
});
|
||||
|
||||
// js/directives/wire-cloak.js
|
||||
var import_alpinejs15 = __toESM(require_module_cjs());
|
||||
import_alpinejs15.default.interceptInit((el) => {
|
||||
if (el.hasAttribute("wire:cloak")) {
|
||||
import_alpinejs15.default.mutateDom(() => el.removeAttribute("wire:cloak"));
|
||||
}
|
||||
});
|
||||
|
||||
// js/directives/wire-dirty.js
|
||||
var refreshDirtyStatesByComponent = new WeakBag();
|
||||
on("commit", ({ component, succeed }) => {
|
||||
succeed(() => {
|
||||
on("commit", ({ component, respond }) => {
|
||||
respond(() => {
|
||||
setTimeout(() => {
|
||||
refreshDirtyStatesByComponent.each(component, (i) => i(false));
|
||||
});
|
||||
@ -10751,7 +10833,6 @@ on("commit", ({ component, succeed }) => {
|
||||
});
|
||||
directive("dirty", ({ el, directive: directive2, component }) => {
|
||||
let targets = dirtyTargets(el);
|
||||
let dirty = Alpine.reactive({ state: false });
|
||||
let oldIsDirty = false;
|
||||
let initialDisplay = el.style.display;
|
||||
let refreshDirtyState = (isDirty) => {
|
||||
@ -10790,7 +10871,7 @@ function dirtyTargets(el) {
|
||||
}
|
||||
|
||||
// js/directives/wire-model.js
|
||||
var import_alpinejs15 = __toESM(require_module_cjs());
|
||||
var import_alpinejs16 = __toESM(require_module_cjs());
|
||||
directive("model", ({ el, directive: directive2, component, cleanup }) => {
|
||||
let { expression, modifiers } = directive2;
|
||||
if (!expression) {
|
||||
@ -10808,7 +10889,7 @@ directive("model", ({ el, directive: directive2, component, cleanup }) => {
|
||||
let isDebounced = modifiers.includes("debounce");
|
||||
let update = expression.startsWith("$parent") ? () => component.$wire.$parent.$commit() : () => component.$wire.$commit();
|
||||
let debouncedUpdate = isTextInput(el) && !isDebounced && isLive ? debounce(update, 150) : update;
|
||||
import_alpinejs15.default.bind(el, {
|
||||
import_alpinejs16.default.bind(el, {
|
||||
["@change"]() {
|
||||
isLazy && update();
|
||||
},
|
||||
@ -10864,14 +10945,14 @@ function debounce(func, wait) {
|
||||
}
|
||||
|
||||
// js/directives/wire-init.js
|
||||
var import_alpinejs16 = __toESM(require_module_cjs());
|
||||
var import_alpinejs17 = __toESM(require_module_cjs());
|
||||
directive("init", ({ el, directive: directive2 }) => {
|
||||
let fullMethod = directive2.expression ?? "$refresh";
|
||||
import_alpinejs16.default.evaluate(el, `$wire.${fullMethod}`);
|
||||
import_alpinejs17.default.evaluate(el, `$wire.${fullMethod}`);
|
||||
});
|
||||
|
||||
// js/directives/wire-poll.js
|
||||
var import_alpinejs17 = __toESM(require_module_cjs());
|
||||
var import_alpinejs18 = __toESM(require_module_cjs());
|
||||
directive("poll", ({ el, directive: directive2 }) => {
|
||||
let interval = extractDurationFrom(directive2.modifiers, 2e3);
|
||||
let { start: start2, pauseWhile, throttleWhile, stopWhen } = poll(() => {
|
||||
@ -10885,7 +10966,7 @@ directive("poll", ({ el, directive: directive2 }) => {
|
||||
stopWhen(() => theElementIsDisconnected(el));
|
||||
});
|
||||
function triggerComponentRequest(el, directive2) {
|
||||
import_alpinejs17.default.evaluate(el, directive2.expression ? "$wire." + directive2.expression : "$wire.$commit()");
|
||||
import_alpinejs18.default.evaluate(el, directive2.expression ? "$wire." + directive2.expression : "$wire.$commit()");
|
||||
}
|
||||
function poll(callback, interval = 2e3) {
|
||||
let pauseConditions = [];
|
||||
@ -10973,6 +11054,40 @@ function extractDurationFrom(modifiers, defaultDuration) {
|
||||
return durationInMilliSeconds || defaultDuration;
|
||||
}
|
||||
|
||||
// js/directives/wire-show.js
|
||||
var import_alpinejs19 = __toESM(require_module_cjs());
|
||||
import_alpinejs19.default.interceptInit((el) => {
|
||||
for (let i = 0; i < el.attributes.length; i++) {
|
||||
if (el.attributes[i].name.startsWith("wire:show")) {
|
||||
let { name, value } = el.attributes[i];
|
||||
let modifierString = name.split("wire:show")[1];
|
||||
let expression = value.startsWith("!") ? "!$wire." + value.slice(1).trim() : "$wire." + value.trim();
|
||||
import_alpinejs19.default.bind(el, {
|
||||
["x-show" + modifierString]() {
|
||||
return import_alpinejs19.default.evaluate(el, expression);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// js/directives/wire-text.js
|
||||
var import_alpinejs20 = __toESM(require_module_cjs());
|
||||
import_alpinejs20.default.interceptInit((el) => {
|
||||
for (let i = 0; i < el.attributes.length; i++) {
|
||||
if (el.attributes[i].name.startsWith("wire:text")) {
|
||||
let { name, value } = el.attributes[i];
|
||||
let modifierString = name.split("wire:text")[1];
|
||||
let expression = value.startsWith("!") ? "!$wire." + value.slice(1).trim() : "$wire." + value.trim();
|
||||
import_alpinejs20.default.bind(el, {
|
||||
["x-text" + modifierString]() {
|
||||
return import_alpinejs20.default.evaluate(el, expression);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// js/index.js
|
||||
var Livewire2 = {
|
||||
directive,
|
||||
@ -10988,7 +11103,7 @@ var Livewire2 = {
|
||||
dispatch: dispatchGlobal,
|
||||
on: on2,
|
||||
get navigate() {
|
||||
return import_alpinejs18.default.navigate;
|
||||
return import_alpinejs21.default.navigate;
|
||||
}
|
||||
};
|
||||
var warnAboutMultipleInstancesOf = (entity) => console.warn(`Detected multiple instances of ${entity} running`);
|
||||
@ -10997,7 +11112,7 @@ if (window.Livewire)
|
||||
if (window.Alpine)
|
||||
warnAboutMultipleInstancesOf("Alpine");
|
||||
window.Livewire = Livewire2;
|
||||
window.Alpine = import_alpinejs18.default;
|
||||
window.Alpine = import_alpinejs21.default;
|
||||
if (window.livewireScriptConfig === void 0) {
|
||||
window.Alpine.__fromLivewire = true;
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
@ -11007,7 +11122,7 @@ if (window.livewireScriptConfig === void 0) {
|
||||
Livewire2.start();
|
||||
});
|
||||
}
|
||||
var export_Alpine = import_alpinejs18.default;
|
||||
var export_Alpine = import_alpinejs21.default;
|
||||
export {
|
||||
export_Alpine as Alpine,
|
||||
Livewire2 as Livewire
|
||||
|
||||
6
public/vendor/livewire/livewire.esm.js.map
vendored
6
public/vendor/livewire/livewire.esm.js.map
vendored
File diff suppressed because one or more lines are too long
138
public/vendor/livewire/livewire.js
vendored
138
public/vendor/livewire/livewire.js
vendored
@ -2295,7 +2295,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
get raw() {
|
||||
return raw;
|
||||
},
|
||||
version: "3.14.8",
|
||||
version: "3.14.9",
|
||||
flushAndStopDeferringMutations,
|
||||
dontAutoEvaluateFunctions,
|
||||
disableEffectScheduling,
|
||||
@ -4363,6 +4363,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
"on": "$on",
|
||||
"el": "$el",
|
||||
"id": "$id",
|
||||
"js": "$js",
|
||||
"get": "$get",
|
||||
"set": "$set",
|
||||
"call": "$call",
|
||||
@ -4434,6 +4435,14 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
wireProperty("$id", (component) => {
|
||||
return component.id;
|
||||
});
|
||||
wireProperty("$js", (component) => {
|
||||
let fn = component.addJsAction.bind(component);
|
||||
let jsActions = component.getJsActions();
|
||||
Object.keys(jsActions).forEach((name) => {
|
||||
fn[name] = component.getJsAction(name);
|
||||
});
|
||||
return fn;
|
||||
});
|
||||
wireProperty("$set", (component) => async (property, value, live = true) => {
|
||||
dataSet(component.reactive, property, value);
|
||||
if (live) {
|
||||
@ -4529,6 +4538,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
this.ephemeral = extractData(deepClone(this.snapshot.data));
|
||||
this.reactive = Alpine.reactive(this.ephemeral);
|
||||
this.queuedUpdates = {};
|
||||
this.jsActions = {};
|
||||
this.$wire = generateWireObject(this, this.reactive);
|
||||
this.cleanups = [];
|
||||
this.processEffects(this.effects);
|
||||
@ -4604,6 +4614,18 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
el.setAttribute("wire:effects", JSON.stringify(effects));
|
||||
}
|
||||
addJsAction(name, action) {
|
||||
this.jsActions[name] = action;
|
||||
}
|
||||
hasJsAction(name) {
|
||||
return this.jsActions[name] !== void 0;
|
||||
}
|
||||
getJsAction(name) {
|
||||
return this.jsActions[name].bind(this.$wire);
|
||||
}
|
||||
getJsActions() {
|
||||
return this.jsActions;
|
||||
}
|
||||
addCleanup(cleanup2) {
|
||||
this.cleanups.push(cleanup2);
|
||||
}
|
||||
@ -7715,6 +7737,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
];
|
||||
function swapCurrentPageWithNewHtml(html, andThen) {
|
||||
let newDocument = new DOMParser().parseFromString(html, "text/html");
|
||||
let newHtml = newDocument.documentElement;
|
||||
let newBody = document.adoptNode(newDocument.body);
|
||||
let newHead = document.adoptNode(newDocument.head);
|
||||
oldBodyScriptTagHashes = oldBodyScriptTagHashes.concat(Array.from(document.body.querySelectorAll("script")).map((i) => {
|
||||
@ -7722,6 +7745,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}));
|
||||
let afterRemoteScriptsHaveLoaded = () => {
|
||||
};
|
||||
replaceHtmlAttributes(newHtml);
|
||||
mergeNewHead(newHead).finally(() => {
|
||||
afterRemoteScriptsHaveLoaded();
|
||||
});
|
||||
@ -7741,6 +7765,21 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
i.replaceWith(cloneScriptTag(i));
|
||||
});
|
||||
}
|
||||
function replaceHtmlAttributes(newHtmlElement) {
|
||||
let currentHtmlElement = document.documentElement;
|
||||
Array.from(newHtmlElement.attributes).forEach((attr) => {
|
||||
const name = attr.name;
|
||||
const value = attr.value;
|
||||
if (currentHtmlElement.getAttribute(name) !== value) {
|
||||
currentHtmlElement.setAttribute(name, value);
|
||||
}
|
||||
});
|
||||
Array.from(currentHtmlElement.attributes).forEach((attr) => {
|
||||
if (!newHtmlElement.hasAttribute(attr.name)) {
|
||||
currentHtmlElement.removeAttribute(attr.name);
|
||||
}
|
||||
});
|
||||
}
|
||||
function mergeNewHead(newHead) {
|
||||
let children = Array.from(document.head.children);
|
||||
let headChildrenHtmlLookup = children.map((i) => i.outerHTML);
|
||||
@ -8123,14 +8162,22 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
if (!state.alpine)
|
||||
state.alpine = {};
|
||||
state.alpine[key] = unwrap(object);
|
||||
window.history.replaceState(state, "", url.toString());
|
||||
try {
|
||||
window.history.replaceState(state, "", url.toString());
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
function push(url, key, object) {
|
||||
let state = window.history.state || {};
|
||||
if (!state.alpine)
|
||||
state.alpine = {};
|
||||
state = { alpine: { ...state.alpine, ...{ [key]: unwrap(object) } } };
|
||||
window.history.pushState(state, "", url.toString());
|
||||
try {
|
||||
window.history.pushState(state, "", url.toString());
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
function unwrap(object) {
|
||||
if (object === void 0)
|
||||
@ -8251,7 +8298,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
return swapElements(from2, to);
|
||||
}
|
||||
let updateChildrenOnly = false;
|
||||
if (shouldSkip(updating, from2, to, () => updateChildrenOnly = true))
|
||||
let skipChildren = false;
|
||||
if (shouldSkipChildren(updating, () => skipChildren = true, from2, to, () => updateChildrenOnly = true))
|
||||
return;
|
||||
if (from2.nodeType === 1 && window.Alpine) {
|
||||
window.Alpine.cloneNode(from2, to);
|
||||
@ -8268,7 +8316,9 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
patchAttributes(from2, to);
|
||||
}
|
||||
updated(from2, to);
|
||||
patchChildren(from2, to);
|
||||
if (!skipChildren) {
|
||||
patchChildren(from2, to);
|
||||
}
|
||||
}
|
||||
function differentElementNamesTypesOrKeys(from2, to) {
|
||||
return from2.nodeType != to.nodeType || from2.nodeName != to.nodeName || getKey(from2) != getKey(to);
|
||||
@ -8482,6 +8532,11 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
hook(...args, () => skip = true);
|
||||
return skip;
|
||||
}
|
||||
function shouldSkipChildren(hook, skipChildren, ...args) {
|
||||
let skip = false;
|
||||
hook(...args, () => skip = true, skipChildren);
|
||||
return skip;
|
||||
}
|
||||
var patched = false;
|
||||
function createElement(html) {
|
||||
const template = document.createElement("template");
|
||||
@ -8861,7 +8916,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
onlyIfScriptHasntBeenRunAlreadyForThisComponent(component, key, () => {
|
||||
let scriptContent = extractScriptTagContent(content);
|
||||
module_default.dontAutoEvaluateFunctions(() => {
|
||||
module_default.evaluate(component.el, scriptContent, { "$wire": component.$wire });
|
||||
module_default.evaluate(component.el, scriptContent, { "$wire": component.$wire, "$js": component.$wire.$js });
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -8933,6 +8988,10 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
|
||||
// js/features/supportJsEvaluation.js
|
||||
module_default.magic("js", (el) => {
|
||||
let component = closestComponent(el);
|
||||
return component.$wire.js;
|
||||
});
|
||||
on2("effect", ({ component, effects }) => {
|
||||
let js = effects.js;
|
||||
let xjs = effects.xjs;
|
||||
@ -8944,8 +9003,9 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
});
|
||||
}
|
||||
if (xjs) {
|
||||
xjs.forEach((expression) => {
|
||||
module_default.evaluate(component.el, expression);
|
||||
xjs.forEach(({ expression, params }) => {
|
||||
params = Object.values(params);
|
||||
module_default.evaluate(component.el, expression, { scope: component.jsActions, params });
|
||||
});
|
||||
}
|
||||
});
|
||||
@ -8965,10 +9025,10 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
to.__livewire = component;
|
||||
trigger2("morph", { el, toEl: to, component });
|
||||
module_default.morph(el, to, {
|
||||
updating: (el2, toEl, childrenOnly, skip) => {
|
||||
updating: (el2, toEl, childrenOnly, skip, skipChildren) => {
|
||||
if (isntElement(el2))
|
||||
return;
|
||||
trigger2("morph.updating", { el: el2, toEl, component, skip, childrenOnly });
|
||||
trigger2("morph.updating", { el: el2, toEl, component, skip, childrenOnly, skipChildren });
|
||||
if (el2.__livewire_replace === true)
|
||||
el2.innerHTML = toEl.innerHTML;
|
||||
if (el2.__livewire_replace_self === true) {
|
||||
@ -8979,6 +9039,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
return skip();
|
||||
if (el2.__livewire_ignore_self === true)
|
||||
childrenOnly();
|
||||
if (el2.__livewire_ignore_children === true)
|
||||
return skipChildren();
|
||||
if (isComponentRootEl(el2) && el2.getAttribute("wire:id") !== component.id)
|
||||
return skip();
|
||||
if (isComponentRootEl(el2))
|
||||
@ -9411,6 +9473,14 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
el.__addedByMorph = true;
|
||||
});
|
||||
directive2("transition", ({ el, directive: directive3, component, cleanup: cleanup2 }) => {
|
||||
for (let i = 0; i < el.attributes.length; i++) {
|
||||
if (el.attributes[i].name.startsWith("wire:show")) {
|
||||
module_default.bind(el, {
|
||||
[directive3.rawName.replace("wire:transition", "x-transition")]: directive3.expression
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
let visibility = module_default.reactive({ state: el.__addedByMorph ? false : true });
|
||||
module_default.bind(el, {
|
||||
[directive3.rawName.replace("wire:", "x-")]: "",
|
||||
@ -9545,8 +9615,10 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
let refreshCurrent = (url) => {
|
||||
if (pathMatches(hrefUrl, url, options)) {
|
||||
el.classList.add(...classes);
|
||||
el.setAttribute("data-current", "");
|
||||
} else {
|
||||
el.classList.remove(...classes);
|
||||
el.removeAttribute("data-current");
|
||||
}
|
||||
};
|
||||
refreshCurrent(new URL(window.location.href));
|
||||
@ -9834,15 +9906,24 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
directive2("ignore", ({ el, directive: directive3 }) => {
|
||||
if (directive3.modifiers.includes("self")) {
|
||||
el.__livewire_ignore_self = true;
|
||||
} else if (directive3.modifiers.includes("children")) {
|
||||
el.__livewire_ignore_children = true;
|
||||
} else {
|
||||
el.__livewire_ignore = true;
|
||||
}
|
||||
});
|
||||
|
||||
// js/directives/wire-cloak.js
|
||||
module_default.interceptInit((el) => {
|
||||
if (el.hasAttribute("wire:cloak")) {
|
||||
module_default.mutateDom(() => el.removeAttribute("wire:cloak"));
|
||||
}
|
||||
});
|
||||
|
||||
// js/directives/wire-dirty.js
|
||||
var refreshDirtyStatesByComponent = new WeakBag();
|
||||
on2("commit", ({ component, succeed }) => {
|
||||
succeed(() => {
|
||||
on2("commit", ({ component, respond }) => {
|
||||
respond(() => {
|
||||
setTimeout(() => {
|
||||
refreshDirtyStatesByComponent.each(component, (i) => i(false));
|
||||
});
|
||||
@ -9850,7 +9931,6 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
});
|
||||
directive2("dirty", ({ el, directive: directive3, component }) => {
|
||||
let targets = dirtyTargets(el);
|
||||
let dirty = Alpine.reactive({ state: false });
|
||||
let oldIsDirty = false;
|
||||
let initialDisplay = el.style.display;
|
||||
let refreshDirtyState = (isDirty) => {
|
||||
@ -10069,6 +10149,38 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
return durationInMilliSeconds || defaultDuration;
|
||||
}
|
||||
|
||||
// js/directives/wire-show.js
|
||||
module_default.interceptInit((el) => {
|
||||
for (let i = 0; i < el.attributes.length; i++) {
|
||||
if (el.attributes[i].name.startsWith("wire:show")) {
|
||||
let { name, value } = el.attributes[i];
|
||||
let modifierString = name.split("wire:show")[1];
|
||||
let expression = value.startsWith("!") ? "!$wire." + value.slice(1).trim() : "$wire." + value.trim();
|
||||
module_default.bind(el, {
|
||||
["x-show" + modifierString]() {
|
||||
return module_default.evaluate(el, expression);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// js/directives/wire-text.js
|
||||
module_default.interceptInit((el) => {
|
||||
for (let i = 0; i < el.attributes.length; i++) {
|
||||
if (el.attributes[i].name.startsWith("wire:text")) {
|
||||
let { name, value } = el.attributes[i];
|
||||
let modifierString = name.split("wire:text")[1];
|
||||
let expression = value.startsWith("!") ? "!$wire." + value.slice(1).trim() : "$wire." + value.trim();
|
||||
module_default.bind(el, {
|
||||
["x-text" + modifierString]() {
|
||||
return module_default.evaluate(el, expression);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// js/index.js
|
||||
var Livewire2 = {
|
||||
directive: directive2,
|
||||
|
||||
12
public/vendor/livewire/livewire.min.js
vendored
12
public/vendor/livewire/livewire.min.js
vendored
File diff suppressed because one or more lines are too long
6
public/vendor/livewire/livewire.min.js.map
vendored
6
public/vendor/livewire/livewire.min.js.map
vendored
File diff suppressed because one or more lines are too long
2
public/vendor/livewire/manifest.json
vendored
2
public/vendor/livewire/manifest.json
vendored
@ -1,2 +1,2 @@
|
||||
|
||||
{"/livewire.js":"951e6947"}
|
||||
{"/livewire.js":"df3a17f2"}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user