@astuteo/breakout-grid 5.1.4 → 5.1.5
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
"use strict";
|
|
3
|
-
const VERSION = `v${"5.1.
|
|
3
|
+
const VERSION = `v${"5.1.5"} lite`;
|
|
4
4
|
const LOREM_CONTENT = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium.
|
|
5
5
|
|
|
6
6
|
Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet.`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
"use strict";
|
|
3
|
-
const VERSION = `v${"5.1.
|
|
3
|
+
const VERSION = `v${"5.1.5"}`;
|
|
4
4
|
const LOREM_CONTENT = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium.
|
|
5
5
|
|
|
6
6
|
Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet.`;
|
|
@@ -77,12 +77,13 @@ Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed
|
|
|
77
77
|
restoreInput: "",
|
|
78
78
|
restoreError: null,
|
|
79
79
|
sectionCopied: null,
|
|
80
|
+
hasConfigOverride: false,
|
|
80
81
|
showCloseWarningModal: false,
|
|
81
82
|
gridOpacity: 0.8,
|
|
82
83
|
backdropOpacity: 0.85
|
|
83
84
|
};
|
|
84
85
|
}
|
|
85
|
-
const BUILD_VERSION = "5.1.
|
|
86
|
+
const BUILD_VERSION = "5.1.5";
|
|
86
87
|
function generateCSSExport(c, version = BUILD_VERSION) {
|
|
87
88
|
var _a, _b, _c, _d, _e;
|
|
88
89
|
const VERSION2 = version;
|
|
@@ -764,6 +765,7 @@ Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed
|
|
|
764
765
|
if (savedConfig) {
|
|
765
766
|
try {
|
|
766
767
|
const config = JSON.parse(savedConfig);
|
|
768
|
+
this.hasConfigOverride = true;
|
|
767
769
|
this.$nextTick(() => this.applyConfig(config));
|
|
768
770
|
} catch (e) {
|
|
769
771
|
}
|
|
@@ -1060,6 +1062,7 @@ Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed
|
|
|
1060
1062
|
saveConfigToStorage() {
|
|
1061
1063
|
const config = this.generateConfigExport();
|
|
1062
1064
|
localStorage.setItem("breakoutGridConfig", JSON.stringify(config));
|
|
1065
|
+
this.hasConfigOverride = true;
|
|
1063
1066
|
},
|
|
1064
1067
|
applyConfig(config) {
|
|
1065
1068
|
this.editMode = true;
|
|
@@ -1112,6 +1115,7 @@ Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed
|
|
|
1112
1115
|
this.restoreCSSVariables();
|
|
1113
1116
|
this.loadCurrentValues();
|
|
1114
1117
|
this.configCopied = false;
|
|
1118
|
+
this.hasConfigOverride = false;
|
|
1115
1119
|
},
|
|
1116
1120
|
updateConfigValue(key, value) {
|
|
1117
1121
|
this.editValues[key] = value;
|
|
@@ -1334,6 +1338,20 @@ Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed
|
|
|
1334
1338
|
this.restoreInput = "";
|
|
1335
1339
|
this.restoreError = null;
|
|
1336
1340
|
},
|
|
1341
|
+
hasStoredOverrides() {
|
|
1342
|
+
return ["breakoutGridConfig", "breakoutGridEditorOpen", "breakoutGridEditorPos", "breakoutGridSpacingPos", "breakoutGridSpacingCollapsed"].some((key) => localStorage.getItem(key) !== null);
|
|
1343
|
+
},
|
|
1344
|
+
resetAllStorage() {
|
|
1345
|
+
["breakoutGridVisualizerVisible", "breakoutGridEditorOpen", "breakoutGridConfig", "breakoutGridEditorPos", "breakoutGridSpacingPos", "breakoutGridSpacingCollapsed"].forEach((key) => localStorage.removeItem(key));
|
|
1346
|
+
this.restoreCSSVariables();
|
|
1347
|
+
this.showEditor = false;
|
|
1348
|
+
this.editMode = false;
|
|
1349
|
+
this.editorPos = { x: 20, y: 100 };
|
|
1350
|
+
this.spacingPanelPos = { x: 16, y: 16 };
|
|
1351
|
+
this.spacingPanelCollapsed = false;
|
|
1352
|
+
this.hasConfigOverride = false;
|
|
1353
|
+
this.configCopied = false;
|
|
1354
|
+
},
|
|
1337
1355
|
restoreConfig() {
|
|
1338
1356
|
this.restoreError = null;
|
|
1339
1357
|
try {
|
|
@@ -2005,6 +2023,14 @@ Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed
|
|
|
2005
2023
|
</div>
|
|
2006
2024
|
</div>
|
|
2007
2025
|
|
|
2026
|
+
<!-- Config override warning -->
|
|
2027
|
+
<div x-show="hasConfigOverride"
|
|
2028
|
+
style="padding: 6px 10px; background: #fef3c7; border-bottom: 1px solid #fcd34d; display: flex; align-items: center; justify-content: space-between; gap: 6px;">
|
|
2029
|
+
<span style="font-size: 9px; font-weight: 600; color: #92400e;">localStorage override active</span>
|
|
2030
|
+
<button @click="resetAllStorage()"
|
|
2031
|
+
style="background: none; border: 1px solid #f59e0b; border-radius: 3px; font-size: 9px; font-weight: 600; color: #92400e; cursor: pointer; padding: 1px 5px; white-space: nowrap;">Clear</button>
|
|
2032
|
+
</div>
|
|
2033
|
+
|
|
2008
2034
|
<!-- Collapsible Content -->
|
|
2009
2035
|
<div x-show="!controlPanelCollapsed">
|
|
2010
2036
|
<!-- Action Buttons -->
|
|
@@ -2106,10 +2132,16 @@ Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed
|
|
|
2106
2132
|
</div>
|
|
2107
2133
|
|
|
2108
2134
|
<!-- Footer -->
|
|
2109
|
-
<div style="padding: 6px 12px; background: #f7f7f7; border-top: 1px solid #e5e5e5;">
|
|
2110
|
-
<div style="font-size: 9px; color: #9ca3af;
|
|
2135
|
+
<div style="padding: 6px 12px; background: #f7f7f7; border-top: 1px solid #e5e5e5; display: flex; justify-content: center; align-items: center; gap: 8px;">
|
|
2136
|
+
<div style="font-size: 9px; color: #9ca3af;">
|
|
2111
2137
|
<kbd style="background: #e5e5e5; padding: 1px 4px; border-radius: 2px; font-size: 9px; font-weight: 600; color: #374151;">⌘G</kbd> toggle
|
|
2112
2138
|
</div>
|
|
2139
|
+
<button x-show="hasStoredOverrides()"
|
|
2140
|
+
@click="resetAllStorage()"
|
|
2141
|
+
style="background: none; border: none; font-size: 9px; color: #d1d5db; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px;"
|
|
2142
|
+
onmouseenter="this.style.color='#9ca3af'"
|
|
2143
|
+
onmouseleave="this.style.color='#d1d5db'"
|
|
2144
|
+
title="Clear all saved visualizer state from localStorage">reset</button>
|
|
2113
2145
|
</div>
|
|
2114
2146
|
|
|
2115
2147
|
<!-- Selected Area Info -->
|
|
@@ -2522,6 +2554,17 @@ Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed
|
|
|
2522
2554
|
</div>
|
|
2523
2555
|
|
|
2524
2556
|
</div>
|
|
2557
|
+
|
|
2558
|
+
<!-- Persistent override indicator - visible even when visualizer is hidden -->
|
|
2559
|
+
<div x-show="hasConfigOverride && !isVisible"
|
|
2560
|
+
x-transition
|
|
2561
|
+
style="position: fixed; bottom: 12px; right: 12px; z-index: 9998; pointer-events: auto; font-family: system-ui, -apple-system, sans-serif;">
|
|
2562
|
+
<div style="display: flex; align-items: center; gap: 8px; background: #fef3c7; border: 1px solid #fcd34d; border-radius: 6px; padding: 6px 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);">
|
|
2563
|
+
<span style="font-size: 10px; font-weight: 600; color: #92400e;">Grid overridden by visualizer</span>
|
|
2564
|
+
<button @click="resetAllStorage()"
|
|
2565
|
+
style="background: none; border: 1px solid #f59e0b; border-radius: 3px; font-size: 9px; font-weight: 600; color: #92400e; cursor: pointer; padding: 2px 6px;">Clear</button>
|
|
2566
|
+
</div>
|
|
2567
|
+
</div>
|
|
2525
2568
|
`;
|
|
2526
2569
|
(function() {
|
|
2527
2570
|
document.addEventListener("alpine:init", () => {
|