mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Merge remote-tracking branch 'origin/develop'
Some checks failed
CodeQL Security Scan / CodeQL Security Scan (javascript) (push) Has been cancelled
Codacy Security Scan / Codacy Security Scan (push) Has been cancelled
Docker images (Alpine) / docker (push) Has been cancelled
Docker images / docker (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.1) (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.2) (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.3) (push) Has been cancelled
Tests in SQLite / PHP ${{ matrix.php-version }} (8.1.1) (push) Has been cancelled
Some checks failed
CodeQL Security Scan / CodeQL Security Scan (javascript) (push) Has been cancelled
Codacy Security Scan / Codacy Security Scan (push) Has been cancelled
Docker images (Alpine) / docker (push) Has been cancelled
Docker images / docker (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.1) (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.2) (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.3) (push) Has been cancelled
Tests in SQLite / PHP ${{ matrix.php-version }} (8.1.1) (push) Has been cancelled
This commit is contained in:
commit
3445b543ea
14
composer.lock
generated
14
composer.lock
generated
|
@ -4461,16 +4461,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "livewire/livewire",
|
"name": "livewire/livewire",
|
||||||
"version": "v3.5.9",
|
"version": "v3.5.12",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/livewire/livewire.git",
|
"url": "https://github.com/livewire/livewire.git",
|
||||||
"reference": "d04a229058afa76116d0e39209943a8ea3a7f888"
|
"reference": "3c8d1f9d7d9098aaea663093ae168f2d5d2ae73d"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/livewire/livewire/zipball/d04a229058afa76116d0e39209943a8ea3a7f888",
|
"url": "https://api.github.com/repos/livewire/livewire/zipball/3c8d1f9d7d9098aaea663093ae168f2d5d2ae73d",
|
||||||
"reference": "d04a229058afa76116d0e39209943a8ea3a7f888",
|
"reference": "3c8d1f9d7d9098aaea663093ae168f2d5d2ae73d",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -4525,7 +4525,7 @@
|
||||||
"description": "A front-end framework for Laravel.",
|
"description": "A front-end framework for Laravel.",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/livewire/livewire/issues",
|
"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": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -4533,7 +4533,7 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2024-10-01T12:40:06+00:00"
|
"time": "2024-10-15T19:35:06+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "masterminds/html5",
|
"name": "masterminds/html5",
|
||||||
|
@ -16504,5 +16504,5 @@
|
||||||
"ext-pdo": "*"
|
"ext-pdo": "*"
|
||||||
},
|
},
|
||||||
"platform-dev": [],
|
"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) {
|
function bindInputValue(el, value) {
|
||||||
if (el.type === "radio") {
|
if (isRadio(el)) {
|
||||||
if (el.attributes.value === void 0) {
|
if (el.attributes.value === void 0) {
|
||||||
el.value = value;
|
el.value = value;
|
||||||
}
|
}
|
||||||
|
@ -2568,7 +2568,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
el.checked = checkedAttrLooseCompare(el.value, value);
|
el.checked = checkedAttrLooseCompare(el.value, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (el.type === "checkbox") {
|
} else if (isCheckbox(el)) {
|
||||||
if (Number.isInteger(value)) {
|
if (Number.isInteger(value)) {
|
||||||
el.value = value;
|
el.value = value;
|
||||||
} else if (!Array.isArray(value) && typeof value !== "boolean" && ![null, void 0].includes(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;
|
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) {
|
function debounce2(func, wait) {
|
||||||
var timeout;
|
var timeout;
|
||||||
return function() {
|
return function() {
|
||||||
|
@ -2860,7 +2866,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
get raw() {
|
get raw() {
|
||||||
return raw;
|
return raw;
|
||||||
},
|
},
|
||||||
version: "3.14.1",
|
version: "3.14.3",
|
||||||
flushAndStopDeferringMutations,
|
flushAndStopDeferringMutations,
|
||||||
dontAutoEvaluateFunctions,
|
dontAutoEvaluateFunctions,
|
||||||
disableEffectScheduling,
|
disableEffectScheduling,
|
||||||
|
@ -3296,7 +3302,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
setValue(getInputValue(el, modifiers, e, getValue()));
|
setValue(getInputValue(el, modifiers, e, getValue()));
|
||||||
});
|
});
|
||||||
if (modifiers.includes("fill")) {
|
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()));
|
setValue(getInputValue(el, modifiers, { target: el }, getValue()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3336,7 +3342,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
return mutateDom(() => {
|
return mutateDom(() => {
|
||||||
if (event instanceof CustomEvent && event.detail !== void 0)
|
if (event instanceof CustomEvent && event.detail !== void 0)
|
||||||
return event.detail !== null && event.detail !== void 0 ? event.detail : event.target.value;
|
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)) {
|
if (Array.isArray(currentValue)) {
|
||||||
let newValue = null;
|
let newValue = null;
|
||||||
if (modifiers.includes("number")) {
|
if (modifiers.includes("number")) {
|
||||||
|
@ -3367,7 +3373,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
let newValue;
|
let newValue;
|
||||||
if (el.type === "radio") {
|
if (isRadio(el)) {
|
||||||
if (event.target.checked) {
|
if (event.target.checked) {
|
||||||
newValue = event.target.value;
|
newValue = event.target.value;
|
||||||
} else {
|
} else {
|
||||||
|
@ -6820,8 +6826,6 @@ var require_module_cjs8 = __commonJS({
|
||||||
let toAttributes = Array.from(to.attributes);
|
let toAttributes = Array.from(to.attributes);
|
||||||
for (let i = domAttributes.length - 1; i >= 0; i--) {
|
for (let i = domAttributes.length - 1; i >= 0; i--) {
|
||||||
let name = domAttributes[i].name;
|
let name = domAttributes[i].name;
|
||||||
if (name === "style")
|
|
||||||
continue;
|
|
||||||
if (!to.hasAttribute(name)) {
|
if (!to.hasAttribute(name)) {
|
||||||
from2.removeAttribute(name);
|
from2.removeAttribute(name);
|
||||||
}
|
}
|
||||||
|
@ -6829,8 +6833,6 @@ var require_module_cjs8 = __commonJS({
|
||||||
for (let i = toAttributes.length - 1; i >= 0; i--) {
|
for (let i = toAttributes.length - 1; i >= 0; i--) {
|
||||||
let name = toAttributes[i].name;
|
let name = toAttributes[i].name;
|
||||||
let value = toAttributes[i].value;
|
let value = toAttributes[i].value;
|
||||||
if (name === "style")
|
|
||||||
continue;
|
|
||||||
if (from2.getAttribute(name) !== value) {
|
if (from2.getAttribute(name) !== value) {
|
||||||
from2.setAttribute(name, value);
|
from2.setAttribute(name, value);
|
||||||
}
|
}
|
||||||
|
@ -9015,6 +9017,44 @@ function injectStyles() {
|
||||||
document.head.appendChild(style);
|
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
|
// js/plugins/navigate/page.js
|
||||||
var oldBodyScriptTagHashes = [];
|
var oldBodyScriptTagHashes = [];
|
||||||
var attributesExemptFromScriptTagHashing = [
|
var attributesExemptFromScriptTagHashing = [
|
||||||
|
@ -9153,7 +9193,7 @@ var autofocus = false;
|
||||||
function navigate_default(Alpine19) {
|
function navigate_default(Alpine19) {
|
||||||
Alpine19.navigate = (url) => {
|
Alpine19.navigate = (url) => {
|
||||||
let destination = createUrlObjectFromString(url);
|
let destination = createUrlObjectFromString(url);
|
||||||
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", {
|
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
|
||||||
url: destination,
|
url: destination,
|
||||||
history: false,
|
history: false,
|
||||||
cached: false
|
cached: false
|
||||||
|
@ -9184,7 +9224,7 @@ function navigate_default(Alpine19) {
|
||||||
storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination);
|
storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination);
|
||||||
});
|
});
|
||||||
whenItIsReleased(() => {
|
whenItIsReleased(() => {
|
||||||
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", {
|
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
|
||||||
url: destination,
|
url: destination,
|
||||||
history: false,
|
history: false,
|
||||||
cached: false
|
cached: false
|
||||||
|
@ -9198,7 +9238,7 @@ function navigate_default(Alpine19) {
|
||||||
function navigateTo(destination, shouldPushToHistoryState = true) {
|
function navigateTo(destination, shouldPushToHistoryState = true) {
|
||||||
showProgressBar && showAndStartProgressBar();
|
showProgressBar && showAndStartProgressBar();
|
||||||
fetchHtmlOrUsePrefetchedHtml(destination, (html, finalDestination) => {
|
fetchHtmlOrUsePrefetchedHtml(destination, (html, finalDestination) => {
|
||||||
fireEventForOtherLibariesToHookInto("alpine:navigating");
|
fireEventForOtherLibrariesToHookInto("alpine:navigating");
|
||||||
restoreScroll && storeScrollInformationInHtmlBeforeNavigatingAway();
|
restoreScroll && storeScrollInformationInHtmlBeforeNavigatingAway();
|
||||||
showProgressBar && finishAndHideProgressBar();
|
showProgressBar && finishAndHideProgressBar();
|
||||||
cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement();
|
cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement();
|
||||||
|
@ -9206,6 +9246,7 @@ function navigate_default(Alpine19) {
|
||||||
preventAlpineFromPickingUpDomChanges(Alpine19, (andAfterAllThis) => {
|
preventAlpineFromPickingUpDomChanges(Alpine19, (andAfterAllThis) => {
|
||||||
enablePersist && storePersistantElementsForLater((persistedEl) => {
|
enablePersist && storePersistantElementsForLater((persistedEl) => {
|
||||||
packUpPersistedTeleports(persistedEl);
|
packUpPersistedTeleports(persistedEl);
|
||||||
|
packUpPersistedPopovers(persistedEl);
|
||||||
});
|
});
|
||||||
if (shouldPushToHistoryState) {
|
if (shouldPushToHistoryState) {
|
||||||
updateUrlAndStoreLatestHtmlForFutureBackButtons(html, finalDestination);
|
updateUrlAndStoreLatestHtmlForFutureBackButtons(html, finalDestination);
|
||||||
|
@ -9216,6 +9257,7 @@ function navigate_default(Alpine19) {
|
||||||
removeAnyLeftOverStaleTeleportTargets(document.body);
|
removeAnyLeftOverStaleTeleportTargets(document.body);
|
||||||
enablePersist && putPersistantElementsBack((persistedEl, newStub) => {
|
enablePersist && putPersistantElementsBack((persistedEl, newStub) => {
|
||||||
unPackPersistedTeleports(persistedEl);
|
unPackPersistedTeleports(persistedEl);
|
||||||
|
unPackPersistedPopovers(persistedEl);
|
||||||
});
|
});
|
||||||
restoreScrollPositionOrScrollToTop();
|
restoreScrollPositionOrScrollToTop();
|
||||||
afterNewScriptsAreDoneLoading(() => {
|
afterNewScriptsAreDoneLoading(() => {
|
||||||
|
@ -9224,7 +9266,7 @@ function navigate_default(Alpine19) {
|
||||||
autofocus && autofocusElementsWithTheAutofocusAttribute();
|
autofocus && autofocusElementsWithTheAutofocusAttribute();
|
||||||
});
|
});
|
||||||
nowInitializeAlpineOnTheNewPage(Alpine19);
|
nowInitializeAlpineOnTheNewPage(Alpine19);
|
||||||
fireEventForOtherLibariesToHookInto("alpine:navigated");
|
fireEventForOtherLibrariesToHookInto("alpine:navigated");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -9234,7 +9276,7 @@ function navigate_default(Alpine19) {
|
||||||
whenTheBackOrForwardButtonIsClicked((ifThePageBeingVisitedHasntBeenCached) => {
|
whenTheBackOrForwardButtonIsClicked((ifThePageBeingVisitedHasntBeenCached) => {
|
||||||
ifThePageBeingVisitedHasntBeenCached((url) => {
|
ifThePageBeingVisitedHasntBeenCached((url) => {
|
||||||
let destination = createUrlObjectFromString(url);
|
let destination = createUrlObjectFromString(url);
|
||||||
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", {
|
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
|
||||||
url: destination,
|
url: destination,
|
||||||
history: true,
|
history: true,
|
||||||
cached: false
|
cached: false
|
||||||
|
@ -9246,7 +9288,7 @@ function navigate_default(Alpine19) {
|
||||||
});
|
});
|
||||||
}, (html, url, currentPageUrl, currentPageKey) => {
|
}, (html, url, currentPageUrl, currentPageKey) => {
|
||||||
let destination = createUrlObjectFromString(url);
|
let destination = createUrlObjectFromString(url);
|
||||||
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", {
|
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
|
||||||
url: destination,
|
url: destination,
|
||||||
history: true,
|
history: true,
|
||||||
cached: true
|
cached: true
|
||||||
|
@ -9254,29 +9296,31 @@ function navigate_default(Alpine19) {
|
||||||
if (prevented)
|
if (prevented)
|
||||||
return;
|
return;
|
||||||
storeScrollInformationInHtmlBeforeNavigatingAway();
|
storeScrollInformationInHtmlBeforeNavigatingAway();
|
||||||
fireEventForOtherLibariesToHookInto("alpine:navigating");
|
fireEventForOtherLibrariesToHookInto("alpine:navigating");
|
||||||
updateCurrentPageHtmlInSnapshotCacheForLaterBackButtonClicks(currentPageUrl, currentPageKey);
|
updateCurrentPageHtmlInSnapshotCacheForLaterBackButtonClicks(currentPageUrl, currentPageKey);
|
||||||
preventAlpineFromPickingUpDomChanges(Alpine19, (andAfterAllThis) => {
|
preventAlpineFromPickingUpDomChanges(Alpine19, (andAfterAllThis) => {
|
||||||
enablePersist && storePersistantElementsForLater((persistedEl) => {
|
enablePersist && storePersistantElementsForLater((persistedEl) => {
|
||||||
packUpPersistedTeleports(persistedEl);
|
packUpPersistedTeleports(persistedEl);
|
||||||
|
packUpPersistedPopovers(persistedEl);
|
||||||
});
|
});
|
||||||
swapCurrentPageWithNewHtml(html, () => {
|
swapCurrentPageWithNewHtml(html, () => {
|
||||||
removeAnyLeftOverStaleProgressBars();
|
removeAnyLeftOverStaleProgressBars();
|
||||||
removeAnyLeftOverStaleTeleportTargets(document.body);
|
removeAnyLeftOverStaleTeleportTargets(document.body);
|
||||||
enablePersist && putPersistantElementsBack((persistedEl, newStub) => {
|
enablePersist && putPersistantElementsBack((persistedEl, newStub) => {
|
||||||
unPackPersistedTeleports(persistedEl);
|
unPackPersistedTeleports(persistedEl);
|
||||||
|
unPackPersistedPopovers(persistedEl);
|
||||||
});
|
});
|
||||||
restoreScrollPositionOrScrollToTop();
|
restoreScrollPositionOrScrollToTop();
|
||||||
andAfterAllThis(() => {
|
andAfterAllThis(() => {
|
||||||
autofocus && autofocusElementsWithTheAutofocusAttribute();
|
autofocus && autofocusElementsWithTheAutofocusAttribute();
|
||||||
nowInitializeAlpineOnTheNewPage(Alpine19);
|
nowInitializeAlpineOnTheNewPage(Alpine19);
|
||||||
fireEventForOtherLibariesToHookInto("alpine:navigated");
|
fireEventForOtherLibrariesToHookInto("alpine:navigated");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
fireEventForOtherLibariesToHookInto("alpine:navigated");
|
fireEventForOtherLibrariesToHookInto("alpine:navigated");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function fetchHtmlOrUsePrefetchedHtml(fromDestination, callback) {
|
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, {
|
let event = new CustomEvent(name, {
|
||||||
cancelable: true,
|
cancelable: true,
|
||||||
bubbles: true,
|
bubbles: true,
|
||||||
|
@ -9809,6 +9853,7 @@ function morph2(component, el, html) {
|
||||||
},
|
},
|
||||||
lookahead: false
|
lookahead: false
|
||||||
});
|
});
|
||||||
|
trigger("morphed", { el, component });
|
||||||
}
|
}
|
||||||
function isntElement(el) {
|
function isntElement(el) {
|
||||||
return typeof el.hasAttribute !== "function";
|
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
|
* @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) {
|
function bindInputValue(el, value) {
|
||||||
if (el.type === "radio") {
|
if (isRadio(el)) {
|
||||||
if (el.attributes.value === void 0) {
|
if (el.attributes.value === void 0) {
|
||||||
el.value = value;
|
el.value = value;
|
||||||
}
|
}
|
||||||
|
@ -1986,7 +1986,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
el.checked = checkedAttrLooseCompare(el.value, value);
|
el.checked = checkedAttrLooseCompare(el.value, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (el.type === "checkbox") {
|
} else if (isCheckbox(el)) {
|
||||||
if (Number.isInteger(value)) {
|
if (Number.isInteger(value)) {
|
||||||
el.value = value;
|
el.value = value;
|
||||||
} else if (!Array.isArray(value) && typeof value !== "boolean" && ![null, void 0].includes(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;
|
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) {
|
function debounce(func, wait) {
|
||||||
var timeout;
|
var timeout;
|
||||||
return function() {
|
return function() {
|
||||||
|
@ -2278,7 +2284,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
get raw() {
|
get raw() {
|
||||||
return raw;
|
return raw;
|
||||||
},
|
},
|
||||||
version: "3.14.1",
|
version: "3.14.3",
|
||||||
flushAndStopDeferringMutations,
|
flushAndStopDeferringMutations,
|
||||||
dontAutoEvaluateFunctions,
|
dontAutoEvaluateFunctions,
|
||||||
disableEffectScheduling,
|
disableEffectScheduling,
|
||||||
|
@ -3361,7 +3367,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
setValue(getInputValue(el, modifiers, e, getValue()));
|
setValue(getInputValue(el, modifiers, e, getValue()));
|
||||||
});
|
});
|
||||||
if (modifiers.includes("fill")) {
|
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()));
|
setValue(getInputValue(el, modifiers, { target: el }, getValue()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3401,7 +3407,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
return mutateDom(() => {
|
return mutateDom(() => {
|
||||||
if (event instanceof CustomEvent && event.detail !== void 0)
|
if (event instanceof CustomEvent && event.detail !== void 0)
|
||||||
return event.detail !== null && event.detail !== void 0 ? event.detail : event.target.value;
|
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)) {
|
if (Array.isArray(currentValue)) {
|
||||||
let newValue = null;
|
let newValue = null;
|
||||||
if (modifiers.includes("number")) {
|
if (modifiers.includes("number")) {
|
||||||
|
@ -3432,7 +3438,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
let newValue;
|
let newValue;
|
||||||
if (el.type === "radio") {
|
if (isRadio(el)) {
|
||||||
if (event.target.checked) {
|
if (event.target.checked) {
|
||||||
newValue = event.target.value;
|
newValue = event.target.value;
|
||||||
} else {
|
} else {
|
||||||
|
@ -4971,11 +4977,11 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
var checked = getCheckedRadio(radioSet, node.form);
|
var checked = getCheckedRadio(radioSet, node.form);
|
||||||
return !checked || checked === node;
|
return !checked || checked === node;
|
||||||
};
|
};
|
||||||
var isRadio = function isRadio2(node) {
|
var isRadio2 = function isRadio22(node) {
|
||||||
return isInput(node) && node.type === "radio";
|
return isInput(node) && node.type === "radio";
|
||||||
};
|
};
|
||||||
var isNonTabbableRadio = function isNonTabbableRadio2(node) {
|
var isNonTabbableRadio = function isNonTabbableRadio2(node) {
|
||||||
return isRadio(node) && !isTabbableRadio(node);
|
return isRadio2(node) && !isTabbableRadio(node);
|
||||||
};
|
};
|
||||||
var isZeroArea = function isZeroArea2(node) {
|
var isZeroArea = function isZeroArea2(node) {
|
||||||
var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height;
|
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);
|
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
|
// js/plugins/navigate/page.js
|
||||||
var oldBodyScriptTagHashes = [];
|
var oldBodyScriptTagHashes = [];
|
||||||
var attributesExemptFromScriptTagHashing = [
|
var attributesExemptFromScriptTagHashing = [
|
||||||
|
@ -7763,7 +7807,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
function navigate_default(Alpine3) {
|
function navigate_default(Alpine3) {
|
||||||
Alpine3.navigate = (url) => {
|
Alpine3.navigate = (url) => {
|
||||||
let destination = createUrlObjectFromString(url);
|
let destination = createUrlObjectFromString(url);
|
||||||
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", {
|
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
|
||||||
url: destination,
|
url: destination,
|
||||||
history: false,
|
history: false,
|
||||||
cached: false
|
cached: false
|
||||||
|
@ -7794,7 +7838,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination);
|
storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination);
|
||||||
});
|
});
|
||||||
whenItIsReleased(() => {
|
whenItIsReleased(() => {
|
||||||
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", {
|
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
|
||||||
url: destination,
|
url: destination,
|
||||||
history: false,
|
history: false,
|
||||||
cached: false
|
cached: false
|
||||||
|
@ -7808,7 +7852,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
function navigateTo(destination, shouldPushToHistoryState = true) {
|
function navigateTo(destination, shouldPushToHistoryState = true) {
|
||||||
showProgressBar && showAndStartProgressBar();
|
showProgressBar && showAndStartProgressBar();
|
||||||
fetchHtmlOrUsePrefetchedHtml(destination, (html, finalDestination) => {
|
fetchHtmlOrUsePrefetchedHtml(destination, (html, finalDestination) => {
|
||||||
fireEventForOtherLibariesToHookInto("alpine:navigating");
|
fireEventForOtherLibrariesToHookInto("alpine:navigating");
|
||||||
restoreScroll && storeScrollInformationInHtmlBeforeNavigatingAway();
|
restoreScroll && storeScrollInformationInHtmlBeforeNavigatingAway();
|
||||||
showProgressBar && finishAndHideProgressBar();
|
showProgressBar && finishAndHideProgressBar();
|
||||||
cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement();
|
cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement();
|
||||||
|
@ -7816,6 +7860,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
preventAlpineFromPickingUpDomChanges(Alpine3, (andAfterAllThis) => {
|
preventAlpineFromPickingUpDomChanges(Alpine3, (andAfterAllThis) => {
|
||||||
enablePersist && storePersistantElementsForLater((persistedEl) => {
|
enablePersist && storePersistantElementsForLater((persistedEl) => {
|
||||||
packUpPersistedTeleports(persistedEl);
|
packUpPersistedTeleports(persistedEl);
|
||||||
|
packUpPersistedPopovers(persistedEl);
|
||||||
});
|
});
|
||||||
if (shouldPushToHistoryState) {
|
if (shouldPushToHistoryState) {
|
||||||
updateUrlAndStoreLatestHtmlForFutureBackButtons(html, finalDestination);
|
updateUrlAndStoreLatestHtmlForFutureBackButtons(html, finalDestination);
|
||||||
|
@ -7826,6 +7871,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
removeAnyLeftOverStaleTeleportTargets(document.body);
|
removeAnyLeftOverStaleTeleportTargets(document.body);
|
||||||
enablePersist && putPersistantElementsBack((persistedEl, newStub) => {
|
enablePersist && putPersistantElementsBack((persistedEl, newStub) => {
|
||||||
unPackPersistedTeleports(persistedEl);
|
unPackPersistedTeleports(persistedEl);
|
||||||
|
unPackPersistedPopovers(persistedEl);
|
||||||
});
|
});
|
||||||
restoreScrollPositionOrScrollToTop();
|
restoreScrollPositionOrScrollToTop();
|
||||||
afterNewScriptsAreDoneLoading(() => {
|
afterNewScriptsAreDoneLoading(() => {
|
||||||
|
@ -7834,7 +7880,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
autofocus && autofocusElementsWithTheAutofocusAttribute();
|
autofocus && autofocusElementsWithTheAutofocusAttribute();
|
||||||
});
|
});
|
||||||
nowInitializeAlpineOnTheNewPage(Alpine3);
|
nowInitializeAlpineOnTheNewPage(Alpine3);
|
||||||
fireEventForOtherLibariesToHookInto("alpine:navigated");
|
fireEventForOtherLibrariesToHookInto("alpine:navigated");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -7844,7 +7890,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
whenTheBackOrForwardButtonIsClicked((ifThePageBeingVisitedHasntBeenCached) => {
|
whenTheBackOrForwardButtonIsClicked((ifThePageBeingVisitedHasntBeenCached) => {
|
||||||
ifThePageBeingVisitedHasntBeenCached((url) => {
|
ifThePageBeingVisitedHasntBeenCached((url) => {
|
||||||
let destination = createUrlObjectFromString(url);
|
let destination = createUrlObjectFromString(url);
|
||||||
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", {
|
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
|
||||||
url: destination,
|
url: destination,
|
||||||
history: true,
|
history: true,
|
||||||
cached: false
|
cached: false
|
||||||
|
@ -7856,7 +7902,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
});
|
});
|
||||||
}, (html, url, currentPageUrl, currentPageKey) => {
|
}, (html, url, currentPageUrl, currentPageKey) => {
|
||||||
let destination = createUrlObjectFromString(url);
|
let destination = createUrlObjectFromString(url);
|
||||||
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", {
|
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
|
||||||
url: destination,
|
url: destination,
|
||||||
history: true,
|
history: true,
|
||||||
cached: true
|
cached: true
|
||||||
|
@ -7864,29 +7910,31 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
if (prevented)
|
if (prevented)
|
||||||
return;
|
return;
|
||||||
storeScrollInformationInHtmlBeforeNavigatingAway();
|
storeScrollInformationInHtmlBeforeNavigatingAway();
|
||||||
fireEventForOtherLibariesToHookInto("alpine:navigating");
|
fireEventForOtherLibrariesToHookInto("alpine:navigating");
|
||||||
updateCurrentPageHtmlInSnapshotCacheForLaterBackButtonClicks(currentPageUrl, currentPageKey);
|
updateCurrentPageHtmlInSnapshotCacheForLaterBackButtonClicks(currentPageUrl, currentPageKey);
|
||||||
preventAlpineFromPickingUpDomChanges(Alpine3, (andAfterAllThis) => {
|
preventAlpineFromPickingUpDomChanges(Alpine3, (andAfterAllThis) => {
|
||||||
enablePersist && storePersistantElementsForLater((persistedEl) => {
|
enablePersist && storePersistantElementsForLater((persistedEl) => {
|
||||||
packUpPersistedTeleports(persistedEl);
|
packUpPersistedTeleports(persistedEl);
|
||||||
|
packUpPersistedPopovers(persistedEl);
|
||||||
});
|
});
|
||||||
swapCurrentPageWithNewHtml(html, () => {
|
swapCurrentPageWithNewHtml(html, () => {
|
||||||
removeAnyLeftOverStaleProgressBars();
|
removeAnyLeftOverStaleProgressBars();
|
||||||
removeAnyLeftOverStaleTeleportTargets(document.body);
|
removeAnyLeftOverStaleTeleportTargets(document.body);
|
||||||
enablePersist && putPersistantElementsBack((persistedEl, newStub) => {
|
enablePersist && putPersistantElementsBack((persistedEl, newStub) => {
|
||||||
unPackPersistedTeleports(persistedEl);
|
unPackPersistedTeleports(persistedEl);
|
||||||
|
unPackPersistedPopovers(persistedEl);
|
||||||
});
|
});
|
||||||
restoreScrollPositionOrScrollToTop();
|
restoreScrollPositionOrScrollToTop();
|
||||||
andAfterAllThis(() => {
|
andAfterAllThis(() => {
|
||||||
autofocus && autofocusElementsWithTheAutofocusAttribute();
|
autofocus && autofocusElementsWithTheAutofocusAttribute();
|
||||||
nowInitializeAlpineOnTheNewPage(Alpine3);
|
nowInitializeAlpineOnTheNewPage(Alpine3);
|
||||||
fireEventForOtherLibariesToHookInto("alpine:navigated");
|
fireEventForOtherLibrariesToHookInto("alpine:navigated");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
fireEventForOtherLibariesToHookInto("alpine:navigated");
|
fireEventForOtherLibrariesToHookInto("alpine:navigated");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function fetchHtmlOrUsePrefetchedHtml(fromDestination, callback) {
|
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, {
|
let event = new CustomEvent(name, {
|
||||||
cancelable: true,
|
cancelable: true,
|
||||||
bubbles: true,
|
bubbles: true,
|
||||||
|
@ -8212,8 +8260,6 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
let toAttributes = Array.from(to.attributes);
|
let toAttributes = Array.from(to.attributes);
|
||||||
for (let i = domAttributes.length - 1; i >= 0; i--) {
|
for (let i = domAttributes.length - 1; i >= 0; i--) {
|
||||||
let name = domAttributes[i].name;
|
let name = domAttributes[i].name;
|
||||||
if (name === "style")
|
|
||||||
continue;
|
|
||||||
if (!to.hasAttribute(name)) {
|
if (!to.hasAttribute(name)) {
|
||||||
from2.removeAttribute(name);
|
from2.removeAttribute(name);
|
||||||
}
|
}
|
||||||
|
@ -8221,8 +8267,6 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
for (let i = toAttributes.length - 1; i >= 0; i--) {
|
for (let i = toAttributes.length - 1; i >= 0; i--) {
|
||||||
let name = toAttributes[i].name;
|
let name = toAttributes[i].name;
|
||||||
let value = toAttributes[i].value;
|
let value = toAttributes[i].value;
|
||||||
if (name === "style")
|
|
||||||
continue;
|
|
||||||
if (from2.getAttribute(name) !== value) {
|
if (from2.getAttribute(name) !== value) {
|
||||||
from2.setAttribute(name, value);
|
from2.setAttribute(name, value);
|
||||||
}
|
}
|
||||||
|
@ -8914,6 +8958,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
},
|
},
|
||||||
lookahead: false
|
lookahead: false
|
||||||
});
|
});
|
||||||
|
trigger2("morphed", { el, component });
|
||||||
}
|
}
|
||||||
function isntElement(el) {
|
function isntElement(el) {
|
||||||
return typeof el.hasAttribute !== "function";
|
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