@energycap/components 0.45.2-multi-select-component.20260305-0759 → 0.45.2-multi-select-component.20260305-0828
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
|
@@ -6113,6 +6113,10 @@ declare class MultiselectComponent extends FormControlBase implements OnInit, On
|
|
|
6113
6113
|
* Map of MenuItem to its corresponding checkbox FormControl
|
|
6114
6114
|
*/
|
|
6115
6115
|
checkboxFormControls: Map<MenuItem, UntypedFormControl>;
|
|
6116
|
+
/**
|
|
6117
|
+
* Whether the maximum number of selections has been reached
|
|
6118
|
+
*/
|
|
6119
|
+
get maxSelectionsReached(): boolean;
|
|
6116
6120
|
/**
|
|
6117
6121
|
* Whether all currently visible selectable options are selected
|
|
6118
6122
|
*/
|
|
@@ -6276,6 +6280,13 @@ declare class MultiselectComponent extends FormControlBase implements OnInit, On
|
|
|
6276
6280
|
* valueChanges so that user interactions with checkboxes drive selection state.
|
|
6277
6281
|
*/
|
|
6278
6282
|
private buildCheckboxFormControls;
|
|
6283
|
+
/**
|
|
6284
|
+
* Enable or disable individual checkbox FormControls based on whether the max selections
|
|
6285
|
+
* limit has been reached. When the limit is reached, unselected items are disabled to
|
|
6286
|
+
* indicate they cannot be selected. The select all checkbox is always left enabled since
|
|
6287
|
+
* it can be used to deselect items.
|
|
6288
|
+
*/
|
|
6289
|
+
private updateMaxSelectionsDisabledState;
|
|
6279
6290
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiselectComponent, never>;
|
|
6280
6291
|
static ɵcmp: i0.ɵɵComponentDeclaration<MultiselectComponent, "ec-multiselect", never, { "options": { "alias": "options"; "required": false; }; "menuPosition": { "alias": "menuPosition"; "required": false; }; "popupFixed": { "alias": "popupFixed"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "tagType": { "alias": "tagType"; "required": false; }; "hideNoMatches": { "alias": "hideNoMatches"; "required": false; }; "noMatchesText": { "alias": "noMatchesText"; "required": false; }; "truncateItems": { "alias": "truncateItems"; "required": false; }; "allowCustom": { "alias": "allowCustom"; "required": false; }; "maxSelections": { "alias": "maxSelections"; "required": false; }; }, { "search": "search"; "selectionChanged": "selectionChanged"; }, never, never, false, never>;
|
|
6281
6292
|
}
|