@energycap/components 0.39.25-ECAP-26539-Item-Picker-Select-All.20240916-0943 → 0.39.25-ECAP-26539-Item-Picker-Select-All.20240916-1615
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/esm2020/lib/controls/item-picker/item-picker.component.mjs +32 -36
- package/fesm2015/energycap-components.mjs +31 -35
- package/fesm2015/energycap-components.mjs.map +1 -1
- package/fesm2020/energycap-components.mjs +31 -35
- package/fesm2020/energycap-components.mjs.map +1 -1
- package/lib/controls/item-picker/item-picker.component.d.ts +8 -3
- package/package.json +1 -1
@@ -68,11 +68,11 @@ export declare class ItemPickerComponent<T> implements OnInit, OnChanges, OnDest
|
|
68
68
|
* interpolation will be used.
|
69
69
|
*/
|
70
70
|
noSelectedItemsMessage?: string;
|
71
|
-
/** When true the button to select all items will be visible in the available items header when
|
71
|
+
/** Used to enable select all items across pages. When true the button to select all items will be visible in the available items header when
|
72
72
|
* the header checkbox is checked and there are multiple pages of results
|
73
73
|
*/
|
74
74
|
enableSelectAllItems: boolean;
|
75
|
-
/**
|
75
|
+
/** Used to display a message in the selected items table when the select all items button is clicked */
|
76
76
|
selectAllItemsMessage: string;
|
77
77
|
/** List of available items to pick from */
|
78
78
|
availableItems: PickerItem[];
|
@@ -107,7 +107,6 @@ export declare class ItemPickerComponent<T> implements OnInit, OnChanges, OnDest
|
|
107
107
|
internalizedSelectedItemTemplate: TemplateRef<any>;
|
108
108
|
/** Default templates used if a custom template is not provided */
|
109
109
|
private defaultAvailableHeaderTemplate;
|
110
|
-
private defaultAvailableSelectAllHeaderTemplate;
|
111
110
|
private defaultAvailableItemTemplate;
|
112
111
|
private defaultSelectedItemTemplate;
|
113
112
|
/** Used to shut down our subscriptions when the component is destroyed */
|
@@ -137,6 +136,12 @@ export declare class ItemPickerComponent<T> implements OnInit, OnChanges, OnDest
|
|
137
136
|
* Click handler for the select all items button
|
138
137
|
*/
|
139
138
|
selectAllItems(): void;
|
139
|
+
/**
|
140
|
+
* Removes all items from the selected items map. This was split from the onClearSelectionClick function to allow
|
141
|
+
* selectAllItems to call this function but keep the row checkbox values in place. This was needed because when you are
|
142
|
+
* selecting all items across all pages we want the current page of items to remain checked.
|
143
|
+
*
|
144
|
+
*/
|
140
145
|
private clearSelectedItemsMap;
|
141
146
|
/**
|
142
147
|
* Watch for changes to the row checkboxes form array and update the selected items
|