@paperless/angular 0.1.0-alpha.270 → 0.1.0-alpha.271
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/directives/p-page-size-select.directive.mjs +3 -3
- package/esm2020/lib/directives/p-pagination.directive.mjs +3 -3
- package/esm2020/lib/directives/p-select.directive.mjs +2 -3
- package/esm2020/lib/modules/table/directives/p-table-footer.directive.mjs +3 -3
- package/fesm2015/paperless-angular.mjs +7 -8
- package/fesm2015/paperless-angular.mjs.map +1 -1
- package/fesm2020/paperless-angular.mjs +7 -8
- package/fesm2020/paperless-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -112,10 +112,10 @@ class PageSizeSelectDirective extends BaseValueAccessor {
|
|
|
112
112
|
}
|
|
113
113
|
writeValue(value) {
|
|
114
114
|
this.el.nativeElement.page = this.lastValue =
|
|
115
|
-
value == null ?
|
|
115
|
+
value == null ? 12 : value;
|
|
116
116
|
}
|
|
117
117
|
registerOnChange(fn) {
|
|
118
|
-
super.registerOnChange((value) => fn(
|
|
118
|
+
super.registerOnChange((value) => fn(parseInt(value, 10)));
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
PageSizeSelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PageSizeSelectDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -150,10 +150,10 @@ class PaginationDirective extends BaseValueAccessor {
|
|
|
150
150
|
}
|
|
151
151
|
writeValue(value) {
|
|
152
152
|
this.el.nativeElement.page = this.lastValue =
|
|
153
|
-
value == null ?
|
|
153
|
+
value == null ? 1 : value;
|
|
154
154
|
}
|
|
155
155
|
registerOnChange(fn) {
|
|
156
|
-
super.registerOnChange((value) => fn(
|
|
156
|
+
super.registerOnChange((value) => fn(parseInt(value, 10)));
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
PaginationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PaginationDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -187,8 +187,7 @@ class SelectDirective extends BaseValueAccessor {
|
|
|
187
187
|
super(el);
|
|
188
188
|
}
|
|
189
189
|
writeValue(value) {
|
|
190
|
-
this.el.nativeElement.value = this.lastValue =
|
|
191
|
-
value == null ? '' : value;
|
|
190
|
+
this.el.nativeElement.value = this.lastValue = value;
|
|
192
191
|
}
|
|
193
192
|
}
|
|
194
193
|
SelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: SelectDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -1986,9 +1985,9 @@ class TableFooterDirective extends BaseValueAccessor {
|
|
|
1986
1985
|
}
|
|
1987
1986
|
writeValue(value) {
|
|
1988
1987
|
this.el.nativeElement.page = this.lastValue.page =
|
|
1989
|
-
value?.page == null ?
|
|
1988
|
+
value?.page == null ? 1 : value?.page;
|
|
1990
1989
|
this.el.nativeElement.pageSize = this.lastValue.pageSize =
|
|
1991
|
-
value?.pageSize == null ?
|
|
1990
|
+
value?.pageSize == null ? 12 : value?.pageSize;
|
|
1992
1991
|
}
|
|
1993
1992
|
handleChange(value, type) {
|
|
1994
1993
|
this.handleChangeEvent({
|