ng-primitives 0.7.2 → 0.7.3
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/esm2022/pagination/pagination-button/pagination-button.directive.mjs +17 -2
- package/esm2022/pagination/pagination-first/pagination-first.directive.mjs +17 -2
- package/esm2022/pagination/pagination-last/pagination-last.directive.mjs +17 -2
- package/esm2022/pagination/pagination-next/pagination-next.directive.mjs +17 -2
- package/esm2022/pagination/pagination-previous/pagination-previous.directive.mjs +17 -2
- package/fesm2022/ng-primitives-pagination.mjs +80 -5
- package/fesm2022/ng-primitives-pagination.mjs.map +1 -1
- package/package.json +7 -7
- package/pagination/pagination-button/pagination-button.directive.d.ts +5 -0
- package/pagination/pagination-first/pagination-first.directive.d.ts +5 -0
- package/pagination/pagination-last/pagination-last.directive.d.ts +5 -0
- package/pagination/pagination-next/pagination-next.directive.d.ts +5 -0
- package/pagination/pagination-previous/pagination-previous.directive.d.ts +5 -0
|
@@ -43,8 +43,17 @@ export class NgpPaginationButton {
|
|
|
43
43
|
}
|
|
44
44
|
this.pagination.page.set(this.page());
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* A click event may not be fired if this is on an anchor tag and the href is empty.
|
|
48
|
+
* This is a workaround to ensure the click event is fired.
|
|
49
|
+
*/
|
|
50
|
+
onEnter(event) {
|
|
51
|
+
event.preventDefault();
|
|
52
|
+
event.stopPropagation();
|
|
53
|
+
this.goToPage();
|
|
54
|
+
}
|
|
46
55
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgpPaginationButton, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
47
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationButton, isStandalone: true, selector: "[ngpPaginationButton]", inputs: { page: { classPropertyName: "page", publicName: "ngpPaginationButtonPage", isSignal: true, isRequired: true, transformFunction: null }, buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationButtonDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToPage()" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled() || pagination.disabled()", "attr.data-page": "page()", "attr.data-selected": "selected()", "attr.aria-current": "selected()" } }, providers: [
|
|
56
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationButton, isStandalone: true, selector: "[ngpPaginationButton]", inputs: { page: { classPropertyName: "page", publicName: "ngpPaginationButtonPage", isSignal: true, isRequired: true, transformFunction: null }, buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationButtonDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToPage()", "keydown.enter": "onEnter($event)", "keydown.space": "onEnter($event)" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled() || pagination.disabled()", "attr.data-page": "page()", "attr.data-selected": "selected()", "attr.aria-current": "selected()" } }, providers: [
|
|
48
57
|
{ provide: NgpPaginationButtonToken, useExisting: NgpPaginationButton },
|
|
49
58
|
{ provide: NgpDisabledToken, useExisting: NgpPaginationButton },
|
|
50
59
|
], exportAs: ["ngpPaginationButton"], hostDirectives: [{ directive: i1.NgpButton }], ngImport: i0 }); }
|
|
@@ -71,5 +80,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
71
80
|
}], propDecorators: { goToPage: [{
|
|
72
81
|
type: HostListener,
|
|
73
82
|
args: ['click']
|
|
83
|
+
}], onEnter: [{
|
|
84
|
+
type: HostListener,
|
|
85
|
+
args: ['keydown.enter', ['$event']]
|
|
86
|
+
}, {
|
|
87
|
+
type: HostListener,
|
|
88
|
+
args: ['keydown.space', ['$event']]
|
|
74
89
|
}] } });
|
|
75
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
90
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aW9uKCk7XG4gICAgdGhpcy5nb1RvUGFnZSgpO1xuICB9XG59XG4iXX0=
|
|
@@ -29,8 +29,17 @@ export class NgpPaginationFirst {
|
|
|
29
29
|
}
|
|
30
30
|
this.pagination.page.set(1);
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* A click event may not be fired if this is on an anchor tag and the href is empty.
|
|
34
|
+
* This is a workaround to ensure the click event is fired.
|
|
35
|
+
*/
|
|
36
|
+
onEnter(event) {
|
|
37
|
+
event.preventDefault();
|
|
38
|
+
event.stopPropagation();
|
|
39
|
+
this.goToFirstPage();
|
|
40
|
+
}
|
|
32
41
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgpPaginationFirst, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
33
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationFirst, isStandalone: true, selector: "[ngpPaginationFirst]", inputs: { buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationFirstDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToFirstPage()" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-first-page": "pagination.firstPage()" } }, providers: [
|
|
42
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationFirst, isStandalone: true, selector: "[ngpPaginationFirst]", inputs: { buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationFirstDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToFirstPage()", "keydown.enter": "onEnter($event)", "keydown.space": "onEnter($event)" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-first-page": "pagination.firstPage()" } }, providers: [
|
|
34
43
|
{ provide: NgpPaginationFirstToken, useExisting: NgpPaginationFirst },
|
|
35
44
|
{ provide: NgpDisabledToken, useExisting: NgpPaginationFirst },
|
|
36
45
|
], exportAs: ["ngpPaginationFirst"], hostDirectives: [{ directive: i1.NgpButton }], ngImport: i0 }); }
|
|
@@ -55,5 +64,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
55
64
|
}], propDecorators: { goToFirstPage: [{
|
|
56
65
|
type: HostListener,
|
|
57
66
|
args: ['click']
|
|
67
|
+
}], onEnter: [{
|
|
68
|
+
type: HostListener,
|
|
69
|
+
args: ['keydown.enter', ['$event']]
|
|
70
|
+
}, {
|
|
71
|
+
type: HostListener,
|
|
72
|
+
args: ['keydown.space', ['$event']]
|
|
58
73
|
}] } });
|
|
59
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
74
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi1maXJzdC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9uZy1wcmltaXRpdmVzL3BhZ2luYXRpb24vc3JjL3BhZ2luYXRpb24tZmlyc3QvcGFnaW5hdGlvbi1maXJzdC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLFFBQVEsRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzRixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDakQsT0FBTyxFQUFpQixnQkFBZ0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3pFLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ2xFLE9BQU8sRUFBRSx1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bWF5IG5vdCBiZSBmaXJlZCBpZiB0aGlzIGlzIG9uIGFuIGFuY2hvciB0YWcgYW5kIHRoZSBocmVmIGlzIGVtcHR5LlxuICAgKiBUaGlzIGlzIGEgd29ya2Fyb3VuZCB0byBlbnN1cmUgdGhlIGNsaWNrIGV2ZW50IGlzIGZpcmVkLlxuICAgKi9cbiAgQEhvc3RMaXN0ZW5lcigna2V5ZG93bi5lbnRlcicsIFsnJGV2ZW50J10pXG4gIEBIb3N0TGlzdGVuZXIoJ2tleWRvd24uc3BhY2UnLCBbJyRldmVudCddKVxuICBwcm90ZWN0ZWQgb25FbnRlcihldmVudDogS2V5Ym9hcmRFdmVudCk6IHZvaWQge1xuICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgZXZlbnQuc3RvcFByb3BhZ2F0aW9uKCk7XG4gICAgdGhpcy5nb1RvRmlyc3RQYWdlKCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -29,8 +29,17 @@ export class NgpPaginationLast {
|
|
|
29
29
|
}
|
|
30
30
|
this.pagination.page.set(this.pagination.pageCount());
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* A click event may not be fired if this is on an anchor tag and the href is empty.
|
|
34
|
+
* This is a workaround to ensure the click event is fired.
|
|
35
|
+
*/
|
|
36
|
+
onEnter(event) {
|
|
37
|
+
event.preventDefault();
|
|
38
|
+
event.stopPropagation();
|
|
39
|
+
this.goToLastPage();
|
|
40
|
+
}
|
|
32
41
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgpPaginationLast, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
33
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationLast, isStandalone: true, selector: "[ngpPaginationLast]", inputs: { buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationLastDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToLastPage()" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-last-page": "pagination.lastPage()" } }, providers: [
|
|
42
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationLast, isStandalone: true, selector: "[ngpPaginationLast]", inputs: { buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationLastDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToLastPage()", "keydown.enter": "onEnter($event)", "keydown.space": "onEnter($event)" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-last-page": "pagination.lastPage()" } }, providers: [
|
|
34
43
|
{ provide: NgpPaginationLastToken, useExisting: NgpPaginationLast },
|
|
35
44
|
{ provide: NgpDisabledToken, useExisting: NgpPaginationLast },
|
|
36
45
|
], exportAs: ["ngpPaginationLast"], hostDirectives: [{ directive: i1.NgpButton }], ngImport: i0 }); }
|
|
@@ -55,5 +64,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
55
64
|
}], propDecorators: { goToLastPage: [{
|
|
56
65
|
type: HostListener,
|
|
57
66
|
args: ['click']
|
|
67
|
+
}], onEnter: [{
|
|
68
|
+
type: HostListener,
|
|
69
|
+
args: ['keydown.enter', ['$event']]
|
|
70
|
+
}, {
|
|
71
|
+
type: HostListener,
|
|
72
|
+
args: ['keydown.space', ['$event']]
|
|
58
73
|
}] } });
|
|
59
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
74
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi1sYXN0LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL25nLXBy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seSBkaXNhYmxlZCA9IGNvbXB1dGVkKFxuICAgICgpID0+IHRoaXMuYnV0dG9uRGlzYWJsZWQoKSB8fCB0aGlzLnBhZ2luYXRpb24uZGlzYWJsZWQoKSB8fCB0aGlzLnBhZ2luYXRpb24ubGFzdFBhZ2UoKSxcbiAgKTtcblxuICAvKipcbiAgICogR28gdG8gdGhlIGxhc3QgcGFnZS5cbiAgICovXG4gIEBIb3N0TGlzdGVuZXIoJ2NsaWNrJylcbiAgZ29Ub0xhc3RQYWdlKCk6IHZvaWQge1xuICAgIGlmICh0aGlzLmRpc2FibGVkKCkpIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG5cbiAgICB0aGlzLnBhZ2luYXRpb24ucGFnZS5zZXQodGhpcy5wYWdpbmF0aW9uLnBhZ2VDb3VudCgpKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBBIGNsaWNrIGV2ZW50IG1heSBub3QgYmUgZmlyZWQgaWYgdGhpcyBpcyBvbiBhbiBhbmNob3IgdGFnIGFuZCB0aGUgaHJlZiBpcyBlbXB0eS5cbiAgICogVGhpcyBpcyBhIHdvcmthcm91bmQgdG8gZW5zdXJlIHRoZSBjbGljayBldmVudCBpcyBmaXJlZC5cbiAgICovXG4gIEBIb3N0TGlzdGVuZXIoJ2tleWRvd24uZW50ZXInLCBbJyRldmVudCddKVxuICBASG9zdExpc3RlbmVyKCdrZXlkb3duLnNwYWNlJywgWyckZXZlbnQnXSlcbiAgcHJvdGVjdGVkIG9uRW50ZXIoZXZlbnQ6IEtleWJvYXJkRXZlbnQpOiB2b2lkIHtcbiAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgIGV2ZW50LnN0b3BQcm9wYWdhdGlvbigpO1xuICAgIHRoaXMuZ29Ub0xhc3RQYWdlKCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -32,8 +32,17 @@ export class NgpPaginationNext {
|
|
|
32
32
|
}
|
|
33
33
|
this.pagination.page.set(this.pagination.page() + 1);
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* A click event may not be fired if this is on an anchor tag and the href is empty.
|
|
37
|
+
* This is a workaround to ensure the click event is fired.
|
|
38
|
+
*/
|
|
39
|
+
onEnter(event) {
|
|
40
|
+
event.preventDefault();
|
|
41
|
+
event.stopPropagation();
|
|
42
|
+
this.goToNextPage();
|
|
43
|
+
}
|
|
35
44
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgpPaginationNext, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
36
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationNext, isStandalone: true, selector: "[ngpPaginationNext]", inputs: { buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationNextDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToNextPage()" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-last-page": "pagination.lastPage()" } }, providers: [
|
|
45
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationNext, isStandalone: true, selector: "[ngpPaginationNext]", inputs: { buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationNextDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToNextPage()", "keydown.enter": "onEnter($event)", "keydown.space": "onEnter($event)" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-last-page": "pagination.lastPage()" } }, providers: [
|
|
37
46
|
{ provide: NgpPaginationNextToken, useExisting: NgpPaginationNext },
|
|
38
47
|
{ provide: NgpDisabledToken, useExisting: NgpPaginationNext },
|
|
39
48
|
], exportAs: ["ngpPaginationNext"], hostDirectives: [{ directive: i1.NgpButton }], ngImport: i0 }); }
|
|
@@ -58,5 +67,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
58
67
|
}], propDecorators: { goToNextPage: [{
|
|
59
68
|
type: HostListener,
|
|
60
69
|
args: ['click']
|
|
70
|
+
}], onEnter: [{
|
|
71
|
+
type: HostListener,
|
|
72
|
+
args: ['keydown.enter', ['$event']]
|
|
73
|
+
}, {
|
|
74
|
+
type: HostListener,
|
|
75
|
+
args: ['keydown.space', ['$event']]
|
|
61
76
|
}] } });
|
|
62
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
77
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi1uZXh0LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL25nLXByaW1pdGl2ZXMvcGFnaW5hdGlvbi9zcmMvcGFnaW5hdGlvbi1uZXh0L3BhZ2luYXRpb24tbmV4dC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLFFBQVEsRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzRixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDakQsT0FBTyxFQUFpQixnQkFBZ0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3pFLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ2xFLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHlCQUF5QixDQUFDOzs7QUFpQmpFLE1BQU0sT0FBTyxpQkFBaUI7SUFmOUI7UUFnQkU7O1dBRUc7UUFDZ0IsZUFBVSxHQUFHLGdCQUFnQixFQUFFLENBQUM7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ZmlyZWQgaWYgdGhpcyBpcyBvbiBhbiBhbmNob3IgdGFnIGFuZCB0aGUgaHJlZiBpcyBlbXB0eS5cbiAgICogVGhpcyBpcyBhIHdvcmthcm91bmQgdG8gZW5zdXJlIHRoZSBjbGljayBldmVudCBpcyBmaXJlZC5cbiAgICovXG4gIEBIb3N0TGlzdGVuZXIoJ2tleWRvd24uZW50ZXInLCBbJyRldmVudCddKVxuICBASG9zdExpc3RlbmVyKCdrZXlkb3duLnNwYWNlJywgWyckZXZlbnQnXSlcbiAgcHJvdGVjdGVkIG9uRW50ZXIoZXZlbnQ6IEtleWJvYXJkRXZlbnQpOiB2b2lkIHtcbiAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgIGV2ZW50LnN0b3BQcm9wYWdhdGlvbigpO1xuICAgIHRoaXMuZ29Ub05leHRQYWdlKCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -32,8 +32,17 @@ export class NgpPaginationPrevious {
|
|
|
32
32
|
}
|
|
33
33
|
this.pagination.page.set(this.pagination.page() - 1);
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* A click event may not be fired if this is on an anchor tag and the href is empty.
|
|
37
|
+
* This is a workaround to ensure the click event is fired.
|
|
38
|
+
*/
|
|
39
|
+
onEnter(event) {
|
|
40
|
+
event.preventDefault();
|
|
41
|
+
event.stopPropagation();
|
|
42
|
+
this.goToPreviousPage();
|
|
43
|
+
}
|
|
35
44
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgpPaginationPrevious, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
36
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationPrevious, isStandalone: true, selector: "[ngpPaginationPrevious]", inputs: { buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationPreviousDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToPreviousPage()" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-first-page": "pagination.firstPage()" } }, providers: [
|
|
45
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationPrevious, isStandalone: true, selector: "[ngpPaginationPrevious]", inputs: { buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationPreviousDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToPreviousPage()", "keydown.enter": "onEnter($event)", "keydown.space": "onEnter($event)" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-first-page": "pagination.firstPage()" } }, providers: [
|
|
37
46
|
{ provide: NgpPaginationPreviousToken, useExisting: NgpPaginationPrevious },
|
|
38
47
|
{ provide: NgpDisabledToken, useExisting: NgpPaginationPrevious },
|
|
39
48
|
], exportAs: ["ngpPaginationPrevious"], hostDirectives: [{ directive: i1.NgpButton }], ngImport: i0 }); }
|
|
@@ -58,5 +67,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
58
67
|
}], propDecorators: { goToPreviousPage: [{
|
|
59
68
|
type: HostListener,
|
|
60
69
|
args: ['click']
|
|
70
|
+
}], onEnter: [{
|
|
71
|
+
type: HostListener,
|
|
72
|
+
args: ['keydown.enter', ['$event']]
|
|
73
|
+
}, {
|
|
74
|
+
type: HostListener,
|
|
75
|
+
args: ['keydown.space', ['$event']]
|
|
61
76
|
}] } });
|
|
62
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
77
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi1wcmV2aW91cy5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYW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cFByb3BhZ2F0aW9uKCk7XG4gICAgdGhpcy5nb1RvUHJldmlvdXNQYWdlKCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -126,8 +126,17 @@ class NgpPaginationButton {
|
|
|
126
126
|
}
|
|
127
127
|
this.pagination.page.set(this.page());
|
|
128
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* A click event may not be fired if this is on an anchor tag and the href is empty.
|
|
131
|
+
* This is a workaround to ensure the click event is fired.
|
|
132
|
+
*/
|
|
133
|
+
onEnter(event) {
|
|
134
|
+
event.preventDefault();
|
|
135
|
+
event.stopPropagation();
|
|
136
|
+
this.goToPage();
|
|
137
|
+
}
|
|
129
138
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgpPaginationButton, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
130
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationButton, isStandalone: true, selector: "[ngpPaginationButton]", inputs: { page: { classPropertyName: "page", publicName: "ngpPaginationButtonPage", isSignal: true, isRequired: true, transformFunction: null }, buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationButtonDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToPage()" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled() || pagination.disabled()", "attr.data-page": "page()", "attr.data-selected": "selected()", "attr.aria-current": "selected()" } }, providers: [
|
|
139
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationButton, isStandalone: true, selector: "[ngpPaginationButton]", inputs: { page: { classPropertyName: "page", publicName: "ngpPaginationButtonPage", isSignal: true, isRequired: true, transformFunction: null }, buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationButtonDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToPage()", "keydown.enter": "onEnter($event)", "keydown.space": "onEnter($event)" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled() || pagination.disabled()", "attr.data-page": "page()", "attr.data-selected": "selected()", "attr.aria-current": "selected()" } }, providers: [
|
|
131
140
|
{ provide: NgpPaginationButtonToken, useExisting: NgpPaginationButton },
|
|
132
141
|
{ provide: NgpDisabledToken, useExisting: NgpPaginationButton },
|
|
133
142
|
], exportAs: ["ngpPaginationButton"], hostDirectives: [{ directive: i1.NgpButton }], ngImport: i0 }); }
|
|
@@ -154,6 +163,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
154
163
|
}], propDecorators: { goToPage: [{
|
|
155
164
|
type: HostListener,
|
|
156
165
|
args: ['click']
|
|
166
|
+
}], onEnter: [{
|
|
167
|
+
type: HostListener,
|
|
168
|
+
args: ['keydown.enter', ['$event']]
|
|
169
|
+
}, {
|
|
170
|
+
type: HostListener,
|
|
171
|
+
args: ['keydown.space', ['$event']]
|
|
157
172
|
}] } });
|
|
158
173
|
|
|
159
174
|
/**
|
|
@@ -198,8 +213,17 @@ class NgpPaginationPrevious {
|
|
|
198
213
|
}
|
|
199
214
|
this.pagination.page.set(this.pagination.page() - 1);
|
|
200
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* A click event may not be fired if this is on an anchor tag and the href is empty.
|
|
218
|
+
* This is a workaround to ensure the click event is fired.
|
|
219
|
+
*/
|
|
220
|
+
onEnter(event) {
|
|
221
|
+
event.preventDefault();
|
|
222
|
+
event.stopPropagation();
|
|
223
|
+
this.goToPreviousPage();
|
|
224
|
+
}
|
|
201
225
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgpPaginationPrevious, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
202
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationPrevious, isStandalone: true, selector: "[ngpPaginationPrevious]", inputs: { buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationPreviousDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToPreviousPage()" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-first-page": "pagination.firstPage()" } }, providers: [
|
|
226
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationPrevious, isStandalone: true, selector: "[ngpPaginationPrevious]", inputs: { buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationPreviousDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToPreviousPage()", "keydown.enter": "onEnter($event)", "keydown.space": "onEnter($event)" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-first-page": "pagination.firstPage()" } }, providers: [
|
|
203
227
|
{ provide: NgpPaginationPreviousToken, useExisting: NgpPaginationPrevious },
|
|
204
228
|
{ provide: NgpDisabledToken, useExisting: NgpPaginationPrevious },
|
|
205
229
|
], exportAs: ["ngpPaginationPrevious"], hostDirectives: [{ directive: i1.NgpButton }], ngImport: i0 }); }
|
|
@@ -224,6 +248,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
224
248
|
}], propDecorators: { goToPreviousPage: [{
|
|
225
249
|
type: HostListener,
|
|
226
250
|
args: ['click']
|
|
251
|
+
}], onEnter: [{
|
|
252
|
+
type: HostListener,
|
|
253
|
+
args: ['keydown.enter', ['$event']]
|
|
254
|
+
}, {
|
|
255
|
+
type: HostListener,
|
|
256
|
+
args: ['keydown.space', ['$event']]
|
|
227
257
|
}] } });
|
|
228
258
|
|
|
229
259
|
/**
|
|
@@ -268,8 +298,17 @@ class NgpPaginationNext {
|
|
|
268
298
|
}
|
|
269
299
|
this.pagination.page.set(this.pagination.page() + 1);
|
|
270
300
|
}
|
|
301
|
+
/**
|
|
302
|
+
* A click event may not be fired if this is on an anchor tag and the href is empty.
|
|
303
|
+
* This is a workaround to ensure the click event is fired.
|
|
304
|
+
*/
|
|
305
|
+
onEnter(event) {
|
|
306
|
+
event.preventDefault();
|
|
307
|
+
event.stopPropagation();
|
|
308
|
+
this.goToNextPage();
|
|
309
|
+
}
|
|
271
310
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgpPaginationNext, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
272
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationNext, isStandalone: true, selector: "[ngpPaginationNext]", inputs: { buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationNextDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToNextPage()" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-last-page": "pagination.lastPage()" } }, providers: [
|
|
311
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationNext, isStandalone: true, selector: "[ngpPaginationNext]", inputs: { buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationNextDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToNextPage()", "keydown.enter": "onEnter($event)", "keydown.space": "onEnter($event)" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-last-page": "pagination.lastPage()" } }, providers: [
|
|
273
312
|
{ provide: NgpPaginationNextToken, useExisting: NgpPaginationNext },
|
|
274
313
|
{ provide: NgpDisabledToken, useExisting: NgpPaginationNext },
|
|
275
314
|
], exportAs: ["ngpPaginationNext"], hostDirectives: [{ directive: i1.NgpButton }], ngImport: i0 }); }
|
|
@@ -294,6 +333,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
294
333
|
}], propDecorators: { goToNextPage: [{
|
|
295
334
|
type: HostListener,
|
|
296
335
|
args: ['click']
|
|
336
|
+
}], onEnter: [{
|
|
337
|
+
type: HostListener,
|
|
338
|
+
args: ['keydown.enter', ['$event']]
|
|
339
|
+
}, {
|
|
340
|
+
type: HostListener,
|
|
341
|
+
args: ['keydown.space', ['$event']]
|
|
297
342
|
}] } });
|
|
298
343
|
|
|
299
344
|
/**
|
|
@@ -335,8 +380,17 @@ class NgpPaginationFirst {
|
|
|
335
380
|
}
|
|
336
381
|
this.pagination.page.set(1);
|
|
337
382
|
}
|
|
383
|
+
/**
|
|
384
|
+
* A click event may not be fired if this is on an anchor tag and the href is empty.
|
|
385
|
+
* This is a workaround to ensure the click event is fired.
|
|
386
|
+
*/
|
|
387
|
+
onEnter(event) {
|
|
388
|
+
event.preventDefault();
|
|
389
|
+
event.stopPropagation();
|
|
390
|
+
this.goToFirstPage();
|
|
391
|
+
}
|
|
338
392
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgpPaginationFirst, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
339
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationFirst, isStandalone: true, selector: "[ngpPaginationFirst]", inputs: { buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationFirstDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToFirstPage()" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-first-page": "pagination.firstPage()" } }, providers: [
|
|
393
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationFirst, isStandalone: true, selector: "[ngpPaginationFirst]", inputs: { buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationFirstDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToFirstPage()", "keydown.enter": "onEnter($event)", "keydown.space": "onEnter($event)" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-first-page": "pagination.firstPage()" } }, providers: [
|
|
340
394
|
{ provide: NgpPaginationFirstToken, useExisting: NgpPaginationFirst },
|
|
341
395
|
{ provide: NgpDisabledToken, useExisting: NgpPaginationFirst },
|
|
342
396
|
], exportAs: ["ngpPaginationFirst"], hostDirectives: [{ directive: i1.NgpButton }], ngImport: i0 }); }
|
|
@@ -361,6 +415,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
361
415
|
}], propDecorators: { goToFirstPage: [{
|
|
362
416
|
type: HostListener,
|
|
363
417
|
args: ['click']
|
|
418
|
+
}], onEnter: [{
|
|
419
|
+
type: HostListener,
|
|
420
|
+
args: ['keydown.enter', ['$event']]
|
|
421
|
+
}, {
|
|
422
|
+
type: HostListener,
|
|
423
|
+
args: ['keydown.space', ['$event']]
|
|
364
424
|
}] } });
|
|
365
425
|
|
|
366
426
|
/**
|
|
@@ -402,8 +462,17 @@ class NgpPaginationLast {
|
|
|
402
462
|
}
|
|
403
463
|
this.pagination.page.set(this.pagination.pageCount());
|
|
404
464
|
}
|
|
465
|
+
/**
|
|
466
|
+
* A click event may not be fired if this is on an anchor tag and the href is empty.
|
|
467
|
+
* This is a workaround to ensure the click event is fired.
|
|
468
|
+
*/
|
|
469
|
+
onEnter(event) {
|
|
470
|
+
event.preventDefault();
|
|
471
|
+
event.stopPropagation();
|
|
472
|
+
this.goToLastPage();
|
|
473
|
+
}
|
|
405
474
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: NgpPaginationLast, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
406
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationLast, isStandalone: true, selector: "[ngpPaginationLast]", inputs: { buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationLastDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToLastPage()" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-last-page": "pagination.lastPage()" } }, providers: [
|
|
475
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.1", type: NgpPaginationLast, isStandalone: true, selector: "[ngpPaginationLast]", inputs: { buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "ngpPaginationLastDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "goToLastPage()", "keydown.enter": "onEnter($event)", "keydown.space": "onEnter($event)" }, properties: { "tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-last-page": "pagination.lastPage()" } }, providers: [
|
|
407
476
|
{ provide: NgpPaginationLastToken, useExisting: NgpPaginationLast },
|
|
408
477
|
{ provide: NgpDisabledToken, useExisting: NgpPaginationLast },
|
|
409
478
|
], exportAs: ["ngpPaginationLast"], hostDirectives: [{ directive: i1.NgpButton }], ngImport: i0 }); }
|
|
@@ -428,6 +497,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
|
|
|
428
497
|
}], propDecorators: { goToLastPage: [{
|
|
429
498
|
type: HostListener,
|
|
430
499
|
args: ['click']
|
|
500
|
+
}], onEnter: [{
|
|
501
|
+
type: HostListener,
|
|
502
|
+
args: ['keydown.enter', ['$event']]
|
|
503
|
+
}, {
|
|
504
|
+
type: HostListener,
|
|
505
|
+
args: ['keydown.space', ['$event']]
|
|
431
506
|
}] } });
|
|
432
507
|
|
|
433
508
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-primitives-pagination.mjs","sources":["../../../../packages/ng-primitives/pagination/src/pagination/pagination.token.ts","../../../../packages/ng-primitives/pagination/src/pagination/pagination.directive.ts","../../../../packages/ng-primitives/pagination/src/pagination-button/pagination-button.token.ts","../../../../packages/ng-primitives/pagination/src/pagination-button/pagination-button.directive.ts","../../../../packages/ng-primitives/pagination/src/pagination-previous/pagination-previous.token.ts","../../../../packages/ng-primitives/pagination/src/pagination-previous/pagination-previous.directive.ts","../../../../packages/ng-primitives/pagination/src/pagination-next/pagination-next.token.ts","../../../../packages/ng-primitives/pagination/src/pagination-next/pagination-next.directive.ts","../../../../packages/ng-primitives/pagination/src/pagination-first/pagination-first.token.ts","../../../../packages/ng-primitives/pagination/src/pagination-first/pagination-first.directive.ts","../../../../packages/ng-primitives/pagination/src/pagination-last/pagination-last.token.ts","../../../../packages/ng-primitives/pagination/src/pagination-last/pagination-last.directive.ts","../../../../packages/ng-primitives/pagination/src/index.ts","../../../../packages/ng-primitives/pagination/src/ng-primitives-pagination.ts"],"sourcesContent":["/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { InjectionToken, inject } from '@angular/core';\nimport type { NgpPagination } from './pagination.directive';\n\nexport const NgpPaginationToken = new InjectionToken<NgpPagination>('NgpPaginationToken');\n\n/**\n * Inject the Pagination directive instance\n */\nexport function injectPagination(): NgpPagination {\n return inject(NgpPaginationToken);\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport {\n booleanAttribute,\n computed,\n Directive,\n input,\n model,\n numberAttribute,\n} from '@angular/core';\nimport { NgpPaginationToken } from './pagination.token';\n\n@Directive({\n standalone: true,\n selector: '[ngpPagination]',\n exportAs: 'ngpPagination',\n providers: [{ provide: NgpPaginationToken, useExisting: NgpPagination }],\n host: {\n role: 'navigation',\n '[attr.data-page]': 'page()',\n '[attr.data-page-count]': 'pageCount()',\n '[attr.data-first-page]': 'firstPage()',\n '[attr.data-last-page]': 'lastPage()',\n '[attr.data-disabled]': 'disabled()',\n },\n})\nexport class NgpPagination {\n /**\n * The currently selected page.\n */\n readonly page = model<number>(1, {\n alias: 'ngpPaginationPage',\n });\n\n /**\n * The total number of pages.\n */\n readonly pageCount = input.required<number, NumberInput>({\n alias: 'ngpPaginationPageCount',\n transform: numberAttribute,\n });\n\n /**\n * Whether the pagination is disabled.\n */\n readonly disabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationDisabled',\n transform: booleanAttribute,\n });\n\n /**\n * Determine if we are on the first page.\n * @internal\n */\n readonly firstPage = computed(() => this.page() === 1);\n\n /**\n * Determine if we are on the last page.\n * @internal\n */\n readonly lastPage = computed(() => this.page() === this.pageCount());\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { InjectionToken, inject } from '@angular/core';\nimport type { NgpPaginationButton } from './pagination-button.directive';\n\nexport const NgpPaginationButtonToken = new InjectionToken<NgpPaginationButton>(\n 'NgpPaginationButtonToken',\n);\n\n/**\n * Inject the PaginationButton directive instance\n */\nexport function injectPaginationButton(): NgpPaginationButton {\n return inject(NgpPaginationButtonToken);\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport {\n booleanAttribute,\n computed,\n Directive,\n HostListener,\n input,\n numberAttribute,\n} from '@angular/core';\nimport { NgpButton } from 'ng-primitives/button';\nimport { NgpCanDisable, NgpDisabledToken } from 'ng-primitives/internal';\nimport { injectPagination } from '../pagination/pagination.token';\nimport { NgpPaginationButtonToken } from './pagination-button.token';\n\n@Directive({\n standalone: true,\n selector: '[ngpPaginationButton]',\n exportAs: 'ngpPaginationButton',\n providers: [\n { provide: NgpPaginationButtonToken, useExisting: NgpPaginationButton },\n { provide: NgpDisabledToken, useExisting: NgpPaginationButton },\n ],\n hostDirectives: [NgpButton],\n host: {\n '[tabindex]': 'disabled() ? -1 : 0',\n '[attr.data-disabled]': 'disabled() || pagination.disabled()',\n '[attr.data-page]': 'page()',\n '[attr.data-selected]': 'selected()',\n '[attr.aria-current]': 'selected()',\n },\n})\nexport class NgpPaginationButton implements NgpCanDisable {\n /**\n * Access the pagination directive.\n */\n protected readonly pagination = injectPagination();\n\n /**\n * Define the page this button represents.\n */\n readonly page = input.required<number, NumberInput>({\n alias: 'ngpPaginationButtonPage',\n transform: numberAttribute,\n });\n\n /**\n * Whether the button is disabled.\n */\n readonly buttonDisabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationButtonDisabled',\n transform: booleanAttribute,\n });\n\n /**\n * Whether the button is disabled.\n */\n readonly disabled = computed(() => this.buttonDisabled() || this.pagination.disabled());\n\n /**\n * Whether this page is the currently selected page.\n */\n protected readonly selected = computed(() => this.page() === this.pagination.page());\n\n /**\n * Go to the page this button represents.\n */\n @HostListener('click')\n goToPage(): void {\n if (this.disabled()) {\n return;\n }\n\n this.pagination.page.set(this.page());\n }\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { InjectionToken, inject } from '@angular/core';\nimport type { NgpPaginationPrevious } from './pagination-previous.directive';\n\nexport const NgpPaginationPreviousToken = new InjectionToken<NgpPaginationPrevious>(\n 'NgpPaginationPreviousToken',\n);\n\n/**\n * Inject the PaginationPrevious directive instance\n */\nexport function injectPaginationPrevious(): NgpPaginationPrevious {\n return inject(NgpPaginationPreviousToken);\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, computed, Directive, HostListener, input } from '@angular/core';\nimport { NgpButton } from 'ng-primitives/button';\nimport { NgpCanDisable, NgpDisabledToken } from 'ng-primitives/internal';\nimport { injectPagination } from '../pagination/pagination.token';\nimport { NgpPaginationPreviousToken } from './pagination-previous.token';\n\n@Directive({\n standalone: true,\n selector: '[ngpPaginationPrevious]',\n exportAs: 'ngpPaginationPrevious',\n providers: [\n { provide: NgpPaginationPreviousToken, useExisting: NgpPaginationPrevious },\n { provide: NgpDisabledToken, useExisting: NgpPaginationPrevious },\n ],\n hostDirectives: [NgpButton],\n host: {\n '[tabindex]': 'disabled() ? -1 : 0',\n '[attr.data-disabled]': 'disabled()',\n '[attr.data-first-page]': 'pagination.firstPage()',\n },\n})\nexport class NgpPaginationPrevious implements NgpCanDisable {\n /**\n * Access the pagination directive.\n */\n protected readonly pagination = injectPagination();\n\n /**\n * Whether the button is disabled.\n */\n readonly buttonDisabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationPreviousDisabled',\n transform: booleanAttribute,\n });\n\n /**\n * Whether the button is disabled.\n */\n readonly disabled = computed(\n () => this.buttonDisabled() || this.pagination.disabled() || this.pagination.firstPage(),\n );\n\n /**\n * Go to the previous page.\n */\n @HostListener('click')\n goToPreviousPage() {\n if (this.disabled()) {\n return;\n }\n\n this.pagination.page.set(this.pagination.page() - 1);\n }\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { InjectionToken, inject } from '@angular/core';\nimport type { NgpPaginationNext } from './pagination-next.directive';\n\nexport const NgpPaginationNextToken = new InjectionToken<NgpPaginationNext>(\n 'NgpPaginationNextToken',\n);\n\n/**\n * Inject the PaginationNext directive instance\n */\nexport function injectPaginationNext(): NgpPaginationNext {\n return inject(NgpPaginationNextToken);\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, computed, Directive, HostListener, input } from '@angular/core';\nimport { NgpButton } from 'ng-primitives/button';\nimport { NgpCanDisable, NgpDisabledToken } from 'ng-primitives/internal';\nimport { injectPagination } from '../pagination/pagination.token';\nimport { NgpPaginationNextToken } from './pagination-next.token';\n\n@Directive({\n standalone: true,\n selector: '[ngpPaginationNext]',\n exportAs: 'ngpPaginationNext',\n providers: [\n { provide: NgpPaginationNextToken, useExisting: NgpPaginationNext },\n { provide: NgpDisabledToken, useExisting: NgpPaginationNext },\n ],\n hostDirectives: [NgpButton],\n host: {\n '[tabindex]': 'disabled() ? -1 : 0',\n '[attr.data-disabled]': 'disabled()',\n '[attr.data-last-page]': 'pagination.lastPage()',\n },\n})\nexport class NgpPaginationNext implements NgpCanDisable {\n /**\n * Access the pagination directive.\n */\n protected readonly pagination = injectPagination();\n\n /**\n * Whether the button is disabled.\n */\n readonly buttonDisabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationNextDisabled',\n transform: booleanAttribute,\n });\n\n /**\n * Whether the button is disabled.\n */\n readonly disabled = computed(\n () => this.buttonDisabled() || this.pagination.disabled() || this.pagination.lastPage(),\n );\n\n /**\n * Go to the next page.\n */\n @HostListener('click')\n goToNextPage(): void {\n if (this.disabled()) {\n return;\n }\n\n this.pagination.page.set(this.pagination.page() + 1);\n }\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { InjectionToken, inject } from '@angular/core';\nimport type { NgpPaginationFirst } from './pagination-first.directive';\n\nexport const NgpPaginationFirstToken = new InjectionToken<NgpPaginationFirst>(\n 'NgpPaginationFirstToken',\n);\n\n/**\n * Inject the PaginationFirst directive instance\n */\nexport function injectPaginationFirst(): NgpPaginationFirst {\n return inject(NgpPaginationFirstToken);\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, computed, Directive, HostListener, input } from '@angular/core';\nimport { NgpButton } from 'ng-primitives/button';\nimport { NgpCanDisable, NgpDisabledToken } from 'ng-primitives/internal';\nimport { injectPagination } from '../pagination/pagination.token';\nimport { NgpPaginationFirstToken } from './pagination-first.token';\n\n@Directive({\n standalone: true,\n selector: '[ngpPaginationFirst]',\n exportAs: 'ngpPaginationFirst',\n providers: [\n { provide: NgpPaginationFirstToken, useExisting: NgpPaginationFirst },\n { provide: NgpDisabledToken, useExisting: NgpPaginationFirst },\n ],\n hostDirectives: [NgpButton],\n host: {\n '[tabindex]': 'disabled() ? -1 : 0',\n '[attr.data-disabled]': 'disabled()',\n '[attr.data-first-page]': 'pagination.firstPage()',\n },\n})\nexport class NgpPaginationFirst implements NgpCanDisable {\n /**\n * Access the pagination directive.\n */\n protected readonly pagination = injectPagination();\n\n /**\n * Whether the button is disabled.\n */\n readonly buttonDisabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationFirstDisabled',\n transform: booleanAttribute,\n });\n\n readonly disabled = computed(\n () => this.buttonDisabled() || this.pagination.disabled() || this.pagination.firstPage(),\n );\n\n /**\n * Go to the first page.\n */\n @HostListener('click')\n goToFirstPage() {\n if (this.disabled()) {\n return;\n }\n\n this.pagination.page.set(1);\n }\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { InjectionToken, inject } from '@angular/core';\nimport type { NgpPaginationLast } from './pagination-last.directive';\n\nexport const NgpPaginationLastToken = new InjectionToken<NgpPaginationLast>(\n 'NgpPaginationLastToken',\n);\n\n/**\n * Inject the PaginationLast directive instance\n */\nexport function injectPaginationLast(): NgpPaginationLast {\n return inject(NgpPaginationLastToken);\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, computed, Directive, HostListener, input } from '@angular/core';\nimport { NgpButton } from 'ng-primitives/button';\nimport { NgpCanDisable, NgpDisabledToken } from 'ng-primitives/internal';\nimport { injectPagination } from '../pagination/pagination.token';\nimport { NgpPaginationLastToken } from './pagination-last.token';\n\n@Directive({\n standalone: true,\n selector: '[ngpPaginationLast]',\n exportAs: 'ngpPaginationLast',\n providers: [\n { provide: NgpPaginationLastToken, useExisting: NgpPaginationLast },\n { provide: NgpDisabledToken, useExisting: NgpPaginationLast },\n ],\n hostDirectives: [NgpButton],\n host: {\n '[tabindex]': 'disabled() ? -1 : 0',\n '[attr.data-disabled]': 'disabled()',\n '[attr.data-last-page]': 'pagination.lastPage()',\n },\n})\nexport class NgpPaginationLast implements NgpCanDisable {\n /**\n * Access the pagination directive.\n */\n protected readonly pagination = injectPagination();\n\n /**\n * Whether the button is disabled.\n */\n readonly buttonDisabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationLastDisabled',\n transform: booleanAttribute,\n });\n\n readonly disabled = computed(\n () => this.buttonDisabled() || this.pagination.disabled() || this.pagination.lastPage(),\n );\n\n /**\n * Go to the last page.\n */\n @HostListener('click')\n goToLastPage(): void {\n if (this.disabled()) {\n return;\n }\n\n this.pagination.page.set(this.pagination.pageCount());\n }\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nexport { NgpPagination } from './pagination/pagination.directive';\nexport { NgpPaginationToken } from './pagination/pagination.token';\nexport { NgpPaginationButton } from './pagination-button/pagination-button.directive';\nexport { NgpPaginationButtonToken } from './pagination-button/pagination-button.token';\nexport { NgpPaginationPrevious } from './pagination-previous/pagination-previous.directive';\nexport { NgpPaginationPreviousToken } from './pagination-previous/pagination-previous.token';\nexport { NgpPaginationNext } from './pagination-next/pagination-next.directive';\nexport { NgpPaginationNextToken } from './pagination-next/pagination-next.token';\nexport { NgpPaginationFirst } from './pagination-first/pagination-first.directive';\nexport { NgpPaginationFirstToken } from './pagination-first/pagination-first.token';\nexport { NgpPaginationLast } from './pagination-last/pagination-last.directive';\nexport { NgpPaginationLastToken } from './pagination-last/pagination-last.token';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;AAMG;MAIU,kBAAkB,GAAG,IAAI,cAAc,CAAgB,oBAAoB,EAAE;AAE1F;;AAEG;SACa,gBAAgB,GAAA;AAC9B,IAAA,OAAO,MAAM,CAAC,kBAAkB,CAAC,CAAC;AACpC;;MCea,aAAa,CAAA;AAd1B,IAAA,WAAA,GAAA;AAeE;;AAEG;AACM,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAS,CAAC,EAAE;AAC/B,YAAA,KAAK,EAAE,mBAAmB;AAC3B,SAAA,CAAC,CAAC;AAEH;;AAEG;AACM,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAsB;AACvD,YAAA,KAAK,EAAE,wBAAwB;AAC/B,YAAA,SAAS,EAAE,eAAe;AAC3B,SAAA,CAAC,CAAC;AAEH;;AAEG;AACM,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAwB,KAAK,E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-primitives-pagination.mjs","sources":["../../../../packages/ng-primitives/pagination/src/pagination/pagination.token.ts","../../../../packages/ng-primitives/pagination/src/pagination/pagination.directive.ts","../../../../packages/ng-primitives/pagination/src/pagination-button/pagination-button.token.ts","../../../../packages/ng-primitives/pagination/src/pagination-button/pagination-button.directive.ts","../../../../packages/ng-primitives/pagination/src/pagination-previous/pagination-previous.token.ts","../../../../packages/ng-primitives/pagination/src/pagination-previous/pagination-previous.directive.ts","../../../../packages/ng-primitives/pagination/src/pagination-next/pagination-next.token.ts","../../../../packages/ng-primitives/pagination/src/pagination-next/pagination-next.directive.ts","../../../../packages/ng-primitives/pagination/src/pagination-first/pagination-first.token.ts","../../../../packages/ng-primitives/pagination/src/pagination-first/pagination-first.directive.ts","../../../../packages/ng-primitives/pagination/src/pagination-last/pagination-last.token.ts","../../../../packages/ng-primitives/pagination/src/pagination-last/pagination-last.directive.ts","../../../../packages/ng-primitives/pagination/src/index.ts","../../../../packages/ng-primitives/pagination/src/ng-primitives-pagination.ts"],"sourcesContent":["/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { InjectionToken, inject } from '@angular/core';\nimport type { NgpPagination } from './pagination.directive';\n\nexport const NgpPaginationToken = new InjectionToken<NgpPagination>('NgpPaginationToken');\n\n/**\n * Inject the Pagination directive instance\n */\nexport function injectPagination(): NgpPagination {\n return inject(NgpPaginationToken);\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport {\n booleanAttribute,\n computed,\n Directive,\n input,\n model,\n numberAttribute,\n} from '@angular/core';\nimport { NgpPaginationToken } from './pagination.token';\n\n@Directive({\n standalone: true,\n selector: '[ngpPagination]',\n exportAs: 'ngpPagination',\n providers: [{ provide: NgpPaginationToken, useExisting: NgpPagination }],\n host: {\n role: 'navigation',\n '[attr.data-page]': 'page()',\n '[attr.data-page-count]': 'pageCount()',\n '[attr.data-first-page]': 'firstPage()',\n '[attr.data-last-page]': 'lastPage()',\n '[attr.data-disabled]': 'disabled()',\n },\n})\nexport class NgpPagination {\n /**\n * The currently selected page.\n */\n readonly page = model<number>(1, {\n alias: 'ngpPaginationPage',\n });\n\n /**\n * The total number of pages.\n */\n readonly pageCount = input.required<number, NumberInput>({\n alias: 'ngpPaginationPageCount',\n transform: numberAttribute,\n });\n\n /**\n * Whether the pagination is disabled.\n */\n readonly disabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationDisabled',\n transform: booleanAttribute,\n });\n\n /**\n * Determine if we are on the first page.\n * @internal\n */\n readonly firstPage = computed(() => this.page() === 1);\n\n /**\n * Determine if we are on the last page.\n * @internal\n */\n readonly lastPage = computed(() => this.page() === this.pageCount());\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { InjectionToken, inject } from '@angular/core';\nimport type { NgpPaginationButton } from './pagination-button.directive';\n\nexport const NgpPaginationButtonToken = new InjectionToken<NgpPaginationButton>(\n 'NgpPaginationButtonToken',\n);\n\n/**\n * Inject the PaginationButton directive instance\n */\nexport function injectPaginationButton(): NgpPaginationButton {\n return inject(NgpPaginationButtonToken);\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport {\n booleanAttribute,\n computed,\n Directive,\n HostListener,\n input,\n numberAttribute,\n} from '@angular/core';\nimport { NgpButton } from 'ng-primitives/button';\nimport { NgpCanDisable, NgpDisabledToken } from 'ng-primitives/internal';\nimport { injectPagination } from '../pagination/pagination.token';\nimport { NgpPaginationButtonToken } from './pagination-button.token';\n\n@Directive({\n standalone: true,\n selector: '[ngpPaginationButton]',\n exportAs: 'ngpPaginationButton',\n providers: [\n { provide: NgpPaginationButtonToken, useExisting: NgpPaginationButton },\n { provide: NgpDisabledToken, useExisting: NgpPaginationButton },\n ],\n hostDirectives: [NgpButton],\n host: {\n '[tabindex]': 'disabled() ? -1 : 0',\n '[attr.data-disabled]': 'disabled() || pagination.disabled()',\n '[attr.data-page]': 'page()',\n '[attr.data-selected]': 'selected()',\n '[attr.aria-current]': 'selected()',\n },\n})\nexport class NgpPaginationButton implements NgpCanDisable {\n /**\n * Access the pagination directive.\n */\n protected readonly pagination = injectPagination();\n\n /**\n * Define the page this button represents.\n */\n readonly page = input.required<number, NumberInput>({\n alias: 'ngpPaginationButtonPage',\n transform: numberAttribute,\n });\n\n /**\n * Whether the button is disabled.\n */\n readonly buttonDisabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationButtonDisabled',\n transform: booleanAttribute,\n });\n\n /**\n * Whether the button is disabled.\n */\n readonly disabled = computed(() => this.buttonDisabled() || this.pagination.disabled());\n\n /**\n * Whether this page is the currently selected page.\n */\n protected readonly selected = computed(() => this.page() === this.pagination.page());\n\n /**\n * Go to the page this button represents.\n */\n @HostListener('click')\n goToPage(): void {\n if (this.disabled()) {\n return;\n }\n\n this.pagination.page.set(this.page());\n }\n\n /**\n * A click event may not be fired if this is on an anchor tag and the href is empty.\n * This is a workaround to ensure the click event is fired.\n */\n @HostListener('keydown.enter', ['$event'])\n @HostListener('keydown.space', ['$event'])\n protected onEnter(event: KeyboardEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.goToPage();\n }\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { InjectionToken, inject } from '@angular/core';\nimport type { NgpPaginationPrevious } from './pagination-previous.directive';\n\nexport const NgpPaginationPreviousToken = new InjectionToken<NgpPaginationPrevious>(\n 'NgpPaginationPreviousToken',\n);\n\n/**\n * Inject the PaginationPrevious directive instance\n */\nexport function injectPaginationPrevious(): NgpPaginationPrevious {\n return inject(NgpPaginationPreviousToken);\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, computed, Directive, HostListener, input } from '@angular/core';\nimport { NgpButton } from 'ng-primitives/button';\nimport { NgpCanDisable, NgpDisabledToken } from 'ng-primitives/internal';\nimport { injectPagination } from '../pagination/pagination.token';\nimport { NgpPaginationPreviousToken } from './pagination-previous.token';\n\n@Directive({\n standalone: true,\n selector: '[ngpPaginationPrevious]',\n exportAs: 'ngpPaginationPrevious',\n providers: [\n { provide: NgpPaginationPreviousToken, useExisting: NgpPaginationPrevious },\n { provide: NgpDisabledToken, useExisting: NgpPaginationPrevious },\n ],\n hostDirectives: [NgpButton],\n host: {\n '[tabindex]': 'disabled() ? -1 : 0',\n '[attr.data-disabled]': 'disabled()',\n '[attr.data-first-page]': 'pagination.firstPage()',\n },\n})\nexport class NgpPaginationPrevious implements NgpCanDisable {\n /**\n * Access the pagination directive.\n */\n protected readonly pagination = injectPagination();\n\n /**\n * Whether the button is disabled.\n */\n readonly buttonDisabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationPreviousDisabled',\n transform: booleanAttribute,\n });\n\n /**\n * Whether the button is disabled.\n */\n readonly disabled = computed(\n () => this.buttonDisabled() || this.pagination.disabled() || this.pagination.firstPage(),\n );\n\n /**\n * Go to the previous page.\n */\n @HostListener('click')\n goToPreviousPage() {\n if (this.disabled()) {\n return;\n }\n\n this.pagination.page.set(this.pagination.page() - 1);\n }\n\n /**\n * A click event may not be fired if this is on an anchor tag and the href is empty.\n * This is a workaround to ensure the click event is fired.\n */\n @HostListener('keydown.enter', ['$event'])\n @HostListener('keydown.space', ['$event'])\n protected onEnter(event: KeyboardEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.goToPreviousPage();\n }\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { InjectionToken, inject } from '@angular/core';\nimport type { NgpPaginationNext } from './pagination-next.directive';\n\nexport const NgpPaginationNextToken = new InjectionToken<NgpPaginationNext>(\n 'NgpPaginationNextToken',\n);\n\n/**\n * Inject the PaginationNext directive instance\n */\nexport function injectPaginationNext(): NgpPaginationNext {\n return inject(NgpPaginationNextToken);\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, computed, Directive, HostListener, input } from '@angular/core';\nimport { NgpButton } from 'ng-primitives/button';\nimport { NgpCanDisable, NgpDisabledToken } from 'ng-primitives/internal';\nimport { injectPagination } from '../pagination/pagination.token';\nimport { NgpPaginationNextToken } from './pagination-next.token';\n\n@Directive({\n standalone: true,\n selector: '[ngpPaginationNext]',\n exportAs: 'ngpPaginationNext',\n providers: [\n { provide: NgpPaginationNextToken, useExisting: NgpPaginationNext },\n { provide: NgpDisabledToken, useExisting: NgpPaginationNext },\n ],\n hostDirectives: [NgpButton],\n host: {\n '[tabindex]': 'disabled() ? -1 : 0',\n '[attr.data-disabled]': 'disabled()',\n '[attr.data-last-page]': 'pagination.lastPage()',\n },\n})\nexport class NgpPaginationNext implements NgpCanDisable {\n /**\n * Access the pagination directive.\n */\n protected readonly pagination = injectPagination();\n\n /**\n * Whether the button is disabled.\n */\n readonly buttonDisabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationNextDisabled',\n transform: booleanAttribute,\n });\n\n /**\n * Whether the button is disabled.\n */\n readonly disabled = computed(\n () => this.buttonDisabled() || this.pagination.disabled() || this.pagination.lastPage(),\n );\n\n /**\n * Go to the next page.\n */\n @HostListener('click')\n goToNextPage(): void {\n if (this.disabled()) {\n return;\n }\n\n this.pagination.page.set(this.pagination.page() + 1);\n }\n\n /**\n * A click event may not be fired if this is on an anchor tag and the href is empty.\n * This is a workaround to ensure the click event is fired.\n */\n @HostListener('keydown.enter', ['$event'])\n @HostListener('keydown.space', ['$event'])\n protected onEnter(event: KeyboardEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.goToNextPage();\n }\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { InjectionToken, inject } from '@angular/core';\nimport type { NgpPaginationFirst } from './pagination-first.directive';\n\nexport const NgpPaginationFirstToken = new InjectionToken<NgpPaginationFirst>(\n 'NgpPaginationFirstToken',\n);\n\n/**\n * Inject the PaginationFirst directive instance\n */\nexport function injectPaginationFirst(): NgpPaginationFirst {\n return inject(NgpPaginationFirstToken);\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, computed, Directive, HostListener, input } from '@angular/core';\nimport { NgpButton } from 'ng-primitives/button';\nimport { NgpCanDisable, NgpDisabledToken } from 'ng-primitives/internal';\nimport { injectPagination } from '../pagination/pagination.token';\nimport { NgpPaginationFirstToken } from './pagination-first.token';\n\n@Directive({\n standalone: true,\n selector: '[ngpPaginationFirst]',\n exportAs: 'ngpPaginationFirst',\n providers: [\n { provide: NgpPaginationFirstToken, useExisting: NgpPaginationFirst },\n { provide: NgpDisabledToken, useExisting: NgpPaginationFirst },\n ],\n hostDirectives: [NgpButton],\n host: {\n '[tabindex]': 'disabled() ? -1 : 0',\n '[attr.data-disabled]': 'disabled()',\n '[attr.data-first-page]': 'pagination.firstPage()',\n },\n})\nexport class NgpPaginationFirst implements NgpCanDisable {\n /**\n * Access the pagination directive.\n */\n protected readonly pagination = injectPagination();\n\n /**\n * Whether the button is disabled.\n */\n readonly buttonDisabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationFirstDisabled',\n transform: booleanAttribute,\n });\n\n readonly disabled = computed(\n () => this.buttonDisabled() || this.pagination.disabled() || this.pagination.firstPage(),\n );\n\n /**\n * Go to the first page.\n */\n @HostListener('click')\n goToFirstPage() {\n if (this.disabled()) {\n return;\n }\n\n this.pagination.page.set(1);\n }\n\n /**\n * A click event may not be fired if this is on an anchor tag and the href is empty.\n * This is a workaround to ensure the click event is fired.\n */\n @HostListener('keydown.enter', ['$event'])\n @HostListener('keydown.space', ['$event'])\n protected onEnter(event: KeyboardEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.goToFirstPage();\n }\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { InjectionToken, inject } from '@angular/core';\nimport type { NgpPaginationLast } from './pagination-last.directive';\n\nexport const NgpPaginationLastToken = new InjectionToken<NgpPaginationLast>(\n 'NgpPaginationLastToken',\n);\n\n/**\n * Inject the PaginationLast directive instance\n */\nexport function injectPaginationLast(): NgpPaginationLast {\n return inject(NgpPaginationLastToken);\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, computed, Directive, HostListener, input } from '@angular/core';\nimport { NgpButton } from 'ng-primitives/button';\nimport { NgpCanDisable, NgpDisabledToken } from 'ng-primitives/internal';\nimport { injectPagination } from '../pagination/pagination.token';\nimport { NgpPaginationLastToken } from './pagination-last.token';\n\n@Directive({\n standalone: true,\n selector: '[ngpPaginationLast]',\n exportAs: 'ngpPaginationLast',\n providers: [\n { provide: NgpPaginationLastToken, useExisting: NgpPaginationLast },\n { provide: NgpDisabledToken, useExisting: NgpPaginationLast },\n ],\n hostDirectives: [NgpButton],\n host: {\n '[tabindex]': 'disabled() ? -1 : 0',\n '[attr.data-disabled]': 'disabled()',\n '[attr.data-last-page]': 'pagination.lastPage()',\n },\n})\nexport class NgpPaginationLast implements NgpCanDisable {\n /**\n * Access the pagination directive.\n */\n protected readonly pagination = injectPagination();\n\n /**\n * Whether the button is disabled.\n */\n readonly buttonDisabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpPaginationLastDisabled',\n transform: booleanAttribute,\n });\n\n readonly disabled = computed(\n () => this.buttonDisabled() || this.pagination.disabled() || this.pagination.lastPage(),\n );\n\n /**\n * Go to the last page.\n */\n @HostListener('click')\n goToLastPage(): void {\n if (this.disabled()) {\n return;\n }\n\n this.pagination.page.set(this.pagination.pageCount());\n }\n\n /**\n * A click event may not be fired if this is on an anchor tag and the href is empty.\n * This is a workaround to ensure the click event is fired.\n */\n @HostListener('keydown.enter', ['$event'])\n @HostListener('keydown.space', ['$event'])\n protected onEnter(event: KeyboardEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.goToLastPage();\n }\n}\n","/**\n * Copyright © 2024 Angular Primitives.\n * https://github.com/ng-primitives/ng-primitives\n *\n * This source code is licensed under the Apache 2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nexport { NgpPagination } from './pagination/pagination.directive';\nexport { NgpPaginationToken } from './pagination/pagination.token';\nexport { NgpPaginationButton } from './pagination-button/pagination-button.directive';\nexport { NgpPaginationButtonToken } from './pagination-button/pagination-button.token';\nexport { NgpPaginationPrevious } from './pagination-previous/pagination-previous.directive';\nexport { NgpPaginationPreviousToken } from './pagination-previous/pagination-previous.token';\nexport { NgpPaginationNext } from './pagination-next/pagination-next.directive';\nexport { NgpPaginationNextToken } from './pagination-next/pagination-next.token';\nexport { NgpPaginationFirst } from './pagination-first/pagination-first.directive';\nexport { NgpPaginationFirstToken } from './pagination-first/pagination-first.token';\nexport { NgpPaginationLast } from './pagination-last/pagination-last.directive';\nexport { NgpPaginationLastToken } from './pagination-last/pagination-last.token';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;AAMG;MAIU,kBAAkB,GAAG,IAAI,cAAc,CAAgB,oBAAoB,EAAE;AAE1F;;AAEG;SACa,gBAAgB,GAAA;AAC9B,IAAA,OAAO,MAAM,CAAC,kBAAkB,CAAC,CAAC;AACpC;;MCea,aAAa,CAAA;AAd1B,IAAA,WAAA,GAAA;AAeE;;AAEG;AACM,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAS,CAAC,EAAE;AAC/B,YAAA,KAAK,EAAE,mBAAmB;AAC3B,SAAA,CAAC,CAAC;AAEH;;AAEG;AACM,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAsB;AACvD,YAAA,KAAK,EAAE,wBAAwB;AAC/B,YAAA,SAAS,EAAE,eAAe;AAC3B,SAAA,CAAC,CAAC;AAEH;;AAEG;AACM,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAwB,KAAK,EAAE;AACtD,YAAA,KAAK,EAAE,uBAAuB;AAC9B,YAAA,SAAS,EAAE,gBAAgB;AAC5B,SAAA,CAAC,CAAC;AAEH;;;AAGG;AACM,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;AAEvD;;;AAGG;AACM,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,KAAK,IAAI,CAAC,SAAS,E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sBADX,YAAY;uBAAC,OAAO,CAAA;gBAeX,OAAO,EAAA,CAAA;sBAFhB,YAAY;uBAAC,eAAe,EAAE,CAAC,QAAQ,CAAC,CAAA;;sBACxC,YAAY;uBAAC,eAAe,EAAE,CAAC,QAAQ,CAAC,CAAA;;;AChE3C;;;;;;AAMG;;ACNH;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-primitives",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.3",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/core": ">=18.0.0",
|
|
7
7
|
"@angular/cdk": ">=18.0.0",
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
"esm": "./esm2022/accordion/ng-primitives-accordion.mjs",
|
|
50
50
|
"default": "./fesm2022/ng-primitives-accordion.mjs"
|
|
51
51
|
},
|
|
52
|
-
"./avatar": {
|
|
53
|
-
"types": "./avatar/index.d.ts",
|
|
54
|
-
"esm2022": "./esm2022/avatar/ng-primitives-avatar.mjs",
|
|
55
|
-
"esm": "./esm2022/avatar/ng-primitives-avatar.mjs",
|
|
56
|
-
"default": "./fesm2022/ng-primitives-avatar.mjs"
|
|
57
|
-
},
|
|
58
52
|
"./autofill": {
|
|
59
53
|
"types": "./autofill/index.d.ts",
|
|
60
54
|
"esm2022": "./esm2022/autofill/ng-primitives-autofill.mjs",
|
|
61
55
|
"esm": "./esm2022/autofill/ng-primitives-autofill.mjs",
|
|
62
56
|
"default": "./fesm2022/ng-primitives-autofill.mjs"
|
|
63
57
|
},
|
|
58
|
+
"./avatar": {
|
|
59
|
+
"types": "./avatar/index.d.ts",
|
|
60
|
+
"esm2022": "./esm2022/avatar/ng-primitives-avatar.mjs",
|
|
61
|
+
"esm": "./esm2022/avatar/ng-primitives-avatar.mjs",
|
|
62
|
+
"default": "./fesm2022/ng-primitives-avatar.mjs"
|
|
63
|
+
},
|
|
64
64
|
"./button": {
|
|
65
65
|
"types": "./button/index.d.ts",
|
|
66
66
|
"esm2022": "./esm2022/button/ng-primitives-button.mjs",
|
|
@@ -34,6 +34,11 @@ export declare class NgpPaginationButton implements NgpCanDisable {
|
|
|
34
34
|
* Go to the page this button represents.
|
|
35
35
|
*/
|
|
36
36
|
goToPage(): void;
|
|
37
|
+
/**
|
|
38
|
+
* A click event may not be fired if this is on an anchor tag and the href is empty.
|
|
39
|
+
* This is a workaround to ensure the click event is fired.
|
|
40
|
+
*/
|
|
41
|
+
protected onEnter(event: KeyboardEvent): void;
|
|
37
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgpPaginationButton, never>;
|
|
38
43
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpPaginationButton, "[ngpPaginationButton]", ["ngpPaginationButton"], { "page": { "alias": "ngpPaginationButtonPage"; "required": true; "isSignal": true; }; "buttonDisabled": { "alias": "ngpPaginationButtonDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.NgpButton; inputs: {}; outputs: {}; }]>;
|
|
39
44
|
}
|
|
@@ -23,6 +23,11 @@ export declare class NgpPaginationFirst implements NgpCanDisable {
|
|
|
23
23
|
* Go to the first page.
|
|
24
24
|
*/
|
|
25
25
|
goToFirstPage(): void;
|
|
26
|
+
/**
|
|
27
|
+
* A click event may not be fired if this is on an anchor tag and the href is empty.
|
|
28
|
+
* This is a workaround to ensure the click event is fired.
|
|
29
|
+
*/
|
|
30
|
+
protected onEnter(event: KeyboardEvent): void;
|
|
26
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgpPaginationFirst, never>;
|
|
27
32
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpPaginationFirst, "[ngpPaginationFirst]", ["ngpPaginationFirst"], { "buttonDisabled": { "alias": "ngpPaginationFirstDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.NgpButton; inputs: {}; outputs: {}; }]>;
|
|
28
33
|
}
|
|
@@ -23,6 +23,11 @@ export declare class NgpPaginationLast implements NgpCanDisable {
|
|
|
23
23
|
* Go to the last page.
|
|
24
24
|
*/
|
|
25
25
|
goToLastPage(): void;
|
|
26
|
+
/**
|
|
27
|
+
* A click event may not be fired if this is on an anchor tag and the href is empty.
|
|
28
|
+
* This is a workaround to ensure the click event is fired.
|
|
29
|
+
*/
|
|
30
|
+
protected onEnter(event: KeyboardEvent): void;
|
|
26
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgpPaginationLast, never>;
|
|
27
32
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpPaginationLast, "[ngpPaginationLast]", ["ngpPaginationLast"], { "buttonDisabled": { "alias": "ngpPaginationLastDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.NgpButton; inputs: {}; outputs: {}; }]>;
|
|
28
33
|
}
|
|
@@ -26,6 +26,11 @@ export declare class NgpPaginationNext implements NgpCanDisable {
|
|
|
26
26
|
* Go to the next page.
|
|
27
27
|
*/
|
|
28
28
|
goToNextPage(): void;
|
|
29
|
+
/**
|
|
30
|
+
* A click event may not be fired if this is on an anchor tag and the href is empty.
|
|
31
|
+
* This is a workaround to ensure the click event is fired.
|
|
32
|
+
*/
|
|
33
|
+
protected onEnter(event: KeyboardEvent): void;
|
|
29
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgpPaginationNext, never>;
|
|
30
35
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpPaginationNext, "[ngpPaginationNext]", ["ngpPaginationNext"], { "buttonDisabled": { "alias": "ngpPaginationNextDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.NgpButton; inputs: {}; outputs: {}; }]>;
|
|
31
36
|
}
|
|
@@ -26,6 +26,11 @@ export declare class NgpPaginationPrevious implements NgpCanDisable {
|
|
|
26
26
|
* Go to the previous page.
|
|
27
27
|
*/
|
|
28
28
|
goToPreviousPage(): void;
|
|
29
|
+
/**
|
|
30
|
+
* A click event may not be fired if this is on an anchor tag and the href is empty.
|
|
31
|
+
* This is a workaround to ensure the click event is fired.
|
|
32
|
+
*/
|
|
33
|
+
protected onEnter(event: KeyboardEvent): void;
|
|
29
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgpPaginationPrevious, never>;
|
|
30
35
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpPaginationPrevious, "[ngpPaginationPrevious]", ["ngpPaginationPrevious"], { "buttonDisabled": { "alias": "ngpPaginationPreviousDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.NgpButton; inputs: {}; outputs: {}; }]>;
|
|
31
36
|
}
|