gd-bs 6.6.78 → 6.6.80
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/dropdown/index.js +11 -2
- package/build/components/form/control.js +5 -0
- package/build/components/listGroup/index.js +3 -0
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +1 -0
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/dropdown/index.ts +7 -2
- package/src/components/form/control.ts +5 -0
- package/src/components/listGroup/index.ts +4 -0
- package/src/components/listGroup/types.d.ts +1 -0
package/package.json
CHANGED
|
@@ -535,8 +535,13 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
|
|
|
535
535
|
// Ensure the selected values match the index
|
|
536
536
|
let idx = (menu as HTMLSelectElement).selectedIndex;
|
|
537
537
|
if (this._items[idx] && this._items[idx].isSelected == false) {
|
|
538
|
-
//
|
|
539
|
-
this._items
|
|
538
|
+
// Parse the items and ensure none are toggled
|
|
539
|
+
for (let i = 0; i < this._items.length; i++) {
|
|
540
|
+
// Ensure it's not selected
|
|
541
|
+
if (this._items[i].isSelected) { this._items[i].toggle(); }
|
|
542
|
+
// Else, toggle it if it's the selected item
|
|
543
|
+
else if (idx == i) { this._items[i].toggle(); }
|
|
544
|
+
}
|
|
540
545
|
}
|
|
541
546
|
}
|
|
542
547
|
}
|
|
@@ -693,6 +693,11 @@ export class FormControl implements IFormControl {
|
|
|
693
693
|
// Set the flag
|
|
694
694
|
validation.isValid = value.length > 0;
|
|
695
695
|
}
|
|
696
|
+
// Else, see if this is a single checkbox
|
|
697
|
+
else if (this._cb && typeof (value) === "boolean") {
|
|
698
|
+
// Set the flag
|
|
699
|
+
validation.isValid = value;
|
|
700
|
+
}
|
|
696
701
|
}
|
|
697
702
|
|
|
698
703
|
// See if an event exists
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IListGroup, IListGroupProps } from "./types";
|
|
2
2
|
import { Base } from "../base";
|
|
3
3
|
import { ClassNames } from "../classNames";
|
|
4
|
+
import { setClassNames } from "../common";
|
|
4
5
|
import { ListGroupItem } from "./item";
|
|
5
6
|
import { HTML, HTMLTabs } from "./templates";
|
|
6
7
|
|
|
@@ -113,6 +114,9 @@ class _ListGroup extends Base<IListGroupProps> implements IListGroup {
|
|
|
113
114
|
// Configure the events
|
|
114
115
|
this.configureEvents(item);
|
|
115
116
|
|
|
117
|
+
// Set the class names
|
|
118
|
+
setClassNames(item.elTab, this.props.tabClassName);
|
|
119
|
+
|
|
116
120
|
// Add the tab content
|
|
117
121
|
tabs.appendChild(item.elTab);
|
|
118
122
|
|