@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
@@ -10,10 +10,10 @@ import { LitElement, TemplateResult } from 'lit-element';
10
10
  import './filter-group';
11
11
  import './filter-panel';
12
12
  import './filter-panel-modal';
13
- import '@carbon/carbon-web-components/es/components/checkbox/checkbox.js';
13
+ import '@carbon/web-components/es/components/checkbox/checkbox.js';
14
14
  declare const DDSFilterPanelComposite_base: {
15
15
  new (...args: any[]): {
16
- _handles: Set<import("@carbon/carbon-web-components/es/globals/internal/handle").default>;
16
+ _handles: Set<import("@carbon/web-components/es/globals/internal/handle").default>;
17
17
  connectedCallback(): void;
18
18
  disconnectedCallback(): void;
19
19
  accessKey: string;
@@ -69,7 +69,12 @@ declare const DDSFilterPanelComposite_base: {
69
69
  closest<E extends Element = Element>(selectors: string): E | null;
70
70
  getAttribute(qualifiedName: string): string | null;
71
71
  getAttributeNS(namespace: string | null, localName: string): string | null;
72
- getAttributeNames(): string[];
72
+ getAttributeNames(): string[]; /**
73
+ * Host listener for handling the state change when a checkbox is selected.
74
+ *
75
+ * @param event checkbox select event
76
+ * @private
77
+ */
73
78
  getAttributeNode(qualifiedName: string): Attr | null;
74
79
  getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
75
80
  getBoundingClientRect(): DOMRect;
@@ -161,16 +166,9 @@ declare const DDSFilterPanelComposite_base: {
161
166
  ariaBusy: string | null;
162
167
  ariaChecked: string | null;
163
168
  ariaColCount: string | null;
164
- /**
165
- * selected value property
166
- */
167
169
  ariaColIndex: string | null;
168
170
  ariaColSpan: string | null;
169
- ariaCurrent: string | null; /**
170
- * Event handler for the clearing functionality
171
- *
172
- * @private
173
- */
171
+ ariaCurrent: string | null;
174
172
  ariaDisabled: string | null;
175
173
  ariaExpanded: string | null;
176
174
  ariaHasPopup: string | null;
@@ -213,7 +211,11 @@ declare const DDSFilterPanelComposite_base: {
213
211
  readonly firstElementChild: Element | null;
214
212
  readonly lastElementChild: Element | null;
215
213
  append(...nodes: (string | Node)[]): void;
216
- prepend(...nodes: (string | Node)[]): void;
214
+ prepend(...nodes: (string | Node)[]): void; /**
215
+ * Sets the open modal to true
216
+ *
217
+ * @private
218
+ */
217
219
  querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6] | null;
218
220
  querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7] | null;
219
221
  querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
@@ -266,6 +268,9 @@ declare const DDSFilterPanelComposite_base: {
266
268
  onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
267
269
  onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
268
270
  onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
271
+ /**
272
+ * The name of the custom event captured upon selecting a checkbox
273
+ */
269
274
  onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
270
275
  onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
271
276
  onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
@@ -273,6 +278,9 @@ declare const DDSFilterPanelComposite_base: {
273
278
  onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
274
279
  onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
275
280
  onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
281
+ /**
282
+ * The name of the custom event captured upon closing the modal
283
+ */
276
284
  onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
277
285
  onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
278
286
  onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
@@ -1 +1 @@
1
- {"version":3,"sources":["components/filter-panel/filter-panel-composite.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAGL,UAAU,EAGV,cAAc,EACf,MAAM,aAAa,CAAC;AAKrB,OAAO,gBAAgB,CAAC;AACxB,OAAO,gBAAg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BAAoB,WAE9B;IAED;;;OAGG;IAEH,MAAM,KAAK,6BAA6B,WAEvC;IAED;;OAEG;IAEH,MAAM,KAAK,eAAe,WAEzB;IAED;;OAEG;IAEH,MAAM,KAAK,gBAAgB,WAE1B;IAED;;OAEG;IAEH,MAAM,KAAK,mBAAmB,WAE7B;IAED;;OAEG;IAEH,MAAM,KAAK,kBAAkB,WAE5B;IAED,MAAM,KAAK,cAAc,WAExB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,uBAAuB,CAAC","file":"filter-panel-composite.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 {\n customElement,\n html,\n LitElement,\n property,\n state,\n TemplateResult,\n} from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport Filter from '@carbon/carbon-web-components/es/icons/filter/16.js';\nimport HostListenerMixin from '@carbon/carbon-web-components/es/globals/mixins/host-listener.js';\nimport { baseFontSize, breakpoints } from '@carbon/layout';\nimport './filter-group';\nimport './filter-panel';\nimport './filter-panel-modal';\nimport { unsafeHTML } from 'lit-html/directives/unsafe-html.js';\nimport HostListener from '@carbon/carbon-web-components/es/globals/decorators/host-listener.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport styles from './filter-panel.scss';\nimport '@carbon/carbon-web-components/es/components/checkbox/checkbox.js';\nimport DDSFilterGroupItem from './filter-group-item';\nimport DDSFilterPanelCheckbox from './filter-panel-checkbox';\nimport DDSFilterPanelInputSelect from './filter-panel-input-select';\nimport DDSFilterPanelInputSelectItem from './filter-panel-input-select-item';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\nconst breakpoint = parseFloat(breakpoints.lg.width) * baseFontSize;\n\n/**\n * Filter panel composite\n *\n * @element dds-filter-panel-composite\n */\n@customElement(`${ddsPrefix}-filter-panel-composite`)\nclass DDSFilterPanelComposite extends HostListenerMixin(\n StableSelectorMixin(LitElement)\n) {\n /**\n * Host listener for handling the state change when a input select item is selected.\n *\n * @param event content state change\n * @private\n */\n @HostListener('document:eventInputSelectItem')\n protected _handleInputSelectItemStateChange = (event: CustomEvent) => {\n const { value, lastValue, headerValue } = event.detail;\n\n const { stableSelector } = DDSFilterPanelInputSelectItem;\n this._focusElement = `${stableSelector}[value=\"${value}\"]`;\n\n // remove the DDSInputSelect (header) value from list to add an inner child instead\n this._selectedValues = this._selectedValues.filter(\n (e) => e !== headerValue\n );\n\n if (!value) {\n this._selectedValues = this._selectedValues.filter((e) => e !== value);\n\n if (!this._selectedValues.length) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.removeAttribute('has-selections');\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel`\n )?.removeAttribute('has-selections');\n }\n return;\n }\n\n if (!this._selectedValues.includes(value)) {\n this._selectedValues.push(value);\n }\n\n if (lastValue && this._selectedValues.includes(lastValue)) {\n this._selectedValues = this._selectedValues.filter(\n (e) => e !== lastValue\n );\n }\n // enables the clear button\n if (this._selectedValues) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.setAttribute('has-selections', '');\n this.shadowRoot!.querySelector(`${ddsPrefix}-filter-panel`)?.setAttribute(\n 'has-selections',\n ''\n );\n }\n this.renderStatus();\n };\n\n /**\n * Host listener for handling the state change when a checkbox is selected.\n *\n * @param event checkbox select event\n * @private\n */\n @HostListener('document:eventCheckboxSelect')\n protected _handleCheckboxStateChange = (event: CustomEvent) => {\n const { value } = event.detail;\n\n // toggle checkbox in filter panel modal\n this.querySelectorAll(`${ddsPrefix}-filter-panel-checkbox`).forEach((e) => {\n if (e.getAttribute('value') === value) {\n e.toggleAttribute('checked');\n e.closest(`${ddsPrefix}-filter-group-item`)?.setAttribute('open', '');\n\n const { stableSelector } = DDSFilterPanelCheckbox;\n this._focusElement = `${stableSelector}[value=\"${value}\"]`;\n }\n });\n\n const filterGroupItems = this.querySelectorAll(\n `${ddsPrefix}-filter-group-item`\n );\n this.shadowRoot\n ?.querySelectorAll(`${ddsPrefix}-filter-group-item`)\n .forEach((filterGroupItem, index) => {\n if ((filterGroupItem as DDSFilterGroupItem).open) {\n (filterGroupItems[index] as DDSFilterGroupItem).open = true;\n }\n });\n\n // toggle value in list\n if (!this._selectedValues.includes(value)) {\n this._selectedValues.push(value);\n } else {\n this._selectedValues = this._selectedValues.filter((e) => e !== value);\n }\n\n // shows clear button depending on the list's length\n if (!this._selectedValues.length) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.removeAttribute('has-selections');\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel`\n )?.removeAttribute('has-selections');\n } else {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.setAttribute('has-selections', '');\n this.shadowRoot!.querySelector(`${ddsPrefix}-filter-panel`)?.setAttribute(\n 'has-selections',\n ''\n );\n }\n\n this.renderStatus();\n };\n\n /**\n * Host listener for caching filter group items' view all states.\n *\n * @param event filter group item view all toggle event\n * @private\n */\n @HostListener('document:eventFilterGroupViewAllToggle')\n protected _handleFilterGroupViewAllToggle = (event: CustomEvent) => {\n const match = this._filterGroupsAllRevealed.findIndex((entry) => {\n return entry.id === event.detail.id;\n });\n\n if (match !== -1) {\n this._filterGroupsAllRevealed[match].value = event.detail.value;\n } else {\n this._filterGroupsAllRevealed.push(event.detail);\n }\n };\n\n /**\n * handles modal close event\n */\n @HostListener('document:eventModalClose')\n protected modalCloseEvent = () => {\n this.openFilterModal = false;\n };\n\n /**\n * Handles the state change when an input select is selected.\n *\n * @param event title state change\n * @private\n */\n @HostListener('document:eventInputSelect')\n protected _handleInputSelectStateChange = (event: CustomEvent) => {\n const { headerValue } = event.detail;\n\n const { stableSelector } = DDSFilterPanelInputSelect;\n this._focusElement = `${stableSelector}[header-value=\"${headerValue}\"]`;\n\n // toggle checkbox in filter panel modal\n this.querySelectorAll(`${ddsPrefix}-filter-panel-input-select`).forEach(\n (e) => {\n // capture the element counterpart in Filter Panel Modal\n if (e.getAttribute('header-value') === headerValue) {\n const currentGroup = e.closest(`${ddsPrefix}-filter-group-item`);\n currentGroup?.setAttribute('open', '');\n\n // Clears all other sibling items in the Filter Group\n currentGroup\n ?.querySelectorAll(`${ddsPrefix}-filter-panel-input-select`)\n .forEach((inputSelect) => {\n if (inputSelect === e) return;\n this._selectedValues = this._selectedValues.filter(\n (str) => str !== inputSelect.getAttribute('header-value')\n );\n inputSelect.removeAttribute('selected');\n inputSelect.removeAttribute('is-open');\n });\n\n e.toggleAttribute('selected');\n e.toggleAttribute('is-open');\n }\n }\n );\n\n // toggle value in list\n if (!this._selectedValues.includes(headerValue)) {\n this._selectedValues.push(headerValue);\n } else {\n this._selectedValues = this._selectedValues.filter(\n (e) => e !== headerValue\n );\n }\n\n if (!this._selectedValues.length) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.removeAttribute('has-selections');\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel`\n )?.removeAttribute('has-selections');\n }\n\n // enables the clear button\n if (this._selectedValues.length > 0) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.setAttribute('has-selections', '');\n this.shadowRoot!.querySelector(`${ddsPrefix}-filter-panel`)?.setAttribute(\n 'has-selections',\n ''\n );\n }\n this.renderStatus();\n };\n\n @HostListener('document:eventHeadingChange')\n protected _handleHeadingChange = () => {\n this.renderStatus();\n };\n\n /**\n * selected value property\n */\n @property({ type: String, reflect: true })\n selectValue = '';\n\n /**\n * Event handler for the clearing functionality\n *\n * @private\n */\n @HostListener('document:eventSelectionClear')\n protected _handleClearSelection = () => {\n this._selectedValues = [];\n\n // handles clear when clearing from the static filter panel modal\n this._contents.forEach((group) => {\n group\n .querySelectorAll(`${ddsPrefix}-filter-panel-checkbox`)\n .forEach((e) => {\n e.removeAttribute('checked');\n });\n group\n .querySelectorAll(`${ddsPrefix}-filter-panel-input-select-item`)\n .forEach((e) => {\n e.removeAttribute('selected');\n e.removeAttribute('is-open');\n });\n group\n .querySelectorAll(`${ddsPrefix}-filter-panel-input-select`)\n .forEach((e) => {\n e.removeAttribute('selected');\n e.removeAttribute('is-open');\n });\n });\n\n // handles clear when clearing from the filter panel static\n this.shadowRoot\n ?.querySelectorAll(`${ddsPrefix}-filter-panel-checkbox`)\n .forEach((e) => {\n e.removeAttribute('checked');\n });\n this.shadowRoot\n ?.querySelectorAll(`${ddsPrefix}-filter-panel-input-select-item`)\n .forEach((e) => {\n e.removeAttribute('selected');\n e.removeAttribute('is-open');\n });\n this.shadowRoot\n ?.querySelectorAll(`${ddsPrefix}-filter-panel-input-select`)\n .forEach((e) => {\n e.removeAttribute('selected');\n e.removeAttribute('is-open');\n });\n\n // disables the button\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.removeAttribute('has-selections');\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel`\n )?.removeAttribute('has-selections');\n\n this.renderStatus();\n };\n\n /**\n * `true` to open the locale modal.\n */\n @property({ type: Boolean })\n openFilterModal = false;\n\n /**\n * Sets the open modal to true\n *\n * @private\n */\n protected _openModal() {\n this.openFilterModal = true;\n }\n\n /**\n *\n */\n @property()\n _contents: any[] = [];\n\n /**\n * sets the array for the filter button title\n */\n @property()\n _title: any[] = [];\n\n /**\n * sets the selected values into an array\n */\n @property()\n _selectedValues: string[] = [];\n\n /**\n * sets the filter button title\n */\n @property()\n _filterButtonTitle: string = '';\n\n /**\n * stores which filter groups have revealed filters\n */\n @property()\n _filterGroupsAllRevealed: { id: string; value: boolean }[] = [];\n\n @property()\n _isMobile: boolean = window.innerWidth < breakpoint;\n\n /**\n * An element to set focus to on render.\n */\n @state()\n _focusElement: string | null = null;\n\n @HostListener('window:resize')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleWindowResize = (): void => {\n this._isMobile = window.innerWidth < breakpoint;\n };\n\n protected async _querySelectorMobile(id: string): Promise<Element | null> {\n return this.querySelector(id);\n }\n\n protected async _querySelectorDesktop(id: string): Promise<Element | null> {\n let element;\n if (this.shadowRoot) {\n element = this.shadowRoot.querySelector(id);\n }\n return element;\n }\n\n protected async _querySelector(id: string): Promise<Element | null> {\n const { _isMobile } = this;\n let element;\n\n if (_isMobile) {\n element = await this._querySelectorMobile(id);\n } else {\n element = await this._querySelectorDesktop(id);\n }\n return element;\n }\n\n /**\n * Handles `slotchange` event.\n *\n * @param event The event.\n */\n protected _handleSlotChange({ target }: Event) {\n this._contents = (target as HTMLSlotElement)\n .assignedNodes()\n .filter(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n }\n\n protected renderStatus() {\n this._filterButtonTitle = `\n ${this._title[0].innerText}${\n this._selectedValues.length > 0 ? ` (${this._selectedValues.length})` : ''\n }\n `;\n }\n\n /**\n * Handles `slotchange` event.\n *\n * @param event The event.\n */\n protected _handleTitleSlotChange({ target }: Event) {\n this._title = (target as HTMLSlotElement)\n .assignedNodes()\n .filter(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n this._filterButtonTitle = this._title[0].innerText;\n }\n\n /**\n * Renders original content into the modal and listens for changes to this\n * content to then be stored in `this._content`.\n */\n protected _renderModal = (): TemplateResult => html`\n <dds-filter-panel-modal\n ?open=${this.openFilterModal}\n heading=\"${this._filterButtonTitle}\"\n >\n <slot name=\"heading\" @slotchange=\"${this._handleTitleSlotChange}\"></slot>\n <slot @slotchange=\"${this._handleSlotChange}\"></slot>\n </dds-filter-panel-modal>\n `;\n\n /**\n * Renders copies of slotted elements into the desktop presentation.\n */\n protected _renderDesktop = (): TemplateResult => html`\n <dds-filter-panel heading=\"${this._filterButtonTitle}\">\n ${this._title.map((e) => {\n return html` ${unsafeHTML((e as HTMLElement).outerHTML)} `;\n })}\n ${this._contents.map((e) => {\n return html` ${unsafeHTML((e as HTMLElement).outerHTML)} `;\n })}\n </dds-filter-panel>\n `;\n\n render() {\n return html`\n <button class=\"bx--filter-button\" @click=${this._openModal}>\n <div class=\"${prefix}--filter__modal__button\">\n ${this._filterButtonTitle} ${Filter()}\n </div>\n </button>\n ${this._renderModal()} ${this._renderDesktop()}\n `;\n }\n\n protected async updated() {\n const { _focusElement } = this;\n\n if (_focusElement) {\n const targetElement = await this._querySelector(_focusElement);\n\n if (targetElement instanceof HTMLElement) {\n targetElement?.focus();\n }\n\n this._focusElement = null;\n }\n }\n\n /**\n * The name of the custom event captured upon selecting a checkbox\n */\n\n static get eventCheckboxSelect() {\n return `${ddsPrefix}-checkbox-select`;\n }\n\n /**\n * The name of the custom event captured upon selecting an input select item.\n */\n\n static get eventInputSelectItem() {\n return `${ddsPrefix}-filter-panel-input-select`;\n }\n\n /**\n * The name of the custom event captured upon activating \"view all\" button in\n * a filter group item\n */\n\n static get eventFilterGroupViewAllToggle() {\n return `${ddsPrefix}-filter-group-view-all-toggle`;\n }\n\n /**\n * The name of the custom event captured upon closing the modal\n */\n\n static get eventModalClose() {\n return `${prefix}-modal-beingclosed`;\n }\n\n /**\n * The name of the custom event capture upon selecting an input select item\n */\n\n static get eventInputSelect() {\n return `${ddsPrefix}-filter-panel-input-select-title`;\n }\n\n /**\n * The name of the custom event fired to clear selections\n */\n\n static get eventSelectionClear() {\n return `${ddsPrefix}-selection-clear`;\n }\n\n /**\n * The name of the custom event capture when the heading changes\n */\n\n static get eventHeadingChange() {\n return `${ddsPrefix}-filter-panel-heading-change`;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}-filter-panel-composite`;\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 DDSFilterPanelComposite;\n"]}
1
+ {"version":3,"sources":["components/filter-panel/filter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YAAY,QAAO,cAAc,CAQzC;IAEF;;OAEG;IACH,SAAS,CAAC,cAAc,QAAO,cAAc,CAS3C;IAEF,MAAM;cAWU,OAAO;IAcvB;;OAEG;IAEH,MAAM,KAAK,mBAAmB,WAE7B;IAED;;OAEG;IAEH,MAAM,KAAK,oBAAoB,WAE9B;IAED;;;OAGG;IAEH,MAAM,KAAK,6BAA6B,WAEvC;IAED;;OAEG;IAEH,MAAM,KAAK,eAAe,WAEzB;IAED;;OAEG;IAEH,MAAM,KAAK,gBAAgB,WAE1B;IAED;;OAEG;IAEH,MAAM,KAAK,mBAAmB,WAE7B;IAED;;OAEG;IAEH,MAAM,KAAK,kBAAkB,WAE5B;IAED,MAAM,KAAK,cAAc,WAExB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,uBAAuB,CAAC","file":"filter-panel-composite.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 {\n customElement,\n html,\n LitElement,\n property,\n state,\n TemplateResult,\n} from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport Filter from '@carbon/web-components/es/icons/filter/16.js';\nimport HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';\nimport { baseFontSize, breakpoints } from '@carbon/layout';\nimport './filter-group';\nimport './filter-panel';\nimport './filter-panel-modal';\nimport { unsafeHTML } from 'lit-html/directives/unsafe-html.js';\nimport HostListener from '@carbon/web-components/es/globals/decorators/host-listener.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport styles from './filter-panel.scss';\nimport '@carbon/web-components/es/components/checkbox/checkbox.js';\nimport DDSFilterGroupItem from './filter-group-item';\nimport DDSFilterPanelCheckbox from './filter-panel-checkbox';\nimport DDSFilterPanelInputSelect from './filter-panel-input-select';\nimport DDSFilterPanelInputSelectItem from './filter-panel-input-select-item';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\nconst breakpoint = parseFloat(breakpoints.lg.width) * baseFontSize;\n\n/**\n * Filter panel composite\n *\n * @element dds-filter-panel-composite\n */\n@customElement(`${ddsPrefix}-filter-panel-composite`)\nclass DDSFilterPanelComposite extends HostListenerMixin(\n StableSelectorMixin(LitElement)\n) {\n /**\n * Host listener for handling the state change when a input select item is selected.\n *\n * @param event content state change\n * @private\n */\n @HostListener('document:eventInputSelectItem')\n protected _handleInputSelectItemStateChange = (event: CustomEvent) => {\n const { value, lastValue, headerValue } = event.detail;\n\n const { stableSelector } = DDSFilterPanelInputSelectItem;\n this._focusElement = `${stableSelector}[value=\"${value}\"]`;\n\n // remove the DDSInputSelect (header) value from list to add an inner child instead\n this._selectedValues = this._selectedValues.filter(\n (e) => e !== headerValue\n );\n\n if (!value) {\n this._selectedValues = this._selectedValues.filter((e) => e !== value);\n\n if (!this._selectedValues.length) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.removeAttribute('has-selections');\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel`\n )?.removeAttribute('has-selections');\n }\n return;\n }\n\n if (!this._selectedValues.includes(value)) {\n this._selectedValues.push(value);\n }\n\n if (lastValue && this._selectedValues.includes(lastValue)) {\n this._selectedValues = this._selectedValues.filter(\n (e) => e !== lastValue\n );\n }\n // enables the clear button\n if (this._selectedValues) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.setAttribute('has-selections', '');\n this.shadowRoot!.querySelector(`${ddsPrefix}-filter-panel`)?.setAttribute(\n 'has-selections',\n ''\n );\n }\n this.renderStatus();\n };\n\n /**\n * Host listener for handling the state change when a checkbox is selected.\n *\n * @param event checkbox select event\n * @private\n */\n @HostListener('document:eventCheckboxSelect')\n protected _handleCheckboxStateChange = (event: CustomEvent) => {\n const { value } = event.detail;\n\n // toggle checkbox in filter panel modal\n this.querySelectorAll(`${ddsPrefix}-filter-panel-checkbox`).forEach((e) => {\n if (e.getAttribute('value') === value) {\n e.toggleAttribute('checked');\n e.closest(`${ddsPrefix}-filter-group-item`)?.setAttribute('open', '');\n\n const { stableSelector } = DDSFilterPanelCheckbox;\n this._focusElement = `${stableSelector}[value=\"${value}\"]`;\n }\n });\n\n const filterGroupItems = this.querySelectorAll(\n `${ddsPrefix}-filter-group-item`\n );\n this.shadowRoot\n ?.querySelectorAll(`${ddsPrefix}-filter-group-item`)\n .forEach((filterGroupItem, index) => {\n if ((filterGroupItem as DDSFilterGroupItem).open) {\n (filterGroupItems[index] as DDSFilterGroupItem).open = true;\n }\n });\n\n // toggle value in list\n if (!this._selectedValues.includes(value)) {\n this._selectedValues.push(value);\n } else {\n this._selectedValues = this._selectedValues.filter((e) => e !== value);\n }\n\n // shows clear button depending on the list's length\n if (!this._selectedValues.length) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.removeAttribute('has-selections');\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel`\n )?.removeAttribute('has-selections');\n } else {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.setAttribute('has-selections', '');\n this.shadowRoot!.querySelector(`${ddsPrefix}-filter-panel`)?.setAttribute(\n 'has-selections',\n ''\n );\n }\n\n this.renderStatus();\n };\n\n /**\n * Host listener for caching filter group items' view all states.\n *\n * @param event filter group item view all toggle event\n * @private\n */\n @HostListener('document:eventFilterGroupViewAllToggle')\n protected _handleFilterGroupViewAllToggle = (event: CustomEvent) => {\n const match = this._filterGroupsAllRevealed.findIndex((entry) => {\n return entry.id === event.detail.id;\n });\n\n if (match !== -1) {\n this._filterGroupsAllRevealed[match].value = event.detail.value;\n } else {\n this._filterGroupsAllRevealed.push(event.detail);\n }\n };\n\n /**\n * handles modal close event\n */\n @HostListener('document:eventModalClose')\n protected modalCloseEvent = () => {\n this.openFilterModal = false;\n };\n\n /**\n * Handles the state change when an input select is selected.\n *\n * @param event title state change\n * @private\n */\n @HostListener('document:eventInputSelect')\n protected _handleInputSelectStateChange = (event: CustomEvent) => {\n const { headerValue } = event.detail;\n\n const { stableSelector } = DDSFilterPanelInputSelect;\n this._focusElement = `${stableSelector}[header-value=\"${headerValue}\"]`;\n\n // toggle checkbox in filter panel modal\n this.querySelectorAll(`${ddsPrefix}-filter-panel-input-select`).forEach(\n (e) => {\n // capture the element counterpart in Filter Panel Modal\n if (e.getAttribute('header-value') === headerValue) {\n const currentGroup = e.closest(`${ddsPrefix}-filter-group-item`);\n currentGroup?.setAttribute('open', '');\n\n // Clears all other sibling items in the Filter Group\n currentGroup\n ?.querySelectorAll(`${ddsPrefix}-filter-panel-input-select`)\n .forEach((inputSelect) => {\n if (inputSelect === e) return;\n this._selectedValues = this._selectedValues.filter(\n (str) => str !== inputSelect.getAttribute('header-value')\n );\n inputSelect.removeAttribute('selected');\n inputSelect.removeAttribute('is-open');\n });\n\n e.toggleAttribute('selected');\n e.toggleAttribute('is-open');\n }\n }\n );\n\n // toggle value in list\n if (!this._selectedValues.includes(headerValue)) {\n this._selectedValues.push(headerValue);\n } else {\n this._selectedValues = this._selectedValues.filter(\n (e) => e !== headerValue\n );\n }\n\n if (!this._selectedValues.length) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.removeAttribute('has-selections');\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel`\n )?.removeAttribute('has-selections');\n }\n\n // enables the clear button\n if (this._selectedValues.length > 0) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.setAttribute('has-selections', '');\n this.shadowRoot!.querySelector(`${ddsPrefix}-filter-panel`)?.setAttribute(\n 'has-selections',\n ''\n );\n }\n this.renderStatus();\n };\n\n @HostListener('document:eventHeadingChange')\n protected _handleHeadingChange = () => {\n this.renderStatus();\n };\n\n /**\n * selected value property\n */\n @property({ type: String, reflect: true })\n selectValue = '';\n\n /**\n * Event handler for the clearing functionality\n *\n * @private\n */\n @HostListener('document:eventSelectionClear')\n protected _handleClearSelection = () => {\n this._selectedValues = [];\n\n // handles clear when clearing from the static filter panel modal\n this._contents.forEach((group) => {\n group\n .querySelectorAll(`${ddsPrefix}-filter-panel-checkbox`)\n .forEach((e) => {\n e.removeAttribute('checked');\n });\n group\n .querySelectorAll(`${ddsPrefix}-filter-panel-input-select-item`)\n .forEach((e) => {\n e.removeAttribute('selected');\n e.removeAttribute('is-open');\n });\n group\n .querySelectorAll(`${ddsPrefix}-filter-panel-input-select`)\n .forEach((e) => {\n e.removeAttribute('selected');\n e.removeAttribute('is-open');\n });\n });\n\n // handles clear when clearing from the filter panel static\n this.shadowRoot\n ?.querySelectorAll(`${ddsPrefix}-filter-panel-checkbox`)\n .forEach((e) => {\n e.removeAttribute('checked');\n });\n this.shadowRoot\n ?.querySelectorAll(`${ddsPrefix}-filter-panel-input-select-item`)\n .forEach((e) => {\n e.removeAttribute('selected');\n e.removeAttribute('is-open');\n });\n this.shadowRoot\n ?.querySelectorAll(`${ddsPrefix}-filter-panel-input-select`)\n .forEach((e) => {\n e.removeAttribute('selected');\n e.removeAttribute('is-open');\n });\n\n // disables the button\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.removeAttribute('has-selections');\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel`\n )?.removeAttribute('has-selections');\n\n this.renderStatus();\n };\n\n /**\n * `true` to open the locale modal.\n */\n @property({ type: Boolean })\n openFilterModal = false;\n\n /**\n * Sets the open modal to true\n *\n * @private\n */\n protected _openModal() {\n this.openFilterModal = true;\n }\n\n /**\n *\n */\n @property()\n _contents: any[] = [];\n\n /**\n * sets the array for the filter button title\n */\n @property()\n _title: any[] = [];\n\n /**\n * sets the selected values into an array\n */\n @property()\n _selectedValues: string[] = [];\n\n /**\n * sets the filter button title\n */\n @property()\n _filterButtonTitle: string = '';\n\n /**\n * stores which filter groups have revealed filters\n */\n @property()\n _filterGroupsAllRevealed: { id: string; value: boolean }[] = [];\n\n @property()\n _isMobile: boolean = window.innerWidth < breakpoint;\n\n /**\n * An element to set focus to on render.\n */\n @state()\n _focusElement: string | null = null;\n\n @HostListener('window:resize')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleWindowResize = (): void => {\n this._isMobile = window.innerWidth < breakpoint;\n };\n\n protected async _querySelectorMobile(id: string): Promise<Element | null> {\n return this.querySelector(id);\n }\n\n protected async _querySelectorDesktop(id: string): Promise<Element | null> {\n let element;\n if (this.shadowRoot) {\n element = this.shadowRoot.querySelector(id);\n }\n return element;\n }\n\n protected async _querySelector(id: string): Promise<Element | null> {\n const { _isMobile } = this;\n let element;\n\n if (_isMobile) {\n element = await this._querySelectorMobile(id);\n } else {\n element = await this._querySelectorDesktop(id);\n }\n return element;\n }\n\n /**\n * Handles `slotchange` event.\n *\n * @param event The event.\n */\n protected _handleSlotChange({ target }: Event) {\n this._contents = (target as HTMLSlotElement)\n .assignedNodes()\n .filter(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n }\n\n protected renderStatus() {\n this._filterButtonTitle = `\n ${this._title[0].innerText}${\n this._selectedValues.length > 0 ? ` (${this._selectedValues.length})` : ''\n }\n `;\n }\n\n /**\n * Handles `slotchange` event.\n *\n * @param event The event.\n */\n protected _handleTitleSlotChange({ target }: Event) {\n this._title = (target as HTMLSlotElement)\n .assignedNodes()\n .filter(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n this._filterButtonTitle = this._title[0].innerText;\n }\n\n /**\n * Renders original content into the modal and listens for changes to this\n * content to then be stored in `this._content`.\n */\n protected _renderModal = (): TemplateResult => html`\n <dds-filter-panel-modal\n ?open=${this.openFilterModal}\n heading=\"${this._filterButtonTitle}\"\n >\n <slot name=\"heading\" @slotchange=\"${this._handleTitleSlotChange}\"></slot>\n <slot @slotchange=\"${this._handleSlotChange}\"></slot>\n </dds-filter-panel-modal>\n `;\n\n /**\n * Renders copies of slotted elements into the desktop presentation.\n */\n protected _renderDesktop = (): TemplateResult => html`\n <dds-filter-panel heading=\"${this._filterButtonTitle}\">\n ${this._title.map((e) => {\n return html` ${unsafeHTML((e as HTMLElement).outerHTML)} `;\n })}\n ${this._contents.map((e) => {\n return html` ${unsafeHTML((e as HTMLElement).outerHTML)} `;\n })}\n </dds-filter-panel>\n `;\n\n render() {\n return html`\n <button class=\"bx--filter-button\" @click=${this._openModal}>\n <div class=\"${prefix}--filter__modal__button\">\n ${this._filterButtonTitle} ${Filter()}\n </div>\n </button>\n ${this._renderModal()} ${this._renderDesktop()}\n `;\n }\n\n protected async updated() {\n const { _focusElement } = this;\n\n if (_focusElement) {\n const targetElement = await this._querySelector(_focusElement);\n\n if (targetElement instanceof HTMLElement) {\n targetElement?.focus();\n }\n\n this._focusElement = null;\n }\n }\n\n /**\n * The name of the custom event captured upon selecting a checkbox\n */\n\n static get eventCheckboxSelect() {\n return `${ddsPrefix}-checkbox-select`;\n }\n\n /**\n * The name of the custom event captured upon selecting an input select item.\n */\n\n static get eventInputSelectItem() {\n return `${ddsPrefix}-filter-panel-input-select`;\n }\n\n /**\n * The name of the custom event captured upon activating \"view all\" button in\n * a filter group item\n */\n\n static get eventFilterGroupViewAllToggle() {\n return `${ddsPrefix}-filter-group-view-all-toggle`;\n }\n\n /**\n * The name of the custom event captured upon closing the modal\n */\n\n static get eventModalClose() {\n return `${prefix}-modal-beingclosed`;\n }\n\n /**\n * The name of the custom event capture upon selecting an input select item\n */\n\n static get eventInputSelect() {\n return `${ddsPrefix}-filter-panel-input-select-title`;\n }\n\n /**\n * The name of the custom event fired to clear selections\n */\n\n static get eventSelectionClear() {\n return `${ddsPrefix}-selection-clear`;\n }\n\n /**\n * The name of the custom event capture when the heading changes\n */\n\n static get eventHeadingChange() {\n return `${ddsPrefix}-filter-panel-heading-change`;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}-filter-panel-composite`;\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 DDSFilterPanelComposite;\n"]}
@@ -16,18 +16,18 @@ let _ = t => t,
16
16
 
17
17
  import { customElement, html, LitElement, property, state } from 'lit-element';
18
18
  import settings from 'carbon-components/es/globals/js/settings.js';
19
- import Filter from '@carbon/carbon-web-components/es/icons/filter/16.js';
20
- import HostListenerMixin from '@carbon/carbon-web-components/es/globals/mixins/host-listener.js';
19
+ import Filter from '@carbon/web-components/es/icons/filter/16.js';
20
+ import HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';
21
21
  import { baseFontSize, breakpoints } from '@carbon/layout';
22
22
  import "./filter-group.js";
23
23
  import "./filter-panel.js";
24
24
  import "./filter-panel-modal.js";
25
25
  import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
26
- import HostListener from '@carbon/carbon-web-components/es/globals/decorators/host-listener.js';
26
+ import HostListener from '@carbon/web-components/es/globals/decorators/host-listener.js';
27
27
  import ddsSettings from "../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js";
28
28
  import StableSelectorMixin from "../../globals/mixins/stable-selector.js";
29
29
  import styles from "././filter-panel.css.js";
30
- import '@carbon/carbon-web-components/es/components/checkbox/checkbox.js';
30
+ import '@carbon/web-components/es/components/checkbox/checkbox.js';
31
31
  import DDSFilterPanelCheckbox from "./filter-panel-checkbox.js";
32
32
  import DDSFilterPanelInputSelect from "./filter-panel-input-select.js";
33
33
  import DDSFilterPanelInputSelectItem from "./filter-panel-input-select-item.js";
@@ -1 +1 @@
1
- {"version":3,"file":"filter-panel-composite.js","names":["customElement","html","LitElement","property","state","settings","Filter","HostListenerMixin","baseFontSize","breakpoints","unsafeHTML","HostListener","ddsSettings","StableSelectorMixin","styles","DDSFilterPanelCheckbox","DDSFilterPanelInputSelect","DDSFilterPanelInputSelectItem","prefix","stablePrefix","ddsPrefix","breakpoint","parseFloat","lg","width","DDSFilterPanelComposite","event","value","lastValue","headerValue","detail","stableSelector","_focusElement","_selectedValues","filter","e","length","shadowRoot","querySelector","removeAttribute","includes","push","setAttribute","renderStatus","querySelectorAll","forEach","getAttribute","toggleAttribute","closest","filterGroupItems","filterGroupItem","index","open","match","_filterGroupsAllRevealed","findIndex","entry","id","openFilterModal","currentGroup","inputSelect","str","type","String","reflect","_contents","group","Boolean","window","innerWidth","_isMobile","element","_querySelectorMobile","_querySelectorDesktop","target","assignedNodes","node","nodeType","Node","TEXT_NODE","textContent","trim","_filterButtonTitle","_title","innerText","_handleTitleSlotChange","_handleSlotChange","map","outerHTML","_openModal","_renderModal","_renderDesktop","targetElement","_querySelector","HTMLElement","focus"],"sources":["components/filter-panel/filter-panel-composite.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 {\n customElement,\n html,\n LitElement,\n property,\n state,\n TemplateResult,\n} from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport Filter from '@carbon/carbon-web-components/es/icons/filter/16.js';\nimport HostListenerMixin from '@carbon/carbon-web-components/es/globals/mixins/host-listener.js';\nimport { baseFontSize, breakpoints } from '@carbon/layout';\nimport './filter-group';\nimport './filter-panel';\nimport './filter-panel-modal';\nimport { unsafeHTML } from 'lit-html/directives/unsafe-html.js';\nimport HostListener from '@carbon/carbon-web-components/es/globals/decorators/host-listener.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport styles from './filter-panel.scss';\nimport '@carbon/carbon-web-components/es/components/checkbox/checkbox.js';\nimport DDSFilterGroupItem from './filter-group-item';\nimport DDSFilterPanelCheckbox from './filter-panel-checkbox';\nimport DDSFilterPanelInputSelect from './filter-panel-input-select';\nimport DDSFilterPanelInputSelectItem from './filter-panel-input-select-item';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\nconst breakpoint = parseFloat(breakpoints.lg.width) * baseFontSize;\n\n/**\n * Filter panel composite\n *\n * @element dds-filter-panel-composite\n */\n@customElement(`${ddsPrefix}-filter-panel-composite`)\nclass DDSFilterPanelComposite extends HostListenerMixin(\n StableSelectorMixin(LitElement)\n) {\n /**\n * Host listener for handling the state change when a input select item is selected.\n *\n * @param event content state change\n * @private\n */\n @HostListener('document:eventInputSelectItem')\n protected _handleInputSelectItemStateChange = (event: CustomEvent) => {\n const { value, lastValue, headerValue } = event.detail;\n\n const { stableSelector } = DDSFilterPanelInputSelectItem;\n this._focusElement = `${stableSelector}[value=\"${value}\"]`;\n\n // remove the DDSInputSelect (header) value from list to add an inner child instead\n this._selectedValues = this._selectedValues.filter(\n (e) => e !== headerValue\n );\n\n if (!value) {\n this._selectedValues = this._selectedValues.filter((e) => e !== value);\n\n if (!this._selectedValues.length) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.removeAttribute('has-selections');\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel`\n )?.removeAttribute('has-selections');\n }\n return;\n }\n\n if (!this._selectedValues.includes(value)) {\n this._selectedValues.push(value);\n }\n\n if (lastValue && this._selectedValues.includes(lastValue)) {\n this._selectedValues = this._selectedValues.filter(\n (e) => e !== lastValue\n );\n }\n // enables the clear button\n if (this._selectedValues) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.setAttribute('has-selections', '');\n this.shadowRoot!.querySelector(`${ddsPrefix}-filter-panel`)?.setAttribute(\n 'has-selections',\n ''\n );\n }\n this.renderStatus();\n };\n\n /**\n * Host listener for handling the state change when a checkbox is selected.\n *\n * @param event checkbox select event\n * @private\n */\n @HostListener('document:eventCheckboxSelect')\n protected _handleCheckboxStateChange = (event: CustomEvent) => {\n const { value } = event.detail;\n\n // toggle checkbox in filter panel modal\n this.querySelectorAll(`${ddsPrefix}-filter-panel-checkbox`).forEach((e) => {\n if (e.getAttribute('value') === value) {\n e.toggleAttribute('checked');\n e.closest(`${ddsPrefix}-filter-group-item`)?.setAttribute('open', '');\n\n const { stableSelector } = DDSFilterPanelCheckbox;\n this._focusElement = `${stableSelector}[value=\"${value}\"]`;\n }\n });\n\n const filterGroupItems = this.querySelectorAll(\n `${ddsPrefix}-filter-group-item`\n );\n this.shadowRoot\n ?.querySelectorAll(`${ddsPrefix}-filter-group-item`)\n .forEach((filterGroupItem, index) => {\n if ((filterGroupItem as DDSFilterGroupItem).open) {\n (filterGroupItems[index] as DDSFilterGroupItem).open = true;\n }\n });\n\n // toggle value in list\n if (!this._selectedValues.includes(value)) {\n this._selectedValues.push(value);\n } else {\n this._selectedValues = this._selectedValues.filter((e) => e !== value);\n }\n\n // shows clear button depending on the list's length\n if (!this._selectedValues.length) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.removeAttribute('has-selections');\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel`\n )?.removeAttribute('has-selections');\n } else {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.setAttribute('has-selections', '');\n this.shadowRoot!.querySelector(`${ddsPrefix}-filter-panel`)?.setAttribute(\n 'has-selections',\n ''\n );\n }\n\n this.renderStatus();\n };\n\n /**\n * Host listener for caching filter group items' view all states.\n *\n * @param event filter group item view all toggle event\n * @private\n */\n @HostListener('document:eventFilterGroupViewAllToggle')\n protected _handleFilterGroupViewAllToggle = (event: CustomEvent) => {\n const match = this._filterGroupsAllRevealed.findIndex((entry) => {\n return entry.id === event.detail.id;\n });\n\n if (match !== -1) {\n this._filterGroupsAllRevealed[match].value = event.detail.value;\n } else {\n this._filterGroupsAllRevealed.push(event.detail);\n }\n };\n\n /**\n * handles modal close event\n */\n @HostListener('document:eventModalClose')\n protected modalCloseEvent = () => {\n this.openFilterModal = false;\n };\n\n /**\n * Handles the state change when an input select is selected.\n *\n * @param event title state change\n * @private\n */\n @HostListener('document:eventInputSelect')\n protected _handleInputSelectStateChange = (event: CustomEvent) => {\n const { headerValue } = event.detail;\n\n const { stableSelector } = DDSFilterPanelInputSelect;\n this._focusElement = `${stableSelector}[header-value=\"${headerValue}\"]`;\n\n // toggle checkbox in filter panel modal\n this.querySelectorAll(`${ddsPrefix}-filter-panel-input-select`).forEach(\n (e) => {\n // capture the element counterpart in Filter Panel Modal\n if (e.getAttribute('header-value') === headerValue) {\n const currentGroup = e.closest(`${ddsPrefix}-filter-group-item`);\n currentGroup?.setAttribute('open', '');\n\n // Clears all other sibling items in the Filter Group\n currentGroup\n ?.querySelectorAll(`${ddsPrefix}-filter-panel-input-select`)\n .forEach((inputSelect) => {\n if (inputSelect === e) return;\n this._selectedValues = this._selectedValues.filter(\n (str) => str !== inputSelect.getAttribute('header-value')\n );\n inputSelect.removeAttribute('selected');\n inputSelect.removeAttribute('is-open');\n });\n\n e.toggleAttribute('selected');\n e.toggleAttribute('is-open');\n }\n }\n );\n\n // toggle value in list\n if (!this._selectedValues.includes(headerValue)) {\n this._selectedValues.push(headerValue);\n } else {\n this._selectedValues = this._selectedValues.filter(\n (e) => e !== headerValue\n );\n }\n\n if (!this._selectedValues.length) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.removeAttribute('has-selections');\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel`\n )?.removeAttribute('has-selections');\n }\n\n // enables the clear button\n if (this._selectedValues.length > 0) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.setAttribute('has-selections', '');\n this.shadowRoot!.querySelector(`${ddsPrefix}-filter-panel`)?.setAttribute(\n 'has-selections',\n ''\n );\n }\n this.renderStatus();\n };\n\n @HostListener('document:eventHeadingChange')\n protected _handleHeadingChange = () => {\n this.renderStatus();\n };\n\n /**\n * selected value property\n */\n @property({ type: String, reflect: true })\n selectValue = '';\n\n /**\n * Event handler for the clearing functionality\n *\n * @private\n */\n @HostListener('document:eventSelectionClear')\n protected _handleClearSelection = () => {\n this._selectedValues = [];\n\n // handles clear when clearing from the static filter panel modal\n this._contents.forEach((group) => {\n group\n .querySelectorAll(`${ddsPrefix}-filter-panel-checkbox`)\n .forEach((e) => {\n e.removeAttribute('checked');\n });\n group\n .querySelectorAll(`${ddsPrefix}-filter-panel-input-select-item`)\n .forEach((e) => {\n e.removeAttribute('selected');\n e.removeAttribute('is-open');\n });\n group\n .querySelectorAll(`${ddsPrefix}-filter-panel-input-select`)\n .forEach((e) => {\n e.removeAttribute('selected');\n e.removeAttribute('is-open');\n });\n });\n\n // handles clear when clearing from the filter panel static\n this.shadowRoot\n ?.querySelectorAll(`${ddsPrefix}-filter-panel-checkbox`)\n .forEach((e) => {\n e.removeAttribute('checked');\n });\n this.shadowRoot\n ?.querySelectorAll(`${ddsPrefix}-filter-panel-input-select-item`)\n .forEach((e) => {\n e.removeAttribute('selected');\n e.removeAttribute('is-open');\n });\n this.shadowRoot\n ?.querySelectorAll(`${ddsPrefix}-filter-panel-input-select`)\n .forEach((e) => {\n e.removeAttribute('selected');\n e.removeAttribute('is-open');\n });\n\n // disables the button\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.removeAttribute('has-selections');\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel`\n )?.removeAttribute('has-selections');\n\n this.renderStatus();\n };\n\n /**\n * `true` to open the locale modal.\n */\n @property({ type: Boolean })\n openFilterModal = false;\n\n /**\n * Sets the open modal to true\n *\n * @private\n */\n protected _openModal() {\n this.openFilterModal = true;\n }\n\n /**\n *\n */\n @property()\n _contents: any[] = [];\n\n /**\n * sets the array for the filter button title\n */\n @property()\n _title: any[] = [];\n\n /**\n * sets the selected values into an array\n */\n @property()\n _selectedValues: string[] = [];\n\n /**\n * sets the filter button title\n */\n @property()\n _filterButtonTitle: string = '';\n\n /**\n * stores which filter groups have revealed filters\n */\n @property()\n _filterGroupsAllRevealed: { id: string; value: boolean }[] = [];\n\n @property()\n _isMobile: boolean = window.innerWidth < breakpoint;\n\n /**\n * An element to set focus to on render.\n */\n @state()\n _focusElement: string | null = null;\n\n @HostListener('window:resize')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleWindowResize = (): void => {\n this._isMobile = window.innerWidth < breakpoint;\n };\n\n protected async _querySelectorMobile(id: string): Promise<Element | null> {\n return this.querySelector(id);\n }\n\n protected async _querySelectorDesktop(id: string): Promise<Element | null> {\n let element;\n if (this.shadowRoot) {\n element = this.shadowRoot.querySelector(id);\n }\n return element;\n }\n\n protected async _querySelector(id: string): Promise<Element | null> {\n const { _isMobile } = this;\n let element;\n\n if (_isMobile) {\n element = await this._querySelectorMobile(id);\n } else {\n element = await this._querySelectorDesktop(id);\n }\n return element;\n }\n\n /**\n * Handles `slotchange` event.\n *\n * @param event The event.\n */\n protected _handleSlotChange({ target }: Event) {\n this._contents = (target as HTMLSlotElement)\n .assignedNodes()\n .filter(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n }\n\n protected renderStatus() {\n this._filterButtonTitle = `\n ${this._title[0].innerText}${\n this._selectedValues.length > 0 ? ` (${this._selectedValues.length})` : ''\n }\n `;\n }\n\n /**\n * Handles `slotchange` event.\n *\n * @param event The event.\n */\n protected _handleTitleSlotChange({ target }: Event) {\n this._title = (target as HTMLSlotElement)\n .assignedNodes()\n .filter(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n this._filterButtonTitle = this._title[0].innerText;\n }\n\n /**\n * Renders original content into the modal and listens for changes to this\n * content to then be stored in `this._content`.\n */\n protected _renderModal = (): TemplateResult => html`\n <dds-filter-panel-modal\n ?open=${this.openFilterModal}\n heading=\"${this._filterButtonTitle}\"\n >\n <slot name=\"heading\" @slotchange=\"${this._handleTitleSlotChange}\"></slot>\n <slot @slotchange=\"${this._handleSlotChange}\"></slot>\n </dds-filter-panel-modal>\n `;\n\n /**\n * Renders copies of slotted elements into the desktop presentation.\n */\n protected _renderDesktop = (): TemplateResult => html`\n <dds-filter-panel heading=\"${this._filterButtonTitle}\">\n ${this._title.map((e) => {\n return html` ${unsafeHTML((e as HTMLElement).outerHTML)} `;\n })}\n ${this._contents.map((e) => {\n return html` ${unsafeHTML((e as HTMLElement).outerHTML)} `;\n })}\n </dds-filter-panel>\n `;\n\n render() {\n return html`\n <button class=\"bx--filter-button\" @click=${this._openModal}>\n <div class=\"${prefix}--filter__modal__button\">\n ${this._filterButtonTitle} ${Filter()}\n </div>\n </button>\n ${this._renderModal()} ${this._renderDesktop()}\n `;\n }\n\n protected async updated() {\n const { _focusElement } = this;\n\n if (_focusElement) {\n const targetElement = await this._querySelector(_focusElement);\n\n if (targetElement instanceof HTMLElement) {\n targetElement?.focus();\n }\n\n this._focusElement = null;\n }\n }\n\n /**\n * The name of the custom event captured upon selecting a checkbox\n */\n\n static get eventCheckboxSelect() {\n return `${ddsPrefix}-checkbox-select`;\n }\n\n /**\n * The name of the custom event captured upon selecting an input select item.\n */\n\n static get eventInputSelectItem() {\n return `${ddsPrefix}-filter-panel-input-select`;\n }\n\n /**\n * The name of the custom event captured upon activating \"view all\" button in\n * a filter group item\n */\n\n static get eventFilterGroupViewAllToggle() {\n return `${ddsPrefix}-filter-group-view-all-toggle`;\n }\n\n /**\n * The name of the custom event captured upon closing the modal\n */\n\n static get eventModalClose() {\n return `${prefix}-modal-beingclosed`;\n }\n\n /**\n * The name of the custom event capture upon selecting an input select item\n */\n\n static get eventInputSelect() {\n return `${ddsPrefix}-filter-panel-input-select-title`;\n }\n\n /**\n * The name of the custom event fired to clear selections\n */\n\n static get eventSelectionClear() {\n return `${ddsPrefix}-selection-clear`;\n }\n\n /**\n * The name of the custom event capture when the heading changes\n */\n\n static get eventHeadingChange() {\n return `${ddsPrefix}-filter-panel-heading-change`;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}-filter-panel-composite`;\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 DDSFilterPanelComposite;\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,aAAa,EACbC,IAAI,EACJC,UAAU,EACVC,QAAQ,EACRC,KAAK,QAEA,aAAa;AACpB,OAAOC,QAAQ,MAAM,6CAA6C;AAClE,OAAOC,MAAM,MAAM,qDAAqD;AACxE,OAAOC,iBAAiB,MAAM,kEAAkE;AAChG,SAASC,YAAY,EAAEC,WAAW,QAAQ,gBAAgB;AAC1D,OAAO,mBAAgB;AACvB,OAAO,mBAAgB;AACvB,OAAO,yBAAsB;AAC7B,SAASC,UAAU,QAAQ,oCAAoC;AAC/D,OAAOC,YAAY,MAAM,sEAAsE;AAC/F,OAAOC,WAAW,MAAM,kFAA+E;AACvG,OAAOC,mBAAmB,MAAM,yCAAsC;AACtE,OAAOC,MAAM,MAAM,yBAAqB;AACxC,OAAO,kEAAkE;AAEzE,OAAOC,sBAAsB,MAAM,4BAAyB;AAC5D,OAAOC,yBAAyB,MAAM,gCAA6B;AACnE,OAAOC,6BAA6B,MAAM,qCAAkC;AAE5E,MAAM;EAAEC;AAAO,CAAC,GAAGb,QAAQ;AAC3B,MAAM;EAAEc,YAAY,EAAEC;AAAU,CAAC,GAAGR,WAAW;AAE/C,MAAMS,UAAU,GAAGC,UAAU,CAACb,WAAW,CAACc,EAAE,CAACC,KAAK,CAAC,GAAGhB,YAAY;;AAElE;AACA;AACA;AACA;AACA;AAJA,IAMMiB,uBAAuB,cAD5BzB,aAAa,CAAE,GAAEoB,SAAU,yBAAwB,CAAC;EAArD,MACMK,uBAAuB,4BAE3B;IAAA;MAAA;MAAA;IAAA;EAqgBF;EAAC;IAAA,GAvgBKA,uBAAuB;IAAA;MAAA;MAAA,aAS1Bd,YAAY,CAAC,+BAA+B,CAAC;MAAA;MAAA;QAAA,OACCe,KA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AAI;QAC3B;MACF;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAIA,+BAAiC;QAC/B,OAAQ,GAAEZ,SAAU,kBAAiB;MACvC;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAIA,gCAAkC;QAChC,OAAQ,GAAEA,SAAU,4BAA2B;MACjD;;MAEA;AACF;AACA;AACA;IAHE;MAAA;MAAA;MAAA;MAAA,OAKA,yCAA2C;QACzC,OAAQ,GAAEA,SAAU,+BAA8B;MACpD;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAIA,2BAA6B;QAC3B,OAAQ,GAAEF,MAAO,oBAAmB;MACtC;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAIA,4BAA8B;QAC5B,OAAQ,GAAEE,SAAU,kCAAiC;MACvD;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAIA,+BAAiC;QAC/B,OAAQ,GAAEA,SAAU,kBAAiB;MACvC;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAIA,8BAAgC;QAC9B,OAAQ,GAAEA,SAAU,8BAA6B;MACnD;IAAC;MAAA;MAAA;MAAA;MAAA,OAED,0BAA4B;QAC1B,OAAQ,GAAEA,SAAU,yBAAwB;MAC9C;IAAC;MAAA;MAAA;MAAA;MAAA;QAAA,OAEeN,MAAM;MAAA;IAAA;EAAA;AAAA,GAtgBcP,iBAAiB,CACrDM,mBAAmB,CAACX,UAAU,CAAC,CAChC,GAugBD;AACA,eAAeuB,uBAAuB"}
1
+ {"version":3,"file":"filter-panel-composite.js","names":["customElement","html","LitElement","property","state","settings","Filter","HostListenerMixin","baseFontSize","breakpoints","unsafeHTML","HostListener","ddsSettings","StableSelectorMixin","styles","DDSFilterPanelCheckbox","DDSFilterPanelInputSelect","DDSFilterPanelInputSelectItem","prefix","stablePrefix","ddsPrefix","breakpoint","parseFloat","lg","width","DDSFilterPanelComposite","event","value","lastValue","headerValue","detail","stableSelector","_focusElement","_selectedValues","filter","e","length","shadowRoot","querySelector","removeAttribute","includes","push","setAttribute","renderStatus","querySelectorAll","forEach","getAttribute","toggleAttribute","closest","filterGroupItems","filterGroupItem","index","open","match","_filterGroupsAllRevealed","findIndex","entry","id","openFilterModal","currentGroup","inputSelect","str","type","String","reflect","_contents","group","Boolean","window","innerWidth","_isMobile","element","_querySelectorMobile","_querySelectorDesktop","target","assignedNodes","node","nodeType","Node","TEXT_NODE","textContent","trim","_filterButtonTitle","_title","innerText","_handleTitleSlotChange","_handleSlotChange","map","outerHTML","_openModal","_renderModal","_renderDesktop","targetElement","_querySelector","HTMLElement","focus"],"sources":["components/filter-panel/filter-panel-composite.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 {\n customElement,\n html,\n LitElement,\n property,\n state,\n TemplateResult,\n} from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport Filter from '@carbon/web-components/es/icons/filter/16.js';\nimport HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';\nimport { baseFontSize, breakpoints } from '@carbon/layout';\nimport './filter-group';\nimport './filter-panel';\nimport './filter-panel-modal';\nimport { unsafeHTML } from 'lit-html/directives/unsafe-html.js';\nimport HostListener from '@carbon/web-components/es/globals/decorators/host-listener.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport styles from './filter-panel.scss';\nimport '@carbon/web-components/es/components/checkbox/checkbox.js';\nimport DDSFilterGroupItem from './filter-group-item';\nimport DDSFilterPanelCheckbox from './filter-panel-checkbox';\nimport DDSFilterPanelInputSelect from './filter-panel-input-select';\nimport DDSFilterPanelInputSelectItem from './filter-panel-input-select-item';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\nconst breakpoint = parseFloat(breakpoints.lg.width) * baseFontSize;\n\n/**\n * Filter panel composite\n *\n * @element dds-filter-panel-composite\n */\n@customElement(`${ddsPrefix}-filter-panel-composite`)\nclass DDSFilterPanelComposite extends HostListenerMixin(\n StableSelectorMixin(LitElement)\n) {\n /**\n * Host listener for handling the state change when a input select item is selected.\n *\n * @param event content state change\n * @private\n */\n @HostListener('document:eventInputSelectItem')\n protected _handleInputSelectItemStateChange = (event: CustomEvent) => {\n const { value, lastValue, headerValue } = event.detail;\n\n const { stableSelector } = DDSFilterPanelInputSelectItem;\n this._focusElement = `${stableSelector}[value=\"${value}\"]`;\n\n // remove the DDSInputSelect (header) value from list to add an inner child instead\n this._selectedValues = this._selectedValues.filter(\n (e) => e !== headerValue\n );\n\n if (!value) {\n this._selectedValues = this._selectedValues.filter((e) => e !== value);\n\n if (!this._selectedValues.length) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.removeAttribute('has-selections');\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel`\n )?.removeAttribute('has-selections');\n }\n return;\n }\n\n if (!this._selectedValues.includes(value)) {\n this._selectedValues.push(value);\n }\n\n if (lastValue && this._selectedValues.includes(lastValue)) {\n this._selectedValues = this._selectedValues.filter(\n (e) => e !== lastValue\n );\n }\n // enables the clear button\n if (this._selectedValues) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.setAttribute('has-selections', '');\n this.shadowRoot!.querySelector(`${ddsPrefix}-filter-panel`)?.setAttribute(\n 'has-selections',\n ''\n );\n }\n this.renderStatus();\n };\n\n /**\n * Host listener for handling the state change when a checkbox is selected.\n *\n * @param event checkbox select event\n * @private\n */\n @HostListener('document:eventCheckboxSelect')\n protected _handleCheckboxStateChange = (event: CustomEvent) => {\n const { value } = event.detail;\n\n // toggle checkbox in filter panel modal\n this.querySelectorAll(`${ddsPrefix}-filter-panel-checkbox`).forEach((e) => {\n if (e.getAttribute('value') === value) {\n e.toggleAttribute('checked');\n e.closest(`${ddsPrefix}-filter-group-item`)?.setAttribute('open', '');\n\n const { stableSelector } = DDSFilterPanelCheckbox;\n this._focusElement = `${stableSelector}[value=\"${value}\"]`;\n }\n });\n\n const filterGroupItems = this.querySelectorAll(\n `${ddsPrefix}-filter-group-item`\n );\n this.shadowRoot\n ?.querySelectorAll(`${ddsPrefix}-filter-group-item`)\n .forEach((filterGroupItem, index) => {\n if ((filterGroupItem as DDSFilterGroupItem).open) {\n (filterGroupItems[index] as DDSFilterGroupItem).open = true;\n }\n });\n\n // toggle value in list\n if (!this._selectedValues.includes(value)) {\n this._selectedValues.push(value);\n } else {\n this._selectedValues = this._selectedValues.filter((e) => e !== value);\n }\n\n // shows clear button depending on the list's length\n if (!this._selectedValues.length) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.removeAttribute('has-selections');\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel`\n )?.removeAttribute('has-selections');\n } else {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.setAttribute('has-selections', '');\n this.shadowRoot!.querySelector(`${ddsPrefix}-filter-panel`)?.setAttribute(\n 'has-selections',\n ''\n );\n }\n\n this.renderStatus();\n };\n\n /**\n * Host listener for caching filter group items' view all states.\n *\n * @param event filter group item view all toggle event\n * @private\n */\n @HostListener('document:eventFilterGroupViewAllToggle')\n protected _handleFilterGroupViewAllToggle = (event: CustomEvent) => {\n const match = this._filterGroupsAllRevealed.findIndex((entry) => {\n return entry.id === event.detail.id;\n });\n\n if (match !== -1) {\n this._filterGroupsAllRevealed[match].value = event.detail.value;\n } else {\n this._filterGroupsAllRevealed.push(event.detail);\n }\n };\n\n /**\n * handles modal close event\n */\n @HostListener('document:eventModalClose')\n protected modalCloseEvent = () => {\n this.openFilterModal = false;\n };\n\n /**\n * Handles the state change when an input select is selected.\n *\n * @param event title state change\n * @private\n */\n @HostListener('document:eventInputSelect')\n protected _handleInputSelectStateChange = (event: CustomEvent) => {\n const { headerValue } = event.detail;\n\n const { stableSelector } = DDSFilterPanelInputSelect;\n this._focusElement = `${stableSelector}[header-value=\"${headerValue}\"]`;\n\n // toggle checkbox in filter panel modal\n this.querySelectorAll(`${ddsPrefix}-filter-panel-input-select`).forEach(\n (e) => {\n // capture the element counterpart in Filter Panel Modal\n if (e.getAttribute('header-value') === headerValue) {\n const currentGroup = e.closest(`${ddsPrefix}-filter-group-item`);\n currentGroup?.setAttribute('open', '');\n\n // Clears all other sibling items in the Filter Group\n currentGroup\n ?.querySelectorAll(`${ddsPrefix}-filter-panel-input-select`)\n .forEach((inputSelect) => {\n if (inputSelect === e) return;\n this._selectedValues = this._selectedValues.filter(\n (str) => str !== inputSelect.getAttribute('header-value')\n );\n inputSelect.removeAttribute('selected');\n inputSelect.removeAttribute('is-open');\n });\n\n e.toggleAttribute('selected');\n e.toggleAttribute('is-open');\n }\n }\n );\n\n // toggle value in list\n if (!this._selectedValues.includes(headerValue)) {\n this._selectedValues.push(headerValue);\n } else {\n this._selectedValues = this._selectedValues.filter(\n (e) => e !== headerValue\n );\n }\n\n if (!this._selectedValues.length) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.removeAttribute('has-selections');\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel`\n )?.removeAttribute('has-selections');\n }\n\n // enables the clear button\n if (this._selectedValues.length > 0) {\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.setAttribute('has-selections', '');\n this.shadowRoot!.querySelector(`${ddsPrefix}-filter-panel`)?.setAttribute(\n 'has-selections',\n ''\n );\n }\n this.renderStatus();\n };\n\n @HostListener('document:eventHeadingChange')\n protected _handleHeadingChange = () => {\n this.renderStatus();\n };\n\n /**\n * selected value property\n */\n @property({ type: String, reflect: true })\n selectValue = '';\n\n /**\n * Event handler for the clearing functionality\n *\n * @private\n */\n @HostListener('document:eventSelectionClear')\n protected _handleClearSelection = () => {\n this._selectedValues = [];\n\n // handles clear when clearing from the static filter panel modal\n this._contents.forEach((group) => {\n group\n .querySelectorAll(`${ddsPrefix}-filter-panel-checkbox`)\n .forEach((e) => {\n e.removeAttribute('checked');\n });\n group\n .querySelectorAll(`${ddsPrefix}-filter-panel-input-select-item`)\n .forEach((e) => {\n e.removeAttribute('selected');\n e.removeAttribute('is-open');\n });\n group\n .querySelectorAll(`${ddsPrefix}-filter-panel-input-select`)\n .forEach((e) => {\n e.removeAttribute('selected');\n e.removeAttribute('is-open');\n });\n });\n\n // handles clear when clearing from the filter panel static\n this.shadowRoot\n ?.querySelectorAll(`${ddsPrefix}-filter-panel-checkbox`)\n .forEach((e) => {\n e.removeAttribute('checked');\n });\n this.shadowRoot\n ?.querySelectorAll(`${ddsPrefix}-filter-panel-input-select-item`)\n .forEach((e) => {\n e.removeAttribute('selected');\n e.removeAttribute('is-open');\n });\n this.shadowRoot\n ?.querySelectorAll(`${ddsPrefix}-filter-panel-input-select`)\n .forEach((e) => {\n e.removeAttribute('selected');\n e.removeAttribute('is-open');\n });\n\n // disables the button\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel-modal`\n )?.removeAttribute('has-selections');\n this.shadowRoot!.querySelector(\n `${ddsPrefix}-filter-panel`\n )?.removeAttribute('has-selections');\n\n this.renderStatus();\n };\n\n /**\n * `true` to open the locale modal.\n */\n @property({ type: Boolean })\n openFilterModal = false;\n\n /**\n * Sets the open modal to true\n *\n * @private\n */\n protected _openModal() {\n this.openFilterModal = true;\n }\n\n /**\n *\n */\n @property()\n _contents: any[] = [];\n\n /**\n * sets the array for the filter button title\n */\n @property()\n _title: any[] = [];\n\n /**\n * sets the selected values into an array\n */\n @property()\n _selectedValues: string[] = [];\n\n /**\n * sets the filter button title\n */\n @property()\n _filterButtonTitle: string = '';\n\n /**\n * stores which filter groups have revealed filters\n */\n @property()\n _filterGroupsAllRevealed: { id: string; value: boolean }[] = [];\n\n @property()\n _isMobile: boolean = window.innerWidth < breakpoint;\n\n /**\n * An element to set focus to on render.\n */\n @state()\n _focusElement: string | null = null;\n\n @HostListener('window:resize')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleWindowResize = (): void => {\n this._isMobile = window.innerWidth < breakpoint;\n };\n\n protected async _querySelectorMobile(id: string): Promise<Element | null> {\n return this.querySelector(id);\n }\n\n protected async _querySelectorDesktop(id: string): Promise<Element | null> {\n let element;\n if (this.shadowRoot) {\n element = this.shadowRoot.querySelector(id);\n }\n return element;\n }\n\n protected async _querySelector(id: string): Promise<Element | null> {\n const { _isMobile } = this;\n let element;\n\n if (_isMobile) {\n element = await this._querySelectorMobile(id);\n } else {\n element = await this._querySelectorDesktop(id);\n }\n return element;\n }\n\n /**\n * Handles `slotchange` event.\n *\n * @param event The event.\n */\n protected _handleSlotChange({ target }: Event) {\n this._contents = (target as HTMLSlotElement)\n .assignedNodes()\n .filter(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n }\n\n protected renderStatus() {\n this._filterButtonTitle = `\n ${this._title[0].innerText}${\n this._selectedValues.length > 0 ? ` (${this._selectedValues.length})` : ''\n }\n `;\n }\n\n /**\n * Handles `slotchange` event.\n *\n * @param event The event.\n */\n protected _handleTitleSlotChange({ target }: Event) {\n this._title = (target as HTMLSlotElement)\n .assignedNodes()\n .filter(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n this._filterButtonTitle = this._title[0].innerText;\n }\n\n /**\n * Renders original content into the modal and listens for changes to this\n * content to then be stored in `this._content`.\n */\n protected _renderModal = (): TemplateResult => html`\n <dds-filter-panel-modal\n ?open=${this.openFilterModal}\n heading=\"${this._filterButtonTitle}\"\n >\n <slot name=\"heading\" @slotchange=\"${this._handleTitleSlotChange}\"></slot>\n <slot @slotchange=\"${this._handleSlotChange}\"></slot>\n </dds-filter-panel-modal>\n `;\n\n /**\n * Renders copies of slotted elements into the desktop presentation.\n */\n protected _renderDesktop = (): TemplateResult => html`\n <dds-filter-panel heading=\"${this._filterButtonTitle}\">\n ${this._title.map((e) => {\n return html` ${unsafeHTML((e as HTMLElement).outerHTML)} `;\n })}\n ${this._contents.map((e) => {\n return html` ${unsafeHTML((e as HTMLElement).outerHTML)} `;\n })}\n </dds-filter-panel>\n `;\n\n render() {\n return html`\n <button class=\"bx--filter-button\" @click=${this._openModal}>\n <div class=\"${prefix}--filter__modal__button\">\n ${this._filterButtonTitle} ${Filter()}\n </div>\n </button>\n ${this._renderModal()} ${this._renderDesktop()}\n `;\n }\n\n protected async updated() {\n const { _focusElement } = this;\n\n if (_focusElement) {\n const targetElement = await this._querySelector(_focusElement);\n\n if (targetElement instanceof HTMLElement) {\n targetElement?.focus();\n }\n\n this._focusElement = null;\n }\n }\n\n /**\n * The name of the custom event captured upon selecting a checkbox\n */\n\n static get eventCheckboxSelect() {\n return `${ddsPrefix}-checkbox-select`;\n }\n\n /**\n * The name of the custom event captured upon selecting an input select item.\n */\n\n static get eventInputSelectItem() {\n return `${ddsPrefix}-filter-panel-input-select`;\n }\n\n /**\n * The name of the custom event captured upon activating \"view all\" button in\n * a filter group item\n */\n\n static get eventFilterGroupViewAllToggle() {\n return `${ddsPrefix}-filter-group-view-all-toggle`;\n }\n\n /**\n * The name of the custom event captured upon closing the modal\n */\n\n static get eventModalClose() {\n return `${prefix}-modal-beingclosed`;\n }\n\n /**\n * The name of the custom event capture upon selecting an input select item\n */\n\n static get eventInputSelect() {\n return `${ddsPrefix}-filter-panel-input-select-title`;\n }\n\n /**\n * The name of the custom event fired to clear selections\n */\n\n static get eventSelectionClear() {\n return `${ddsPrefix}-selection-clear`;\n }\n\n /**\n * The name of the custom event capture when the heading changes\n */\n\n static get eventHeadingChange() {\n return `${ddsPrefix}-filter-panel-heading-change`;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}-filter-panel-composite`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\n/* @__GENERATE_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A;MAAA,OAIA,+BAAiC;QAC/B,OAAQ,GAAEZ,SAAU,kBAAiB;MACvC;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAIA,gCAAkC;QAChC,OAAQ,GAAEA,SAAU,4BAA2B;MACjD;;MAEA;AACF;AACA;AACA;IAHE;MAAA;MAAA;MAAA;MAAA,OAKA,yCAA2C;QACzC,OAAQ,GAAEA,SAAU,+BAA8B;MACpD;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAIA,2BAA6B;QAC3B,OAAQ,GAAEF,MAAO,oBAAmB;MACtC;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAIA,4BAA8B;QAC5B,OAAQ,GAAEE,SAAU,kCAAiC;MACvD;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAIA,+BAAiC;QAC/B,OAAQ,GAAEA,SAAU,kBAAiB;MACvC;;MAEA;AACF;AACA;IAFE;MAAA;MAAA;MAAA;MAAA,OAIA,8BAAgC;QAC9B,OAAQ,GAAEA,SAAU,8BAA6B;MACnD;IAAC;MAAA;MAAA;MAAA;MAAA,OAED,0BAA4B;QAC1B,OAAQ,GAAEA,SAAU,yBAAwB;MAC9C;IAAC;MAAA;MAAA;MAAA;MAAA;QAAA,OAEeN,MAAM;MAAA;IAAA;EAAA;AAAA,GAtgBcP,iBAAiB,CACrDM,mBAAmB,CAACX,UAAU,CAAC,CAChC,GAugBD;AACA,eAAeuB,uBAAuB"}
@@ -24,9 +24,6 @@ declare const DDSFilterPanelInputSelectItem_base: (new (...args: any[]) => {
24
24
  readonly offsetTop: number;
25
25
  readonly offsetWidth: number;
26
26
  outerText: string;
27
- /**
28
- * Property for the input select item value
29
- */
30
27
  spellcheck: boolean;
31
28
  title: string;
32
29
  translate: boolean;
@@ -1 +1 @@
1
- {"version":3,"sources":["components/filter-panel/filter-panel-input-select-item.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,O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*\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 { customElement, html, property, LitElement } from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport Close from '@carbon/carbon-web-components/es/icons/close/16.js';\nimport FocusMixin from '@carbon/carbon-web-components/es/globals/mixins/focus.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport styles from './filter-panel.scss';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * The input select inner dropdown.\n *\n * @element dds-filter-panel-input-select-item\n */\n@customElement(`${ddsPrefix}-filter-panel-input-select-item`)\nclass DDSFilterPanelInputSelectItem extends FocusMixin(\n StableSelectorMixin(LitElement)\n) {\n /**\n * Property for the input select item value\n */\n @property()\n _title: string = '';\n\n /**\n * sets the input select dropdown to unselected\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n /**\n * Handles `slotchange` event.\n *\n * @param event The event.\n */\n protected _handleSlotChange({ target }: Event) {\n this._title = (target as HTMLSlotElement).assignedNodes()[0]\n .textContent as string;\n\n this.setAttribute(\n 'aria-label',\n `${this._title}, ${this.selected ? 'selected' : 'unselected'}`\n );\n }\n\n connectedCallback() {\n if (!this.hasAttribute('tabindex')) {\n this.setAttribute('tabindex', '0');\n }\n\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'button');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (changedProperties.has('selected')) {\n this.setAttribute('aria-selected', `${String(Boolean(this.selected))}`);\n this.setAttribute(\n 'aria-label',\n `${this._title}, ${this.selected ? 'selected' : 'unselected'}`\n );\n }\n }\n\n render() {\n return html`\n <slot @slotchange=${this._handleSlotChange}></slot>\n <div class=\"${prefix}--close__icon\">\n ${this.selected ? Close() : null}\n </div>\n `;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}-filter-panel-input-select-item`;\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSFilterPanelInputSelectItem;\n"]}
1
+ {"version":3,"sources":["components/filter-panel/filter-panel-input-select-item.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAiC,UAAU,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWxE;;;;GAIG;AACH,cACM,6BAA8B,SAAQ,kCAE3C;IACC;;OAEG;IAEH,MAAM,EAAE,MAAM,CAAM;IAEpB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK;IAU7C,iBAAiB;IAWjB,OAAO,CAAC,iBAAiB,KAAA;IAUzB,MAAM;IASN,MAAM,KAAK,cAAc,WAExB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,6BAA6B,CAAC","file":"filter-panel-input-select-item.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 { customElement, html, property, LitElement } from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport Close from '@carbon/web-components/es/icons/close/16.js';\nimport FocusMixin from '@carbon/web-components/es/globals/mixins/focus.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport styles from './filter-panel.scss';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * The input select inner dropdown.\n *\n * @element dds-filter-panel-input-select-item\n */\n@customElement(`${ddsPrefix}-filter-panel-input-select-item`)\nclass DDSFilterPanelInputSelectItem extends FocusMixin(\n StableSelectorMixin(LitElement)\n) {\n /**\n * Property for the input select item value\n */\n @property()\n _title: string = '';\n\n /**\n * sets the input select dropdown to unselected\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n /**\n * Handles `slotchange` event.\n *\n * @param event The event.\n */\n protected _handleSlotChange({ target }: Event) {\n this._title = (target as HTMLSlotElement).assignedNodes()[0]\n .textContent as string;\n\n this.setAttribute(\n 'aria-label',\n `${this._title}, ${this.selected ? 'selected' : 'unselected'}`\n );\n }\n\n connectedCallback() {\n if (!this.hasAttribute('tabindex')) {\n this.setAttribute('tabindex', '0');\n }\n\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'button');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (changedProperties.has('selected')) {\n this.setAttribute('aria-selected', `${String(Boolean(this.selected))}`);\n this.setAttribute(\n 'aria-label',\n `${this._title}, ${this.selected ? 'selected' : 'unselected'}`\n );\n }\n }\n\n render() {\n return html`\n <slot @slotchange=${this._handleSlotChange}></slot>\n <div class=\"${prefix}--close__icon\">\n ${this.selected ? Close() : null}\n </div>\n `;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}-filter-panel-input-select-item`;\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSFilterPanelInputSelectItem;\n"]}
@@ -14,8 +14,8 @@ let _ = t => t,
14
14
 
15
15
  import { customElement, html, property, LitElement } from 'lit-element';
16
16
  import settings from 'carbon-components/es/globals/js/settings.js';
17
- import Close from '@carbon/carbon-web-components/es/icons/close/16.js';
18
- import FocusMixin from '@carbon/carbon-web-components/es/globals/mixins/focus.js';
17
+ import Close from '@carbon/web-components/es/icons/close/16.js';
18
+ import FocusMixin from '@carbon/web-components/es/globals/mixins/focus.js';
19
19
  import ddsSettings from "../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js";
20
20
  import StableSelectorMixin from "../../globals/mixins/stable-selector.js";
21
21
  import styles from "././filter-panel.css.js";
@@ -1 +1 @@
1
- {"version":3,"file":"filter-panel-input-select-item.js","names":["customElement","html","property","LitElement","settings","Close","FocusMixin","ddsSettings","StableSelectorMixin","styles","prefix","stablePrefix","ddsPrefix","DDSFilterPanelInputSelectItem","type","Boolean","reflect","target","_title","assignedNodes","textContent","setAttribute","selected","hasAttribute","changedProperties","has","String","_handleSlotChange"],"sources":["components/filter-panel/filter-panel-input-select-item.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 { customElement, html, property, LitElement } from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport Close from '@carbon/carbon-web-components/es/icons/close/16.js';\nimport FocusMixin from '@carbon/carbon-web-components/es/globals/mixins/focus.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport styles from './filter-panel.scss';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * The input select inner dropdown.\n *\n * @element dds-filter-panel-input-select-item\n */\n@customElement(`${ddsPrefix}-filter-panel-input-select-item`)\nclass DDSFilterPanelInputSelectItem extends FocusMixin(\n StableSelectorMixin(LitElement)\n) {\n /**\n * Property for the input select item value\n */\n @property()\n _title: string = '';\n\n /**\n * sets the input select dropdown to unselected\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n /**\n * Handles `slotchange` event.\n *\n * @param event The event.\n */\n protected _handleSlotChange({ target }: Event) {\n this._title = (target as HTMLSlotElement).assignedNodes()[0]\n .textContent as string;\n\n this.setAttribute(\n 'aria-label',\n `${this._title}, ${this.selected ? 'selected' : 'unselected'}`\n );\n }\n\n connectedCallback() {\n if (!this.hasAttribute('tabindex')) {\n this.setAttribute('tabindex', '0');\n }\n\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'button');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (changedProperties.has('selected')) {\n this.setAttribute('aria-selected', `${String(Boolean(this.selected))}`);\n this.setAttribute(\n 'aria-label',\n `${this._title}, ${this.selected ? 'selected' : 'unselected'}`\n );\n }\n }\n\n render() {\n return html`\n <slot @slotchange=${this._handleSlotChange}></slot>\n <div class=\"${prefix}--close__icon\">\n ${this.selected ? Close() : null}\n </div>\n `;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}-filter-panel-input-select-item`;\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSFilterPanelInputSelectItem;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,aAAa;AACvE,OAA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,YAAY,CAAC,MAAM,CAAC,EAAE;UAC9B,IAAI,CAACF,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC;QACrC;QACA,qBAtCER,6BAA6B;MAuCjC;IAAC;MAAA;MAAA;MAAA,OAED,iBAAQW,iBAAiB,EAAE;QACzB,IAAIA,iBAAiB,CAACC,GAAG,CAAC,UAAU,CAAC,EAAE;UACrC,IAAI,CAACJ,YAAY,CAAC,eAAe,EAAG,GAAEK,MAAM,CAACX,OAAO,CAAC,IAAI,CAACO,QAAQ,CAAC,CAAE,EAAC,CAAC;UACvE,IAAI,CAACD,YAAY,CACf,YAAY,EACX,GAAE,IAAI,CAACH,MAAO,KAAI,IAAI,CAACI,QAAQ,GAAG,UAAU,GAAG,YAAa,EAAC,CAC/D;QACH;MACF;IAAC;MAAA;MAAA;MAAA,OAED,kBAAS;QACP,OAAOrB,IAAI,cAAC;AAChB,0BAAwB,CAAyB;AACjD,oBAAkB,CAAS;AAC3B,UAAQ,CAAiC;AACzC;AACA,KAAI,GAJsB,IAAI,CAAC0B,iBAAiB,EAC5BjB,MAAM,EAChB,IAAI,CAACY,QAAQ,GAAGjB,KAAK,EAAE,GAAG,IAAI;MAGtC;IAAC;MAAA;MAAA;MAAA;MAAA,OAED,0BAA4B;QAC1B,OAAQ,GAAEO,SAAU,iCAAgC;MACtD;IAAC;MAAA;MAAA;MAAA;MAAA;QAAA,OAEeH,MAAM;MAAA;IAAA;EAAA;AAAA,GAhEoBH,UAAU,CACpDE,mBAAmB,CAACL,UAAU,CAAC,CAChC,GAiED;AACA,eAAeU,6BAA6B"}
1
+ {"version":3,"file":"filter-panel-input-select-item.js","names":["customElement","html","property","LitElement","settings","Close","FocusMixin","ddsSettings","StableSelectorMixin","styles","prefix","stablePrefix","ddsPrefix","DDSFilterPanelInputSelectItem","type","Boolean","reflect","target","_title","assignedNodes","textContent","setAttribute","selected","hasAttribute","changedProperties","has","String","_handleSlotChange"],"sources":["components/filter-panel/filter-panel-input-select-item.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 { customElement, html, property, LitElement } from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport Close from '@carbon/web-components/es/icons/close/16.js';\nimport FocusMixin from '@carbon/web-components/es/globals/mixins/focus.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport styles from './filter-panel.scss';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * The input select inner dropdown.\n *\n * @element dds-filter-panel-input-select-item\n */\n@customElement(`${ddsPrefix}-filter-panel-input-select-item`)\nclass DDSFilterPanelInputSelectItem extends FocusMixin(\n StableSelectorMixin(LitElement)\n) {\n /**\n * Property for the input select item value\n */\n @property()\n _title: string = '';\n\n /**\n * sets the input select dropdown to unselected\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n /**\n * Handles `slotchange` event.\n *\n * @param event The event.\n */\n protected _handleSlotChange({ target }: Event) {\n this._title = (target as HTMLSlotElement).assignedNodes()[0]\n .textContent as string;\n\n this.setAttribute(\n 'aria-label',\n `${this._title}, ${this.selected ? 'selected' : 'unselected'}`\n );\n }\n\n connectedCallback() {\n if (!this.hasAttribute('tabindex')) {\n this.setAttribute('tabindex', '0');\n }\n\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'button');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (changedProperties.has('selected')) {\n this.setAttribute('aria-selected', `${String(Boolean(this.selected))}`);\n this.setAttribute(\n 'aria-label',\n `${this._title}, ${this.selected ? 'selected' : 'unselected'}`\n );\n }\n }\n\n render() {\n return html`\n <slot @slotchange=${this._handleSlotChange}></slot>\n <div class=\"${prefix}--close__icon\">\n ${this.selected ? Close() : null}\n </div>\n `;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}-filter-panel-input-select-item`;\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSFilterPanelInputSelectItem;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,aAAa;AACvE,OAAOC,QAAQ,MAAM,6CAA6C;AAClE,OAAOC,KAAK,MAAM,6CAA6C;AAC/D,OAAOC,UAAU,MAAM,mDAAmD;AAC1E,OAAOC,WAAW,MAAM,kFAA+E;AACvG,OAAOC,mBAAmB,MAAM,yCAAsC;AACtE,OAAOC,MAAM,MAAM,yBAAqB;AAExC,MAAM;EAAEC;AAAO,CAAC,GAAGN,QAAQ;AAC3B,MAAM;EAAEO,YAAY,EAAEC;AAAU,CAAC,GAAGL,WAAW;;AAE/C;AACA;AACA;AACA;AACA;AAJA,IAMMM,6BAA6B,cADlCb,aAAa,CAAE,GAAEY,SAAU,iCAAgC,CAAC;EAA7D,MACMC,6BAA6B,qBAEjC;IAAA;MAAA;MAAA;IAAA;EA+DF;EAAC;IAAA,GAjEKA,6BAA6B;IAAA;MAAA;MAAA,aAMhCX,QAAQ,EAAE;MAAA;MAAA;QAAA,OACM,EAAE;MAAA;IAAA;MAAA;MAAA,aAKlBA,QAAQ,CAAC;QAAEY,IAAI,EAAEC,OAAO;QAAEC,OAAO,EAAE;MAAK,CAAC,CAAC;MAAA;MAAA;QAAA,OAChC,KAAK;MAAA;IAAA;MAAA;MAAA;MAAA;MAVhB;AACF;AACA;;MAIE;AACF;AACA;;MAIE;AACF;AACA;AACA;AACA;MACE,2BAA4B;QAAEC;MAAc,CAAC,EAAE;QAC7C,IAAI,CAACC,MAAM,GAAID,MAAM,CAAqBE,aAAa,EAAE,CAAC,CAAC,CAAC,CACzDC,WAAqB;QAExB,IAAI,CAACC,YAAY,CACf,YAAY,EACX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,GAiED;AACA,eAAeU,6BAA6B"}
@@ -18,7 +18,11 @@ declare const DDSFilterPanelInputSelect_base: (new (...args: any[]) => {
18
18
  inert: boolean;
19
19
  innerText: string;
20
20
  lang: string;
21
- readonly offsetHeight: number;
21
+ readonly offsetHeight: number; /**
22
+ * The container of the input select.
23
+ *
24
+ * @element dds-filter-panel-input-select
25
+ */
22
26
  readonly offsetLeft: number;
23
27
  readonly offsetParent: Element | null;
24
28
  readonly offsetTop: number;
@@ -1 +1 @@
1
- {"version":3,"sources":["components/filter-panel/filter-panel-input-select.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAiC,UAAU,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYxE;;;;GAIG;AACH,cACM,yBAA0B,SAAQ,8BAEvC;IAEC,SAAS,SAAM;IAEf;;OAEG;IAEH,MAAM,UAAS;IAEf;;OAEG;IAEH,KAAK,EAAG,MAAM,CAAC;IAEf;;OAEG;IAEH,QAAQ,EAAE,OAAO,CAAS;IAE1B;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAM;IAEnB;;OAEG;IAEH,SAAS,EAAE,GAAG,CAAC;IAEf,MAAM,KAAK,YAAY,WAEtB;IAED;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,CAAC,KAAK,KAAA;IA+BjC;;;;;OAKG;IACH,OAAO,CAAC,cAAc,CAIpB;IAEF;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB,CAIzB;IAEF;;OAEG;IAEH,MAAM,EAAE,GAAG,EAAE,CAAM;IAEnB;;OAEG;IAEH,WAAW,EAAE,MAAM,CAAM;IAEzB;;;;OAIG;IACH,SAAS,CAAC,kBAAkB;IAgB5B;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK;IAQ7C,OAAO,CAAC,iBAAiB,KAAA;IAazB,MAAM;IAgCN;;OAEG;IACH,MAAM,KAAK,gBAAgB,WAE1B;IAED;;OAEG;IACH,MAAM,KAAK,uBAAuB,WAEjC;IAED,MAAM,KAAK,cAAc,WAExB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,yBAAyB,CAAC","file":"filter-panel-input-select.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 { customElement, html, property, LitElement } from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport Close from '@carbon/carbon-web-components/es/icons/close/16.js';\nimport FocusMixin from '@carbon/carbon-web-components/es/globals/mixins/focus.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport styles from './filter-panel.scss';\nimport DDSFilterPanelInputSelectItem from './filter-panel-input-select-item';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * The container of the input select.\n *\n * @element dds-filter-panel-input-select\n */\n@customElement(`${ddsPrefix}-filter-panel-input-select`)\nclass DDSFilterPanelInputSelect extends FocusMixin(\n StableSelectorMixin(LitElement)\n) {\n @property()\n ariaLabel = '';\n\n /**\n * Sets the input selected dropdown to closed\n */\n @property({ attribute: 'is-open', type: Boolean })\n isOpen = false;\n\n /**\n * sets the title value to a string\n */\n @property()\n title!: string;\n\n /**\n * sets the selected value attribute to selected\n */\n @property({ attribute: 'selected', type: Boolean })\n selected: boolean = false;\n\n /**\n * property for setting the value to a string\n */\n @property()\n value: string = '';\n\n /**\n * targets the last selected item\n */\n @property()\n lastValue: any;\n\n static get selectorItem() {\n return `${ddsPrefix}-filter-panel-input-select-item`;\n }\n\n /**\n *\n * @param event sets the selected value attribute to selected and removes the attribute from the 'lastvalue'\n * @private\n */\n protected _handleClickInner(event) {\n const { eventContentStateChange } = this\n .constructor as typeof DDSFilterPanelInputSelect;\n const selected = (event.target as Element).closest(\n (this.constructor as typeof DDSFilterPanelInputSelect).selectorItem\n ) as DDSFilterPanelInputSelectItem;\n if (selected.hasAttribute('selected')) {\n selected.removeAttribute('selected');\n } else {\n if (this.lastValue) {\n this.lastValue.removeAttribute('selected');\n }\n this.selected = false;\n this.removeAttribute('selected');\n selected.setAttribute('selected', '');\n }\n\n this.dispatchEvent(\n new CustomEvent(eventContentStateChange, {\n bubbles: true,\n composed: true,\n detail: {\n value: selected.getAttribute('value'),\n lastValue: this.lastValue ? this.lastValue.getAttribute('value') : '',\n headerValue: this.headerValue,\n },\n })\n );\n this.lastValue = selected;\n }\n\n /**\n * Ensures the click header handler gets called upon clicking enter if focused.\n *\n * @param event captures the inputed key\n * @private\n */\n private _handleKeydown = ({ key }: KeyboardEvent) => {\n if (key === 'Enter') {\n this._handleClickHeader();\n }\n };\n\n /**\n * Ensures the click inner handler gets called upon clicking enter if focused.\n *\n * @param event captures the inputed key\n * @private\n */\n private _handleKeydownInner = (event: KeyboardEvent) => {\n if (event.key === 'Enter') {\n this._handleClickInner(event);\n }\n };\n\n /**\n * sets the input select items to an array\n */\n @property()\n _items: any[] = [];\n\n /**\n * sets header-value attribute to the input selected header\n */\n @property({ attribute: 'header-value' })\n headerValue: string = '';\n\n /**\n * Toggles the input select dropdown and sets the header to selected and sets the value\n *\n * @private\n */\n protected _handleClickHeader() {\n const { eventInputSelect } = this\n .constructor as typeof DDSFilterPanelInputSelect;\n this.isOpen = !this.isOpen;\n this.selected = !this.selected;\n this.dispatchEvent(\n new CustomEvent(eventInputSelect, {\n bubbles: true,\n composed: true,\n detail: {\n headerValue: this.headerValue,\n },\n })\n );\n }\n\n /**\n * Handles `slotchange` event.\n *\n * @param event The event.\n */\n protected _handleSlotChange({ target }: Event) {\n this._items = (target as HTMLSlotElement)\n .assignedNodes()\n .filter(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n }\n\n updated(changedProperties) {\n if (changedProperties.has('selected')) {\n this.ariaLabel = `${this.title}, ${\n this.selected ? 'selected' : 'unselected'\n }`;\n }\n if (this._items.length) {\n this.shadowRoot\n ?.querySelector(`.${prefix}--input-container__heading`)\n ?.setAttribute('aria-expanded', String(Boolean(this.isOpen)));\n }\n }\n\n render() {\n const { title } = this;\n return html`\n <div class=\"${prefix}--input-container\">\n <div\n class=\"${prefix}--input-container__heading\"\n tabindex=\"1\"\n @click=${this._handleClickHeader}\n @keydown=${this._handleKeydown}\n aria-controls=\"content\"\n aria-label=\"${this.ariaLabel}\"\n role=\"button\"\n >\n ${title}\n <div class=\"${prefix}--close__icon\">\n ${this.selected && this.isOpen ? Close() : null}\n </div>\n </div>\n <ul\n id=\"content\"\n @click=${this._handleClickInner}\n @keydown=${this._handleKeydownInner}\n class=\"${this.isOpen\n ? ''\n : `${prefix}--selected-option-dropdown__hidden`} ${prefix}--selected-option-dropdown\"\n >\n <slot @slotchange=\"${this._handleSlotChange}\"></slot>\n </ul>\n </div>\n `;\n }\n\n /**\n * The name of the custom event fired upon selecting the title\n */\n static get eventInputSelect() {\n return `${ddsPrefix}-filter-panel-input-select-title`;\n }\n\n /**\n * The name of the custom event fired after the search content is changed upon a user gesture.\n */\n static get eventContentStateChange() {\n return `${ddsPrefix}-filter-panel-input-select`;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}-filter-panel-input-select`;\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 DDSFilterPanelInputSelect;\n"]}
1
+ {"version":3,"sources":["components/filter-panel/filter-panel-input-select.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAiC,UAAU,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;mCAYxE;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAJH;;;;GAIG;AACH,cACM,yBAA0B,SAAQ,8BAEvC;IAEC,SAAS,SAAM;IAEf;;OAEG;IAEH,MAAM,UAAS;IAEf;;OAEG;IAEH,KAAK,EAAG,MAAM,CAAC;IAEf;;OAEG;IAEH,QAAQ,EAAE,OAAO,CAAS;IAE1B;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAM;IAEnB;;OAEG;IAEH,SAAS,EAAE,GAAG,CAAC;IAEf,MAAM,KAAK,YAAY,WAEtB;IAED;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,CAAC,KAAK,KAAA;IA+BjC;;;;;OAKG;IACH,OAAO,CAAC,cAAc,CAIpB;IAEF;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB,CAIzB;IAEF;;OAEG;IAEH,MAAM,EAAE,GAAG,EAAE,CAAM;IAEnB;;OAEG;IAEH,WAAW,EAAE,MAAM,CAAM;IAEzB;;;;OAIG;IACH,SAAS,CAAC,kBAAkB;IAgB5B;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK;IAQ7C,OAAO,CAAC,iBAAiB,KAAA;IAazB,MAAM;IAgCN;;OAEG;IACH,MAAM,KAAK,gBAAgB,WAE1B;IAED;;OAEG;IACH,MAAM,KAAK,uBAAuB,WAEjC;IAED,MAAM,KAAK,cAAc,WAExB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,yBAAyB,CAAC","file":"filter-panel-input-select.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 { customElement, html, property, LitElement } from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport Close from '@carbon/web-components/es/icons/close/16.js';\nimport FocusMixin from '@carbon/web-components/es/globals/mixins/focus.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport styles from './filter-panel.scss';\nimport DDSFilterPanelInputSelectItem from './filter-panel-input-select-item';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * The container of the input select.\n *\n * @element dds-filter-panel-input-select\n */\n@customElement(`${ddsPrefix}-filter-panel-input-select`)\nclass DDSFilterPanelInputSelect extends FocusMixin(\n StableSelectorMixin(LitElement)\n) {\n @property()\n ariaLabel = '';\n\n /**\n * Sets the input selected dropdown to closed\n */\n @property({ attribute: 'is-open', type: Boolean })\n isOpen = false;\n\n /**\n * sets the title value to a string\n */\n @property()\n title!: string;\n\n /**\n * sets the selected value attribute to selected\n */\n @property({ attribute: 'selected', type: Boolean })\n selected: boolean = false;\n\n /**\n * property for setting the value to a string\n */\n @property()\n value: string = '';\n\n /**\n * targets the last selected item\n */\n @property()\n lastValue: any;\n\n static get selectorItem() {\n return `${ddsPrefix}-filter-panel-input-select-item`;\n }\n\n /**\n *\n * @param event sets the selected value attribute to selected and removes the attribute from the 'lastvalue'\n * @private\n */\n protected _handleClickInner(event) {\n const { eventContentStateChange } = this\n .constructor as typeof DDSFilterPanelInputSelect;\n const selected = (event.target as Element).closest(\n (this.constructor as typeof DDSFilterPanelInputSelect).selectorItem\n ) as DDSFilterPanelInputSelectItem;\n if (selected.hasAttribute('selected')) {\n selected.removeAttribute('selected');\n } else {\n if (this.lastValue) {\n this.lastValue.removeAttribute('selected');\n }\n this.selected = false;\n this.removeAttribute('selected');\n selected.setAttribute('selected', '');\n }\n\n this.dispatchEvent(\n new CustomEvent(eventContentStateChange, {\n bubbles: true,\n composed: true,\n detail: {\n value: selected.getAttribute('value'),\n lastValue: this.lastValue ? this.lastValue.getAttribute('value') : '',\n headerValue: this.headerValue,\n },\n })\n );\n this.lastValue = selected;\n }\n\n /**\n * Ensures the click header handler gets called upon clicking enter if focused.\n *\n * @param event captures the inputed key\n * @private\n */\n private _handleKeydown = ({ key }: KeyboardEvent) => {\n if (key === 'Enter') {\n this._handleClickHeader();\n }\n };\n\n /**\n * Ensures the click inner handler gets called upon clicking enter if focused.\n *\n * @param event captures the inputed key\n * @private\n */\n private _handleKeydownInner = (event: KeyboardEvent) => {\n if (event.key === 'Enter') {\n this._handleClickInner(event);\n }\n };\n\n /**\n * sets the input select items to an array\n */\n @property()\n _items: any[] = [];\n\n /**\n * sets header-value attribute to the input selected header\n */\n @property({ attribute: 'header-value' })\n headerValue: string = '';\n\n /**\n * Toggles the input select dropdown and sets the header to selected and sets the value\n *\n * @private\n */\n protected _handleClickHeader() {\n const { eventInputSelect } = this\n .constructor as typeof DDSFilterPanelInputSelect;\n this.isOpen = !this.isOpen;\n this.selected = !this.selected;\n this.dispatchEvent(\n new CustomEvent(eventInputSelect, {\n bubbles: true,\n composed: true,\n detail: {\n headerValue: this.headerValue,\n },\n })\n );\n }\n\n /**\n * Handles `slotchange` event.\n *\n * @param event The event.\n */\n protected _handleSlotChange({ target }: Event) {\n this._items = (target as HTMLSlotElement)\n .assignedNodes()\n .filter(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n }\n\n updated(changedProperties) {\n if (changedProperties.has('selected')) {\n this.ariaLabel = `${this.title}, ${\n this.selected ? 'selected' : 'unselected'\n }`;\n }\n if (this._items.length) {\n this.shadowRoot\n ?.querySelector(`.${prefix}--input-container__heading`)\n ?.setAttribute('aria-expanded', String(Boolean(this.isOpen)));\n }\n }\n\n render() {\n const { title } = this;\n return html`\n <div class=\"${prefix}--input-container\">\n <div\n class=\"${prefix}--input-container__heading\"\n tabindex=\"1\"\n @click=${this._handleClickHeader}\n @keydown=${this._handleKeydown}\n aria-controls=\"content\"\n aria-label=\"${this.ariaLabel}\"\n role=\"button\"\n >\n ${title}\n <div class=\"${prefix}--close__icon\">\n ${this.selected && this.isOpen ? Close() : null}\n </div>\n </div>\n <ul\n id=\"content\"\n @click=${this._handleClickInner}\n @keydown=${this._handleKeydownInner}\n class=\"${this.isOpen\n ? ''\n : `${prefix}--selected-option-dropdown__hidden`} ${prefix}--selected-option-dropdown\"\n >\n <slot @slotchange=\"${this._handleSlotChange}\"></slot>\n </ul>\n </div>\n `;\n }\n\n /**\n * The name of the custom event fired upon selecting the title\n */\n static get eventInputSelect() {\n return `${ddsPrefix}-filter-panel-input-select-title`;\n }\n\n /**\n * The name of the custom event fired after the search content is changed upon a user gesture.\n */\n static get eventContentStateChange() {\n return `${ddsPrefix}-filter-panel-input-select`;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}-filter-panel-input-select`;\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 DDSFilterPanelInputSelect;\n"]}
@@ -12,8 +12,8 @@ let _ = t => t,
12
12
 
13
13
  import { customElement, html, property, LitElement } from 'lit-element';
14
14
  import settings from 'carbon-components/es/globals/js/settings.js';
15
- import Close from '@carbon/carbon-web-components/es/icons/close/16.js';
16
- import FocusMixin from '@carbon/carbon-web-components/es/globals/mixins/focus.js';
15
+ import Close from '@carbon/web-components/es/icons/close/16.js';
16
+ import FocusMixin from '@carbon/web-components/es/globals/mixins/focus.js';
17
17
  import ddsSettings from "../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js";
18
18
  import StableSelectorMixin from "../../globals/mixins/stable-selector.js";
19
19
  import styles from "././filter-panel.css.js";
@@ -1 +1 @@
1
- {"version":3,"file":"filter-panel-input-select.js","names":["customElement","html","property","LitElement","settings","Close","FocusMixin","ddsSettings","StableSelectorMixin","styles","prefix","stablePrefix","ddsPrefix","DDSFilterPanelInputSelect","attribute","type","Boolean","event","eventContentStateChange","constructor","selected","target","closest","selectorItem","hasAttribute","removeAttribute","lastValue","setAttribute","dispatchEvent","CustomEvent","bubbles","composed","detail","value","getAttribute","headerValue","key","_handleClickHeader","_handleClickInner","eventInputSelect","isOpen","_items","assignedNodes","filter","node","nodeType","Node","TEXT_NODE","textContent","trim","changedProperties","has","ariaLabel","title","length","shadowRoot","querySelector","String","_handleKeydown","_handleKeydownInner","_handleSlotChange"],"sources":["components/filter-panel/filter-panel-input-select.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 { customElement, html, property, LitElement } from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport Close from '@carbon/carbon-web-components/es/icons/close/16.js';\nimport FocusMixin from '@carbon/carbon-web-components/es/globals/mixins/focus.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport styles from './filter-panel.scss';\nimport DDSFilterPanelInputSelectItem from './filter-panel-input-select-item';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * The container of the input select.\n *\n * @element dds-filter-panel-input-select\n */\n@customElement(`${ddsPrefix}-filter-panel-input-select`)\nclass DDSFilterPanelInputSelect extends FocusMixin(\n StableSelectorMixin(LitElement)\n) {\n @property()\n ariaLabel = '';\n\n /**\n * Sets the input selected dropdown to closed\n */\n @property({ attribute: 'is-open', type: Boolean })\n isOpen = false;\n\n /**\n * sets the title value to a string\n */\n @property()\n title!: string;\n\n /**\n * sets the selected value attribute to selected\n */\n @property({ attribute: 'selected', type: Boolean })\n selected: boolean = false;\n\n /**\n * property for setting the value to a string\n */\n @property()\n value: string = '';\n\n /**\n * targets the last selected item\n */\n @property()\n lastValue: any;\n\n static get selectorItem() {\n return `${ddsPrefix}-filter-panel-input-select-item`;\n }\n\n /**\n *\n * @param event sets the selected value attribute to selected and removes the attribute from the 'lastvalue'\n * @private\n */\n protected _handleClickInner(event) {\n const { eventContentStateChange } = this\n .constructor as typeof DDSFilterPanelInputSelect;\n const selected = (event.target as Element).closest(\n (this.constructor as typeof DDSFilterPanelInputSelect).selectorItem\n ) as DDSFilterPanelInputSelectItem;\n if (selected.hasAttribute('selected')) {\n selected.removeAttribute('selected');\n } else {\n if (this.lastValue) {\n this.lastValue.removeAttribute('selected');\n }\n this.selected = false;\n this.removeAttribute('selected');\n selected.setAttribute('selected', '');\n }\n\n this.dispatchEvent(\n new CustomEvent(eventContentStateChange, {\n bubbles: true,\n composed: true,\n detail: {\n value: selected.getAttribute('value'),\n lastValue: this.lastValue ? this.lastValue.getAttribute('value') : '',\n headerValue: this.headerValue,\n },\n })\n );\n this.lastValue = selected;\n }\n\n /**\n * Ensures the click header handler gets called upon clicking enter if focused.\n *\n * @param event captures the inputed key\n * @private\n */\n private _handleKeydown = ({ key }: KeyboardEvent) => {\n if (key === 'Enter') {\n this._handleClickHeader();\n }\n };\n\n /**\n * Ensures the click inner handler gets called upon clicking enter if focused.\n *\n * @param event captures the inputed key\n * @private\n */\n private _handleKeydownInner = (event: KeyboardEvent) => {\n if (event.key === 'Enter') {\n this._handleClickInner(event);\n }\n };\n\n /**\n * sets the input select items to an array\n */\n @property()\n _items: any[] = [];\n\n /**\n * sets header-value attribute to the input selected header\n */\n @property({ attribute: 'header-value' })\n headerValue: string = '';\n\n /**\n * Toggles the input select dropdown and sets the header to selected and sets the value\n *\n * @private\n */\n protected _handleClickHeader() {\n const { eventInputSelect } = this\n .constructor as typeof DDSFilterPanelInputSelect;\n this.isOpen = !this.isOpen;\n this.selected = !this.selected;\n this.dispatchEvent(\n new CustomEvent(eventInputSelect, {\n bubbles: true,\n composed: true,\n detail: {\n headerValue: this.headerValue,\n },\n })\n );\n }\n\n /**\n * Handles `slotchange` event.\n *\n * @param event The event.\n */\n protected _handleSlotChange({ target }: Event) {\n this._items = (target as HTMLSlotElement)\n .assignedNodes()\n .filter(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n }\n\n updated(changedProperties) {\n if (changedProperties.has('selected')) {\n this.ariaLabel = `${this.title}, ${\n this.selected ? 'selected' : 'unselected'\n }`;\n }\n if (this._items.length) {\n this.shadowRoot\n ?.querySelector(`.${prefix}--input-container__heading`)\n ?.setAttribute('aria-expanded', String(Boolean(this.isOpen)));\n }\n }\n\n render() {\n const { title } = this;\n return html`\n <div class=\"${prefix}--input-container\">\n <div\n class=\"${prefix}--input-container__heading\"\n tabindex=\"1\"\n @click=${this._handleClickHeader}\n @keydown=${this._handleKeydown}\n aria-controls=\"content\"\n aria-label=\"${this.ariaLabel}\"\n role=\"button\"\n >\n ${title}\n <div class=\"${prefix}--close__icon\">\n ${this.selected && this.isOpen ? Close() : null}\n </div>\n </div>\n <ul\n id=\"content\"\n @click=${this._handleClickInner}\n @keydown=${this._handleKeydownInner}\n class=\"${this.isOpen\n ? ''\n : `${prefix}--selected-option-dropdown__hidden`} ${prefix}--selected-option-dropdown\"\n >\n <slot @slotchange=\"${this._handleSlotChange}\"></slot>\n </ul>\n </div>\n `;\n }\n\n /**\n * The name of the custom event fired upon selecting the title\n */\n static get eventInputSelect() {\n return `${ddsPrefix}-filter-panel-input-select-title`;\n }\n\n /**\n * The name of the custom event fired after the search content is changed upon a user gesture.\n */\n static get eventContentStateChange() {\n return `${ddsPrefix}-filter-panel-input-select`;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}-filter-panel-input-select`;\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 DDSFilterPanelInputSelect;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,aAAa;AACvE,OAAOC,QAAQ,MAAM,6CAA6C;AAClE,OAAOC,KAAK,MAAM,oDAAoD;AACtE,OAAOC,UAAU,MAA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qC;QACnC,OAAQ,GAAEA,SAAU,4BAA2B;MACjD;IAAC;MAAA;MAAA;MAAA;MAAA,OAED,0BAA4B;QAC1B,OAAQ,GAAEA,SAAU,4BAA2B;MACjD;IAAC;MAAA;MAAA;MAAA;MAAA;QAAA,OAEeH,MAAM;MAAA;IAAA;EAAA;AAAA,GAjNgBH,UAAU,CAChDE,mBAAmB,CAACL,UAAU,CAAC,CAChC,GAkND;AACA,eAAeU,yBAAyB"}
1
+ {"version":3,"file":"filter-panel-input-select.js","names":["customElement","html","property","LitElement","settings","Close","FocusMixin","ddsSettings","StableSelectorMixin","styles","prefix","stablePrefix","ddsPrefix","DDSFilterPanelInputSelect","attribute","type","Boolean","event","eventContentStateChange","constructor","selected","target","closest","selectorItem","hasAttribute","removeAttribute","lastValue","setAttribute","dispatchEvent","CustomEvent","bubbles","composed","detail","value","getAttribute","headerValue","key","_handleClickHeader","_handleClickInner","eventInputSelect","isOpen","_items","assignedNodes","filter","node","nodeType","Node","TEXT_NODE","textContent","trim","changedProperties","has","ariaLabel","title","length","shadowRoot","querySelector","String","_handleKeydown","_handleKeydownInner","_handleSlotChange"],"sources":["components/filter-panel/filter-panel-input-select.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 { customElement, html, property, LitElement } from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport Close from '@carbon/web-components/es/icons/close/16.js';\nimport FocusMixin from '@carbon/web-components/es/globals/mixins/focus.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport styles from './filter-panel.scss';\nimport DDSFilterPanelInputSelectItem from './filter-panel-input-select-item';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * The container of the input select.\n *\n * @element dds-filter-panel-input-select\n */\n@customElement(`${ddsPrefix}-filter-panel-input-select`)\nclass DDSFilterPanelInputSelect extends FocusMixin(\n StableSelectorMixin(LitElement)\n) {\n @property()\n ariaLabel = '';\n\n /**\n * Sets the input selected dropdown to closed\n */\n @property({ attribute: 'is-open', type: Boolean })\n isOpen = false;\n\n /**\n * sets the title value to a string\n */\n @property()\n title!: string;\n\n /**\n * sets the selected value attribute to selected\n */\n @property({ attribute: 'selected', type: Boolean })\n selected: boolean = false;\n\n /**\n * property for setting the value to a string\n */\n @property()\n value: string = '';\n\n /**\n * targets the last selected item\n */\n @property()\n lastValue: any;\n\n static get selectorItem() {\n return `${ddsPrefix}-filter-panel-input-select-item`;\n }\n\n /**\n *\n * @param event sets the selected value attribute to selected and removes the attribute from the 'lastvalue'\n * @private\n */\n protected _handleClickInner(event) {\n const { eventContentStateChange } = this\n .constructor as typeof DDSFilterPanelInputSelect;\n const selected = (event.target as Element).closest(\n (this.constructor as typeof DDSFilterPanelInputSelect).selectorItem\n ) as DDSFilterPanelInputSelectItem;\n if (selected.hasAttribute('selected')) {\n selected.removeAttribute('selected');\n } else {\n if (this.lastValue) {\n this.lastValue.removeAttribute('selected');\n }\n this.selected = false;\n this.removeAttribute('selected');\n selected.setAttribute('selected', '');\n }\n\n this.dispatchEvent(\n new CustomEvent(eventContentStateChange, {\n bubbles: true,\n composed: true,\n detail: {\n value: selected.getAttribute('value'),\n lastValue: this.lastValue ? this.lastValue.getAttribute('value') : '',\n headerValue: this.headerValue,\n },\n })\n );\n this.lastValue = selected;\n }\n\n /**\n * Ensures the click header handler gets called upon clicking enter if focused.\n *\n * @param event captures the inputed key\n * @private\n */\n private _handleKeydown = ({ key }: KeyboardEvent) => {\n if (key === 'Enter') {\n this._handleClickHeader();\n }\n };\n\n /**\n * Ensures the click inner handler gets called upon clicking enter if focused.\n *\n * @param event captures the inputed key\n * @private\n */\n private _handleKeydownInner = (event: KeyboardEvent) => {\n if (event.key === 'Enter') {\n this._handleClickInner(event);\n }\n };\n\n /**\n * sets the input select items to an array\n */\n @property()\n _items: any[] = [];\n\n /**\n * sets header-value attribute to the input selected header\n */\n @property({ attribute: 'header-value' })\n headerValue: string = '';\n\n /**\n * Toggles the input select dropdown and sets the header to selected and sets the value\n *\n * @private\n */\n protected _handleClickHeader() {\n const { eventInputSelect } = this\n .constructor as typeof DDSFilterPanelInputSelect;\n this.isOpen = !this.isOpen;\n this.selected = !this.selected;\n this.dispatchEvent(\n new CustomEvent(eventInputSelect, {\n bubbles: true,\n composed: true,\n detail: {\n headerValue: this.headerValue,\n },\n })\n );\n }\n\n /**\n * Handles `slotchange` event.\n *\n * @param event The event.\n */\n protected _handleSlotChange({ target }: Event) {\n this._items = (target as HTMLSlotElement)\n .assignedNodes()\n .filter(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n }\n\n updated(changedProperties) {\n if (changedProperties.has('selected')) {\n this.ariaLabel = `${this.title}, ${\n this.selected ? 'selected' : 'unselected'\n }`;\n }\n if (this._items.length) {\n this.shadowRoot\n ?.querySelector(`.${prefix}--input-container__heading`)\n ?.setAttribute('aria-expanded', String(Boolean(this.isOpen)));\n }\n }\n\n render() {\n const { title } = this;\n return html`\n <div class=\"${prefix}--input-container\">\n <div\n class=\"${prefix}--input-container__heading\"\n tabindex=\"1\"\n @click=${this._handleClickHeader}\n @keydown=${this._handleKeydown}\n aria-controls=\"content\"\n aria-label=\"${this.ariaLabel}\"\n role=\"button\"\n >\n ${title}\n <div class=\"${prefix}--close__icon\">\n ${this.selected && this.isOpen ? Close() : null}\n </div>\n </div>\n <ul\n id=\"content\"\n @click=${this._handleClickInner}\n @keydown=${this._handleKeydownInner}\n class=\"${this.isOpen\n ? ''\n : `${prefix}--selected-option-dropdown__hidden`} ${prefix}--selected-option-dropdown\"\n >\n <slot @slotchange=\"${this._handleSlotChange}\"></slot>\n </ul>\n </div>\n `;\n }\n\n /**\n * The name of the custom event fired upon selecting the title\n */\n static get eventInputSelect() {\n return `${ddsPrefix}-filter-panel-input-select-title`;\n }\n\n /**\n * The name of the custom event fired after the search content is changed upon a user gesture.\n */\n static get eventContentStateChange() {\n return `${ddsPrefix}-filter-panel-input-select`;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}-filter-panel-input-select`;\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 DDSFilterPanelInputSelect;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,aAAa;AACvE,OAAOC,QAAQ,MAAM,6CAA6C;AAClE,OAAOC,KAAK,MAAM,6CAA6C;AAC/D,OAAOC,UAAU,MAAM,mDAAmD;AAC1E,OAAOC,WAAW,MAAM,kFAA+E;AACvG,OAAOC,mBAAmB,MAAM,yCAAsC;AACtE,OAAOC,MAAM,MAAM,yBAAqB;AAGxC,MAAM;EAAEC;AAAO,CAAC,GAAGN,QAAQ;AAC3B,MAAM;EAAEO,YAAY,EAAEC;AAAU,CAAC,GAAGL,WAAW;;AAE/C;AACA;AACA;AACA;AACA;AAJA,IAMMM,yBAAyB,cAD9Bb,aAAa,CAAE,GAAEY,SAAU,4BAA2B,CAAC;EAAxD,MACMC,yBAAyB,qBAE7B;IAAA;MAAA;MAAA;IAAA;EAgNF;EAAC;IAAA,GAlNKA,yBAAyB;IAAA;MAAA;MAAA,aAG5BX,QAAQ,EAAE;MAAA;MAAA;QAAA,OACC,EAAE;MAAA;IAAA;MAAA;MAAA,aAKbA,QAAQ,CAAC;QAAEY,SAAS,EAAE,SAAS;QAAEC,IAAI,EAAEC;MAAQ,CAAC,CAAC;MAAA;MAAA;QAAA,OACzC,KAAK;MAAA;IAAA;MAAA;MAAA,aAKbd,QAAQ,EAAE;MAAA;MAAA;IAAA;MAAA;MAAA,aAMVA,QAAQ,CAAC;QAAEY,SAAS,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