@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.
- package/esm2020/lib/modules/table/base/table.component.mjs +8 -1
- package/esm2020/lib/stencil/components.mjs +1 -1
- package/fesm2015/paperless-angular.mjs +7 -0
- package/fesm2015/paperless-angular.mjs.map +1 -1
- package/fesm2020/paperless-angular.mjs +7 -0
- package/fesm2020/paperless-angular.mjs.map +1 -1
- package/lib/modules/table/base/table.component.d.ts +9 -1
- package/lib/stencil/components.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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 });
|