gd-bs 6.6.78 → 6.6.79

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.6.78",
3
+ "version": "6.6.79",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -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
 
@@ -100,6 +100,7 @@ export interface IListGroupProps<T=Element> extends IBaseProps<IListGroup> {
100
100
  isNumbered?: boolean;
101
101
  isTabs?: boolean;
102
102
  items?: Array<IListGroupItem<T>>;
103
+ tabClassName?: string;
103
104
  }
104
105
 
105
106
  /**