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/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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.6.28",
3
+ "version": "6.6.30",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -72,8 +72,20 @@ class _CheckboxGroup extends Base<ICheckboxGroupProps> implements ICheckboxGroup
72
72
  // Render the checkboxes
73
73
  this.renderItems();
74
74
 
75
- // Set the value
76
- this.setValue(this.props.value);
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
@@ -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
  }
@@ -37,7 +37,16 @@ table.dataTable.table-striped>tbody>tr:nth-of-type(2n+1)>* {
37
37
  /* DataTables sorting with Bootstrap Icons */
38
38
  table.dataTable thead .dt-column-order,
39
39
  table.dataTable thead .dt-column-order:before,
40
- table.dataTable thead .dt-column-order:after {
40
+ table.dataTable thead .dt-column-order:after,
41
+ table.dataTable thead .dt-orderable-asc,
42
+ table.dataTable thead .dt-orderable-desc,
43
+ table.dataTable thead .dt-orderable-none,
44
+ table.dataTable thead .dt-orderable-asc:before,
45
+ table.dataTable thead .dt-orderable-desc:before,
46
+ table.dataTable thead .dt-orderable-none:before,
47
+ table.dataTable thead .dt-orderable-asc:after,
48
+ table.dataTable thead .dt-orderable-desc:after,
49
+ table.dataTable thead .dt-orderable-none:after {
41
50
  background-image: none;
42
51
  background-position: right;
43
52
  background-repeat: no-repeat;