@sonicjs-cms/core 2.12.1 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-RBXFXT7H.cjs → chunk-3QCEYJLK.cjs} +9 -9
- package/dist/{chunk-RBXFXT7H.cjs.map → chunk-3QCEYJLK.cjs.map} +1 -1
- package/dist/{chunk-6C6W54QP.js → chunk-3VAKUFNQ.js} +2 -2
- package/dist/{chunk-6C6W54QP.js.map → chunk-3VAKUFNQ.js.map} +1 -1
- package/dist/{chunk-BWZBKLOC.js → chunk-CB7ONLGB.js} +3 -3
- package/dist/{chunk-BWZBKLOC.js.map → chunk-CB7ONLGB.js.map} +1 -1
- package/dist/{chunk-673VROB3.js → chunk-CO4B5EYF.js} +5 -5
- package/dist/{chunk-673VROB3.js.map → chunk-CO4B5EYF.js.map} +1 -1
- package/dist/{chunk-UFWE3MEJ.js → chunk-DB2GJJTM.js} +3 -3
- package/dist/{chunk-UFWE3MEJ.js.map → chunk-DB2GJJTM.js.map} +1 -1
- package/dist/{chunk-HBUFGLEX.cjs → chunk-EGUDIX6Q.cjs} +4 -4
- package/dist/{chunk-HBUFGLEX.cjs.map → chunk-EGUDIX6Q.cjs.map} +1 -1
- package/dist/{chunk-DHTCZZUB.cjs → chunk-HVTSE2SF.cjs} +247 -210
- package/dist/chunk-HVTSE2SF.cjs.map +1 -0
- package/dist/{chunk-3V2CQFIR.js → chunk-IYFSNRZN.js} +84 -47
- package/dist/chunk-IYFSNRZN.js.map +1 -0
- package/dist/{chunk-76TX6XND.js → chunk-JTUCC6WZ.js} +18 -10
- package/dist/chunk-JTUCC6WZ.js.map +1 -0
- package/dist/{chunk-H4NHRZ6Y.cjs → chunk-QP3OHHON.cjs} +18 -10
- package/dist/chunk-QP3OHHON.cjs.map +1 -0
- package/dist/{chunk-XK3TKOLQ.cjs → chunk-SER23XI4.cjs} +2 -2
- package/dist/{chunk-XK3TKOLQ.cjs.map → chunk-SER23XI4.cjs.map} +1 -1
- package/dist/{chunk-IKBAY2M2.cjs → chunk-XCP5GCBE.cjs} +5 -5
- package/dist/{chunk-IKBAY2M2.cjs.map → chunk-XCP5GCBE.cjs.map} +1 -1
- package/dist/index.cjs +131 -119
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +23 -11
- package/dist/index.js.map +1 -1
- package/dist/middleware.cjs +28 -28
- package/dist/middleware.js +2 -2
- package/dist/migrations-GMHTJI7D.cjs +13 -0
- package/dist/{migrations-MIZFGFNS.cjs.map → migrations-GMHTJI7D.cjs.map} +1 -1
- package/dist/migrations-IVFIDOSO.js +4 -0
- package/dist/{migrations-AH2XIFSA.js.map → migrations-IVFIDOSO.js.map} +1 -1
- package/dist/routes.cjs +28 -28
- package/dist/routes.js +5 -5
- package/dist/services.cjs +2 -2
- package/dist/services.js +1 -1
- package/dist/templates.cjs +19 -19
- package/dist/templates.js +2 -2
- package/dist/utils.cjs +11 -11
- package/dist/utils.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-3V2CQFIR.js.map +0 -1
- package/dist/chunk-76TX6XND.js.map +0 -1
- package/dist/chunk-DHTCZZUB.cjs.map +0 -1
- package/dist/chunk-H4NHRZ6Y.cjs.map +0 -1
- package/dist/migrations-AH2XIFSA.js +0 -4
- package/dist/migrations-MIZFGFNS.cjs +0 -13
|
@@ -391,10 +391,14 @@ function renderAdminLayoutCatalyst(data) {
|
|
|
391
391
|
|
|
392
392
|
// Close dropdown when clicking outside
|
|
393
393
|
document.addEventListener('click', function(event) {
|
|
394
|
-
const
|
|
394
|
+
const dropdowns = document.querySelectorAll('.userDropdown');
|
|
395
395
|
const button = event.target.closest('[data-user-menu]');
|
|
396
|
-
if (!button
|
|
397
|
-
|
|
396
|
+
if (!button) {
|
|
397
|
+
dropdowns.forEach(function(dropdown) {
|
|
398
|
+
if (!dropdown.contains(event.target)) {
|
|
399
|
+
dropdown.classList.add('hidden');
|
|
400
|
+
}
|
|
401
|
+
});
|
|
398
402
|
}
|
|
399
403
|
});
|
|
400
404
|
|
|
@@ -1500,16 +1504,20 @@ function adminLayoutV2(data) {
|
|
|
1500
1504
|
|
|
1501
1505
|
// User dropdown toggle
|
|
1502
1506
|
function toggleUserDropdown() {
|
|
1503
|
-
const
|
|
1504
|
-
|
|
1507
|
+
const dropdowns = document.querySelectorAll('.userDropdown');
|
|
1508
|
+
dropdowns.forEach(function(dropdown) {
|
|
1509
|
+
dropdown.classList.toggle('hidden');
|
|
1510
|
+
});
|
|
1505
1511
|
}
|
|
1506
1512
|
|
|
1507
1513
|
// Close dropdown when clicking outside
|
|
1508
1514
|
document.addEventListener('click', function(event) {
|
|
1509
|
-
const
|
|
1515
|
+
const dropdowns = document.querySelectorAll('.userDropdown');
|
|
1510
1516
|
const button = event.target.closest('button');
|
|
1511
1517
|
if (!button || !button.getAttribute('onclick')) {
|
|
1512
|
-
|
|
1518
|
+
dropdowns.forEach(function(dropdown) {
|
|
1519
|
+
dropdown.classList.add('hidden');
|
|
1520
|
+
});
|
|
1513
1521
|
}
|
|
1514
1522
|
});
|
|
1515
1523
|
|
|
@@ -1959,7 +1967,7 @@ function renderTopBar(pageTitle, user) {
|
|
|
1959
1967
|
</button>
|
|
1960
1968
|
|
|
1961
1969
|
<!-- Dropdown Menu -->
|
|
1962
|
-
<div
|
|
1970
|
+
<div class="userDropdown hidden absolute right-0 mt-2 w-48 backdrop-blur-md bg-black/95 rounded-xl border border-white/10 shadow-xl z-[9999]">
|
|
1963
1971
|
<div class="py-2">
|
|
1964
1972
|
<div class="px-4 py-2 border-b border-white/10">
|
|
1965
1973
|
<p class="text-sm font-medium text-gray-1">${user.name || user.email || "User"}</p>
|
|
@@ -3599,5 +3607,5 @@ function renderFormField(field) {
|
|
|
3599
3607
|
}
|
|
3600
3608
|
|
|
3601
3609
|
export { adminLayoutV2, getConfirmationDialogScript, init_admin_layout_catalyst_template, init_logo_template, renderAdminLayout, renderAdminLayoutCatalyst, renderAlert, renderCheckboxPage, renderCodeExamplesList, renderConfirmationDialog, renderDesignPage, renderForm, renderFormField, renderLogo, renderPagination, renderTable, renderTestimonialsList };
|
|
3602
|
-
//# sourceMappingURL=chunk-
|
|
3603
|
-
//# sourceMappingURL=chunk-
|
|
3610
|
+
//# sourceMappingURL=chunk-JTUCC6WZ.js.map
|
|
3611
|
+
//# sourceMappingURL=chunk-JTUCC6WZ.js.map
|