carbon-components-angular 5.24.1 → 5.24.3

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 (41) hide show
  1. package/docs/documentation/components/DropdownList.html +17 -16
  2. package/docs/documentation/components/Tooltip.html +67 -28
  3. package/docs/documentation/coverage.html +3 -3
  4. package/docs/documentation/js/search/search_index.js +2 -2
  5. package/docs/documentation/modules/TilesModule/dependencies.svg +4 -4
  6. package/docs/documentation/modules/TilesModule.html +4 -4
  7. package/docs/documentation/modules/TimePickerModule/dependencies.svg +41 -45
  8. package/docs/documentation/modules/TimePickerModule.html +41 -45
  9. package/docs/documentation/modules/TimePickerSelectModule/dependencies.svg +38 -42
  10. package/docs/documentation/modules/TimePickerSelectModule.html +38 -42
  11. package/docs/documentation/modules/ToggleModule/dependencies.svg +4 -4
  12. package/docs/documentation/modules/ToggleModule.html +4 -4
  13. package/docs/documentation/modules/TooltipModule/dependencies.svg +28 -28
  14. package/docs/documentation/modules/TooltipModule.html +28 -28
  15. package/docs/documentation/modules/TreeviewModule/dependencies.svg +36 -36
  16. package/docs/documentation/modules/TreeviewModule.html +36 -36
  17. package/docs/documentation/modules/UIShellModule/dependencies.svg +4 -4
  18. package/docs/documentation/modules/UIShellModule.html +4 -4
  19. package/docs/documentation.json +23 -23
  20. package/docs/storybook/{3224.92030851.iframe.bundle.js → 3224.aa2b4664.iframe.bundle.js} +1 -1
  21. package/docs/storybook/{4578.17249a24.iframe.bundle.js → 4578.65805869.iframe.bundle.js} +1 -1
  22. package/docs/storybook/iframe.html +2 -2
  23. package/docs/storybook/{main.9d694b47.iframe.bundle.js → main.ff512697.iframe.bundle.js} +1 -1
  24. package/docs/storybook/project.json +1 -1
  25. package/docs/storybook/{runtime~main.1f3e45b2.iframe.bundle.js → runtime~main.4af5c4ee.iframe.bundle.js} +1 -1
  26. package/docs/storybook/tooltip-definition-tooptip-stories.d6e8ec29.iframe.bundle.js +1 -0
  27. package/docs/storybook/tooltip-tooltip-stories.79853bfa.iframe.bundle.js +1 -0
  28. package/esm2020/dropdown/list/dropdown-list.component.mjs +4 -3
  29. package/esm2020/tooltip/tooltip.component.mjs +9 -3
  30. package/fesm2015/carbon-components-angular-dropdown.mjs +5 -2
  31. package/fesm2015/carbon-components-angular-dropdown.mjs.map +1 -1
  32. package/fesm2015/carbon-components-angular-tooltip.mjs +8 -2
  33. package/fesm2015/carbon-components-angular-tooltip.mjs.map +1 -1
  34. package/fesm2020/carbon-components-angular-dropdown.mjs +3 -2
  35. package/fesm2020/carbon-components-angular-dropdown.mjs.map +1 -1
  36. package/fesm2020/carbon-components-angular-tooltip.mjs +8 -2
  37. package/fesm2020/carbon-components-angular-tooltip.mjs.map +1 -1
  38. package/package.json +1 -1
  39. package/tooltip/tooltip.component.d.ts +1 -0
  40. package/docs/storybook/tooltip-definition-tooptip-stories.d4d53243.iframe.bundle.js +0 -1
  41. package/docs/storybook/tooltip-tooltip-stories.fafd3535.iframe.bundle.js +0 -1
@@ -785,8 +785,8 @@ ArrowUp -&gt; emit event</p>
785
785
 
786
786
  <tr>
787
787
  <td class="col-md-4">
788
- <div class="io-line">Defined in <a href="" data-line="536"
789
- class="link-to-prism">src/dropdown/list/dropdown-list.component.ts:536</a></div>
788
+ <div class="io-line">Defined in <a href="" data-line="537"
789
+ class="link-to-prism">src/dropdown/list/dropdown-list.component.ts:537</a></div>
790
790
  </td>
791
791
  </tr>
792
792
 
@@ -930,8 +930,8 @@ ArrowUp -&gt; emit event</p>
930
930
 
931
931
  <tr>
932
932
  <td class="col-md-4">
933
- <div class="io-line">Defined in <a href="" data-line="571"
934
- class="link-to-prism">src/dropdown/list/dropdown-list.component.ts:571</a></div>
933
+ <div class="io-line">Defined in <a href="" data-line="572"
934
+ class="link-to-prism">src/dropdown/list/dropdown-list.component.ts:572</a></div>
935
935
  </td>
936
936
  </tr>
937
937
 
@@ -1570,8 +1570,8 @@ ArrowUp -&gt; emit event</p>
1570
1570
 
1571
1571
  <tr>
1572
1572
  <td class="col-md-4">
1573
- <div class="io-line">Defined in <a href="" data-line="504"
1574
- class="link-to-prism">src/dropdown/list/dropdown-list.component.ts:504</a></div>
1573
+ <div class="io-line">Defined in <a href="" data-line="505"
1574
+ class="link-to-prism">src/dropdown/list/dropdown-list.component.ts:505</a></div>
1575
1575
  </td>
1576
1576
  </tr>
1577
1577
 
@@ -1720,8 +1720,8 @@ Additionally, any Observables for the <code>DropdownList</code> are initialized.
1720
1720
 
1721
1721
  <tr>
1722
1722
  <td class="col-md-4">
1723
- <div class="io-line">Defined in <a href="" data-line="562"
1724
- class="link-to-prism">src/dropdown/list/dropdown-list.component.ts:562</a></div>
1723
+ <div class="io-line">Defined in <a href="" data-line="563"
1724
+ class="link-to-prism">src/dropdown/list/dropdown-list.component.ts:563</a></div>
1725
1725
  </td>
1726
1726
  </tr>
1727
1727
 
@@ -1785,8 +1785,8 @@ Additionally, any Observables for the <code>DropdownList</code> are initialized.
1785
1785
 
1786
1786
  <tr>
1787
1787
  <td class="col-md-4">
1788
- <div class="io-line">Defined in <a href="" data-line="556"
1789
- class="link-to-prism">src/dropdown/list/dropdown-list.component.ts:556</a></div>
1788
+ <div class="io-line">Defined in <a href="" data-line="557"
1789
+ class="link-to-prism">src/dropdown/list/dropdown-list.component.ts:557</a></div>
1790
1790
  </td>
1791
1791
  </tr>
1792
1792
 
@@ -1850,8 +1850,8 @@ Additionally, any Observables for the <code>DropdownList</code> are initialized.
1850
1850
 
1851
1851
  <tr>
1852
1852
  <td class="col-md-4">
1853
- <div class="io-line">Defined in <a href="" data-line="581"
1854
- class="link-to-prism">src/dropdown/list/dropdown-list.component.ts:581</a></div>
1853
+ <div class="io-line">Defined in <a href="" data-line="582"
1854
+ class="link-to-prism">src/dropdown/list/dropdown-list.component.ts:582</a></div>
1855
1855
  </td>
1856
1856
  </tr>
1857
1857
 
@@ -1992,8 +1992,8 @@ Additionally, any Observables for the <code>DropdownList</code> are initialized.
1992
1992
 
1993
1993
  <tr>
1994
1994
  <td class="col-md-4">
1995
- <div class="io-line">Defined in <a href="" data-line="586"
1996
- class="link-to-prism">src/dropdown/list/dropdown-list.component.ts:586</a></div>
1995
+ <div class="io-line">Defined in <a href="" data-line="587"
1996
+ class="link-to-prism">src/dropdown/list/dropdown-list.component.ts:587</a></div>
1997
1997
  </td>
1998
1998
  </tr>
1999
1999
 
@@ -3103,7 +3103,7 @@ export class DropdownList implements AbstractDropdownView, AfterViewInit, OnDest
3103
3103
  }
3104
3104
  }
3105
3105
 
3106
- return elemList[this.index].nativeElement;
3106
+ return elemList[this.index]?.nativeElement;
3107
3107
  }
3108
3108
 
3109
3109
  /**
@@ -3241,6 +3241,7 @@ export class DropdownList implements AbstractDropdownView, AfterViewInit, OnDest
3241
3241
  updateIndex() {
3242
3242
  // initialize index on the first selected item or
3243
3243
  // on the next non disabled item if no items are selected
3244
+ // in case, if all items are disabled, the index value will remain same
3244
3245
  const selected &#x3D; this.getSelected();
3245
3246
  if (selected.length) {
3246
3247
  this.index &#x3D; this.displayItems.indexOf(selected[0]);
@@ -3264,7 +3265,7 @@ export class DropdownList implements AbstractDropdownView, AfterViewInit, OnDest
3264
3265
  event.preventDefault();
3265
3266
  if (event.key &#x3D;&#x3D;&#x3D; &quot;ArrowDown&quot;) {
3266
3267
  if (this.hasNextElement()) {
3267
- this.getNextElement().scrollIntoView({ block: &quot;end&quot; });
3268
+ this.getNextElement()?.scrollIntoView({ block: &quot;end&quot; });
3268
3269
  } else {
3269
3270
  this.blurIntent.emit(&quot;bottom&quot;);
3270
3271
  }
@@ -165,6 +165,10 @@
165
165
  <tr>
166
166
  <td class="col-md-4">
167
167
  <ul class="index-list">
168
+ <li>
169
+ <span class="modifier">Private</span>
170
+ <a href="#timeoutId" >timeoutId</a>
171
+ </li>
168
172
  <li>
169
173
  <span class="modifier"></span>
170
174
  <a href="#tooltipClass" >tooltipClass</a>
@@ -406,7 +410,7 @@
406
410
  </tr>
407
411
  <tr>
408
412
  <td class="col-md-4">
409
- <div class="io-line">Defined in <a href="" data-line="77" class="link-to-prism">src/tooltip/tooltip.component.ts:77</a></div>
413
+ <div class="io-line">Defined in <a href="" data-line="79" class="link-to-prism">src/tooltip/tooltip.component.ts:79</a></div>
410
414
  </td>
411
415
  </tr>
412
416
 
@@ -1088,8 +1092,8 @@ This is not toggleable - should be assigned once</p>
1088
1092
 
1089
1093
  <tr>
1090
1094
  <td class="col-md-4">
1091
- <div class="io-line">Defined in <a href="" data-line="114"
1092
- class="link-to-prism">src/tooltip/tooltip.component.ts:114</a></div>
1095
+ <div class="io-line">Defined in <a href="" data-line="122"
1096
+ class="link-to-prism">src/tooltip/tooltip.component.ts:122</a></div>
1093
1097
  </td>
1094
1098
  </tr>
1095
1099
 
@@ -1121,8 +1125,8 @@ This is not toggleable - should be assigned once</p>
1121
1125
 
1122
1126
  <tr>
1123
1127
  <td class="col-md-4">
1124
- <div class="io-line">Defined in <a href="" data-line="119"
1125
- class="link-to-prism">src/tooltip/tooltip.component.ts:119</a></div>
1128
+ <div class="io-line">Defined in <a href="" data-line="127"
1129
+ class="link-to-prism">src/tooltip/tooltip.component.ts:127</a></div>
1126
1130
  </td>
1127
1131
  </tr>
1128
1132
 
@@ -1154,8 +1158,8 @@ This is not toggleable - should be assigned once</p>
1154
1158
 
1155
1159
  <tr>
1156
1160
  <td class="col-md-4">
1157
- <div class="io-line">Defined in <a href="" data-line="105"
1158
- class="link-to-prism">src/tooltip/tooltip.component.ts:105</a></div>
1161
+ <div class="io-line">Defined in <a href="" data-line="113"
1162
+ class="link-to-prism">src/tooltip/tooltip.component.ts:113</a></div>
1159
1163
  </td>
1160
1164
  </tr>
1161
1165
 
@@ -1187,8 +1191,8 @@ This is not toggleable - should be assigned once</p>
1187
1191
 
1188
1192
  <tr>
1189
1193
  <td class="col-md-4">
1190
- <div class="io-line">Defined in <a href="" data-line="91"
1191
- class="link-to-prism">src/tooltip/tooltip.component.ts:91</a></div>
1194
+ <div class="io-line">Defined in <a href="" data-line="93"
1195
+ class="link-to-prism">src/tooltip/tooltip.component.ts:93</a></div>
1192
1196
  </td>
1193
1197
  </tr>
1194
1198
 
@@ -1220,8 +1224,8 @@ This is not toggleable - should be assigned once</p>
1220
1224
 
1221
1225
  <tr>
1222
1226
  <td class="col-md-4">
1223
- <div class="io-line">Defined in <a href="" data-line="98"
1224
- class="link-to-prism">src/tooltip/tooltip.component.ts:98</a></div>
1227
+ <div class="io-line">Defined in <a href="" data-line="103"
1228
+ class="link-to-prism">src/tooltip/tooltip.component.ts:103</a></div>
1225
1229
  </td>
1226
1230
  </tr>
1227
1231
 
@@ -1263,8 +1267,8 @@ This is not toggleable - should be assigned once</p>
1263
1267
 
1264
1268
  <tr>
1265
1269
  <td class="col-md-4">
1266
- <div class="io-line">Defined in <a href="" data-line="114"
1267
- class="link-to-prism">src/tooltip/tooltip.component.ts:114</a></div>
1270
+ <div class="io-line">Defined in <a href="" data-line="122"
1271
+ class="link-to-prism">src/tooltip/tooltip.component.ts:122</a></div>
1268
1272
  </td>
1269
1273
  </tr>
1270
1274
 
@@ -1341,8 +1345,8 @@ This is not toggleable - should be assigned once</p>
1341
1345
 
1342
1346
  <tr>
1343
1347
  <td class="col-md-4">
1344
- <div class="io-line">Defined in <a href="" data-line="119"
1345
- class="link-to-prism">src/tooltip/tooltip.component.ts:119</a></div>
1348
+ <div class="io-line">Defined in <a href="" data-line="127"
1349
+ class="link-to-prism">src/tooltip/tooltip.component.ts:127</a></div>
1346
1350
  </td>
1347
1351
  </tr>
1348
1352
 
@@ -1419,8 +1423,8 @@ This is not toggleable - should be assigned once</p>
1419
1423
 
1420
1424
  <tr>
1421
1425
  <td class="col-md-4">
1422
- <div class="io-line">Defined in <a href="" data-line="105"
1423
- class="link-to-prism">src/tooltip/tooltip.component.ts:105</a></div>
1426
+ <div class="io-line">Defined in <a href="" data-line="113"
1427
+ class="link-to-prism">src/tooltip/tooltip.component.ts:113</a></div>
1424
1428
  </td>
1425
1429
  </tr>
1426
1430
 
@@ -1488,8 +1492,8 @@ This is not toggleable - should be assigned once</p>
1488
1492
 
1489
1493
  <tr>
1490
1494
  <td class="col-md-4">
1491
- <div class="io-line">Defined in <a href="" data-line="123"
1492
- class="link-to-prism">src/tooltip/tooltip.component.ts:123</a></div>
1495
+ <div class="io-line">Defined in <a href="" data-line="131"
1496
+ class="link-to-prism">src/tooltip/tooltip.component.ts:131</a></div>
1493
1497
  </td>
1494
1498
  </tr>
1495
1499
 
@@ -1562,8 +1566,8 @@ This is not toggleable - should be assigned once</p>
1562
1566
 
1563
1567
  <tr>
1564
1568
  <td class="col-md-4">
1565
- <div class="io-line">Defined in <a href="" data-line="91"
1566
- class="link-to-prism">src/tooltip/tooltip.component.ts:91</a></div>
1569
+ <div class="io-line">Defined in <a href="" data-line="93"
1570
+ class="link-to-prism">src/tooltip/tooltip.component.ts:93</a></div>
1567
1571
  </td>
1568
1572
  </tr>
1569
1573
 
@@ -1636,8 +1640,8 @@ This is not toggleable - should be assigned once</p>
1636
1640
 
1637
1641
  <tr>
1638
1642
  <td class="col-md-4">
1639
- <div class="io-line">Defined in <a href="" data-line="98"
1640
- class="link-to-prism">src/tooltip/tooltip.component.ts:98</a></div>
1643
+ <div class="io-line">Defined in <a href="" data-line="103"
1644
+ class="link-to-prism">src/tooltip/tooltip.component.ts:103</a></div>
1641
1645
  </td>
1642
1646
  </tr>
1643
1647
 
@@ -1701,8 +1705,8 @@ This is not toggleable - should be assigned once</p>
1701
1705
 
1702
1706
  <tr>
1703
1707
  <td class="col-md-4">
1704
- <div class="io-line">Defined in <a href="" data-line="130"
1705
- class="link-to-prism">src/tooltip/tooltip.component.ts:130</a></div>
1708
+ <div class="io-line">Defined in <a href="" data-line="138"
1709
+ class="link-to-prism">src/tooltip/tooltip.component.ts:138</a></div>
1706
1710
  </td>
1707
1711
  </tr>
1708
1712
 
@@ -2288,6 +2292,33 @@ This is not toggleable - should be assigned once</p>
2288
2292
  <h3 id="inputs">
2289
2293
  Properties
2290
2294
  </h3>
2295
+ <table class="table table-sm table-bordered">
2296
+ <tbody>
2297
+ <tr>
2298
+ <td class="col-md-4">
2299
+ <a name="timeoutId"></a>
2300
+ <span class="name">
2301
+ <span class="modifier">Private</span>
2302
+ <span ><b>timeoutId</b></span>
2303
+ <a href="#timeoutId"><span class="icon ion-ios-link"></span></a>
2304
+ </span>
2305
+ </td>
2306
+ </tr>
2307
+ <tr>
2308
+ <td class="col-md-4">
2309
+ <i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
2310
+
2311
+ </td>
2312
+ </tr>
2313
+ <tr>
2314
+ <td class="col-md-4">
2315
+ <div class="io-line">Defined in <a href="" data-line="79" class="link-to-prism">src/tooltip/tooltip.component.ts:79</a></div>
2316
+ </td>
2317
+ </tr>
2318
+
2319
+
2320
+ </tbody>
2321
+ </table>
2291
2322
  <table class="table table-sm table-bordered">
2292
2323
  <tbody>
2293
2324
  <tr>
@@ -2760,10 +2791,12 @@ export class Tooltip extends PopoverContainer implements AfterContentChecked {
2760
2791
  /**
2761
2792
  * Optional data for templates passed as implicit context
2762
2793
  */
2763
- @Input() templateContext: any
2794
+ @Input() templateContext: any;
2764
2795
 
2765
2796
  @ViewChild(&quot;contentWrapper&quot;) wrapper: ElementRef&lt;HTMLSpanElement&gt;;
2766
2797
 
2798
+ private timeoutId: any; // it should be number, but setTimeout below is matching the NodeJs type instead of the JS type
2799
+
2767
2800
  constructor(
2768
2801
  protected elementRef: ElementRef,
2769
2802
  protected ngZone: NgZone,
@@ -2777,14 +2810,20 @@ export class Tooltip extends PopoverContainer implements AfterContentChecked {
2777
2810
 
2778
2811
  @HostListener(&quot;mouseenter&quot;, [&quot;$event&quot;])
2779
2812
  mouseenter(event) {
2780
- setTimeout(() &#x3D;&gt; {
2813
+ // If a mouseleave is triggered before the tooltip is displayed (before setTimeout of mouseenter completes)
2814
+ // we trigger the mouseleave only avoiding having to unecessary show the tooltip
2815
+ clearTimeout(this.timeoutId);
2816
+ this.timeoutId &#x3D; setTimeout(() &#x3D;&gt; {
2781
2817
  this.handleChange(true, event);
2782
2818
  }, this.enterDelayMs);
2783
2819
  }
2784
2820
 
2785
2821
  @HostListener(&quot;mouseleave&quot;, [&quot;$event&quot;])
2786
2822
  mouseleave(event) {
2787
- setTimeout(() &#x3D;&gt; {
2823
+ // If a mouseleave is triggered before the tooltip is displayed (before setTimeout of mouseenter completes)
2824
+ // we trigger the mouseleave only avoiding having to unecessary show the tooltip
2825
+ clearTimeout(this.timeoutId);
2826
+ this.timeoutId &#x3D; setTimeout(() &#x3D;&gt; {
2788
2827
  this.handleChange(false, event);
2789
2828
  }, this.leaveDelayMs);
2790
2829
  }
@@ -2846,9 +2846,9 @@
2846
2846
  </td>
2847
2847
  <td>component</td>
2848
2848
  <td>Tooltip</td>
2849
- <td align="right" data-sort="43">
2850
- <span class="coverage-percent">43 %</span>
2851
- <span class="coverage-count">(22/51)</span>
2849
+ <td align="right" data-sort="42">
2850
+ <span class="coverage-percent">42 %</span>
2851
+ <span class="coverage-count">(22/52)</span>
2852
2852
  </td>
2853
2853
  </tr>
2854
2854
  <tr class="very-good">