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.esm.js
CHANGED
|
@@ -617,12 +617,14 @@ function localStore(key, enable) {
|
|
|
617
617
|
|
|
618
618
|
return new Proxy(getStore(), {
|
|
619
619
|
set: function set(target, property, value) {
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
620
|
+
console.log('localStore() => set');
|
|
621
|
+
|
|
622
|
+
if (value === undefined) {
|
|
623
|
+
delete target[property];
|
|
624
|
+
} else {
|
|
625
|
+
target[property] = value;
|
|
626
|
+
}
|
|
627
|
+
|
|
626
628
|
if (enable) setStore(target);
|
|
627
629
|
return true;
|
|
628
630
|
}
|
|
@@ -966,7 +968,7 @@ var deregister$2 = function deregister(obj, close) {
|
|
|
966
968
|
if (index >= 0) {
|
|
967
969
|
var _temp7 = function _temp7() {
|
|
968
970
|
// Remove entry from local store.
|
|
969
|
-
|
|
971
|
+
_this2.store[_entry.id] = undefined; // Unmount the MatchMedia functionality.
|
|
970
972
|
|
|
971
973
|
_entry.unmountBreakpoint(); // Delete properties from collection entry.
|
|
972
974
|
|
|
@@ -998,12 +1000,12 @@ var deregister$2 = function deregister(obj, close) {
|
|
|
998
1000
|
}
|
|
999
1001
|
};
|
|
1000
1002
|
|
|
1001
|
-
function
|
|
1003
|
+
function g() {
|
|
1002
1004
|
return getComputedStyle(document.body).getPropertyValue("--vrembem-variable-prefix").trim();
|
|
1003
1005
|
}
|
|
1004
1006
|
|
|
1005
1007
|
function getBreakpoint(drawer) {
|
|
1006
|
-
var prefix =
|
|
1008
|
+
var prefix = g();
|
|
1007
1009
|
var bp = drawer.getAttribute("data-" + this.settings.dataBreakpoint);
|
|
1008
1010
|
|
|
1009
1011
|
if (this.settings.breakpoints && this.settings.breakpoints[bp]) {
|
|
@@ -2308,7 +2310,7 @@ function getConfig(el, settings) {
|
|
|
2308
2310
|
|
|
2309
2311
|
for (var prop in config) {
|
|
2310
2312
|
// Get the CSS variable property values.
|
|
2311
|
-
var prefix =
|
|
2313
|
+
var prefix = g();
|
|
2312
2314
|
var value = styles.getPropertyValue("--" + prefix + "popover-" + prop).trim(); // If a value was found, replace the default in config obj.
|
|
2313
2315
|
|
|
2314
2316
|
if (value) {
|