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 CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2024 Sebastian Nitu
3
+ Copyright (c) 2026 Sebastian Nitu
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -658,15 +658,8 @@ function setOverflowHidden(state, selector) {
658
658
  }
659
659
  function setInert(state, selector) {
660
660
  if (selector) {
661
- var els = document.querySelectorAll(selector);
662
- els.forEach(function (el) {
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(_entry.id);
874
+ _this.store.set(entry.id);
882
875
 
883
876
  // Unmount the MatchMedia functionality.
884
- _entry.unmountBreakpoint();
877
+ entry.unmountBreakpoint();
885
878
 
886
879
  // Delete properties from collection entry.
887
- Object.getOwnPropertyNames(_entry).forEach(function (prop) {
888
- delete _entry[prop];
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 _entry = _this.collection[index];
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 && _entry.state === "opened") {
892
+ if (close && entry.state === "opened") {
900
893
  // Close the drawer.
901
- return Promise.resolve(_entry.close(false)).then(function () {});
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 (_entry.getSetting("teleport")) {
1666
- _entry.teleportReturn();
1658
+ if (entry.getSetting("teleport")) {
1659
+ entry.teleportReturn();
1667
1660
  }
1668
1661
 
1669
1662
  // Delete properties from collection entry.
1670
- Object.getOwnPropertyNames(_entry).forEach(function (prop) {
1671
- delete _entry[prop];
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 _entry = _this.collection[index];
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 && _entry.state === "opened") {
1683
- return Promise.resolve(_entry.close(false)).then(function () {});
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(_entry);
1679
+ _this.stack.remove(entry);
1687
1680
  }
1688
1681
  }();
1689
1682
  return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);