@paperless/angular 1.28.3 → 1.29.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.
@@ -2340,6 +2340,13 @@ let BaseTableComponent = class BaseTableComponent extends BaseFormComponent {
2340
2340
  }
2341
2341
  return Object.keys(changes).length ? changes : null;
2342
2342
  }
2343
+ _watchProperty(observable, identifier = 'id') {
2344
+ return observable.pipe(untilDestroyed(this), pairwise(), tap(([previous, current]) => {
2345
+ if (previous && previous[identifier] !== current[identifier]) {
2346
+ this.resetTable(false, true);
2347
+ }
2348
+ }), map(([_, current]) => current));
2349
+ }
2343
2350
  };
2344
2351
  BaseTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2345
2352
  BaseTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: BaseTableComponent, selector: "ng-component", outputs: { tableOptionsChange: "tableOptionsChange" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true });