@carbon/ibmdotcom-web-components 1.26.0-rc.1 → 1.26.0-rc.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 (788) hide show
  1. package/es/component-mixins/cta/cta.d.ts.map +1 -1
  2. package/es/component-mixins/cta/cta.js +12 -12
  3. package/es/component-mixins/cta/cta.js.map +1 -1
  4. package/es/component-mixins/cta/video.d.ts.map +1 -1
  5. package/es/component-mixins/cta/video.js +5 -5
  6. package/es/component-mixins/cta/video.js.map +1 -1
  7. package/es/components/back-to-top/__stories__/data/content.d.ts.map +1 -1
  8. package/es/components/back-to-top/__stories__/data/content.js +1 -1
  9. package/es/components/back-to-top/__stories__/data/content.js.map +1 -1
  10. package/es/components/back-to-top/back-to-top.d.ts +1 -1
  11. package/es/components/back-to-top/back-to-top.d.ts.map +1 -1
  12. package/es/components/back-to-top/back-to-top.js +3 -3
  13. package/es/components/back-to-top/back-to-top.js.map +1 -1
  14. package/es/components/background-media/background-media.d.ts.map +1 -1
  15. package/es/components/background-media/background-media.js +2 -2
  16. package/es/components/background-media/background-media.js.map +1 -1
  17. package/es/components/button/button.d.ts +1 -4
  18. package/es/components/button/button.d.ts.map +1 -1
  19. package/es/components/button/button.js +3 -3
  20. package/es/components/button/button.js.map +1 -1
  21. package/es/components/button-group/button-group.d.ts.map +1 -1
  22. package/es/components/button-group/button-group.js +1 -1
  23. package/es/components/button-group/button-group.js.map +1 -1
  24. package/es/components/card/card.d.ts +1 -1
  25. package/es/components/card/card.d.ts.map +1 -1
  26. package/es/components/card/card.js +1 -1
  27. package/es/components/card/card.js.map +1 -1
  28. package/es/components/card-in-card/card-in-card.d.ts.map +1 -1
  29. package/es/components/card-in-card/card-in-card.js +1 -1
  30. package/es/components/card-in-card/card-in-card.js.map +1 -1
  31. package/es/components/carousel/carousel.d.ts +10 -1
  32. package/es/components/carousel/carousel.d.ts.map +1 -1
  33. package/es/components/carousel/carousel.js +6 -6
  34. package/es/components/carousel/carousel.js.map +1 -1
  35. package/es/components/content-item-horizontal/content-item-horizontal-media.d.ts +3 -9
  36. package/es/components/content-item-horizontal/content-item-horizontal-media.d.ts.map +1 -1
  37. package/es/components/content-item-horizontal/content-item-horizontal-media.js +2 -2
  38. package/es/components/content-item-horizontal/content-item-horizontal-media.js.map +1 -1
  39. package/es/components/cta/card-cta.d.ts.map +1 -1
  40. package/es/components/cta/card-cta.js +1 -1
  41. package/es/components/cta/card-cta.js.map +1 -1
  42. package/es/components/cta/feature-cta.d.ts +4 -1
  43. package/es/components/cta/feature-cta.d.ts.map +1 -1
  44. package/es/components/cta/feature-cta.js +1 -1
  45. package/es/components/cta/feature-cta.js.map +1 -1
  46. package/es/components/cta/video-cta-composite.d.ts +9 -6
  47. package/es/components/cta/video-cta-composite.d.ts.map +1 -1
  48. package/es/components/cta/video-cta-composite.js +3 -3
  49. package/es/components/cta/video-cta-composite.js.map +1 -1
  50. package/es/components/dotcom-shell/__stories__/data/content.d.ts.map +1 -1
  51. package/es/components/dotcom-shell/__stories__/data/content.js +1 -1
  52. package/es/components/dotcom-shell/__stories__/data/content.js.map +1 -1
  53. package/es/components/expressive-modal/expressive-modal-body.d.ts +1 -1
  54. package/es/components/expressive-modal/expressive-modal-body.d.ts.map +1 -1
  55. package/es/components/expressive-modal/expressive-modal-body.js +1 -1
  56. package/es/components/expressive-modal/expressive-modal-body.js.map +1 -1
  57. package/es/components/expressive-modal/expressive-modal-close-button.d.ts +1 -1
  58. package/es/components/expressive-modal/expressive-modal-close-button.d.ts.map +1 -1
  59. package/es/components/expressive-modal/expressive-modal-close-button.js +1 -1
  60. package/es/components/expressive-modal/expressive-modal-close-button.js.map +1 -1
  61. package/es/components/expressive-modal/expressive-modal-footer.d.ts +1 -1
  62. package/es/components/expressive-modal/expressive-modal-footer.d.ts.map +1 -1
  63. package/es/components/expressive-modal/expressive-modal-footer.js +1 -1
  64. package/es/components/expressive-modal/expressive-modal-footer.js.map +1 -1
  65. package/es/components/expressive-modal/expressive-modal-header.d.ts +1 -1
  66. package/es/components/expressive-modal/expressive-modal-header.d.ts.map +1 -1
  67. package/es/components/expressive-modal/expressive-modal-header.js +1 -1
  68. package/es/components/expressive-modal/expressive-modal-header.js.map +1 -1
  69. package/es/components/expressive-modal/expressive-modal-heading.d.ts +1 -1
  70. package/es/components/expressive-modal/expressive-modal-heading.d.ts.map +1 -1
  71. package/es/components/expressive-modal/expressive-modal-heading.js +1 -1
  72. package/es/components/expressive-modal/expressive-modal-heading.js.map +1 -1
  73. package/es/components/expressive-modal/expressive-modal.d.ts +5 -10
  74. package/es/components/expressive-modal/expressive-modal.d.ts.map +1 -1
  75. package/es/components/expressive-modal/expressive-modal.js +3 -3
  76. package/es/components/expressive-modal/expressive-modal.js.map +1 -1
  77. package/es/components/filter-panel/filter-group-item.d.ts +2 -4
  78. package/es/components/filter-panel/filter-group-item.d.ts.map +1 -1
  79. package/es/components/filter-panel/filter-group-item.js +1 -1
  80. package/es/components/filter-panel/filter-group-item.js.map +1 -1
  81. package/es/components/filter-panel/filter-group.d.ts +1 -1
  82. package/es/components/filter-panel/filter-group.d.ts.map +1 -1
  83. package/es/components/filter-panel/filter-group.js +1 -1
  84. package/es/components/filter-panel/filter-group.js.map +1 -1
  85. package/es/components/filter-panel/filter-modal-button.d.ts +1 -1
  86. package/es/components/filter-panel/filter-modal-button.d.ts.map +1 -1
  87. package/es/components/filter-panel/filter-modal-button.js +1 -1
  88. package/es/components/filter-panel/filter-modal-button.js.map +1 -1
  89. package/es/components/filter-panel/filter-modal-footer.d.ts +1 -1
  90. package/es/components/filter-panel/filter-modal-footer.d.ts.map +1 -1
  91. package/es/components/filter-panel/filter-modal-footer.js +1 -1
  92. package/es/components/filter-panel/filter-modal-footer.js.map +1 -1
  93. package/es/components/filter-panel/filter-modal-heading.d.ts +1 -1
  94. package/es/components/filter-panel/filter-modal-heading.d.ts.map +1 -1
  95. package/es/components/filter-panel/filter-modal-heading.js +1 -1
  96. package/es/components/filter-panel/filter-modal-heading.js.map +1 -1
  97. package/es/components/filter-panel/filter-panel-checkbox.d.ts +2 -2
  98. package/es/components/filter-panel/filter-panel-checkbox.d.ts.map +1 -1
  99. package/es/components/filter-panel/filter-panel-checkbox.js +3 -3
  100. package/es/components/filter-panel/filter-panel-checkbox.js.map +1 -1
  101. package/es/components/filter-panel/filter-panel-composite.d.ts +20 -12
  102. package/es/components/filter-panel/filter-panel-composite.d.ts.map +1 -1
  103. package/es/components/filter-panel/filter-panel-composite.js +4 -4
  104. package/es/components/filter-panel/filter-panel-composite.js.map +1 -1
  105. package/es/components/filter-panel/filter-panel-input-select-item.d.ts +0 -3
  106. package/es/components/filter-panel/filter-panel-input-select-item.d.ts.map +1 -1
  107. package/es/components/filter-panel/filter-panel-input-select-item.js +2 -2
  108. package/es/components/filter-panel/filter-panel-input-select-item.js.map +1 -1
  109. package/es/components/filter-panel/filter-panel-input-select.d.ts +5 -1
  110. package/es/components/filter-panel/filter-panel-input-select.d.ts.map +1 -1
  111. package/es/components/filter-panel/filter-panel-input-select.js +2 -2
  112. package/es/components/filter-panel/filter-panel-input-select.js.map +1 -1
  113. package/es/components/filter-panel/filter-panel-modal.d.ts +4 -6
  114. package/es/components/filter-panel/filter-panel-modal.d.ts.map +1 -1
  115. package/es/components/filter-panel/filter-panel-modal.js +3 -3
  116. package/es/components/filter-panel/filter-panel-modal.js.map +1 -1
  117. package/es/components/filter-panel/filter-panel.d.ts +4 -2
  118. package/es/components/filter-panel/filter-panel.d.ts.map +1 -1
  119. package/es/components/filter-panel/filter-panel.js +2 -2
  120. package/es/components/filter-panel/filter-panel.js.map +1 -1
  121. package/es/components/footer/combo-box.d.ts +1 -1
  122. package/es/components/footer/combo-box.d.ts.map +1 -1
  123. package/es/components/footer/combo-box.js +1 -1
  124. package/es/components/footer/combo-box.js.map +1 -1
  125. package/es/components/footer/defs.d.ts +1 -1
  126. package/es/components/footer/defs.d.ts.map +1 -1
  127. package/es/components/footer/defs.js +1 -1
  128. package/es/components/footer/defs.js.map +1 -1
  129. package/es/components/footer/dropdown.d.ts +1 -1
  130. package/es/components/footer/dropdown.d.ts.map +1 -1
  131. package/es/components/footer/dropdown.js +3 -3
  132. package/es/components/footer/dropdown.js.map +1 -1
  133. package/es/components/footer/footer-composite.d.ts +3 -8
  134. package/es/components/footer/footer-composite.d.ts.map +1 -1
  135. package/es/components/footer/footer-composite.js +5 -5
  136. package/es/components/footer/footer-composite.js.map +1 -1
  137. package/es/components/footer/footer-logo.d.ts.map +1 -1
  138. package/es/components/footer/footer-logo.js +2 -2
  139. package/es/components/footer/footer-logo.js.map +1 -1
  140. package/es/components/footer/footer-nav-group.d.ts.map +1 -1
  141. package/es/components/footer/footer-nav-group.js +1 -1
  142. package/es/components/footer/footer-nav-group.js.map +1 -1
  143. package/es/components/footer/footer-nav-item.d.ts +1 -1
  144. package/es/components/footer/footer-nav-item.d.ts.map +1 -1
  145. package/es/components/footer/footer-nav-item.js +1 -1
  146. package/es/components/footer/footer-nav-item.js.map +1 -1
  147. package/es/components/footer/language-selector-desktop.d.ts.map +1 -1
  148. package/es/components/footer/language-selector-desktop.js +2 -2
  149. package/es/components/footer/language-selector-desktop.js.map +1 -1
  150. package/es/components/footer/language-selector-mobile.d.ts.map +1 -1
  151. package/es/components/footer/language-selector-mobile.js +2 -2
  152. package/es/components/footer/language-selector-mobile.js.map +1 -1
  153. package/es/components/footer/locale-button.d.ts +3 -1
  154. package/es/components/footer/locale-button.d.ts.map +1 -1
  155. package/es/components/footer/locale-button.js +3 -3
  156. package/es/components/footer/locale-button.js.map +1 -1
  157. package/es/components/image/image.d.ts +5 -1
  158. package/es/components/image/image.d.ts.map +1 -1
  159. package/es/components/image/image.js +3 -3
  160. package/es/components/image/image.js.map +1 -1
  161. package/es/components/image-with-caption/image-with-caption.d.ts.map +1 -1
  162. package/es/components/image-with-caption/image-with-caption.js +3 -3
  163. package/es/components/image-with-caption/image-with-caption.js.map +1 -1
  164. package/es/components/leadspace/breadcrumb-item.d.ts +1 -1
  165. package/es/components/leadspace/breadcrumb-item.d.ts.map +1 -1
  166. package/es/components/leadspace/breadcrumb-item.js +1 -1
  167. package/es/components/leadspace/breadcrumb-item.js.map +1 -1
  168. package/es/components/leadspace/breadcrumb-link.d.ts +1 -1
  169. package/es/components/leadspace/breadcrumb-link.d.ts.map +1 -1
  170. package/es/components/leadspace/breadcrumb-link.js +1 -1
  171. package/es/components/leadspace/breadcrumb-link.js.map +1 -1
  172. package/es/components/leadspace/breadcrumb.d.ts +1 -1
  173. package/es/components/leadspace/breadcrumb.d.ts.map +1 -1
  174. package/es/components/leadspace/breadcrumb.js +1 -1
  175. package/es/components/leadspace/breadcrumb.js.map +1 -1
  176. package/es/components/leaving-ibm/leaving-ibm-composite.d.ts +8 -6
  177. package/es/components/leaving-ibm/leaving-ibm-composite.d.ts.map +1 -1
  178. package/es/components/leaving-ibm/leaving-ibm-composite.js +7 -7
  179. package/es/components/leaving-ibm/leaving-ibm-composite.js.map +1 -1
  180. package/es/components/leaving-ibm/leaving-ibm-modal-body.d.ts +2 -2
  181. package/es/components/leaving-ibm/leaving-ibm-modal-body.d.ts.map +1 -1
  182. package/es/components/leaving-ibm/leaving-ibm-modal-body.js +3 -3
  183. package/es/components/leaving-ibm/leaving-ibm-modal-body.js.map +1 -1
  184. package/es/components/leaving-ibm/leaving-ibm-modal-heading.d.ts +1 -1
  185. package/es/components/leaving-ibm/leaving-ibm-modal-heading.d.ts.map +1 -1
  186. package/es/components/leaving-ibm/leaving-ibm-modal-heading.js +1 -1
  187. package/es/components/leaving-ibm/leaving-ibm-modal-heading.js.map +1 -1
  188. package/es/components/leaving-ibm/leaving-ibm-modal.d.ts +1 -1
  189. package/es/components/leaving-ibm/leaving-ibm-modal.d.ts.map +1 -1
  190. package/es/components/leaving-ibm/leaving-ibm-modal.js +2 -2
  191. package/es/components/leaving-ibm/leaving-ibm-modal.js.map +1 -1
  192. package/es/components/lightbox-media-viewer/lightbox-image-viewer.d.ts.map +1 -1
  193. package/es/components/lightbox-media-viewer/lightbox-image-viewer.js +1 -1
  194. package/es/components/lightbox-media-viewer/lightbox-image-viewer.js.map +1 -1
  195. package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.d.ts +3 -1
  196. package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.d.ts.map +1 -1
  197. package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.js +1 -1
  198. package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.js.map +1 -1
  199. package/es/components/lightbox-media-viewer/lightbox-video-player-composite.d.ts +1 -3
  200. package/es/components/lightbox-media-viewer/lightbox-video-player-composite.d.ts.map +1 -1
  201. package/es/components/lightbox-media-viewer/lightbox-video-player-composite.js +2 -2
  202. package/es/components/lightbox-media-viewer/lightbox-video-player-composite.js.map +1 -1
  203. package/es/components/link-with-icon/link-with-icon.d.ts +1 -1
  204. package/es/components/link-with-icon/link-with-icon.d.ts.map +1 -1
  205. package/es/components/link-with-icon/link-with-icon.js +1 -1
  206. package/es/components/link-with-icon/link-with-icon.js.map +1 -1
  207. package/es/components/locale-modal/locale-item.d.ts +1 -1
  208. package/es/components/locale-modal/locale-item.d.ts.map +1 -1
  209. package/es/components/locale-modal/locale-item.js +1 -1
  210. package/es/components/locale-modal/locale-item.js.map +1 -1
  211. package/es/components/locale-modal/locale-modal-composite.d.ts.map +1 -1
  212. package/es/components/locale-modal/locale-modal-composite.js +1 -1
  213. package/es/components/locale-modal/locale-modal-composite.js.map +1 -1
  214. package/es/components/locale-modal/locale-modal.d.ts.map +1 -1
  215. package/es/components/locale-modal/locale-modal.js +5 -5
  216. package/es/components/locale-modal/locale-modal.js.map +1 -1
  217. package/es/components/locale-modal/locale-search.d.ts.map +1 -1
  218. package/es/components/locale-modal/locale-search.js +1 -1
  219. package/es/components/locale-modal/locale-search.js.map +1 -1
  220. package/es/components/locale-modal/region-item.d.ts +1 -1
  221. package/es/components/locale-modal/region-item.d.ts.map +1 -1
  222. package/es/components/locale-modal/region-item.js +3 -3
  223. package/es/components/locale-modal/region-item.js.map +1 -1
  224. package/es/components/locale-modal/regions.d.ts +1 -1
  225. package/es/components/locale-modal/regions.d.ts.map +1 -1
  226. package/es/components/locale-modal/regions.js +1 -1
  227. package/es/components/locale-modal/regions.js.map +1 -1
  228. package/es/components/markdown/markdown.d.ts +4 -4
  229. package/es/components/markdown/markdown.d.ts.map +1 -1
  230. package/es/components/markdown/markdown.js +4 -4
  231. package/es/components/markdown/markdown.js.map +1 -1
  232. package/es/components/masthead/cloud/cloud-left-nav-item.d.ts +1 -1
  233. package/es/components/masthead/cloud/cloud-left-nav-item.d.ts.map +1 -1
  234. package/es/components/masthead/cloud/cloud-left-nav-item.js +1 -1
  235. package/es/components/masthead/cloud/cloud-left-nav-item.js.map +1 -1
  236. package/es/components/masthead/cloud/cloud-masthead-composite.d.ts.map +1 -1
  237. package/es/components/masthead/cloud/cloud-masthead-composite.js +1 -1
  238. package/es/components/masthead/cloud/cloud-masthead-composite.js.map +1 -1
  239. package/es/components/masthead/cloud/cloud-masthead-profile.d.ts.map +1 -1
  240. package/es/components/masthead/cloud/cloud-masthead-profile.js +1 -1
  241. package/es/components/masthead/cloud/cloud-masthead-profile.js.map +1 -1
  242. package/es/components/masthead/cloud/cloud-megamenu-category-heading.d.ts.map +1 -1
  243. package/es/components/masthead/cloud/cloud-megamenu-category-heading.js +1 -1
  244. package/es/components/masthead/cloud/cloud-megamenu-category-heading.js.map +1 -1
  245. package/es/components/masthead/cloud/cloud-megamenu-category-link.d.ts +1 -1
  246. package/es/components/masthead/cloud/cloud-megamenu-category-link.d.ts.map +1 -1
  247. package/es/components/masthead/cloud/cloud-megamenu-category-link.js +1 -1
  248. package/es/components/masthead/cloud/cloud-megamenu-category-link.js.map +1 -1
  249. package/es/components/masthead/cloud/cloud-megamenu-tab.d.ts +1 -1
  250. package/es/components/masthead/cloud/cloud-megamenu-tab.d.ts.map +1 -1
  251. package/es/components/masthead/cloud/cloud-megamenu-tab.js +1 -1
  252. package/es/components/masthead/cloud/cloud-megamenu-tab.js.map +1 -1
  253. package/es/components/masthead/cloud/cloud-megamenu-tabs.d.ts +1 -1
  254. package/es/components/masthead/cloud/cloud-megamenu-tabs.d.ts.map +1 -1
  255. package/es/components/masthead/cloud/cloud-megamenu-tabs.js +1 -1
  256. package/es/components/masthead/cloud/cloud-megamenu-tabs.js.map +1 -1
  257. package/es/components/masthead/left-nav-item.d.ts +1 -1
  258. package/es/components/masthead/left-nav-item.d.ts.map +1 -1
  259. package/es/components/masthead/left-nav-item.js +1 -1
  260. package/es/components/masthead/left-nav-item.js.map +1 -1
  261. package/es/components/masthead/left-nav-menu-item.d.ts +1 -1
  262. package/es/components/masthead/left-nav-menu-item.d.ts.map +1 -1
  263. package/es/components/masthead/left-nav-menu-item.js +1 -1
  264. package/es/components/masthead/left-nav-menu-item.js.map +1 -1
  265. package/es/components/masthead/left-nav-menu-section.d.ts +11 -12
  266. package/es/components/masthead/left-nav-menu-section.d.ts.map +1 -1
  267. package/es/components/masthead/left-nav-menu-section.js +6 -6
  268. package/es/components/masthead/left-nav-menu-section.js.map +1 -1
  269. package/es/components/masthead/left-nav-menu.d.ts +3 -0
  270. package/es/components/masthead/left-nav-menu.d.ts.map +1 -1
  271. package/es/components/masthead/left-nav-menu.js +2 -2
  272. package/es/components/masthead/left-nav-menu.js.map +1 -1
  273. package/es/components/masthead/left-nav-name.d.ts +1 -1
  274. package/es/components/masthead/left-nav-name.d.ts.map +1 -1
  275. package/es/components/masthead/left-nav-name.js +2 -2
  276. package/es/components/masthead/left-nav-name.js.map +1 -1
  277. package/es/components/masthead/left-nav.d.ts +1 -1
  278. package/es/components/masthead/left-nav.d.ts.map +1 -1
  279. package/es/components/masthead/left-nav.js +3 -3
  280. package/es/components/masthead/left-nav.js.map +1 -1
  281. package/es/components/masthead/masthead-composite.d.ts.map +1 -1
  282. package/es/components/masthead/masthead-composite.js +2 -2
  283. package/es/components/masthead/masthead-composite.js.map +1 -1
  284. package/es/components/masthead/masthead-global-bar.d.ts +7 -4
  285. package/es/components/masthead/masthead-global-bar.d.ts.map +1 -1
  286. package/es/components/masthead/masthead-global-bar.js +3 -3
  287. package/es/components/masthead/masthead-global-bar.js.map +1 -1
  288. package/es/components/masthead/masthead-logo.d.ts +7 -12
  289. package/es/components/masthead/masthead-logo.d.ts.map +1 -1
  290. package/es/components/masthead/masthead-logo.js +4 -4
  291. package/es/components/masthead/masthead-logo.js.map +1 -1
  292. package/es/components/masthead/masthead-menu-button.d.ts +2 -2
  293. package/es/components/masthead/masthead-menu-button.d.ts.map +1 -1
  294. package/es/components/masthead/masthead-menu-button.js +3 -3
  295. package/es/components/masthead/masthead-menu-button.js.map +1 -1
  296. package/es/components/masthead/masthead-profile-item.d.ts +1 -1
  297. package/es/components/masthead/masthead-profile-item.d.ts.map +1 -1
  298. package/es/components/masthead/masthead-profile-item.js +1 -1
  299. package/es/components/masthead/masthead-profile-item.js.map +1 -1
  300. package/es/components/masthead/masthead-profile.d.ts +1 -1
  301. package/es/components/masthead/masthead-profile.d.ts.map +1 -1
  302. package/es/components/masthead/masthead-profile.js +5 -5
  303. package/es/components/masthead/masthead-profile.js.map +1 -1
  304. package/es/components/masthead/megamenu-category-group.d.ts.map +1 -1
  305. package/es/components/masthead/megamenu-category-group.js +2 -2
  306. package/es/components/masthead/megamenu-category-group.js.map +1 -1
  307. package/es/components/masthead/megamenu-category-link.d.ts +1 -1
  308. package/es/components/masthead/megamenu-category-link.d.ts.map +1 -1
  309. package/es/components/masthead/megamenu-category-link.js +1 -1
  310. package/es/components/masthead/megamenu-category-link.js.map +1 -1
  311. package/es/components/masthead/megamenu-link-with-icon.d.ts +1 -1
  312. package/es/components/masthead/megamenu-link-with-icon.d.ts.map +1 -1
  313. package/es/components/masthead/megamenu-link-with-icon.js +1 -1
  314. package/es/components/masthead/megamenu-link-with-icon.js.map +1 -1
  315. package/es/components/masthead/megamenu-right-navigation.d.ts.map +1 -1
  316. package/es/components/masthead/megamenu-right-navigation.js +1 -1
  317. package/es/components/masthead/megamenu-right-navigation.js.map +1 -1
  318. package/es/components/masthead/skip-to-content.d.ts +1 -1
  319. package/es/components/masthead/skip-to-content.d.ts.map +1 -1
  320. package/es/components/masthead/skip-to-content.js +1 -1
  321. package/es/components/masthead/skip-to-content.js.map +1 -1
  322. package/es/components/masthead/top-nav-item.d.ts +1 -1
  323. package/es/components/masthead/top-nav-item.d.ts.map +1 -1
  324. package/es/components/masthead/top-nav-item.js +1 -1
  325. package/es/components/masthead/top-nav-item.js.map +1 -1
  326. package/es/components/masthead/top-nav-menu-item.d.ts +1 -1
  327. package/es/components/masthead/top-nav-menu-item.d.ts.map +1 -1
  328. package/es/components/masthead/top-nav-menu-item.js +1 -1
  329. package/es/components/masthead/top-nav-menu-item.js.map +1 -1
  330. package/es/components/masthead/top-nav-menu.d.ts +1 -1
  331. package/es/components/masthead/top-nav-menu.d.ts.map +1 -1
  332. package/es/components/masthead/top-nav-menu.js +1 -1
  333. package/es/components/masthead/top-nav-menu.js.map +1 -1
  334. package/es/components/masthead/top-nav-name.d.ts.map +1 -1
  335. package/es/components/masthead/top-nav-name.js +1 -1
  336. package/es/components/masthead/top-nav-name.js.map +1 -1
  337. package/es/components/masthead/top-nav.d.ts +2 -11
  338. package/es/components/masthead/top-nav.d.ts.map +1 -1
  339. package/es/components/masthead/top-nav.js +6 -6
  340. package/es/components/masthead/top-nav.js.map +1 -1
  341. package/es/components/pricing-table/pricing-table-annotation-toggle.d.ts.map +1 -1
  342. package/es/components/pricing-table/pricing-table-annotation-toggle.js +2 -2
  343. package/es/components/pricing-table/pricing-table-annotation-toggle.js.map +1 -1
  344. package/es/components/pricing-table/pricing-table-cell.d.ts +1 -1
  345. package/es/components/pricing-table/pricing-table-cell.d.ts.map +1 -1
  346. package/es/components/pricing-table/pricing-table-cell.js +2 -2
  347. package/es/components/pricing-table/pricing-table-cell.js.map +1 -1
  348. package/es/components/pricing-table/pricing-table.d.ts +5 -8
  349. package/es/components/pricing-table/pricing-table.d.ts.map +1 -1
  350. package/es/components/pricing-table/pricing-table.js +2 -2
  351. package/es/components/pricing-table/pricing-table.js.map +1 -1
  352. package/es/components/search/search.d.ts +2 -2
  353. package/es/components/search/search.d.ts.map +1 -1
  354. package/es/components/search/search.js +2 -2
  355. package/es/components/search/search.js.map +1 -1
  356. package/es/components/search-with-typeahead/scoped-search-dropdown-mobile.d.ts.map +1 -1
  357. package/es/components/search-with-typeahead/scoped-search-dropdown-mobile.js +4 -4
  358. package/es/components/search-with-typeahead/scoped-search-dropdown-mobile.js.map +1 -1
  359. package/es/components/search-with-typeahead/search-with-typeahead.d.ts +10 -16
  360. package/es/components/search-with-typeahead/search-with-typeahead.d.ts.map +1 -1
  361. package/es/components/search-with-typeahead/search-with-typeahead.js +6 -6
  362. package/es/components/search-with-typeahead/search-with-typeahead.js.map +1 -1
  363. package/es/components/structured-list/index.d.ts +2 -2
  364. package/es/components/structured-list/index.d.ts.map +1 -1
  365. package/es/components/structured-list/index.js +2 -2
  366. package/es/components/structured-list/index.js.map +1 -1
  367. package/es/components/structured-list/structured-list-body.d.ts +1 -1
  368. package/es/components/structured-list/structured-list-body.d.ts.map +1 -1
  369. package/es/components/structured-list/structured-list-body.js +1 -1
  370. package/es/components/structured-list/structured-list-body.js.map +1 -1
  371. package/es/components/structured-list/structured-list-cell.d.ts +1 -1
  372. package/es/components/structured-list/structured-list-cell.d.ts.map +1 -1
  373. package/es/components/structured-list/structured-list-cell.js +4 -4
  374. package/es/components/structured-list/structured-list-cell.js.map +1 -1
  375. package/es/components/structured-list/structured-list-head.d.ts +1 -1
  376. package/es/components/structured-list/structured-list-head.d.ts.map +1 -1
  377. package/es/components/structured-list/structured-list-head.js +1 -1
  378. package/es/components/structured-list/structured-list-head.js.map +1 -1
  379. package/es/components/structured-list/structured-list-header-cell.d.ts +1 -1
  380. package/es/components/structured-list/structured-list-header-cell.d.ts.map +1 -1
  381. package/es/components/structured-list/structured-list-header-cell.js +1 -1
  382. package/es/components/structured-list/structured-list-header-cell.js.map +1 -1
  383. package/es/components/structured-list/structured-list-header-row.d.ts +1 -1
  384. package/es/components/structured-list/structured-list-header-row.d.ts.map +1 -1
  385. package/es/components/structured-list/structured-list-header-row.js +1 -1
  386. package/es/components/structured-list/structured-list-header-row.js.map +1 -1
  387. package/es/components/structured-list/structured-list-row.d.ts +1 -1
  388. package/es/components/structured-list/structured-list-row.d.ts.map +1 -1
  389. package/es/components/structured-list/structured-list-row.js +1 -1
  390. package/es/components/structured-list/structured-list-row.js.map +1 -1
  391. package/es/components/table-of-contents/table-of-contents.d.ts +24 -6
  392. package/es/components/table-of-contents/table-of-contents.d.ts.map +1 -1
  393. package/es/components/table-of-contents/table-of-contents.js +5 -5
  394. package/es/components/table-of-contents/table-of-contents.js.map +1 -1
  395. package/es/components/tabs-extended/tabs-extended.d.ts.map +1 -1
  396. package/es/components/tabs-extended/tabs-extended.js +1 -1
  397. package/es/components/tabs-extended/tabs-extended.js.map +1 -1
  398. package/es/components/tag-link/tag-link.d.ts.map +1 -1
  399. package/es/components/tag-link/tag-link.js +1 -1
  400. package/es/components/tag-link/tag-link.js.map +1 -1
  401. package/es/components/video-player/video-player-composite.d.ts +7 -2
  402. package/es/components/video-player/video-player-composite.d.ts.map +1 -1
  403. package/es/components/video-player/video-player-composite.js +3 -3
  404. package/es/components/video-player/video-player-composite.js.map +1 -1
  405. package/es/components/video-player/video-player.d.ts +6 -0
  406. package/es/components/video-player/video-player.d.ts.map +1 -1
  407. package/es/components/video-player/video-player.js +2 -2
  408. package/es/components/video-player/video-player.js.map +1 -1
  409. package/es/components-react/back-to-top/back-to-top.js +1 -1
  410. package/es/components-react/background-media/background-media.js +1 -1
  411. package/es/components-react/button/button.js +2 -2
  412. package/es/components-react/button-group/button-group-item.js +1 -1
  413. package/es/components-react/button-group/button-group.js +1 -1
  414. package/es/components-react/callout-quote/callout-link-with-icon.js +1 -1
  415. package/es/components-react/callout-quote/callout-quote.js +1 -1
  416. package/es/components-react/callout-with-media/callout-with-media-copy.js +1 -1
  417. package/es/components-react/callout-with-media/callout-with-media-image.js +1 -1
  418. package/es/components-react/callout-with-media/callout-with-media-video.js +1 -1
  419. package/es/components-react/callout-with-media/callout-with-media.js +1 -1
  420. package/es/components-react/card/card-eyebrow.js +1 -1
  421. package/es/components-react/card/card-footer.js +1 -1
  422. package/es/components-react/card/card-heading.js +1 -1
  423. package/es/components-react/card/card.js +3 -3
  424. package/es/components-react/card/image-logo.js +1 -1
  425. package/es/components-react/card-group/card-group-card-link-item.js +1 -1
  426. package/es/components-react/card-group/card-group-item.js +1 -1
  427. package/es/components-react/card-group/card-group.js +1 -1
  428. package/es/components-react/card-in-card/card-in-card-image.js +1 -1
  429. package/es/components-react/card-in-card/card-in-card.js +1 -1
  430. package/es/components-react/card-link/card-link-heading.js +1 -1
  431. package/es/components-react/card-link/card-link.js +1 -1
  432. package/es/components-react/card-section-carousel/card-section-carousel.js +1 -1
  433. package/es/components-react/card-section-offset/card-section-offset.js +1 -1
  434. package/es/components-react/card-section-simple/card-section-simple.js +1 -1
  435. package/es/components-react/carousel/carousel.js +1 -1
  436. package/es/components-react/content-block/content-block-complementary.js +1 -1
  437. package/es/components-react/content-block/content-block-copy.js +1 -1
  438. package/es/components-react/content-block/content-block-heading.js +1 -1
  439. package/es/components-react/content-block/content-block-paragraph.js +1 -1
  440. package/es/components-react/content-block/content-block.js +1 -1
  441. package/es/components-react/content-block-cards/content-block-cards.js +1 -1
  442. package/es/components-react/content-block-horizontal/content-block-horizontal.js +1 -1
  443. package/es/components-react/content-block-media/content-block-media-content.js +1 -1
  444. package/es/components-react/content-block-media/content-block-media.js +1 -1
  445. package/es/components-react/content-block-mixed/content-block-mixed.js +1 -1
  446. package/es/components-react/content-block-segmented/content-block-segmented-item.js +1 -1
  447. package/es/components-react/content-block-segmented/content-block-segmented.js +1 -1
  448. package/es/components-react/content-block-simple/content-block-simple.js +1 -1
  449. package/es/components-react/content-group/content-group-copy.js +1 -1
  450. package/es/components-react/content-group/content-group-heading.js +1 -1
  451. package/es/components-react/content-group/content-group-paragraph.js +1 -1
  452. package/es/components-react/content-group/content-group.js +1 -1
  453. package/es/components-react/content-group-banner/content-group-banner.js +1 -1
  454. package/es/components-react/content-group-cards/content-group-cards-item.js +1 -1
  455. package/es/components-react/content-group-cards/content-group-cards.js +1 -1
  456. package/es/components-react/content-group-pictograms/content-group-pictograms.js +1 -1
  457. package/es/components-react/content-group-simple/content-group-simple.js +1 -1
  458. package/es/components-react/content-item/content-item-copy.js +1 -1
  459. package/es/components-react/content-item/content-item-heading.js +1 -1
  460. package/es/components-react/content-item/content-item-paragraph.js +1 -1
  461. package/es/components-react/content-item/content-item.js +1 -1
  462. package/es/components-react/content-item-horizontal/content-item-horizontal-copy.js +1 -1
  463. package/es/components-react/content-item-horizontal/content-item-horizontal-eyebrow.js +1 -1
  464. package/es/components-react/content-item-horizontal/content-item-horizontal-media-copy.js +1 -1
  465. package/es/components-react/content-item-horizontal/content-item-horizontal-media-featured.js +1 -1
  466. package/es/components-react/content-item-horizontal/content-item-horizontal-media-video.js +1 -1
  467. package/es/components-react/content-item-horizontal/content-item-horizontal-media.js +1 -1
  468. package/es/components-react/content-item-horizontal/content-item-horizontal-thumbnail-copy.js +1 -1
  469. package/es/components-react/content-item-horizontal/content-item-horizontal.js +1 -1
  470. package/es/components-react/content-section/content-section-copy.js +1 -1
  471. package/es/components-react/content-section/content-section-heading.js +1 -1
  472. package/es/components-react/content-section/content-section.js +1 -1
  473. package/es/components-react/cta/button-cta.js +1 -1
  474. package/es/components-react/cta/card-cta-footer.js +1 -1
  475. package/es/components-react/cta/card-cta-image.js +1 -1
  476. package/es/components-react/cta/card-cta.js +1 -1
  477. package/es/components-react/cta/card-link-cta.js +1 -1
  478. package/es/components-react/cta/feature-cta-footer.js +1 -1
  479. package/es/components-react/cta/feature-cta.js +1 -1
  480. package/es/components-react/cta/link-list-item-card-cta.js +1 -1
  481. package/es/components-react/cta/link-list-item-cta.js +1 -1
  482. package/es/components-react/cta/text-cta.js +1 -1
  483. package/es/components-react/cta/video-cta-composite.js +1 -1
  484. package/es/components-react/cta/video-cta-container.js +1 -1
  485. package/es/components-react/cta-block/cta-block-item-row.js +1 -1
  486. package/es/components-react/cta-block/cta-block-item.js +1 -1
  487. package/es/components-react/cta-block/cta-block.js +1 -1
  488. package/es/components-react/cta-section/cta-section.js +1 -1
  489. package/es/components-react/dotcom-shell/dotcom-shell-composite.js +1 -1
  490. package/es/components-react/dotcom-shell/dotcom-shell-container.js +1 -1
  491. package/es/components-react/dotcom-shell/dotcom-shell.js +1 -1
  492. package/es/components-react/expressive-modal/expressive-modal-body.js +3 -3
  493. package/es/components-react/expressive-modal/expressive-modal-close-button.js +3 -3
  494. package/es/components-react/expressive-modal/expressive-modal-footer.js +3 -3
  495. package/es/components-react/expressive-modal/expressive-modal-header.js +3 -3
  496. package/es/components-react/expressive-modal/expressive-modal-heading.js +3 -3
  497. package/es/components-react/expressive-modal/expressive-modal.js +1 -1
  498. package/es/components-react/feature-card/feature-card-footer.js +1 -1
  499. package/es/components-react/feature-card/feature-card.js +1 -1
  500. package/es/components-react/feature-section/feature-section-card-link.js +1 -1
  501. package/es/components-react/feature-section/feature-section.js +1 -1
  502. package/es/components-react/filter-panel/filter-group-item.js +3 -3
  503. package/es/components-react/filter-panel/filter-group.js +3 -3
  504. package/es/components-react/filter-panel/filter-modal-button.js +3 -3
  505. package/es/components-react/filter-panel/filter-modal-footer.js +3 -3
  506. package/es/components-react/filter-panel/filter-modal-heading.js +3 -3
  507. package/es/components-react/filter-panel/filter-panel-checkbox.js +3 -3
  508. package/es/components-react/filter-panel/filter-panel-composite.js +1 -1
  509. package/es/components-react/filter-panel/filter-panel-heading.js +1 -1
  510. package/es/components-react/filter-panel/filter-panel-input-select-item.js +1 -1
  511. package/es/components-react/filter-panel/filter-panel-input-select.js +1 -1
  512. package/es/components-react/filter-panel/filter-panel-modal.js +3 -3
  513. package/es/components-react/filter-panel/filter-panel.js +1 -1
  514. package/es/components-react/footer/dropdown.js +3 -3
  515. package/es/components-react/footer/footer-composite.js +1 -1
  516. package/es/components-react/footer/footer-container.js +1 -1
  517. package/es/components-react/horizontal-rule/horizontal-rule.js +1 -1
  518. package/es/components-react/image/image-item.js +1 -1
  519. package/es/components-react/image/image.js +1 -1
  520. package/es/components-react/leadspace/breadcrumb-item.js +3 -3
  521. package/es/components-react/leadspace/breadcrumb-link.js +3 -3
  522. package/es/components-react/leadspace/breadcrumb.js +3 -3
  523. package/es/components-react/leadspace/leadspace-heading.js +1 -1
  524. package/es/components-react/leadspace/leadspace-image.js +1 -1
  525. package/es/components-react/leadspace/leadspace.js +1 -1
  526. package/es/components-react/leadspace-block/leadspace-block-content.js +1 -1
  527. package/es/components-react/leadspace-block/leadspace-block-cta.js +1 -1
  528. package/es/components-react/leadspace-block/leadspace-block-heading.js +1 -1
  529. package/es/components-react/leadspace-block/leadspace-block-media.js +1 -1
  530. package/es/components-react/leadspace-block/leadspace-block.js +1 -1
  531. package/es/components-react/leadspace-with-search/leadspace-with-search-content-copy.js +1 -1
  532. package/es/components-react/leadspace-with-search/leadspace-with-search-content-heading.js +1 -1
  533. package/es/components-react/leadspace-with-search/leadspace-with-search-content.js +1 -1
  534. package/es/components-react/leadspace-with-search/leadspace-with-search-heading.js +1 -1
  535. package/es/components-react/leadspace-with-search/leadspace-with-search.js +1 -1
  536. package/es/components-react/leaving-ibm/leaving-ibm-composite.js +1 -1
  537. package/es/components-react/leaving-ibm/leaving-ibm-container.js +1 -1
  538. package/es/components-react/leaving-ibm/leaving-ibm-modal-body.js +3 -3
  539. package/es/components-react/leaving-ibm/leaving-ibm-modal-heading.js +3 -3
  540. package/es/components-react/leaving-ibm/leaving-ibm-modal-supplemental.js +1 -1
  541. package/es/components-react/leaving-ibm/leaving-ibm-modal.js +3 -3
  542. package/es/components-react/lightbox-media-viewer/lightbox-image-viewer.js +1 -1
  543. package/es/components-react/lightbox-media-viewer/lightbox-media-viewer.js +1 -1
  544. package/es/components-react/lightbox-media-viewer/lightbox-video-player-composite.js +1 -1
  545. package/es/components-react/lightbox-media-viewer/lightbox-video-player-container.js +1 -1
  546. package/es/components-react/lightbox-media-viewer/lightbox-video-player.js +1 -1
  547. package/es/components-react/link-list/link-list-heading.js +1 -1
  548. package/es/components-react/link-list/link-list-item-card.js +1 -1
  549. package/es/components-react/link-list/link-list-item.js +1 -1
  550. package/es/components-react/link-list/link-list.js +1 -1
  551. package/es/components-react/link-list-section/link-list-section.js +1 -1
  552. package/es/components-react/link-with-icon/link-with-icon.js +3 -3
  553. package/es/components-react/locale-modal/locale-modal-composite.js +1 -1
  554. package/es/components-react/locale-modal/locale-modal-container.js +1 -1
  555. package/es/components-react/logo-grid/logo-grid-item.js +1 -1
  556. package/es/components-react/logo-grid/logo-grid-link.js +1 -1
  557. package/es/components-react/logo-grid/logo-grid.js +1 -1
  558. package/es/components-react/markdown/markdown.js +1 -1
  559. package/es/components-react/masthead/masthead-composite.js +1 -1
  560. package/es/components-react/masthead/masthead-container.js +1 -1
  561. package/es/components-react/masthead/masthead.js +1 -1
  562. package/es/components-react/pictogram-item/pictogram-item.js +1 -1
  563. package/es/components-react/quote/quote-link-with-icon.js +1 -1
  564. package/es/components-react/quote/quote-source-bottom-copy.js +1 -1
  565. package/es/components-react/quote/quote-source-copy.js +1 -1
  566. package/es/components-react/quote/quote-source-heading.js +1 -1
  567. package/es/components-react/quote/quote.js +1 -1
  568. package/es/components-react/search-with-typeahead/scoped-search-dropdown-mobile.js +3 -3
  569. package/es/components-react/search-with-typeahead/scoped-search-dropdown.js +1 -1
  570. package/es/components-react/search-with-typeahead/search-with-typeahead-item.js +1 -1
  571. package/es/components-react/search-with-typeahead/search-with-typeahead.js +3 -3
  572. package/es/components-react/structured-list/structured-list-body.js +3 -3
  573. package/es/components-react/structured-list/structured-list-cell.js +3 -3
  574. package/es/components-react/structured-list/structured-list-group.js +1 -1
  575. package/es/components-react/structured-list/structured-list-head.js +3 -3
  576. package/es/components-react/structured-list/structured-list-header-cell.js +3 -3
  577. package/es/components-react/structured-list/structured-list-header-row.js +3 -3
  578. package/es/components-react/structured-list/structured-list-row.js +3 -3
  579. package/es/components-react/structured-list/structured-list.js +1 -1
  580. package/es/components-react/table-of-contents/table-of-contents.js +1 -1
  581. package/es/components-react/tabs-extended/tab.js +1 -1
  582. package/es/components-react/tabs-extended/tabs-extended.js +1 -1
  583. package/es/components-react/tabs-extended-media/tabs-extended-media.js +1 -1
  584. package/es/components-react/tag-group/tag-group.js +1 -1
  585. package/es/components-react/tag-link/tag-link.js +1 -1
  586. package/es/components-react/universal-banner/universal-banner-copy.js +1 -1
  587. package/es/components-react/universal-banner/universal-banner-heading.js +1 -1
  588. package/es/components-react/universal-banner/universal-banner-image.js +1 -1
  589. package/es/components-react/universal-banner/universal-banner.js +1 -1
  590. package/es/components-react/video-player/video-player-composite.js +1 -1
  591. package/es/components-react/video-player/video-player-container.js +1 -1
  592. package/es/components-react/video-player/video-player.js +1 -1
  593. package/es/icons/IBM-8bar-logo--h23.js +1 -1
  594. package/es/icons/IBM-8bar-logo--h65-white.js +1 -1
  595. package/es/icons/play-video.js +1 -1
  596. package/lib/components-react-node/back-to-top/back-to-top.js +1 -1
  597. package/lib/components-react-node/background-media/background-media.js +1 -1
  598. package/lib/components-react-node/button/button.js +2 -2
  599. package/lib/components-react-node/button-group/button-group-item.js +1 -1
  600. package/lib/components-react-node/button-group/button-group.js +1 -1
  601. package/lib/components-react-node/callout-quote/callout-link-with-icon.js +1 -1
  602. package/lib/components-react-node/callout-quote/callout-quote.js +1 -1
  603. package/lib/components-react-node/callout-with-media/callout-with-media-copy.js +1 -1
  604. package/lib/components-react-node/callout-with-media/callout-with-media-image.js +1 -1
  605. package/lib/components-react-node/callout-with-media/callout-with-media-video.js +1 -1
  606. package/lib/components-react-node/callout-with-media/callout-with-media.js +1 -1
  607. package/lib/components-react-node/card/card-eyebrow.js +1 -1
  608. package/lib/components-react-node/card/card-footer.js +1 -1
  609. package/lib/components-react-node/card/card-heading.js +1 -1
  610. package/lib/components-react-node/card/card.js +2 -2
  611. package/lib/components-react-node/card/image-logo.js +1 -1
  612. package/lib/components-react-node/card-group/card-group-card-link-item.js +1 -1
  613. package/lib/components-react-node/card-group/card-group-item.js +1 -1
  614. package/lib/components-react-node/card-group/card-group.js +1 -1
  615. package/lib/components-react-node/card-in-card/card-in-card-image.js +1 -1
  616. package/lib/components-react-node/card-in-card/card-in-card.js +1 -1
  617. package/lib/components-react-node/card-link/card-link-heading.js +1 -1
  618. package/lib/components-react-node/card-link/card-link.js +1 -1
  619. package/lib/components-react-node/card-section-carousel/card-section-carousel.js +1 -1
  620. package/lib/components-react-node/card-section-offset/card-section-offset.js +1 -1
  621. package/lib/components-react-node/card-section-simple/card-section-simple.js +1 -1
  622. package/lib/components-react-node/carousel/carousel.js +1 -1
  623. package/lib/components-react-node/content-block/content-block-complementary.js +1 -1
  624. package/lib/components-react-node/content-block/content-block-copy.js +1 -1
  625. package/lib/components-react-node/content-block/content-block-heading.js +1 -1
  626. package/lib/components-react-node/content-block/content-block-paragraph.js +1 -1
  627. package/lib/components-react-node/content-block/content-block.js +1 -1
  628. package/lib/components-react-node/content-block-cards/content-block-cards.js +1 -1
  629. package/lib/components-react-node/content-block-horizontal/content-block-horizontal.js +1 -1
  630. package/lib/components-react-node/content-block-media/content-block-media-content.js +1 -1
  631. package/lib/components-react-node/content-block-media/content-block-media.js +1 -1
  632. package/lib/components-react-node/content-block-mixed/content-block-mixed.js +1 -1
  633. package/lib/components-react-node/content-block-segmented/content-block-segmented-item.js +1 -1
  634. package/lib/components-react-node/content-block-segmented/content-block-segmented.js +1 -1
  635. package/lib/components-react-node/content-block-simple/content-block-simple.js +1 -1
  636. package/lib/components-react-node/content-group/content-group-copy.js +1 -1
  637. package/lib/components-react-node/content-group/content-group-heading.js +1 -1
  638. package/lib/components-react-node/content-group/content-group-paragraph.js +1 -1
  639. package/lib/components-react-node/content-group/content-group.js +1 -1
  640. package/lib/components-react-node/content-group-banner/content-group-banner.js +1 -1
  641. package/lib/components-react-node/content-group-cards/content-group-cards-item.js +1 -1
  642. package/lib/components-react-node/content-group-cards/content-group-cards.js +1 -1
  643. package/lib/components-react-node/content-group-pictograms/content-group-pictograms.js +1 -1
  644. package/lib/components-react-node/content-group-simple/content-group-simple.js +1 -1
  645. package/lib/components-react-node/content-item/content-item-copy.js +1 -1
  646. package/lib/components-react-node/content-item/content-item-heading.js +1 -1
  647. package/lib/components-react-node/content-item/content-item-paragraph.js +1 -1
  648. package/lib/components-react-node/content-item/content-item.js +1 -1
  649. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-copy.js +1 -1
  650. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-eyebrow.js +1 -1
  651. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-copy.js +1 -1
  652. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-featured.js +1 -1
  653. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-video.js +1 -1
  654. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media.js +1 -1
  655. package/lib/components-react-node/content-item-horizontal/content-item-horizontal-thumbnail-copy.js +1 -1
  656. package/lib/components-react-node/content-item-horizontal/content-item-horizontal.js +1 -1
  657. package/lib/components-react-node/content-section/content-section-copy.js +1 -1
  658. package/lib/components-react-node/content-section/content-section-heading.js +1 -1
  659. package/lib/components-react-node/content-section/content-section.js +1 -1
  660. package/lib/components-react-node/cta/button-cta.js +1 -1
  661. package/lib/components-react-node/cta/card-cta-footer.js +1 -1
  662. package/lib/components-react-node/cta/card-cta-image.js +1 -1
  663. package/lib/components-react-node/cta/card-cta.js +1 -1
  664. package/lib/components-react-node/cta/card-link-cta.js +1 -1
  665. package/lib/components-react-node/cta/feature-cta-footer.js +1 -1
  666. package/lib/components-react-node/cta/feature-cta.js +1 -1
  667. package/lib/components-react-node/cta/link-list-item-card-cta.js +1 -1
  668. package/lib/components-react-node/cta/link-list-item-cta.js +1 -1
  669. package/lib/components-react-node/cta/text-cta.js +1 -1
  670. package/lib/components-react-node/cta/video-cta-composite.js +1 -1
  671. package/lib/components-react-node/cta/video-cta-container.js +1 -1
  672. package/lib/components-react-node/cta-block/cta-block-item-row.js +1 -1
  673. package/lib/components-react-node/cta-block/cta-block-item.js +1 -1
  674. package/lib/components-react-node/cta-block/cta-block.js +1 -1
  675. package/lib/components-react-node/cta-section/cta-section.js +1 -1
  676. package/lib/components-react-node/dotcom-shell/dotcom-shell-composite.js +1 -1
  677. package/lib/components-react-node/dotcom-shell/dotcom-shell-container.js +1 -1
  678. package/lib/components-react-node/dotcom-shell/dotcom-shell.js +1 -1
  679. package/lib/components-react-node/expressive-modal/expressive-modal-body.js +2 -2
  680. package/lib/components-react-node/expressive-modal/expressive-modal-close-button.js +2 -2
  681. package/lib/components-react-node/expressive-modal/expressive-modal-footer.js +2 -2
  682. package/lib/components-react-node/expressive-modal/expressive-modal-header.js +2 -2
  683. package/lib/components-react-node/expressive-modal/expressive-modal-heading.js +2 -2
  684. package/lib/components-react-node/expressive-modal/expressive-modal.js +1 -1
  685. package/lib/components-react-node/feature-card/feature-card-footer.js +1 -1
  686. package/lib/components-react-node/feature-card/feature-card.js +1 -1
  687. package/lib/components-react-node/feature-section/feature-section-card-link.js +1 -1
  688. package/lib/components-react-node/feature-section/feature-section.js +1 -1
  689. package/lib/components-react-node/filter-panel/filter-group-item.js +2 -2
  690. package/lib/components-react-node/filter-panel/filter-group.js +2 -2
  691. package/lib/components-react-node/filter-panel/filter-modal-button.js +2 -2
  692. package/lib/components-react-node/filter-panel/filter-modal-footer.js +2 -2
  693. package/lib/components-react-node/filter-panel/filter-modal-heading.js +2 -2
  694. package/lib/components-react-node/filter-panel/filter-panel-checkbox.js +2 -2
  695. package/lib/components-react-node/filter-panel/filter-panel-composite.js +1 -1
  696. package/lib/components-react-node/filter-panel/filter-panel-heading.js +1 -1
  697. package/lib/components-react-node/filter-panel/filter-panel-input-select-item.js +1 -1
  698. package/lib/components-react-node/filter-panel/filter-panel-input-select.js +1 -1
  699. package/lib/components-react-node/filter-panel/filter-panel-modal.js +2 -2
  700. package/lib/components-react-node/filter-panel/filter-panel.js +1 -1
  701. package/lib/components-react-node/footer/dropdown.js +2 -2
  702. package/lib/components-react-node/footer/footer-composite.js +1 -1
  703. package/lib/components-react-node/footer/footer-container.js +1 -1
  704. package/lib/components-react-node/horizontal-rule/horizontal-rule.js +1 -1
  705. package/lib/components-react-node/image/image-item.js +1 -1
  706. package/lib/components-react-node/image/image.js +1 -1
  707. package/lib/components-react-node/leadspace/breadcrumb-item.js +2 -2
  708. package/lib/components-react-node/leadspace/breadcrumb-link.js +2 -2
  709. package/lib/components-react-node/leadspace/breadcrumb.js +2 -2
  710. package/lib/components-react-node/leadspace/leadspace-heading.js +1 -1
  711. package/lib/components-react-node/leadspace/leadspace-image.js +1 -1
  712. package/lib/components-react-node/leadspace/leadspace.js +1 -1
  713. package/lib/components-react-node/leadspace-block/leadspace-block-content.js +1 -1
  714. package/lib/components-react-node/leadspace-block/leadspace-block-cta.js +1 -1
  715. package/lib/components-react-node/leadspace-block/leadspace-block-heading.js +1 -1
  716. package/lib/components-react-node/leadspace-block/leadspace-block-media.js +1 -1
  717. package/lib/components-react-node/leadspace-block/leadspace-block.js +1 -1
  718. package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content-copy.js +1 -1
  719. package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content-heading.js +1 -1
  720. package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content.js +1 -1
  721. package/lib/components-react-node/leadspace-with-search/leadspace-with-search-heading.js +1 -1
  722. package/lib/components-react-node/leadspace-with-search/leadspace-with-search.js +1 -1
  723. package/lib/components-react-node/leaving-ibm/leaving-ibm-composite.js +1 -1
  724. package/lib/components-react-node/leaving-ibm/leaving-ibm-container.js +1 -1
  725. package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-body.js +2 -2
  726. package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-heading.js +2 -2
  727. package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-supplemental.js +1 -1
  728. package/lib/components-react-node/leaving-ibm/leaving-ibm-modal.js +2 -2
  729. package/lib/components-react-node/lightbox-media-viewer/lightbox-image-viewer.js +1 -1
  730. package/lib/components-react-node/lightbox-media-viewer/lightbox-media-viewer.js +1 -1
  731. package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player-composite.js +1 -1
  732. package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player-container.js +1 -1
  733. package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player.js +1 -1
  734. package/lib/components-react-node/link-list/link-list-heading.js +1 -1
  735. package/lib/components-react-node/link-list/link-list-item-card.js +1 -1
  736. package/lib/components-react-node/link-list/link-list-item.js +1 -1
  737. package/lib/components-react-node/link-list/link-list.js +1 -1
  738. package/lib/components-react-node/link-list-section/link-list-section.js +1 -1
  739. package/lib/components-react-node/link-with-icon/link-with-icon.js +2 -2
  740. package/lib/components-react-node/locale-modal/locale-modal-composite.js +1 -1
  741. package/lib/components-react-node/locale-modal/locale-modal-container.js +1 -1
  742. package/lib/components-react-node/logo-grid/logo-grid-item.js +1 -1
  743. package/lib/components-react-node/logo-grid/logo-grid-link.js +1 -1
  744. package/lib/components-react-node/logo-grid/logo-grid.js +1 -1
  745. package/lib/components-react-node/markdown/markdown.js +1 -1
  746. package/lib/components-react-node/masthead/masthead-composite.js +1 -1
  747. package/lib/components-react-node/masthead/masthead-container.js +1 -1
  748. package/lib/components-react-node/masthead/masthead.js +1 -1
  749. package/lib/components-react-node/pictogram-item/pictogram-item.js +1 -1
  750. package/lib/components-react-node/quote/quote-link-with-icon.js +1 -1
  751. package/lib/components-react-node/quote/quote-source-bottom-copy.js +1 -1
  752. package/lib/components-react-node/quote/quote-source-copy.js +1 -1
  753. package/lib/components-react-node/quote/quote-source-heading.js +1 -1
  754. package/lib/components-react-node/quote/quote.js +1 -1
  755. package/lib/components-react-node/search-with-typeahead/scoped-search-dropdown-mobile.js +2 -2
  756. package/lib/components-react-node/search-with-typeahead/scoped-search-dropdown.js +1 -1
  757. package/lib/components-react-node/search-with-typeahead/search-with-typeahead-item.js +1 -1
  758. package/lib/components-react-node/search-with-typeahead/search-with-typeahead.js +2 -2
  759. package/lib/components-react-node/structured-list/structured-list-body.js +2 -2
  760. package/lib/components-react-node/structured-list/structured-list-cell.js +2 -2
  761. package/lib/components-react-node/structured-list/structured-list-group.js +1 -1
  762. package/lib/components-react-node/structured-list/structured-list-head.js +2 -2
  763. package/lib/components-react-node/structured-list/structured-list-header-cell.js +2 -2
  764. package/lib/components-react-node/structured-list/structured-list-header-row.js +2 -2
  765. package/lib/components-react-node/structured-list/structured-list-row.js +2 -2
  766. package/lib/components-react-node/structured-list/structured-list.js +1 -1
  767. package/lib/components-react-node/table-of-contents/table-of-contents.js +1 -1
  768. package/lib/components-react-node/tabs-extended/tab.js +1 -1
  769. package/lib/components-react-node/tabs-extended/tabs-extended.js +1 -1
  770. package/lib/components-react-node/tabs-extended-media/tabs-extended-media.js +1 -1
  771. package/lib/components-react-node/tag-group/tag-group.js +1 -1
  772. package/lib/components-react-node/tag-link/tag-link.js +1 -1
  773. package/lib/components-react-node/universal-banner/universal-banner-copy.js +1 -1
  774. package/lib/components-react-node/universal-banner/universal-banner-heading.js +1 -1
  775. package/lib/components-react-node/universal-banner/universal-banner-image.js +1 -1
  776. package/lib/components-react-node/universal-banner/universal-banner.js +1 -1
  777. package/lib/components-react-node/video-player/video-player-composite.js +1 -1
  778. package/lib/components-react-node/video-player/video-player-container.js +1 -1
  779. package/lib/components-react-node/video-player/video-player.js +1 -1
  780. package/package.json +4 -4
  781. package/scss/components/background-media/background-media.scss +1 -1
  782. package/scss/components/button/button.scss +1 -1
  783. package/scss/components/expressive-modal/expressive-modal.scss +1 -1
  784. package/scss/components/filter-panel/filter-panel.scss +1 -1
  785. package/scss/components/leadspace/leadspace.scss +1 -1
  786. package/scss/components/leaving-ibm/leaving-ibm.scss +1 -1
  787. package/scss/components/masthead/masthead.scss +3 -3
  788. package/scss/components/search/search.scss +1 -1
@@ -6,7 +6,7 @@
6
6
  * This source code is licensed under the Apache-2.0 license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- import BXStructuredListCell from '@carbon/carbon-web-components/es/components/structured-list/structured-list-cell.js';
9
+ import BXStructuredListCell from '@carbon/web-components/es/components/structured-list/structured-list-cell.js';
10
10
  import DDSStructuredListGroup from './structured-list-group';
11
11
  /**
12
12
  * StructuredListCell
@@ -1 +1 @@
1
- {"version":3,"sources":["components/structured-list/structured-list-cell.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,oBAAoB,MAAM,qFAAqF,CAAC;AAMvH,OAAO,sBAAsB,MAAM,yBAAyB,CAAC;AAK7D;;;;GAIG;AACH,cACM,qBAAsB,SAAQ,oBAAoB;IACtD,WAAW,EAAE,sBAAsB,GAAG,IAAI,CAExC;IAGF,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,OAAO,CAAC,aAAa,CAGnB;IAGF,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,iBAAiB;IAKjB,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,WAAW;IAYnB,OAAO,CAAC,cAAc;IActB,MAAM;IAkBN,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,qBAAqB,CAAC","file":"structured-list-cell.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListCell from '@carbon/carbon-web-components/es/components/structured-list/structured-list-cell.js';\nimport { customElement, property, html } from 'lit-element';\nimport Info16 from '@carbon/carbon-web-components/es/icons/information/16.js';\nimport Checkmark20 from '@carbon/carbon-web-components/es/icons/checkmark/20.js';\nimport Error20 from '@carbon/carbon-web-components/es/icons/error/20.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport DDSStructuredListGroup from './structured-list-group';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListCell\n *\n * @element dds-structured-list-cell\n */\n@customElement(`${ddsPrefix}-structured-list-cell`)\nclass DDSStructuredListCell extends BXStructuredListCell {\n parentGroup: DDSStructuredListGroup | null = this.closest(\n `${ddsPrefix}-structured-list-group`\n );\n\n @property({ attribute: 'aria-label', reflect: true })\n groupLabel?: string;\n\n @property({ attribute: 'tooltip', reflect: true })\n tooltipText?: string;\n\n @property({ attribute: 'icon', reflect: true })\n icon?: string;\n\n private _iconsAllowed = {\n checkmark: Checkmark20,\n error: Error20,\n };\n\n @property({ attribute: 'tags', reflect: true })\n tags?: string;\n\n connectedCallback() {\n super.connectedCallback();\n this.groupLabel = this.parentGroup?.groupTitle;\n }\n\n private _renderIcon() {\n const { icon, _iconsAllowed: iconMap } = this;\n\n return html` ${iconMap[icon!.toLowerCase()].call()} `;\n }\n\n private _renderTags() {\n const { tags } = this;\n\n return html`\n ${tags!\n .split(',')\n .map(\n (tag) => html` <bx-tag size=\"sm\" type=\"green\">${tag.trim()}</bx-tag> `\n )}\n `;\n }\n\n private _renderTooltip() {\n const { tooltipText: tooltip } = this;\n\n return html`\n <bx-tooltip-icon\n alignment=\"start\"\n body-text=\"${tooltip}\"\n direction=\"right\"\n >\n ${Info16()}\n </bx-tooltip-icon>\n `;\n }\n\n render() {\n const {\n tooltipText: tooltip,\n icon,\n _iconsAllowed: iconsAllowed,\n tags,\n } = this;\n\n if (icon && Object.keys(iconsAllowed).includes(icon.toLowerCase())) {\n return html` ${this._renderIcon()} `;\n }\n\n return html`\n ${super.render()} ${tags ? this._renderTags() : ''}\n ${tooltip ? this._renderTooltip() : ''}\n `;\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListCell;\n"]}
1
+ {"version":3,"sources":["components/structured-list/structured-list-cell.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,oBAAoB,MAAM,8EAA8E,CAAC;AAMhH,OAAO,sBAAsB,MAAM,yBAAyB,CAAC;AAK7D;;;;GAIG;AACH,cACM,qBAAsB,SAAQ,oBAAoB;IACtD,WAAW,EAAE,sBAAsB,GAAG,IAAI,CAExC;IAGF,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,OAAO,CAAC,aAAa,CAGnB;IAGF,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,iBAAiB;IAKjB,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,WAAW;IAYnB,OAAO,CAAC,cAAc;IActB,MAAM;IAkBN,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,qBAAqB,CAAC","file":"structured-list-cell.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListCell from '@carbon/web-components/es/components/structured-list/structured-list-cell.js';\nimport { customElement, property, html } from 'lit-element';\nimport Info16 from '@carbon/web-components/es/icons/information/16.js';\nimport Checkmark20 from '@carbon/web-components/es/icons/checkmark/20.js';\nimport Error20 from '@carbon/web-components/es/icons/error/20.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport DDSStructuredListGroup from './structured-list-group';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListCell\n *\n * @element dds-structured-list-cell\n */\n@customElement(`${ddsPrefix}-structured-list-cell`)\nclass DDSStructuredListCell extends BXStructuredListCell {\n parentGroup: DDSStructuredListGroup | null = this.closest(\n `${ddsPrefix}-structured-list-group`\n );\n\n @property({ attribute: 'aria-label', reflect: true })\n groupLabel?: string;\n\n @property({ attribute: 'tooltip', reflect: true })\n tooltipText?: string;\n\n @property({ attribute: 'icon', reflect: true })\n icon?: string;\n\n private _iconsAllowed = {\n checkmark: Checkmark20,\n error: Error20,\n };\n\n @property({ attribute: 'tags', reflect: true })\n tags?: string;\n\n connectedCallback() {\n super.connectedCallback();\n this.groupLabel = this.parentGroup?.groupTitle;\n }\n\n private _renderIcon() {\n const { icon, _iconsAllowed: iconMap } = this;\n\n return html` ${iconMap[icon!.toLowerCase()].call()} `;\n }\n\n private _renderTags() {\n const { tags } = this;\n\n return html`\n ${tags!\n .split(',')\n .map(\n (tag) => html` <bx-tag size=\"sm\" type=\"green\">${tag.trim()}</bx-tag> `\n )}\n `;\n }\n\n private _renderTooltip() {\n const { tooltipText: tooltip } = this;\n\n return html`\n <bx-tooltip-icon\n alignment=\"start\"\n body-text=\"${tooltip}\"\n direction=\"right\"\n >\n ${Info16()}\n </bx-tooltip-icon>\n `;\n }\n\n render() {\n const {\n tooltipText: tooltip,\n icon,\n _iconsAllowed: iconsAllowed,\n tags,\n } = this;\n\n if (icon && Object.keys(iconsAllowed).includes(icon.toLowerCase())) {\n return html` ${this._renderIcon()} `;\n }\n\n return html`\n ${super.render()} ${tags ? this._renderTags() : ''}\n ${tooltip ? this._renderTooltip() : ''}\n `;\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListCell;\n"]}
@@ -17,11 +17,11 @@ let _ = t => t,
17
17
  * LICENSE file in the root directory of this source tree.
18
18
  */
19
19
 
20
- import BXStructuredListCell from '@carbon/carbon-web-components/es/components/structured-list/structured-list-cell.js';
20
+ import BXStructuredListCell from '@carbon/web-components/es/components/structured-list/structured-list-cell.js';
21
21
  import { customElement, property, html } from 'lit-element';
22
- import Info16 from '@carbon/carbon-web-components/es/icons/information/16.js';
23
- import Checkmark20 from '@carbon/carbon-web-components/es/icons/checkmark/20.js';
24
- import Error20 from '@carbon/carbon-web-components/es/icons/error/20.js';
22
+ import Info16 from '@carbon/web-components/es/icons/information/16.js';
23
+ import Checkmark20 from '@carbon/web-components/es/icons/checkmark/20.js';
24
+ import Error20 from '@carbon/web-components/es/icons/error/20.js';
25
25
  import ddsSettings from "../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js";
26
26
  import styles from "././structured-list.css.js";
27
27
  const {
@@ -1 +1 @@
1
- {"version":3,"file":"structured-list-cell.js","names":["BXStructuredListCell","customElement","property","html","Info16","Checkmark20","Error20","ddsSettings","styles","stablePrefix","ddsPrefix","DDSStructuredListCell","closest","attribute","reflect","checkmark","error","groupLabel","parentGroup","groupTitle","icon","_iconsAllowed","iconMap","toLowerCase","call","tags","split","map","tag","trim","tooltipText","tooltip","iconsAllowed","Object","keys","includes","_renderIcon","_renderTags","_renderTooltip"],"sources":["components/structured-list/structured-list-cell.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListCell from '@carbon/carbon-web-components/es/components/structured-list/structured-list-cell.js';\nimport { customElement, property, html } from 'lit-element';\nimport Info16 from '@carbon/carbon-web-components/es/icons/information/16.js';\nimport Checkmark20 from '@carbon/carbon-web-components/es/icons/checkmark/20.js';\nimport Error20 from '@carbon/carbon-web-components/es/icons/error/20.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport DDSStructuredListGroup from './structured-list-group';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListCell\n *\n * @element dds-structured-list-cell\n */\n@customElement(`${ddsPrefix}-structured-list-cell`)\nclass DDSStructuredListCell extends BXStructuredListCell {\n parentGroup: DDSStructuredListGroup | null = this.closest(\n `${ddsPrefix}-structured-list-group`\n );\n\n @property({ attribute: 'aria-label', reflect: true })\n groupLabel?: string;\n\n @property({ attribute: 'tooltip', reflect: true })\n tooltipText?: string;\n\n @property({ attribute: 'icon', reflect: true })\n icon?: string;\n\n private _iconsAllowed = {\n checkmark: Checkmark20,\n error: Error20,\n };\n\n @property({ attribute: 'tags', reflect: true })\n tags?: string;\n\n connectedCallback() {\n super.connectedCallback();\n this.groupLabel = this.parentGroup?.groupTitle;\n }\n\n private _renderIcon() {\n const { icon, _iconsAllowed: iconMap } = this;\n\n return html` ${iconMap[icon!.toLowerCase()].call()} `;\n }\n\n private _renderTags() {\n const { tags } = this;\n\n return html`\n ${tags!\n .split(',')\n .map(\n (tag) => html` <bx-tag size=\"sm\" type=\"green\">${tag.trim()}</bx-tag> `\n )}\n `;\n }\n\n private _renderTooltip() {\n const { tooltipText: tooltip } = this;\n\n return html`\n <bx-tooltip-icon\n alignment=\"start\"\n body-text=\"${tooltip}\"\n direction=\"right\"\n >\n ${Info16()}\n </bx-tooltip-icon>\n `;\n }\n\n render() {\n const {\n tooltipText: tooltip,\n icon,\n _iconsAllowed: iconsAllowed,\n tags,\n } = this;\n\n if (icon && Object.keys(iconsAllowed).includes(icon.toLowerCase())) {\n return html` ${this._renderIcon()} `;\n }\n\n return html`\n ${super.render()} ${tags ? this._renderTags() : ''}\n ${tooltip ? this._renderTooltip() : ''}\n `;\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListCell;\n"],"mappings":"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"}
1
+ {"version":3,"file":"structured-list-cell.js","names":["BXStructuredListCell","customElement","property","html","Info16","Checkmark20","Error20","ddsSettings","styles","stablePrefix","ddsPrefix","DDSStructuredListCell","closest","attribute","reflect","checkmark","error","groupLabel","parentGroup","groupTitle","icon","_iconsAllowed","iconMap","toLowerCase","call","tags","split","map","tag","trim","tooltipText","tooltip","iconsAllowed","Object","keys","includes","_renderIcon","_renderTags","_renderTooltip"],"sources":["components/structured-list/structured-list-cell.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListCell from '@carbon/web-components/es/components/structured-list/structured-list-cell.js';\nimport { customElement, property, html } from 'lit-element';\nimport Info16 from '@carbon/web-components/es/icons/information/16.js';\nimport Checkmark20 from '@carbon/web-components/es/icons/checkmark/20.js';\nimport Error20 from '@carbon/web-components/es/icons/error/20.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport DDSStructuredListGroup from './structured-list-group';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListCell\n *\n * @element dds-structured-list-cell\n */\n@customElement(`${ddsPrefix}-structured-list-cell`)\nclass DDSStructuredListCell extends BXStructuredListCell {\n parentGroup: DDSStructuredListGroup | null = this.closest(\n `${ddsPrefix}-structured-list-group`\n );\n\n @property({ attribute: 'aria-label', reflect: true })\n groupLabel?: string;\n\n @property({ attribute: 'tooltip', reflect: true })\n tooltipText?: string;\n\n @property({ attribute: 'icon', reflect: true })\n icon?: string;\n\n private _iconsAllowed = {\n checkmark: Checkmark20,\n error: Error20,\n };\n\n @property({ attribute: 'tags', reflect: true })\n tags?: string;\n\n connectedCallback() {\n super.connectedCallback();\n this.groupLabel = this.parentGroup?.groupTitle;\n }\n\n private _renderIcon() {\n const { icon, _iconsAllowed: iconMap } = this;\n\n return html` ${iconMap[icon!.toLowerCase()].call()} `;\n }\n\n private _renderTags() {\n const { tags } = this;\n\n return html`\n ${tags!\n .split(',')\n .map(\n (tag) => html` <bx-tag size=\"sm\" type=\"green\">${tag.trim()}</bx-tag> `\n )}\n `;\n }\n\n private _renderTooltip() {\n const { tooltipText: tooltip } = this;\n\n return html`\n <bx-tooltip-icon\n alignment=\"start\"\n body-text=\"${tooltip}\"\n direction=\"right\"\n >\n ${Info16()}\n </bx-tooltip-icon>\n `;\n }\n\n render() {\n const {\n tooltipText: tooltip,\n icon,\n _iconsAllowed: iconsAllowed,\n tags,\n } = this;\n\n if (icon && Object.keys(iconsAllowed).includes(icon.toLowerCase())) {\n return html` ${this._renderIcon()} `;\n }\n\n return html`\n ${super.render()} ${tags ? this._renderTags() : ''}\n ${tooltip ? this._renderTooltip() : ''}\n `;\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListCell;\n"],"mappings":"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"}
@@ -6,7 +6,7 @@
6
6
  * This source code is licensed under the Apache-2.0 license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- import BXStructuredListHead from '@carbon/carbon-web-components/es/components/structured-list/structured-list-head.js';
9
+ import BXStructuredListHead from '@carbon/web-components/es/components/structured-list/structured-list-head.js';
10
10
  /**
11
11
  * StructuredListHead
12
12
  *
@@ -1 +1 @@
1
- {"version":3,"sources":["components/structured-list/structured-list-head.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,oBAAoB,MAAM,qFAAqF,CAAC;AAOvH;;;;GAIG;AACH,cACM,qBAAsB,SAAQ,oBAAoB;IACtD,iBAAiB;IAIjB,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,qBAAqB,CAAC","file":"structured-list-head.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListHead from '@carbon/carbon-web-components/es/components/structured-list/structured-list-head.js';\nimport { customElement } from 'lit-element';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListHead\n *\n * @element dds-structured-list-head\n */\n@customElement(`${ddsPrefix}-structured-list-head`)\nclass DDSStructuredListHead extends BXStructuredListHead {\n connectedCallback() {\n super.connectedCallback();\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListHead;\n"]}
1
+ {"version":3,"sources":["components/structured-list/structured-list-head.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,oBAAoB,MAAM,8EAA8E,CAAC;AAOhH;;;;GAIG;AACH,cACM,qBAAsB,SAAQ,oBAAoB;IACtD,iBAAiB;IAIjB,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,qBAAqB,CAAC","file":"structured-list-head.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListHead from '@carbon/web-components/es/components/structured-list/structured-list-head.js';\nimport { customElement } from 'lit-element';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListHead\n *\n * @element dds-structured-list-head\n */\n@customElement(`${ddsPrefix}-structured-list-head`)\nclass DDSStructuredListHead extends BXStructuredListHead {\n connectedCallback() {\n super.connectedCallback();\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListHead;\n"]}
@@ -10,7 +10,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
12
 
13
- import BXStructuredListHead from '@carbon/carbon-web-components/es/components/structured-list/structured-list-head.js';
13
+ import BXStructuredListHead from '@carbon/web-components/es/components/structured-list/structured-list-head.js';
14
14
  import { customElement } from 'lit-element';
15
15
  import ddsSettings from "../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js";
16
16
  import styles from "././structured-list.css.js";
@@ -1 +1 @@
1
- {"version":3,"file":"structured-list-head.js","names":["BXStructuredListHead","customElement","ddsSettings","styles","stablePrefix","ddsPrefix","DDSStructuredListHead"],"sources":["components/structured-list/structured-list-head.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListHead from '@carbon/carbon-web-components/es/components/structured-list/structured-list-head.js';\nimport { customElement } from 'lit-element';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListHead\n *\n * @element dds-structured-list-head\n */\n@customElement(`${ddsPrefix}-structured-list-head`)\nclass DDSStructuredListHead extends BXStructuredListHead {\n connectedCallback() {\n super.connectedCallback();\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListHead;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,oBAAoB,MAAM,qFAAqF;AACtH,SAASC,aAAa,QAAQ,aAAa;AAC3C,OAAOC,WAAW,MAAM,kFAA+E;AACvG,OAAOC,MAAM,MAAM,4BAAwB;AAE3C,MAAM;EAAEC,YAAY,EAAEC;AAAU,CAAC,GAAGH,WAAW;;AAE/C;AACA;AACA;AACA;AACA;AAJA,IAMMI,qBAAqB,cAD1BL,aAAa,CAAE,GAAEI,SAAU,uBAAsB,CAAC;EAAnD,MACMC,qBAAqB,+BAA8B;IAAA;MAAA;MAAA;IAAA;EAMzD;EAAC;IAAA,GANKA,qBAAqB;IAAA;MAAA;MAAA;MAAA,OACzB,6BAAoB;QAClB,qBAFEA,qBAAqB;MAGzB;IAAC;MAAA;MAAA;MAAA;MAAA;QAAA,OAEeH,MAAM;MAAA;IAAA;EAAA;AAAA,GALYH,oBAAoB,GAQxD;AACA,eAAeM,qBAAqB"}
1
+ {"version":3,"file":"structured-list-head.js","names":["BXStructuredListHead","customElement","ddsSettings","styles","stablePrefix","ddsPrefix","DDSStructuredListHead"],"sources":["components/structured-list/structured-list-head.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListHead from '@carbon/web-components/es/components/structured-list/structured-list-head.js';\nimport { customElement } from 'lit-element';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListHead\n *\n * @element dds-structured-list-head\n */\n@customElement(`${ddsPrefix}-structured-list-head`)\nclass DDSStructuredListHead extends BXStructuredListHead {\n connectedCallback() {\n super.connectedCallback();\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListHead;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,oBAAoB,MAAM,8EAA8E;AAC/G,SAASC,aAAa,QAAQ,aAAa;AAC3C,OAAOC,WAAW,MAAM,kFAA+E;AACvG,OAAOC,MAAM,MAAM,4BAAwB;AAE3C,MAAM;EAAEC,YAAY,EAAEC;AAAU,CAAC,GAAGH,WAAW;;AAE/C;AACA;AACA;AACA;AACA;AAJA,IAMMI,qBAAqB,cAD1BL,aAAa,CAAE,GAAEI,SAAU,uBAAsB,CAAC;EAAnD,MACMC,qBAAqB,+BAA8B;IAAA;MAAA;MAAA;IAAA;EAMzD;EAAC;IAAA,GANKA,qBAAqB;IAAA;MAAA;MAAA;MAAA,OACzB,6BAAoB;QAClB,qBAFEA,qBAAqB;MAGzB;IAAC;MAAA;MAAA;MAAA;MAAA;QAAA,OAEeH,MAAM;MAAA;IAAA;EAAA;AAAA,GALYH,oBAAoB,GAQxD;AACA,eAAeM,qBAAqB"}
@@ -6,7 +6,7 @@
6
6
  * This source code is licensed under the Apache-2.0 license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- import BXStructuredListHeaderCell from '@carbon/carbon-web-components/es/components/structured-list/structured-list-header-cell.js';
9
+ import BXStructuredListHeaderCell from '@carbon/web-components/es/components/structured-list/structured-list-header-cell.js';
10
10
  /**
11
11
  * StructuredListHeaderCell
12
12
  *
@@ -1 +1 @@
1
- {"version":3,"sources":["components/structured-list/structured-list-header-cell.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,0BAA0B,MAAM,4FAA4F,CAAC;AAOpI;;;;GAIG;AACH,cACM,2BAA4B,SAAQ,0BAA0B;IAClE,iBAAiB;IAIjB,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,2BAA2B,CAAC","file":"structured-list-header-cell.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListHeaderCell from '@carbon/carbon-web-components/es/components/structured-list/structured-list-header-cell.js';\nimport { customElement } from 'lit-element';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListHeaderCell\n *\n * @element dds-structured-list-header-cell\n */\n@customElement(`${ddsPrefix}-structured-list-header-cell`)\nclass DDSStructuredListHeaderCell extends BXStructuredListHeaderCell {\n connectedCallback() {\n super.connectedCallback();\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListHeaderCell;\n"]}
1
+ {"version":3,"sources":["components/structured-list/structured-list-header-cell.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,0BAA0B,MAAM,qFAAqF,CAAC;AAO7H;;;;GAIG;AACH,cACM,2BAA4B,SAAQ,0BAA0B;IAClE,iBAAiB;IAIjB,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,2BAA2B,CAAC","file":"structured-list-header-cell.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListHeaderCell from '@carbon/web-components/es/components/structured-list/structured-list-header-cell.js';\nimport { customElement } from 'lit-element';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListHeaderCell\n *\n * @element dds-structured-list-header-cell\n */\n@customElement(`${ddsPrefix}-structured-list-header-cell`)\nclass DDSStructuredListHeaderCell extends BXStructuredListHeaderCell {\n connectedCallback() {\n super.connectedCallback();\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListHeaderCell;\n"]}
@@ -10,7 +10,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
12
 
13
- import BXStructuredListHeaderCell from '@carbon/carbon-web-components/es/components/structured-list/structured-list-header-cell.js';
13
+ import BXStructuredListHeaderCell from '@carbon/web-components/es/components/structured-list/structured-list-header-cell.js';
14
14
  import { customElement } from 'lit-element';
15
15
  import ddsSettings from "../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js";
16
16
  import styles from "././structured-list.css.js";
@@ -1 +1 @@
1
- {"version":3,"file":"structured-list-header-cell.js","names":["BXStructuredListHeaderCell","customElement","ddsSettings","styles","stablePrefix","ddsPrefix","DDSStructuredListHeaderCell"],"sources":["components/structured-list/structured-list-header-cell.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListHeaderCell from '@carbon/carbon-web-components/es/components/structured-list/structured-list-header-cell.js';\nimport { customElement } from 'lit-element';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListHeaderCell\n *\n * @element dds-structured-list-header-cell\n */\n@customElement(`${ddsPrefix}-structured-list-header-cell`)\nclass DDSStructuredListHeaderCell extends BXStructuredListHeaderCell {\n connectedCallback() {\n super.connectedCallback();\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListHeaderCell;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,0BAA0B,MAAM,4FAA4F;AACnI,SAASC,aAAa,QAAQ,aAAa;AAC3C,OAAOC,WAAW,MAAM,kFAA+E;AACvG,OAAOC,MAAM,MAAM,4BAAwB;AAE3C,MAAM;EAAEC,YAAY,EAAEC;AAAU,CAAC,GAAGH,WAAW;;AAE/C;AACA;AACA;AACA;AACA;AAJA,IAMMI,2BAA2B,cADhCL,aAAa,CAAE,GAAEI,SAAU,8BAA6B,CAAC;EAA1D,MACMC,2BAA2B,+BAAoC;IAAA;MAAA;MAAA;IAAA;EAMrE;EAAC;IAAA,GANKA,2BAA2B;IAAA;MAAA;MAAA;MAAA,OAC/B,6BAAoB;QAClB,qBAFEA,2BAA2B;MAG/B;IAAC;MAAA;MAAA;MAAA;MAAA;QAAA,OAEeH,MAAM;MAAA;IAAA;EAAA;AAAA,GALkBH,0BAA0B,GAQpE;AACA,eAAeM,2BAA2B"}
1
+ {"version":3,"file":"structured-list-header-cell.js","names":["BXStructuredListHeaderCell","customElement","ddsSettings","styles","stablePrefix","ddsPrefix","DDSStructuredListHeaderCell"],"sources":["components/structured-list/structured-list-header-cell.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListHeaderCell from '@carbon/web-components/es/components/structured-list/structured-list-header-cell.js';\nimport { customElement } from 'lit-element';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListHeaderCell\n *\n * @element dds-structured-list-header-cell\n */\n@customElement(`${ddsPrefix}-structured-list-header-cell`)\nclass DDSStructuredListHeaderCell extends BXStructuredListHeaderCell {\n connectedCallback() {\n super.connectedCallback();\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListHeaderCell;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,0BAA0B,MAAM,qFAAqF;AAC5H,SAASC,aAAa,QAAQ,aAAa;AAC3C,OAAOC,WAAW,MAAM,kFAA+E;AACvG,OAAOC,MAAM,MAAM,4BAAwB;AAE3C,MAAM;EAAEC,YAAY,EAAEC;AAAU,CAAC,GAAGH,WAAW;;AAE/C;AACA;AACA;AACA;AACA;AAJA,IAMMI,2BAA2B,cADhCL,aAAa,CAAE,GAAEI,SAAU,8BAA6B,CAAC;EAA1D,MACMC,2BAA2B,+BAAoC;IAAA;MAAA;MAAA;IAAA;EAMrE;EAAC;IAAA,GANKA,2BAA2B;IAAA;MAAA;MAAA;MAAA,OAC/B,6BAAoB;QAClB,qBAFEA,2BAA2B;MAG/B;IAAC;MAAA;MAAA;MAAA;MAAA;QAAA,OAEeH,MAAM;MAAA;IAAA;EAAA;AAAA,GALkBH,0BAA0B,GAQpE;AACA,eAAeM,2BAA2B"}
@@ -6,7 +6,7 @@
6
6
  * This source code is licensed under the Apache-2.0 license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- import BXStructuredListHeaderRow from '@carbon/carbon-web-components/es/components/structured-list/structured-list-header-row.js';
9
+ import BXStructuredListHeaderRow from '@carbon/web-components/es/components/structured-list/structured-list-header-row.js';
10
10
  /**
11
11
  * StructuredListHeaderRow
12
12
  *
@@ -1 +1 @@
1
- {"version":3,"sources":["components/structured-list/structured-list-header-row.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,yBAAyB,MAAM,2FAA2F,CAAC;AAOlI;;;;GAIG;AACH,cACM,0BAA2B,SAAQ,yBAAyB;IAChE,iBAAiB;IAIjB,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,0BAA0B,CAAC","file":"structured-list-header-row.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListHeaderRow from '@carbon/carbon-web-components/es/components/structured-list/structured-list-header-row.js';\nimport { customElement } from 'lit-element';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListHeaderRow\n *\n * @element dds-structured-list-header-row\n */\n@customElement(`${ddsPrefix}-structured-list-header-row`)\nclass DDSStructuredListHeaderRow extends BXStructuredListHeaderRow {\n connectedCallback() {\n super.connectedCallback();\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListHeaderRow;\n"]}
1
+ {"version":3,"sources":["components/structured-list/structured-list-header-row.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,yBAAyB,MAAM,oFAAoF,CAAC;AAO3H;;;;GAIG;AACH,cACM,0BAA2B,SAAQ,yBAAyB;IAChE,iBAAiB;IAIjB,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,0BAA0B,CAAC","file":"structured-list-header-row.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListHeaderRow from '@carbon/web-components/es/components/structured-list/structured-list-header-row.js';\nimport { customElement } from 'lit-element';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListHeaderRow\n *\n * @element dds-structured-list-header-row\n */\n@customElement(`${ddsPrefix}-structured-list-header-row`)\nclass DDSStructuredListHeaderRow extends BXStructuredListHeaderRow {\n connectedCallback() {\n super.connectedCallback();\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListHeaderRow;\n"]}
@@ -10,7 +10,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
12
 
13
- import BXStructuredListHeaderRow from '@carbon/carbon-web-components/es/components/structured-list/structured-list-header-row.js';
13
+ import BXStructuredListHeaderRow from '@carbon/web-components/es/components/structured-list/structured-list-header-row.js';
14
14
  import { customElement } from 'lit-element';
15
15
  import ddsSettings from "../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js";
16
16
  import styles from "././structured-list.css.js";
@@ -1 +1 @@
1
- {"version":3,"file":"structured-list-header-row.js","names":["BXStructuredListHeaderRow","customElement","ddsSettings","styles","stablePrefix","ddsPrefix","DDSStructuredListHeaderRow"],"sources":["components/structured-list/structured-list-header-row.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListHeaderRow from '@carbon/carbon-web-components/es/components/structured-list/structured-list-header-row.js';\nimport { customElement } from 'lit-element';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListHeaderRow\n *\n * @element dds-structured-list-header-row\n */\n@customElement(`${ddsPrefix}-structured-list-header-row`)\nclass DDSStructuredListHeaderRow extends BXStructuredListHeaderRow {\n connectedCallback() {\n super.connectedCallback();\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListHeaderRow;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,yBAAyB,MAAM,2FAA2F;AACjI,SAASC,aAAa,QAAQ,aAAa;AAC3C,OAAOC,WAAW,MAAM,kFAA+E;AACvG,OAAOC,MAAM,MAAM,4BAAwB;AAE3C,MAAM;EAAEC,YAAY,EAAEC;AAAU,CAAC,GAAGH,WAAW;;AAE/C;AACA;AACA;AACA;AACA;AAJA,IAMMI,0BAA0B,cAD/BL,aAAa,CAAE,GAAEI,SAAU,6BAA4B,CAAC;EAAzD,MACMC,0BAA0B,+BAAmC;IAAA;MAAA;MAAA;IAAA;EAMnE;EAAC;IAAA,GANKA,0BAA0B;IAAA;MAAA;MAAA;MAAA,OAC9B,6BAAoB;QAClB,qBAFEA,0BAA0B;MAG9B;IAAC;MAAA;MAAA;MAAA;MAAA;QAAA,OAEeH,MAAM;MAAA;IAAA;EAAA;AAAA,GALiBH,yBAAyB,GAQlE;AACA,eAAeM,0BAA0B"}
1
+ {"version":3,"file":"structured-list-header-row.js","names":["BXStructuredListHeaderRow","customElement","ddsSettings","styles","stablePrefix","ddsPrefix","DDSStructuredListHeaderRow"],"sources":["components/structured-list/structured-list-header-row.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListHeaderRow from '@carbon/web-components/es/components/structured-list/structured-list-header-row.js';\nimport { customElement } from 'lit-element';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListHeaderRow\n *\n * @element dds-structured-list-header-row\n */\n@customElement(`${ddsPrefix}-structured-list-header-row`)\nclass DDSStructuredListHeaderRow extends BXStructuredListHeaderRow {\n connectedCallback() {\n super.connectedCallback();\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListHeaderRow;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,yBAAyB,MAAM,oFAAoF;AAC1H,SAASC,aAAa,QAAQ,aAAa;AAC3C,OAAOC,WAAW,MAAM,kFAA+E;AACvG,OAAOC,MAAM,MAAM,4BAAwB;AAE3C,MAAM;EAAEC,YAAY,EAAEC;AAAU,CAAC,GAAGH,WAAW;;AAE/C;AACA;AACA;AACA;AACA;AAJA,IAMMI,0BAA0B,cAD/BL,aAAa,CAAE,GAAEI,SAAU,6BAA4B,CAAC;EAAzD,MACMC,0BAA0B,+BAAmC;IAAA;MAAA;MAAA;IAAA;EAMnE;EAAC;IAAA,GANKA,0BAA0B;IAAA;MAAA;MAAA;MAAA,OAC9B,6BAAoB;QAClB,qBAFEA,0BAA0B;MAG9B;IAAC;MAAA;MAAA;MAAA;MAAA;QAAA,OAEeH,MAAM;MAAA;IAAA;EAAA;AAAA,GALiBH,yBAAyB,GAQlE;AACA,eAAeM,0BAA0B"}
@@ -6,7 +6,7 @@
6
6
  * This source code is licensed under the Apache-2.0 license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- import BXStructuredListRow from '@carbon/carbon-web-components/es/components/structured-list/structured-list-row.js';
9
+ import BXStructuredListRow from '@carbon/web-components/es/components/structured-list/structured-list-row.js';
10
10
  /**
11
11
  * StructuredListRow
12
12
  *
@@ -1 +1 @@
1
- {"version":3,"sources":["components/structured-list/structured-list-row.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,mBAAmB,MAAM,oFAAoF,CAAC;AAQrH;;;;GAIG;AACH,cACM,oBAAqB,SAAQ,mBAAmB;IACpD,iBAAiB;IAMjB,OAAO,CAAC,iBAAiB,KAAA;IAGzB,MAAM;IAIN,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,oBAAoB,CAAC","file":"structured-list-row.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListRow from '@carbon/carbon-web-components/es/components/structured-list/structured-list-row.js';\nimport { customElement } from 'lit-element';\nimport { html } from 'lit-html';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListRow\n *\n * @element dds-structured-list-row\n */\n@customElement(`${ddsPrefix}-structured-list-row`)\nclass DDSStructuredListRow extends BXStructuredListRow {\n connectedCallback() {\n super.connectedCallback();\n }\n\n /* eslint-disable */\n // @ts-ignore required to unset inherited functionality\n updated(changedProperties) {}\n /* eslint-enable */\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListRow;\n"]}
1
+ {"version":3,"sources":["components/structured-list/structured-list-row.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,mBAAmB,MAAM,6EAA6E,CAAC;AAQ9G;;;;GAIG;AACH,cACM,oBAAqB,SAAQ,mBAAmB;IACpD,iBAAiB;IAMjB,OAAO,CAAC,iBAAiB,KAAA;IAGzB,MAAM;IAIN,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,oBAAoB,CAAC","file":"structured-list-row.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListRow from '@carbon/web-components/es/components/structured-list/structured-list-row.js';\nimport { customElement } from 'lit-element';\nimport { html } from 'lit-html';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListRow\n *\n * @element dds-structured-list-row\n */\n@customElement(`${ddsPrefix}-structured-list-row`)\nclass DDSStructuredListRow extends BXStructuredListRow {\n connectedCallback() {\n super.connectedCallback();\n }\n\n /* eslint-disable */\n // @ts-ignore required to unset inherited functionality\n updated(changedProperties) {}\n /* eslint-enable */\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListRow;\n"]}
@@ -12,7 +12,7 @@ let _ = t => t,
12
12
  * LICENSE file in the root directory of this source tree.
13
13
  */
14
14
 
15
- import BXStructuredListRow from '@carbon/carbon-web-components/es/components/structured-list/structured-list-row.js';
15
+ import BXStructuredListRow from '@carbon/web-components/es/components/structured-list/structured-list-row.js';
16
16
  import { customElement } from 'lit-element';
17
17
  import { html } from 'lit-html';
18
18
  import ddsSettings from "../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js";
@@ -1 +1 @@
1
- {"version":3,"file":"structured-list-row.js","names":["BXStructuredListRow","customElement","html","ddsSettings","styles","stablePrefix","ddsPrefix","DDSStructuredListRow","changedProperties"],"sources":["components/structured-list/structured-list-row.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListRow from '@carbon/carbon-web-components/es/components/structured-list/structured-list-row.js';\nimport { customElement } from 'lit-element';\nimport { html } from 'lit-html';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListRow\n *\n * @element dds-structured-list-row\n */\n@customElement(`${ddsPrefix}-structured-list-row`)\nclass DDSStructuredListRow extends BXStructuredListRow {\n connectedCallback() {\n super.connectedCallback();\n }\n\n /* eslint-disable */\n // @ts-ignore required to unset inherited functionality\n updated(changedProperties) {}\n /* eslint-enable */\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListRow;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,mBAAmB,MAAM,oFAAoF;AACpH,SAASC,aAAa,QAAQ,aAAa;AAC3C,SAASC,IAAI,QAAQ,UAAU;AAC/B,OAAOC,WAAW,MAAM,kFAA+E;AACvG,OAAOC,MAAM,MAAM,4BAAwB;AAE3C,MAAM;EAAEC,YAAY,EAAEC;AAAU,CAAC,GAAGH,WAAW;;AAE/C;AACA;AACA;AACA;AACA;AAJA,IAMMI,oBAAoB,cADzBN,aAAa,CAAE,GAAEK,SAAU,sBAAqB,CAAC;EAAlD,MACMC,oBAAoB,8BAA6B;IAAA;MAAA;MAAA;IAAA;EAevD;EAAC;IAAA,GAfKA,oBAAoB;IAAA;MAAA;MAAA;MAAA,OACxB,6BAAoB;QAClB,qBAFEA,oBAAoB;MAGxB;;MAEA;MACA;IAAA;MAAA;MAAA;MAAA,OACA,iBAAQC,iBAAiB,EAAE,CAAC;MAC5B;IAAA;MAAA;MAAA;MAAA,OAEA,kBAAS;QACP,OAAON,IAAI,cAAC,iBAAe;MAC7B;IAAC;MAAA;MAAA;MAAA;MAAA;QAAA,OAEeE,MAAM;MAAA;IAAA;EAAA;AAAA,GAdWJ,mBAAmB,GAiBtD;AACA,eAAeO,oBAAoB"}
1
+ {"version":3,"file":"structured-list-row.js","names":["BXStructuredListRow","customElement","html","ddsSettings","styles","stablePrefix","ddsPrefix","DDSStructuredListRow","changedProperties"],"sources":["components/structured-list/structured-list-row.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport BXStructuredListRow from '@carbon/web-components/es/components/structured-list/structured-list-row.js';\nimport { customElement } from 'lit-element';\nimport { html } from 'lit-html';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './structured-list.scss';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * StructuredListRow\n *\n * @element dds-structured-list-row\n */\n@customElement(`${ddsPrefix}-structured-list-row`)\nclass DDSStructuredListRow extends BXStructuredListRow {\n connectedCallback() {\n super.connectedCallback();\n }\n\n /* eslint-disable */\n // @ts-ignore required to unset inherited functionality\n updated(changedProperties) {}\n /* eslint-enable */\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSStructuredListRow;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,mBAAmB,MAAM,6EAA6E;AAC7G,SAASC,aAAa,QAAQ,aAAa;AAC3C,SAASC,IAAI,QAAQ,UAAU;AAC/B,OAAOC,WAAW,MAAM,kFAA+E;AACvG,OAAOC,MAAM,MAAM,4BAAwB;AAE3C,MAAM;EAAEC,YAAY,EAAEC;AAAU,CAAC,GAAGH,WAAW;;AAE/C;AACA;AACA;AACA;AACA;AAJA,IAMMI,oBAAoB,cADzBN,aAAa,CAAE,GAAEK,SAAU,sBAAqB,CAAC;EAAlD,MACMC,oBAAoB,8BAA6B;IAAA;MAAA;MAAA;IAAA;EAevD;EAAC;IAAA,GAfKA,oBAAoB;IAAA;MAAA;MAAA;MAAA,OACxB,6BAAoB;QAClB,qBAFEA,oBAAoB;MAGxB;;MAEA;MACA;IAAA;MAAA;MAAA;MAAA,OACA,iBAAQC,iBAAiB,EAAE,CAAC;MAC5B;IAAA;MAAA;MAAA;MAAA,OAEA,kBAAS;QACP,OAAON,IAAI,cAAC,iBAAe;MAC7B;IAAC;MAAA;MAAA;MAAA;MAAA;QAAA,OAEeE,MAAM;MAAA;IAAA;EAAA;AAAA,GAdWJ,mBAAmB,GAiBtD;AACA,eAAeO,oBAAoB"}
@@ -10,7 +10,7 @@ import { LitElement } from 'lit-element';
10
10
  import { TOC_TYPES } from './defs';
11
11
  declare const DDSTableOfContents_base: {
12
12
  new (...args: any[]): {
13
- _handles: Set<import("@carbon/carbon-web-components/es/globals/internal/handle").default>;
13
+ _handles: Set<import("@carbon/web-components/es/globals/internal/handle").default>;
14
14
  connectedCallback(): void;
15
15
  disconnectedCallback(): void;
16
16
  accessKey: string;
@@ -50,6 +50,10 @@ declare const DDSTableOfContents_base: {
50
50
  onfullscreenchange: ((this: Element, ev: Event) => any) | null;
51
51
  onfullscreenerror: ((this: Element, ev: Event) => any) | null;
52
52
  outerHTML: string;
53
+ /**
54
+ * The formatter for the aria label text for the mobile ToC.
55
+ * Should be changed upon the locale the component is rendered with.
56
+ */
53
57
  readonly ownerDocument: Document;
54
58
  readonly part: DOMTokenList;
55
59
  readonly prefix: string | null;
@@ -72,9 +76,15 @@ declare const DDSTableOfContents_base: {
72
76
  getBoundingClientRect(): DOMRect;
73
77
  getClientRects(): DOMRectList;
74
78
  getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
75
- getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
76
- getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
77
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
79
+ getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>; /**
80
+ * The observer for the intersection of left-side content edge.
81
+ */
82
+ getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>; /**
83
+ * The observer for the intersection of left-side content edge.
84
+ */
85
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; /**
86
+ * The observer for the intersection of left-side content edge.
87
+ */
78
88
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
79
89
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
80
90
  getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
@@ -121,11 +131,19 @@ declare const DDSTableOfContents_base: {
121
131
  textContent: string | null;
122
132
  appendChild<T_1 extends Node>(node: T_1): T_1;
123
133
  cloneNode(deep?: boolean | undefined): Node;
124
- compareDocumentPosition(other: Node): number;
134
+ compareDocumentPosition(other: Node): number; /**
135
+ * Handles `change` event on mobile `<select>`.
136
+ *
137
+ * @param event The event.
138
+ */
125
139
  contains(other: Node | null): boolean;
126
140
  getRootNode(options?: GetRootNodeOptions | undefined): Node;
127
141
  hasChildNodes(): boolean;
128
- insertBefore<T_2 extends Node>(node: T_2, child: Node | null): T_2;
142
+ insertBefore<T_2 extends Node>(node: T_2, child: Node | null): T_2; /**
143
+ * Handles `click` event on a menu item.
144
+ *
145
+ * @param event The event.
146
+ */
129
147
  isDefaultNamespace(namespace: string | null): boolean;
130
148
  isEqualNode(otherNode: Node | null): boolean;
131
149
  isSameNode(otherNode: Node | null): boolean;
@@ -1 +1 @@
1
- {"version":3,"sources":["components/table-of-contents/table-of-contents.ts"],"names":[],"mappings":"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","file":"table-of-contents.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { nothing } from 'lit-html';\nimport { classMap } from 'lit-html/directives/class-map.js';\nimport { ifDefined } from 'lit-html/directives/if-defined.js';\nimport {\n html,\n property,\n state,\n query,\n queryAll,\n customElement,\n LitElement,\n} from 'lit-element';\nimport CaretLeft20 from '@carbon/carbon-web-components/es/icons/caret--left/20.js';\nimport CaretRight20 from '@carbon/carbon-web-components/es/icons/caret--right/20.js';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport { baseFontSize, breakpoints } from '@carbon/layout';\nimport HostListener from '@carbon/carbon-web-components/es/globals/decorators/host-listener.js';\nimport HostListenerMixin from '@carbon/carbon-web-components/es/globals/mixins/host-listener.js';\nimport TableOfContents20 from '@carbon/carbon-web-components/es/icons/table-of-contents/20.js';\nimport throttle from 'lodash-es/throttle.js';\nimport StickyHeader from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './table-of-contents.scss';\nimport { TOC_TYPES } from './defs';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n// total button width - grid offset\nconst buttonWidthOffset = 32;\n\nconst gridLgBreakpoint = parseFloat(breakpoints.lg.width) * baseFontSize;\n\ninterface Cancelable {\n cancel(): void;\n}\n\n/**\n * @param a An array.\n * @param predicate The callback function.\n * @param [thisObject] The context object for the given callback function.\n * @returns The index of the last item in the given array where `predicate` returns `true`. `-1` if no such item is found.\n */\nfunction findLastIndex<T>(\n a: T[],\n predicate: (search: T, index?: number, thisObject?: any) => boolean,\n thisObject?: any\n): number {\n for (let i = a.length - 1; i >= 0; --i) {\n if (predicate(a[i], i, thisObject)) {\n return i;\n }\n }\n return -1;\n}\n\n/**\n * Table of contents.\n *\n * @element dds-table-of-contents\n * @csspart table - The table UI.\n * @slot heading - The heading content.\n * @slot menu-rule - The menu rule.\n */\n@customElement(`${ddsPrefix}-table-of-contents`)\nclass DDSTableOfContents extends HostListenerMixin(\n StableSelectorMixin(LitElement)\n) {\n /**\n * The formatter for the aria label text for the mobile ToC.\n * Should be changed upon the locale the component is rendered with.\n */\n @property({ attribute: false })\n ariaLabelFormatter = 'Table of contents';\n\n /**\n * Defines TOC type, \"\" for default, `horizontal` for horizontal variant.\n */\n @property({ reflect: true, attribute: 'toc-layout' })\n layout = TOC_TYPES.DEFAULT;\n\n /**\n * The current scroll position.\n */\n @state()\n private _currentScrollPosition = 0;\n\n /**\n * The current target `<a>` that should be in view.\n */\n @state()\n private _currentTarget: HTMLAnchorElement | null = null;\n\n /**\n * `true` if left-hand scroll intersection sentinel intersects with the host element.\n * In this condition, the left-hand paginator button should be hidden.\n */\n @state()\n private _isIntersectionLeftTrackerInContent = true;\n\n /**\n * `true` if right-hand scroll intersection sentinel intersects with the host element.\n * In this condition, the right-hand paginator button should be hidden.\n */\n @state()\n private _isIntersectionRightTrackerInContent = true;\n\n /**\n * `true` if there is a heading content.\n */\n @state()\n private _hasHeading = false;\n\n /**\n * `true` if mobile container is visible.\n */\n @state()\n private _hasMobileContainerVisible = false;\n\n /**\n * The observer for the intersection of left-side content edge.\n */\n private _observerIntersection: IntersectionObserver | null = null;\n\n /**\n * The scrolling content.\n */\n @query(`.${prefix}--tableofcontents__desktop`)\n private _contentNode?: HTMLElement;\n\n /**\n * The left-hand sentinel to track intersection with the host element.\n * If they intersect, the left-hand paginator button should be hidden.\n */\n @query(`.${prefix}--sub-content-left`)\n private _intersectionLeftSentinelNode?: HTMLElement;\n\n /**\n * The right-hand sentinel to track intersection with the host element.\n * If they intersect, the right-hand paginator button should be hidden.\n */\n @query(`.${prefix}--sub-content-right`)\n private _intersectionRightSentinelNode?: HTMLElement;\n\n @queryAll(`.${prefix}--tableofcontents__desktop__item`)\n private _itemNodes?: HTMLElement[] = [];\n\n @query(`.${prefix}--tableofcontents__navbar`)\n private _navBar?: HTMLElement;\n\n /**\n * The container for the mobile UI.\n */\n @query(`.${prefix}--tableofcontents__mobile`)\n private _mobileContainerNode?: HTMLElement;\n\n /**\n * The `<select>` for the mobile UI.\n */\n @query(`.${prefix}--tableofcontents__mobile__select`)\n private _mobileSelectNode?: HTMLSelectElement;\n\n /**\n * The observer for the resize of the mobile container.\n */\n private _observerResizeMobileContainer: any | null = null; // TODO: Wait for `.d.ts` update to support `ResizeObserver`\n\n /**\n * The target elements matching `[name]` harvested from the document.\n */\n @state()\n private _targets: HTMLElement[] = [];\n\n /**\n * The Element.tagName values that should never be used as a TOC target.\n * Typically added here because these elements have their own `[name]` attribute.\n */\n private _tagNamesToAvoid = [`${ddsPrefix}-video-player`];\n\n /**\n * Boolean checking if page is RTL\n */\n @state()\n private _pageIsRTL: Boolean =\n this.ownerDocument!.documentElement.dir === 'rtl';\n\n /**\n * The handler for throttled scrolling\n */\n private _throttleScroll: (((event: Event) => void) & Cancelable) | null =\n null;\n\n /**\n * Cleans-up and creats the resize observer for the mobile container.\n *\n * @param [options] The options.\n * @param [options.create] `true` to create the new resize observer.\n */\n private _cleanAndCreateObserverResizeMobileContainer({\n create,\n }: { create?: boolean } = {}) {\n const { _mobileContainerNode: mobileContainerNode } = this;\n if (mobileContainerNode) {\n if (this._observerResizeMobileContainer) {\n this._observerResizeMobileContainer.disconnect();\n this._observerResizeMobileContainer = null;\n }\n if (create) {\n // TODO: Wait for `.d.ts` update to support `ResizeObserver`\n // @ts-ignore\n this._observerResizeMobileContainer = new ResizeObserver(\n this._observeResizeMobileContainer\n );\n this._observerResizeMobileContainer.observe(mobileContainerNode);\n }\n }\n }\n\n /**\n * Handles `change` event on mobile `<select>`.\n *\n * @param event The event.\n */\n private _handleChangeSelect(event: Event) {\n this._handleUserInitiatedJump((event.target as HTMLSelectElement).value);\n }\n\n /**\n * Handles `click` event on a menu item.\n *\n * @param event The event.\n */\n private _handleClickItem(event: MouseEvent) {\n const { selectorDesktopItem } = this\n .constructor as typeof DDSTableOfContents;\n const target = event.target as HTMLAnchorElement;\n if (target.matches?.(selectorDesktopItem)) {\n this._handleUserInitiatedJump(target.dataset.target!);\n event.preventDefault();\n }\n }\n\n /**\n * Handles `click` event on a TOC navigation item.\n *\n * @param event The event.\n */\n private _handleOnKeyDown(event: KeyboardEvent) {\n const { selectorDesktopItem } = this\n .constructor as typeof DDSTableOfContents;\n const target = event.target as HTMLAnchorElement;\n const { _pageIsRTL: pageIsRTL } = this;\n if (target.matches?.(selectorDesktopItem)) {\n if (pageIsRTL) {\n if (event.key === 'Tab') {\n if (event.shiftKey) {\n if (\n target.parentElement?.previousElementSibling &&\n target.parentElement?.previousElementSibling.getBoundingClientRect()\n .right >\n this._navBar!.getBoundingClientRect().right - buttonWidthOffset\n ) {\n this._paginateLeft();\n }\n } else if (\n target.parentElement?.nextElementSibling &&\n target.parentElement?.nextElementSibling.getBoundingClientRect()\n .left <\n this._navBar!.getBoundingClientRect().left + buttonWidthOffset\n ) {\n this._paginateRight();\n }\n }\n } else if (event.key === 'Tab') {\n if (event.shiftKey) {\n if (\n target.parentElement?.previousElementSibling &&\n target.parentElement?.previousElementSibling!.getBoundingClientRect()\n .left <\n this._navBar!.getBoundingClientRect().left + buttonWidthOffset\n ) {\n this._paginateLeft();\n }\n } else if (\n target.parentElement?.nextElementSibling &&\n target.parentElement?.nextElementSibling!.getBoundingClientRect()\n .right >\n this._navBar!.getBoundingClientRect().right - buttonWidthOffset\n ) {\n this._paginateRight();\n }\n }\n }\n }\n\n /**\n * Handles intersection of target `<a>`s with the viewport by checking which target's\n * immediate siblings are close to the viewport, and set the active target depending\n * on their positions.\n */\n private _handleOnScroll = () => {\n this.ownerDocument!.defaultView!.requestAnimationFrame(() => {\n if (this._targets) {\n const items = this._targets\n .map((elem, index, arr) => ({\n elem,\n height: arr[index + 1]\n ? arr[index + 1].getBoundingClientRect().y -\n elem.getBoundingClientRect().y\n : null,\n position: elem.getBoundingClientRect().y,\n }))\n .filter((elem, index, arr) =>\n elem.height === null\n ? arr[index - 1].position < arr[index - 1].height!\n : elem.position - 50 - this.stickyOffset > -elem.height\n );\n\n // Sets last section as active at the end of page in case there is not enough height for it to dynamically activate\n const bottomReached =\n this.ownerDocument!.scrollingElement!.scrollTop +\n this.ownerDocument!.scrollingElement!.clientHeight ===\n this.ownerDocument!.scrollingElement!.scrollHeight;\n if (items && items[0] && items[items.length - 1]) {\n this._currentTarget = !bottomReached\n ? (items[0].elem as HTMLAnchorElement)\n : (items[items.length - 1].elem as HTMLAnchorElement);\n }\n }\n });\n };\n\n /**\n * Watches for changes to content in the default slot.\n */\n private _contentMutationObserver = new MutationObserver(\n this._contentObserverCallback.bind(this)\n );\n\n /**\n * Sets table of contents targets whenever any node tree mutation is observed.\n */\n private _contentObserverCallback() {\n const shadowRoot = this.shadowRoot as ShadowRoot;\n const allSlots = Array.from(\n shadowRoot.querySelectorAll(`slot`)\n ) as HTMLSlotElement[];\n const allSlottedNodes = allSlots.flatMap((slot) => slot.assignedNodes());\n this._setTargets(allSlottedNodes);\n }\n\n /**\n * Sets targets used for generating the table of contents.\n */\n private _setTargets(nodes: Node[]) {\n const { _tagNamesToAvoid: tagNamesToAvoid } = this;\n const { selectorTarget } = this.constructor as typeof DDSTableOfContents;\n this._targets = nodes.reduce((acc, node) => {\n if (node instanceof HTMLElement) {\n const descendants = node.querySelectorAll(\n selectorTarget\n ) as NodeListOf<HTMLElement>;\n const elems = [node, ...descendants].filter((elem) => {\n const notWhiteSpace = /[^\\s\\n\\r]/g;\n const hasTitle =\n elem.innerText.match(notWhiteSpace) ||\n elem.dataset.title?.match(notWhiteSpace);\n const hasNameAttr = elem.matches(selectorTarget);\n const notExcluded = !tagNamesToAvoid.includes(\n elem.tagName.toLowerCase()\n );\n\n return hasTitle && hasNameAttr && notExcluded;\n });\n\n acc.push(...(elems as HTMLElement[]));\n }\n\n return acc;\n }, [] as HTMLElement[]);\n }\n\n /**\n * Handles `slotchange` event on the default `<slot>`.\n *\n * @param event The event.\n */\n private _handleSlotChange(event: Event) {\n // Handle changes to immediate slotted children.\n const slottedElements = (event.target as HTMLSlotElement)\n .assignedNodes()\n .filter((node) => node instanceof HTMLElement);\n this._setTargets(slottedElements as HTMLElement[]);\n\n // Handle changes to slotted contents' children.\n this._contentMutationObserver.disconnect();\n (event.target as HTMLSlotElement).assignedNodes().forEach((node) => {\n if (node instanceof HTMLElement) {\n this._contentMutationObserver.observe(node, {\n subtree: true,\n childList: true,\n attributeFilter: ['name', 'data-title'],\n });\n }\n });\n }\n\n /**\n * Handles `slotchange` event on `<slot name=\"heading\">`.\n */\n private _handleSlotChangeHeading() {\n this._hasHeading = Array.from(\n this.querySelectorAll('[slot=\"heading\"]')\n ).some(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n }\n\n /**\n * Handles user-initiated jump to a hash.\n *\n * @param target The hash name.\n */\n private _handleUserInitiatedJump(target: string) {\n const elem = this.querySelector(`[name=\"${target}\"]`);\n const masthead: HTMLElement | null = this.ownerDocument.querySelector(\n `${ddsPrefix}-masthead`\n );\n const mobilePadding =\n window.innerWidth < gridLgBreakpoint\n ? this._mobileContainerNode?.offsetHeight\n : 0;\n\n if (elem instanceof HTMLElement) {\n const currentY = window.scrollY;\n let targetY;\n\n if (currentY > elem.offsetTop && masthead) {\n targetY = elem.offsetTop - masthead.offsetHeight;\n } else {\n targetY = elem.offsetTop - mobilePadding!;\n }\n\n window.scrollTo(0, targetY);\n\n elem.setAttribute('tabindex', '0');\n (elem as HTMLElement).focus({ preventScroll: true });\n elem.addEventListener(\n 'focusout',\n ({ target: focusoutTarget }) => {\n (focusoutTarget as HTMLElement)?.removeAttribute('tabindex');\n },\n {\n once: true,\n }\n );\n }\n }\n\n /**\n * Cleans-up and creates the intersection observer for the scrolling container.\n *\n * @param [options] The options.\n * @param [options.create] `true` to create the new intersection observer.\n */\n private _cleanAndCreateIntersectionObserverContainer({\n create,\n }: { create?: boolean } = {}) {\n const {\n _intersectionLeftSentinelNode: intersectionLeftSentinelNode,\n _intersectionRightSentinelNode: intersectionRightSentinelNode,\n } = this;\n if (this._observerIntersection) {\n this._observerIntersection.disconnect();\n this._observerIntersection = null;\n }\n if (create) {\n this._observerIntersection = new IntersectionObserver(\n this._observeIntersectionContainer,\n {\n root: this._navBar,\n threshold: 0,\n }\n );\n if (intersectionLeftSentinelNode) {\n this._observerIntersection.observe(intersectionLeftSentinelNode);\n }\n if (intersectionRightSentinelNode) {\n this._observerIntersection.observe(intersectionRightSentinelNode);\n }\n }\n }\n\n /**\n * The intersection observer callback for the scrolling container.\n *\n * @param records The intersection observer records.\n */\n private _observeIntersectionContainer = (records) => {\n const {\n _intersectionLeftSentinelNode: intersectionLeftSentinelNode,\n _intersectionRightSentinelNode: intersectionRightSentinelNode,\n } = this;\n records.forEach(({ isIntersecting, target }) => {\n if (target === intersectionLeftSentinelNode) {\n this._isIntersectionLeftTrackerInContent = isIntersecting;\n }\n if (target === intersectionRightSentinelNode) {\n this._isIntersectionRightTrackerInContent = isIntersecting;\n }\n });\n };\n\n /**\n * Handles `click` event on the left-hand paginator button.\n */\n private _paginateLeft() {\n const {\n _currentScrollPosition: currentScrollPosition,\n _navBar: navBar,\n _itemNodes: itemNodes,\n _pageIsRTL: pageIsRTL,\n } = this;\n // If the right-side intersection sentinel is in the view, it means that right-side caret button is hidden.\n // Given scrolling to left makes it shown,\n // `contentContainerNode!.offsetWidth` will shrink as we scroll and we need to adjust for it.\n const elems = Array.prototype.slice.call(itemNodes);\n if (elems) {\n if (pageIsRTL) {\n const interimLeft = navBar!.getBoundingClientRect().right;\n const lastVisibleElementIndex = findLastIndex(\n elems,\n (elem) =>\n elem.getBoundingClientRect().right > interimLeft - buttonWidthOffset\n );\n if (lastVisibleElementIndex >= 0) {\n const lastVisibleElementRight =\n elems[lastVisibleElementIndex].getBoundingClientRect().left;\n // 48 = button width - button gradient\n const newScrollPosition =\n currentScrollPosition - lastVisibleElementRight + 48;\n this._currentScrollPosition =\n newScrollPosition <= 0 ? 0 : newScrollPosition;\n }\n } else {\n const lastVisibleElementIndex = findLastIndex(\n elems,\n (elem) =>\n elem.getBoundingClientRect().left <\n buttonWidthOffset + navBar!.getBoundingClientRect().left\n );\n if (lastVisibleElementIndex >= 0) {\n const lastVisibleElementRight =\n elems[lastVisibleElementIndex].getBoundingClientRect().right;\n const newScrollPosition =\n lastVisibleElementRight +\n currentScrollPosition -\n navBar!.getBoundingClientRect().right +\n buttonWidthOffset;\n // If the new scroll position is less than the width of the left caret button,\n // it means that hiding the left caret button reveals the whole of the left-most nav item.\n // Snaps the left-most nav item to the left edge of nav container in this case.\n this._currentScrollPosition =\n newScrollPosition <= 0 ? 0 : newScrollPosition;\n }\n }\n }\n }\n\n /**\n * Handles `click` event on the right-hand paginator button.\n */\n private _paginateRight() {\n const {\n _navBar: navBar,\n _contentNode: contentNode,\n _currentScrollPosition: currentScrollPosition,\n _itemNodes: itemNodes,\n _pageIsRTL: pageIsRTL,\n } = this;\n\n const elems = Array.prototype.slice.call(itemNodes);\n if (elems) {\n if (pageIsRTL) {\n const interimLeft = navBar!.getBoundingClientRect().left;\n const firstVisibleElementIndex = elems.findIndex(\n (elem) =>\n elem.getBoundingClientRect().left < interimLeft + buttonWidthOffset\n );\n if (firstVisibleElementIndex > 0) {\n const firstVisibleElementLeft = Math.abs(\n elems[firstVisibleElementIndex].getBoundingClientRect().right +\n buttonWidthOffset -\n navBar!.getBoundingClientRect().right\n );\n const maxLeft = contentNode!.scrollWidth - navBar!.offsetWidth;\n this._currentScrollPosition = Math.min(\n firstVisibleElementLeft + currentScrollPosition,\n maxLeft\n );\n }\n } else {\n const interimRight = navBar!.getBoundingClientRect().right;\n const firstVisibleElementIndex = elems.findIndex(\n (elem) =>\n elem.getBoundingClientRect().right >\n interimRight - buttonWidthOffset\n );\n if (firstVisibleElementIndex > 0) {\n const firstVisibleElementLeft =\n elems[firstVisibleElementIndex].getBoundingClientRect().left -\n navBar!.getBoundingClientRect().left -\n buttonWidthOffset;\n // Ensures that is there is no blank area at the right hand side in scroll area\n // if we see the right remainder nav items can be contained in a page\n const maxLeft = contentNode!.scrollWidth - navBar!.offsetWidth;\n this._currentScrollPosition = Math.min(\n firstVisibleElementLeft + currentScrollPosition,\n maxLeft\n );\n }\n }\n }\n }\n\n /**\n * Handles resize of mobile container.\n *\n * @param records The resize records.\n */\n private _observeResizeMobileContainer = (records) => {\n const entry = records[records.length - 1];\n const { height } = entry.contentRect;\n this._hasMobileContainerVisible = height > 0;\n };\n\n /**\n * The current 0px offset from the top of page.\n */\n @property({ type: Number })\n stickyOffset = 0;\n\n /**\n * The throttled scroll listener.\n *\n * @param event scroll handler\n */\n @HostListener('window:scroll')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleScroll = (event: Event) => {\n this._throttleScroll!(event);\n };\n\n /**\n * The trigger reharvest listener.\n */\n @HostListener(`document:${ddsPrefix}-table-of-contents-reharvest`)\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _retriggerHarvest = () => {\n this._targets = Array.from(this.querySelectorAll('[name]'));\n };\n\n connectedCallback() {\n super.connectedCallback();\n this._cleanAndCreateObserverResizeMobileContainer({ create: true });\n this._cleanAndCreateIntersectionObserverContainer({ create: true });\n if (!this._throttleScroll) {\n this._throttleScroll = throttle(this._handleOnScroll, 250);\n this._handleOnScroll();\n }\n }\n\n disconnectedCallback() {\n this._cleanAndCreateObserverResizeMobileContainer();\n this._cleanAndCreateIntersectionObserverContainer();\n this._contentMutationObserver.disconnect();\n if (this._throttleScroll) {\n this._throttleScroll.cancel();\n this._throttleScroll = null;\n }\n super.disconnectedCallback();\n }\n\n firstUpdated() {\n this._cleanAndCreateObserverResizeMobileContainer({ create: true });\n this._cleanAndCreateIntersectionObserverContainer({ create: true });\n\n StickyHeader.global.tableOfContents = this;\n }\n\n updated(changedProperties) {\n if (changedProperties.has('_currentTarget')) {\n const {\n _currentTarget: currentTarget,\n _mobileSelectNode: mobileSelectNode,\n } = this;\n // Ensures setting the `value` after rendering child `<option>`s when there is a change in `value`,\n // given reflecting `value` requires child `<option>`s being there beforehand\n mobileSelectNode!.value = currentTarget?.getAttribute('name') ?? '';\n }\n }\n\n render() {\n const {\n stickyOffset,\n _currentTarget: currentTarget,\n _currentScrollPosition: currentScrollPosition,\n _hasHeading: hasHeading,\n _hasMobileContainerVisible: hasMobileContainerVisible,\n _isIntersectionLeftTrackerInContent: isIntersectionLeftTrackerInContent,\n _isIntersectionRightTrackerInContent: isIntersectionRightTrackerInContent,\n _targets: targets,\n _handleChangeSelect: handleChangeSelect,\n _handleClickItem: handleClickItem,\n _handleOnKeyDown: handleOnKeyDown,\n _handleSlotChange: handleSlotChange,\n _handleSlotChangeHeading: handleSlotChangeHeading,\n _paginateLeft: paginateLeft,\n _paginateRight: paginateRight,\n _pageIsRTL: pageIsRTL,\n } = this;\n\n const containerClasses = classMap({\n [`${ddsPrefix}-ce--table-of-contents__container`]:\n this.layout === TOC_TYPES.DEFAULT,\n [`${ddsPrefix}-ce--table-of-contents-horizontal__container`]:\n this.layout === TOC_TYPES.HORIZONTAL,\n });\n\n const navigationClasses = classMap({\n [`${prefix}--tableofcontents__sidebar`]:\n this.layout === TOC_TYPES.DEFAULT,\n [`${prefix}--tableofcontents__navbar`]:\n this.layout === TOC_TYPES.HORIZONTAL,\n });\n\n const caretLeftContainerClasses = classMap({\n [`${prefix}--toc__navbar-caret-left-container`]: true,\n [`${ddsPrefix}-ce--toc__navbar-caret-container--hidden`]:\n isIntersectionLeftTrackerInContent,\n });\n\n const caretRightContainerClasses = classMap({\n [`${prefix}--toc__navbar-caret-right-container`]: true,\n [`${ddsPrefix}-ce--toc__navbar-caret-container--hidden`]:\n isIntersectionRightTrackerInContent,\n });\n\n return html`\n ${this.layout === 'horizontal'\n ? html`\n <ul class=\"${prefix}--toc__print-styles\">\n ${targets.map((item) => {\n const name = item.getAttribute('name');\n const title = (\n item.dataset.title ??\n item.textContent ??\n ''\n ).trim();\n const selected = item === currentTarget;\n const itemClasses = classMap({\n [`${prefix}--tableofcontents__desktop__item`]: true,\n [`${prefix}--tableofcontents__desktop__item--active`]:\n selected,\n });\n return html`\n <li\n class=\"${itemClasses}\"\n @click=\"${handleClickItem}\"\n @keydown=\"${handleOnKeyDown}\"\n >\n <a\n aria-current=\"${ifDefined(\n !selected ? undefined : 'location'\n )}\"\n data-target=\"${name!}\"\n href=\"#${name}\"\n >\n ${title}\n </a>\n </li>\n `;\n })}\n </ul>\n `\n : ``}\n <div class=\"${containerClasses}\">\n <div\n part=\"table\"\n class=\"${navigationClasses}\"\n style=\"top: ${this.layout === TOC_TYPES.HORIZONTAL && stickyOffset\n ? `${stickyOffset}px`\n : 0}\"\n >\n ${hasMobileContainerVisible\n ? nothing\n : html`\n <div\n ?hidden=\"${!hasHeading}\"\n class=\"${prefix}--tableofcontents__desktop__children\"\n >\n <slot\n name=\"heading\"\n @slotchange=\"${handleSlotChangeHeading}\"\n ></slot>\n <slot name=\"menu-rule\"></slot>\n </div>\n `}\n <div class=\"${prefix}--tableofcontents__mobile-top\"></div>\n ${this.layout === 'horizontal'\n ? html`\n ${pageIsRTL\n ? html`\n <div class=\"${caretRightContainerClasses}\">\n <div\n class=\"${prefix}--toc__navbar-caret-right-gradient\"\n ></div>\n <button\n part=\"next-button\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n class=\"${prefix}--toc__navbar-caret-right\"\n @click=\"${paginateRight}\"\n >\n ${CaretLeft20()}\n </button>\n </div>\n `\n : html`\n <div class=\"${caretLeftContainerClasses}\">\n <button\n part=\"prev-button\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n class=\"${prefix}--toc__navbar-caret-left\"\n @click=\"${paginateLeft}\"\n >\n ${CaretLeft20()}\n </button>\n <div\n class=\"${prefix}--toc__navbar-caret-left-gradient\"\n ></div>\n </div>\n `}\n `\n : ``}\n <div\n class=\"${ddsPrefix}-ce--table-of-contents__items-container\"\n style=\"position: sticky; top: ${stickyOffset &&\n this.layout !== TOC_TYPES.HORIZONTAL\n ? `${stickyOffset}px`\n : 0}\"\n >\n <div class=\"${prefix}--tableofcontents__desktop-container\">\n <div\n class=\"${prefix}--tableofcontents__desktop\"\n style=\"${pageIsRTL\n ? 'right'\n : 'left'}: -${currentScrollPosition}px\"\n >\n ${pageIsRTL\n ? html` <div class=\"${prefix}--sub-content-right\"></div> `\n : html` <div class=\"${prefix}--sub-content-left\"></div> `}\n <ul>\n ${targets.map((item) => {\n const name = item.getAttribute('name');\n const title = (\n item.dataset.title ??\n item.textContent ??\n ''\n ).trim();\n const selected = item === currentTarget;\n const itemClasses = classMap({\n [`${prefix}--tableofcontents__desktop__item`]: true,\n [`${prefix}--tableofcontents__desktop__item--active`]:\n selected,\n });\n return html`\n <li\n class=\"${itemClasses}\"\n @click=\"${handleClickItem}\"\n @keydown=\"${handleOnKeyDown}\"\n >\n <a\n aria-current=\"${ifDefined(\n !selected ? undefined : 'location'\n )}\"\n data-target=\"${name!}\"\n href=\"#${name}\"\n >\n ${title}\n </a>\n </li>\n `;\n })}\n </ul>\n ${pageIsRTL\n ? html` <div class=\"${prefix}--sub-content-left\"></div> `\n : html` <div class=\"${prefix}--sub-content-right\"></div> `}\n </div>\n </div>\n <div class=\"${prefix}--tableofcontents__mobile\">\n <div class=\"${prefix}--tableofcontents__mobile__select__wrapper\">\n <select\n aria-label=\"${this.ariaLabelFormatter}\"\n class=\"${prefix}--tableofcontents__mobile__select\"\n @change=\"${handleChangeSelect}\"\n >\n ${targets.map((item) => {\n const name = item.getAttribute('name');\n const title = (\n item.dataset.title ??\n item.textContent ??\n ''\n ).trim();\n return html`\n <option\n class=\"${prefix}--tableofcontents__mobile__select__option\"\n value=\"${name!}\"\n >\n ${title}\n </option>\n `;\n })}\n </select>\n ${TableOfContents20({\n class: `${prefix}--tableofcontents__mobile__select__icon`,\n })}\n </div>\n </div>\n </div>\n ${this.layout === 'horizontal'\n ? html`\n ${pageIsRTL\n ? html`\n <div class=\"${caretLeftContainerClasses}\">\n <button\n part=\"prev-button\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n class=\"${prefix}--toc__navbar-caret-left\"\n @click=\"${paginateLeft}\"\n >\n ${CaretRight20()}\n </button>\n <div\n class=\"${prefix}--toc__navbar-caret-left-gradient\"\n ></div>\n </div>\n `\n : html`\n <div class=\"${caretRightContainerClasses}\">\n <div\n class=\"${prefix}--toc__navbar-caret-right-gradient\"\n ></div>\n <button\n part=\"next-button\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n class=\"${prefix}--toc__navbar-caret-right\"\n @click=\"${paginateRight}\"\n >\n ${CaretRight20()}\n </button>\n </div>\n `}\n `\n : ``}\n </div>\n <div class=\"${prefix}--tableofcontents__content\">\n <div class=\"${prefix}--tableofcontents__content-wrapper\">\n ${!hasMobileContainerVisible\n ? undefined\n : html`\n <div\n ?hidden=\"${!hasHeading}\"\n class=\"${prefix}--tableofcontents__children__mobile\"\n >\n <slot\n name=\"heading\"\n @slotchange=\"${handleSlotChangeHeading}\"\n ></slot>\n </div>\n `}\n <slot @slotchange=\"${handleSlotChange}\"></slot>\n </div>\n </div>\n </div>\n `;\n }\n\n /**\n * The selector that selects the desktop link items.\n */\n static get selectorDesktopItem() {\n return `.${prefix}--tableofcontents__desktop__item a`;\n }\n\n /**\n * The selector that determines where to harvest the table of contents from.\n */\n static selectorTarget = '[name]';\n\n static get stableSelector() {\n return `${ddsPrefix}--table-of-contents`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSTableOfContents;\n"]}
1
+ {"version":3,"sources":["components/table-of-contents/table-of-contents.ts"],"names":[],"mappings":"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","file":"table-of-contents.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { nothing } from 'lit-html';\nimport { classMap } from 'lit-html/directives/class-map.js';\nimport { ifDefined } from 'lit-html/directives/if-defined.js';\nimport {\n html,\n property,\n state,\n query,\n queryAll,\n customElement,\n LitElement,\n} from 'lit-element';\nimport CaretLeft20 from '@carbon/web-components/es/icons/caret--left/20.js';\nimport CaretRight20 from '@carbon/web-components/es/icons/caret--right/20.js';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport { baseFontSize, breakpoints } from '@carbon/layout';\nimport HostListener from '@carbon/web-components/es/globals/decorators/host-listener.js';\nimport HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';\nimport TableOfContents20 from '@carbon/web-components/es/icons/table-of-contents/20.js';\nimport throttle from 'lodash-es/throttle.js';\nimport StickyHeader from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './table-of-contents.scss';\nimport { TOC_TYPES } from './defs';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n// total button width - grid offset\nconst buttonWidthOffset = 32;\n\nconst gridLgBreakpoint = parseFloat(breakpoints.lg.width) * baseFontSize;\n\ninterface Cancelable {\n cancel(): void;\n}\n\n/**\n * @param a An array.\n * @param predicate The callback function.\n * @param [thisObject] The context object for the given callback function.\n * @returns The index of the last item in the given array where `predicate` returns `true`. `-1` if no such item is found.\n */\nfunction findLastIndex<T>(\n a: T[],\n predicate: (search: T, index?: number, thisObject?: any) => boolean,\n thisObject?: any\n): number {\n for (let i = a.length - 1; i >= 0; --i) {\n if (predicate(a[i], i, thisObject)) {\n return i;\n }\n }\n return -1;\n}\n\n/**\n * Table of contents.\n *\n * @element dds-table-of-contents\n * @csspart table - The table UI.\n * @slot heading - The heading content.\n * @slot menu-rule - The menu rule.\n */\n@customElement(`${ddsPrefix}-table-of-contents`)\nclass DDSTableOfContents extends HostListenerMixin(\n StableSelectorMixin(LitElement)\n) {\n /**\n * The formatter for the aria label text for the mobile ToC.\n * Should be changed upon the locale the component is rendered with.\n */\n @property({ attribute: false })\n ariaLabelFormatter = 'Table of contents';\n\n /**\n * Defines TOC type, \"\" for default, `horizontal` for horizontal variant.\n */\n @property({ reflect: true, attribute: 'toc-layout' })\n layout = TOC_TYPES.DEFAULT;\n\n /**\n * The current scroll position.\n */\n @state()\n private _currentScrollPosition = 0;\n\n /**\n * The current target `<a>` that should be in view.\n */\n @state()\n private _currentTarget: HTMLAnchorElement | null = null;\n\n /**\n * `true` if left-hand scroll intersection sentinel intersects with the host element.\n * In this condition, the left-hand paginator button should be hidden.\n */\n @state()\n private _isIntersectionLeftTrackerInContent = true;\n\n /**\n * `true` if right-hand scroll intersection sentinel intersects with the host element.\n * In this condition, the right-hand paginator button should be hidden.\n */\n @state()\n private _isIntersectionRightTrackerInContent = true;\n\n /**\n * `true` if there is a heading content.\n */\n @state()\n private _hasHeading = false;\n\n /**\n * `true` if mobile container is visible.\n */\n @state()\n private _hasMobileContainerVisible = false;\n\n /**\n * The observer for the intersection of left-side content edge.\n */\n private _observerIntersection: IntersectionObserver | null = null;\n\n /**\n * The scrolling content.\n */\n @query(`.${prefix}--tableofcontents__desktop`)\n private _contentNode?: HTMLElement;\n\n /**\n * The left-hand sentinel to track intersection with the host element.\n * If they intersect, the left-hand paginator button should be hidden.\n */\n @query(`.${prefix}--sub-content-left`)\n private _intersectionLeftSentinelNode?: HTMLElement;\n\n /**\n * The right-hand sentinel to track intersection with the host element.\n * If they intersect, the right-hand paginator button should be hidden.\n */\n @query(`.${prefix}--sub-content-right`)\n private _intersectionRightSentinelNode?: HTMLElement;\n\n @queryAll(`.${prefix}--tableofcontents__desktop__item`)\n private _itemNodes?: HTMLElement[] = [];\n\n @query(`.${prefix}--tableofcontents__navbar`)\n private _navBar?: HTMLElement;\n\n /**\n * The container for the mobile UI.\n */\n @query(`.${prefix}--tableofcontents__mobile`)\n private _mobileContainerNode?: HTMLElement;\n\n /**\n * The `<select>` for the mobile UI.\n */\n @query(`.${prefix}--tableofcontents__mobile__select`)\n private _mobileSelectNode?: HTMLSelectElement;\n\n /**\n * The observer for the resize of the mobile container.\n */\n private _observerResizeMobileContainer: any | null = null; // TODO: Wait for `.d.ts` update to support `ResizeObserver`\n\n /**\n * The target elements matching `[name]` harvested from the document.\n */\n @state()\n private _targets: HTMLElement[] = [];\n\n /**\n * The Element.tagName values that should never be used as a TOC target.\n * Typically added here because these elements have their own `[name]` attribute.\n */\n private _tagNamesToAvoid = [`${ddsPrefix}-video-player`];\n\n /**\n * Boolean checking if page is RTL\n */\n @state()\n private _pageIsRTL: Boolean =\n this.ownerDocument!.documentElement.dir === 'rtl';\n\n /**\n * The handler for throttled scrolling\n */\n private _throttleScroll: (((event: Event) => void) & Cancelable) | null =\n null;\n\n /**\n * Cleans-up and creats the resize observer for the mobile container.\n *\n * @param [options] The options.\n * @param [options.create] `true` to create the new resize observer.\n */\n private _cleanAndCreateObserverResizeMobileContainer({\n create,\n }: { create?: boolean } = {}) {\n const { _mobileContainerNode: mobileContainerNode } = this;\n if (mobileContainerNode) {\n if (this._observerResizeMobileContainer) {\n this._observerResizeMobileContainer.disconnect();\n this._observerResizeMobileContainer = null;\n }\n if (create) {\n // TODO: Wait for `.d.ts` update to support `ResizeObserver`\n // @ts-ignore\n this._observerResizeMobileContainer = new ResizeObserver(\n this._observeResizeMobileContainer\n );\n this._observerResizeMobileContainer.observe(mobileContainerNode);\n }\n }\n }\n\n /**\n * Handles `change` event on mobile `<select>`.\n *\n * @param event The event.\n */\n private _handleChangeSelect(event: Event) {\n this._handleUserInitiatedJump((event.target as HTMLSelectElement).value);\n }\n\n /**\n * Handles `click` event on a menu item.\n *\n * @param event The event.\n */\n private _handleClickItem(event: MouseEvent) {\n const { selectorDesktopItem } = this\n .constructor as typeof DDSTableOfContents;\n const target = event.target as HTMLAnchorElement;\n if (target.matches?.(selectorDesktopItem)) {\n this._handleUserInitiatedJump(target.dataset.target!);\n event.preventDefault();\n }\n }\n\n /**\n * Handles `click` event on a TOC navigation item.\n *\n * @param event The event.\n */\n private _handleOnKeyDown(event: KeyboardEvent) {\n const { selectorDesktopItem } = this\n .constructor as typeof DDSTableOfContents;\n const target = event.target as HTMLAnchorElement;\n const { _pageIsRTL: pageIsRTL } = this;\n if (target.matches?.(selectorDesktopItem)) {\n if (pageIsRTL) {\n if (event.key === 'Tab') {\n if (event.shiftKey) {\n if (\n target.parentElement?.previousElementSibling &&\n target.parentElement?.previousElementSibling.getBoundingClientRect()\n .right >\n this._navBar!.getBoundingClientRect().right - buttonWidthOffset\n ) {\n this._paginateLeft();\n }\n } else if (\n target.parentElement?.nextElementSibling &&\n target.parentElement?.nextElementSibling.getBoundingClientRect()\n .left <\n this._navBar!.getBoundingClientRect().left + buttonWidthOffset\n ) {\n this._paginateRight();\n }\n }\n } else if (event.key === 'Tab') {\n if (event.shiftKey) {\n if (\n target.parentElement?.previousElementSibling &&\n target.parentElement?.previousElementSibling!.getBoundingClientRect()\n .left <\n this._navBar!.getBoundingClientRect().left + buttonWidthOffset\n ) {\n this._paginateLeft();\n }\n } else if (\n target.parentElement?.nextElementSibling &&\n target.parentElement?.nextElementSibling!.getBoundingClientRect()\n .right >\n this._navBar!.getBoundingClientRect().right - buttonWidthOffset\n ) {\n this._paginateRight();\n }\n }\n }\n }\n\n /**\n * Handles intersection of target `<a>`s with the viewport by checking which target's\n * immediate siblings are close to the viewport, and set the active target depending\n * on their positions.\n */\n private _handleOnScroll = () => {\n this.ownerDocument!.defaultView!.requestAnimationFrame(() => {\n if (this._targets) {\n const items = this._targets\n .map((elem, index, arr) => ({\n elem,\n height: arr[index + 1]\n ? arr[index + 1].getBoundingClientRect().y -\n elem.getBoundingClientRect().y\n : null,\n position: elem.getBoundingClientRect().y,\n }))\n .filter((elem, index, arr) =>\n elem.height === null\n ? arr[index - 1].position < arr[index - 1].height!\n : elem.position - 50 - this.stickyOffset > -elem.height\n );\n\n // Sets last section as active at the end of page in case there is not enough height for it to dynamically activate\n const bottomReached =\n this.ownerDocument!.scrollingElement!.scrollTop +\n this.ownerDocument!.scrollingElement!.clientHeight ===\n this.ownerDocument!.scrollingElement!.scrollHeight;\n if (items && items[0] && items[items.length - 1]) {\n this._currentTarget = !bottomReached\n ? (items[0].elem as HTMLAnchorElement)\n : (items[items.length - 1].elem as HTMLAnchorElement);\n }\n }\n });\n };\n\n /**\n * Watches for changes to content in the default slot.\n */\n private _contentMutationObserver = new MutationObserver(\n this._contentObserverCallback.bind(this)\n );\n\n /**\n * Sets table of contents targets whenever any node tree mutation is observed.\n */\n private _contentObserverCallback() {\n const shadowRoot = this.shadowRoot as ShadowRoot;\n const allSlots = Array.from(\n shadowRoot.querySelectorAll(`slot`)\n ) as HTMLSlotElement[];\n const allSlottedNodes = allSlots.flatMap((slot) => slot.assignedNodes());\n this._setTargets(allSlottedNodes);\n }\n\n /**\n * Sets targets used for generating the table of contents.\n */\n private _setTargets(nodes: Node[]) {\n const { _tagNamesToAvoid: tagNamesToAvoid } = this;\n const { selectorTarget } = this.constructor as typeof DDSTableOfContents;\n this._targets = nodes.reduce((acc, node) => {\n if (node instanceof HTMLElement) {\n const descendants = node.querySelectorAll(\n selectorTarget\n ) as NodeListOf<HTMLElement>;\n const elems = [node, ...descendants].filter((elem) => {\n const notWhiteSpace = /[^\\s\\n\\r]/g;\n const hasTitle =\n elem.innerText.match(notWhiteSpace) ||\n elem.dataset.title?.match(notWhiteSpace);\n const hasNameAttr = elem.matches(selectorTarget);\n const notExcluded = !tagNamesToAvoid.includes(\n elem.tagName.toLowerCase()\n );\n\n return hasTitle && hasNameAttr && notExcluded;\n });\n\n acc.push(...(elems as HTMLElement[]));\n }\n\n return acc;\n }, [] as HTMLElement[]);\n }\n\n /**\n * Handles `slotchange` event on the default `<slot>`.\n *\n * @param event The event.\n */\n private _handleSlotChange(event: Event) {\n // Handle changes to immediate slotted children.\n const slottedElements = (event.target as HTMLSlotElement)\n .assignedNodes()\n .filter((node) => node instanceof HTMLElement);\n this._setTargets(slottedElements as HTMLElement[]);\n\n // Handle changes to slotted contents' children.\n this._contentMutationObserver.disconnect();\n (event.target as HTMLSlotElement).assignedNodes().forEach((node) => {\n if (node instanceof HTMLElement) {\n this._contentMutationObserver.observe(node, {\n subtree: true,\n childList: true,\n attributeFilter: ['name', 'data-title'],\n });\n }\n });\n }\n\n /**\n * Handles `slotchange` event on `<slot name=\"heading\">`.\n */\n private _handleSlotChangeHeading() {\n this._hasHeading = Array.from(\n this.querySelectorAll('[slot=\"heading\"]')\n ).some(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n }\n\n /**\n * Handles user-initiated jump to a hash.\n *\n * @param target The hash name.\n */\n private _handleUserInitiatedJump(target: string) {\n const elem = this.querySelector(`[name=\"${target}\"]`);\n const masthead: HTMLElement | null = this.ownerDocument.querySelector(\n `${ddsPrefix}-masthead`\n );\n const mobilePadding =\n window.innerWidth < gridLgBreakpoint\n ? this._mobileContainerNode?.offsetHeight\n : 0;\n\n if (elem instanceof HTMLElement) {\n const currentY = window.scrollY;\n let targetY;\n\n if (currentY > elem.offsetTop && masthead) {\n targetY = elem.offsetTop - masthead.offsetHeight;\n } else {\n targetY = elem.offsetTop - mobilePadding!;\n }\n\n window.scrollTo(0, targetY);\n\n elem.setAttribute('tabindex', '0');\n (elem as HTMLElement).focus({ preventScroll: true });\n elem.addEventListener(\n 'focusout',\n ({ target: focusoutTarget }) => {\n (focusoutTarget as HTMLElement)?.removeAttribute('tabindex');\n },\n {\n once: true,\n }\n );\n }\n }\n\n /**\n * Cleans-up and creates the intersection observer for the scrolling container.\n *\n * @param [options] The options.\n * @param [options.create] `true` to create the new intersection observer.\n */\n private _cleanAndCreateIntersectionObserverContainer({\n create,\n }: { create?: boolean } = {}) {\n const {\n _intersectionLeftSentinelNode: intersectionLeftSentinelNode,\n _intersectionRightSentinelNode: intersectionRightSentinelNode,\n } = this;\n if (this._observerIntersection) {\n this._observerIntersection.disconnect();\n this._observerIntersection = null;\n }\n if (create) {\n this._observerIntersection = new IntersectionObserver(\n this._observeIntersectionContainer,\n {\n root: this._navBar,\n threshold: 0,\n }\n );\n if (intersectionLeftSentinelNode) {\n this._observerIntersection.observe(intersectionLeftSentinelNode);\n }\n if (intersectionRightSentinelNode) {\n this._observerIntersection.observe(intersectionRightSentinelNode);\n }\n }\n }\n\n /**\n * The intersection observer callback for the scrolling container.\n *\n * @param records The intersection observer records.\n */\n private _observeIntersectionContainer = (records) => {\n const {\n _intersectionLeftSentinelNode: intersectionLeftSentinelNode,\n _intersectionRightSentinelNode: intersectionRightSentinelNode,\n } = this;\n records.forEach(({ isIntersecting, target }) => {\n if (target === intersectionLeftSentinelNode) {\n this._isIntersectionLeftTrackerInContent = isIntersecting;\n }\n if (target === intersectionRightSentinelNode) {\n this._isIntersectionRightTrackerInContent = isIntersecting;\n }\n });\n };\n\n /**\n * Handles `click` event on the left-hand paginator button.\n */\n private _paginateLeft() {\n const {\n _currentScrollPosition: currentScrollPosition,\n _navBar: navBar,\n _itemNodes: itemNodes,\n _pageIsRTL: pageIsRTL,\n } = this;\n // If the right-side intersection sentinel is in the view, it means that right-side caret button is hidden.\n // Given scrolling to left makes it shown,\n // `contentContainerNode!.offsetWidth` will shrink as we scroll and we need to adjust for it.\n const elems = Array.prototype.slice.call(itemNodes);\n if (elems) {\n if (pageIsRTL) {\n const interimLeft = navBar!.getBoundingClientRect().right;\n const lastVisibleElementIndex = findLastIndex(\n elems,\n (elem) =>\n elem.getBoundingClientRect().right > interimLeft - buttonWidthOffset\n );\n if (lastVisibleElementIndex >= 0) {\n const lastVisibleElementRight =\n elems[lastVisibleElementIndex].getBoundingClientRect().left;\n // 48 = button width - button gradient\n const newScrollPosition =\n currentScrollPosition - lastVisibleElementRight + 48;\n this._currentScrollPosition =\n newScrollPosition <= 0 ? 0 : newScrollPosition;\n }\n } else {\n const lastVisibleElementIndex = findLastIndex(\n elems,\n (elem) =>\n elem.getBoundingClientRect().left <\n buttonWidthOffset + navBar!.getBoundingClientRect().left\n );\n if (lastVisibleElementIndex >= 0) {\n const lastVisibleElementRight =\n elems[lastVisibleElementIndex].getBoundingClientRect().right;\n const newScrollPosition =\n lastVisibleElementRight +\n currentScrollPosition -\n navBar!.getBoundingClientRect().right +\n buttonWidthOffset;\n // If the new scroll position is less than the width of the left caret button,\n // it means that hiding the left caret button reveals the whole of the left-most nav item.\n // Snaps the left-most nav item to the left edge of nav container in this case.\n this._currentScrollPosition =\n newScrollPosition <= 0 ? 0 : newScrollPosition;\n }\n }\n }\n }\n\n /**\n * Handles `click` event on the right-hand paginator button.\n */\n private _paginateRight() {\n const {\n _navBar: navBar,\n _contentNode: contentNode,\n _currentScrollPosition: currentScrollPosition,\n _itemNodes: itemNodes,\n _pageIsRTL: pageIsRTL,\n } = this;\n\n const elems = Array.prototype.slice.call(itemNodes);\n if (elems) {\n if (pageIsRTL) {\n const interimLeft = navBar!.getBoundingClientRect().left;\n const firstVisibleElementIndex = elems.findIndex(\n (elem) =>\n elem.getBoundingClientRect().left < interimLeft + buttonWidthOffset\n );\n if (firstVisibleElementIndex > 0) {\n const firstVisibleElementLeft = Math.abs(\n elems[firstVisibleElementIndex].getBoundingClientRect().right +\n buttonWidthOffset -\n navBar!.getBoundingClientRect().right\n );\n const maxLeft = contentNode!.scrollWidth - navBar!.offsetWidth;\n this._currentScrollPosition = Math.min(\n firstVisibleElementLeft + currentScrollPosition,\n maxLeft\n );\n }\n } else {\n const interimRight = navBar!.getBoundingClientRect().right;\n const firstVisibleElementIndex = elems.findIndex(\n (elem) =>\n elem.getBoundingClientRect().right >\n interimRight - buttonWidthOffset\n );\n if (firstVisibleElementIndex > 0) {\n const firstVisibleElementLeft =\n elems[firstVisibleElementIndex].getBoundingClientRect().left -\n navBar!.getBoundingClientRect().left -\n buttonWidthOffset;\n // Ensures that is there is no blank area at the right hand side in scroll area\n // if we see the right remainder nav items can be contained in a page\n const maxLeft = contentNode!.scrollWidth - navBar!.offsetWidth;\n this._currentScrollPosition = Math.min(\n firstVisibleElementLeft + currentScrollPosition,\n maxLeft\n );\n }\n }\n }\n }\n\n /**\n * Handles resize of mobile container.\n *\n * @param records The resize records.\n */\n private _observeResizeMobileContainer = (records) => {\n const entry = records[records.length - 1];\n const { height } = entry.contentRect;\n this._hasMobileContainerVisible = height > 0;\n };\n\n /**\n * The current 0px offset from the top of page.\n */\n @property({ type: Number })\n stickyOffset = 0;\n\n /**\n * The throttled scroll listener.\n *\n * @param event scroll handler\n */\n @HostListener('window:scroll')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleScroll = (event: Event) => {\n this._throttleScroll!(event);\n };\n\n /**\n * The trigger reharvest listener.\n */\n @HostListener(`document:${ddsPrefix}-table-of-contents-reharvest`)\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _retriggerHarvest = () => {\n this._targets = Array.from(this.querySelectorAll('[name]'));\n };\n\n connectedCallback() {\n super.connectedCallback();\n this._cleanAndCreateObserverResizeMobileContainer({ create: true });\n this._cleanAndCreateIntersectionObserverContainer({ create: true });\n if (!this._throttleScroll) {\n this._throttleScroll = throttle(this._handleOnScroll, 250);\n this._handleOnScroll();\n }\n }\n\n disconnectedCallback() {\n this._cleanAndCreateObserverResizeMobileContainer();\n this._cleanAndCreateIntersectionObserverContainer();\n this._contentMutationObserver.disconnect();\n if (this._throttleScroll) {\n this._throttleScroll.cancel();\n this._throttleScroll = null;\n }\n super.disconnectedCallback();\n }\n\n firstUpdated() {\n this._cleanAndCreateObserverResizeMobileContainer({ create: true });\n this._cleanAndCreateIntersectionObserverContainer({ create: true });\n\n StickyHeader.global.tableOfContents = this;\n }\n\n updated(changedProperties) {\n if (changedProperties.has('_currentTarget')) {\n const {\n _currentTarget: currentTarget,\n _mobileSelectNode: mobileSelectNode,\n } = this;\n // Ensures setting the `value` after rendering child `<option>`s when there is a change in `value`,\n // given reflecting `value` requires child `<option>`s being there beforehand\n mobileSelectNode!.value = currentTarget?.getAttribute('name') ?? '';\n }\n }\n\n render() {\n const {\n stickyOffset,\n _currentTarget: currentTarget,\n _currentScrollPosition: currentScrollPosition,\n _hasHeading: hasHeading,\n _hasMobileContainerVisible: hasMobileContainerVisible,\n _isIntersectionLeftTrackerInContent: isIntersectionLeftTrackerInContent,\n _isIntersectionRightTrackerInContent: isIntersectionRightTrackerInContent,\n _targets: targets,\n _handleChangeSelect: handleChangeSelect,\n _handleClickItem: handleClickItem,\n _handleOnKeyDown: handleOnKeyDown,\n _handleSlotChange: handleSlotChange,\n _handleSlotChangeHeading: handleSlotChangeHeading,\n _paginateLeft: paginateLeft,\n _paginateRight: paginateRight,\n _pageIsRTL: pageIsRTL,\n } = this;\n\n const containerClasses = classMap({\n [`${ddsPrefix}-ce--table-of-contents__container`]:\n this.layout === TOC_TYPES.DEFAULT,\n [`${ddsPrefix}-ce--table-of-contents-horizontal__container`]:\n this.layout === TOC_TYPES.HORIZONTAL,\n });\n\n const navigationClasses = classMap({\n [`${prefix}--tableofcontents__sidebar`]:\n this.layout === TOC_TYPES.DEFAULT,\n [`${prefix}--tableofcontents__navbar`]:\n this.layout === TOC_TYPES.HORIZONTAL,\n });\n\n const caretLeftContainerClasses = classMap({\n [`${prefix}--toc__navbar-caret-left-container`]: true,\n [`${ddsPrefix}-ce--toc__navbar-caret-container--hidden`]:\n isIntersectionLeftTrackerInContent,\n });\n\n const caretRightContainerClasses = classMap({\n [`${prefix}--toc__navbar-caret-right-container`]: true,\n [`${ddsPrefix}-ce--toc__navbar-caret-container--hidden`]:\n isIntersectionRightTrackerInContent,\n });\n\n return html`\n ${this.layout === 'horizontal'\n ? html`\n <ul class=\"${prefix}--toc__print-styles\">\n ${targets.map((item) => {\n const name = item.getAttribute('name');\n const title = (\n item.dataset.title ??\n item.textContent ??\n ''\n ).trim();\n const selected = item === currentTarget;\n const itemClasses = classMap({\n [`${prefix}--tableofcontents__desktop__item`]: true,\n [`${prefix}--tableofcontents__desktop__item--active`]:\n selected,\n });\n return html`\n <li\n class=\"${itemClasses}\"\n @click=\"${handleClickItem}\"\n @keydown=\"${handleOnKeyDown}\"\n >\n <a\n aria-current=\"${ifDefined(\n !selected ? undefined : 'location'\n )}\"\n data-target=\"${name!}\"\n href=\"#${name}\"\n >\n ${title}\n </a>\n </li>\n `;\n })}\n </ul>\n `\n : ``}\n <div class=\"${containerClasses}\">\n <div\n part=\"table\"\n class=\"${navigationClasses}\"\n style=\"top: ${this.layout === TOC_TYPES.HORIZONTAL && stickyOffset\n ? `${stickyOffset}px`\n : 0}\"\n >\n ${hasMobileContainerVisible\n ? nothing\n : html`\n <div\n ?hidden=\"${!hasHeading}\"\n class=\"${prefix}--tableofcontents__desktop__children\"\n >\n <slot\n name=\"heading\"\n @slotchange=\"${handleSlotChangeHeading}\"\n ></slot>\n <slot name=\"menu-rule\"></slot>\n </div>\n `}\n <div class=\"${prefix}--tableofcontents__mobile-top\"></div>\n ${this.layout === 'horizontal'\n ? html`\n ${pageIsRTL\n ? html`\n <div class=\"${caretRightContainerClasses}\">\n <div\n class=\"${prefix}--toc__navbar-caret-right-gradient\"\n ></div>\n <button\n part=\"next-button\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n class=\"${prefix}--toc__navbar-caret-right\"\n @click=\"${paginateRight}\"\n >\n ${CaretLeft20()}\n </button>\n </div>\n `\n : html`\n <div class=\"${caretLeftContainerClasses}\">\n <button\n part=\"prev-button\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n class=\"${prefix}--toc__navbar-caret-left\"\n @click=\"${paginateLeft}\"\n >\n ${CaretLeft20()}\n </button>\n <div\n class=\"${prefix}--toc__navbar-caret-left-gradient\"\n ></div>\n </div>\n `}\n `\n : ``}\n <div\n class=\"${ddsPrefix}-ce--table-of-contents__items-container\"\n style=\"position: sticky; top: ${stickyOffset &&\n this.layout !== TOC_TYPES.HORIZONTAL\n ? `${stickyOffset}px`\n : 0}\"\n >\n <div class=\"${prefix}--tableofcontents__desktop-container\">\n <div\n class=\"${prefix}--tableofcontents__desktop\"\n style=\"${pageIsRTL\n ? 'right'\n : 'left'}: -${currentScrollPosition}px\"\n >\n ${pageIsRTL\n ? html` <div class=\"${prefix}--sub-content-right\"></div> `\n : html` <div class=\"${prefix}--sub-content-left\"></div> `}\n <ul>\n ${targets.map((item) => {\n const name = item.getAttribute('name');\n const title = (\n item.dataset.title ??\n item.textContent ??\n ''\n ).trim();\n const selected = item === currentTarget;\n const itemClasses = classMap({\n [`${prefix}--tableofcontents__desktop__item`]: true,\n [`${prefix}--tableofcontents__desktop__item--active`]:\n selected,\n });\n return html`\n <li\n class=\"${itemClasses}\"\n @click=\"${handleClickItem}\"\n @keydown=\"${handleOnKeyDown}\"\n >\n <a\n aria-current=\"${ifDefined(\n !selected ? undefined : 'location'\n )}\"\n data-target=\"${name!}\"\n href=\"#${name}\"\n >\n ${title}\n </a>\n </li>\n `;\n })}\n </ul>\n ${pageIsRTL\n ? html` <div class=\"${prefix}--sub-content-left\"></div> `\n : html` <div class=\"${prefix}--sub-content-right\"></div> `}\n </div>\n </div>\n <div class=\"${prefix}--tableofcontents__mobile\">\n <div class=\"${prefix}--tableofcontents__mobile__select__wrapper\">\n <select\n aria-label=\"${this.ariaLabelFormatter}\"\n class=\"${prefix}--tableofcontents__mobile__select\"\n @change=\"${handleChangeSelect}\"\n >\n ${targets.map((item) => {\n const name = item.getAttribute('name');\n const title = (\n item.dataset.title ??\n item.textContent ??\n ''\n ).trim();\n return html`\n <option\n class=\"${prefix}--tableofcontents__mobile__select__option\"\n value=\"${name!}\"\n >\n ${title}\n </option>\n `;\n })}\n </select>\n ${TableOfContents20({\n class: `${prefix}--tableofcontents__mobile__select__icon`,\n })}\n </div>\n </div>\n </div>\n ${this.layout === 'horizontal'\n ? html`\n ${pageIsRTL\n ? html`\n <div class=\"${caretLeftContainerClasses}\">\n <button\n part=\"prev-button\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n class=\"${prefix}--toc__navbar-caret-left\"\n @click=\"${paginateLeft}\"\n >\n ${CaretRight20()}\n </button>\n <div\n class=\"${prefix}--toc__navbar-caret-left-gradient\"\n ></div>\n </div>\n `\n : html`\n <div class=\"${caretRightContainerClasses}\">\n <div\n class=\"${prefix}--toc__navbar-caret-right-gradient\"\n ></div>\n <button\n part=\"next-button\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n class=\"${prefix}--toc__navbar-caret-right\"\n @click=\"${paginateRight}\"\n >\n ${CaretRight20()}\n </button>\n </div>\n `}\n `\n : ``}\n </div>\n <div class=\"${prefix}--tableofcontents__content\">\n <div class=\"${prefix}--tableofcontents__content-wrapper\">\n ${!hasMobileContainerVisible\n ? undefined\n : html`\n <div\n ?hidden=\"${!hasHeading}\"\n class=\"${prefix}--tableofcontents__children__mobile\"\n >\n <slot\n name=\"heading\"\n @slotchange=\"${handleSlotChangeHeading}\"\n ></slot>\n </div>\n `}\n <slot @slotchange=\"${handleSlotChange}\"></slot>\n </div>\n </div>\n </div>\n `;\n }\n\n /**\n * The selector that selects the desktop link items.\n */\n static get selectorDesktopItem() {\n return `.${prefix}--tableofcontents__desktop__item a`;\n }\n\n /**\n * The selector that determines where to harvest the table of contents from.\n */\n static selectorTarget = '[name]';\n\n static get stableSelector() {\n return `${ddsPrefix}--table-of-contents`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSTableOfContents;\n"]}
@@ -32,13 +32,13 @@ import { nothing } from 'lit-html';
32
32
  import { classMap } from 'lit-html/directives/class-map.js';
33
33
  import { ifDefined } from 'lit-html/directives/if-defined.js';
34
34
  import { html, property, state, query, queryAll, customElement, LitElement } from 'lit-element';
35
- import CaretLeft20 from '@carbon/carbon-web-components/es/icons/caret--left/20.js';
36
- import CaretRight20 from '@carbon/carbon-web-components/es/icons/caret--right/20.js';
35
+ import CaretLeft20 from '@carbon/web-components/es/icons/caret--left/20.js';
36
+ import CaretRight20 from '@carbon/web-components/es/icons/caret--right/20.js';
37
37
  import settings from 'carbon-components/es/globals/js/settings.js';
38
38
  import { baseFontSize, breakpoints } from '@carbon/layout';
39
- import HostListener from '@carbon/carbon-web-components/es/globals/decorators/host-listener.js';
40
- import HostListenerMixin from '@carbon/carbon-web-components/es/globals/mixins/host-listener.js';
41
- import TableOfContents20 from '@carbon/carbon-web-components/es/icons/table-of-contents/20.js';
39
+ import HostListener from '@carbon/web-components/es/globals/decorators/host-listener.js';
40
+ import HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';
41
+ import TableOfContents20 from '@carbon/web-components/es/icons/table-of-contents/20.js';
42
42
  import throttle from 'lodash-es/throttle.js';
43
43
  import StickyHeader from "../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js";
44
44
  import ddsSettings from "../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js";