gd-bs 6.6.68 → 6.6.70
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/components/form/control.js +5 -0
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +7 -2
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/checkboxGroup/types.d.ts +7 -2
- package/src/components/form/control.ts +7 -2
package/dist/gd-bs.d.ts
CHANGED
|
@@ -856,7 +856,7 @@ declare module 'gd-bs/components/checkboxGroup/types' {
|
|
|
856
856
|
el: HTMLElement;
|
|
857
857
|
|
|
858
858
|
/** Gets the values. */
|
|
859
|
-
getValue: () =>
|
|
859
|
+
getValue: () => ICheckboxGroupValue;
|
|
860
860
|
|
|
861
861
|
/** Hides the checkbox group. */
|
|
862
862
|
hide: () => void;
|
|
@@ -898,13 +898,18 @@ declare module 'gd-bs/components/checkboxGroup/types' {
|
|
|
898
898
|
items?: Array<ICheckboxGroupItem>;
|
|
899
899
|
multi?: boolean;
|
|
900
900
|
onRender?: (el?: HTMLElement, item?: ICheckboxGroupItem) => void;
|
|
901
|
-
onChange?: (selectedItems: ICheckboxGroupItem |
|
|
901
|
+
onChange?: (selectedItems: ICheckboxGroupItem | ICheckboxGroupItem[], allItems?: ICheckboxGroupItem[], ev?: Event) => void;
|
|
902
902
|
required?: boolean;
|
|
903
903
|
title?: string;
|
|
904
904
|
type?: number;
|
|
905
905
|
value?: any;
|
|
906
906
|
}
|
|
907
907
|
|
|
908
|
+
export interface ICheckboxGroupValue {
|
|
909
|
+
selectedItems: ICheckboxGroupItem | Array<ICheckboxGroupItem>;
|
|
910
|
+
allItems: Array<ICheckboxGroupItem>;
|
|
911
|
+
}
|
|
912
|
+
|
|
908
913
|
/**
|
|
909
914
|
* Checkbox Group Types
|
|
910
915
|
*/
|