@libs-ui/components-list 0.2.138 → 0.2.140
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AsyncPipe, NgComponentOutlet, NgTemplateOutlet, NgClass } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { input, inject, ElementRef, Directive, Pipe, signal, output, effect, untracked,
|
|
3
|
+
import { input, inject, ElementRef, Directive, Pipe, signal, output, effect, untracked, Component, ChangeDetectionStrategy, model, viewChild, isSignal } from '@angular/core';
|
|
4
4
|
import { LibsUiComponentsButtonsButtonComponent } from '@libs-ui/components-buttons-button';
|
|
5
5
|
import { LibsUiComponentsInputsSearchComponent } from '@libs-ui/components-inputs-search';
|
|
6
6
|
import { LibsUiComponentsLabelComponent } from '@libs-ui/components-label';
|
|
@@ -555,7 +555,7 @@ class LibsUiComponentsListCheckboxComponent extends LibsUiComponentsListTemplate
|
|
|
555
555
|
this.outLoading.emit(this.loading());
|
|
556
556
|
if (isSelectAll) {
|
|
557
557
|
if (ids.length) {
|
|
558
|
-
ids.forEach(id => !keysDisable.some(
|
|
558
|
+
ids.forEach(id => !keysDisable.some(keyDisable => keyDisable === id) && keys.add(id));
|
|
559
559
|
}
|
|
560
560
|
if (!ids.length) {
|
|
561
561
|
this.items().forEach(item => {
|
|
@@ -571,7 +571,7 @@ class LibsUiComponentsListCheckboxComponent extends LibsUiComponentsListTemplate
|
|
|
571
571
|
}
|
|
572
572
|
const keyUnSelected = new Set();
|
|
573
573
|
ids.forEach(id => {
|
|
574
|
-
if (!keysDisable.some(
|
|
574
|
+
if (!keysDisable.some(keyDisable => keyDisable === id)) {
|
|
575
575
|
keys.delete(id);
|
|
576
576
|
keyUnSelected.add(id);
|
|
577
577
|
}
|
|
@@ -579,7 +579,7 @@ class LibsUiComponentsListCheckboxComponent extends LibsUiComponentsListTemplate
|
|
|
579
579
|
if (!ids.length) {
|
|
580
580
|
this.items().forEach(item => {
|
|
581
581
|
const key = item()[this.fieldKey()];
|
|
582
|
-
if (!keysDisable.some(
|
|
582
|
+
if (!keysDisable.some(keyDisable => keyDisable === key)) {
|
|
583
583
|
keys.delete(key);
|
|
584
584
|
keyUnSelected.add(key);
|
|
585
585
|
}
|
|
@@ -651,7 +651,7 @@ class LibsUiComponentsListCheckboxComponent extends LibsUiComponentsListTemplate
|
|
|
651
651
|
if (!this.multiKeySelected()) {
|
|
652
652
|
this.multiKeySelected.set([]);
|
|
653
653
|
}
|
|
654
|
-
if (!ignoreDisable && (this.disable() || this.keysDisableItem()?.some(
|
|
654
|
+
if (!ignoreDisable && (this.disable() || this.keysDisableItem()?.some(keyDisable => keyDisable === item[this.fieldKey()]))) {
|
|
655
655
|
return;
|
|
656
656
|
}
|
|
657
657
|
if (event instanceof Event) {
|
|
@@ -2455,9 +2455,11 @@ class LibsUiComponentsListComponent {
|
|
|
2455
2455
|
if (!isEmpty(keySelected)) {
|
|
2456
2456
|
this.componentRef.setInput('keySelected', keySelected);
|
|
2457
2457
|
}
|
|
2458
|
-
if (
|
|
2458
|
+
if (!isEmpty(multiKeySelected)) {
|
|
2459
2459
|
this.componentRef.setInput('multiKeySelected', multiKeySelected);
|
|
2460
|
-
this.
|
|
2460
|
+
if (this.configData()?.type === 'group') {
|
|
2461
|
+
this.onUpdateMultiKeySelectedGroup.next();
|
|
2462
|
+
}
|
|
2461
2463
|
}
|
|
2462
2464
|
});
|
|
2463
2465
|
});
|