@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.
@@ -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
- /** Passed in message to display in the selected items table when the select all items button is clicked */
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.39.25-ECAP-26539-Item-Picker-Select-All.20240916-0943",
3
+ "version": "0.39.25-ECAP-26539-Item-Picker-Select-All.20240916-1615",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },