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/build/bs.js +1 -0
- package/build/components/dropdown/index.js +3 -3
- package/build/icons/svgs/index.d.ts +4100 -0
- package/dist/gd-bs-icons.js +2 -0
- package/dist/gd-bs-icons.js.LICENSE.txt +9771 -0
- package/dist/gd-bs-icons.min.js +1 -0
- package/dist/gd-bs.d.ts +3263 -0
- package/dist/gd-bs.js +2 -0
- package/dist/gd-bs.js.LICENSE.txt +1403 -0
- package/dist/gd-bs.min.js +1 -0
- package/package.json +1 -1
- package/src/components/dropdown/index.ts +3 -3
- package/src/components/form/controlTypes.d.ts +2 -2
package/package.json
CHANGED
|
@@ -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 ? (
|
|
508
|
+
onChange: this.props.onChange ? (selectedItems, allItems, ev) => {
|
|
509
509
|
// Pass the current values
|
|
510
|
-
this.props.onChange(
|
|
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?: (
|
|
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?: (
|
|
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;
|