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.
- package/build/components/form/control.js +3 -0
- 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/form/control.ts +3 -0
- package/src/components/nav/index.ts +6 -0
- package/src/components/nav/link.ts +3 -0
package/package.json
CHANGED
|
@@ -383,6 +383,7 @@ export class FormControl implements IFormControl {
|
|
|
383
383
|
colSize: (this._props as IFormControlPropsMultiCheckbox).colSize,
|
|
384
384
|
hideLabel: true,
|
|
385
385
|
isDisabled: this._props.isDisabled,
|
|
386
|
+
isInline: (this._props as IFormControlPropsCheckbox).isInline,
|
|
386
387
|
isReadonly: this._props.isReadonly,
|
|
387
388
|
items: (this._props as IFormControlPropsMultiCheckbox).items,
|
|
388
389
|
multi: true,
|
|
@@ -419,6 +420,7 @@ export class FormControl implements IFormControl {
|
|
|
419
420
|
colSize: (this._props as IFormControlPropsCheckbox).colSize,
|
|
420
421
|
hideLabel: true,
|
|
421
422
|
isDisabled: this._props.isDisabled,
|
|
423
|
+
isInline: (this._props as IFormControlPropsCheckbox).isInline,
|
|
422
424
|
isReadonly: this._props.isReadonly,
|
|
423
425
|
items: (this._props as IFormControlPropsCheckbox).items,
|
|
424
426
|
onChange: (this._props as IFormControlPropsCheckbox).onChange,
|
|
@@ -473,6 +475,7 @@ export class FormControl implements IFormControl {
|
|
|
473
475
|
colSize: (this._props as IFormControlPropsCheckbox).colSize,
|
|
474
476
|
hideLabel: true,
|
|
475
477
|
isDisabled: this._props.isDisabled,
|
|
478
|
+
isInline: (this._props as IFormControlPropsCheckbox).isInline,
|
|
476
479
|
isReadonly: this._props.isReadonly,
|
|
477
480
|
items: (this._props as IFormControlPropsCheckbox).items,
|
|
478
481
|
onChange: (this._props as IFormControlPropsCheckbox).onChange,
|
|
@@ -55,6 +55,12 @@ class _Nav extends Base<INavProps> implements INav {
|
|
|
55
55
|
let prevTab: INavLink = null;
|
|
56
56
|
let newTab: INavLink = link;
|
|
57
57
|
|
|
58
|
+
// See if this link is disabled
|
|
59
|
+
if (link.isDisabled) {
|
|
60
|
+
// Do nothing
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
|
|
58
64
|
// Parse the links
|
|
59
65
|
for (let i = 0; i < this._links.length; i++) {
|
|
60
66
|
let link = this._links[i];
|
|
@@ -102,6 +102,9 @@ export class NavLink extends Base<INavLinkProps> implements INavLink {
|
|
|
102
102
|
// Returns true if the link is active
|
|
103
103
|
get isActive(): boolean { return this._elLink.classList.contains("active"); }
|
|
104
104
|
|
|
105
|
+
// Returns true if the link is disabled
|
|
106
|
+
get isDisabled(): boolean { return this._elLink.classList.contains("disabled"); }
|
|
107
|
+
|
|
105
108
|
// Gets the tab name
|
|
106
109
|
get tabName(): string { return this._elLink.innerHTML.trim(); }
|
|
107
110
|
set tabName(value: string) { this._elLink.innerHTML = (value || "").trim(); }
|