@saydar/table-builder 1.0.8 → 1.0.9-beta.0

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.
@@ -3474,17 +3474,6 @@ class TableFilterStringContainsDirective extends TableFilterDirective {
3474
3474
  super(model, wrapper);
3475
3475
  this.filterType = FilterType.StringContains;
3476
3476
  this.fieldType = FieldType.String;
3477
- this.effect(() => {
3478
- return model.valueChanges.pipe(tap$1(val => {
3479
- if (typeof val === 'string' && val.includes(',')) {
3480
- this.filterValue = val.split(',').map((s) => s.trim()).filter((s) => s);
3481
- }
3482
- else {
3483
- this.filterValue = val;
3484
- }
3485
- this.update();
3486
- }));
3487
- });
3488
3477
  }
3489
3478
  reset() {
3490
3479
  if (this.model) {
@@ -3493,6 +3482,9 @@ class TableFilterStringContainsDirective extends TableFilterDirective {
3493
3482
  super.reset();
3494
3483
  }
3495
3484
  setFilter(filter) {
3485
+ if (typeof filter.filterValue === 'string' && filter.filterValue.includes(',')) {
3486
+ filter.filterValue = filter.filterValue.split(',').map((s) => s.trim()).filter((s) => s);
3487
+ }
3496
3488
  filter.active = filter.filterValue && this._userActive;
3497
3489
  super.setFilter(filter);
3498
3490
  }