@coreui/angular-pro 5.3.5 → 5.3.6

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.
@@ -14062,10 +14062,11 @@ class RangeSliderComponent {
14062
14062
  }
14063
14063
  handleInputsContainerMouseDown($event) {
14064
14064
  $event.preventDefault();
14065
- if (!this.trackRef() ||
14066
- $event.button !== 0 ||
14067
- this.disabledState() ||
14068
- !['range-slider-input', 'range-slider-track'].some((className) => $event.target.classList.contains(className))) {
14065
+ if (!this.trackRef() || $event.button !== 0 || this.disabledState()) {
14066
+ return;
14067
+ }
14068
+ const validTarget = [...this.inputRefs(), this.trackRef()];
14069
+ if (!validTarget.find((target) => target?.nativeElement === $event.target)) {
14069
14070
  return;
14070
14071
  }
14071
14072
  const clickValue = calculateClickValue($event, this.trackRef()?.nativeElement, this.min(), this.max(), this.step(), this.vertical(), this.isRtl);
@@ -15443,8 +15444,6 @@ class FilterInputDirective {
15443
15444
  this.valueChange = new EventEmitter();
15444
15445
  }
15445
15446
  #value;
15446
- #valueSubscription;
15447
- #inputSubscription;
15448
15447
  set value(value) {
15449
15448
  this.value$.next(value);
15450
15449
  }
@@ -15452,9 +15451,7 @@ class FilterInputDirective {
15452
15451
  this.setSubscription();
15453
15452
  }
15454
15453
  setSubscription() {
15455
- this.#valueSubscription = this.value$
15456
- .pipe(distinctUntilChanged$1(), takeUntilDestroyed(this.destroyRef))
15457
- .subscribe(value => {
15454
+ this.value$.pipe(distinctUntilChanged$1(), takeUntilDestroyed(this.destroyRef)).subscribe((value) => {
15458
15455
  if (this.#value !== value) {
15459
15456
  this.#value = value;
15460
15457
  this.emitObject = { ...this.emitObject, value: value, type: this.onEvent };
@@ -15462,8 +15459,8 @@ class FilterInputDirective {
15462
15459
  }
15463
15460
  });
15464
15461
  const dueTime = this.onEvent === 'change' ? 0 : this.delay;
15465
- this.#inputSubscription = fromEvent(this.elementRef.nativeElement, this.onEvent)
15466
- .pipe(map$1(event => {
15462
+ fromEvent(this.elementRef.nativeElement, this.onEvent)
15463
+ .pipe(map$1((event) => {
15467
15464
  return event.target.value;
15468
15465
  }), debounceTime$1(dueTime), takeUntilDestroyed(this.destroyRef))
15469
15466
  .subscribe((value) => {
@@ -16250,9 +16247,6 @@ class SmartTableComponent {
16250
16247
  this.itemsFilteredDiffer = this.iterableDiffers.find(this._columnFiltered).create();
16251
16248
  this.columFilterValueDiffer = this.keyValueDiffers.find(this.columnFilterValue).create();
16252
16249
  this.sorterValueDiffer = this.keyValueDiffers.find(this.sorterValue).create();
16253
- setTimeout(() => {
16254
- this.selectedAllSubject.next(this.selectedAll);
16255
- }, 0);
16256
16250
  }
16257
16251
  set activePage(value) {
16258
16252
  this._activePage = value || 1;
@@ -16365,10 +16359,13 @@ class SmartTableComponent {
16365
16359
  });
16366
16360
  this.columnFilterTemplates = { ...this.columnFilterTemplates };
16367
16361
  this.columnLabelTemplates = { ...this.columnLabelTemplates };
16362
+ setTimeout(() => {
16363
+ this.selectedAllSubject.next(this.selectedAll);
16364
+ }, 0);
16368
16365
  }
16369
16366
  get selectedAll() {
16370
16367
  const selected = this.items.some((item) => item._selected === true);
16371
- const unselected = this.items.some((item) => item._selected === false);
16368
+ const unselected = this.items.some((item) => item._selected !== true);
16372
16369
  return selected && unselected ? 'indeterminate' : selected;
16373
16370
  }
16374
16371
  get tableFilterState() {
@@ -16561,7 +16558,11 @@ class SmartTableComponent {
16561
16558
  }, 0);
16562
16559
  }
16563
16560
  handleSelectAllChange($event) {
16561
+ const tableFiltered = [...this.tableFiltered];
16564
16562
  this._items = this.items.map((item) => {
16563
+ if (!tableFiltered.includes(item)) {
16564
+ return { ...item };
16565
+ }
16565
16566
  return { ...item, _selected: item._selectable !== false ? $event : !!item._selected };
16566
16567
  });
16567
16568
  this.selectedAllSubject.next($event);