gd-bs 6.6.28 → 6.6.30
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/bs.js +1 -1
- package/build/components/checkboxGroup/index.js +13 -2
- 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/index.html +3 -1
- package/package.json +1 -1
- package/src/components/checkboxGroup/index.ts +14 -2
- package/src/styles/_custom.scss +4 -0
- package/src/styles/_dataTables.scss +10 -1
|
@@ -82,8 +82,19 @@ var _CheckboxGroup = /** @class */ (function (_super) {
|
|
|
82
82
|
}
|
|
83
83
|
// Render the checkboxes
|
|
84
84
|
this.renderItems();
|
|
85
|
-
//
|
|
86
|
-
|
|
85
|
+
// Parse the items
|
|
86
|
+
var valueSet = false;
|
|
87
|
+
var items = this.props.items || [];
|
|
88
|
+
for (var i = 0; i < items.length; i++) {
|
|
89
|
+
// See if the item is using the isSelected property
|
|
90
|
+
if (typeof (items[i].isSelected) === "boolean") {
|
|
91
|
+
// Set the flag
|
|
92
|
+
valueSet = true;
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
// Set the value if we need to
|
|
97
|
+
valueSet ? null : this.setValue(this.props.value);
|
|
87
98
|
};
|
|
88
99
|
// Configure the events
|
|
89
100
|
_CheckboxGroup.prototype.configureEvents = function (item) {
|