gd-bs 6.6.63 → 6.6.64

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.
@@ -66,6 +66,11 @@ var _Nav = /** @class */ (function (_super) {
66
66
  link.el.addEventListener("click", function () {
67
67
  var prevTab = null;
68
68
  var newTab = link;
69
+ // See if this link is disabled
70
+ if (link.isDisabled) {
71
+ // Do nothing
72
+ return;
73
+ }
69
74
  // Parse the links
70
75
  for (var i = 0; i < _this._links.length; i++) {
71
76
  var link_2 = _this._links[i];
@@ -116,6 +116,12 @@ var NavLink = /** @class */ (function (_super) {
116
116
  enumerable: false,
117
117
  configurable: true
118
118
  });
119
+ Object.defineProperty(NavLink.prototype, "isDisabled", {
120
+ // Returns true if the link is disabled
121
+ get: function () { return this._elLink.classList.contains("disabled"); },
122
+ enumerable: false,
123
+ configurable: true
124
+ });
119
125
  Object.defineProperty(NavLink.prototype, "tabName", {
120
126
  // Gets the tab name
121
127
  get: function () { return this._elLink.innerHTML.trim(); },