@sixbell-telco/sdk 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +88 -0
- package/README.md +183 -70
- package/_index.css +132 -53
- package/components/data-table/expandable/expandable.component.d.ts +129 -0
- package/components/data-table/index.d.ts +5 -0
- package/components/data-table/public-api.d.ts +7 -0
- package/components/data-table/selection/selection.component.d.ts +41 -0
- package/components/data-table/sortable-header/sortable-header.component.d.ts +61 -0
- package/components/data-table/src/data-table-context.service.d.ts +18 -0
- package/components/data-table/src/data-table.component.d.ts +158 -0
- package/components/data-table/src/models.d.ts +58 -0
- package/components/data-table/sub-component-toggle/index.d.ts +1 -0
- package/components/data-table/sub-component-toggle/sub-component-toggle.component.d.ts +12 -0
- package/components/dialog/dialog-title/dialog-title.component.d.ts +4 -0
- package/components/dialog/src/dialog.component.d.ts +22 -8
- package/components/dropdown/dropdown-group/dropdown-group.component.d.ts +1 -1
- package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +2 -2
- package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +2 -2
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +2 -2
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +2 -2
- package/components/forms/datepicker/constants/datepicker.constants.d.ts +5 -0
- package/components/forms/datepicker/public-api.d.ts +2 -1
- package/components/forms/datepicker/src/datepicker.component.d.ts +155 -44
- package/components/forms/datepicker/types/datepicker.types.d.ts +7 -0
- package/components/overlay/index.d.ts +5 -0
- package/components/overlay/overlay-content/overlay-content.component.d.ts +23 -0
- package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +48 -0
- package/components/overlay/public-api.d.ts +3 -0
- package/components/overlay/src/overlay.component.d.ts +158 -0
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +8 -3
- package/components/paginator/pipes/pagination.pipe.d.ts +40 -0
- package/components/paginator/public-api.d.ts +1 -0
- package/components/paginator/src/paginator.component.d.ts +14 -12
- package/components/table/src/table.component.d.ts +9 -6
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +103 -0
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +1091 -0
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +63 -12
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +12 -10
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +4 -5
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +439 -164
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +408 -0
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +150 -35
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +15 -6
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs +154 -0
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-sync.mjs +84 -0
- package/fesm2022/sixbell-telco-sdk-utils-sync.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +3 -4
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
- package/package.json +51 -30
- package/utils/date/index.d.ts +5 -0
- package/utils/date/public-api.d.ts +1 -0
- package/utils/date/src/date-utils.d.ts +81 -0
- package/utils/sync/index.d.ts +5 -0
- package/utils/sync/public-api.d.ts +1 -0
- package/utils/sync/src/sync.d.ts +37 -0
- package/utils/translation/public-api.d.ts +3 -4
- package/components/forms/datepicker/src/datepicker-format-month.pipe.d.ts +0 -10
- package/sixbell-telco-sdk-1.2.0.tgz +0 -0
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, computed, Component, output, model, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
+
import { input, computed, Component, Pipe, output, model, ChangeDetectionStrategy } from '@angular/core';
|
|
3
3
|
import { IconComponent } from '@sixbell-telco/sdk/components/icon';
|
|
4
4
|
import { matKeyboardArrowLeftOutline, matKeyboardDoubleArrowLeftOutline, matKeyboardArrowRightOutline, matKeyboardDoubleArrowRightOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
|
|
5
5
|
import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
|
|
6
6
|
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
7
7
|
import { cva } from 'class-variance-authority';
|
|
8
8
|
import { CommonModule } from '@angular/common';
|
|
9
|
-
import * as i1 from 'ngx-pagination';
|
|
10
|
-
import { NgxPaginationModule } from 'ngx-pagination';
|
|
11
9
|
|
|
12
10
|
/**
|
|
13
11
|
* @internal
|
|
@@ -71,6 +69,14 @@ const paginationItemComponent = cva([], {
|
|
|
71
69
|
'min-w-[10px]',
|
|
72
70
|
'p-0',
|
|
73
71
|
],
|
|
72
|
+
// New variant for ellipsis
|
|
73
|
+
ellipsis: [
|
|
74
|
+
'px-2',
|
|
75
|
+
'py-1',
|
|
76
|
+
'text-base-content',
|
|
77
|
+
'pointer-events-none', // Make it non-clickable
|
|
78
|
+
'select-none', // Prevent text selection
|
|
79
|
+
],
|
|
74
80
|
},
|
|
75
81
|
},
|
|
76
82
|
compoundVariants: [],
|
|
@@ -135,6 +141,11 @@ class PaginationItemComponent {
|
|
|
135
141
|
* @defaultValue false
|
|
136
142
|
*/
|
|
137
143
|
active = input(false);
|
|
144
|
+
/**
|
|
145
|
+
* Disabled state styling
|
|
146
|
+
* @defaultValue false
|
|
147
|
+
*/
|
|
148
|
+
disabled = input(false); // New input for disabled state
|
|
138
149
|
/**
|
|
139
150
|
* @internal
|
|
140
151
|
* Computed class string for the pagination item
|
|
@@ -143,17 +154,55 @@ class PaginationItemComponent {
|
|
|
143
154
|
return cn(paginationItemComponent({
|
|
144
155
|
variant: this.variant(),
|
|
145
156
|
}), {
|
|
146
|
-
'bg-secondary
|
|
157
|
+
'bg-secondary border-secondary text-secondary-content': this.active() && this.variant() !== 'dots',
|
|
158
|
+
'opacity-50 cursor-not-allowed': this.disabled(), // Add disabled styles
|
|
147
159
|
}, {
|
|
148
160
|
'hover:scale-100 hover:bg-secondary/100 w-[16px] h-[16px] bg-secondary border-secondary text-secondary-content': this.active() && this.variant() === 'dots',
|
|
149
161
|
});
|
|
150
162
|
});
|
|
151
163
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: PaginationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
152
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: PaginationItemComponent, isStandalone: true, selector: "st-pagination-item", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, number: { classPropertyName: "number", publicName: "number", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let variantVar = this.variant();\n@let componentClassVar = this.componentClass();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else if (variantVar === 'icon') {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" size=\"sm\"></st-icon>\n\t</button>\n} @else if (variantVar === 'dots') {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<span></span>\n\t</button>\n} @else {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n}\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }] });
|
|
164
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: PaginationItemComponent, isStandalone: true, selector: "st-pagination-item", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, number: { classPropertyName: "number", publicName: "number", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let variantVar = this.variant();\n@let componentClassVar = this.componentClass();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else if (variantVar === 'icon') {\n\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" size=\"sm\"></st-icon>\n\t</button>\n} @else if (variantVar === 'dots') {\n\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t<span></span>\n\t</button>\n} @else if (variantVar === 'ellipsis') {\n\t<!-- Ellipsis button is inherently not interactive -->\n\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"true\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else {\n\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n}\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }] });
|
|
153
165
|
}
|
|
154
166
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: PaginationItemComponent, decorators: [{
|
|
155
167
|
type: Component,
|
|
156
|
-
args: [{ selector: 'st-pagination-item', imports: [IconComponent, TypographyDirective], template: "@let variantVar = this.variant();\n@let componentClassVar = this.componentClass();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else if (variantVar === 'icon') {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" size=\"sm\"></st-icon>\n\t</button>\n} @else if (variantVar === 'dots') {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<span></span>\n\t</button>\n} @else {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n}\n" }]
|
|
168
|
+
args: [{ selector: 'st-pagination-item', imports: [IconComponent, TypographyDirective], standalone: true, template: "@let variantVar = this.variant();\n@let componentClassVar = this.componentClass();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else if (variantVar === 'icon') {\n\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" size=\"sm\"></st-icon>\n\t</button>\n} @else if (variantVar === 'dots') {\n\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t<span></span>\n\t</button>\n} @else if (variantVar === 'ellipsis') {\n\t<!-- Ellipsis button is inherently not interactive -->\n\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"true\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else {\n\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n}\n" }]
|
|
169
|
+
}] });
|
|
170
|
+
|
|
171
|
+
// projects/sdk/components/paginator/src/pagination.pipe.ts
|
|
172
|
+
/**
|
|
173
|
+
* A pipe to manually paginate an array of items.
|
|
174
|
+
*
|
|
175
|
+
* @remarks
|
|
176
|
+
* This pipe takes an array and a pagination configuration object (currentPage, itemsPerPage)
|
|
177
|
+
* and returns a sliced version of the array, representing the items for the current page.
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* ```html
|
|
181
|
+
* @for (item of items | pagination: { currentPage: 2, itemsPerPage: 10 }; track item.id) {
|
|
182
|
+
* <li>{{ item.name }}</li>
|
|
183
|
+
* }
|
|
184
|
+
* ```
|
|
185
|
+
*/
|
|
186
|
+
class PaginationPipe {
|
|
187
|
+
transform(items, pagination) {
|
|
188
|
+
if (!items || !Array.isArray(items) || pagination?.currentPage === undefined || pagination?.itemsPerPage === undefined) {
|
|
189
|
+
return items;
|
|
190
|
+
}
|
|
191
|
+
const currentPage = Math.max(1, pagination.currentPage);
|
|
192
|
+
const itemsPerPage = Math.max(1, pagination.itemsPerPage);
|
|
193
|
+
const startIndex = (currentPage - 1) * itemsPerPage;
|
|
194
|
+
const endIndex = startIndex + itemsPerPage;
|
|
195
|
+
return items.slice(startIndex, endIndex);
|
|
196
|
+
}
|
|
197
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: PaginationPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
198
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.0", ngImport: i0, type: PaginationPipe, isStandalone: true, name: "paginate" });
|
|
199
|
+
}
|
|
200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: PaginationPipe, decorators: [{
|
|
201
|
+
type: Pipe,
|
|
202
|
+
args: [{
|
|
203
|
+
name: 'paginate',
|
|
204
|
+
standalone: true, // Use standalone pipes for better tree-shaking and consistency
|
|
205
|
+
}]
|
|
157
206
|
}] });
|
|
158
207
|
|
|
159
208
|
/**
|
|
@@ -161,8 +210,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
161
210
|
*
|
|
162
211
|
* @remarks
|
|
163
212
|
* Supports both traditional numbered pagination and dot indicators.
|
|
164
|
-
*
|
|
165
|
-
* custom styling and navigation controls.
|
|
213
|
+
* Provides custom styling and navigation controls.
|
|
166
214
|
*
|
|
167
215
|
* @example
|
|
168
216
|
* ```html
|
|
@@ -189,10 +237,11 @@ class PaginatorComponent {
|
|
|
189
237
|
*/
|
|
190
238
|
paginatorId = input('paginator');
|
|
191
239
|
/**
|
|
192
|
-
* Maximum number of visible page items
|
|
193
|
-
*
|
|
240
|
+
* Maximum number of visible numeric page items (excluding arrows and ellipses).
|
|
241
|
+
* This controls the window of page numbers shown around the current page.
|
|
242
|
+
* @defaultValue 4
|
|
194
243
|
*/
|
|
195
|
-
maxSize = input(
|
|
244
|
+
maxSize = input(4);
|
|
196
245
|
/**
|
|
197
246
|
* Pagination display variant
|
|
198
247
|
* @defaultValue 'default'
|
|
@@ -208,12 +257,7 @@ class PaginatorComponent {
|
|
|
208
257
|
*/
|
|
209
258
|
pages = input(0);
|
|
210
259
|
/**
|
|
211
|
-
*
|
|
212
|
-
* Computed array of page numbers
|
|
213
|
-
*/
|
|
214
|
-
pageCounter = computed(() => Array.from({ length: this.pages() }, (_, i) => i + 1));
|
|
215
|
-
/**
|
|
216
|
-
* Current active page
|
|
260
|
+
* Current active page (1-based)
|
|
217
261
|
* @defaultValue 1
|
|
218
262
|
*/
|
|
219
263
|
currentPage = model(1);
|
|
@@ -237,62 +281,133 @@ class PaginatorComponent {
|
|
|
237
281
|
* Double right arrow icon reference
|
|
238
282
|
*/
|
|
239
283
|
iconDoubleArrowRight = matKeyboardDoubleArrowRightOutline;
|
|
284
|
+
/**
|
|
285
|
+
* @internal
|
|
286
|
+
* Computed array of page numbers and ellipses for display.
|
|
287
|
+
* Implements the logic to show a limited range of pages around the current page
|
|
288
|
+
* with '...' for skipped pages.
|
|
289
|
+
*/
|
|
290
|
+
pageNumbersForDisplay = computed(() => {
|
|
291
|
+
const totalPages = this.pages();
|
|
292
|
+
const currentPage = this.currentPage();
|
|
293
|
+
const maxSize = this.maxSize(); // Number of visible numeric page links
|
|
294
|
+
const pages = [];
|
|
295
|
+
if (totalPages <= 1) {
|
|
296
|
+
return [];
|
|
297
|
+
}
|
|
298
|
+
let startRange;
|
|
299
|
+
let endRange;
|
|
300
|
+
// Calculate the range of pages to display around the current page
|
|
301
|
+
if (totalPages <= maxSize) {
|
|
302
|
+
// If total pages are less than or equal to maxSize, show all pages
|
|
303
|
+
startRange = 1;
|
|
304
|
+
endRange = totalPages;
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
// Calculate the range to center the currentPage
|
|
308
|
+
const half = Math.floor(maxSize / 2);
|
|
309
|
+
startRange = currentPage - half;
|
|
310
|
+
endRange = currentPage + (maxSize - 1 - half);
|
|
311
|
+
// Adjust boundary conditions
|
|
312
|
+
if (startRange < 1) {
|
|
313
|
+
startRange = 1;
|
|
314
|
+
endRange = maxSize;
|
|
315
|
+
}
|
|
316
|
+
if (endRange > totalPages) {
|
|
317
|
+
endRange = totalPages;
|
|
318
|
+
startRange = totalPages - maxSize + 1;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
// Add first page and leading ellipsis if necessary
|
|
322
|
+
if (startRange > 1) {
|
|
323
|
+
pages.push(1);
|
|
324
|
+
if (startRange > 2) {
|
|
325
|
+
// Only add ellipsis if there's at least one page between 1 and startRange
|
|
326
|
+
pages.push('...');
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
// Add pages within the calculated range
|
|
330
|
+
for (let i = startRange; i <= endRange; i++) {
|
|
331
|
+
pages.push(i);
|
|
332
|
+
}
|
|
333
|
+
// Add trailing ellipsis and last page if necessary
|
|
334
|
+
if (endRange < totalPages) {
|
|
335
|
+
if (endRange < totalPages - 1) {
|
|
336
|
+
// Only add ellipsis if there's at least one page between endRange and totalPages
|
|
337
|
+
pages.push('...');
|
|
338
|
+
}
|
|
339
|
+
// Ensure last page is only added once and if it's not already in the array
|
|
340
|
+
if (!pages.includes(totalPages)) {
|
|
341
|
+
pages.push(totalPages);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
// Final pass to remove potential duplicate adjacent '...' (e.g., if page 1, ..., 3, ..., 5 leads to 1, ..., ..., 5)
|
|
345
|
+
const finalPages = [];
|
|
346
|
+
for (let i = 0; i < pages.length; i++) {
|
|
347
|
+
// Skip if current is '...' and previous was also '...'
|
|
348
|
+
if (pages[i] === '...' && finalPages.length > 0 && finalPages[finalPages.length - 1] === '...') {
|
|
349
|
+
continue;
|
|
350
|
+
}
|
|
351
|
+
finalPages.push(pages[i]);
|
|
352
|
+
}
|
|
353
|
+
return finalPages;
|
|
354
|
+
});
|
|
240
355
|
/**
|
|
241
356
|
* @internal
|
|
242
357
|
* Handles page navigation changes
|
|
243
|
-
* @param page - New page number
|
|
358
|
+
* @param page - New page number (or '...' if clicked on ellipsis, which is ignored)
|
|
244
359
|
*/
|
|
245
360
|
handlePageChange(page) {
|
|
246
|
-
|
|
247
|
-
|
|
361
|
+
// Updated signature to accept string
|
|
362
|
+
if (typeof page !== 'number') {
|
|
363
|
+
// Type guard: ignore clicks on '...'
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
366
|
+
const newPage = Math.min(Math.max(1, page), this.pages());
|
|
367
|
+
if (newPage !== this.currentPage()) {
|
|
368
|
+
this.currentPage.set(newPage);
|
|
369
|
+
this.pageChanged.emit(newPage);
|
|
370
|
+
}
|
|
248
371
|
}
|
|
249
372
|
/**
|
|
250
373
|
* @internal
|
|
251
374
|
* Navigates to previous page if available
|
|
252
375
|
*/
|
|
253
376
|
previousPage() {
|
|
254
|
-
|
|
255
|
-
this.currentPage.set(this.currentPage() - 1);
|
|
256
|
-
this.pageChanged.emit(this.currentPage());
|
|
257
|
-
}
|
|
377
|
+
this.handlePageChange(this.currentPage() - 1);
|
|
258
378
|
}
|
|
259
379
|
/**
|
|
260
380
|
* @internal
|
|
261
381
|
* Navigates to next page if available
|
|
262
382
|
*/
|
|
263
383
|
nextPage() {
|
|
264
|
-
|
|
265
|
-
this.currentPage.set(this.currentPage() + 1);
|
|
266
|
-
this.pageChanged.emit(this.currentPage());
|
|
267
|
-
}
|
|
384
|
+
this.handlePageChange(this.currentPage() + 1);
|
|
268
385
|
}
|
|
269
386
|
/**
|
|
270
387
|
* @internal
|
|
271
388
|
* Jumps to first page
|
|
272
389
|
*/
|
|
273
390
|
firstPage() {
|
|
274
|
-
this.
|
|
275
|
-
this.pageChanged.emit(1);
|
|
391
|
+
this.handlePageChange(1);
|
|
276
392
|
}
|
|
277
393
|
/**
|
|
278
394
|
* @internal
|
|
279
395
|
* Jumps to last page
|
|
280
396
|
*/
|
|
281
397
|
lastPage() {
|
|
282
|
-
this.
|
|
283
|
-
this.pageChanged.emit(this.pages());
|
|
398
|
+
this.handlePageChange(this.pages());
|
|
284
399
|
}
|
|
285
400
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: PaginatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
286
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: PaginatorComponent, isStandalone: true, selector: "st-paginator", inputs: { paginatorId: { classPropertyName: "paginatorId", publicName: "paginatorId", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, pages: { classPropertyName: "pages", publicName: "pages", isSignal: true, isRequired: false, transformFunction: null }, currentPage: { classPropertyName: "currentPage", publicName: "currentPage", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChanged: "pageChanged", currentPage: "currentPageChange" }, ngImport: i0, template: "@if (type() === 'default') {\n\t<div class=\"flex
|
|
401
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: PaginatorComponent, isStandalone: true, selector: "st-paginator", inputs: { paginatorId: { classPropertyName: "paginatorId", publicName: "paginatorId", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, pages: { classPropertyName: "pages", publicName: "pages", isSignal: true, isRequired: false, transformFunction: null }, currentPage: { classPropertyName: "currentPage", publicName: "currentPage", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChanged: "pageChanged", currentPage: "currentPageChange" }, ngImport: i0, template: "@if (type() === 'default') {\n\t<div class=\"flex items-center justify-center gap-2\">\n\t\t<!-- First page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t(click)=\"firstPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\tsize=\"md\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\t\t<!-- Previous page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t(click)=\"previousPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\tsize=\"md\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" size=\"md\" shape=\"round-xs\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<!-- Numeric page item -->\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\tsize=\"md\"\n\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\n\t\t<!-- Next page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t(click)=\"nextPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\tsize=\"md\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages()\"\n\t\t></st-pagination-item>\n\t\t<!-- Last page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t(click)=\"lastPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\tsize=\"md\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages()\"\n\t\t></st-pagination-item>\n\t</div>\n}\n@if (type() === 'dots') {\n\t<div class=\"flex items-center justify-center gap-2\">\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" size=\"xs\" shape=\"round-lg\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\t</div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginationItemComponent, selector: "st-pagination-item", inputs: ["variant", "icon", "number", "active", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
287
402
|
}
|
|
288
403
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: PaginatorComponent, decorators: [{
|
|
289
404
|
type: Component,
|
|
290
|
-
args: [{ selector: 'st-paginator', imports: [
|
|
405
|
+
args: [{ selector: 'st-paginator', imports: [CommonModule, PaginationItemComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (type() === 'default') {\n\t<div class=\"flex items-center justify-center gap-2\">\n\t\t<!-- First page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t(click)=\"firstPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\tsize=\"md\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\t\t<!-- Previous page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t(click)=\"previousPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\tsize=\"md\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" size=\"md\" shape=\"round-xs\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<!-- Numeric page item -->\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\tsize=\"md\"\n\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\n\t\t<!-- Next page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t(click)=\"nextPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\tsize=\"md\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages()\"\n\t\t></st-pagination-item>\n\t\t<!-- Last page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t(click)=\"lastPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\tsize=\"md\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages()\"\n\t\t></st-pagination-item>\n\t</div>\n}\n@if (type() === 'dots') {\n\t<div class=\"flex items-center justify-center gap-2\">\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" size=\"xs\" shape=\"round-lg\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\t</div>\n}\n" }]
|
|
291
406
|
}] });
|
|
292
407
|
|
|
293
408
|
/**
|
|
294
409
|
* Generated bundle index. Do not edit.
|
|
295
410
|
*/
|
|
296
411
|
|
|
297
|
-
export { PaginationItemComponent, PaginatorComponent, paginationItemComponent };
|
|
412
|
+
export { PaginationItemComponent, PaginationPipe, PaginatorComponent, paginationItemComponent };
|
|
298
413
|
//# sourceMappingURL=sixbell-telco-sdk-components-paginator.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-paginator.mjs","sources":["../../../projects/sdk/components/paginator/components/pagination-item/pagination-item.component.ts","../../../projects/sdk/components/paginator/components/pagination-item/pagination-item.component.html","../../../projects/sdk/components/paginator/src/paginator.component.ts","../../../projects/sdk/components/paginator/src/paginator.component.html","../../../projects/sdk/components/paginator/sixbell-telco-sdk-components-paginator.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matKeyboardArrowLeftOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\n/**\n * @internal\n * Generates base pagination item classes with style variants\n */\nexport const paginationItemComponent = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tnumeric: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-outline',\n\t\t\t\t'flex',\n\t\t\t\t'text-base-content',\n\t\t\t\t'border-secondary',\n\t\t\t\t'hover:text-secondary-content',\n\t\t\t\t'hover:bg-secondary/40',\n\t\t\t\t'hover:border-secondary',\n\t\t\t\t'active:hover:bg-secondary-content',\n\t\t\t\t'active:hover:bg-secondary',\n\t\t\t\t'active:focus:border-secondary',\n\t\t\t\t'min-h-[30px]',\n\t\t\t\t'h-[30px]',\n\t\t\t\t'min-w-[30px]',\n\t\t\t\t'w-[30px]',\n\t\t\t\t'p-0',\n\t\t\t],\n\t\t\ticon: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-outline',\n\t\t\t\t'flex',\n\t\t\t\t'text-base-content',\n\t\t\t\t'border-secondary',\n\t\t\t\t'hover:text-secondary-content',\n\t\t\t\t'hover:bg-secondary/40',\n\t\t\t\t'hover:border-secondary',\n\t\t\t\t'active:hover:bg-secondary-content',\n\t\t\t\t'active:hover:bg-secondary',\n\t\t\t\t'active:focus:border-secondary',\n\t\t\t\t'min-h-[30px]',\n\t\t\t\t'h-[30px]',\n\t\t\t\t'min-w-[30px]',\n\t\t\t\t'w-[30px]',\n\t\t\t\t'p-0',\n\t\t\t],\n\t\t\tdots: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-circle',\n\t\t\t\t'flex',\n\t\t\t\t'border-secondary',\n\t\t\t\t'bg-secondary',\n\t\t\t\t'hover:bg-secondary/40',\n\t\t\t\t'hover:border-secondary',\n\t\t\t\t'hover:scale-150',\n\t\t\t\t'active:hover:bg-secondary',\n\t\t\t\t'active:border-secondary',\n\t\t\t\t'active:scale-150',\n\t\t\t\t'active:focus:border-secondary',\n\t\t\t\t'h-[10px]',\n\t\t\t\t'min-h-[10px]',\n\t\t\t\t'w-[10px]',\n\t\t\t\t'min-w-[10px]',\n\t\t\t\t'p-0',\n\t\t\t],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'numeric',\n\t},\n});\n\n/** Possible pagination item style variants */\nexport type PaginationItemVariantProps = 'numeric' | 'icon' | 'dots' | null | undefined;\n\n/** Configuration object for pagination item styling */\nexport type PaginationItemProps = {\n\tvariant?: PaginationItemVariantProps;\n};\n\n/**\n * A compact pagination control component with interactive states\n *\n * @remarks\n * Built with Tailwind CSS and class-variance-authority for style management.\n * Supports three variants: numeric pages, navigation icons, and dot indicators.\n * Provides visual feedback for active and hover states.\n *\n * @example\n * ```html\n * <!-- Numeric page item -->\n * <st-pagination-item\n * variant=\"numeric\"\n * [number]=\"2\"\n * [active]=\"true\"\n * ></st-pagination-item>\n * ```\n *\n * @example\n * ```html\n * <!-- Icon navigation -->\n * <st-pagination-item\n * variant=\"icon\"\n * icon=\"chevron-right\"\n * ></st-pagination-item>\n * ```\n *\n * @example\n * ```html\n * <!-- Active dot indicator -->\n * <st-pagination-item\n * variant=\"dots\"\n * [active]=\"true\"\n * ></st-pagination-item>\n * ```\n */\n@Component({\n\tselector: 'st-pagination-item',\n\timports: [IconComponent, TypographyDirective],\n\ttemplateUrl: './pagination-item.component.html',\n\tstyles: '',\n})\nexport class PaginationItemComponent {\n\t/**\n\t * Style variant for the pagination item\n\t * @defaultValue 'numeric'\n\t */\n\tvariant = input<PaginationItemVariantProps>();\n\n\t/**\n\t * Icon name from the icon library\n\t * @defaultValue matKeyboardArrowLeftOutline\n\t */\n\ticon = input<string>(matKeyboardArrowLeftOutline);\n\n\t/**\n\t * Display number or custom content\n\t * @defaultValue 1\n\t */\n\tnumber = input<number | string>(1);\n\n\t/**\n\t * Active state styling\n\t * @defaultValue false\n\t */\n\tactive = input<boolean>(false);\n\n\t/**\n\t * @internal\n\t * Computed class string for the pagination item\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tpaginationItemComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'bg-secondary-content bg-secondary border-secondary text-secondary-content': this.active() && this.variant() !== 'dots',\n\t\t\t},\n\t\t\t{\n\t\t\t\t'hover:scale-100 hover:bg-secondary/100 w-[16px] h-[16px] bg-secondary border-secondary text-secondary-content':\n\t\t\t\t\tthis.active() && this.variant() === 'dots',\n\t\t\t},\n\t\t);\n\t});\n}\n","@let variantVar = this.variant();\n@let componentClassVar = this.componentClass();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else if (variantVar === 'icon') {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" size=\"sm\"></st-icon>\n\t</button>\n} @else if (variantVar === 'dots') {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<span></span>\n\t</button>\n} @else {\n\t<button [class]=\"componentClassVar\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input, model, output } from '@angular/core';\nimport {\n\tmatKeyboardArrowLeftOutline,\n\tmatKeyboardArrowRightOutline,\n\tmatKeyboardDoubleArrowLeftOutline,\n\tmatKeyboardDoubleArrowRightOutline,\n} from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { NgxPaginationModule } from 'ngx-pagination';\nimport { PaginationItemComponent } from '../components/pagination-item/pagination-item.component';\n\n/** Type of pagination display variant */\nexport type PaginationType = 'default' | 'dots';\n\n/**\n * A customizable pagination component with navigation controls\n *\n * @remarks\n * Supports both traditional numbered pagination and dot indicators.\n * Integrates with NgxPagination for advanced features while providing\n * custom styling and navigation controls.\n *\n * @example\n * ```html\n * <st-paginator\n * [pages]=\"10\"\n * type=\"default\"\n * (pageChanged)=\"onPageChange($event)\"\n * ></st-paginator>\n * ```\n *\n * @example\n * ```html\n * <st-paginator\n * [pages]=\"5\"\n * type=\"dots\"\n * [maxSize]=\"3\"\n * ></st-paginator>\n * ```\n */\n@Component({\n\tselector: 'st-paginator',\n\timports: [NgxPaginationModule, CommonModule, PaginationItemComponent],\n\ttemplateUrl: './paginator.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PaginatorComponent {\n\t/**\n\t * Unique identifier for the paginator instance\n\t * @defaultValue 'paginator'\n\t */\n\tpaginatorId = input<string>('paginator');\n\n\t/**\n\t * Maximum number of visible page items\n\t * @defaultValue 5\n\t */\n\tmaxSize = input<number>(5);\n\n\t/**\n\t * Pagination display variant\n\t * @defaultValue 'default'\n\t */\n\ttype = input<PaginationType>('default');\n\n\t/**\n\t * Event emitted when the current page changes\n\t */\n\tpageChanged = output<number>();\n\n\t/**\n\t * Total number of pages\n\t * @defaultValue 0\n\t */\n\tpages = input<number>(0);\n\n\t/**\n\t * @internal\n\t * Computed array of page numbers\n\t */\n\tpageCounter = computed(() => Array.from({ length: this.pages() }, (_, i) => i + 1));\n\n\t/**\n\t * Current active page\n\t * @defaultValue 1\n\t */\n\tcurrentPage = model<number>(1);\n\n\t/**\n\t * @internal\n\t * Left arrow icon reference\n\t */\n\ticonArrowLeft = matKeyboardArrowLeftOutline;\n\n\t/**\n\t * @internal\n\t * Double left arrow icon reference\n\t */\n\ticonDoubleArrowLeft = matKeyboardDoubleArrowLeftOutline;\n\n\t/**\n\t * @internal\n\t * Right arrow icon reference\n\t */\n\ticonArrowRight = matKeyboardArrowRightOutline;\n\n\t/**\n\t * @internal\n\t * Double right arrow icon reference\n\t */\n\ticonDoubleArrowRight = matKeyboardDoubleArrowRightOutline;\n\n\t/**\n\t * @internal\n\t * Handles page navigation changes\n\t * @param page - New page number\n\t */\n\thandlePageChange(page: number) {\n\t\tthis.currentPage.set(page);\n\t\tthis.pageChanged.emit(page);\n\t}\n\n\t/**\n\t * @internal\n\t * Navigates to previous page if available\n\t */\n\tpreviousPage() {\n\t\tif (this.currentPage() > 1) {\n\t\t\tthis.currentPage.set(this.currentPage() - 1);\n\t\t\tthis.pageChanged.emit(this.currentPage());\n\t\t}\n\t}\n\n\t/**\n\t * @internal\n\t * Navigates to next page if available\n\t */\n\tnextPage() {\n\t\tif (this.currentPage() < this.pages()) {\n\t\t\tthis.currentPage.set(this.currentPage() + 1);\n\t\t\tthis.pageChanged.emit(this.currentPage());\n\t\t}\n\t}\n\n\t/**\n\t * @internal\n\t * Jumps to first page\n\t */\n\tfirstPage() {\n\t\tthis.currentPage.set(1);\n\t\tthis.pageChanged.emit(1);\n\t}\n\n\t/**\n\t * @internal\n\t * Jumps to last page\n\t */\n\tlastPage() {\n\t\tthis.currentPage.set(this.pages());\n\t\tthis.pageChanged.emit(this.pages());\n\t}\n}\n","@if (type() === 'default') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" [maxSize]=\"maxSize()\" (pageChange)=\"handlePageChange($event)\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t\t\t\t(click)=\"firstPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t\t\t\t(click)=\"previousPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t\t\t\t(click)=\"nextPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t\t\t\t(click)=\"lastPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? handlePageChange(1) : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? p.previous() : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? p.next() : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? handlePageChange(p.getLastPage()) : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n@if (type() === 'dots') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" (pageChange)=\"handlePageChange($event)\" [maxSize]=\"10000\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item variant=\"dots\" size=\"xs\" shape=\"round-lg\" padding=\"none\" [active]=\"currentPage() === page\"></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAOA;;;AAGG;AACU,MAAA,uBAAuB,GAAG,GAAG,CAAC,EAAE,EAAE;AAC9C,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE;gBACR,KAAK;gBACL,aAAa;gBACb,MAAM;gBACN,mBAAmB;gBACnB,kBAAkB;gBAClB,8BAA8B;gBAC9B,uBAAuB;gBACvB,wBAAwB;gBACxB,mCAAmC;gBACnC,2BAA2B;gBAC3B,+BAA+B;gBAC/B,cAAc;gBACd,UAAU;gBACV,cAAc;gBACd,UAAU;gBACV,KAAK;AACL,aAAA;AACD,YAAA,IAAI,EAAE;gBACL,KAAK;gBACL,aAAa;gBACb,MAAM;gBACN,mBAAmB;gBACnB,kBAAkB;gBAClB,8BAA8B;gBAC9B,uBAAuB;gBACvB,wBAAwB;gBACxB,mCAAmC;gBACnC,2BAA2B;gBAC3B,+BAA+B;gBAC/B,cAAc;gBACd,UAAU;gBACV,cAAc;gBACd,UAAU;gBACV,KAAK;AACL,aAAA;AACD,YAAA,IAAI,EAAE;gBACL,KAAK;gBACL,YAAY;gBACZ,MAAM;gBACN,kBAAkB;gBAClB,cAAc;gBACd,uBAAuB;gBACvB,wBAAwB;gBACxB,iBAAiB;gBACjB,2BAA2B;gBAC3B,yBAAyB;gBACzB,kBAAkB;gBAClB,+BAA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xD,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,SAAS;+BACC,cAAc,EAAA,OAAA,EACf,CAAC,mBAAmB,EAAE,YAAY,EAAE,uBAAuB,CAAC,EAAA,eAAA,EAEpD,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,+7LAAA,EAAA;;;AE5ChD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-paginator.mjs","sources":["../../../projects/sdk/components/paginator/components/pagination-item/pagination-item.component.ts","../../../projects/sdk/components/paginator/components/pagination-item/pagination-item.component.html","../../../projects/sdk/components/paginator/pipes/pagination.pipe.ts","../../../projects/sdk/components/paginator/src/paginator.component.ts","../../../projects/sdk/components/paginator/src/paginator.component.html","../../../projects/sdk/components/paginator/sixbell-telco-sdk-components-paginator.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matKeyboardArrowLeftOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\n/**\n * @internal\n * Generates base pagination item classes with style variants\n */\nexport const paginationItemComponent = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tnumeric: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-outline',\n\t\t\t\t'flex',\n\t\t\t\t'text-base-content',\n\t\t\t\t'border-secondary',\n\t\t\t\t'hover:text-secondary-content',\n\t\t\t\t'hover:bg-secondary/40',\n\t\t\t\t'hover:border-secondary',\n\t\t\t\t'active:hover:bg-secondary-content',\n\t\t\t\t'active:hover:bg-secondary',\n\t\t\t\t'active:focus:border-secondary',\n\t\t\t\t'min-h-[30px]',\n\t\t\t\t'h-[30px]',\n\t\t\t\t'min-w-[30px]',\n\t\t\t\t'w-[30px]',\n\t\t\t\t'p-0',\n\t\t\t],\n\t\t\ticon: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-outline',\n\t\t\t\t'flex',\n\t\t\t\t'text-base-content',\n\t\t\t\t'border-secondary',\n\t\t\t\t'hover:text-secondary-content',\n\t\t\t\t'hover:bg-secondary/40',\n\t\t\t\t'hover:border-secondary',\n\t\t\t\t'active:hover:bg-secondary-content',\n\t\t\t\t'active:hover:bg-secondary',\n\t\t\t\t'active:focus:border-secondary',\n\t\t\t\t'min-h-[30px]',\n\t\t\t\t'h-[30px]',\n\t\t\t\t'min-w-[30px]',\n\t\t\t\t'w-[30px]',\n\t\t\t\t'p-0',\n\t\t\t],\n\t\t\tdots: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-circle',\n\t\t\t\t'flex',\n\t\t\t\t'border-secondary',\n\t\t\t\t'bg-secondary',\n\t\t\t\t'hover:bg-secondary/40',\n\t\t\t\t'hover:border-secondary',\n\t\t\t\t'hover:scale-150',\n\t\t\t\t'active:hover:bg-secondary',\n\t\t\t\t'active:border-secondary',\n\t\t\t\t'active:scale-150',\n\t\t\t\t'active:focus:border-secondary',\n\t\t\t\t'h-[10px]',\n\t\t\t\t'min-h-[10px]',\n\t\t\t\t'w-[10px]',\n\t\t\t\t'min-w-[10px]',\n\t\t\t\t'p-0',\n\t\t\t],\n\t\t\t// New variant for ellipsis\n\t\t\tellipsis: [\n\t\t\t\t'px-2',\n\t\t\t\t'py-1',\n\t\t\t\t'text-base-content',\n\t\t\t\t'pointer-events-none', // Make it non-clickable\n\t\t\t\t'select-none', // Prevent text selection\n\t\t\t],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'numeric',\n\t},\n});\n\n/** Possible pagination item style variants */\nexport type PaginationItemVariantProps = 'numeric' | 'icon' | 'dots' | 'ellipsis' | null | undefined;\n\n/** Configuration object for pagination item styling */\nexport type PaginationItemProps = {\n\tvariant?: PaginationItemVariantProps;\n};\n\n/**\n * A compact pagination control component with interactive states\n *\n * @remarks\n * Built with Tailwind CSS and class-variance-authority for style management.\n * Supports three variants: numeric pages, navigation icons, and dot indicators.\n * Provides visual feedback for active and hover states.\n *\n * @example\n * ```html\n * <!-- Numeric page item -->\n * <st-pagination-item\n * variant=\"numeric\"\n * [number]=\"2\"\n * [active]=\"true\"\n * ></st-pagination-item>\n * ```\n *\n * @example\n * ```html\n * <!-- Icon navigation -->\n * <st-pagination-item\n * variant=\"icon\"\n * icon=\"chevron-right\"\n * ></st-pagination-item>\n * ```\n *\n * @example\n * ```html\n * <!-- Active dot indicator -->\n * <st-pagination-item\n * variant=\"dots\"\n * [active]=\"true\"\n * ></st-pagination-item>\n * ```\n */\n@Component({\n\tselector: 'st-pagination-item',\n\timports: [IconComponent, TypographyDirective],\n\ttemplateUrl: './pagination-item.component.html',\n\tstyles: '',\n\tstandalone: true,\n})\nexport class PaginationItemComponent {\n\t/**\n\t * Style variant for the pagination item\n\t * @defaultValue 'numeric'\n\t */\n\tvariant = input<PaginationItemVariantProps>();\n\n\t/**\n\t * Icon name from the icon library\n\t * @defaultValue matKeyboardArrowLeftOutline\n\t */\n\ticon = input<string>(matKeyboardArrowLeftOutline);\n\n\t/**\n\t * Display number or custom content\n\t * @defaultValue 1\n\t */\n\tnumber = input<number | string>(1);\n\n\t/**\n\t * Active state styling\n\t * @defaultValue false\n\t */\n\tactive = input<boolean>(false);\n\n\t/**\n\t * Disabled state styling\n\t * @defaultValue false\n\t */\n\tdisabled = input<boolean>(false); // New input for disabled state\n\n\t/**\n\t * @internal\n\t * Computed class string for the pagination item\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tpaginationItemComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'bg-secondary border-secondary text-secondary-content': this.active() && this.variant() !== 'dots',\n\t\t\t\t'opacity-50 cursor-not-allowed': this.disabled(), // Add disabled styles\n\t\t\t},\n\t\t\t{\n\t\t\t\t'hover:scale-100 hover:bg-secondary/100 w-[16px] h-[16px] bg-secondary border-secondary text-secondary-content':\n\t\t\t\t\tthis.active() && this.variant() === 'dots',\n\t\t\t},\n\t\t);\n\t});\n}\n","@let variantVar = this.variant();\n@let componentClassVar = this.componentClass();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else if (variantVar === 'icon') {\n\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" size=\"sm\"></st-icon>\n\t</button>\n} @else if (variantVar === 'dots') {\n\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t<span></span>\n\t</button>\n} @else if (variantVar === 'ellipsis') {\n\t<!-- Ellipsis button is inherently not interactive -->\n\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"true\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else {\n\t<button [class]=\"componentClassVar\" type=\"button\" [disabled]=\"disabled()\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n}\n","// projects/sdk/components/paginator/src/pagination.pipe.ts\nimport { Pipe, PipeTransform } from '@angular/core';\n\nexport type Pagination = {\n\tcurrentPage: number;\n\titemsPerPage: number;\n};\n\n/**\n * A pipe to manually paginate an array of items.\n *\n * @remarks\n * This pipe takes an array and a pagination configuration object (currentPage, itemsPerPage)\n * and returns a sliced version of the array, representing the items for the current page.\n *\n * @example\n * ```html\n * @for (item of items | pagination: { currentPage: 2, itemsPerPage: 10 }; track item.id) {\n * <li>{{ item.name }}</li>\n * }\n * ```\n */\n@Pipe({\n\tname: 'paginate',\n\tstandalone: true, // Use standalone pipes for better tree-shaking and consistency\n})\nexport class PaginationPipe implements PipeTransform {\n\ttransform<T>(items: T[], pagination: { currentPage: number; itemsPerPage: number }): T[];\n\ttransform<T>(items: T[] | null, pagination: { currentPage: number; itemsPerPage: number }): T[] | null;\n\ttransform<T>(items: T[] | undefined, pagination: { currentPage: number; itemsPerPage: number }): T[] | undefined;\n\ttransform<T>(items: T[] | null | undefined, pagination: { currentPage: number; itemsPerPage: number }): T[] | null | undefined;\n\ttransform<T>(items: T[] | null | undefined, pagination: { currentPage: number; itemsPerPage: number }): T[] | null | undefined {\n\t\tif (!items || !Array.isArray(items) || pagination?.currentPage === undefined || pagination?.itemsPerPage === undefined) {\n\t\t\treturn items;\n\t\t}\n\n\t\tconst currentPage = Math.max(1, pagination.currentPage);\n\t\tconst itemsPerPage = Math.max(1, pagination.itemsPerPage);\n\n\t\tconst startIndex = (currentPage - 1) * itemsPerPage;\n\t\tconst endIndex = startIndex + itemsPerPage;\n\n\t\treturn items.slice(startIndex, endIndex);\n\t}\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input, model, output } from '@angular/core';\nimport {\n\tmatKeyboardArrowLeftOutline,\n\tmatKeyboardArrowRightOutline,\n\tmatKeyboardDoubleArrowLeftOutline,\n\tmatKeyboardDoubleArrowRightOutline,\n} from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { PaginationItemComponent } from '../components/pagination-item/pagination-item.component';\n\n/** Type of pagination display variant */\nexport type PaginationType = 'default' | 'dots';\n\n/**\n * A customizable pagination component with navigation controls\n *\n * @remarks\n * Supports both traditional numbered pagination and dot indicators.\n * Provides custom styling and navigation controls.\n *\n * @example\n * ```html\n * <st-paginator\n * [pages]=\"10\"\n * type=\"default\"\n * (pageChanged)=\"onPageChange($event)\"\n * ></st-paginator>\n * ```\n *\n * @example\n * ```html\n * <st-paginator\n * [pages]=\"5\"\n * type=\"dots\"\n * [maxSize]=\"3\"\n * ></st-paginator>\n * ```\n */\n@Component({\n\tselector: 'st-paginator',\n\timports: [CommonModule, PaginationItemComponent],\n\ttemplateUrl: './paginator.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PaginatorComponent {\n\t/**\n\t * Unique identifier for the paginator instance\n\t * @defaultValue 'paginator'\n\t */\n\tpaginatorId = input<string>('paginator');\n\n\t/**\n\t * Maximum number of visible numeric page items (excluding arrows and ellipses).\n\t * This controls the window of page numbers shown around the current page.\n\t * @defaultValue 4\n\t */\n\tmaxSize = input<number>(4);\n\n\t/**\n\t * Pagination display variant\n\t * @defaultValue 'default'\n\t */\n\ttype = input<PaginationType>('default');\n\n\t/**\n\t * Event emitted when the current page changes\n\t */\n\tpageChanged = output<number>();\n\n\t/**\n\t * Total number of pages\n\t * @defaultValue 0\n\t */\n\tpages = input<number>(0);\n\n\t/**\n\t * Current active page (1-based)\n\t * @defaultValue 1\n\t */\n\tcurrentPage = model<number>(1);\n\n\t/**\n\t * @internal\n\t * Left arrow icon reference\n\t */\n\ticonArrowLeft = matKeyboardArrowLeftOutline;\n\n\t/**\n\t * @internal\n\t * Double left arrow icon reference\n\t */\n\ticonDoubleArrowLeft = matKeyboardDoubleArrowLeftOutline;\n\n\t/**\n\t * @internal\n\t * Right arrow icon reference\n\t */\n\ticonArrowRight = matKeyboardArrowRightOutline;\n\n\t/**\n\t * @internal\n\t * Double right arrow icon reference\n\t */\n\ticonDoubleArrowRight = matKeyboardDoubleArrowRightOutline;\n\n\t/**\n\t * @internal\n\t * Computed array of page numbers and ellipses for display.\n\t * Implements the logic to show a limited range of pages around the current page\n\t * with '...' for skipped pages.\n\t */\n\tpageNumbersForDisplay = computed<(number | string)[]>(() => {\n\t\tconst totalPages = this.pages();\n\t\tconst currentPage = this.currentPage();\n\t\tconst maxSize = this.maxSize(); // Number of visible numeric page links\n\n\t\tconst pages: (number | string)[] = [];\n\n\t\tif (totalPages <= 1) {\n\t\t\treturn [];\n\t\t}\n\n\t\tlet startRange: number;\n\t\tlet endRange: number;\n\n\t\t// Calculate the range of pages to display around the current page\n\t\tif (totalPages <= maxSize) {\n\t\t\t// If total pages are less than or equal to maxSize, show all pages\n\t\t\tstartRange = 1;\n\t\t\tendRange = totalPages;\n\t\t} else {\n\t\t\t// Calculate the range to center the currentPage\n\t\t\tconst half = Math.floor(maxSize / 2);\n\t\t\tstartRange = currentPage - half;\n\t\t\tendRange = currentPage + (maxSize - 1 - half);\n\n\t\t\t// Adjust boundary conditions\n\t\t\tif (startRange < 1) {\n\t\t\t\tstartRange = 1;\n\t\t\t\tendRange = maxSize;\n\t\t\t}\n\t\t\tif (endRange > totalPages) {\n\t\t\t\tendRange = totalPages;\n\t\t\t\tstartRange = totalPages - maxSize + 1;\n\t\t\t}\n\t\t}\n\n\t\t// Add first page and leading ellipsis if necessary\n\t\tif (startRange > 1) {\n\t\t\tpages.push(1);\n\t\t\tif (startRange > 2) {\n\t\t\t\t// Only add ellipsis if there's at least one page between 1 and startRange\n\t\t\t\tpages.push('...');\n\t\t\t}\n\t\t}\n\n\t\t// Add pages within the calculated range\n\t\tfor (let i = startRange; i <= endRange; i++) {\n\t\t\tpages.push(i);\n\t\t}\n\n\t\t// Add trailing ellipsis and last page if necessary\n\t\tif (endRange < totalPages) {\n\t\t\tif (endRange < totalPages - 1) {\n\t\t\t\t// Only add ellipsis if there's at least one page between endRange and totalPages\n\t\t\t\tpages.push('...');\n\t\t\t}\n\t\t\t// Ensure last page is only added once and if it's not already in the array\n\t\t\tif (!pages.includes(totalPages)) {\n\t\t\t\tpages.push(totalPages);\n\t\t\t}\n\t\t}\n\n\t\t// Final pass to remove potential duplicate adjacent '...' (e.g., if page 1, ..., 3, ..., 5 leads to 1, ..., ..., 5)\n\t\tconst finalPages: (number | string)[] = [];\n\t\tfor (let i = 0; i < pages.length; i++) {\n\t\t\t// Skip if current is '...' and previous was also '...'\n\t\t\tif (pages[i] === '...' && finalPages.length > 0 && finalPages[finalPages.length - 1] === '...') {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfinalPages.push(pages[i]);\n\t\t}\n\n\t\treturn finalPages;\n\t});\n\n\t/**\n\t * @internal\n\t * Handles page navigation changes\n\t * @param page - New page number (or '...' if clicked on ellipsis, which is ignored)\n\t */\n\thandlePageChange(page: number | string) {\n\t\t// Updated signature to accept string\n\t\tif (typeof page !== 'number') {\n\t\t\t// Type guard: ignore clicks on '...'\n\t\t\treturn;\n\t\t}\n\t\tconst newPage = Math.min(Math.max(1, page), this.pages());\n\t\tif (newPage !== this.currentPage()) {\n\t\t\tthis.currentPage.set(newPage);\n\t\t\tthis.pageChanged.emit(newPage);\n\t\t}\n\t}\n\n\t/**\n\t * @internal\n\t * Navigates to previous page if available\n\t */\n\tpreviousPage() {\n\t\tthis.handlePageChange(this.currentPage() - 1);\n\t}\n\n\t/**\n\t * @internal\n\t * Navigates to next page if available\n\t */\n\tnextPage() {\n\t\tthis.handlePageChange(this.currentPage() + 1);\n\t}\n\n\t/**\n\t * @internal\n\t * Jumps to first page\n\t */\n\tfirstPage() {\n\t\tthis.handlePageChange(1);\n\t}\n\n\t/**\n\t * @internal\n\t * Jumps to last page\n\t */\n\tlastPage() {\n\t\tthis.handlePageChange(this.pages());\n\t}\n}\n","@if (type() === 'default') {\n\t<div class=\"flex items-center justify-center gap-2\">\n\t\t<!-- First page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t(click)=\"firstPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\tsize=\"md\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\t\t<!-- Previous page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t(click)=\"previousPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\tsize=\"md\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === 1\"\n\t\t></st-pagination-item>\n\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" size=\"md\" shape=\"round-xs\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<!-- Numeric page item -->\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\tsize=\"md\"\n\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\n\t\t<!-- Next page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t(click)=\"nextPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\tsize=\"md\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages()\"\n\t\t></st-pagination-item>\n\t\t<!-- Last page button -->\n\t\t<st-pagination-item\n\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t(click)=\"lastPage()\"\n\t\t\tvariant=\"icon\"\n\t\t\tsize=\"md\"\n\t\t\tshape=\"round-xs\"\n\t\t\tpadding=\"none\"\n\t\t\t[disabled]=\"currentPage() === pages()\"\n\t\t></st-pagination-item>\n\t</div>\n}\n@if (type() === 'dots') {\n\t<div class=\"flex items-center justify-center gap-2\">\n\t\t@for (page of pageNumbersForDisplay(); track $index) {\n\t\t\t@if (page === '...') {\n\t\t\t\t<!-- Ellipsis for hidden pages -->\n\t\t\t\t<st-pagination-item variant=\"ellipsis\" size=\"xs\" shape=\"round-lg\" padding=\"none\" [number]=\"'...'\"></st-pagination-item>\n\t\t\t} @else {\n\t\t\t\t<st-pagination-item\n\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t></st-pagination-item>\n\t\t\t}\n\t\t}\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAOA;;;AAGG;AACU,MAAA,uBAAuB,GAAG,GAAG,CAAC,EAAE,EAAE;AAC9C,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE;gBACR,KAAK;gBACL,aAAa;gBACb,MAAM;gBACN,mBAAmB;gBACnB,kBAAkB;gBAClB,8BAA8B;gBAC9B,uBAAuB;gBACvB,wBAAwB;gBACxB,mCAAmC;gBACnC,2BAA2B;gBAC3B,+BAA+B;gBAC/B,cAAc;gBACd,UAAU;gBACV,cAAc;gBACd,UAAU;gBACV,KAAK;AACL,aAAA;AACD,YAAA,IAAI,EAAE;gBACL,KAAK;gBACL,aAAa;gBACb,MAAM;gBACN,mBAAmB;gBACnB,kBAAkB;gBAClB,8BAA8B;gBAC9B,uBAAuB;gBACvB,wBAAwB;gBACxB,mCAAmC;gBACnC,2BAA2B;gBAC3B,+BAA+B;gBAC/B,cAAc;gBACd,UAAU;gBACV,cAAc;gBACd,UAAU;gBACV,KAAK;AACL,aAAA;AACD,YAAA,IAAI,EAAE;gBACL,KAAK;gBACL,YAAY;gBACZ,MAAM;gBACN,kBAAkB;gBAClB,cAAc;gBACd,uBAAuB;gBACvB,wBAAwB;gBACxB,iBAAiB;gBACjB,2BAA2B;gBAC3B,yBAAyB;gBACzB,kBAAkB;gBAClB,+BAA+B;gBAC/B,UAAU;gBACV,cAAc;gBACd,UAAU;gBACV,cAAc;gBACd,KAAK;AACL,aAAA;;AAED,YAAA,QAAQ,EAAE;gBACT,M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