@pepperi-addons/ngx-lib 0.4.2-beta.312 → 0.4.2-beta.313

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.
@@ -2250,15 +2250,28 @@ class PepListComponent {
2250
2250
  }
2251
2251
  else {
2252
2252
  // For delete - can be the unselected with select_all functionality.
2253
- if (this.isAllSelected && (selectableItemsCount === 0 || this.unSelectedItems.size >= selectableItemsCount)) {
2254
- currentList = [];
2255
- selectionType = 1;
2253
+ if (this.isAllSelected) {
2254
+ if (selectableItemsCount === 1 && this.unSelectedItems.size === 0) {
2255
+ const selectedItem = this.items.find((item) => item && item.IsSelectableForActions);
2256
+ if (selectedItem) {
2257
+ currentList = [
2258
+ this.getUniqItemId(selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.UID.toString(), selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.Type.toString())
2259
+ ];
2260
+ }
2261
+ selectionType = 1;
2262
+ }
2263
+ else if (selectableItemsCount === 0 || this.unSelectedItems.size >= selectableItemsCount) {
2264
+ currentList = [];
2265
+ selectionType = 1;
2266
+ }
2267
+ else {
2268
+ currentList = Array.from(this.unSelectedItems.values());
2269
+ selectionType = 0;
2270
+ }
2256
2271
  }
2257
2272
  else {
2258
- currentList = Array.from(this.isAllSelected
2259
- ? this.unSelectedItems.values()
2260
- : this.selectedItems.values());
2261
- selectionType = this.isAllSelected ? 0 : 1;
2273
+ currentList = Array.from(this.selectedItems.values());
2274
+ selectionType = 1;
2262
2275
  }
2263
2276
  }
2264
2277
  currentList.forEach((item) => {