@kodaris/krubble-app-components 1.0.175 → 1.0.176
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.
|
@@ -8639,6 +8639,12 @@
|
|
|
8639
8639
|
refresh() {
|
|
8640
8640
|
this._fetch();
|
|
8641
8641
|
}
|
|
8642
|
+
goToFirstPage() {
|
|
8643
|
+
if (this._page > 1) {
|
|
8644
|
+
this._page = 1;
|
|
8645
|
+
this._fetch();
|
|
8646
|
+
}
|
|
8647
|
+
}
|
|
8642
8648
|
goToPrevPage() {
|
|
8643
8649
|
if (this._page > 1) {
|
|
8644
8650
|
this._page--;
|
|
@@ -8651,6 +8657,12 @@
|
|
|
8651
8657
|
this._fetch();
|
|
8652
8658
|
}
|
|
8653
8659
|
}
|
|
8660
|
+
goToLastPage() {
|
|
8661
|
+
if (this._page < this._totalPages) {
|
|
8662
|
+
this._page = this._totalPages;
|
|
8663
|
+
this._fetch();
|
|
8664
|
+
}
|
|
8665
|
+
}
|
|
8654
8666
|
goToPage(page) {
|
|
8655
8667
|
if (page >= 1 && page <= this._totalPages) {
|
|
8656
8668
|
this._page = page;
|
|
@@ -9344,9 +9356,9 @@
|
|
|
9344
9356
|
}
|
|
9345
9357
|
/**
|
|
9346
9358
|
* Renders the pagination controls:
|
|
9347
|
-
* -
|
|
9359
|
+
* - First page and previous page arrows (disabled on first page)
|
|
9348
9360
|
* - Range text showing "1-50 of 150" format
|
|
9349
|
-
* - Next page
|
|
9361
|
+
* - Next page and last page arrows (disabled on last page)
|
|
9350
9362
|
*
|
|
9351
9363
|
* Hidden when there's no data or all data fits on one page.
|
|
9352
9364
|
*/
|
|
@@ -9355,6 +9367,18 @@
|
|
|
9355
9367
|
const end = Math.min(this._page * this._pageSize, this._totalItems);
|
|
9356
9368
|
return b `
|
|
9357
9369
|
<div class="pagination">
|
|
9370
|
+
<span
|
|
9371
|
+
class=${e$1({
|
|
9372
|
+
'pagination-icon': true,
|
|
9373
|
+
'pagination-icon--disabled': this._page === 1
|
|
9374
|
+
})}
|
|
9375
|
+
title="First page"
|
|
9376
|
+
@click=${this.goToFirstPage}
|
|
9377
|
+
>
|
|
9378
|
+
<svg viewBox="0 0 24 24" fill="currentColor">
|
|
9379
|
+
<path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/>
|
|
9380
|
+
</svg>
|
|
9381
|
+
</span>
|
|
9358
9382
|
<span
|
|
9359
9383
|
class=${e$1({
|
|
9360
9384
|
'pagination-icon': true,
|
|
@@ -9378,6 +9402,18 @@
|
|
|
9378
9402
|
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
|
|
9379
9403
|
</svg>
|
|
9380
9404
|
</span>
|
|
9405
|
+
<span
|
|
9406
|
+
class=${e$1({
|
|
9407
|
+
'pagination-icon': true,
|
|
9408
|
+
'pagination-icon--disabled': this._page === this._totalPages
|
|
9409
|
+
})}
|
|
9410
|
+
title="Last page"
|
|
9411
|
+
@click=${this.goToLastPage}
|
|
9412
|
+
>
|
|
9413
|
+
<svg viewBox="0 0 24 24" fill="currentColor">
|
|
9414
|
+
<path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/>
|
|
9415
|
+
</svg>
|
|
9416
|
+
</span>
|
|
9381
9417
|
</div>
|
|
9382
9418
|
`;
|
|
9383
9419
|
}
|
|
@@ -11692,6 +11728,12 @@
|
|
|
11692
11728
|
refresh() {
|
|
11693
11729
|
this._fetch();
|
|
11694
11730
|
}
|
|
11731
|
+
goToFirstPage() {
|
|
11732
|
+
if (this._page > 1) {
|
|
11733
|
+
this._page = 1;
|
|
11734
|
+
this._fetch();
|
|
11735
|
+
}
|
|
11736
|
+
}
|
|
11695
11737
|
goToPrevPage() {
|
|
11696
11738
|
if (this._page > 1) {
|
|
11697
11739
|
this._page--;
|
|
@@ -11704,6 +11746,12 @@
|
|
|
11704
11746
|
this._fetch();
|
|
11705
11747
|
}
|
|
11706
11748
|
}
|
|
11749
|
+
goToLastPage() {
|
|
11750
|
+
if (this._page < this._totalPages) {
|
|
11751
|
+
this._page = this._totalPages;
|
|
11752
|
+
this._fetch();
|
|
11753
|
+
}
|
|
11754
|
+
}
|
|
11707
11755
|
goToPage(page) {
|
|
11708
11756
|
if (page >= 1 && page <= this._totalPages) {
|
|
11709
11757
|
this._page = page;
|
|
@@ -12557,9 +12605,9 @@
|
|
|
12557
12605
|
}
|
|
12558
12606
|
/**
|
|
12559
12607
|
* Renders the pagination controls:
|
|
12560
|
-
* -
|
|
12608
|
+
* - First page and previous page arrows (disabled on first page)
|
|
12561
12609
|
* - Range text showing "1-50 of 150" format
|
|
12562
|
-
* - Next page
|
|
12610
|
+
* - Next page and last page arrows (disabled on last page)
|
|
12563
12611
|
*
|
|
12564
12612
|
* Hidden when there's no data or all data fits on one page.
|
|
12565
12613
|
*/
|
|
@@ -12568,6 +12616,18 @@
|
|
|
12568
12616
|
const end = Math.min(this._page * this._pageSize, this._totalItems);
|
|
12569
12617
|
return b `
|
|
12570
12618
|
<div class="pagination">
|
|
12619
|
+
<span
|
|
12620
|
+
class=${e$1({
|
|
12621
|
+
'pagination-icon': true,
|
|
12622
|
+
'pagination-icon--disabled': this._page === 1
|
|
12623
|
+
})}
|
|
12624
|
+
title="First page"
|
|
12625
|
+
@click=${this.goToFirstPage}
|
|
12626
|
+
>
|
|
12627
|
+
<svg viewBox="0 0 24 24" fill="currentColor">
|
|
12628
|
+
<path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/>
|
|
12629
|
+
</svg>
|
|
12630
|
+
</span>
|
|
12571
12631
|
<span
|
|
12572
12632
|
class=${e$1({
|
|
12573
12633
|
'pagination-icon': true,
|
|
@@ -12591,6 +12651,18 @@
|
|
|
12591
12651
|
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
|
|
12592
12652
|
</svg>
|
|
12593
12653
|
</span>
|
|
12654
|
+
<span
|
|
12655
|
+
class=${e$1({
|
|
12656
|
+
'pagination-icon': true,
|
|
12657
|
+
'pagination-icon--disabled': this._page === this._totalPages
|
|
12658
|
+
})}
|
|
12659
|
+
title="Last page"
|
|
12660
|
+
@click=${this.goToLastPage}
|
|
12661
|
+
>
|
|
12662
|
+
<svg viewBox="0 0 24 24" fill="currentColor">
|
|
12663
|
+
<path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/>
|
|
12664
|
+
</svg>
|
|
12665
|
+
</span>
|
|
12594
12666
|
</div>
|
|
12595
12667
|
`;
|
|
12596
12668
|
}
|