carbon-components-angular 3.54.1 → 3.54.2
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/bundle/carbon-angular.umd.js +9 -9
- package/bundle/carbon-angular.umd.js.map +1 -1
- package/docs/documentation/components/Pagination.html +114 -56
- package/docs/documentation/coverage.html +4 -4
- package/docs/documentation/interfaces/PaginationTranslations.html +87 -11
- package/docs/documentation/js/search/search_index.js +2 -2
- package/docs/storybook/iframe.html +3 -3
- package/docs/storybook/{main.3fce071082f18ac33499.bundle.js → main.1ccde517361f3d1a057c.bundle.js} +13 -8
- package/docs/storybook/main.1ccde517361f3d1a057c.bundle.js.map +1 -0
- package/docs/storybook/{runtime~main.3fce071082f18ac33499.bundle.js → runtime~main.1ccde517361f3d1a057c.bundle.js} +1 -1
- package/docs/storybook/{runtime~main.3fce071082f18ac33499.bundle.js.map → runtime~main.1ccde517361f3d1a057c.bundle.js.map} +1 -1
- package/docs/storybook/{vendors~main.3fce071082f18ac33499.bundle.js → vendors~main.1ccde517361f3d1a057c.bundle.js} +1 -1
- package/docs/storybook/{vendors~main.3fce071082f18ac33499.bundle.js.map → vendors~main.1ccde517361f3d1a057c.bundle.js.map} +1 -1
- package/i18n/en.d.ts +2 -1
- package/i18n/en.js +3 -2
- package/i18n/en.js.map +1 -1
- package/i18n/i18n.service.d.ts +13 -3
- package/package.json +1 -1
- package/pagination/pagination.component.d.ts +9 -4
- package/pagination/pagination.component.js +9 -5
- package/pagination/pagination.component.js.map +1 -1
- package/pagination/pagination.component.metadata.json +1 -1
- package/pagination/pagination.component.ngfactory.js +20 -18
- package/pagination/pagination.component.ngfactory.js.map +1 -1
- package/docs/storybook/main.3fce071082f18ac33499.bundle.js.map +0 -1
|
@@ -87,17 +87,23 @@
|
|
|
87
87
|
<li>
|
|
88
88
|
<a href="#ITEMS_PER_PAGE">ITEMS_PER_PAGE</a>
|
|
89
89
|
</li>
|
|
90
|
+
<li>
|
|
91
|
+
<a href="#OF_LAST_PAGE">OF_LAST_PAGE</a>
|
|
92
|
+
</li>
|
|
90
93
|
<li>
|
|
91
94
|
<a href="#OF_LAST_PAGES">OF_LAST_PAGES</a>
|
|
92
95
|
</li>
|
|
93
96
|
<li>
|
|
94
97
|
<a href="#OPEN_LIST_OF_OPTIONS">OPEN_LIST_OF_OPTIONS</a>
|
|
95
98
|
</li>
|
|
99
|
+
<li>
|
|
100
|
+
<a href="#TOTAL_ITEM">TOTAL_ITEM</a>
|
|
101
|
+
</li>
|
|
96
102
|
<li>
|
|
97
103
|
<a href="#TOTAL_ITEMS">TOTAL_ITEMS</a>
|
|
98
104
|
</li>
|
|
99
105
|
<li>
|
|
100
|
-
<a href="#
|
|
106
|
+
<a href="#TOTAL_ITEMS_UNKNOWN">TOTAL_ITEMS_UNKNOWN</a>
|
|
101
107
|
</li>
|
|
102
108
|
</ul>
|
|
103
109
|
</td>
|
|
@@ -195,6 +201,35 @@
|
|
|
195
201
|
|
|
196
202
|
|
|
197
203
|
|
|
204
|
+
</tbody>
|
|
205
|
+
</table>
|
|
206
|
+
<table class="table table-sm table-bordered">
|
|
207
|
+
<tbody>
|
|
208
|
+
<tr>
|
|
209
|
+
<td class="col-md-4">
|
|
210
|
+
<a name="OF_LAST_PAGE"></a>
|
|
211
|
+
<span class="name"><b>OF_LAST_PAGE</b><a href="#OF_LAST_PAGE"><span class="icon ion-ios-link"></span></a></span>
|
|
212
|
+
</td>
|
|
213
|
+
</tr>
|
|
214
|
+
<tr>
|
|
215
|
+
<td class="col-md-4">
|
|
216
|
+
<code>OF_LAST_PAGE: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
217
|
+
</code>
|
|
218
|
+
</td>
|
|
219
|
+
</tr>
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
<tr>
|
|
223
|
+
<td class="col-md-4">
|
|
224
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
225
|
+
|
|
226
|
+
</td>
|
|
227
|
+
</tr>
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
198
233
|
</tbody>
|
|
199
234
|
</table>
|
|
200
235
|
<table class="table table-sm table-bordered">
|
|
@@ -253,6 +288,35 @@
|
|
|
253
288
|
|
|
254
289
|
|
|
255
290
|
|
|
291
|
+
</tbody>
|
|
292
|
+
</table>
|
|
293
|
+
<table class="table table-sm table-bordered">
|
|
294
|
+
<tbody>
|
|
295
|
+
<tr>
|
|
296
|
+
<td class="col-md-4">
|
|
297
|
+
<a name="TOTAL_ITEM"></a>
|
|
298
|
+
<span class="name"><b>TOTAL_ITEM</b><a href="#TOTAL_ITEM"><span class="icon ion-ios-link"></span></a></span>
|
|
299
|
+
</td>
|
|
300
|
+
</tr>
|
|
301
|
+
<tr>
|
|
302
|
+
<td class="col-md-4">
|
|
303
|
+
<code>TOTAL_ITEM: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
304
|
+
</code>
|
|
305
|
+
</td>
|
|
306
|
+
</tr>
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
<tr>
|
|
310
|
+
<td class="col-md-4">
|
|
311
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
312
|
+
|
|
313
|
+
</td>
|
|
314
|
+
</tr>
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
256
320
|
</tbody>
|
|
257
321
|
</table>
|
|
258
322
|
<table class="table table-sm table-bordered">
|
|
@@ -288,13 +352,13 @@
|
|
|
288
352
|
<tbody>
|
|
289
353
|
<tr>
|
|
290
354
|
<td class="col-md-4">
|
|
291
|
-
<a name="
|
|
292
|
-
<span class="name"><b>
|
|
355
|
+
<a name="TOTAL_ITEMS_UNKNOWN"></a>
|
|
356
|
+
<span class="name"><b>TOTAL_ITEMS_UNKNOWN</b><a href="#TOTAL_ITEMS_UNKNOWN"><span class="icon ion-ios-link"></span></a></span>
|
|
293
357
|
</td>
|
|
294
358
|
</tr>
|
|
295
359
|
<tr>
|
|
296
360
|
<td class="col-md-4">
|
|
297
|
-
<code>
|
|
361
|
+
<code>TOTAL_ITEMS_UNKNOWN: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
298
362
|
</code>
|
|
299
363
|
</td>
|
|
300
364
|
</tr>
|
|
@@ -335,9 +399,11 @@ export interface PaginationTranslations {
|
|
|
335
399
|
OPEN_LIST_OF_OPTIONS: string;
|
|
336
400
|
BACKWARD: string;
|
|
337
401
|
FORWARD: string;
|
|
402
|
+
TOTAL_ITEMS_UNKNOWN: string;
|
|
338
403
|
TOTAL_ITEMS: string;
|
|
339
|
-
|
|
404
|
+
TOTAL_ITEM: string;
|
|
340
405
|
OF_LAST_PAGES: string;
|
|
406
|
+
OF_LAST_PAGE: string;
|
|
341
407
|
}
|
|
342
408
|
|
|
343
409
|
/**
|
|
@@ -408,7 +474,10 @@ export interface PaginationTranslations {
|
|
|
408
474
|
[attr.ariaLabel]="optionsListText.subject | async">
|
|
409
475
|
</svg>
|
|
410
476
|
</div>
|
|
411
|
-
<span *ngIf="!pagesUnknown" class="bx--pagination__text">
|
|
477
|
+
<span *ngIf="!pagesUnknown && totalDataLength <= 1" class="bx--pagination__text">
|
|
478
|
+
{{totalItemText.subject | i18nReplace:{start: startItemIndex, end: endItemIndex, total: totalDataLength } | async}}
|
|
479
|
+
</span>
|
|
480
|
+
<span *ngIf="!pagesUnknown && totalDataLength > 1" class="bx--pagination__text">
|
|
412
481
|
<span *ngIf="!isExperimental">|&nbsp;</span>
|
|
413
482
|
{{totalItemsText.subject | i18nReplace:{start: startItemIndex, end: endItemIndex, total: totalDataLength } | async}}
|
|
414
483
|
</span>
|
|
@@ -460,7 +529,10 @@ export interface PaginationTranslations {
|
|
|
460
529
|
</svg>
|
|
461
530
|
</div>
|
|
462
531
|
|
|
463
|
-
<span *ngIf="!pagesUnknown" class="bx--pagination__text">
|
|
532
|
+
<span *ngIf="!pagesUnknown && lastPage <= 1" class="bx--pagination__text">
|
|
533
|
+
{{ofLastPageText.subject | i18nReplace: {last: lastPage} | async}}
|
|
534
|
+
</span>
|
|
535
|
+
<span *ngIf="!pagesUnknown && lastPage > 1" class="bx--pagination__text">
|
|
464
536
|
{{ofLastPagesText.subject | i18nReplace: {last: lastPage} | async}}
|
|
465
537
|
</span>
|
|
466
538
|
<span *ngIf="pagesUnknown" class="bx--pagination__text">
|
|
@@ -526,9 +598,11 @@ export class Pagination {
|
|
|
526
598
|
* "OPEN_LIST_OF_OPTIONS": "Open list of options",
|
|
527
599
|
* "BACKWARD": "Backward",
|
|
528
600
|
* "FORWARD": "Forward",
|
|
601
|
+
* "TOTAL_ITEMS_UNKNOWN": "{{start}}-{{end}} items",
|
|
529
602
|
* "TOTAL_ITEMS": "{{start}}-{{end}} of {{total}} items",
|
|
530
|
-
* "
|
|
531
|
-
* "OF_LAST_PAGES": "of {{last}} pages"
|
|
603
|
+
* "TOTAL_ITEM": "{{start}}-{{end}} of {{total}} item",
|
|
604
|
+
* "OF_LAST_PAGES": "of {{last}} pages",
|
|
605
|
+
* "OF_LAST_PAGE": "of {{last}} page",
|
|
532
606
|
* }
|
|
533
607
|
* ```
|
|
534
608
|
*/
|
|
@@ -540,10 +614,11 @@ export class Pagination {
|
|
|
540
614
|
this.backwardText.override(valueWithDefaults.BACKWARD);
|
|
541
615
|
this.forwardText.override(valueWithDefaults.FORWARD);
|
|
542
616
|
this.totalItemsText.override(valueWithDefaults.TOTAL_ITEMS);
|
|
617
|
+
this.totalItemText.override(valueWithDefaults.TOTAL_ITEM);
|
|
543
618
|
this.totalItemsUnknownText.override(valueWithDefaults.TOTAL_ITEMS_UNKNOWN);
|
|
544
|
-
this.totalPagesText.override(valueWithDefaults.TOTAL_PAGES);
|
|
545
619
|
this.pageText.override(valueWithDefaults.PAGE);
|
|
546
620
|
this.ofLastPagesText.override(valueWithDefaults.OF_LAST_PAGES);
|
|
621
|
+
this.ofLastPageText.override(valueWithDefaults.OF_LAST_PAGE);
|
|
547
622
|
}
|
|
548
623
|
|
|
549
624
|
/**
|
|
@@ -634,10 +709,11 @@ export class Pagination {
|
|
|
634
709
|
backwardText = this.i18n.getOverridable("PAGINATION.BACKWARD");
|
|
635
710
|
forwardText = this.i18n.getOverridable("PAGINATION.FORWARD");
|
|
636
711
|
totalItemsText = this.i18n.getOverridable("PAGINATION.TOTAL_ITEMS");
|
|
712
|
+
totalItemText = this.i18n.getOverridable("PAGINATION.TOTAL_ITEM");
|
|
637
713
|
totalItemsUnknownText = this.i18n.getOverridable("PAGINATION.TOTAL_ITEMS_UNKNOWN");
|
|
638
|
-
totalPagesText = this.i18n.getOverridable("PAGINATION.TOTAL_PAGES");
|
|
639
714
|
pageText = this.i18n.getOverridable("PAGINATION.PAGE");
|
|
640
715
|
ofLastPagesText = this.i18n.getOverridable("PAGINATION.OF_LAST_PAGES");
|
|
716
|
+
ofLastPageText = this.i18n.getOverridable("PAGINATION.OF_LAST_PAGE");
|
|
641
717
|
|
|
642
718
|
protected _pageOptions = [];
|
|
643
719
|
|