mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 17:14:10 -08:00
Merge pull request #15712 from Godmartinz/fix_import-progress-bar
Upgraded `livewire v3.5.9 => v3.5.12`
This commit is contained in:
commit
07a51ec8b1
14
composer.lock
generated
14
composer.lock
generated
|
@ -4461,16 +4461,16 @@
|
|||
},
|
||||
{
|
||||
"name": "livewire/livewire",
|
||||
"version": "v3.5.9",
|
||||
"version": "v3.5.12",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/livewire/livewire.git",
|
||||
"reference": "d04a229058afa76116d0e39209943a8ea3a7f888"
|
||||
"reference": "3c8d1f9d7d9098aaea663093ae168f2d5d2ae73d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/livewire/livewire/zipball/d04a229058afa76116d0e39209943a8ea3a7f888",
|
||||
"reference": "d04a229058afa76116d0e39209943a8ea3a7f888",
|
||||
"url": "https://api.github.com/repos/livewire/livewire/zipball/3c8d1f9d7d9098aaea663093ae168f2d5d2ae73d",
|
||||
"reference": "3c8d1f9d7d9098aaea663093ae168f2d5d2ae73d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -4525,7 +4525,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.9"
|
||||
"source": "https://github.com/livewire/livewire/tree/v3.5.12"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -4533,7 +4533,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2024-10-01T12:40:06+00:00"
|
||||
"time": "2024-10-15T19:35:06+00:00"
|
||||
},
|
||||
{
|
||||
"name": "masterminds/html5",
|
||||
|
@ -16504,5 +16504,5 @@
|
|||
"ext-pdo": "*"
|
||||
},
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.6.0"
|
||||
"plugin-api-version": "2.3.0"
|
||||
}
|
||||
|
|
86
public/vendor/livewire/livewire.esm.js
vendored
86
public/vendor/livewire/livewire.esm.js
vendored
|
@ -2557,7 +2557,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
}
|
||||
}
|
||||
function bindInputValue(el, value) {
|
||||
if (el.type === "radio") {
|
||||
if (isRadio(el)) {
|
||||
if (el.attributes.value === void 0) {
|
||||
el.value = value;
|
||||
}
|
||||
|
@ -2568,7 +2568,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
el.checked = checkedAttrLooseCompare(el.value, value);
|
||||
}
|
||||
}
|
||||
} else if (el.type === "checkbox") {
|
||||
} else if (isCheckbox(el)) {
|
||||
if (Number.isInteger(value)) {
|
||||
el.value = value;
|
||||
} else if (!Array.isArray(value) && typeof value !== "boolean" && ![null, void 0].includes(value)) {
|
||||
|
@ -2707,6 +2707,12 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
}
|
||||
return attr;
|
||||
}
|
||||
function isCheckbox(el) {
|
||||
return el.type === "checkbox" || el.localName === "ui-checkbox" || el.localName === "ui-switch";
|
||||
}
|
||||
function isRadio(el) {
|
||||
return el.type === "radio" || el.localName === "ui-radio";
|
||||
}
|
||||
function debounce2(func, wait) {
|
||||
var timeout;
|
||||
return function() {
|
||||
|
@ -2860,7 +2866,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
get raw() {
|
||||
return raw;
|
||||
},
|
||||
version: "3.14.1",
|
||||
version: "3.14.3",
|
||||
flushAndStopDeferringMutations,
|
||||
dontAutoEvaluateFunctions,
|
||||
disableEffectScheduling,
|
||||
|
@ -3296,7 +3302,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
setValue(getInputValue(el, modifiers, e, getValue()));
|
||||
});
|
||||
if (modifiers.includes("fill")) {
|
||||
if ([void 0, null, ""].includes(getValue()) || el.type === "checkbox" && Array.isArray(getValue()) || el.tagName.toLowerCase() === "select" && el.multiple) {
|
||||
if ([void 0, null, ""].includes(getValue()) || isCheckbox(el) && Array.isArray(getValue()) || el.tagName.toLowerCase() === "select" && el.multiple) {
|
||||
setValue(getInputValue(el, modifiers, { target: el }, getValue()));
|
||||
}
|
||||
}
|
||||
|
@ -3336,7 +3342,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
return mutateDom(() => {
|
||||
if (event instanceof CustomEvent && event.detail !== void 0)
|
||||
return event.detail !== null && event.detail !== void 0 ? event.detail : event.target.value;
|
||||
else if (el.type === "checkbox") {
|
||||
else if (isCheckbox(el)) {
|
||||
if (Array.isArray(currentValue)) {
|
||||
let newValue = null;
|
||||
if (modifiers.includes("number")) {
|
||||
|
@ -3367,7 +3373,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
});
|
||||
} else {
|
||||
let newValue;
|
||||
if (el.type === "radio") {
|
||||
if (isRadio(el)) {
|
||||
if (event.target.checked) {
|
||||
newValue = event.target.value;
|
||||
} else {
|
||||
|
@ -6820,8 +6826,6 @@ var require_module_cjs8 = __commonJS({
|
|||
let toAttributes = Array.from(to.attributes);
|
||||
for (let i = domAttributes.length - 1; i >= 0; i--) {
|
||||
let name = domAttributes[i].name;
|
||||
if (name === "style")
|
||||
continue;
|
||||
if (!to.hasAttribute(name)) {
|
||||
from2.removeAttribute(name);
|
||||
}
|
||||
|
@ -6829,8 +6833,6 @@ var require_module_cjs8 = __commonJS({
|
|||
for (let i = toAttributes.length - 1; i >= 0; i--) {
|
||||
let name = toAttributes[i].name;
|
||||
let value = toAttributes[i].value;
|
||||
if (name === "style")
|
||||
continue;
|
||||
if (from2.getAttribute(name) !== value) {
|
||||
from2.setAttribute(name, value);
|
||||
}
|
||||
|
@ -9015,6 +9017,44 @@ function injectStyles() {
|
|||
document.head.appendChild(style);
|
||||
}
|
||||
|
||||
// js/plugins/navigate/popover.js
|
||||
function packUpPersistedPopovers(persistedEl) {
|
||||
persistedEl.querySelectorAll(":popover-open").forEach((el) => {
|
||||
el.setAttribute("data-navigate-popover-open", "");
|
||||
let animations = el.getAnimations();
|
||||
el._pausedAnimations = animations.map((animation) => ({
|
||||
keyframes: animation.effect.getKeyframes(),
|
||||
options: {
|
||||
duration: animation.effect.getTiming().duration,
|
||||
easing: animation.effect.getTiming().easing,
|
||||
fill: animation.effect.getTiming().fill,
|
||||
iterations: animation.effect.getTiming().iterations
|
||||
},
|
||||
currentTime: animation.currentTime,
|
||||
playState: animation.playState
|
||||
}));
|
||||
animations.forEach((i) => i.pause());
|
||||
});
|
||||
}
|
||||
function unPackPersistedPopovers(persistedEl) {
|
||||
persistedEl.querySelectorAll("[data-navigate-popover-open]").forEach((el) => {
|
||||
el.removeAttribute("data-navigate-popover-open");
|
||||
queueMicrotask(() => {
|
||||
if (!el.isConnected)
|
||||
return;
|
||||
el.showPopover();
|
||||
el.getAnimations().forEach((i) => i.finish());
|
||||
if (el._pausedAnimations) {
|
||||
el._pausedAnimations.forEach(({ keyframes, options, currentTime, now, playState }) => {
|
||||
let animation = el.animate(keyframes, options);
|
||||
animation.currentTime = currentTime;
|
||||
});
|
||||
delete el._pausedAnimations;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// js/plugins/navigate/page.js
|
||||
var oldBodyScriptTagHashes = [];
|
||||
var attributesExemptFromScriptTagHashing = [
|
||||
|
@ -9153,7 +9193,7 @@ var autofocus = false;
|
|||
function navigate_default(Alpine19) {
|
||||
Alpine19.navigate = (url) => {
|
||||
let destination = createUrlObjectFromString(url);
|
||||
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", {
|
||||
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
|
||||
url: destination,
|
||||
history: false,
|
||||
cached: false
|
||||
|
@ -9184,7 +9224,7 @@ function navigate_default(Alpine19) {
|
|||
storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination);
|
||||
});
|
||||
whenItIsReleased(() => {
|
||||
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", {
|
||||
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
|
||||
url: destination,
|
||||
history: false,
|
||||
cached: false
|
||||
|
@ -9198,7 +9238,7 @@ function navigate_default(Alpine19) {
|
|||
function navigateTo(destination, shouldPushToHistoryState = true) {
|
||||
showProgressBar && showAndStartProgressBar();
|
||||
fetchHtmlOrUsePrefetchedHtml(destination, (html, finalDestination) => {
|
||||
fireEventForOtherLibariesToHookInto("alpine:navigating");
|
||||
fireEventForOtherLibrariesToHookInto("alpine:navigating");
|
||||
restoreScroll && storeScrollInformationInHtmlBeforeNavigatingAway();
|
||||
showProgressBar && finishAndHideProgressBar();
|
||||
cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement();
|
||||
|
@ -9206,6 +9246,7 @@ function navigate_default(Alpine19) {
|
|||
preventAlpineFromPickingUpDomChanges(Alpine19, (andAfterAllThis) => {
|
||||
enablePersist && storePersistantElementsForLater((persistedEl) => {
|
||||
packUpPersistedTeleports(persistedEl);
|
||||
packUpPersistedPopovers(persistedEl);
|
||||
});
|
||||
if (shouldPushToHistoryState) {
|
||||
updateUrlAndStoreLatestHtmlForFutureBackButtons(html, finalDestination);
|
||||
|
@ -9216,6 +9257,7 @@ function navigate_default(Alpine19) {
|
|||
removeAnyLeftOverStaleTeleportTargets(document.body);
|
||||
enablePersist && putPersistantElementsBack((persistedEl, newStub) => {
|
||||
unPackPersistedTeleports(persistedEl);
|
||||
unPackPersistedPopovers(persistedEl);
|
||||
});
|
||||
restoreScrollPositionOrScrollToTop();
|
||||
afterNewScriptsAreDoneLoading(() => {
|
||||
|
@ -9224,7 +9266,7 @@ function navigate_default(Alpine19) {
|
|||
autofocus && autofocusElementsWithTheAutofocusAttribute();
|
||||
});
|
||||
nowInitializeAlpineOnTheNewPage(Alpine19);
|
||||
fireEventForOtherLibariesToHookInto("alpine:navigated");
|
||||
fireEventForOtherLibrariesToHookInto("alpine:navigated");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -9234,7 +9276,7 @@ function navigate_default(Alpine19) {
|
|||
whenTheBackOrForwardButtonIsClicked((ifThePageBeingVisitedHasntBeenCached) => {
|
||||
ifThePageBeingVisitedHasntBeenCached((url) => {
|
||||
let destination = createUrlObjectFromString(url);
|
||||
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", {
|
||||
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
|
||||
url: destination,
|
||||
history: true,
|
||||
cached: false
|
||||
|
@ -9246,7 +9288,7 @@ function navigate_default(Alpine19) {
|
|||
});
|
||||
}, (html, url, currentPageUrl, currentPageKey) => {
|
||||
let destination = createUrlObjectFromString(url);
|
||||
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", {
|
||||
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
|
||||
url: destination,
|
||||
history: true,
|
||||
cached: true
|
||||
|
@ -9254,29 +9296,31 @@ function navigate_default(Alpine19) {
|
|||
if (prevented)
|
||||
return;
|
||||
storeScrollInformationInHtmlBeforeNavigatingAway();
|
||||
fireEventForOtherLibariesToHookInto("alpine:navigating");
|
||||
fireEventForOtherLibrariesToHookInto("alpine:navigating");
|
||||
updateCurrentPageHtmlInSnapshotCacheForLaterBackButtonClicks(currentPageUrl, currentPageKey);
|
||||
preventAlpineFromPickingUpDomChanges(Alpine19, (andAfterAllThis) => {
|
||||
enablePersist && storePersistantElementsForLater((persistedEl) => {
|
||||
packUpPersistedTeleports(persistedEl);
|
||||
packUpPersistedPopovers(persistedEl);
|
||||
});
|
||||
swapCurrentPageWithNewHtml(html, () => {
|
||||
removeAnyLeftOverStaleProgressBars();
|
||||
removeAnyLeftOverStaleTeleportTargets(document.body);
|
||||
enablePersist && putPersistantElementsBack((persistedEl, newStub) => {
|
||||
unPackPersistedTeleports(persistedEl);
|
||||
unPackPersistedPopovers(persistedEl);
|
||||
});
|
||||
restoreScrollPositionOrScrollToTop();
|
||||
andAfterAllThis(() => {
|
||||
autofocus && autofocusElementsWithTheAutofocusAttribute();
|
||||
nowInitializeAlpineOnTheNewPage(Alpine19);
|
||||
fireEventForOtherLibariesToHookInto("alpine:navigated");
|
||||
fireEventForOtherLibrariesToHookInto("alpine:navigated");
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
setTimeout(() => {
|
||||
fireEventForOtherLibariesToHookInto("alpine:navigated");
|
||||
fireEventForOtherLibrariesToHookInto("alpine:navigated");
|
||||
});
|
||||
}
|
||||
function fetchHtmlOrUsePrefetchedHtml(fromDestination, callback) {
|
||||
|
@ -9293,7 +9337,7 @@ function preventAlpineFromPickingUpDomChanges(Alpine19, callback) {
|
|||
});
|
||||
});
|
||||
}
|
||||
function fireEventForOtherLibariesToHookInto(name, detail) {
|
||||
function fireEventForOtherLibrariesToHookInto(name, detail) {
|
||||
let event = new CustomEvent(name, {
|
||||
cancelable: true,
|
||||
bubbles: true,
|
||||
|
@ -9809,6 +9853,7 @@ function morph2(component, el, html) {
|
|||
},
|
||||
lookahead: false
|
||||
});
|
||||
trigger("morphed", { el, component });
|
||||
}
|
||||
function isntElement(el) {
|
||||
return typeof el.hasAttribute !== "function";
|
||||
|
@ -10878,3 +10923,4 @@ focus-trap/dist/focus-trap.js:
|
|||
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
||||
*)
|
||||
*/
|
||||
//# sourceMappingURL=livewire.esm.js.map
|
||||
|
|
89
public/vendor/livewire/livewire.js
vendored
89
public/vendor/livewire/livewire.js
vendored
|
@ -1975,7 +1975,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
}
|
||||
}
|
||||
function bindInputValue(el, value) {
|
||||
if (el.type === "radio") {
|
||||
if (isRadio(el)) {
|
||||
if (el.attributes.value === void 0) {
|
||||
el.value = value;
|
||||
}
|
||||
|
@ -1986,7 +1986,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
el.checked = checkedAttrLooseCompare(el.value, value);
|
||||
}
|
||||
}
|
||||
} else if (el.type === "checkbox") {
|
||||
} else if (isCheckbox(el)) {
|
||||
if (Number.isInteger(value)) {
|
||||
el.value = value;
|
||||
} else if (!Array.isArray(value) && typeof value !== "boolean" && ![null, void 0].includes(value)) {
|
||||
|
@ -2125,6 +2125,12 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
}
|
||||
return attr;
|
||||
}
|
||||
function isCheckbox(el) {
|
||||
return el.type === "checkbox" || el.localName === "ui-checkbox" || el.localName === "ui-switch";
|
||||
}
|
||||
function isRadio(el) {
|
||||
return el.type === "radio" || el.localName === "ui-radio";
|
||||
}
|
||||
function debounce(func, wait) {
|
||||
var timeout;
|
||||
return function() {
|
||||
|
@ -2278,7 +2284,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
get raw() {
|
||||
return raw;
|
||||
},
|
||||
version: "3.14.1",
|
||||
version: "3.14.3",
|
||||
flushAndStopDeferringMutations,
|
||||
dontAutoEvaluateFunctions,
|
||||
disableEffectScheduling,
|
||||
|
@ -3361,7 +3367,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
setValue(getInputValue(el, modifiers, e, getValue()));
|
||||
});
|
||||
if (modifiers.includes("fill")) {
|
||||
if ([void 0, null, ""].includes(getValue()) || el.type === "checkbox" && Array.isArray(getValue()) || el.tagName.toLowerCase() === "select" && el.multiple) {
|
||||
if ([void 0, null, ""].includes(getValue()) || isCheckbox(el) && Array.isArray(getValue()) || el.tagName.toLowerCase() === "select" && el.multiple) {
|
||||
setValue(getInputValue(el, modifiers, { target: el }, getValue()));
|
||||
}
|
||||
}
|
||||
|
@ -3401,7 +3407,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
return mutateDom(() => {
|
||||
if (event instanceof CustomEvent && event.detail !== void 0)
|
||||
return event.detail !== null && event.detail !== void 0 ? event.detail : event.target.value;
|
||||
else if (el.type === "checkbox") {
|
||||
else if (isCheckbox(el)) {
|
||||
if (Array.isArray(currentValue)) {
|
||||
let newValue = null;
|
||||
if (modifiers.includes("number")) {
|
||||
|
@ -3432,7 +3438,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
});
|
||||
} else {
|
||||
let newValue;
|
||||
if (el.type === "radio") {
|
||||
if (isRadio(el)) {
|
||||
if (event.target.checked) {
|
||||
newValue = event.target.value;
|
||||
} else {
|
||||
|
@ -4971,11 +4977,11 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
var checked = getCheckedRadio(radioSet, node.form);
|
||||
return !checked || checked === node;
|
||||
};
|
||||
var isRadio = function isRadio2(node) {
|
||||
var isRadio2 = function isRadio22(node) {
|
||||
return isInput(node) && node.type === "radio";
|
||||
};
|
||||
var isNonTabbableRadio = function isNonTabbableRadio2(node) {
|
||||
return isRadio(node) && !isTabbableRadio(node);
|
||||
return isRadio2(node) && !isTabbableRadio(node);
|
||||
};
|
||||
var isZeroArea = function isZeroArea2(node) {
|
||||
var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height;
|
||||
|
@ -7625,6 +7631,44 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
document.head.appendChild(style);
|
||||
}
|
||||
|
||||
// js/plugins/navigate/popover.js
|
||||
function packUpPersistedPopovers(persistedEl) {
|
||||
persistedEl.querySelectorAll(":popover-open").forEach((el) => {
|
||||
el.setAttribute("data-navigate-popover-open", "");
|
||||
let animations = el.getAnimations();
|
||||
el._pausedAnimations = animations.map((animation) => ({
|
||||
keyframes: animation.effect.getKeyframes(),
|
||||
options: {
|
||||
duration: animation.effect.getTiming().duration,
|
||||
easing: animation.effect.getTiming().easing,
|
||||
fill: animation.effect.getTiming().fill,
|
||||
iterations: animation.effect.getTiming().iterations
|
||||
},
|
||||
currentTime: animation.currentTime,
|
||||
playState: animation.playState
|
||||
}));
|
||||
animations.forEach((i) => i.pause());
|
||||
});
|
||||
}
|
||||
function unPackPersistedPopovers(persistedEl) {
|
||||
persistedEl.querySelectorAll("[data-navigate-popover-open]").forEach((el) => {
|
||||
el.removeAttribute("data-navigate-popover-open");
|
||||
queueMicrotask(() => {
|
||||
if (!el.isConnected)
|
||||
return;
|
||||
el.showPopover();
|
||||
el.getAnimations().forEach((i) => i.finish());
|
||||
if (el._pausedAnimations) {
|
||||
el._pausedAnimations.forEach(({ keyframes, options, currentTime, now, playState }) => {
|
||||
let animation = el.animate(keyframes, options);
|
||||
animation.currentTime = currentTime;
|
||||
});
|
||||
delete el._pausedAnimations;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// js/plugins/navigate/page.js
|
||||
var oldBodyScriptTagHashes = [];
|
||||
var attributesExemptFromScriptTagHashing = [
|
||||
|
@ -7763,7 +7807,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
function navigate_default(Alpine3) {
|
||||
Alpine3.navigate = (url) => {
|
||||
let destination = createUrlObjectFromString(url);
|
||||
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", {
|
||||
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
|
||||
url: destination,
|
||||
history: false,
|
||||
cached: false
|
||||
|
@ -7794,7 +7838,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination);
|
||||
});
|
||||
whenItIsReleased(() => {
|
||||
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", {
|
||||
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
|
||||
url: destination,
|
||||
history: false,
|
||||
cached: false
|
||||
|
@ -7808,7 +7852,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
function navigateTo(destination, shouldPushToHistoryState = true) {
|
||||
showProgressBar && showAndStartProgressBar();
|
||||
fetchHtmlOrUsePrefetchedHtml(destination, (html, finalDestination) => {
|
||||
fireEventForOtherLibariesToHookInto("alpine:navigating");
|
||||
fireEventForOtherLibrariesToHookInto("alpine:navigating");
|
||||
restoreScroll && storeScrollInformationInHtmlBeforeNavigatingAway();
|
||||
showProgressBar && finishAndHideProgressBar();
|
||||
cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement();
|
||||
|
@ -7816,6 +7860,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
preventAlpineFromPickingUpDomChanges(Alpine3, (andAfterAllThis) => {
|
||||
enablePersist && storePersistantElementsForLater((persistedEl) => {
|
||||
packUpPersistedTeleports(persistedEl);
|
||||
packUpPersistedPopovers(persistedEl);
|
||||
});
|
||||
if (shouldPushToHistoryState) {
|
||||
updateUrlAndStoreLatestHtmlForFutureBackButtons(html, finalDestination);
|
||||
|
@ -7826,6 +7871,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
removeAnyLeftOverStaleTeleportTargets(document.body);
|
||||
enablePersist && putPersistantElementsBack((persistedEl, newStub) => {
|
||||
unPackPersistedTeleports(persistedEl);
|
||||
unPackPersistedPopovers(persistedEl);
|
||||
});
|
||||
restoreScrollPositionOrScrollToTop();
|
||||
afterNewScriptsAreDoneLoading(() => {
|
||||
|
@ -7834,7 +7880,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
autofocus && autofocusElementsWithTheAutofocusAttribute();
|
||||
});
|
||||
nowInitializeAlpineOnTheNewPage(Alpine3);
|
||||
fireEventForOtherLibariesToHookInto("alpine:navigated");
|
||||
fireEventForOtherLibrariesToHookInto("alpine:navigated");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -7844,7 +7890,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
whenTheBackOrForwardButtonIsClicked((ifThePageBeingVisitedHasntBeenCached) => {
|
||||
ifThePageBeingVisitedHasntBeenCached((url) => {
|
||||
let destination = createUrlObjectFromString(url);
|
||||
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", {
|
||||
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
|
||||
url: destination,
|
||||
history: true,
|
||||
cached: false
|
||||
|
@ -7856,7 +7902,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
});
|
||||
}, (html, url, currentPageUrl, currentPageKey) => {
|
||||
let destination = createUrlObjectFromString(url);
|
||||
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", {
|
||||
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
|
||||
url: destination,
|
||||
history: true,
|
||||
cached: true
|
||||
|
@ -7864,29 +7910,31 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
if (prevented)
|
||||
return;
|
||||
storeScrollInformationInHtmlBeforeNavigatingAway();
|
||||
fireEventForOtherLibariesToHookInto("alpine:navigating");
|
||||
fireEventForOtherLibrariesToHookInto("alpine:navigating");
|
||||
updateCurrentPageHtmlInSnapshotCacheForLaterBackButtonClicks(currentPageUrl, currentPageKey);
|
||||
preventAlpineFromPickingUpDomChanges(Alpine3, (andAfterAllThis) => {
|
||||
enablePersist && storePersistantElementsForLater((persistedEl) => {
|
||||
packUpPersistedTeleports(persistedEl);
|
||||
packUpPersistedPopovers(persistedEl);
|
||||
});
|
||||
swapCurrentPageWithNewHtml(html, () => {
|
||||
removeAnyLeftOverStaleProgressBars();
|
||||
removeAnyLeftOverStaleTeleportTargets(document.body);
|
||||
enablePersist && putPersistantElementsBack((persistedEl, newStub) => {
|
||||
unPackPersistedTeleports(persistedEl);
|
||||
unPackPersistedPopovers(persistedEl);
|
||||
});
|
||||
restoreScrollPositionOrScrollToTop();
|
||||
andAfterAllThis(() => {
|
||||
autofocus && autofocusElementsWithTheAutofocusAttribute();
|
||||
nowInitializeAlpineOnTheNewPage(Alpine3);
|
||||
fireEventForOtherLibariesToHookInto("alpine:navigated");
|
||||
fireEventForOtherLibrariesToHookInto("alpine:navigated");
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
setTimeout(() => {
|
||||
fireEventForOtherLibariesToHookInto("alpine:navigated");
|
||||
fireEventForOtherLibrariesToHookInto("alpine:navigated");
|
||||
});
|
||||
}
|
||||
function fetchHtmlOrUsePrefetchedHtml(fromDestination, callback) {
|
||||
|
@ -7903,7 +7951,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
});
|
||||
});
|
||||
}
|
||||
function fireEventForOtherLibariesToHookInto(name, detail) {
|
||||
function fireEventForOtherLibrariesToHookInto(name, detail) {
|
||||
let event = new CustomEvent(name, {
|
||||
cancelable: true,
|
||||
bubbles: true,
|
||||
|
@ -8212,8 +8260,6 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
let toAttributes = Array.from(to.attributes);
|
||||
for (let i = domAttributes.length - 1; i >= 0; i--) {
|
||||
let name = domAttributes[i].name;
|
||||
if (name === "style")
|
||||
continue;
|
||||
if (!to.hasAttribute(name)) {
|
||||
from2.removeAttribute(name);
|
||||
}
|
||||
|
@ -8221,8 +8267,6 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
for (let i = toAttributes.length - 1; i >= 0; i--) {
|
||||
let name = toAttributes[i].name;
|
||||
let value = toAttributes[i].value;
|
||||
if (name === "style")
|
||||
continue;
|
||||
if (from2.getAttribute(name) !== value) {
|
||||
from2.setAttribute(name, value);
|
||||
}
|
||||
|
@ -8914,6 +8958,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|||
},
|
||||
lookahead: false
|
||||
});
|
||||
trigger2("morphed", { el, component });
|
||||
}
|
||||
function isntElement(el) {
|
||||
return typeof el.hasAttribute !== "function";
|
||||
|
|
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":"923613aa"}
|
||||
{"/livewire.js":"38dc8241"}
|
||||
|
|
Loading…
Reference in a new issue