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.
Files changed (25) hide show
  1. package/bundle/carbon-angular.umd.js +9 -9
  2. package/bundle/carbon-angular.umd.js.map +1 -1
  3. package/docs/documentation/components/Pagination.html +114 -56
  4. package/docs/documentation/coverage.html +4 -4
  5. package/docs/documentation/interfaces/PaginationTranslations.html +87 -11
  6. package/docs/documentation/js/search/search_index.js +2 -2
  7. package/docs/storybook/iframe.html +3 -3
  8. package/docs/storybook/{main.3fce071082f18ac33499.bundle.js → main.1ccde517361f3d1a057c.bundle.js} +13 -8
  9. package/docs/storybook/main.1ccde517361f3d1a057c.bundle.js.map +1 -0
  10. package/docs/storybook/{runtime~main.3fce071082f18ac33499.bundle.js → runtime~main.1ccde517361f3d1a057c.bundle.js} +1 -1
  11. package/docs/storybook/{runtime~main.3fce071082f18ac33499.bundle.js.map → runtime~main.1ccde517361f3d1a057c.bundle.js.map} +1 -1
  12. package/docs/storybook/{vendors~main.3fce071082f18ac33499.bundle.js → vendors~main.1ccde517361f3d1a057c.bundle.js} +1 -1
  13. package/docs/storybook/{vendors~main.3fce071082f18ac33499.bundle.js.map → vendors~main.1ccde517361f3d1a057c.bundle.js.map} +1 -1
  14. package/i18n/en.d.ts +2 -1
  15. package/i18n/en.js +3 -2
  16. package/i18n/en.js.map +1 -1
  17. package/i18n/i18n.service.d.ts +13 -3
  18. package/package.json +1 -1
  19. package/pagination/pagination.component.d.ts +9 -4
  20. package/pagination/pagination.component.js +9 -5
  21. package/pagination/pagination.component.js.map +1 -1
  22. package/pagination/pagination.component.metadata.json +1 -1
  23. package/pagination/pagination.component.ngfactory.js +20 -18
  24. package/pagination/pagination.component.ngfactory.js.map +1 -1
  25. 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="#TOTAL_PAGES">TOTAL_PAGES</a>
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="TOTAL_PAGES"></a>
292
- <span class="name"><b>TOTAL_PAGES</b><a href="#TOTAL_PAGES"><span class="icon ion-ios-link"></span></a></span>
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>TOTAL_PAGES: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></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
- TOTAL_PAGES: string;
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]&#x3D;&quot;optionsListText.subject | async&quot;&gt;
409
475
  &lt;/svg&gt;
410
476
  &lt;/div&gt;
411
- &lt;span *ngIf&#x3D;&quot;!pagesUnknown&quot; class&#x3D;&quot;bx--pagination__text&quot;&gt;
477
+ &lt;span *ngIf&#x3D;&quot;!pagesUnknown &amp;&amp; totalDataLength &lt;&#x3D; 1&quot; class&#x3D;&quot;bx--pagination__text&quot;&gt;
478
+ {{totalItemText.subject | i18nReplace:{start: startItemIndex, end: endItemIndex, total: totalDataLength } | async}}
479
+ &lt;/span&gt;
480
+ &lt;span *ngIf&#x3D;&quot;!pagesUnknown &amp;&amp; totalDataLength &gt; 1&quot; class&#x3D;&quot;bx--pagination__text&quot;&gt;
412
481
  &lt;span *ngIf&#x3D;&quot;!isExperimental&quot;&gt;|&amp;nbsp;&lt;/span&gt;
413
482
  {{totalItemsText.subject | i18nReplace:{start: startItemIndex, end: endItemIndex, total: totalDataLength } | async}}
414
483
  &lt;/span&gt;
@@ -460,7 +529,10 @@ export interface PaginationTranslations {
460
529
  &lt;/svg&gt;
461
530
  &lt;/div&gt;
462
531
 
463
- &lt;span *ngIf&#x3D;&quot;!pagesUnknown&quot; class&#x3D;&quot;bx--pagination__text&quot;&gt;
532
+ &lt;span *ngIf&#x3D;&quot;!pagesUnknown &amp;&amp; lastPage &lt;&#x3D; 1&quot; class&#x3D;&quot;bx--pagination__text&quot;&gt;
533
+ {{ofLastPageText.subject | i18nReplace: {last: lastPage} | async}}
534
+ &lt;/span&gt;
535
+ &lt;span *ngIf&#x3D;&quot;!pagesUnknown &amp;&amp; lastPage &gt; 1&quot; class&#x3D;&quot;bx--pagination__text&quot;&gt;
464
536
  {{ofLastPagesText.subject | i18nReplace: {last: lastPage} | async}}
465
537
  &lt;/span&gt;
466
538
  &lt;span *ngIf&#x3D;&quot;pagesUnknown&quot; class&#x3D;&quot;bx--pagination__text&quot;&gt;
@@ -526,9 +598,11 @@ export class Pagination {
526
598
  * &quot;OPEN_LIST_OF_OPTIONS&quot;: &quot;Open list of options&quot;,
527
599
  * &quot;BACKWARD&quot;: &quot;Backward&quot;,
528
600
  * &quot;FORWARD&quot;: &quot;Forward&quot;,
601
+ * &quot;TOTAL_ITEMS_UNKNOWN&quot;: &quot;{{start}}-{{end}} items&quot;,
529
602
  * &quot;TOTAL_ITEMS&quot;: &quot;{{start}}-{{end}} of {{total}} items&quot;,
530
- * &quot;TOTAL_PAGES&quot;: &quot;{{current}} of {{last}} pages&quot;,
531
- * &quot;OF_LAST_PAGES&quot;: &quot;of {{last}} pages&quot;
603
+ * &quot;TOTAL_ITEM&quot;: &quot;{{start}}-{{end}} of {{total}} item&quot;,
604
+ * &quot;OF_LAST_PAGES&quot;: &quot;of {{last}} pages&quot;,
605
+ * &quot;OF_LAST_PAGE&quot;: &quot;of {{last}} page&quot;,
532
606
  * }
533
607
  * &#x60;&#x60;&#x60;
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 &#x3D; this.i18n.getOverridable(&quot;PAGINATION.BACKWARD&quot;);
635
710
  forwardText &#x3D; this.i18n.getOverridable(&quot;PAGINATION.FORWARD&quot;);
636
711
  totalItemsText &#x3D; this.i18n.getOverridable(&quot;PAGINATION.TOTAL_ITEMS&quot;);
712
+ totalItemText &#x3D; this.i18n.getOverridable(&quot;PAGINATION.TOTAL_ITEM&quot;);
637
713
  totalItemsUnknownText &#x3D; this.i18n.getOverridable(&quot;PAGINATION.TOTAL_ITEMS_UNKNOWN&quot;);
638
- totalPagesText &#x3D; this.i18n.getOverridable(&quot;PAGINATION.TOTAL_PAGES&quot;);
639
714
  pageText &#x3D; this.i18n.getOverridable(&quot;PAGINATION.PAGE&quot;);
640
715
  ofLastPagesText &#x3D; this.i18n.getOverridable(&quot;PAGINATION.OF_LAST_PAGES&quot;);
716
+ ofLastPageText &#x3D; this.i18n.getOverridable(&quot;PAGINATION.OF_LAST_PAGE&quot;);
641
717
 
642
718
  protected _pageOptions &#x3D; [];
643
719