@recursyve/nice-data-filter-kit 13.0.15 → 13.0.16

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.
@@ -3,7 +3,7 @@ import * as i5 from '@recursyve/nice-ui-kit.v2';
3
3
  import { isNullOrUndefined, ObjectUtils, FileUtils, ArrayUtils, ExportBottomSheetComponent, NiceLoadingSpinnerModule, NiceTypeaheadModule, NiceExportBottomSheetModule } from '@recursyve/nice-ui-kit.v2';
4
4
  import * as i0 from '@angular/core';
5
5
  import { Directive, Input, NgModule, Injectable, InjectionToken, Optional, Inject, Component, forwardRef, ViewEncapsulation, Pipe, EventEmitter, ChangeDetectionStrategy, Output, HostListener, TemplateRef, ContentChild, ContentChildren } from '@angular/core';
6
- import { Store, StoreConfig, Query, arrayUpsert, arrayRemove } from '@datorama/akita';
6
+ import { Store, StoreConfig, Query, arrayAdd, arrayUpsert, arrayRemove } from '@datorama/akita';
7
7
  import { combineLatest, Subject, firstValueFrom, of } from 'rxjs';
8
8
  import { map, takeUntil, debounceTime, switchMap, distinctUntilChanged } from 'rxjs/operators';
9
9
  import { __decorate, __metadata } from 'tslib';
@@ -1102,6 +1102,18 @@ class NiceBaseListService {
1102
1102
  showQueryBuilder: !state.showQueryBuilder
1103
1103
  }));
1104
1104
  }
1105
+ addListValue(value, opts) {
1106
+ const { filterResult } = this.store.getValue();
1107
+ if (!filterResult) {
1108
+ return;
1109
+ }
1110
+ this.store.update({
1111
+ filterResult: {
1112
+ ...filterResult,
1113
+ values: arrayAdd(value, opts)
1114
+ }
1115
+ });
1116
+ }
1105
1117
  updateListValue(value, key = "id") {
1106
1118
  const { filterResult } = this.store.getValue();
1107
1119
  if (!filterResult) {