gd-bs 6.6.29 → 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/index.html
CHANGED
|
@@ -315,6 +315,7 @@
|
|
|
315
315
|
value: {
|
|
316
316
|
ReasonNotTestedExplanation: "0",
|
|
317
317
|
ReasonNotTestedExplanationRadio: "Primary",
|
|
318
|
+
ReasonNotTestedExplanationCheckbox: "Primary",
|
|
318
319
|
CBExample: true,
|
|
319
320
|
CBInlineExample: true,
|
|
320
321
|
FName: "Datta",
|
|
@@ -401,7 +402,8 @@
|
|
|
401
402
|
name: "CBExample",
|
|
402
403
|
title: "This is a checkbox",
|
|
403
404
|
items: [{
|
|
404
|
-
label: "Checkbox Example w/ no label"
|
|
405
|
+
label: "Checkbox Example w/ no label",
|
|
406
|
+
isSelected: true
|
|
405
407
|
}],
|
|
406
408
|
type: GD.Components.FormControlTypes.Checkbox,
|
|
407
409
|
description: "This is a read-only checkbox",
|
package/package.json
CHANGED
|
@@ -72,8 +72,20 @@ class _CheckboxGroup extends Base<ICheckboxGroupProps> implements ICheckboxGroup
|
|
|
72
72
|
// Render the checkboxes
|
|
73
73
|
this.renderItems();
|
|
74
74
|
|
|
75
|
-
//
|
|
76
|
-
|
|
75
|
+
// Parse the items
|
|
76
|
+
let valueSet: boolean = false;
|
|
77
|
+
let items = this.props.items || [];
|
|
78
|
+
for (let i = 0; i < items.length; i++) {
|
|
79
|
+
// See if the item is using the isSelected property
|
|
80
|
+
if (typeof (items[i].isSelected) === "boolean") {
|
|
81
|
+
// Set the flag
|
|
82
|
+
valueSet = true;
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Set the value if we need to
|
|
88
|
+
valueSet ? null : this.setValue(this.props.value);
|
|
77
89
|
}
|
|
78
90
|
|
|
79
91
|
// Configure the events
|
package/src/styles/_custom.scss
CHANGED
|
@@ -297,6 +297,10 @@
|
|
|
297
297
|
background-color: var(--sp-theme-primary, #0078d4);
|
|
298
298
|
border-color: var(--sp-theme-primary, #0078d4);
|
|
299
299
|
}
|
|
300
|
+
/* Fix for readonly */
|
|
301
|
+
.form-check > .form-check-input[readonly] {
|
|
302
|
+
pointer-events: none;
|
|
303
|
+
}
|
|
300
304
|
.form-control:hover, .form-select:hover {
|
|
301
305
|
border-color: var(--sp-theme-tertiary, #71afe5);
|
|
302
306
|
}
|