vrembem 3.0.4 → 3.0.7
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/dev/scripts.esm.js +12 -10
- package/dev/scripts.esm.js.map +1 -1
- package/dev/scripts.js +12 -10
- package/dev/scripts.js.map +1 -1
- package/dev/scripts.modern.js +12 -10
- package/dev/scripts.modern.js.map +1 -1
- package/dev/scripts.umd.js +12 -10
- package/dev/scripts.umd.js.map +1 -1
- package/dev/styles.css +49 -58
- package/dev/styles.css.map +1 -1
- package/dist/scripts.esm.js +1 -1
- package/dist/scripts.esm.js.map +1 -1
- package/dist/scripts.js +1 -1
- package/dist/scripts.js.map +1 -1
- package/dist/scripts.modern.js +1 -1
- package/dist/scripts.modern.js.map +1 -1
- package/dist/scripts.umd.js +1 -1
- package/dist/scripts.umd.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +26 -26
package/dev/scripts.umd.js
CHANGED
|
@@ -622,12 +622,14 @@
|
|
|
622
622
|
|
|
623
623
|
return new Proxy(getStore(), {
|
|
624
624
|
set: function set(target, property, value) {
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
625
|
+
console.log('localStore() => set');
|
|
626
|
+
|
|
627
|
+
if (value === undefined) {
|
|
628
|
+
delete target[property];
|
|
629
|
+
} else {
|
|
630
|
+
target[property] = value;
|
|
631
|
+
}
|
|
632
|
+
|
|
631
633
|
if (enable) setStore(target);
|
|
632
634
|
return true;
|
|
633
635
|
}
|
|
@@ -971,7 +973,7 @@
|
|
|
971
973
|
if (index >= 0) {
|
|
972
974
|
var _temp7 = function _temp7() {
|
|
973
975
|
// Remove entry from local store.
|
|
974
|
-
|
|
976
|
+
_this2.store[_entry.id] = undefined; // Unmount the MatchMedia functionality.
|
|
975
977
|
|
|
976
978
|
_entry.unmountBreakpoint(); // Delete properties from collection entry.
|
|
977
979
|
|
|
@@ -1003,12 +1005,12 @@
|
|
|
1003
1005
|
}
|
|
1004
1006
|
};
|
|
1005
1007
|
|
|
1006
|
-
function
|
|
1008
|
+
function g() {
|
|
1007
1009
|
return getComputedStyle(document.body).getPropertyValue("--vrembem-variable-prefix").trim();
|
|
1008
1010
|
}
|
|
1009
1011
|
|
|
1010
1012
|
function getBreakpoint(drawer) {
|
|
1011
|
-
var prefix =
|
|
1013
|
+
var prefix = g();
|
|
1012
1014
|
var bp = drawer.getAttribute("data-" + this.settings.dataBreakpoint);
|
|
1013
1015
|
|
|
1014
1016
|
if (this.settings.breakpoints && this.settings.breakpoints[bp]) {
|
|
@@ -2313,7 +2315,7 @@
|
|
|
2313
2315
|
|
|
2314
2316
|
for (var prop in config) {
|
|
2315
2317
|
// Get the CSS variable property values.
|
|
2316
|
-
var prefix =
|
|
2318
|
+
var prefix = g();
|
|
2317
2319
|
var value = styles.getPropertyValue("--" + prefix + "popover-" + prop).trim(); // If a value was found, replace the default in config obj.
|
|
2318
2320
|
|
|
2319
2321
|
if (value) {
|