@agentsmith.bgd/as-lib-pagination 21.0.2 → 22.0.5
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.
|
@@ -1,29 +1,53 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, input, output, effect, Component } from '@angular/core';
|
|
2
|
+
import { Injectable, input, output, computed, effect, Component } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
|
|
6
6
|
class AsLibPaginationService {
|
|
7
7
|
constructor() { }
|
|
8
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: AsLibPaginationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: AsLibPaginationService, providedIn: 'root' });
|
|
10
10
|
}
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: AsLibPaginationService, decorators: [{
|
|
12
12
|
type: Injectable,
|
|
13
13
|
args: [{
|
|
14
|
-
providedIn: 'root'
|
|
14
|
+
providedIn: 'root',
|
|
15
15
|
}]
|
|
16
16
|
}], ctorParameters: () => [] });
|
|
17
17
|
|
|
18
|
+
const ICON_SETS = {
|
|
19
|
+
fa: {
|
|
20
|
+
first: 'fa fa-angle-double-left',
|
|
21
|
+
prev: 'fa fa-angle-left',
|
|
22
|
+
next: 'fa fa-angle-right',
|
|
23
|
+
last: 'fa fa-angle-double-right',
|
|
24
|
+
},
|
|
25
|
+
bi: {
|
|
26
|
+
first: 'bi bi-chevron-double-left',
|
|
27
|
+
prev: 'bi bi-chevron-left',
|
|
28
|
+
next: 'bi bi-chevron-right',
|
|
29
|
+
last: 'bi bi-chevron-double-right',
|
|
30
|
+
},
|
|
31
|
+
};
|
|
18
32
|
class AsLibPaginationComponent {
|
|
19
|
-
first = input(false,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
33
|
+
first = input(false, /* @ts-ignore */
|
|
34
|
+
...(ngDevMode ? [{ debugName: "first" }] : /* istanbul ignore next */ []));
|
|
35
|
+
last = input(false, /* @ts-ignore */
|
|
36
|
+
...(ngDevMode ? [{ debugName: "last" }] : /* istanbul ignore next */ []));
|
|
37
|
+
align = input('', /* @ts-ignore */
|
|
38
|
+
...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
39
|
+
enableLog = input(false, /* @ts-ignore */
|
|
40
|
+
...(ngDevMode ? [{ debugName: "enableLog" }] : /* istanbul ignore next */ []));
|
|
41
|
+
iconSet = input('fa', /* @ts-ignore */
|
|
42
|
+
...(ngDevMode ? [{ debugName: "iconSet" }] : /* istanbul ignore next */ []));
|
|
23
43
|
pageChange = output();
|
|
24
44
|
arr = [];
|
|
25
|
-
totalPages = input(0,
|
|
26
|
-
|
|
45
|
+
totalPages = input(0, /* @ts-ignore */
|
|
46
|
+
...(ngDevMode ? [{ debugName: "totalPages" }] : /* istanbul ignore next */ []));
|
|
47
|
+
page = input(0, /* @ts-ignore */
|
|
48
|
+
...(ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []));
|
|
49
|
+
icons = computed(() => ICON_SETS[this.iconSet()], /* @ts-ignore */
|
|
50
|
+
...(ngDevMode ? [{ debugName: "icons" }] : /* istanbul ignore next */ []));
|
|
27
51
|
constructor() {
|
|
28
52
|
effect(() => {
|
|
29
53
|
console.log(`The count is:`, this.totalPages(), this.page());
|
|
@@ -53,15 +77,13 @@ class AsLibPaginationComponent {
|
|
|
53
77
|
myIndexFn(index, item) {
|
|
54
78
|
return String(index); // Use index to uniquely identify each item
|
|
55
79
|
}
|
|
56
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
57
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
80
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: AsLibPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
81
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: AsLibPaginationComponent, isStandalone: true, selector: "as-lib-pagination", inputs: { first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, last: { classPropertyName: "last", publicName: "last", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, enableLog: { classPropertyName: "enableLog", publicName: "enableLog", isSignal: true, isRequired: false, transformFunction: null }, iconSet: { classPropertyName: "iconSet", publicName: "iconSet", isSignal: true, isRequired: false, transformFunction: null }, totalPages: { classPropertyName: "totalPages", publicName: "totalPages", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChange: "pageChange" }, ngImport: i0, template: "<ul class=\"pagination {{ align() }}\">\n\t<li [class.disabled]=\"first()\" class=\"page-item\"\n\t\t><a (click)=\"pageChange.emit(0)\" class=\"page-link\">\n\t\t\t<i [class]=\"icons().first\"></i>\n\t\t</a\n\t></li>\n\t<li [class.disabled]=\"first()\" class=\"page-item\"\n\t\t><a (click)=\"pageChange.emit(page() - 1)\" class=\"page-link\">\n\t\t\t<i [class]=\"icons().prev\"></i>\n\t\t</a>\n\t</li>\n\n\t<ng-container *ngFor=\"let x of arr; trackBy: myIndexFn\">\n\t\t<ng-container *ngIf=\"x !== -1; else disabledPage\">\n\t\t\t<li class=\"page-item d-none d-sm-block\" [class.active]=\"x === page()\">\n\t\t\t\t<a (click)=\"pageChange.emit(x)\" class=\"page-link\">{{ 1 + x }}</a>\n\t\t\t</li>\n\t\t</ng-container>\n\t\t<ng-template #disabledPage>\n\t\t\t<li class=\"page-item disabled d-none d-sm-block\">\n\t\t\t\t<a class=\"page-link\">...</a>\n\t\t\t</li>\n\t\t</ng-template>\n\t</ng-container>\n\n\t<li [class.disabled]=\"last()\" class=\"page-item\"\n\t\t><a (click)=\"pageChange.emit(page() + 1)\" class=\"page-link\">\n\t\t\t<i [class]=\"icons().next\"></i>\n\t\t</a>\n\t</li>\n\t<li [class.disabled]=\"last()\" class=\"page-item\"\n\t\t><a (click)=\"pageChange.emit(totalPages() - 1)\" class=\"page-link\">\n\t\t\t<i [class]=\"icons().last\"></i>\n\t\t</a\n\t></li>\n</ul>\n", styles: [".pagination.right{justify-content:flex-end}.pagination.center{justify-content:center}a.page-link{cursor:pointer}@media(max-width:575px){ul.pagination{justify-content:center!important}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
58
82
|
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: AsLibPaginationComponent, decorators: [{
|
|
60
84
|
type: Component,
|
|
61
|
-
args: [{ selector: 'as-lib-pagination', imports: [
|
|
62
|
-
|
|
63
|
-
], standalone: true, template: "<ul class=\"pagination {{ align() }}\">\n <li [class.disabled]=\"first()\" class=\"page-item\"\n ><a (click)=\"pageChange.emit(0)\" class=\"page-link\"> <i class=\"fa fa-angle-double-left\"></i> </a\n ></li>\n <li [class.disabled]=\"first()\" class=\"page-item\"\n ><a (click)=\"pageChange.emit(page() - 1)\" class=\"page-link\"><i class=\"fa fa-angle-left\"></i></a>\n </li>\n\n <ng-container *ngFor=\"let x of arr; trackBy:myIndexFn\">\n <ng-container *ngIf=\"x !== -1; else disabledPage\">\n <li class=\"page-item d-none d-sm-block\" [class.active]=\"x === page()\">\n <a (click)=\"pageChange.emit(x)\" class=\"page-link\">{{ 1 + x }}</a>\n </li>\n </ng-container>\n <ng-template #disabledPage>\n <li class=\"page-item disabled d-none d-sm-block\">\n <a class=\"page-link\">...</a>\n </li>\n </ng-template>\n\n </ng-container>\n\n\n <li [class.disabled]=\"last()\" class=\"page-item\"\n ><a (click)=\"pageChange.emit(page() + 1)\" class=\"page-link\"><i class=\"fa fa-angle-right\"></i></a>\n </li>\n <li [class.disabled]=\"last()\" class=\"page-item\"\n ><a (click)=\"pageChange.emit(totalPages() - 1)\" class=\"page-link\"> <i class=\"fa fa-angle-double-right\"></i> </a\n ></li>\n</ul>\n", styles: [".pagination.right{justify-content:flex-end}.pagination.center{justify-content:center}a.page-link{cursor:pointer}@media(max-width:575px){ul.pagination{justify-content:center!important}}\n"] }]
|
|
64
|
-
}], ctorParameters: () => [], propDecorators: { first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }], last: [{ type: i0.Input, args: [{ isSignal: true, alias: "last", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], enableLog: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableLog", required: false }] }], pageChange: [{ type: i0.Output, args: ["pageChange"] }], totalPages: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalPages", required: false }] }], page: [{ type: i0.Input, args: [{ isSignal: true, alias: "page", required: false }] }] } });
|
|
85
|
+
args: [{ selector: 'as-lib-pagination', imports: [CommonModule], standalone: true, template: "<ul class=\"pagination {{ align() }}\">\n\t<li [class.disabled]=\"first()\" class=\"page-item\"\n\t\t><a (click)=\"pageChange.emit(0)\" class=\"page-link\">\n\t\t\t<i [class]=\"icons().first\"></i>\n\t\t</a\n\t></li>\n\t<li [class.disabled]=\"first()\" class=\"page-item\"\n\t\t><a (click)=\"pageChange.emit(page() - 1)\" class=\"page-link\">\n\t\t\t<i [class]=\"icons().prev\"></i>\n\t\t</a>\n\t</li>\n\n\t<ng-container *ngFor=\"let x of arr; trackBy: myIndexFn\">\n\t\t<ng-container *ngIf=\"x !== -1; else disabledPage\">\n\t\t\t<li class=\"page-item d-none d-sm-block\" [class.active]=\"x === page()\">\n\t\t\t\t<a (click)=\"pageChange.emit(x)\" class=\"page-link\">{{ 1 + x }}</a>\n\t\t\t</li>\n\t\t</ng-container>\n\t\t<ng-template #disabledPage>\n\t\t\t<li class=\"page-item disabled d-none d-sm-block\">\n\t\t\t\t<a class=\"page-link\">...</a>\n\t\t\t</li>\n\t\t</ng-template>\n\t</ng-container>\n\n\t<li [class.disabled]=\"last()\" class=\"page-item\"\n\t\t><a (click)=\"pageChange.emit(page() + 1)\" class=\"page-link\">\n\t\t\t<i [class]=\"icons().next\"></i>\n\t\t</a>\n\t</li>\n\t<li [class.disabled]=\"last()\" class=\"page-item\"\n\t\t><a (click)=\"pageChange.emit(totalPages() - 1)\" class=\"page-link\">\n\t\t\t<i [class]=\"icons().last\"></i>\n\t\t</a\n\t></li>\n</ul>\n", styles: [".pagination.right{justify-content:flex-end}.pagination.center{justify-content:center}a.page-link{cursor:pointer}@media(max-width:575px){ul.pagination{justify-content:center!important}}\n"] }]
|
|
86
|
+
}], ctorParameters: () => [], propDecorators: { first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }], last: [{ type: i0.Input, args: [{ isSignal: true, alias: "last", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], enableLog: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableLog", required: false }] }], iconSet: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconSet", required: false }] }], pageChange: [{ type: i0.Output, args: ["pageChange"] }], totalPages: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalPages", required: false }] }], page: [{ type: i0.Input, args: [{ isSignal: true, alias: "page", required: false }] }] } });
|
|
65
87
|
|
|
66
88
|
/*
|
|
67
89
|
* Public API Surface of as-lib-pagination
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentsmith.bgd-as-lib-pagination.mjs","sources":["../../../projects/as-lib-pagination/src/lib/as-lib-pagination.service.ts","../../../projects/as-lib-pagination/src/lib/as-lib-pagination.component.ts","../../../projects/as-lib-pagination/src/lib/as-lib-pagination.component.html","../../../projects/as-lib-pagination/src/public-api.ts","../../../projects/as-lib-pagination/src/agentsmith.bgd-as-lib-pagination.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n
|
|
1
|
+
{"version":3,"file":"agentsmith.bgd-as-lib-pagination.mjs","sources":["../../../projects/as-lib-pagination/src/lib/as-lib-pagination.service.ts","../../../projects/as-lib-pagination/src/lib/as-lib-pagination.component.ts","../../../projects/as-lib-pagination/src/lib/as-lib-pagination.component.html","../../../projects/as-lib-pagination/src/public-api.ts","../../../projects/as-lib-pagination/src/agentsmith.bgd-as-lib-pagination.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n\tprovidedIn: 'root',\n})\nexport class AsLibPaginationService {\n\tconstructor() {}\n}\n","import { Component, computed, effect, input, output } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nconst ICON_SETS = {\n\tfa: {\n\t\tfirst: 'fa fa-angle-double-left',\n\t\tprev: 'fa fa-angle-left',\n\t\tnext: 'fa fa-angle-right',\n\t\tlast: 'fa fa-angle-double-right',\n\t},\n\tbi: {\n\t\tfirst: 'bi bi-chevron-double-left',\n\t\tprev: 'bi bi-chevron-left',\n\t\tnext: 'bi bi-chevron-right',\n\t\tlast: 'bi bi-chevron-double-right',\n\t},\n};\n\n@Component({\n\tselector: 'as-lib-pagination',\n\timports: [CommonModule],\n\ttemplateUrl: './as-lib-pagination.component.html',\n\tstyleUrl: './as-lib-pagination.component.scss',\n\tstandalone: true,\n})\nexport class AsLibPaginationComponent {\n\tfirst = input(false);\n\tlast = input(false);\n\talign = input<'' | 'justify-content-center' | 'justify-content-end'>('');\n\tenableLog = input(false);\n\ticonSet = input<'fa' | 'bi'>('fa');\n\tpageChange = output<number>();\n\tarr: number[] = [];\n\ttotalPages = input(0);\n\tpage = input(0);\n\n\ticons = computed(() => ICON_SETS[this.iconSet()]);\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconsole.log(`The count is:`, this.totalPages(), this.page());\n\t\t\tthis.calculatePager();\n\t\t});\n\t}\n\n\tcalculatePager(): void {\n\t\tthis.arr = [];\n\t\tconst midd = this.page() <= 4 || this.page() >= this.totalPages() - 4 ? Math.floor(this.totalPages() / 2) : 0;\n\t\tfor (let num = 0; num < this.totalPages(); num++) {\n\t\t\tif (num < 2 || 2 >= Math.abs(this.page() - num) || 1 >= Math.abs(midd - num) || num === this.page() || num >= this.totalPages() - 2) {\n\t\t\t\tthis.arr.push(num);\n\t\t\t} else if (this.arr[this.arr.length - 1] !== -1) {\n\t\t\t\tthis.arr.push(-1);\n\t\t\t}\n\t\t}\n\t}\n\n\tngOnInit() {\n\t\tthis.calculatePager();\n\t}\n\n\tlog(value: any, ...rest: any[]): void {\n\t\tif (this.enableLog() || localStorage.getItem('loggerEnable')) {\n\t\t\tconsole.log('%c DEBUG ', 'background: gray; color: white; font-weight: bold;', `AS Pagination -> ${value}`, ...rest);\n\t\t}\n\t}\n\n\tmyIndexFn(index: number, item: any): string {\n\t\treturn String(index); // Use index to uniquely identify each item\n\t}\n}\n","<ul class=\"pagination {{ align() }}\">\n\t<li [class.disabled]=\"first()\" class=\"page-item\"\n\t\t><a (click)=\"pageChange.emit(0)\" class=\"page-link\">\n\t\t\t<i [class]=\"icons().first\"></i>\n\t\t</a\n\t></li>\n\t<li [class.disabled]=\"first()\" class=\"page-item\"\n\t\t><a (click)=\"pageChange.emit(page() - 1)\" class=\"page-link\">\n\t\t\t<i [class]=\"icons().prev\"></i>\n\t\t</a>\n\t</li>\n\n\t<ng-container *ngFor=\"let x of arr; trackBy: myIndexFn\">\n\t\t<ng-container *ngIf=\"x !== -1; else disabledPage\">\n\t\t\t<li class=\"page-item d-none d-sm-block\" [class.active]=\"x === page()\">\n\t\t\t\t<a (click)=\"pageChange.emit(x)\" class=\"page-link\">{{ 1 + x }}</a>\n\t\t\t</li>\n\t\t</ng-container>\n\t\t<ng-template #disabledPage>\n\t\t\t<li class=\"page-item disabled d-none d-sm-block\">\n\t\t\t\t<a class=\"page-link\">...</a>\n\t\t\t</li>\n\t\t</ng-template>\n\t</ng-container>\n\n\t<li [class.disabled]=\"last()\" class=\"page-item\"\n\t\t><a (click)=\"pageChange.emit(page() + 1)\" class=\"page-link\">\n\t\t\t<i [class]=\"icons().next\"></i>\n\t\t</a>\n\t</li>\n\t<li [class.disabled]=\"last()\" class=\"page-item\"\n\t\t><a (click)=\"pageChange.emit(totalPages() - 1)\" class=\"page-link\">\n\t\t\t<i [class]=\"icons().last\"></i>\n\t\t</a\n\t></li>\n</ul>\n","/*\n * Public API Surface of as-lib-pagination\n */\n\nexport * from './lib/as-lib-pagination.service';\nexport * from './lib/as-lib-pagination.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAKa,sBAAsB,CAAA;AAClC,IAAA,WAAA,GAAA,EAAe;uGADH,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAtB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,cAFtB,MAAM,EAAA,CAAA;;2FAEN,sBAAsB,EAAA,UAAA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,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECzBrC,ywCAoCA,EAAA,MAAA,EAAA,CAAA,4LAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDhBW,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FAKV,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAPpC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,mBAAmB,EAAA,OAAA,EACpB,CAAC,YAAY,CAAC,cAGX,IAAI,EAAA,QAAA,EAAA,ywCAAA,EAAA,MAAA,EAAA,CAAA,4LAAA,CAAA,EAAA;;;AEvBjB;;AAEG;;ACFH;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentsmith.bgd/as-lib-pagination",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.5",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
7
|
-
"font-awesome": "4.7.0"
|
|
5
|
+
"@angular/common": "^22.0.0",
|
|
6
|
+
"@angular/core": "^22.0.0"
|
|
8
7
|
},
|
|
9
8
|
"dependencies": {
|
|
10
9
|
"tslib": "^2.8.1"
|
|
@@ -20,5 +19,6 @@
|
|
|
20
19
|
"types": "./types/agentsmith.bgd-as-lib-pagination.d.ts",
|
|
21
20
|
"default": "./fesm2022/agentsmith.bgd-as-lib-pagination.mjs"
|
|
22
21
|
}
|
|
23
|
-
}
|
|
22
|
+
},
|
|
23
|
+
"type": "module"
|
|
24
24
|
}
|
|
@@ -11,17 +11,29 @@ declare class AsLibPaginationComponent {
|
|
|
11
11
|
last: _angular_core.InputSignal<boolean>;
|
|
12
12
|
align: _angular_core.InputSignal<"" | "justify-content-center" | "justify-content-end">;
|
|
13
13
|
enableLog: _angular_core.InputSignal<boolean>;
|
|
14
|
+
iconSet: _angular_core.InputSignal<"fa" | "bi">;
|
|
14
15
|
pageChange: _angular_core.OutputEmitterRef<number>;
|
|
15
16
|
arr: number[];
|
|
16
17
|
totalPages: _angular_core.InputSignal<number>;
|
|
17
18
|
page: _angular_core.InputSignal<number>;
|
|
19
|
+
icons: _angular_core.Signal<{
|
|
20
|
+
first: string;
|
|
21
|
+
prev: string;
|
|
22
|
+
next: string;
|
|
23
|
+
last: string;
|
|
24
|
+
} | {
|
|
25
|
+
first: string;
|
|
26
|
+
prev: string;
|
|
27
|
+
next: string;
|
|
28
|
+
last: string;
|
|
29
|
+
}>;
|
|
18
30
|
constructor();
|
|
19
31
|
calculatePager(): void;
|
|
20
32
|
ngOnInit(): void;
|
|
21
33
|
log(value: any, ...rest: any[]): void;
|
|
22
34
|
myIndexFn(index: number, item: any): string;
|
|
23
35
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AsLibPaginationComponent, never>;
|
|
24
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AsLibPaginationComponent, "as-lib-pagination", never, { "first": { "alias": "first"; "required": false; "isSignal": true; }; "last": { "alias": "last"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "enableLog": { "alias": "enableLog"; "required": false; "isSignal": true; }; "totalPages": { "alias": "totalPages"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; }, { "pageChange": "pageChange"; }, never, never, true, never>;
|
|
36
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AsLibPaginationComponent, "as-lib-pagination", never, { "first": { "alias": "first"; "required": false; "isSignal": true; }; "last": { "alias": "last"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "enableLog": { "alias": "enableLog"; "required": false; "isSignal": true; }; "iconSet": { "alias": "iconSet"; "required": false; "isSignal": true; }; "totalPages": { "alias": "totalPages"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; }, { "pageChange": "pageChange"; }, never, never, true, never>;
|
|
25
37
|
}
|
|
26
38
|
|
|
27
39
|
export { AsLibPaginationComponent, AsLibPaginationService };
|