gd-bs 6.6.66 → 6.6.68

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.66",
3
+ "version": "6.6.68",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -505,9 +505,9 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
505
505
  items: this.generateCheckboxItems(),
506
506
  multi: this.props.multi,
507
507
  value: this.generateCheckboxValue(this.props.value),
508
- onChange: this.props.onChange ? (values, ev) => {
508
+ onChange: this.props.onChange ? (selectedItems, allItems, ev) => {
509
509
  // Pass the current values
510
- this.props.onChange(this.getValue(), ev);
510
+ this.props.onChange(selectedItems, ev);
511
511
  } : null
512
512
  });
513
513
  } else {
@@ -574,7 +574,7 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
574
574
  // See if the checkboxes exist
575
575
  if (this._cb) {
576
576
  // Get the values
577
- let items = this._cb.getValue() as ICheckboxGroupItem[];
577
+ let items = (this._cb.getValue().selectedItems) as ICheckboxGroupItem[];
578
578
  items = typeof (items["length"]) === "number" ? items : [items] as any;
579
579
 
580
580
  // Parse the items
@@ -101,7 +101,7 @@ export interface IFormControlPropsCheckbox extends IFormControlProps {
101
101
  hideLabel?: boolean;
102
102
  isInline?: boolean;
103
103
  items?: Array<ICheckboxGroupItem>;
104
- onChange?: (item: ICheckboxGroupItem, ev?: Event) => void;
104
+ onChange?: (selectedItem: ICheckboxGroupItem, allItems?: Array<ICheckboxGroupItem>, ev?: Event) => void;
105
105
  onControlRendering?: (control: IFormControlPropsCheckbox) => void | PromiseLike<IFormControlPropsCheckbox>;
106
106
  onGetValue?: (control: IFormControlPropsCheckbox) => any;
107
107
  onValidate?: (control: IFormControlPropsCheckbox, value: IFormControlValidationResult) => boolean | IFormControlValidationResult;
@@ -153,7 +153,7 @@ export interface IFormControlPropsMultiCheckbox extends IFormControlProps {
153
153
  hideLabel?: boolean;
154
154
  isInline?: boolean;
155
155
  items?: Array<ICheckboxGroupItem>;
156
- onChange?: (item: Array<ICheckboxGroupItem>, ev?: Event) => void;
156
+ onChange?: (selectedItems: Array<ICheckboxGroupItem>, allItems?: Array<ICheckboxGroupItem>, ev?: Event) => void;
157
157
  onControlRendering?: (control: IFormControlPropsCheckbox) => void | PromiseLike<IFormControlPropsCheckbox>;
158
158
  onGetValue?: (control: IFormControlPropsCheckbox) => any;
159
159
  onValidate?: (control: IFormControlPropsCheckbox, value: IFormControlValidationResult) => boolean | IFormControlValidationResult;