@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.
- package/esm2020/list/list.component.mjs +21 -8
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs +20 -7
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-list.mjs +20 -7
- package/fesm2020/pepperi-addons-ngx-lib-list.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2239,15 +2239,28 @@ class PepListComponent {
|
|
|
2239
2239
|
}
|
|
2240
2240
|
else {
|
|
2241
2241
|
// For delete - can be the unselected with select_all functionality.
|
|
2242
|
-
if (this.isAllSelected
|
|
2243
|
-
|
|
2244
|
-
|
|
2242
|
+
if (this.isAllSelected) {
|
|
2243
|
+
if (selectableItemsCount === 1 && this.unSelectedItems.size === 0) {
|
|
2244
|
+
const selectedItem = this.items.find((item) => item && item.IsSelectableForActions);
|
|
2245
|
+
if (selectedItem) {
|
|
2246
|
+
currentList = [
|
|
2247
|
+
this.getUniqItemId(selectedItem?.UID.toString(), selectedItem?.Type.toString())
|
|
2248
|
+
];
|
|
2249
|
+
}
|
|
2250
|
+
selectionType = 1;
|
|
2251
|
+
}
|
|
2252
|
+
else if (selectableItemsCount === 0 || this.unSelectedItems.size >= selectableItemsCount) {
|
|
2253
|
+
currentList = [];
|
|
2254
|
+
selectionType = 1;
|
|
2255
|
+
}
|
|
2256
|
+
else {
|
|
2257
|
+
currentList = Array.from(this.unSelectedItems.values());
|
|
2258
|
+
selectionType = 0;
|
|
2259
|
+
}
|
|
2245
2260
|
}
|
|
2246
2261
|
else {
|
|
2247
|
-
currentList = Array.from(this.
|
|
2248
|
-
|
|
2249
|
-
: this.selectedItems.values());
|
|
2250
|
-
selectionType = this.isAllSelected ? 0 : 1;
|
|
2262
|
+
currentList = Array.from(this.selectedItems.values());
|
|
2263
|
+
selectionType = 1;
|
|
2251
2264
|
}
|
|
2252
2265
|
}
|
|
2253
2266
|
currentList.forEach((item) => {
|