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.
- package/build/components/nav/index.js +5 -0
- package/build/components/nav/link.js +6 -0
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/nav/index.ts +6 -0
- package/src/components/nav/link.ts +3 -0
|
@@ -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(); },
|