gd-bs 6.6.63 → 6.6.65

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.
@@ -372,6 +372,7 @@ var FormControl = /** @class */ (function () {
372
372
  colSize: this._props.colSize,
373
373
  hideLabel: true,
374
374
  isDisabled: this._props.isDisabled,
375
+ isInline: this._props.isInline,
375
376
  isReadonly: this._props.isReadonly,
376
377
  items: this._props.items,
377
378
  multi: true,
@@ -408,6 +409,7 @@ var FormControl = /** @class */ (function () {
408
409
  colSize: this._props.colSize,
409
410
  hideLabel: true,
410
411
  isDisabled: this._props.isDisabled,
412
+ isInline: this._props.isInline,
411
413
  isReadonly: this._props.isReadonly,
412
414
  items: this._props.items,
413
415
  onChange: this._props.onChange,
@@ -462,6 +464,7 @@ var FormControl = /** @class */ (function () {
462
464
  colSize: this._props.colSize,
463
465
  hideLabel: true,
464
466
  isDisabled: this._props.isDisabled,
467
+ isInline: this._props.isInline,
465
468
  isReadonly: this._props.isReadonly,
466
469
  items: this._props.items,
467
470
  onChange: this._props.onChange,
@@ -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(); },