vrembem 3.0.20 → 3.0.22
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/LICENSE +1 -1
- package/dev/scripts.esm.js +17 -24
- package/dev/scripts.esm.js.map +1 -1
- package/dev/scripts.js +17 -24
- package/dev/scripts.js.map +1 -1
- package/dev/scripts.modern.mjs +2 -9
- package/dev/scripts.modern.mjs.map +1 -1
- package/dev/scripts.umd.js +17 -24
- package/dev/scripts.umd.js.map +1 -1
- package/dev/styles.css +58 -52
- 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.mjs +1 -1
- package/dist/scripts.modern.mjs.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
|
@@ -663,15 +663,8 @@
|
|
|
663
663
|
}
|
|
664
664
|
function setInert(state, selector) {
|
|
665
665
|
if (selector) {
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
if (state) {
|
|
669
|
-
el.inert = true;
|
|
670
|
-
el.setAttribute("aria-hidden", true);
|
|
671
|
-
} else {
|
|
672
|
-
el.inert = null;
|
|
673
|
-
el.removeAttribute("aria-hidden");
|
|
674
|
-
}
|
|
666
|
+
document.querySelectorAll(selector).forEach(function (el) {
|
|
667
|
+
el.inert = state;
|
|
675
668
|
});
|
|
676
669
|
}
|
|
677
670
|
}
|
|
@@ -883,27 +876,27 @@
|
|
|
883
876
|
if (index >= 0) {
|
|
884
877
|
var _temp2 = function _temp2() {
|
|
885
878
|
// Remove entry from local store.
|
|
886
|
-
_this.store.set(
|
|
879
|
+
_this.store.set(entry.id);
|
|
887
880
|
|
|
888
881
|
// Unmount the MatchMedia functionality.
|
|
889
|
-
|
|
882
|
+
entry.unmountBreakpoint();
|
|
890
883
|
|
|
891
884
|
// Delete properties from collection entry.
|
|
892
|
-
Object.getOwnPropertyNames(
|
|
893
|
-
delete
|
|
885
|
+
Object.getOwnPropertyNames(entry).forEach(function (prop) {
|
|
886
|
+
delete entry[prop];
|
|
894
887
|
});
|
|
895
888
|
|
|
896
889
|
// Remove entry from collection.
|
|
897
890
|
_this.collection.splice(index, 1);
|
|
898
891
|
};
|
|
899
892
|
// Get the collection entry.
|
|
900
|
-
var
|
|
893
|
+
var entry = _this.collection[index];
|
|
901
894
|
|
|
902
895
|
// If entry is in the opened state.
|
|
903
896
|
var _temp = function () {
|
|
904
|
-
if (close &&
|
|
897
|
+
if (close && entry.state === "opened") {
|
|
905
898
|
// Close the drawer.
|
|
906
|
-
return Promise.resolve(
|
|
899
|
+
return Promise.resolve(entry.close(false)).then(function () {});
|
|
907
900
|
}
|
|
908
901
|
}();
|
|
909
902
|
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|
|
@@ -1667,28 +1660,28 @@
|
|
|
1667
1660
|
if (index >= 0) {
|
|
1668
1661
|
var _temp2 = function _temp2() {
|
|
1669
1662
|
// Return teleported modal if a reference has been set.
|
|
1670
|
-
if (
|
|
1671
|
-
|
|
1663
|
+
if (entry.getSetting("teleport")) {
|
|
1664
|
+
entry.teleportReturn();
|
|
1672
1665
|
}
|
|
1673
1666
|
|
|
1674
1667
|
// Delete properties from collection entry.
|
|
1675
|
-
Object.getOwnPropertyNames(
|
|
1676
|
-
delete
|
|
1668
|
+
Object.getOwnPropertyNames(entry).forEach(function (prop) {
|
|
1669
|
+
delete entry[prop];
|
|
1677
1670
|
});
|
|
1678
1671
|
|
|
1679
1672
|
// Remove entry from collection.
|
|
1680
1673
|
_this.collection.splice(index, 1);
|
|
1681
1674
|
};
|
|
1682
1675
|
// Get the collection entry.
|
|
1683
|
-
var
|
|
1676
|
+
var entry = _this.collection[index];
|
|
1684
1677
|
|
|
1685
1678
|
// If entry is in the opened state, close it.
|
|
1686
1679
|
var _temp = function () {
|
|
1687
|
-
if (close &&
|
|
1688
|
-
return Promise.resolve(
|
|
1680
|
+
if (close && entry.state === "opened") {
|
|
1681
|
+
return Promise.resolve(entry.close(false)).then(function () {});
|
|
1689
1682
|
} else {
|
|
1690
1683
|
// Remove modal from stack.
|
|
1691
|
-
_this.stack.remove(
|
|
1684
|
+
_this.stack.remove(entry);
|
|
1692
1685
|
}
|
|
1693
1686
|
}();
|
|
1694
1687
|
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|