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
|
@@ -518,8 +518,17 @@ var _Dropdown = /** @class */ (function (_super) {
|
|
|
518
518
|
// Ensure the selected values match the index
|
|
519
519
|
var idx = menu.selectedIndex;
|
|
520
520
|
if (this._items[idx] && this._items[idx].isSelected == false) {
|
|
521
|
-
//
|
|
522
|
-
this._items
|
|
521
|
+
// Parse the items and ensure none are toggled
|
|
522
|
+
for (var i = 0; i < this._items.length; i++) {
|
|
523
|
+
// Ensure it's not selected
|
|
524
|
+
if (this._items[i].isSelected) {
|
|
525
|
+
this._items[i].toggle();
|
|
526
|
+
}
|
|
527
|
+
// Else, toggle it if it's the selected item
|
|
528
|
+
else if (idx == i) {
|
|
529
|
+
this._items[i].toggle();
|
|
530
|
+
}
|
|
531
|
+
}
|
|
523
532
|
}
|
|
524
533
|
}
|
|
525
534
|
}
|
|
@@ -688,6 +688,11 @@ var FormControl = /** @class */ (function () {
|
|
|
688
688
|
// Set the flag
|
|
689
689
|
validation.isValid = value.length > 0;
|
|
690
690
|
}
|
|
691
|
+
// Else, see if this is a single checkbox
|
|
692
|
+
else if (this._cb && typeof (value) === "boolean") {
|
|
693
|
+
// Set the flag
|
|
694
|
+
validation.isValid = value;
|
|
695
|
+
}
|
|
691
696
|
}
|
|
692
697
|
// See if an event exists
|
|
693
698
|
if (this._props.onValidate) {
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.ListGroup = exports.ListGroupClassNames = exports.ListGroupItemTypes = void 0;
|
|
19
19
|
var base_1 = require("../base");
|
|
20
20
|
var classNames_1 = require("../classNames");
|
|
21
|
+
var common_1 = require("../common");
|
|
21
22
|
var item_1 = require("./item");
|
|
22
23
|
var templates_1 = require("./templates");
|
|
23
24
|
/**
|
|
@@ -118,6 +119,8 @@ var _ListGroup = /** @class */ (function (_super) {
|
|
|
118
119
|
if (tabs) {
|
|
119
120
|
// Configure the events
|
|
120
121
|
this.configureEvents(item);
|
|
122
|
+
// Set the class names
|
|
123
|
+
(0, common_1.setClassNames)(item.elTab, this.props.tabClassName);
|
|
121
124
|
// Add the tab content
|
|
122
125
|
tabs.appendChild(item.elTab);
|
|
123
126
|
// See if the fade option is enabled
|