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/LICENSE
CHANGED
package/dev/scripts.esm.js
CHANGED
|
@@ -658,15 +658,8 @@ function setOverflowHidden(state, selector) {
|
|
|
658
658
|
}
|
|
659
659
|
function setInert(state, selector) {
|
|
660
660
|
if (selector) {
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
if (state) {
|
|
664
|
-
el.inert = true;
|
|
665
|
-
el.setAttribute("aria-hidden", true);
|
|
666
|
-
} else {
|
|
667
|
-
el.inert = null;
|
|
668
|
-
el.removeAttribute("aria-hidden");
|
|
669
|
-
}
|
|
661
|
+
document.querySelectorAll(selector).forEach(function (el) {
|
|
662
|
+
el.inert = state;
|
|
670
663
|
});
|
|
671
664
|
}
|
|
672
665
|
}
|
|
@@ -878,27 +871,27 @@ var deregister$2 = function deregister(obj, close) {
|
|
|
878
871
|
if (index >= 0) {
|
|
879
872
|
var _temp2 = function _temp2() {
|
|
880
873
|
// Remove entry from local store.
|
|
881
|
-
_this.store.set(
|
|
874
|
+
_this.store.set(entry.id);
|
|
882
875
|
|
|
883
876
|
// Unmount the MatchMedia functionality.
|
|
884
|
-
|
|
877
|
+
entry.unmountBreakpoint();
|
|
885
878
|
|
|
886
879
|
// Delete properties from collection entry.
|
|
887
|
-
Object.getOwnPropertyNames(
|
|
888
|
-
delete
|
|
880
|
+
Object.getOwnPropertyNames(entry).forEach(function (prop) {
|
|
881
|
+
delete entry[prop];
|
|
889
882
|
});
|
|
890
883
|
|
|
891
884
|
// Remove entry from collection.
|
|
892
885
|
_this.collection.splice(index, 1);
|
|
893
886
|
};
|
|
894
887
|
// Get the collection entry.
|
|
895
|
-
var
|
|
888
|
+
var entry = _this.collection[index];
|
|
896
889
|
|
|
897
890
|
// If entry is in the opened state.
|
|
898
891
|
var _temp = function () {
|
|
899
|
-
if (close &&
|
|
892
|
+
if (close && entry.state === "opened") {
|
|
900
893
|
// Close the drawer.
|
|
901
|
-
return Promise.resolve(
|
|
894
|
+
return Promise.resolve(entry.close(false)).then(function () {});
|
|
902
895
|
}
|
|
903
896
|
}();
|
|
904
897
|
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|
|
@@ -1662,28 +1655,28 @@ var deregister$1 = function deregister(obj, close) {
|
|
|
1662
1655
|
if (index >= 0) {
|
|
1663
1656
|
var _temp2 = function _temp2() {
|
|
1664
1657
|
// Return teleported modal if a reference has been set.
|
|
1665
|
-
if (
|
|
1666
|
-
|
|
1658
|
+
if (entry.getSetting("teleport")) {
|
|
1659
|
+
entry.teleportReturn();
|
|
1667
1660
|
}
|
|
1668
1661
|
|
|
1669
1662
|
// Delete properties from collection entry.
|
|
1670
|
-
Object.getOwnPropertyNames(
|
|
1671
|
-
delete
|
|
1663
|
+
Object.getOwnPropertyNames(entry).forEach(function (prop) {
|
|
1664
|
+
delete entry[prop];
|
|
1672
1665
|
});
|
|
1673
1666
|
|
|
1674
1667
|
// Remove entry from collection.
|
|
1675
1668
|
_this.collection.splice(index, 1);
|
|
1676
1669
|
};
|
|
1677
1670
|
// Get the collection entry.
|
|
1678
|
-
var
|
|
1671
|
+
var entry = _this.collection[index];
|
|
1679
1672
|
|
|
1680
1673
|
// If entry is in the opened state, close it.
|
|
1681
1674
|
var _temp = function () {
|
|
1682
|
-
if (close &&
|
|
1683
|
-
return Promise.resolve(
|
|
1675
|
+
if (close && entry.state === "opened") {
|
|
1676
|
+
return Promise.resolve(entry.close(false)).then(function () {});
|
|
1684
1677
|
} else {
|
|
1685
1678
|
// Remove modal from stack.
|
|
1686
|
-
_this.stack.remove(
|
|
1679
|
+
_this.stack.remove(entry);
|
|
1687
1680
|
}
|
|
1688
1681
|
}();
|
|
1689
1682
|
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|