@paperless/angular 1.23.0 → 1.24.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 +13 -6
- package/fesm2015/paperless-angular.mjs +11 -4
- package/fesm2015/paperless-angular.mjs.map +1 -1
- package/fesm2020/paperless-angular.mjs +11 -4
- package/fesm2020/paperless-angular.mjs.map +1 -1
- package/lib/modules/table/base/table.component.d.ts +3 -2
- package/package.json +1 -1
|
@@ -2156,6 +2156,7 @@ const createFormFilters = (values, quickFilters, quickFilterKey) => {
|
|
|
2156
2156
|
let BaseTableComponent = class BaseTableComponent extends BaseFormComponent {
|
|
2157
2157
|
constructor() {
|
|
2158
2158
|
super();
|
|
2159
|
+
this.tableOptionsChange = new EventEmitter();
|
|
2159
2160
|
this.quickFilters = [];
|
|
2160
2161
|
this.filterForm = new FormGroup({});
|
|
2161
2162
|
this.defaultFilterFormValues = {};
|
|
@@ -2263,13 +2264,17 @@ let BaseTableComponent = class BaseTableComponent extends BaseFormComponent {
|
|
|
2263
2264
|
selectedRows: this.parsedDefaultTableValues.selectedRows,
|
|
2264
2265
|
});
|
|
2265
2266
|
this.tableOptions.valueChanges
|
|
2266
|
-
.pipe(untilDestroyed(this), startWith(this.tableOptions.value), pairwise(), map(([previous, next]) =>
|
|
2267
|
+
.pipe(untilDestroyed(this), startWith(this.tableOptions.value), pairwise(), map(([previous, next]) => [
|
|
2268
|
+
this._getChanges(previous, next),
|
|
2269
|
+
next,
|
|
2270
|
+
]), filter(([changes]) => !!changes), debounce(([changes]) => {
|
|
2267
2271
|
if (changes?.query && Object.keys(changes)?.length === 1) {
|
|
2268
2272
|
return timer(300);
|
|
2269
2273
|
}
|
|
2270
2274
|
return timer(0);
|
|
2271
2275
|
}))
|
|
2272
|
-
.subscribe((changes) => {
|
|
2276
|
+
.subscribe(([changes, values]) => {
|
|
2277
|
+
this.tableOptionsChange.next(values);
|
|
2273
2278
|
if (changes?.page) {
|
|
2274
2279
|
this._refresh();
|
|
2275
2280
|
return;
|
|
@@ -2341,7 +2346,7 @@ let BaseTableComponent = class BaseTableComponent extends BaseFormComponent {
|
|
|
2341
2346
|
}
|
|
2342
2347
|
};
|
|
2343
2348
|
BaseTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2344
|
-
BaseTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: BaseTableComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
2349
|
+
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 });
|
|
2345
2350
|
BaseTableComponent = __decorate([
|
|
2346
2351
|
UntilDestroy({ checkProperties: true })
|
|
2347
2352
|
], BaseTableComponent);
|
|
@@ -2350,7 +2355,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2350
2355
|
args: [{
|
|
2351
2356
|
template: ``,
|
|
2352
2357
|
}]
|
|
2353
|
-
}], ctorParameters: function () { return []; }
|
|
2358
|
+
}], ctorParameters: function () { return []; }, propDecorators: { tableOptionsChange: [{
|
|
2359
|
+
type: Output
|
|
2360
|
+
}] } });
|
|
2354
2361
|
|
|
2355
2362
|
/* eslint-disable max-len */
|
|
2356
2363
|
class TableCell {
|