@carbon/web-components 2.40.1 → 2.41.0

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 (390) hide show
  1. package/custom-elements.json +130 -0
  2. package/dist/ai-label.min.js +8 -8
  3. package/dist/breadcrumb.min.js +4 -4
  4. package/dist/button-CmUJmoio.js +93 -0
  5. package/dist/{button-skeleton-DKiPqzwa.js → button-skeleton-Ba4xDn6y.js} +1 -1
  6. package/dist/button.min.js +1 -1
  7. package/dist/chat-button.min.js +3 -3
  8. package/dist/code-snippet.min.js +29 -29
  9. package/dist/combo-button.min.js +7 -7
  10. package/dist/content-switcher-item-Cz7OvIj8.js +54 -0
  11. package/dist/content-switcher.min.js +1 -1
  12. package/dist/copy-button.min.js +8 -8
  13. package/dist/data-table.min.js +41 -41
  14. package/dist/feature-flags.min.js +1 -1
  15. package/dist/file-uploader.min.js +29 -29
  16. package/dist/floating-controller-CxZPAslz.js +28 -0
  17. package/dist/icon-button.min.js +7 -7
  18. package/dist/icon-indicator.min.js +1 -1
  19. package/dist/menu-button.min.js +5 -5
  20. package/dist/modal.min.js +6 -6
  21. package/dist/notification.min.js +36 -38
  22. package/dist/overflow-menu.min.js +6 -6
  23. package/dist/pagination.min.js +25 -25
  24. package/dist/password-input.min.js +7 -7
  25. package/dist/popover.min.js +9 -9
  26. package/dist/progress-indicator.min.js +12 -12
  27. package/dist/radio-button.min.js +3 -3
  28. package/dist/side-panel.min.js +6 -6
  29. package/dist/skip-to-content.min.js +4 -4
  30. package/dist/slug.min.js +8 -8
  31. package/dist/tabs.min.js +24 -24
  32. package/dist/tag.min.js +49 -49
  33. package/dist/tearsheet.min.js +1 -1
  34. package/dist/tile.min.js +1 -1
  35. package/dist/toggle-tip.min.js +14 -14
  36. package/dist/tooltip-content-Tyg0Hg0i.js +30 -0
  37. package/dist/tooltip.min.js +1 -1
  38. package/dist/tree-view.min.js +5 -2
  39. package/dist/ui-shell.min.js +53 -53
  40. package/es/components/accordion/accordion-item.d.ts +27 -11
  41. package/es/components/ai-label/ai-label.scss.js +1 -1
  42. package/es/components/breadcrumb/breadcrumb.scss.js +1 -1
  43. package/es/components/button/button.d.ts +56 -22
  44. package/es/components/button/button.scss.js +1 -1
  45. package/es/components/chat-button/chat-button.scss.js +1 -1
  46. package/es/components/checkbox/checkbox-group.d.ts +2 -0
  47. package/es/components/checkbox/checkbox.d.ts +56 -22
  48. package/es/components/code-snippet/code-snippet.d.ts +29 -11
  49. package/es/components/code-snippet/code-snippet.scss.js +1 -1
  50. package/es/components/combo-button/combo-button.d.ts +27 -11
  51. package/es/components/combo-button/combo-button.scss.js +1 -1
  52. package/es/components/content-switcher/content-switcher-item.d.ts +29 -11
  53. package/es/components/content-switcher/content-switcher.scss.js +1 -1
  54. package/es/components/copy-button/copy-button.d.ts +27 -11
  55. package/es/components/copy-button/copy-button.scss.js +1 -1
  56. package/es/components/data-table/data-table.scss.js +1 -1
  57. package/es/components/data-table/table-expanded-row.d.ts +27 -11
  58. package/es/components/data-table/table-header-cell.d.ts +29 -11
  59. package/es/components/data-table/table-row.d.ts +54 -22
  60. package/es/components/data-table/table-toolbar-search.d.ts +29 -11
  61. package/es/components/data-table/table.d.ts +27 -11
  62. package/es/components/data-table/table.js +12 -4
  63. package/es/components/data-table/table.js.map +1 -1
  64. package/es/components/date-picker/date-picker-input.d.ts +29 -11
  65. package/es/components/date-picker/date-picker.d.ts +54 -22
  66. package/es/components/dropdown/dropdown.d.ts +110 -44
  67. package/es/components/feature-flags/index.js +1 -0
  68. package/es/components/feature-flags/index.js.map +1 -1
  69. package/es/components/file-uploader/file-uploader-button.d.ts +27 -11
  70. package/es/components/file-uploader/file-uploader-drop-container.d.ts +27 -11
  71. package/es/components/file-uploader/file-uploader.scss.js +1 -1
  72. package/es/components/floating-menu/floating-menu.d.ts +56 -22
  73. package/es/components/icon-button/icon-button.scss.js +1 -1
  74. package/es/components/link/link.d.ts +29 -11
  75. package/es/components/menu/menu-item-selectable.d.ts +2 -0
  76. package/es/components/menu/menu-item.d.ts +54 -22
  77. package/es/components/menu/menu.d.ts +27 -11
  78. package/es/components/menu-button/menu-button.d.ts +27 -11
  79. package/es/components/menu-button/menu-button.scss.js +1 -1
  80. package/es/components/modal/modal-close-button.d.ts +29 -11
  81. package/es/components/modal/modal.d.ts +27 -11
  82. package/es/components/modal/modal.scss.js +1 -1
  83. package/es/components/notification/actionable-notification.d.ts +27 -11
  84. package/es/components/notification/actionable-notification.scss.js +1 -1
  85. package/es/components/notification/inline-notification.d.ts +27 -11
  86. package/es/components/notification/inline-notification.scss.js +1 -1
  87. package/es/components/notification/toast-notification.d.ts +1 -1
  88. package/es/components/notification/toast-notification.js +13 -15
  89. package/es/components/notification/toast-notification.js.map +1 -1
  90. package/es/components/notification/toast-notification.scss.js +1 -1
  91. package/es/components/number-input/number-input.d.ts +2 -0
  92. package/es/components/overflow-menu/overflow-menu-item.d.ts +29 -11
  93. package/es/components/overflow-menu/overflow-menu.d.ts +54 -22
  94. package/es/components/overflow-menu/overflow-menu.scss.js +1 -1
  95. package/es/components/pagination/pagination.d.ts +56 -22
  96. package/es/components/pagination/pagination.js +12 -7
  97. package/es/components/pagination/pagination.js.map +1 -1
  98. package/es/components/pagination/pagination.scss.js +1 -1
  99. package/es/components/password-input/password-input.d.ts +2 -0
  100. package/es/components/popover/defs.d.ts +13 -0
  101. package/es/components/popover/defs.js +15 -1
  102. package/es/components/popover/defs.js.map +1 -1
  103. package/es/components/popover/popover-content.d.ts +13 -0
  104. package/es/components/popover/popover-content.js +22 -0
  105. package/es/components/popover/popover-content.js.map +1 -1
  106. package/es/components/popover/popover.d.ts +37 -12
  107. package/es/components/popover/popover.js +31 -3
  108. package/es/components/popover/popover.js.map +1 -1
  109. package/es/components/popover/popover.scss.js +1 -1
  110. package/es/components/progress-indicator/progress-indicator.scss.js +1 -1
  111. package/es/components/progress-indicator/progress-step.d.ts +29 -11
  112. package/es/components/radio-button/radio-button-group.d.ts +54 -22
  113. package/es/components/radio-button/radio-button.d.ts +56 -22
  114. package/es/components/search/search.d.ts +83 -33
  115. package/es/components/select/select.d.ts +29 -11
  116. package/es/components/side-panel/side-panel.d.ts +27 -11
  117. package/es/components/skip-to-content/skip-to-content.d.ts +29 -11
  118. package/es/components/skip-to-content/skip-to-content.scss.js +1 -1
  119. package/es/components/slider/slider-input.d.ts +29 -11
  120. package/es/components/slider/slider.d.ts +83 -33
  121. package/es/components/slug/slug.scss.js +1 -1
  122. package/es/components/structured-list/structured-list-row.d.ts +27 -11
  123. package/es/components/structured-list/structured-list.d.ts +29 -11
  124. package/es/components/tabs/tabs.d.ts +27 -11
  125. package/es/components/tabs/tabs.scss.js +1 -1
  126. package/es/components/tag/dismissible-tag.d.ts +54 -22
  127. package/es/components/tag/operational-tag.d.ts +54 -22
  128. package/es/components/tag/selectable-tag.d.ts +54 -22
  129. package/es/components/tag/tag.d.ts +54 -22
  130. package/es/components/tag/tag.scss.js +1 -1
  131. package/es/components/tearsheet/tearsheet.d.ts +27 -11
  132. package/es/components/text-input/text-input.d.ts +56 -22
  133. package/es/components/textarea/textarea.d.ts +2 -0
  134. package/es/components/tile/expandable-tile.d.ts +54 -22
  135. package/es/components/tile/selectable-tile.d.ts +56 -22
  136. package/es/components/tile/tile-group.d.ts +27 -11
  137. package/es/components/tile/tile.scss.js +1 -1
  138. package/es/components/time-picker/time-picker-select.d.ts +29 -11
  139. package/es/components/time-picker/time-picker.d.ts +56 -22
  140. package/es/components/toggle/toggle.d.ts +27 -11
  141. package/es/components/toggle-tip/toggletip.d.ts +56 -22
  142. package/es/components/toggle-tip/toggletip.scss.js +1 -1
  143. package/es/components/tooltip/tooltip.d.ts +27 -11
  144. package/es/components/tooltip/tooltip.js +3 -0
  145. package/es/components/tooltip/tooltip.js.map +1 -1
  146. package/es/components/tooltip/tooltip.scss.js +1 -1
  147. package/es/components/tree-view/tree-node.js +4 -4
  148. package/es/components/tree-view/tree-node.js.map +1 -1
  149. package/es/components/tree-view/tree-view.d.ts +27 -11
  150. package/es/components/ui-shell/header-global-action.d.ts +2 -0
  151. package/es/components/ui-shell/header-menu-button.d.ts +29 -11
  152. package/es/components/ui-shell/header-menu.d.ts +56 -22
  153. package/es/components/ui-shell/header-name.d.ts +29 -11
  154. package/es/components/ui-shell/header-nav-item.d.ts +29 -11
  155. package/es/components/ui-shell/header-panel.d.ts +2 -0
  156. package/es/components/ui-shell/header.scss.js +1 -1
  157. package/es/components/ui-shell/side-nav-link.d.ts +29 -11
  158. package/es/components/ui-shell/side-nav-menu-item.d.ts +29 -11
  159. package/es/components/ui-shell/side-nav-menu.d.ts +29 -11
  160. package/es/components/ui-shell/side-nav.d.ts +27 -11
  161. package/es/components/ui-shell/switcher-item.d.ts +29 -11
  162. package/es/components/ui-shell/switcher.d.ts +2 -0
  163. package/es/feature-flags/es/index.js +30 -2
  164. package/es/feature-flags/es/index.js.map +1 -1
  165. package/es/globals/mixins/focus.d.ts +27 -11
  166. package/es/globals/mixins/form.d.ts +27 -11
  167. package/es/globals/mixins/host-listener.d.ts +27 -11
  168. package/es/globals/mixins/validity.d.ts +27 -11
  169. package/es-custom/components/accordion/accordion-item.d.ts +27 -11
  170. package/es-custom/components/ai-label/ai-label.scss.js +1 -1
  171. package/es-custom/components/breadcrumb/breadcrumb.scss.js +1 -1
  172. package/es-custom/components/button/button.d.ts +56 -22
  173. package/es-custom/components/button/button.scss.js +1 -1
  174. package/es-custom/components/chat-button/chat-button.scss.js +1 -1
  175. package/es-custom/components/checkbox/checkbox-group.d.ts +2 -0
  176. package/es-custom/components/checkbox/checkbox.d.ts +56 -22
  177. package/es-custom/components/code-snippet/code-snippet.d.ts +29 -11
  178. package/es-custom/components/code-snippet/code-snippet.scss.js +1 -1
  179. package/es-custom/components/combo-button/combo-button.d.ts +27 -11
  180. package/es-custom/components/combo-button/combo-button.scss.js +1 -1
  181. package/es-custom/components/content-switcher/content-switcher-item.d.ts +29 -11
  182. package/es-custom/components/content-switcher/content-switcher.scss.js +1 -1
  183. package/es-custom/components/copy-button/copy-button.d.ts +27 -11
  184. package/es-custom/components/copy-button/copy-button.scss.js +1 -1
  185. package/es-custom/components/data-table/data-table.scss.js +1 -1
  186. package/es-custom/components/data-table/table-expanded-row.d.ts +27 -11
  187. package/es-custom/components/data-table/table-header-cell.d.ts +29 -11
  188. package/es-custom/components/data-table/table-row.d.ts +54 -22
  189. package/es-custom/components/data-table/table-toolbar-search.d.ts +29 -11
  190. package/es-custom/components/data-table/table.d.ts +27 -11
  191. package/es-custom/components/data-table/table.js +12 -4
  192. package/es-custom/components/data-table/table.js.map +1 -1
  193. package/es-custom/components/date-picker/date-picker-input.d.ts +29 -11
  194. package/es-custom/components/date-picker/date-picker.d.ts +54 -22
  195. package/es-custom/components/dropdown/dropdown.d.ts +110 -44
  196. package/es-custom/components/feature-flags/index.js +1 -0
  197. package/es-custom/components/feature-flags/index.js.map +1 -1
  198. package/es-custom/components/file-uploader/file-uploader-button.d.ts +27 -11
  199. package/es-custom/components/file-uploader/file-uploader-drop-container.d.ts +27 -11
  200. package/es-custom/components/file-uploader/file-uploader.scss.js +1 -1
  201. package/es-custom/components/floating-menu/floating-menu.d.ts +56 -22
  202. package/es-custom/components/icon-button/icon-button.scss.js +1 -1
  203. package/es-custom/components/link/link.d.ts +29 -11
  204. package/es-custom/components/menu/menu-item-selectable.d.ts +2 -0
  205. package/es-custom/components/menu/menu-item.d.ts +54 -22
  206. package/es-custom/components/menu/menu.d.ts +27 -11
  207. package/es-custom/components/menu-button/menu-button.d.ts +27 -11
  208. package/es-custom/components/menu-button/menu-button.scss.js +1 -1
  209. package/es-custom/components/modal/modal-close-button.d.ts +29 -11
  210. package/es-custom/components/modal/modal.d.ts +27 -11
  211. package/es-custom/components/modal/modal.scss.js +1 -1
  212. package/es-custom/components/notification/actionable-notification.d.ts +27 -11
  213. package/es-custom/components/notification/actionable-notification.scss.js +1 -1
  214. package/es-custom/components/notification/inline-notification.d.ts +27 -11
  215. package/es-custom/components/notification/inline-notification.scss.js +1 -1
  216. package/es-custom/components/notification/toast-notification.d.ts +1 -1
  217. package/es-custom/components/notification/toast-notification.js +13 -15
  218. package/es-custom/components/notification/toast-notification.js.map +1 -1
  219. package/es-custom/components/notification/toast-notification.scss.js +1 -1
  220. package/es-custom/components/number-input/number-input.d.ts +2 -0
  221. package/es-custom/components/overflow-menu/overflow-menu-item.d.ts +29 -11
  222. package/es-custom/components/overflow-menu/overflow-menu.d.ts +54 -22
  223. package/es-custom/components/overflow-menu/overflow-menu.scss.js +1 -1
  224. package/es-custom/components/pagination/pagination.d.ts +56 -22
  225. package/es-custom/components/pagination/pagination.js +12 -7
  226. package/es-custom/components/pagination/pagination.js.map +1 -1
  227. package/es-custom/components/pagination/pagination.scss.js +1 -1
  228. package/es-custom/components/password-input/password-input.d.ts +2 -0
  229. package/es-custom/components/popover/defs.d.ts +13 -0
  230. package/es-custom/components/popover/defs.js +15 -1
  231. package/es-custom/components/popover/defs.js.map +1 -1
  232. package/es-custom/components/popover/popover-content.d.ts +13 -0
  233. package/es-custom/components/popover/popover-content.js +22 -0
  234. package/es-custom/components/popover/popover-content.js.map +1 -1
  235. package/es-custom/components/popover/popover.d.ts +37 -12
  236. package/es-custom/components/popover/popover.js +31 -3
  237. package/es-custom/components/popover/popover.js.map +1 -1
  238. package/es-custom/components/popover/popover.scss.js +1 -1
  239. package/es-custom/components/progress-indicator/progress-indicator.scss.js +1 -1
  240. package/es-custom/components/progress-indicator/progress-step.d.ts +29 -11
  241. package/es-custom/components/radio-button/radio-button-group.d.ts +54 -22
  242. package/es-custom/components/radio-button/radio-button.d.ts +56 -22
  243. package/es-custom/components/search/search.d.ts +83 -33
  244. package/es-custom/components/select/select.d.ts +29 -11
  245. package/es-custom/components/side-panel/side-panel.d.ts +27 -11
  246. package/es-custom/components/skip-to-content/skip-to-content.d.ts +29 -11
  247. package/es-custom/components/skip-to-content/skip-to-content.scss.js +1 -1
  248. package/es-custom/components/slider/slider-input.d.ts +29 -11
  249. package/es-custom/components/slider/slider.d.ts +83 -33
  250. package/es-custom/components/slug/slug.scss.js +1 -1
  251. package/es-custom/components/structured-list/structured-list-row.d.ts +27 -11
  252. package/es-custom/components/structured-list/structured-list.d.ts +29 -11
  253. package/es-custom/components/tabs/tabs.d.ts +27 -11
  254. package/es-custom/components/tabs/tabs.scss.js +1 -1
  255. package/es-custom/components/tag/dismissible-tag.d.ts +54 -22
  256. package/es-custom/components/tag/operational-tag.d.ts +54 -22
  257. package/es-custom/components/tag/selectable-tag.d.ts +54 -22
  258. package/es-custom/components/tag/tag.d.ts +54 -22
  259. package/es-custom/components/tag/tag.scss.js +1 -1
  260. package/es-custom/components/tearsheet/tearsheet.d.ts +27 -11
  261. package/es-custom/components/text-input/text-input.d.ts +56 -22
  262. package/es-custom/components/textarea/textarea.d.ts +2 -0
  263. package/es-custom/components/tile/expandable-tile.d.ts +54 -22
  264. package/es-custom/components/tile/selectable-tile.d.ts +56 -22
  265. package/es-custom/components/tile/tile-group.d.ts +27 -11
  266. package/es-custom/components/tile/tile.scss.js +1 -1
  267. package/es-custom/components/time-picker/time-picker-select.d.ts +29 -11
  268. package/es-custom/components/time-picker/time-picker.d.ts +56 -22
  269. package/es-custom/components/toggle/toggle.d.ts +27 -11
  270. package/es-custom/components/toggle-tip/toggletip.d.ts +56 -22
  271. package/es-custom/components/toggle-tip/toggletip.scss.js +1 -1
  272. package/es-custom/components/tooltip/tooltip.d.ts +27 -11
  273. package/es-custom/components/tooltip/tooltip.js +3 -0
  274. package/es-custom/components/tooltip/tooltip.js.map +1 -1
  275. package/es-custom/components/tooltip/tooltip.scss.js +1 -1
  276. package/es-custom/components/tree-view/tree-node.js +4 -4
  277. package/es-custom/components/tree-view/tree-node.js.map +1 -1
  278. package/es-custom/components/tree-view/tree-view.d.ts +27 -11
  279. package/es-custom/components/ui-shell/header-global-action.d.ts +2 -0
  280. package/es-custom/components/ui-shell/header-menu-button.d.ts +29 -11
  281. package/es-custom/components/ui-shell/header-menu.d.ts +56 -22
  282. package/es-custom/components/ui-shell/header-name.d.ts +29 -11
  283. package/es-custom/components/ui-shell/header-nav-item.d.ts +29 -11
  284. package/es-custom/components/ui-shell/header-panel.d.ts +2 -0
  285. package/es-custom/components/ui-shell/header.scss.js +1 -1
  286. package/es-custom/components/ui-shell/side-nav-link.d.ts +29 -11
  287. package/es-custom/components/ui-shell/side-nav-menu-item.d.ts +29 -11
  288. package/es-custom/components/ui-shell/side-nav-menu.d.ts +29 -11
  289. package/es-custom/components/ui-shell/side-nav.d.ts +27 -11
  290. package/es-custom/components/ui-shell/switcher-item.d.ts +29 -11
  291. package/es-custom/components/ui-shell/switcher.d.ts +2 -0
  292. package/es-custom/feature-flags/es/index.js +30 -2
  293. package/es-custom/feature-flags/es/index.js.map +1 -1
  294. package/es-custom/globals/mixins/focus.d.ts +27 -11
  295. package/es-custom/globals/mixins/form.d.ts +27 -11
  296. package/es-custom/globals/mixins/host-listener.d.ts +27 -11
  297. package/es-custom/globals/mixins/validity.d.ts +27 -11
  298. package/lib/components/accordion/accordion-item.d.ts +27 -11
  299. package/lib/components/button/button.d.ts +56 -22
  300. package/lib/components/checkbox/checkbox-group.d.ts +2 -0
  301. package/lib/components/checkbox/checkbox.d.ts +56 -22
  302. package/lib/components/code-snippet/code-snippet.d.ts +29 -11
  303. package/lib/components/combo-button/combo-button.d.ts +27 -11
  304. package/lib/components/content-switcher/content-switcher-item.d.ts +29 -11
  305. package/lib/components/copy-button/copy-button.d.ts +27 -11
  306. package/lib/components/data-table/table-expanded-row.d.ts +27 -11
  307. package/lib/components/data-table/table-header-cell.d.ts +29 -11
  308. package/lib/components/data-table/table-row.d.ts +54 -22
  309. package/lib/components/data-table/table-toolbar-search.d.ts +29 -11
  310. package/lib/components/data-table/table.d.ts +27 -11
  311. package/lib/components/date-picker/date-picker-input.d.ts +29 -11
  312. package/lib/components/date-picker/date-picker.d.ts +54 -22
  313. package/lib/components/dropdown/dropdown.d.ts +110 -44
  314. package/lib/components/file-uploader/file-uploader-button.d.ts +27 -11
  315. package/lib/components/file-uploader/file-uploader-drop-container.d.ts +27 -11
  316. package/lib/components/floating-menu/floating-menu.d.ts +56 -22
  317. package/lib/components/link/link.d.ts +29 -11
  318. package/lib/components/menu/menu-item-selectable.d.ts +2 -0
  319. package/lib/components/menu/menu-item.d.ts +54 -22
  320. package/lib/components/menu/menu.d.ts +27 -11
  321. package/lib/components/menu-button/menu-button.d.ts +27 -11
  322. package/lib/components/modal/modal-close-button.d.ts +29 -11
  323. package/lib/components/modal/modal.d.ts +27 -11
  324. package/lib/components/notification/actionable-notification.d.ts +27 -11
  325. package/lib/components/notification/inline-notification.d.ts +27 -11
  326. package/lib/components/notification/toast-notification.d.ts +1 -1
  327. package/lib/components/number-input/number-input.d.ts +2 -0
  328. package/lib/components/overflow-menu/overflow-menu-item.d.ts +29 -11
  329. package/lib/components/overflow-menu/overflow-menu.d.ts +54 -22
  330. package/lib/components/pagination/pagination.d.ts +56 -22
  331. package/lib/components/password-input/password-input.d.ts +2 -0
  332. package/lib/components/popover/defs.d.ts +13 -0
  333. package/lib/components/popover/defs.js +14 -0
  334. package/lib/components/popover/defs.js.map +1 -1
  335. package/lib/components/popover/popover-content.d.ts +13 -0
  336. package/lib/components/popover/popover.d.ts +37 -12
  337. package/lib/components/progress-indicator/progress-step.d.ts +29 -11
  338. package/lib/components/radio-button/radio-button-group.d.ts +54 -22
  339. package/lib/components/radio-button/radio-button.d.ts +56 -22
  340. package/lib/components/search/search.d.ts +83 -33
  341. package/lib/components/select/select.d.ts +29 -11
  342. package/lib/components/side-panel/side-panel.d.ts +27 -11
  343. package/lib/components/skip-to-content/skip-to-content.d.ts +29 -11
  344. package/lib/components/slider/slider-input.d.ts +29 -11
  345. package/lib/components/slider/slider.d.ts +83 -33
  346. package/lib/components/structured-list/structured-list-row.d.ts +27 -11
  347. package/lib/components/structured-list/structured-list.d.ts +29 -11
  348. package/lib/components/tabs/tabs.d.ts +27 -11
  349. package/lib/components/tag/dismissible-tag.d.ts +54 -22
  350. package/lib/components/tag/operational-tag.d.ts +54 -22
  351. package/lib/components/tag/selectable-tag.d.ts +54 -22
  352. package/lib/components/tag/tag.d.ts +54 -22
  353. package/lib/components/tearsheet/tearsheet.d.ts +27 -11
  354. package/lib/components/text-input/text-input.d.ts +56 -22
  355. package/lib/components/textarea/textarea.d.ts +2 -0
  356. package/lib/components/tile/expandable-tile.d.ts +54 -22
  357. package/lib/components/tile/selectable-tile.d.ts +56 -22
  358. package/lib/components/tile/tile-group.d.ts +27 -11
  359. package/lib/components/time-picker/time-picker-select.d.ts +29 -11
  360. package/lib/components/time-picker/time-picker.d.ts +56 -22
  361. package/lib/components/toggle/toggle.d.ts +27 -11
  362. package/lib/components/toggle-tip/toggletip.d.ts +56 -22
  363. package/lib/components/tooltip/tooltip.d.ts +27 -11
  364. package/lib/components/tree-view/tree-view.d.ts +27 -11
  365. package/lib/components/ui-shell/header-global-action.d.ts +2 -0
  366. package/lib/components/ui-shell/header-menu-button.d.ts +29 -11
  367. package/lib/components/ui-shell/header-menu.d.ts +56 -22
  368. package/lib/components/ui-shell/header-name.d.ts +29 -11
  369. package/lib/components/ui-shell/header-nav-item.d.ts +29 -11
  370. package/lib/components/ui-shell/header-panel.d.ts +2 -0
  371. package/lib/components/ui-shell/side-nav-link.d.ts +29 -11
  372. package/lib/components/ui-shell/side-nav-menu-item.d.ts +29 -11
  373. package/lib/components/ui-shell/side-nav-menu.d.ts +29 -11
  374. package/lib/components/ui-shell/side-nav.d.ts +27 -11
  375. package/lib/components/ui-shell/switcher-item.d.ts +29 -11
  376. package/lib/components/ui-shell/switcher.d.ts +2 -0
  377. package/lib/globals/mixins/focus.d.ts +27 -11
  378. package/lib/globals/mixins/form.d.ts +27 -11
  379. package/lib/globals/mixins/host-listener.d.ts +27 -11
  380. package/lib/globals/mixins/validity.d.ts +27 -11
  381. package/package.json +5 -5
  382. package/scss/components/modal/modal.scss +6 -0
  383. package/scss/components/popover/popover.scss +210 -9
  384. package/scss/components/tile/tile.scss +7 -7
  385. package/telemetry.yml +5 -1
  386. package/dist/button-Co3aPX0Y.js +0 -93
  387. package/dist/content-switcher-item-BDJMJLCb.js +0 -54
  388. package/dist/defs-CBJRLDfw.js +0 -28
  389. package/dist/floating-controller-CnuSelc_.js +0 -28
  390. package/dist/tooltip-content-BZBP-szv.js +0 -30
@@ -14,6 +14,7 @@ declare const CDSTooltip_base: {
14
14
  accessKey: string;
15
15
  readonly accessKeyLabel: string;
16
16
  autocapitalize: string;
17
+ autocorrect: boolean;
17
18
  dir: string;
18
19
  draggable: boolean;
19
20
  hidden: boolean;
@@ -35,13 +36,14 @@ declare const CDSTooltip_base: {
35
36
  click(): void;
36
37
  hidePopover(): void;
37
38
  showPopover(): void;
38
- togglePopover(force?: boolean): boolean;
39
+ togglePopover(options?: boolean): boolean;
39
40
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
40
41
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
41
42
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
42
43
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
43
44
  readonly attributes: NamedNodeMap;
44
- readonly classList: DOMTokenList;
45
+ get classList(): DOMTokenList;
46
+ set classList(value: string);
45
47
  className: string;
46
48
  readonly clientHeight: number;
47
49
  readonly clientLeft: number;
@@ -56,7 +58,8 @@ declare const CDSTooltip_base: {
56
58
  onfullscreenerror: ((this: Element, ev: Event) => any) | null;
57
59
  outerHTML: string;
58
60
  readonly ownerDocument: Document;
59
- readonly part: DOMTokenList;
61
+ get part(): DOMTokenList;
62
+ set part(value: string);
60
63
  readonly prefix: string | null;
61
64
  readonly scrollHeight: number;
62
65
  scrollLeft: number;
@@ -119,6 +122,8 @@ declare const CDSTooltip_base: {
119
122
  setPointerCapture(pointerId: number): void;
120
123
  toggleAttribute(qualifiedName: string, force?: boolean): boolean;
121
124
  webkitMatchesSelector(selectors: string): boolean;
125
+ get textContent(): string;
126
+ set textContent(value: string | null);
122
127
  readonly baseURI: string;
123
128
  readonly childNodes: NodeListOf<ChildNode>;
124
129
  readonly firstChild: ChildNode | null;
@@ -131,9 +136,8 @@ declare const CDSTooltip_base: {
131
136
  readonly parentElement: HTMLElement | null;
132
137
  readonly parentNode: ParentNode | null;
133
138
  readonly previousSibling: ChildNode | null;
134
- textContent: string | null;
135
139
  appendChild<T extends Node>(node: T): T;
136
- cloneNode(deep?: boolean): Node;
140
+ cloneNode(subtree?: boolean): Node;
137
141
  compareDocumentPosition(other: Node): number;
138
142
  contains(other: Node | null): boolean;
139
143
  getRootNode(options?: GetRootNodeOptions): Node;
@@ -166,6 +170,7 @@ declare const CDSTooltip_base: {
166
170
  readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
167
171
  readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
168
172
  dispatchEvent(event: Event): boolean;
173
+ ariaActiveDescendantElement: Element | null;
169
174
  ariaAtomic: string | null;
170
175
  ariaAutoComplete: string | null;
171
176
  ariaBrailleLabel: string | null;
@@ -176,25 +181,33 @@ declare const CDSTooltip_base: {
176
181
  ariaColIndex: string | null;
177
182
  ariaColIndexText: string | null;
178
183
  ariaColSpan: string | null;
184
+ ariaControlsElements: ReadonlyArray<Element> | null;
179
185
  ariaCurrent: string | null;
186
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
180
187
  ariaDescription: string | null;
188
+ ariaDetailsElements: ReadonlyArray<Element> | null;
181
189
  ariaDisabled: string | null;
190
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
182
191
  ariaExpanded: string | null;
192
+ ariaFlowToElements: ReadonlyArray<Element> | null;
183
193
  ariaHasPopup: string | null;
184
194
  ariaHidden: string | null;
185
195
  ariaInvalid: string | null;
186
196
  ariaKeyShortcuts: string | null;
187
197
  ariaLabel: string | null;
198
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
188
199
  ariaLevel: string | null;
189
200
  ariaLive: string | null;
190
201
  ariaModal: string | null;
191
202
  ariaMultiLine: string | null;
192
203
  ariaMultiSelectable: string | null;
193
204
  ariaOrientation: string | null;
205
+ ariaOwnsElements: ReadonlyArray<Element> | null;
194
206
  ariaPlaceholder: string | null;
195
207
  ariaPosInSet: string | null;
196
208
  ariaPressed: string | null;
197
209
  ariaReadOnly: string | null;
210
+ ariaRelevant: string | null;
198
211
  ariaRequired: string | null;
199
212
  ariaRoleDescription: string | null;
200
213
  ariaRowCount: string | null;
@@ -236,7 +249,8 @@ declare const CDSTooltip_base: {
236
249
  replaceChildren(...nodes: (Node | string)[]): void;
237
250
  readonly assignedSlot: HTMLSlotElement | null;
238
251
  readonly attributeStyleMap: StylePropertyMap;
239
- readonly style: CSSStyleDeclaration;
252
+ get style(): CSSStyleDeclaration;
253
+ set style(cssText: string);
240
254
  contentEditable: string;
241
255
  enterKeyHint: string;
242
256
  inputMode: string;
@@ -246,18 +260,19 @@ declare const CDSTooltip_base: {
246
260
  onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
247
261
  onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
248
262
  onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
249
- onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
263
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
250
264
  onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
251
- onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
265
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
266
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
252
267
  onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
253
268
  oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
254
269
  oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
255
270
  oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
256
271
  onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
257
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
272
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
258
273
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
259
274
  oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
260
- oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
275
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
261
276
  oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
262
277
  oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
263
278
  oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -305,6 +320,7 @@ declare const CDSTooltip_base: {
305
320
  onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
306
321
  onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
307
322
  onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
323
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
308
324
  onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
309
325
  onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
310
326
  onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -323,7 +339,7 @@ declare const CDSTooltip_base: {
323
339
  onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
324
340
  onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
325
341
  ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
326
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
342
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
327
343
  ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
328
344
  ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
329
345
  ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
@@ -197,6 +197,9 @@ let CDSTooltip = class CDSTooltip extends HostListenerMixin(CDSPopover) {
197
197
  toolTipContent[name] = value;
198
198
  }
199
199
  });
200
+ if (this.hasAttribute('highcontrast')) {
201
+ toolTipContent === null || toolTipContent === void 0 ? void 0 : toolTipContent.setAttribute('highcontrast', '');
202
+ }
200
203
  (_b = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`.${prefix}--popover-container`)) === null || _b === void 0 ? void 0 : _b.classList.add(`${prefix}--tooltip`);
201
204
  super.updated(changedProperties);
202
205
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.js","sources":["../../../src/components/tooltip/tooltip.ts"],"sourcesContent":["/**\n * Copyright IBM Corp. 2019, 2024\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 { css } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport HostListener from '../../globals/decorators/host-listener';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport CDSPopover from '../popover/popover';\nimport '../popover/popover-content';\nimport styles from './tooltip.scss?lit';\nimport CDSTooltipContent from './tooltip-content';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Trigger button of tooltip.\n *\n * @element cds-tooltip\n */\n@customElement(`${prefix}-tooltip`)\nclass CDSTooltip extends HostListenerMixin(CDSPopover) {\n /**\n * Specify how the trigger should align with the tooltip\n */\n @property({ reflect: true, type: String })\n align = 'top';\n\n /**\n * Specify whether a auto align functionality should be applied\n */\n @property({ type: Boolean, reflect: true })\n autoalign = false;\n\n /**\n * `true` if this tooltip is in a data table row\n */\n @property({ type: Boolean, reflect: true, attribute: 'data-table' })\n dataTable = false;\n\n /**\n * Specify whether the tooltip should be closed when clicked\n */\n @property({ reflect: true, type: Boolean })\n closeOnActivation = false;\n\n /**\n * Specify whether the tooltip should be open when it first renders\n */\n @property({ reflect: true, type: Boolean })\n defaultOpen = false;\n\n /**\n * Specify the duration in milliseconds to delay before displaying the tooltip\n */\n @property({ attribute: 'enter-delay-ms', type: Number })\n enterDelayMs = 100;\n\n /**\n * Specify the duration in milliseconds to delay before hiding the tooltip\n */\n @property({ attribute: 'leave-delay-ms', type: Number })\n leaveDelayMs = 300;\n\n /**\n * Only open tooltip on keyboard interactions, this is used for interactive tags\n * (ie. operational-tag, selectable-tag)\n */\n @property({ attribute: 'keyboard-only', type: Boolean })\n keyboardOnly = false;\n\n /**\n * Specify the size of the tooltip\n */\n @property({ reflect: true })\n size = false;\n\n /**\n * Specify the timeout reference for the tooltip\n */\n @property({ reflect: true })\n timeoutId = 0;\n\n /**\n * Specify whether the tooltip should be open when it first renders\n */\n @property({ reflect: true, attribute: 'toolbar-action', type: Boolean })\n toolbarAction = false;\n\n /**\n * Track if last interaction was a keyboard interaction\n */\n private lastInteractionWasKeyboard = false;\n\n /**\n * Handles opening of tooltip\n */\n private _showTooltip = async () => {\n window.clearTimeout(this.timeoutId);\n this.timeoutId = window.setTimeout(async () => {\n this.open = true;\n const { open, updateComplete } = this;\n if (open) {\n await updateComplete;\n const { selectorTooltipContent } = this\n .constructor as typeof CDSTooltip;\n (this.querySelector(selectorTooltipContent) as HTMLElement)?.focus();\n }\n }, this.enterDelayMs);\n };\n\n /**\n * Handles `mouseover` event on this element.\n */\n private _handleHover = (event) => {\n if (this.keyboardOnly) {\n if (event instanceof FocusEvent && this.lastInteractionWasKeyboard) {\n this._showTooltip();\n }\n } else {\n this._showTooltip();\n }\n };\n\n /**\n * Handles `mouseleave` event on this element.\n */\n private _handleHoverOut = async () => {\n window.clearTimeout(this.timeoutId);\n this.timeoutId = window.setTimeout(async () => {\n const { open } = this;\n if (open) {\n this.open = false;\n }\n }, this.leaveDelayMs);\n };\n\n /**\n * Handles `click` event on this element.\n */\n @HostListener('click')\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- https://github.com/carbon-design-system/carbon/issues/20452\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleClick = async () => {\n this.lastInteractionWasKeyboard = false;\n if (this.closeOnActivation) {\n this._handleHoverOut();\n }\n };\n\n /**\n * Handles `keydown` event on this element.\n */\n @HostListener('keydown')\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- https://github.com/carbon-design-system/carbon/issues/20452\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleKeydown = async (event) => {\n // needed for interactive tags for when the tag is focused from tabbing into it\n // tooltip is expected to open only from keyboard interaction\n if (event.key === 'Tab') {\n this.lastInteractionWasKeyboard = true;\n }\n if (event.key === ' ' || event.key === 'Enter' || event.key === 'Escape') {\n this.lastInteractionWasKeyboard = true;\n if (this.closeOnActivation) {\n this._handleHoverOut();\n }\n }\n };\n\n /**\n * Handles `slotchange` event.\n */\n protected _handleSlotChange({ target }: Event) {\n const component = (target as HTMLSlotElement).assignedNodes().filter(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim() // eslint-disable-line @typescript-eslint/no-non-null-assertion -- https://github.com/carbon-design-system/carbon/issues/20452\n );\n if (!component[0]) {\n return;\n }\n\n (component[0] as HTMLElement).addEventListener('focus', this._handleHover);\n (component[0] as HTMLElement).addEventListener(\n 'focusout',\n this._handleHoverOut\n );\n\n if (!this.keyboardOnly) {\n (component[0] as HTMLElement).addEventListener(\n 'mouseover',\n this._handleHover\n );\n (component[0] as HTMLElement).addEventListener(\n 'mouseleave',\n this._handleHoverOut\n );\n }\n this.requestUpdate();\n }\n\n connectedCallback() {\n if (!this.hasAttribute('highContrast')) {\n this.setAttribute('highContrast', '');\n }\n if (!this.shadowRoot) {\n this.attachShadow({ mode: 'open' });\n }\n window.addEventListener('keydown', this._handleKeydown, true);\n super.connectedCallback();\n }\n\n disconnectedCallback() {\n window.removeEventListener('keydown', this._handleKeydown, true);\n super.disconnectedCallback();\n }\n\n updated(changedProperties) {\n const { selectorTooltipContent } = this.constructor as typeof CDSTooltip;\n const toolTipContent = this.querySelector(selectorTooltipContent);\n\n if (changedProperties.has('defaultOpen')) {\n this.open = this.defaultOpen;\n }\n\n if (changedProperties.has('open')) {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions -- https://github.com/carbon-design-system/carbon/issues/20452\n this.open\n ? toolTipContent?.setAttribute('open', '')\n : toolTipContent?.removeAttribute('open');\n }\n\n ['align', 'caret', 'autoalign'].forEach((name) => {\n if (changedProperties.has(name)) {\n const { [name as keyof CDSTooltip]: value } = this;\n (toolTipContent as CDSTooltipContent)[name] = value;\n }\n });\n\n this.shadowRoot\n ?.querySelector(`.${prefix}--popover-container`)\n ?.classList.add(`${prefix}--tooltip`);\n\n super.updated(changedProperties);\n }\n\n /**\n * A selector that will return the CDSTooltipContent.\n */\n static get selectorTooltipContent() {\n return `${prefix}-tooltip-content`;\n }\n\n static get styles() {\n return css`\n ${super.styles}${styles}\n `;\n }\n}\n\nexport default CDSTooltip;\n"],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;AAKG;AAaH;;;;AAIG;AAEH,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,iBAAiB,CAAC,UAAU,CAAC,CAAA;AAAtD,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAK,CAAA,KAAA,GAAG,KAAK;AAEb;;AAEG;QAEH,IAAS,CAAA,SAAA,GAAG,KAAK;AAEjB;;AAEG;QAEH,IAAS,CAAA,SAAA,GAAG,KAAK;AAEjB;;AAEG;QAEH,IAAiB,CAAA,iBAAA,GAAG,KAAK;AAEzB;;AAEG;QAEH,IAAW,CAAA,WAAA,GAAG,KAAK;AAEnB;;A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E,OAAO,EAAE,IAAI,EAAE;AACd,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAMb,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE;AACb,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,WAAA,EAAA,MAAA,CAAA;AAMd,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,EAAE;AACjD,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,eAAA,EAAA,MAAA,CAAA;AAwDd,UAAA,CAAA;IAHP,YAAY,CAAC,OAAO;;;AAQnB,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AAQM,UAAA,CAAA;IAHP,YAAY,CAAC,SAAS;;;AAerB,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,gBAAA,EAAA,MAAA,CAAA;AAnJE,UAAU,GAAA,UAAA,CAAA;AADf,IAAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,QAAA,CAAU;AAC5B,CAAA,EAAA,UAAU,CA4Of;AAED,mBAAe,UAAU;;;;"}
1
+ {"version":3,"file":"tooltip.js","sources":["../../../src/components/tooltip/tooltip.ts"],"sourcesContent":["/**\n * Copyright IBM Corp. 2019, 2024\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 { css } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport HostListener from '../../globals/decorators/host-listener';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport CDSPopover from '../popover/popover';\nimport '../popover/popover-content';\nimport styles from './tooltip.scss?lit';\nimport CDSTooltipContent from './tooltip-content';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Trigger button of tooltip.\n *\n * @element cds-tooltip\n */\n@customElement(`${prefix}-tooltip`)\nclass CDSTooltip extends HostListenerMixin(CDSPopover) {\n /**\n * Specify how the trigger should align with the tooltip\n */\n @property({ reflect: true, type: String })\n align = 'top';\n\n /**\n * Specify whether a auto align functionality should be applied\n */\n @property({ type: Boolean, reflect: true })\n autoalign = false;\n\n /**\n * `true` if this tooltip is in a data table row\n */\n @property({ type: Boolean, reflect: true, attribute: 'data-table' })\n dataTable = false;\n\n /**\n * Specify whether the tooltip should be closed when clicked\n */\n @property({ reflect: true, type: Boolean })\n closeOnActivation = false;\n\n /**\n * Specify whether the tooltip should be open when it first renders\n */\n @property({ reflect: true, type: Boolean })\n defaultOpen = false;\n\n /**\n * Specify the duration in milliseconds to delay before displaying the tooltip\n */\n @property({ attribute: 'enter-delay-ms', type: Number })\n enterDelayMs = 100;\n\n /**\n * Specify the duration in milliseconds to delay before hiding the tooltip\n */\n @property({ attribute: 'leave-delay-ms', type: Number })\n leaveDelayMs = 300;\n\n /**\n * Only open tooltip on keyboard interactions, this is used for interactive tags\n * (ie. operational-tag, selectable-tag)\n */\n @property({ attribute: 'keyboard-only', type: Boolean })\n keyboardOnly = false;\n\n /**\n * Specify the size of the tooltip\n */\n @property({ reflect: true })\n size = false;\n\n /**\n * Specify the timeout reference for the tooltip\n */\n @property({ reflect: true })\n timeoutId = 0;\n\n /**\n * Specify whether the tooltip should be open when it first renders\n */\n @property({ reflect: true, attribute: 'toolbar-action', type: Boolean })\n toolbarAction = false;\n\n /**\n * Track if last interaction was a keyboard interaction\n */\n private lastInteractionWasKeyboard = false;\n\n /**\n * Handles opening of tooltip\n */\n private _showTooltip = async () => {\n window.clearTimeout(this.timeoutId);\n this.timeoutId = window.setTimeout(async () => {\n this.open = true;\n const { open, updateComplete } = this;\n if (open) {\n await updateComplete;\n const { selectorTooltipContent } = this\n .constructor as typeof CDSTooltip;\n (this.querySelector(selectorTooltipContent) as HTMLElement)?.focus();\n }\n }, this.enterDelayMs);\n };\n\n /**\n * Handles `mouseover` event on this element.\n */\n private _handleHover = (event) => {\n if (this.keyboardOnly) {\n if (event instanceof FocusEvent && this.lastInteractionWasKeyboard) {\n this._showTooltip();\n }\n } else {\n this._showTooltip();\n }\n };\n\n /**\n * Handles `mouseleave` event on this element.\n */\n private _handleHoverOut = async () => {\n window.clearTimeout(this.timeoutId);\n this.timeoutId = window.setTimeout(async () => {\n const { open } = this;\n if (open) {\n this.open = false;\n }\n }, this.leaveDelayMs);\n };\n\n /**\n * Handles `click` event on this element.\n */\n @HostListener('click')\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- https://github.com/carbon-design-system/carbon/issues/20452\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleClick = async () => {\n this.lastInteractionWasKeyboard = false;\n if (this.closeOnActivation) {\n this._handleHoverOut();\n }\n };\n\n /**\n * Handles `keydown` event on this element.\n */\n @HostListener('keydown')\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- https://github.com/carbon-design-system/carbon/issues/20452\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleKeydown = async (event) => {\n // needed for interactive tags for when the tag is focused from tabbing into it\n // tooltip is expected to open only from keyboard interaction\n if (event.key === 'Tab') {\n this.lastInteractionWasKeyboard = true;\n }\n if (event.key === ' ' || event.key === 'Enter' || event.key === 'Escape') {\n this.lastInteractionWasKeyboard = true;\n if (this.closeOnActivation) {\n this._handleHoverOut();\n }\n }\n };\n\n /**\n * Handles `slotchange` event.\n */\n protected _handleSlotChange({ target }: Event) {\n const component = (target as HTMLSlotElement).assignedNodes().filter(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim() // eslint-disable-line @typescript-eslint/no-non-null-assertion -- https://github.com/carbon-design-system/carbon/issues/20452\n );\n if (!component[0]) {\n return;\n }\n\n (component[0] as HTMLElement).addEventListener('focus', this._handleHover);\n (component[0] as HTMLElement).addEventListener(\n 'focusout',\n this._handleHoverOut\n );\n\n if (!this.keyboardOnly) {\n (component[0] as HTMLElement).addEventListener(\n 'mouseover',\n this._handleHover\n );\n (component[0] as HTMLElement).addEventListener(\n 'mouseleave',\n this._handleHoverOut\n );\n }\n this.requestUpdate();\n }\n\n connectedCallback() {\n if (!this.hasAttribute('highContrast')) {\n this.setAttribute('highContrast', '');\n }\n if (!this.shadowRoot) {\n this.attachShadow({ mode: 'open' });\n }\n window.addEventListener('keydown', this._handleKeydown, true);\n super.connectedCallback();\n }\n\n disconnectedCallback() {\n window.removeEventListener('keydown', this._handleKeydown, true);\n super.disconnectedCallback();\n }\n\n updated(changedProperties) {\n const { selectorTooltipContent } = this.constructor as typeof CDSTooltip;\n const toolTipContent = this.querySelector(selectorTooltipContent);\n\n if (changedProperties.has('defaultOpen')) {\n this.open = this.defaultOpen;\n }\n\n if (changedProperties.has('open')) {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions -- https://github.com/carbon-design-system/carbon/issues/20452\n this.open\n ? toolTipContent?.setAttribute('open', '')\n : toolTipContent?.removeAttribute('open');\n }\n\n ['align', 'caret', 'autoalign'].forEach((name) => {\n if (changedProperties.has(name)) {\n const { [name as keyof CDSTooltip]: value } = this;\n (toolTipContent as CDSTooltipContent)[name] = value;\n }\n });\n\n if (this.hasAttribute('highcontrast')) {\n toolTipContent?.setAttribute('highcontrast', '');\n }\n\n this.shadowRoot\n ?.querySelector(`.${prefix}--popover-container`)\n ?.classList.add(`${prefix}--tooltip`);\n\n super.updated(changedProperties);\n }\n\n /**\n * A selector that will return the CDSTooltipContent.\n */\n static get selectorTooltipContent() {\n return `${prefix}-tooltip-content`;\n }\n\n static get styles() {\n return css`\n ${super.styles}${styles}\n `;\n }\n}\n\nexport default CDSTooltip;\n"],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;AAKG;AAaH;;;;AAIG;AAEH,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,iBAAiB,CAAC,UAAU,CAAC,CAAA;AAAtD,IAAA,WAAA,GAAA;;AACE;;A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