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