@carbon/web-components 2.10.0 → 2.11.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (531) hide show
  1. package/dist/{16-c82d5cfd.js → 16-486ace1a.js} +6 -6
  2. package/dist/{16-86616f6a.js → 16-51a594ce.js} +6 -6
  3. package/dist/16-656090c0.js +73 -0
  4. package/dist/{16-9bfd003b.js → 16-71872213.js} +6 -6
  5. package/dist/{16-e3da4022.js → 16-730a41a2.js} +6 -6
  6. package/dist/{16-6f99b9d8.js → 16-83a1cd89.js} +6 -6
  7. package/dist/{16-b507d4ba.js → 16-b73c677b.js} +6 -6
  8. package/dist/{16-3e28b02c.js → 16-d1c73001.js} +6 -6
  9. package/dist/{16-8688d7b7.js → 20-d069d8da.js} +6 -6
  10. package/dist/accordion.min.js +12 -12
  11. package/dist/ai-skeleton.min.js +6 -6
  12. package/dist/breadcrumb.min.js +6 -6
  13. package/dist/{button-690db41b.js → button-21c75bab.js} +6 -6
  14. package/dist/{button-set-4d1a3543.js → button-set-69863a24.js} +6 -6
  15. package/dist/{button-skeleton-efe28069.js → button-skeleton-1abc1fd8.js} +7 -7
  16. package/dist/button.min.js +6 -6
  17. package/dist/carbon-element-4ca9803f.js +5 -5
  18. package/dist/chat-button.min.js +6 -6
  19. package/dist/checkbox-d0a3a79f.js +109 -0
  20. package/dist/checkbox.min.js +6 -6
  21. package/dist/{class-map-40d6e892.js → class-map-5edb95da.js} +7 -7
  22. package/dist/code-snippet.min.js +14 -14
  23. package/dist/collection-helpers-4e32fe16.js +5 -5
  24. package/dist/combo-box.min.js +6 -6
  25. package/dist/{content-switcher-item-557f043e.js → content-switcher-item-5b8dd42f.js} +6 -6
  26. package/dist/content-switcher.min.js +6 -6
  27. package/dist/{copy-button-77c9a2be.js → copy-button-0cfa83bd.js} +6 -6
  28. package/dist/copy-button.min.js +6 -6
  29. package/dist/custom-element-975be15f.js +5 -5
  30. package/dist/data-table.min.js +8 -8
  31. package/dist/date-picker.min.js +6 -6
  32. package/dist/{defineProperty-1c81c535.js → defineProperty-e448b551.js} +6 -6
  33. package/dist/directive-e2d48b9c.js +5 -5
  34. package/dist/dropdown-item-91b3dc95.js +148 -0
  35. package/dist/dropdown.min.js +6 -6
  36. package/dist/file-uploader.min.js +6 -6
  37. package/dist/{floating-menu-ee49fedd.js → floating-menu-46199beb.js} +7 -7
  38. package/dist/floating-menu.min.js +6 -6
  39. package/dist/{focus-28af17cd.js → focus-e70d1cbe.js} +7 -7
  40. package/dist/form-group.min.js +6 -6
  41. package/dist/form.min.js +6 -6
  42. package/dist/{get-d229c408.js → get-52a048b1.js} +6 -6
  43. package/dist/{host-listener-1093b8af.js → host-listener-b6a3d690.js} +7 -7
  44. package/dist/{icon-button-8c199f5d.js → icon-button-37322eeb.js} +6 -6
  45. package/dist/icon-button.min.js +6 -6
  46. package/dist/{if-defined-87ba0c08.js → if-defined-2e09d22b.js} +6 -6
  47. package/dist/{if-non-empty-a1c6e0fe.js → if-non-empty-20ce3c96.js} +7 -7
  48. package/dist/inline-loading.min.js +6 -6
  49. package/dist/{layer-c557b485.js → layer-0633200a.js} +6 -6
  50. package/dist/layer.min.js +6 -6
  51. package/dist/{link-49d03ffa.js → link-dc6f9b4e.js} +9 -9
  52. package/dist/link.min.js +6 -6
  53. package/dist/list.min.js +6 -6
  54. package/dist/{loading-358d36a7.js → loading-2604f4ad.js} +6 -6
  55. package/dist/{loading-icon-4d90d624.js → loading-icon-85b7e502.js} +8 -8
  56. package/dist/loading.min.js +6 -6
  57. package/dist/{modal-label-f7bb6b21.js → modal-label-d53c98de.js} +10 -10
  58. package/dist/modal.min.js +6 -6
  59. package/dist/multi-select.min.js +9 -9
  60. package/dist/notification.min.js +14 -14
  61. package/dist/number-input.min.js +6 -6
  62. package/dist/{objectSpread2-97102dd8.js → objectSpread2-46e4de7a.js} +6 -6
  63. package/dist/on-6c264d49.js +5 -5
  64. package/dist/overflow-menu.min.js +6 -6
  65. package/dist/pagination.min.js +6 -6
  66. package/dist/{popover-content-2a2998fe.js → popover-content-11101167.js} +6 -6
  67. package/dist/popover-controller-cc6ccb74.js +73 -0
  68. package/dist/popover.min.js +6 -6
  69. package/dist/progress-bar.min.js +6 -6
  70. package/dist/progress-indicator.min.js +6 -6
  71. package/dist/query-5f833318.js +5 -5
  72. package/dist/query-assigned-elements-73bd2544.js +5 -5
  73. package/dist/radio-button.min.js +6 -6
  74. package/dist/{radio-group-manager-aa09b989.js → radio-group-manager-de7f9ab3.js} +6 -6
  75. package/dist/{search-d48abba3.js → search-1b5a2d87.js} +6 -6
  76. package/dist/search.min.js +6 -6
  77. package/dist/{select-item-ddced627.js → select-item-4ebf72a0.js} +6 -6
  78. package/dist/select.min.js +15 -15
  79. package/dist/{settings-2211e02a.js → settings-97cd1c3a.js} +6 -6
  80. package/dist/shared-enums-c6fe8c39.js +5 -5
  81. package/dist/side-panel.min.js +7 -7
  82. package/dist/{skeleton-icon-0f8941b3.js → skeleton-icon-bfc7d5c8.js} +6 -6
  83. package/dist/skeleton-icon.min.js +6 -6
  84. package/dist/{skeleton-placeholder-80d37e68.js → skeleton-placeholder-403f26a3.js} +6 -6
  85. package/dist/skeleton-placeholder.min.js +6 -6
  86. package/dist/{skeleton-text-2f44cf41.js → skeleton-text-9d02604f.js} +6 -6
  87. package/dist/skeleton-text.min.js +6 -6
  88. package/dist/skip-to-content.min.js +7 -7
  89. package/dist/slider.min.js +6 -6
  90. package/dist/slug.min.js +6 -6
  91. package/dist/{spread-c0d6f8ee.js → spread-d515f3f1.js} +7 -7
  92. package/dist/stack.min.js +6 -6
  93. package/dist/state-ddd29b9d.js +5 -5
  94. package/dist/structured-list.min.js +9 -9
  95. package/dist/tabs.min.js +7 -7
  96. package/dist/tag.min.js +9 -9
  97. package/dist/tearsheet.min.js +9 -9
  98. package/dist/{text-input-06f2796d.js → text-input-672028f4.js} +6 -6
  99. package/dist/text-input.min.js +6 -6
  100. package/dist/textarea.min.js +10 -10
  101. package/dist/tile.min.js +6 -6
  102. package/dist/toggle-tip.min.js +6 -6
  103. package/dist/toggle.min.js +6 -6
  104. package/dist/{toggletip-586fce1e.js → toggletip-b1b58c28.js} +7 -7
  105. package/dist/{tooltip-content-7e00430f.js → tooltip-content-51c6ffbc.js} +6 -6
  106. package/dist/tooltip.min.js +6 -6
  107. package/dist/ui-shell.min.js +19 -19
  108. package/dist/validity-d86ffa4f.js +5 -5
  109. package/es/components/accordion/accordion-item-skeleton.js.map +1 -1
  110. package/es/components/accordion/accordion-item.d.ts +47 -44
  111. package/es/components/accordion/accordion-item.js.map +1 -1
  112. package/es/components/accordion/accordion-skeleton.js.map +1 -1
  113. package/es/components/accordion/accordion.css.js +1 -1
  114. package/es/components/accordion/accordion.js.map +1 -1
  115. package/es/components/ai-skeleton/ai-skeleton-icon.js.map +1 -1
  116. package/es/components/ai-skeleton/ai-skeleton-placeholder.js.map +1 -1
  117. package/es/components/ai-skeleton/ai-skeleton-text.js.map +1 -1
  118. package/es/components/breadcrumb/breadcrumb-item.js.map +1 -1
  119. package/es/components/breadcrumb/breadcrumb-link.js.map +1 -1
  120. package/es/components/breadcrumb/breadcrumb-overflow-menu.js.map +1 -1
  121. package/es/components/breadcrumb/breadcrumb-skeleton.js.map +1 -1
  122. package/es/components/breadcrumb/breadcrumb.js.map +1 -1
  123. package/es/components/button/button-set-base.js.map +1 -1
  124. package/es/components/button/button-set.js.map +1 -1
  125. package/es/components/button/button-skeleton.js.map +1 -1
  126. package/es/components/button/button.d.ts +99 -92
  127. package/es/components/button/button.js.map +1 -1
  128. package/es/components/chat-button/chat-button-skeleton.js.map +1 -1
  129. package/es/components/chat-button/chat-button.js.map +1 -1
  130. package/es/components/checkbox/checkbox-group.d.ts +2 -1
  131. package/es/components/checkbox/checkbox-group.js.map +1 -1
  132. package/es/components/checkbox/checkbox-skeleton.js.map +1 -1
  133. package/es/components/checkbox/checkbox.css.js +1 -1
  134. package/es/components/checkbox/checkbox.d.ts +97 -90
  135. package/es/components/checkbox/checkbox.js.map +1 -1
  136. package/es/components/code-snippet/code-snippet-skeleton.js.map +1 -1
  137. package/es/components/code-snippet/code-snippet.d.ts +49 -45
  138. package/es/components/code-snippet/code-snippet.js.map +1 -1
  139. package/es/components/combo-box/combo-box-item.js.map +1 -1
  140. package/es/components/combo-box/combo-box.css.js +1 -1
  141. package/es/components/combo-box/combo-box.js.map +1 -1
  142. package/es/components/content-switcher/content-switcher-item.d.ts +49 -45
  143. package/es/components/content-switcher/content-switcher-item.js.map +1 -1
  144. package/es/components/content-switcher/content-switcher.js.map +1 -1
  145. package/es/components/copy/copy.js.map +1 -1
  146. package/es/components/copy-button/copy-button.d.ts +47 -44
  147. package/es/components/copy-button/copy-button.js.map +1 -1
  148. package/es/components/data-table/data-table.css.js +1 -1
  149. package/es/components/data-table/table-batch-actions.js.map +1 -1
  150. package/es/components/data-table/table-body.js.map +1 -1
  151. package/es/components/data-table/table-cell-content.js.map +1 -1
  152. package/es/components/data-table/table-cell.js.map +1 -1
  153. package/es/components/data-table/table-expanded-row.d.ts +49 -46
  154. package/es/components/data-table/table-expanded-row.js.map +1 -1
  155. package/es/components/data-table/table-head.js.map +1 -1
  156. package/es/components/data-table/table-header-cell.d.ts +49 -45
  157. package/es/components/data-table/table-header-cell.js.map +1 -1
  158. package/es/components/data-table/table-header-description.js.map +1 -1
  159. package/es/components/data-table/table-header-row.js.map +1 -1
  160. package/es/components/data-table/table-header-title.js.map +1 -1
  161. package/es/components/data-table/table-row.d.ts +97 -91
  162. package/es/components/data-table/table-row.js.map +1 -1
  163. package/es/components/data-table/table-skeleton.js.map +1 -1
  164. package/es/components/data-table/table-toolbar-content.js.map +1 -1
  165. package/es/components/data-table/table-toolbar-search.d.ts +51 -47
  166. package/es/components/data-table/table-toolbar-search.js.map +1 -1
  167. package/es/components/data-table/table-toolbar.js.map +1 -1
  168. package/es/components/data-table/table.d.ts +49 -46
  169. package/es/components/data-table/table.js.map +1 -1
  170. package/es/components/date-picker/append-to-plugin.js.map +1 -1
  171. package/es/components/date-picker/date-picker-input-skeleton.js.map +1 -1
  172. package/es/components/date-picker/date-picker-input.d.ts +49 -45
  173. package/es/components/date-picker/date-picker-input.js.map +1 -1
  174. package/es/components/date-picker/date-picker.d.ts +98 -92
  175. package/es/components/date-picker/date-picker.js.map +1 -1
  176. package/es/components/dropdown/dropdown-item.js.map +1 -1
  177. package/es/components/dropdown/dropdown-skeleton.js.map +1 -1
  178. package/es/components/dropdown/dropdown.css.js +1 -1
  179. package/es/components/dropdown/dropdown.d.ts +196 -183
  180. package/es/components/dropdown/dropdown.js.map +1 -1
  181. package/es/components/file-uploader/demo-file-uploader.js.map +1 -1
  182. package/es/components/file-uploader/file-uploader-button.d.ts +49 -46
  183. package/es/components/file-uploader/file-uploader-button.js.map +1 -1
  184. package/es/components/file-uploader/file-uploader-drop-container.d.ts +49 -46
  185. package/es/components/file-uploader/file-uploader-drop-container.js.map +1 -1
  186. package/es/components/file-uploader/file-uploader-item.js.map +1 -1
  187. package/es/components/file-uploader/file-uploader-skeleton.js.map +1 -1
  188. package/es/components/file-uploader/file-uploader.js.map +1 -1
  189. package/es/components/floating-menu/floating-menu.d.ts +100 -93
  190. package/es/components/floating-menu/floating-menu.js.map +1 -1
  191. package/es/components/form/form-item.js.map +1 -1
  192. package/es/components/form-group/form-group.js.map +1 -1
  193. package/es/components/icon-button/icon-button.js.map +1 -1
  194. package/es/components/inline-loading/inline-loading.js.map +1 -1
  195. package/es/components/layer/layer.js.map +1 -1
  196. package/es/components/link/link.d.ts +49 -45
  197. package/es/components/link/link.js.map +1 -1
  198. package/es/components/list/list-item.js.map +1 -1
  199. package/es/components/list/ordered-list.js.map +1 -1
  200. package/es/components/list/unordered-list.js.map +1 -1
  201. package/es/components/loading/loading-icon.js.map +1 -1
  202. package/es/components/loading/loading.js.map +1 -1
  203. package/es/components/modal/modal-body-content.js.map +1 -1
  204. package/es/components/modal/modal-body.js.map +1 -1
  205. package/es/components/modal/modal-close-button.d.ts +49 -45
  206. package/es/components/modal/modal-close-button.js.map +1 -1
  207. package/es/components/modal/modal-footer-button.js.map +1 -1
  208. package/es/components/modal/modal-footer.js.map +1 -1
  209. package/es/components/modal/modal-header.js.map +1 -1
  210. package/es/components/modal/modal-heading.js.map +1 -1
  211. package/es/components/modal/modal-label.js.map +1 -1
  212. package/es/components/modal/modal.css.js +1 -1
  213. package/es/components/modal/modal.d.ts +49 -46
  214. package/es/components/modal/modal.js.map +1 -1
  215. package/es/components/multi-select/multi-select-item.js.map +1 -1
  216. package/es/components/multi-select/multi-select.css.js +1 -1
  217. package/es/components/multi-select/multi-select.js.map +1 -1
  218. package/es/components/notification/actionable-notification-button.js.map +1 -1
  219. package/es/components/notification/actionable-notification.d.ts +49 -46
  220. package/es/components/notification/actionable-notification.js.map +1 -1
  221. package/es/components/notification/inline-notification.d.ts +47 -44
  222. package/es/components/notification/inline-notification.js.map +1 -1
  223. package/es/components/notification/toast-notification.js.map +1 -1
  224. package/es/components/number-input/number-input-skeleton.js.map +1 -1
  225. package/es/components/number-input/number-input.d.ts +2 -1
  226. package/es/components/number-input/number-input.js.map +1 -1
  227. package/es/components/overflow-menu/overflow-menu-body.js.map +1 -1
  228. package/es/components/overflow-menu/overflow-menu-item.d.ts +49 -45
  229. package/es/components/overflow-menu/overflow-menu-item.js.map +1 -1
  230. package/es/components/overflow-menu/overflow-menu.d.ts +97 -91
  231. package/es/components/overflow-menu/overflow-menu.js.map +1 -1
  232. package/es/components/pagination/pagination.d.ts +98 -91
  233. package/es/components/pagination/pagination.js.map +1 -1
  234. package/es/components/popover/popover-content.js.map +1 -1
  235. package/es/components/popover/popover.js.map +1 -1
  236. package/es/components/progress-bar/progress-bar.js.map +1 -1
  237. package/es/components/progress-indicator/progress-indicator-skeleton.js.map +1 -1
  238. package/es/components/progress-indicator/progress-indicator.js.map +1 -1
  239. package/es/components/progress-indicator/progress-step-skeleton.js.map +1 -1
  240. package/es/components/progress-indicator/progress-step.d.ts +49 -45
  241. package/es/components/progress-indicator/progress-step.js.map +1 -1
  242. package/es/components/radio-button/radio-button-group.d.ts +98 -92
  243. package/es/components/radio-button/radio-button-group.js.map +1 -1
  244. package/es/components/radio-button/radio-button-skeleton.js.map +1 -1
  245. package/es/components/radio-button/radio-button.d.ts +99 -92
  246. package/es/components/radio-button/radio-button.js.map +1 -1
  247. package/es/components/search/search-skeleton.js.map +1 -1
  248. package/es/components/search/search.d.ts +148 -138
  249. package/es/components/search/search.js.map +1 -1
  250. package/es/components/select/select-item-group.js.map +1 -1
  251. package/es/components/select/select-item.js.map +1 -1
  252. package/es/components/select/select-skeleton.js.map +1 -1
  253. package/es/components/select/select.d.ts +51 -47
  254. package/es/components/select/select.js.map +1 -1
  255. package/es/components/side-panel/side-panel.css.js +1 -1
  256. package/es/components/side-panel/side-panel.d.ts +49 -46
  257. package/es/components/side-panel/side-panel.js.map +1 -1
  258. package/es/components/skeleton-icon/skeleton-icon.js.map +1 -1
  259. package/es/components/skeleton-placeholder/skeleton-placeholder.js.map +1 -1
  260. package/es/components/skeleton-text/skeleton-text.js.map +1 -1
  261. package/es/components/skip-to-content/skip-to-content.d.ts +49 -45
  262. package/es/components/skip-to-content/skip-to-content.js.map +1 -1
  263. package/es/components/slider/slider-input.d.ts +49 -45
  264. package/es/components/slider/slider-input.js.map +1 -1
  265. package/es/components/slider/slider-skeleton.js.map +1 -1
  266. package/es/components/slider/slider.d.ts +148 -138
  267. package/es/components/slider/slider.js.map +1 -1
  268. package/es/components/slug/slug-action-button.js.map +1 -1
  269. package/es/components/slug/slug.css.js +1 -1
  270. package/es/components/slug/slug.js.map +1 -1
  271. package/es/components/stack/stack.js.map +1 -1
  272. package/es/components/structured-list/structured-list-body.js.map +1 -1
  273. package/es/components/structured-list/structured-list-cell.js.map +1 -1
  274. package/es/components/structured-list/structured-list-head.js.map +1 -1
  275. package/es/components/structured-list/structured-list-header-cell-skeleton.js.map +1 -1
  276. package/es/components/structured-list/structured-list-header-cell.js.map +1 -1
  277. package/es/components/structured-list/structured-list-header-row.js.map +1 -1
  278. package/es/components/structured-list/structured-list-row.d.ts +49 -46
  279. package/es/components/structured-list/structured-list-row.js.map +1 -1
  280. package/es/components/structured-list/structured-list.css.js +1 -1
  281. package/es/components/structured-list/structured-list.d.ts +49 -45
  282. package/es/components/structured-list/structured-list.js.map +1 -1
  283. package/es/components/tabs/tab-skeleton.js.map +1 -1
  284. package/es/components/tabs/tab.js.map +1 -1
  285. package/es/components/tabs/tabs-skeleton.js.map +1 -1
  286. package/es/components/tabs/tabs.css.js +1 -1
  287. package/es/components/tabs/tabs.d.ts +49 -46
  288. package/es/components/tabs/tabs.js.map +1 -1
  289. package/es/components/tag/tag.css.js +1 -1
  290. package/es/components/tag/tag.d.ts +97 -91
  291. package/es/components/tag/tag.js.map +1 -1
  292. package/es/components/tearsheet/tearsheet.css.js +1 -1
  293. package/es/components/tearsheet/tearsheet.d.ts +49 -46
  294. package/es/components/tearsheet/tearsheet.js.map +1 -1
  295. package/es/components/text-input/text-input-skeleton.js.map +1 -1
  296. package/es/components/text-input/text-input.d.ts +98 -91
  297. package/es/components/text-input/text-input.js.map +1 -1
  298. package/es/components/textarea/textarea-skeleton.js.map +1 -1
  299. package/es/components/textarea/textarea.css.js +1 -1
  300. package/es/components/textarea/textarea.d.ts +2 -1
  301. package/es/components/textarea/textarea.js.map +1 -1
  302. package/es/components/tile/clickable-tile.js.map +1 -1
  303. package/es/components/tile/expandable-tile.d.ts +97 -91
  304. package/es/components/tile/expandable-tile.js.map +1 -1
  305. package/es/components/tile/radio-tile.js.map +1 -1
  306. package/es/components/tile/selectable-tile.d.ts +99 -92
  307. package/es/components/tile/selectable-tile.js.map +1 -1
  308. package/es/components/tile/tile-group.d.ts +49 -46
  309. package/es/components/tile/tile-group.js.map +1 -1
  310. package/es/components/tile/tile.css.js +1 -1
  311. package/es/components/tile/tile.js.map +1 -1
  312. package/es/components/toggle/toggle.d.ts +50 -49
  313. package/es/components/toggle/toggle.js.map +1 -1
  314. package/es/components/toggle-tip/toggletip.css.js +1 -1
  315. package/es/components/toggle-tip/toggletip.d.ts +99 -92
  316. package/es/components/toggle-tip/toggletip.js.map +1 -1
  317. package/es/components/tooltip/tooltip-content.js.map +1 -1
  318. package/es/components/tooltip/tooltip.d.ts +49 -46
  319. package/es/components/tooltip/tooltip.js.map +1 -1
  320. package/es/components/ui-shell/header-global-action.d.ts +2 -1
  321. package/es/components/ui-shell/header-global-action.js.map +1 -1
  322. package/es/components/ui-shell/header-menu-button.d.ts +49 -45
  323. package/es/components/ui-shell/header-menu-button.js.map +1 -1
  324. package/es/components/ui-shell/header-menu-item.js.map +1 -1
  325. package/es/components/ui-shell/header-menu.d.ts +99 -92
  326. package/es/components/ui-shell/header-menu.js.map +1 -1
  327. package/es/components/ui-shell/header-name.d.ts +49 -45
  328. package/es/components/ui-shell/header-name.js.map +1 -1
  329. package/es/components/ui-shell/header-nav-item.d.ts +49 -45
  330. package/es/components/ui-shell/header-nav-item.js.map +1 -1
  331. package/es/components/ui-shell/header-nav.js.map +1 -1
  332. package/es/components/ui-shell/header-panel.d.ts +2 -1
  333. package/es/components/ui-shell/header-panel.js.map +1 -1
  334. package/es/components/ui-shell/header-side-nav-items.js.map +1 -1
  335. package/es/components/ui-shell/header.js.map +1 -1
  336. package/es/components/ui-shell/side-nav-divider.js.map +1 -1
  337. package/es/components/ui-shell/side-nav-items.js.map +1 -1
  338. package/es/components/ui-shell/side-nav-link.d.ts +49 -45
  339. package/es/components/ui-shell/side-nav-link.js.map +1 -1
  340. package/es/components/ui-shell/side-nav-menu-item.d.ts +49 -45
  341. package/es/components/ui-shell/side-nav-menu-item.js.map +1 -1
  342. package/es/components/ui-shell/side-nav-menu.d.ts +49 -45
  343. package/es/components/ui-shell/side-nav-menu.js.map +1 -1
  344. package/es/components/ui-shell/side-nav.d.ts +50 -56
  345. package/es/components/ui-shell/side-nav.js +5 -47
  346. package/es/components/ui-shell/side-nav.js.map +1 -1
  347. package/es/components/ui-shell/switcher-divider.js.map +1 -1
  348. package/es/components/ui-shell/switcher-item.d.ts +49 -45
  349. package/es/components/ui-shell/switcher-item.js.map +1 -1
  350. package/es/components/ui-shell/switcher.d.ts +2 -1
  351. package/es/components/ui-shell/switcher.js.map +1 -1
  352. package/es/globals/controllers/popover-controller.js.map +1 -1
  353. package/es/globals/decorators/carbon-element.js.map +1 -1
  354. package/es/globals/internal/storybook-cdn.js.map +1 -1
  355. package/es/globals/mixins/focus.d.ts +47 -44
  356. package/es/globals/mixins/form.d.ts +48 -45
  357. package/es/globals/mixins/host-listener.d.ts +48 -45
  358. package/es/globals/mixins/host-listener.js.map +1 -1
  359. package/es/globals/mixins/validity.d.ts +48 -45
  360. package/es/globals/scss/themes.css.js +1 -1
  361. package/es/globals/settings.js.map +1 -1
  362. package/es/polyfills/toggle-class.js.map +1 -1
  363. package/lib/components-react-node/accordion/accordion-item-skeleton.js +2 -2
  364. package/lib/components-react-node/accordion/accordion-item.js +2 -2
  365. package/lib/components-react-node/accordion/accordion-skeleton.js +2 -2
  366. package/lib/components-react-node/accordion/accordion.js +2 -2
  367. package/lib/components-react-node/ai-skeleton/ai-skeleton-icon.js +2 -2
  368. package/lib/components-react-node/ai-skeleton/ai-skeleton-placeholder.js +2 -2
  369. package/lib/components-react-node/ai-skeleton/ai-skeleton-text.js +2 -2
  370. package/lib/components-react-node/breadcrumb/breadcrumb-item.js +2 -2
  371. package/lib/components-react-node/breadcrumb/breadcrumb-link.js +2 -2
  372. package/lib/components-react-node/breadcrumb/breadcrumb-overflow-menu.js +2 -2
  373. package/lib/components-react-node/breadcrumb/breadcrumb-skeleton.js +2 -2
  374. package/lib/components-react-node/breadcrumb/breadcrumb.js +2 -2
  375. package/lib/components-react-node/button/button-set-base.js +2 -2
  376. package/lib/components-react-node/button/button-set.js +2 -2
  377. package/lib/components-react-node/button/button-skeleton.js +2 -2
  378. package/lib/components-react-node/button/button.js +2 -2
  379. package/lib/components-react-node/chat-button/chat-button-skeleton.js +2 -2
  380. package/lib/components-react-node/chat-button/chat-button.js +2 -2
  381. package/lib/components-react-node/checkbox/checkbox-group.js +2 -2
  382. package/lib/components-react-node/checkbox/checkbox-skeleton.js +2 -2
  383. package/lib/components-react-node/checkbox/checkbox.js +2 -2
  384. package/lib/components-react-node/code-snippet/code-snippet-skeleton.js +2 -2
  385. package/lib/components-react-node/code-snippet/code-snippet.js +2 -2
  386. package/lib/components-react-node/combo-box/combo-box-item.js +2 -2
  387. package/lib/components-react-node/combo-box/combo-box.js +2 -2
  388. package/lib/components-react-node/content-switcher/content-switcher-item.js +2 -2
  389. package/lib/components-react-node/content-switcher/content-switcher.js +2 -2
  390. package/lib/components-react-node/copy/copy.js +2 -2
  391. package/lib/components-react-node/copy-button/copy-button.js +2 -2
  392. package/lib/components-react-node/data-table/table-batch-actions.js +2 -2
  393. package/lib/components-react-node/data-table/table-body.js +2 -2
  394. package/lib/components-react-node/data-table/table-cell-content.js +2 -2
  395. package/lib/components-react-node/data-table/table-cell.js +2 -2
  396. package/lib/components-react-node/data-table/table-expanded-row.js +2 -2
  397. package/lib/components-react-node/data-table/table-head.js +2 -2
  398. package/lib/components-react-node/data-table/table-header-cell.js +2 -2
  399. package/lib/components-react-node/data-table/table-header-description.js +2 -2
  400. package/lib/components-react-node/data-table/table-header-row.js +2 -2
  401. package/lib/components-react-node/data-table/table-header-title.js +2 -2
  402. package/lib/components-react-node/data-table/table-row.js +2 -2
  403. package/lib/components-react-node/data-table/table-skeleton.js +2 -2
  404. package/lib/components-react-node/data-table/table-toolbar-content.js +2 -2
  405. package/lib/components-react-node/data-table/table-toolbar-search.js +2 -2
  406. package/lib/components-react-node/data-table/table-toolbar.js +2 -2
  407. package/lib/components-react-node/data-table/table.js +2 -2
  408. package/lib/components-react-node/date-picker/date-picker-input-skeleton.js +2 -2
  409. package/lib/components-react-node/date-picker/date-picker-input.js +2 -2
  410. package/lib/components-react-node/date-picker/date-picker.js +2 -2
  411. package/lib/components-react-node/dropdown/dropdown-item.js +2 -2
  412. package/lib/components-react-node/dropdown/dropdown-skeleton.js +2 -2
  413. package/lib/components-react-node/dropdown/dropdown.js +2 -2
  414. package/lib/components-react-node/file-uploader/demo-file-uploader.js +2 -2
  415. package/lib/components-react-node/file-uploader/file-uploader-button.js +2 -2
  416. package/lib/components-react-node/file-uploader/file-uploader-drop-container.js +2 -2
  417. package/lib/components-react-node/file-uploader/file-uploader-item.js +2 -2
  418. package/lib/components-react-node/file-uploader/file-uploader-skeleton.js +2 -2
  419. package/lib/components-react-node/file-uploader/file-uploader.js +2 -2
  420. package/lib/components-react-node/form/form-item.js +2 -2
  421. package/lib/components-react-node/form-group/form-group.js +2 -2
  422. package/lib/components-react-node/icon-button/icon-button.js +2 -2
  423. package/lib/components-react-node/inline-loading/inline-loading.js +2 -2
  424. package/lib/components-react-node/layer/layer.js +2 -2
  425. package/lib/components-react-node/link/link.js +2 -2
  426. package/lib/components-react-node/list/list-item.js +2 -2
  427. package/lib/components-react-node/list/ordered-list.js +2 -2
  428. package/lib/components-react-node/list/unordered-list.js +2 -2
  429. package/lib/components-react-node/loading/loading.js +2 -2
  430. package/lib/components-react-node/modal/modal-body-content.js +2 -2
  431. package/lib/components-react-node/modal/modal-body.js +2 -2
  432. package/lib/components-react-node/modal/modal-close-button.js +2 -2
  433. package/lib/components-react-node/modal/modal-footer-button.js +2 -2
  434. package/lib/components-react-node/modal/modal-footer.js +2 -2
  435. package/lib/components-react-node/modal/modal-header.js +2 -2
  436. package/lib/components-react-node/modal/modal-heading.js +2 -2
  437. package/lib/components-react-node/modal/modal-label.js +2 -2
  438. package/lib/components-react-node/modal/modal.js +2 -2
  439. package/lib/components-react-node/multi-select/multi-select-item.js +2 -2
  440. package/lib/components-react-node/multi-select/multi-select.js +2 -2
  441. package/lib/components-react-node/notification/actionable-notification-button.js +2 -2
  442. package/lib/components-react-node/notification/actionable-notification.js +2 -2
  443. package/lib/components-react-node/notification/inline-notification.js +2 -2
  444. package/lib/components-react-node/notification/toast-notification.js +2 -2
  445. package/lib/components-react-node/number-input/number-input-skeleton.js +2 -2
  446. package/lib/components-react-node/number-input/number-input.js +2 -2
  447. package/lib/components-react-node/overflow-menu/overflow-menu-body.js +2 -2
  448. package/lib/components-react-node/overflow-menu/overflow-menu-item.js +2 -2
  449. package/lib/components-react-node/overflow-menu/overflow-menu.js +2 -2
  450. package/lib/components-react-node/pagination/pagination.js +2 -2
  451. package/lib/components-react-node/popover/popover-content.js +2 -2
  452. package/lib/components-react-node/popover/popover.js +2 -2
  453. package/lib/components-react-node/progress-bar/progress-bar.js +2 -2
  454. package/lib/components-react-node/progress-indicator/progress-indicator-skeleton.js +2 -2
  455. package/lib/components-react-node/progress-indicator/progress-indicator.js +2 -2
  456. package/lib/components-react-node/progress-indicator/progress-step-skeleton.js +2 -2
  457. package/lib/components-react-node/progress-indicator/progress-step.js +2 -2
  458. package/lib/components-react-node/radio-button/radio-button-group.js +2 -2
  459. package/lib/components-react-node/radio-button/radio-button-skeleton.js +2 -2
  460. package/lib/components-react-node/radio-button/radio-button.js +2 -2
  461. package/lib/components-react-node/search/search-skeleton.js +2 -2
  462. package/lib/components-react-node/search/search.js +2 -2
  463. package/lib/components-react-node/select/select-item-group.js +2 -2
  464. package/lib/components-react-node/select/select-item.js +2 -2
  465. package/lib/components-react-node/select/select-skeleton.js +2 -2
  466. package/lib/components-react-node/select/select.js +2 -2
  467. package/lib/components-react-node/side-panel/side-panel.js +2 -2
  468. package/lib/components-react-node/skeleton-icon/skeleton-icon.js +2 -2
  469. package/lib/components-react-node/skeleton-placeholder/skeleton-placeholder.js +2 -2
  470. package/lib/components-react-node/skeleton-text/skeleton-text.js +2 -2
  471. package/lib/components-react-node/skip-to-content/skip-to-content.js +2 -2
  472. package/lib/components-react-node/slider/slider-input.js +2 -2
  473. package/lib/components-react-node/slider/slider-skeleton.js +2 -2
  474. package/lib/components-react-node/slider/slider.js +2 -2
  475. package/lib/components-react-node/slug/slug-action-button.js +2 -2
  476. package/lib/components-react-node/slug/slug.js +2 -2
  477. package/lib/components-react-node/stack/stack.js +2 -2
  478. package/lib/components-react-node/structured-list/structured-list-body.js +2 -2
  479. package/lib/components-react-node/structured-list/structured-list-cell.js +2 -2
  480. package/lib/components-react-node/structured-list/structured-list-head.js +2 -2
  481. package/lib/components-react-node/structured-list/structured-list-header-cell-skeleton.js +2 -2
  482. package/lib/components-react-node/structured-list/structured-list-header-cell.js +2 -2
  483. package/lib/components-react-node/structured-list/structured-list-header-row.js +2 -2
  484. package/lib/components-react-node/structured-list/structured-list-row.js +2 -2
  485. package/lib/components-react-node/structured-list/structured-list.js +2 -2
  486. package/lib/components-react-node/tabs/tab-skeleton.js +2 -2
  487. package/lib/components-react-node/tabs/tab.js +2 -2
  488. package/lib/components-react-node/tabs/tabs-skeleton.js +2 -2
  489. package/lib/components-react-node/tabs/tabs.js +2 -2
  490. package/lib/components-react-node/tag/tag.js +2 -2
  491. package/lib/components-react-node/tearsheet/tearsheet.js +2 -2
  492. package/lib/components-react-node/text-input/text-input-skeleton.js +2 -2
  493. package/lib/components-react-node/text-input/text-input.js +2 -2
  494. package/lib/components-react-node/textarea/textarea-skeleton.js +2 -2
  495. package/lib/components-react-node/textarea/textarea.js +2 -2
  496. package/lib/components-react-node/tile/clickable-tile.js +2 -2
  497. package/lib/components-react-node/tile/expandable-tile.js +2 -2
  498. package/lib/components-react-node/tile/radio-tile.js +2 -2
  499. package/lib/components-react-node/tile/selectable-tile.js +2 -2
  500. package/lib/components-react-node/tile/tile-group.js +2 -2
  501. package/lib/components-react-node/tile/tile.js +2 -2
  502. package/lib/components-react-node/toggle/toggle.js +2 -2
  503. package/lib/components-react-node/toggle-tip/toggletip.js +2 -2
  504. package/lib/components-react-node/tooltip/tooltip-content.js +2 -2
  505. package/lib/components-react-node/tooltip/tooltip.js +2 -2
  506. package/lib/components-react-node/ui-shell/header-global-action.js +2 -2
  507. package/lib/components-react-node/ui-shell/header-menu-button.js +2 -2
  508. package/lib/components-react-node/ui-shell/header-menu-item.js +2 -2
  509. package/lib/components-react-node/ui-shell/header-menu.js +2 -2
  510. package/lib/components-react-node/ui-shell/header-name.js +2 -2
  511. package/lib/components-react-node/ui-shell/header-nav-item.js +2 -2
  512. package/lib/components-react-node/ui-shell/header-nav.js +2 -2
  513. package/lib/components-react-node/ui-shell/header-panel.js +2 -2
  514. package/lib/components-react-node/ui-shell/header-side-nav-items.js +2 -2
  515. package/lib/components-react-node/ui-shell/header.js +2 -2
  516. package/lib/components-react-node/ui-shell/side-nav-divider.js +2 -2
  517. package/lib/components-react-node/ui-shell/side-nav-items.js +2 -2
  518. package/lib/components-react-node/ui-shell/side-nav-link.js +2 -2
  519. package/lib/components-react-node/ui-shell/side-nav-menu-item.js +2 -2
  520. package/lib/components-react-node/ui-shell/side-nav-menu.js +2 -2
  521. package/lib/components-react-node/ui-shell/side-nav.js +2 -2
  522. package/lib/components-react-node/ui-shell/switcher-divider.js +2 -2
  523. package/lib/components-react-node/ui-shell/switcher-item.js +2 -2
  524. package/lib/components-react-node/ui-shell/switcher.js +2 -2
  525. package/lib/globals/controllers/popover-controller.js.map +1 -1
  526. package/lib/globals/settings.js.map +1 -1
  527. package/package.json +4 -4
  528. package/dist/20-7dd70a15.js +0 -73
  529. package/dist/checkbox-6b1a3bff.js +0 -109
  530. package/dist/dropdown-item-4c020a7d.js +0 -148
  531. package/dist/popover-controller-0c0475fc.js +0 -73
@@ -1 +1 @@
1
- {"version":3,"file":"slug.js","names":["classMap","html","property","prefix","CDSToggleTip","styles","Undo16","SLUG_SIZE","SLUG_KIND","carbonElement","customElement","CDSSlug","_decorate","_initialize","_CDSToggleTip","constructor","args","F","d","kind","decorators","reflect","key","value","attribute","DEFAULT","type","Boolean","EXTRA_SMALL","revertActive","removeAttribute","open","_t","_","size","aiText","aiTextLabel","slugLabel","ariaLabel","classes","INLINE","_t2","id","_handleClick","_t3","autoalign","revertLabel","_t4","_t5","slot","_t6","_renderTooltipButton","_renderTooltipContent","attributeChangedCallback","name","old","newValue","_this$parentElement","_get","_getPrototypeOf","prototype","call","parentElement","requestUpdate","static","default"],"sources":["components/slug/slug.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2024\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport CDSToggleTip from '../toggle-tip/toggletip';\nimport styles from './slug.scss';\nimport Undo16 from '@carbon/icons/lib/undo/16';\nimport { SLUG_SIZE, SLUG_KIND } from './defs';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Basic slug.\n *\n * @element cds-slug\n */\n@customElement(`${prefix}-slug`)\nexport default class CDSSlug extends CDSToggleTip {\n @property({ reflect: true })\n slot = 'slug';\n /**\n * Specify the correct translation of the AI text\n */\n @property({ attribute: 'ai-text' })\n aiText = 'AI';\n\n /**\n * Specify additional text to be rendered next to the AI label in the inline variant\n */\n @property({ attribute: 'ai-text-label' })\n aiTextLabel = '';\n\n /**\n * Specify the type of Slug, from the following list of types: (default, inline)\n */\n @property({ reflect: true })\n kind = SLUG_KIND.DEFAULT;\n\n /**\n * Specify whether the revert button should be visible\n */\n @property({ type: Boolean, attribute: 'revert-active' })\n revertActive = false;\n\n /**\n * Specify whether the revert button should be visible\n */\n @property({ attribute: 'revert-label' })\n revertLabel = 'Revert to AI input';\n\n /**\n * Slug size should be mini, 2xs, xs, sm, md, lg, xl.\n */\n @property({ reflect: true })\n size = SLUG_SIZE.EXTRA_SMALL;\n\n /**\n * Specify the text that will be provided to the aria-label of the `Slug` button\n */\n @property({ attribute: 'slug-label' })\n slugLabel = 'Show information';\n\n @property()\n previousValue;\n\n protected _handleClick = () => {\n if (this.revertActive) {\n this.revertActive = false;\n this.removeAttribute('revert-active');\n } else {\n this.open = !this.open;\n }\n };\n\n protected _renderToggleTipLabel = () => {\n return html``;\n };\n\n protected _renderTooltipButton = () => {\n const { size, kind, aiText, aiTextLabel, slugLabel } = this;\n const ariaLabel = `${aiText} - ${slugLabel}`;\n const classes = classMap({\n [`${prefix}--toggletip-button`]: true,\n [`${prefix}--slug__button`]: true,\n [`${prefix}--slug__button--${size}`]: size,\n [`${prefix}--slug__button--${kind}`]: kind,\n [`${prefix}--slug__button--inline-with-content`]:\n kind === SLUG_KIND.INLINE && aiTextLabel,\n });\n return html`\n <button\n aria-controls=\"${this.id}\"\n @click=\"${this._handleClick}\"\n class=${classes}\n aria-label=\"${ariaLabel}\">\n <span class=\"${prefix}--slug__text\">${aiText}</span>\n ${aiTextLabel && kind === SLUG_KIND.INLINE\n ? html`\n <span class=\"${prefix}--slug__additional-text\">\n ${aiTextLabel}\n </span>\n `\n : ``}\n </button>\n `;\n };\n\n protected _renderInnerContent = () => {\n const { autoalign, revertActive, revertLabel } = this;\n return html`\n ${revertActive\n ? html`\n <cds-icon-button\n ?autoalign=${autoalign}\n kind=\"ghost\"\n size=\"sm\"\n @click=\"${this._handleClick}\">\n <span slot=\"tooltip-content\"> ${revertLabel} </span>\n ${Undo16({ slot: 'icon' })}\n </cds-icon-button>\n `\n : html`\n ${this._renderTooltipButton()} ${this._renderTooltipContent()}\n `}\n `;\n };\n\n attributeChangedCallback(name, old, newValue) {\n super.attributeChangedCallback(name, old, newValue);\n\n //@ts-ignore typescript does not think requestUpdate() exists on parentElement\n name === 'revert-active' ? this.parentElement?.requestUpdate() : ``;\n }\n\n static styles = styles;\n}\n"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,6BAA6B;AACtD,SAASC,IAAI,QAAQ,KAAK;AAC1B,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,YAAY,MAAM,yBAAyB;AAClD,OAAOC,MAAM,MAAM,iBAAa;AAChC,OAAOC,MAAM,MAAM,qBAA2B;AAC9C,SAASC,SAAS,EAAEC,SAAS,Q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CAAC;YAAE2C,IAAI,EAAE;UAAO,CAAC,CAAC,IAG9BhD,IAAI,CAAAiD,GAAA,KAAAA,GAAA,GAAAjB,CAAC;AACf,cAAY,CAA8B,IAAC,CAA+B;AAC1E,WAAU,GADI,IAAI,CAACkB,oBAAoB,CAAC,CAAC,EAAI,IAAI,CAACC,qBAAqB,CAAC,CAAC,CAC9D;QAET,CAAC;MAAA;IAAA;MAAAjC,IAAA;MAAAG,GAAA;MAAAC,KAAA;MAzGD;AACF;AACA;;MAIE;AACF;AACA;;MAIE;AACF;AACA;;MAIE;AACF;AACA;;MAIE;AACF;AACA;;MAIE;AACF;AACA;;MAIE;AACF;AACA;;MAqEE,SAAA8B,yBAAyBC,IAAI,EAAEC,GAAG,EAAEC,QAAQ,EAAE;QAAA,IAAAC,mBAAA;QAC5CC,IAAA,CAAAC,eAAA,CA/GiBhD,OAAO,CAAAiD,SAAA,qCAAAC,IAAA,OA+GOP,IAAI,EAAEC,GAAG,EAAEC,QAAQ;;QAElD;QACAF,IAAI,KAAK,eAAe,IAAAG,mBAAA,GAAG,IAAI,CAACK,aAAa,cAAAL,mBAAA,uBAAlBA,mBAAA,CAAoBM,aAAa,CAAC,CAAC,GAAI,EAAC;MACrE;IAAC;MAAA5C,IAAA;MAAA6C,MAAA;MAAA1C,GAAA;MAAAC,MAAA;QAAA,OAEelB,MAAM;MAAA;IAAA;EAAA;AAAA,GArHaD,YAAY;AAAA,SAA5BO,OAAO,IAAAsD,OAAA","ignoreList":[]}
1
+ {"version":3,"file":"slug.js","names":["classMap","html","property","prefix","CDSToggleTip","styles","Undo16","SLUG_SIZE","SLUG_KIND","carbonElement","customElement","CDSSlug","_decorate","_initialize","_CDSToggleTip","constructor","args","F","d","kind","decorators","reflect","key","value","attribute","DEFAULT","type","Boolean","EXTRA_SMALL","revertActive","removeAttribute","open","_t","_","size","aiText","aiTextLabel","slugLabel","ariaLabel","classes","INLINE","_t2","id","_handleClick","_t3","autoalign","revertLabel","_t4","_t5","slot","_t6","_renderTooltipButton","_renderTooltipContent","attributeChangedCallback","name","old","newValue","_this$parentElement","_get","_getPrototypeOf","prototype","call","parentElement","requestUpdate","static","default"],"sources":["components/slug/slug.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2024\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport CDSToggleTip from '../toggle-tip/toggletip';\nimport styles from './slug.scss';\nimport Undo16 from '@carbon/icons/lib/undo/16';\nimport { SLUG_SIZE, SLUG_KIND } from './defs';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Basic slug.\n *\n * @element cds-slug\n */\n@customElement(`${prefix}-slug`)\nexport default class CDSSlug extends CDSToggleTip {\n @property({ reflect: true })\n slot = 'slug';\n /**\n * Specify the correct translation of the AI text\n */\n @property({ attribute: 'ai-text' })\n aiText = 'AI';\n\n /**\n * Specify additional text to be rendered next to the AI label in the inline variant\n */\n @property({ attribute: 'ai-text-label' })\n aiTextLabel = '';\n\n /**\n * Specify the type of Slug, from the following list of types: (default, inline)\n */\n @property({ reflect: true })\n kind = SLUG_KIND.DEFAULT;\n\n /**\n * Specify whether the revert button should be visible\n */\n @property({ type: Boolean, attribute: 'revert-active' })\n revertActive = false;\n\n /**\n * Specify whether the revert button should be visible\n */\n @property({ attribute: 'revert-label' })\n revertLabel = 'Revert to AI input';\n\n /**\n * Slug size should be mini, 2xs, xs, sm, md, lg, xl.\n */\n @property({ reflect: true })\n size = SLUG_SIZE.EXTRA_SMALL;\n\n /**\n * Specify the text that will be provided to the aria-label of the `Slug` button\n */\n @property({ attribute: 'slug-label' })\n slugLabel = 'Show information';\n\n @property()\n previousValue;\n\n protected _handleClick = () => {\n if (this.revertActive) {\n this.revertActive = false;\n this.removeAttribute('revert-active');\n } else {\n this.open = !this.open;\n }\n };\n\n protected _renderToggleTipLabel = () => {\n return html``;\n };\n\n protected _renderTooltipButton = () => {\n const { size, kind, aiText, aiTextLabel, slugLabel } = this;\n const ariaLabel = `${aiText} - ${slugLabel}`;\n const classes = classMap({\n [`${prefix}--toggletip-button`]: true,\n [`${prefix}--slug__button`]: true,\n [`${prefix}--slug__button--${size}`]: size,\n [`${prefix}--slug__button--${kind}`]: kind,\n [`${prefix}--slug__button--inline-with-content`]:\n kind === SLUG_KIND.INLINE && aiTextLabel,\n });\n return html`\n <button\n aria-controls=\"${this.id}\"\n @click=\"${this._handleClick}\"\n class=${classes}\n aria-label=\"${ariaLabel}\">\n <span class=\"${prefix}--slug__text\">${aiText}</span>\n ${aiTextLabel && kind === SLUG_KIND.INLINE\n ? html`\n <span class=\"${prefix}--slug__additional-text\">\n ${aiTextLabel}\n </span>\n `\n : ``}\n </button>\n `;\n };\n\n protected _renderInnerContent = () => {\n const { autoalign, revertActive, revertLabel } = this;\n return html`\n ${revertActive\n ? html`\n <cds-icon-button\n ?autoalign=${autoalign}\n kind=\"ghost\"\n size=\"sm\"\n @click=\"${this._handleClick}\">\n <span slot=\"tooltip-content\"> ${revertLabel} </span>\n ${Undo16({ slot: 'icon' })}\n </cds-icon-button>\n `\n : html`\n ${this._renderTooltipButton()} ${this._renderTooltipContent()}\n `}\n `;\n };\n\n attributeChangedCallback(name, old, newValue) {\n super.attributeChangedCallback(name, old, newValue);\n\n //@ts-ignore typescript does not think requestUpdate() exists on parentElement\n name === 'revert-active' ? this.parentElement?.requestUpdate() : ``;\n }\n\n static styles = styles;\n}\n"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,6BAA6B;AACtD,SAASC,IAAI,QAAQ,KAAK;AAC1B,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,YAAY,MAAM,yBAAyB;AAClD,OAA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hD,IAAI,CAAAiD,GAAA,KAAAA,GAAA,GAAAjB,CAAA;AACd,cADc;AACd,WADc,GACA,IAAI,CAACkB,oBAAoB,CAAC,CAAC,EAAI,IAAI,CAACC,qBAAqB,CAAC,CAAC,CAC9D;QAET,CAAC;MAAA;IAAA;MAAAjC,IAAA;MAAAG,GAAA;MAAAC,KAAA;MAzGD;AACF;AACA;;MAIE;AACF;AACA;;MAIE;AACF;AACA;;MAIE;AACF;AACA;;MAIE;AACF;AACA;;MAIE;AACF;AACA;;MAIE;AACF;AACA;;MAqEE,SAAA8B,yBAAyBC,IAAI,EAAEC,GAAG,EAAEC,QAAQ,EAAE;QAAA,IAAAC,mBAAA;QAC5CC,IAAA,CAAAC,eAAA,CA/GiBhD,OAAO,CAAAiD,SAAA,qCAAAC,IAAA,OA+GOP,IAAI,EAAEC,GAAG,EAAEC,QAAQ;;QAElD;QACAF,IAAI,KAAK,eAAe,IAAAG,mBAAA,GAAG,IAAI,CAACK,aAAa,cAAAL,mBAAA,uBAAlBA,mBAAA,CAAoBM,aAAa,CAAC,CAAC,GAAG,EAAE;MACrE;IAAC;MAAA5C,IAAA;MAAA6C,MAAA;MAAA1C,GAAA;MAAAC,MAAA;QAAA,OAEelB,MAAM;MAAA;IAAA;EAAA;AAAA,GArHaD,YAAY;AAAA,SAA5BO,OAAO,IAAAsD,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"stack.js","names":["LitElement","html","customElement","property","prefix","styles","STACK_ORIENTATION","SPACING_STEPS","CDSStack","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","decorators","type","String","reflect","key","value","VERTICAL","Boolean","attribute","updated","changedProperties","has","useCustomGapValue","style","setProperty","gap","_this$shadowRoot","_this$shadowRoot2","oldGapValue","get","shadowRoot","querySelector","classList","remove","add","render","_t","_","static"],"sources":["components/stack/stack.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2023\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 { LitElement, html } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './stack.scss';\nimport { STACK_ORIENTATION, SPACING_STEPS } from './defs';\n\nexport { STACK_ORIENTATION, SPACING_STEPS };\n\n/**\n * The Stack component is a useful layout utility in a component-based model.\n * This allows components to not use margin and instead delegate the\n * responsibility of positioning and layout to parent components.\n *\n * In the case of the Stack component, it uses the spacing scale from the\n * Design Language in order to determine how much space there should be between\n * items rendered by the Stack component. It also supports a custom `gap` prop\n * which will allow a user to provide a custom value for the gap of the layout.\n *\n * This component supports both horizontal and vertical orientations.\n *\n * @element cds-stack\n */\n@customElement(`${prefix}-stack`)\nclass CDSStack extends LitElement {\n /**\n * Specify the orientation of them items in the Stack\n */\n @property({ type: String, reflect: true })\n orientation = STACK_ORIENTATION.VERTICAL;\n\n /**\n * Provide either a custom value or a step from the spacing scale to be used\n * as the gap in the layout\n */\n @property({ type: SPACING_STEPS || String, reflect: true })\n gap;\n\n /**\n * Turn on when passing in custom value to 'gap' attribute (ie. gap=\"2rem\")\n */\n @property({ type: Boolean, attribute: 'use-custom-gap-value' })\n useCustomGapValue = false;\n\n updated(changedProperties) {\n if (changedProperties.has('gap')) {\n if (this.useCustomGapValue) {\n this.style.setProperty(`--${prefix}-stack-gap`, `${this.gap}`);\n } else {\n const oldGapValue = changedProperties.get('gap');\n this.shadowRoot\n ?.querySelector('div')\n ?.classList.remove(`${prefix}--stack-scale-${oldGapValue}`);\n this.shadowRoot\n ?.querySelector('div')\n ?.classList.add(`${prefix}--stack-scale-${this.gap}`);\n }\n }\n }\n\n render() {\n return html`<div><slot></slot></div>`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default CDSStack;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,a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AChC,IAAI,IAAI,CAACC,iBAAiB,EAAE;YAC1B,IAAI,CAACC,KAAK,CAACC,WAAW,CAAE,KAAI3B,MAAO,YAAW,EAAG,GAAE,IAAI,CAAC4B,GAAI,EAAC,CAAC;UAChE,CAAC,MAAM;YAAA,IAAAC,gBAAA,EAAAC,iBAAA;YACL,MAAMC,WAAW,GAAGR,iBAAiB,CAACS,GAAG,CAAC,KAAK,CAAC;YAChD,CAAAH,gBAAA,OAAI,CAACI,UAAU,cAAAJ,gBAAA,gBAAAA,gBAAA,GAAfA,gBAAA,CACIK,aAAa,CAAC,KAAK,CAAC,cAAAL,gBAAA,eADxBA,gBAAA,CAEIM,SAAS,CAACC,MAAM,CAAE,GAAEpC,MAAO,iBAAgB+B,WAAY,EAAC,CAAC;YAC7D,CAAAD,iBAAA,OAAI,CAACG,UAAU,cAAAH,iBAAA,gBAAAA,iBAAA,GAAfA,iBAAA,CACII,aAAa,CAAC,KAAK,CAAC,cAAAJ,iBAAA,eADxBA,iBAAA,CAEIK,SAAS,CAACE,GAAG,CAAE,GAAErC,MAAO,iBAAgB,IAAI,CAAC4B,GAAI,EAAC,CAAC;UACzD;QACF;MACF;IAAC;MAAAhB,IAAA;MAAAK,GAAA;MAAAC,KAAA,EAED,SAAAoB,OAAA,EAAS;QACP,OAAOzC,IAAI,CAAA0C,EAAA,KAAAA,EAAA,GAAAC,CAAC,0BAAwB;MACtC;IAAC;MAAA5B,IAAA;MAAA6B,MAAA;MAAAxB,GAAA;MAAAC,MAAA;QAAA,OAEejB,MAAM;MAAA;IAAA;EAAA;AAAA,GAxCDL,UAAU;AA2CjC,eAAeQ,QAAQ","ignoreList":[]}
1
+ {"version":3,"file":"stack.js","names":["LitElement","html","customElement","property","prefix","styles","STACK_ORIENTATION","SPACING_STEPS","CDSStack","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","decorators","type","String","reflect","key","value","VERTICAL","Boolean","attribute","updated","changedProperties","has","useCustomGapValue","style","setProperty","gap","_this$shadowRoot","_this$shadowRoot2","oldGapValue","get","shadowRoot","querySelector","classList","remove","add","render","_t","_","static"],"sources":["components/stack/stack.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2023\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 { LitElement, html } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './stack.scss';\nimport { STACK_ORIENTATION, SPACING_STEPS } from './defs';\n\nexport { STACK_ORIENTATION, SPACING_STEPS };\n\n/**\n * The Stack component is a useful layout utility in a component-based model.\n * This allows components to not use margin and instead delegate the\n * responsibility of positioning and layout to parent components.\n *\n * In the case of the Stack component, it uses the spacing scale from the\n * Design Language in order to determine how much space there should be between\n * items rendered by the Stack component. It also supports a custom `gap` prop\n * which will allow a user to provide a custom value for the gap of the layout.\n *\n * This component supports both horizontal and vertical orientations.\n *\n * @element cds-stack\n */\n@customElement(`${prefix}-stack`)\nclass CDSStack extends LitElement {\n /**\n * Specify the orientation of them items in the Stack\n */\n @property({ type: String, reflect: true })\n orientation = STACK_ORIENTATION.VERTICAL;\n\n /**\n * Provide either a custom value or a step from the spacing scale to be used\n * as the gap in the layout\n */\n @property({ type: SPACING_STEPS || String, reflect: true })\n gap;\n\n /**\n * Turn on when passing in custom value to 'gap' attribute (ie. gap=\"2rem\")\n */\n @property({ type: Boolean, attribute: 'use-custom-gap-value' })\n useCustomGapValue = false;\n\n updated(changedProperties) {\n if (changedProperties.has('gap')) {\n if (this.useCustomGapValue) {\n this.style.setProperty(`--${prefix}-stack-gap`, `${this.gap}`);\n } else {\n const oldGapValue = changedProperties.get('gap');\n this.shadowRoot\n ?.querySelector('div')\n ?.classList.remove(`${prefix}--stack-scale-${oldGapValue}`);\n this.shadowRoot\n ?.querySelector('div')\n ?.classList.add(`${prefix}--stack-scale-${this.gap}`);\n }\n }\n }\n\n render() {\n return html`<div><slot></slot></div>`;\n }\n\n static styles = styles;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ement","html","prefix","carbonElement","customElement","styles","CDSStructuredListBody","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","key","value","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","render","_t","_","static"],"sources":["components/structured-list/structured-list-body.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { prefix } from '../../globals/settings';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\nimport styles from './structured-list.scss';\n\n/**\n * Structured list body.\n *\n * @element cds-structured-list-body\n */\n@customElement(`${prefix}-structured-list-body`)\nclass CDSStructuredListBody extends LitElement {\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'rowgroup');\n }\n super.connectedCallback();\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSStructuredListBody;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;AACxF,OAAOC,MAAM,MAAM,4BAAwB;;AAE3C;AACA;AACA;AACA;AACA,GAJA;AACA;AACA;AACA;AACA;AAJA,IAMMC,qBAAqB,GAAAC,SAAA,EAD1BH,aAAa,CAAE,GAAEF,MAAO,uBAAsB,CAAC,aAAAM,WAAA,EAAAC,WAAA;EAAhD,MACMH,qBAAqB,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAa/C;EAAC;IAAAI,CAAA,EAbKN,qBAAqB;IAAAO,CAAA;MAAAC,IAAA;MAAAC,GAAA;MAAAC,KAAA,EACzB,SAAAC,kBAAA,EAAoB;QAClB,IAAI,CAAC,IAAI,CAACC,YAAY,CAAC,MAAM,CAAC,EAAE;UAC9B,IAAI,CAACC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC;QACvC;QACAC,IAAA,CAAAC,eAAA,CALEf,qBAAqB,CAAAgB,SAAA,8BAAAC,IAAA;MAMzB;IAAC;MAAAT,IAAA;MAAAC,GAAA;MAAAC,KAAA,EAED,SAAAQ,OAAA,EAAS;QACP,OAAOvB,IAAI,CAAAwB,EAAA,KAAAA,EAAA,GAAAC,CAAC,iBAAe;MAC7B;IAAC;MAAAZ,IAAA;MAAAa,MAAA;MAAAZ,GAAA;MAAAC,MAAA;QAAA,OAEeX,MAAM;MAAA;IAAA;EAAA;AAAA,GAZYL,UAAU;AAe9C,eAAeM,qBAAqB","ignoreList":[]}
1
+ {"version":3,"file":"structured-list-body.js","names":["LitElement","html","prefix","carbonElement","customElement","styles","CDSStructuredListBody","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","key","value","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","render","_t","_","static"],"sources":["components/structured-list/structured-list-body.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { prefix } from '../../globals/settings';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\nimport styles from './structured-list.scss';\n\n/**\n * Structured list body.\n *\n * @element cds-structured-list-body\n */\n@customElement(`${prefix}-structured-list-body`)\nclass CDSStructuredListBody extends LitElement {\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'rowgroup');\n }\n super.connectedCallback();\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSStructuredListBody;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;AACxF,OAAOC,MAAM,MAAM,4BAAwB;;AAE3C;AACA;AACA;AACA;AACA,GAJA;AACA;AACA;AACA;AACA;AAJA,IAMMC,qBAAqB,GAAAC,SAAA,EAD1BH,aAAa,CAAC,GAAGF,MAAM,uBAAuB,CAAC,aAAAM,WAAA,EAAAC,WAAA;EAAhD,MACMH,qBAAqB,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAa/C;EAAC;IAAAI,CAAA,EAbKN,qBAAqB;IAAAO,CAAA;MAAAC,IAAA;MAAAC,GAAA;MAAAC,KAAA,EACzB,SAAAC,kBAAA,EAAoB;QAClB,IAAI,CAAC,IAAI,CAACC,YAAY,CAAC,MAAM,CAAC,EAAE;UAC9B,IAAI,CAACC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC;QACvC;QACAC,IAAA,CAAAC,eAAA,CALEf,qBAAqB,CAAAgB,SAAA,8BAAAC,IAAA;MAMzB;IAAC;MAAAT,IAAA;MAAAC,GAAA;MAAAC,KAAA,EAED,SAAAQ,OAAA,EAAS;QACP,OAAOvB,IAAI,CAAAwB,EAAA,KAAAA,EAAA,GAAAC,CAAA;MACb;IAAC;MAAAZ,IAAA;MAAAa,MAAA;MAAAZ,GAAA;MAAAC,MAAA;QAAA,OAEeX,MAAM;MAAA;IAAA;EAAA;AAAA,GAZYL,UAAU;AAe9C,eAAeM,qBAAqB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"structured-list-cell.js","names":["LitElement","html","prefix","styles","carbonElement","customElement","CDSStructuredListCell","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","key","value","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","render","_t","_","static"],"sources":["components/structured-list/structured-list-cell.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\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 { LitElement, html } from 'lit';\nimport { prefix } from '../../globals/settings';\nimport styles from './structured-list.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Structured list cell.\n *\n * @element cds-structured-list-cell\n */\n@customElement(`${prefix}-structured-list-cell`)\nclass CDSStructuredListCell extends LitElement {\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'cell');\n }\n super.connectedCallback();\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSStructuredListCell;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,MAAM,MAAM,4BAAwB;AAC3C,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;;AAExF;AACA;AACA;AACA;AACA;AAJA,IAMMC,qBAAqB,GAAAC,SAAA,EAD1BF,aAAa,CAAE,GAAEH,MAAO,uBAAsB,CAAC,aAAAM,WAAA,EAAAC,WAAA;EAAhD,MACMH,qBAAqB,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAa/C;EAAC;IAAAI,CAAA,EAbKN,qBAAqB;IAAAO,CAAA;MAAAC,IAAA;MAAAC,GAAA;MAAAC,KAAA,EACzB,SAAAC,kBAAA,EAAoB;QAClB,IAAI,CAAC,IAAI,CAACC,YAAY,CAAC,MAAM,CAAC,EAAE;UAC9B,IAAI,CAACC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC;QACnC;QACAC,IAAA,CAAAC,eAAA,CALEf,qBAAqB,CAAAgB,SAAA,8BAAAC,IAAA;MAMzB;IAAC;MAAAT,IAAA;MAAAC,GAAA;MAAAC,KAAA,EAED,SAAAQ,OAAA,EAAS;QACP,OAAOvB,IAAI,CAAAwB,EAAA,KAAAA,EAAA,GAAAC,CAAC,iBAAe;MAC7B;IAAC;MAAAZ,IAAA;MAAAa,MAAA;MAAAZ,GAAA;MAAAC,MAAA;QAAA,OAEeb,MAAM;MAAA;IAAA;EAAA;AAAA,GAZYH,UAAU;AAe9C,eAAeM,qBAAqB","ignoreList":[]}
1
+ {"version":3,"file":"structured-list-cell.js","names":["LitElement","html","prefix","styles","carbonElement","customElement","CDSStructuredListCell","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","key","value","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","render","_t","_","static"],"sources":["components/structured-list/structured-list-cell.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\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 { LitElement, html } from 'lit';\nimport { prefix } from '../../globals/settings';\nimport styles from './structured-list.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Structured list cell.\n *\n * @element cds-structured-list-cell\n */\n@customElement(`${prefix}-structured-list-cell`)\nclass CDSStructuredListCell extends LitElement {\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'cell');\n }\n super.connectedCallback();\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSStructuredListCell;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,MAAM,MAAM,4BAAwB;AAC3C,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;;AAExF;AACA;AACA;AACA;AACA;AAJA,IAMMC,qBAAqB,GAAAC,SAAA,EAD1BF,aAAa,CAAC,GAAGH,MAAM,uBAAuB,CAAC,aAAAM,WAAA,EAAAC,WAAA;EAAhD,MACMH,qBAAqB,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAa/C;EAAC;IAAAI,CAAA,EAbKN,qBAAqB;IAAAO,CAAA;MAAAC,IAAA;MAAAC,GAAA;MAAAC,KAAA,EACzB,SAAAC,kBAAA,EAAoB;QAClB,IAAI,CAAC,IAAI,CAACC,YAAY,CAAC,MAAM,CAAC,EAAE;UAC9B,IAAI,CAACC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC;QACnC;QACAC,IAAA,CAAAC,eAAA,CALEf,qBAAqB,CAAAgB,SAAA,8BAAAC,IAAA;MAMzB;IAAC;MAAAT,IAAA;MAAAC,GAAA;MAAAC,KAAA,EAED,SAAAQ,OAAA,EAAS;QACP,OAAOvB,IAAI,CAAAwB,EAAA,KAAAA,EAAA,GAAAC,CAAA;MACb;IAAC;MAAAZ,IAAA;MAAAa,MAAA;MAAAZ,GAAA;MAAAC,MAAA;QAAA,OAEeb,MAAM;MAAA;IAAA;EAAA;AAAA,GAZYH,UAAU;AAe9C,eAAeM,qBAAqB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"structured-list-head.js","names":["LitElement","html","prefix","carbonElement","customElement","styles","CDSStructuredListHeader","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","key","value","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","render","_t","_","static"],"sources":["components/structured-list/structured-list-head.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { prefix } from '../../globals/settings';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\nimport styles from './structured-list.scss';\n\n/**\n * Structured list header.\n *\n * @element cds-structured-list-head\n */\n@customElement(`${prefix}-structured-list-head`)\nclass CDSStructuredListHeader extends LitElement {\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'rowgroup');\n }\n super.connectedCallback();\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSStructuredListHeader;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;AACxF,OAAOC,MAAM,MAAM,4BAAwB;;AAE3C;AACA;AACA;AACA;AACA,GAJA;AACA;AACA;AACA;AACA;AAJA,IAMMC,uBAAuB,GAAAC,SAAA,EAD5BH,aAAa,CAAE,GAAEF,MAAO,uBAAsB,CAAC,aAAAM,WAAA,EAAAC,WAAA;EAAhD,MACMH,uBAAuB,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAajD;EAAC;IAAAI,CAAA,EAbKN,uBAAuB;IAAAO,CAAA;MAAAC,IAAA;MAAAC,GAAA;MAAAC,KAAA,EAC3B,SAAAC,kBAAA,EAAoB;QAClB,IAAI,CAAC,IAAI,CAACC,YAAY,CAAC,MAAM,CAAC,EAAE;UAC9B,IAAI,CAACC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC;QACvC;QACAC,IAAA,CAAAC,eAAA,CALEf,uBAAuB,CAAAgB,SAAA,8BAAAC,IAAA;MAM3B;IAAC;MAAAT,IAAA;MAAAC,GAAA;MAAAC,KAAA,EAED,SAAAQ,OAAA,EAAS;QACP,OAAOvB,IAAI,CAAAwB,EAAA,KAAAA,EAAA,GAAAC,CAAC,iBAAe;MAC7B;IAAC;MAAAZ,IAAA;MAAAa,MAAA;MAAAZ,GAAA;MAAAC,MAAA;QAAA,OAEeX,MAAM;MAAA;IAAA;EAAA;AAAA,GAZcL,UAAU;AAehD,eAAeM,uBAAuB","ignoreList":[]}
1
+ {"version":3,"file":"structured-list-head.js","names":["LitElement","html","prefix","carbonElement","customElement","styles","CDSStructuredListHeader","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","key","value","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","render","_t","_","static"],"sources":["components/structured-list/structured-list-head.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { prefix } from '../../globals/settings';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\nimport styles from './structured-list.scss';\n\n/**\n * Structured list header.\n *\n * @element cds-structured-list-head\n */\n@customElement(`${prefix}-structured-list-head`)\nclass CDSStructuredListHeader extends LitElement {\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'rowgroup');\n }\n super.connectedCallback();\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSStructuredListHeader;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;AACxF,OAAOC,MAAM,MAAM,4BAAwB;;AAE3C;AACA;AACA;AACA;AACA,GAJA;AACA;AACA;AACA;AACA;AAJA,IAMMC,uBAAuB,GAAAC,SAAA,EAD5BH,aAAa,CAAC,GAAGF,MAAM,uBAAuB,CAAC,aAAAM,WAAA,EAAAC,WAAA;EAAhD,MACMH,uBAAuB,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAajD;EAAC;IAAAI,CAAA,EAbKN,uBAAuB;IAAAO,CAAA;MAAAC,IAAA;MAAAC,GAAA;MAAAC,KAAA,EAC3B,SAAAC,kBAAA,EAAoB;QAClB,IAAI,CAAC,IAAI,CAACC,YAAY,CAAC,MAAM,CAAC,EAAE;UAC9B,IAAI,CAACC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC;QACvC;QACAC,IAAA,CAAAC,eAAA,CALEf,uBAAuB,CAAAgB,SAAA,8BAAAC,IAAA;MAM3B;IAAC;MAAAT,IAAA;MAAAC,GAAA;MAAAC,KAAA,EAED,SAAAQ,OAAA,EAAS;QACP,OAAOvB,IAAI,CAAAwB,EAAA,KAAAA,EAAA,GAAAC,CAAA;MACb;IAAC;MAAAZ,IAAA;MAAAa,MAAA;MAAAZ,GAAA;MAAAC,MAAA;QAAA,OAEeX,MAAM;MAAA;IAAA;EAAA;AAAA,GAZcL,UAAU;AAehD,eAAeM,uBAAuB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"structured-list-header-cell-skeleton.js","names":["LitElement","html","prefix","styles","carbonElement","customElement","CDSStructuredListHeaderCellSkeleton","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","key","value","render","_t","_","static"],"sources":["components/structured-list/structured-list-header-cell-skeleton.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { prefix } from '../../globals/settings';\nimport styles from './structured-list.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Skeleton of structured list header cell.\n */\n@customElement(`${prefix}-structured-list-header-cell-skeleton`)\nclass CDSStructuredListHeaderCellSkeleton extends LitElement {\n render() {\n return html` <span></span> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSStructuredListHeaderCellSkeleton;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,MAAM,MAAM,4BAAwB;AAC3C,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;;AAExF;AACA;AACA;AAFA,IAIMC,mCAAmC,GAAAC,SAAA,EADxCF,aAAa,CAAE,GAAEH,MAAO,uCAAsC,CAAC,aAAAM,WAAA,EAAAC,WAAA;EAAhE,MACMH,mCAAmC,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAM7D;EAAC;IAAAI,CAAA,EANKN,mCAAmC;IAAAO,CAAA;MAAAC,IAAA;MAAAC,GAAA;MAAAC,KAAA,EACvC,SAAAC,OAAA,EAAS;QACP,OAAOhB,IAAI,CAAAiB,EAAA,KAAAA,EAAA,GAAAC,CAAC,iBAAe;MAC7B;IAAC;MAAAL,IAAA;MAAAM,MAAA;MAAAL,GAAA;MAAAC,MAAA;QAAA,OAEeb,MAAM;MAAA;IAAA;EAAA;AAAA,GAL0BH,UAAU;AAQ5D,eAAeM,mCAAmC","ignoreList":[]}
1
+ {"version":3,"file":"structured-list-header-cell-skeleton.js","names":["LitElement","html","prefix","styles","carbonElement","customElement","CDSStructuredListHeaderCellSkeleton","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","key","value","render","_t","_","static"],"sources":["components/structured-list/structured-list-header-cell-skeleton.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { prefix } from '../../globals/settings';\nimport styles from './structured-list.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Skeleton of structured list header cell.\n */\n@customElement(`${prefix}-structured-list-header-cell-skeleton`)\nclass CDSStructuredListHeaderCellSkeleton extends LitElement {\n render() {\n return html` <span></span> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSStructuredListHeaderCellSkeleton;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,MAAM,MAAM,4BAAwB;AAC3C,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;;AAExF;AACA;AACA;AAFA,IAIMC,mCAAmC,GAAAC,SAAA,EADxCF,aAAa,CAAC,GAAGH,MAAM,uCAAuC,CAAC,aAAAM,WAAA,EAAAC,WAAA;EAAhE,MACMH,mCAAmC,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAM7D;EAAC;IAAAI,CAAA,EANKN,mCAAmC;IAAAO,CAAA;MAAAC,IAAA;MAAAC,GAAA;MAAAC,KAAA,EACvC,SAAAC,OAAA,EAAS;QACP,OAAOhB,IAAI,CAAAiB,EAAA,KAAAA,EAAA,GAAAC,CAAA;MACb;IAAC;MAAAL,IAAA;MAAAM,MAAA;MAAAL,GAAA;MAAAC,MAAA;QAAA,OAEeb,MAAM;MAAA;IAAA;EAAA;AAAA,GAL0BH,UAAU;AAQ5D,eAAeM,mCAAmC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"structured-list-header-cell.js","names":["LitElement","html","prefix","styles","carbonElement","customElement","CDSStructuredListHeaderCell","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","key","value","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","render","_t","_","static"],"sources":["components/structured-list/structured-list-header-cell.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\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 { LitElement, html } from 'lit';\nimport { prefix } from '../../globals/settings';\nimport styles from './structured-list.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Structured list header cell.\n *\n * @element cds-structured-list-header-cell\n */\n@customElement(`${prefix}-structured-list-header-cell`)\nclass CDSStructuredListHeaderCell extends LitElement {\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'columnheader');\n }\n super.connectedCallback();\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSStructuredListHeaderCell;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,MAAM,MAAM,4BAAwB;AAC3C,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;;AAExF;AACA;AACA;AACA;AACA;AAJA,IAMMC,2BAA2B,GAAAC,SAAA,EADhCF,aAAa,CAAE,GAAEH,MAAO,8BAA6B,CAAC,aAAAM,WAAA,EAAAC,WAAA;EAAvD,MACMH,2BAA2B,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAarD;EAAC;IAAAI,CAAA,EAbKN,2BAA2B;IAAAO,CAAA;MAAAC,IAAA;MAAAC,GAAA;MAAAC,KAAA,EAC/B,SAAAC,kBAAA,EAAoB;QAClB,IAAI,CAAC,IAAI,CAACC,YAAY,CAAC,MAAM,CAAC,EAAE;UAC9B,IAAI,CAACC,YAAY,CAAC,MAAM,EAAE,cAAc,CAAC;QAC3C;QACAC,IAAA,CAAAC,eAAA,CALEf,2BAA2B,CAAAgB,SAAA,8BAAAC,IAAA;MAM/B;IAAC;MAAAT,IAAA;MAAAC,GAAA;MAAAC,KAAA,EAED,SAAAQ,OAAA,EAAS;QACP,OAAOvB,IAAI,CAAAwB,EAAA,KAAAA,EAAA,GAAAC,CAAC,iBAAe;MAC7B;IAAC;MAAAZ,IAAA;MAAAa,MAAA;MAAAZ,GAAA;MAAAC,MAAA;QAAA,OAEeb,MAAM;MAAA;IAAA;EAAA;AAAA,GAZkBH,UAAU;AAepD,eAAeM,2BAA2B","ignoreList":[]}
1
+ {"version":3,"file":"structured-list-header-cell.js","names":["LitElement","html","prefix","styles","carbonElement","customElement","CDSStructuredListHeaderCell","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","key","value","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","render","_t","_","static"],"sources":["components/structured-list/structured-list-header-cell.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\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 { LitElement, html } from 'lit';\nimport { prefix } from '../../globals/settings';\nimport styles from './structured-list.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Structured list header cell.\n *\n * @element cds-structured-list-header-cell\n */\n@customElement(`${prefix}-structured-list-header-cell`)\nclass CDSStructuredListHeaderCell extends LitElement {\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'columnheader');\n }\n super.connectedCallback();\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSStructuredListHeaderCell;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,MAAM,MAAM,4BAAwB;AAC3C,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;;AAExF;AACA;AACA;AACA;AACA;AAJA,IAMMC,2BAA2B,GAAAC,SAAA,EADhCF,aAAa,CAAC,GAAGH,MAAM,8BAA8B,CAAC,aAAAM,WAAA,EAAAC,WAAA;EAAvD,MACMH,2BAA2B,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAarD;EAAC;IAAAI,CAAA,EAbKN,2BAA2B;IAAAO,CAAA;MAAAC,IAAA;MAAAC,GAAA;MAAAC,KAAA,EAC/B,SAAAC,kBAAA,EAAoB;QAClB,IAAI,CAAC,IAAI,CAACC,YAAY,CAAC,MAAM,CAAC,EAAE;UAC9B,IAAI,CAACC,YAAY,CAAC,MAAM,EAAE,cAAc,CAAC;QAC3C;QACAC,IAAA,CAAAC,eAAA,CALEf,2BAA2B,CAAAgB,SAAA,8BAAAC,IAAA;MAM/B;IAAC;MAAAT,IAAA;MAAAC,GAAA;MAAAC,KAAA,EAED,SAAAQ,OAAA,EAAS;QACP,OAAOvB,IAAI,CAAAwB,EAAA,KAAAA,EAAA,GAAAC,CAAA;MACb;IAAC;MAAAZ,IAAA;MAAAa,MAAA;MAAAZ,GAAA;MAAAC,MAAA;QAAA,OAEeb,MAAM;MAAA;IAAA;EAAA;AAAA,GAZkBH,UAAU;AAepD,eAAeM,2BAA2B","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"structured-list-header-row.js","names":["LitElement","html","property","prefix","carbonElement","customElement","styles","CDSStructuredListHeaderRow","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","decorators","attribute","key","value","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","render","selectionName","_t","_","_t2","static"],"sources":["components/structured-list/structured-list-header-row.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\nimport styles from './structured-list.scss';\n\n/**\n * Structured list header row.\n *\n * @element cds-structured-list-header-row\n */\n@customElement(`${prefix}-structured-list-header-row`)\nclass CDSStructuredListHeaderRow extends LitElement {\n /**\n * The `name` attribute for the `<input>` for selection.\n * If present, this structured list header row will show its selectable version of the UI.\n */\n @property({ attribute: 'selection-name' })\n selectionName = '';\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'row');\n }\n super.connectedCallback();\n }\n\n render() {\n // We could look up in DOM for `${prefix}-structured-list[hasSelection]`,\n // but uses `hasSelection` prop to utilize attribute change callback\n if (this.selectionName) {\n return html`\n <slot></slot>\n <div class=\"${prefix}--structured-list-th\"></div>\n `;\n }\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSStructuredListHeaderRow;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;AACxF,OAAOC,MAAM,MAAM,4BAAwB;;AAE3C;AACA;AACA;AACA;AACA,GAJA;AACA;AACA;AACA;AACA;AAJA,IAMMC,0BAA0B,GAAAC,SAAA,EAD/BH,aAAa,CAAE,GAAEF,MAAO,6BAA4B,CAAC,aAAAM,WAAA,EAAAC,WAAA;EAAtD,MACMH,0BAA0B,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EA4BpD;EAAC;IAAAI,CAAA,EA5BKN,0BAA0B;IAAAO,CAAA;MAAAC,IAAA;MAAAC,UAAA,GAK7Bd,QAAQ,CAAC;QAAEe,SAAS,EAAE;MAAiB,CAAC,CAAC;MAAAC,GAAA;MAAAC,MAAA;QAAA,OAC1B,EAAE;MAAA;IAAA;MAAAJ,IAAA;MAAAG,GAAA;MAAAC,KAAA;MALlB;AACF;AACA;AACA;;MAIE,SAAAC,kBAAA,EAAoB;QAClB,IAAI,CAAC,IAAI,CAACC,YAAY,CAAC,MAAM,CAAC,EAAE;UAC9B,IAAI,CAACC,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC;QAClC;QACAC,IAAA,CAAAC,eAAA,CAZEjB,0BAA0B,CAAAkB,SAAA,8BAAAC,IAAA;MAa9B;IAAC;MAAAX,IAAA;MAAAG,GAAA;MAAAC,KAAA,EAED,SAAAQ,OAAA,EAAS;QACP;QACA;QACA,IAAI,IAAI,CAACC,aAAa,EAAE;UACtB,OAAO3B,IAAI,CAAA4B,EAAA,KAAAA,EAAA,GAAAC,CAAC;AAClB;AACA,sBAAoB,CAAS;AAC7B,OAAM,GADgB3B,MAAM;QAExB;QACA,OAAOF,IAAI,CAAA8B,GAAA,KAAAA,GAAA,GAAAD,CAAC,iBAAe;MAC7B;IAAC;MAAAf,IAAA;MAAAiB,MAAA;MAAAd,GAAA;MAAAC,MAAA;QAAA,OAEeb,MAAM;MAAA;IAAA;EAAA;AAAA,GA3BiBN,UAAU;AA8BnD,eAAeO,0BAA0B","ignoreList":[]}
1
+ {"version":3,"file":"structured-list-header-row.js","names":["LitElement","html","property","prefix","carbonElement","customElement","styles","CDSStructuredListHeaderRow","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","decorators","attribute","key","value","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","render","selectionName","_t","_","_t2","static"],"sources":["components/structured-list/structured-list-header-row.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\nimport styles from './structured-list.scss';\n\n/**\n * Structured list header row.\n *\n * @element cds-structured-list-header-row\n */\n@customElement(`${prefix}-structured-list-header-row`)\nclass CDSStructuredListHeaderRow extends LitElement {\n /**\n * The `name` attribute for the `<input>` for selection.\n * If present, this structured list header row will show its selectable version of the UI.\n */\n @property({ attribute: 'selection-name' })\n selectionName = '';\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'row');\n }\n super.connectedCallback();\n }\n\n render() {\n // We could look up in DOM for `${prefix}-structured-list[hasSelection]`,\n // but uses `hasSelection` prop to utilize attribute change callback\n if (this.selectionName) {\n return html`\n <slot></slot>\n <div class=\"${prefix}--structured-list-th\"></div>\n `;\n }\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSStructuredListHeaderRow;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;AACxF,OAAOC,MAAM,MAAM,4BAAwB;;AAE3C;AACA;AACA;AACA;AACA,GAJA;AACA;AACA;AACA;AACA;AAJA,IAMMC,0BAA0B,GAAAC,SAAA,EAD/BH,aAAa,CAAC,GAAGF,MAAM,6BAA6B,CAAC,aAAAM,WAAA,EAAAC,WAAA;EAAtD,MACMH,0BAA0B,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EA4BpD;EAAC;IAAAI,CAAA,EA5BKN,0BAA0B;IAAAO,CAAA;MAAAC,IAAA;MAAAC,UAAA,GAK7Bd,QAAQ,CAAC;QAAEe,SAAS,EAAE;MAAiB,CAAC,CAAC;MAAAC,GAAA;MAAAC,MAAA;QAAA,OAC1B,EAAE;MAAA;IAAA;MAAAJ,IAAA;MAAAG,GAAA;MAAAC,KAAA;MALlB;AACF;AACA;AACA;;MAIE,SAAAC,kBAAA,EAAoB;QAClB,IAAI,CAAC,IAAI,CAACC,YAAY,CAAC,MAAM,CAAC,EAAE;UAC9B,IAAI,CAACC,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC;QAClC;QACAC,IAAA,CAAAC,eAAA,CAZEjB,0BAA0B,CAAAkB,SAAA,8BAAAC,IAAA;MAa9B;IAAC;MAAAX,IAAA;MAAAG,GAAA;MAAAC,KAAA,EAED,SAAAQ,OAAA,EAAS;QACP;QACA;QACA,IAAI,IAAI,CAACC,aAAa,EAAE;UACtB,OAAO3B,IAAI,CAAA4B,EAAA,KAAAA,EAAA,GAAAC,CAAA;AACjB;AACA,sBAFiB;AACjB,OADiB,GAEK3B,MAAM;QAExB;QACA,OAAOF,IAAI,CAAA8B,GAAA,KAAAA,GAAA,GAAAD,CAAA;MACb;IAAC;MAAAf,IAAA;MAAAiB,MAAA;MAAAd,GAAA;MAAAC,MAAA;QAAA,OAEeb,MAAM;MAAA;IAAA;EAAA;AAAA,GA3BiBN,UAAU;AA8BnD,eAAeO,0BAA0B","ignoreList":[]}
@@ -35,11 +35,11 @@ declare const CDSStructuredListRow_base: {
35
35
  click(): void;
36
36
  hidePopover(): void;
37
37
  showPopover(): void;
38
- togglePopover(force?: boolean | undefined): boolean;
39
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
40
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
41
- removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
42
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
38
+ togglePopover(force?: boolean): boolean;
39
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
40
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
41
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
42
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
43
43
  readonly attributes: NamedNodeMap;
44
44
  readonly classList: DOMTokenList;
45
45
  className: string;
@@ -64,10 +64,10 @@ declare const CDSStructuredListRow_base: {
64
64
  slot: string;
65
65
  readonly tagName: string;
66
66
  attachShadow(init: ShadowRootInit): ShadowRoot;
67
- checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
68
- closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
69
- closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
70
- closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
67
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
68
+ closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
69
+ closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
70
+ closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
71
71
  closest<E extends Element = Element>(selectors: string): E | null;
72
72
  computedStyleMap(): StylePropertyMapReadOnly;
73
73
  getAttribute(qualifiedName: string): string | null;
@@ -78,10 +78,10 @@ declare const CDSStructuredListRow_base: {
78
78
  getBoundingClientRect(): DOMRect;
79
79
  getClientRects(): DOMRectList;
80
80
  getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
81
- getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
82
- getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
83
- getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
84
- getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
81
+ getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
82
+ getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
83
+ getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
84
+ getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
85
85
  getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
86
86
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
87
87
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
@@ -99,21 +99,22 @@ declare const CDSStructuredListRow_base: {
99
99
  removeAttribute(qualifiedName: string): void;
100
100
  removeAttributeNS(namespace: string | null, localName: string): void;
101
101
  removeAttributeNode(attr: Attr): Attr;
102
- requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
102
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
103
103
  requestPointerLock(): void;
104
- scroll(options?: ScrollToOptions | undefined): void;
104
+ scroll(options?: ScrollToOptions): void;
105
105
  scroll(x: number, y: number): void;
106
- scrollBy(options?: ScrollToOptions | undefined): void;
106
+ scrollBy(options?: ScrollToOptions): void;
107
107
  scrollBy(x: number, y: number): void;
108
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
109
- scrollTo(options?: ScrollToOptions | undefined): void;
108
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
109
+ scrollTo(options?: ScrollToOptions): void;
110
110
  scrollTo(x: number, y: number): void;
111
111
  setAttribute(qualifiedName: string, value: string): void;
112
112
  setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
113
113
  setAttributeNode(attr: Attr): Attr | null;
114
114
  setAttributeNodeNS(attr: Attr): Attr | null;
115
+ setHTMLUnsafe(html: string): void;
115
116
  setPointerCapture(pointerId: number): void;
116
- toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
117
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
117
118
  webkitMatchesSelector(selectors: string): boolean;
118
119
  readonly baseURI: string;
119
120
  readonly childNodes: NodeListOf<ChildNode>;
@@ -129,20 +130,20 @@ declare const CDSStructuredListRow_base: {
129
130
  readonly previousSibling: ChildNode | null;
130
131
  textContent: string | null;
131
132
  appendChild<T extends Node>(node: T): T;
132
- cloneNode(deep?: boolean | undefined): Node;
133
+ cloneNode(deep?: boolean): Node;
133
134
  compareDocumentPosition(other: Node): number;
134
135
  contains(other: Node | null): boolean;
135
- getRootNode(options?: GetRootNodeOptions | undefined): Node;
136
+ getRootNode(options?: GetRootNodeOptions): Node;
136
137
  hasChildNodes(): boolean;
137
- insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
138
+ insertBefore<T extends Node>(node: T, child: Node | null): T;
138
139
  isDefaultNamespace(namespace: string | null): boolean;
139
140
  isEqualNode(otherNode: Node | null): boolean;
140
141
  isSameNode(otherNode: Node | null): boolean;
141
142
  lookupNamespaceURI(prefix: string | null): string | null;
142
143
  lookupPrefix(namespace: string | null): string | null;
143
144
  normalize(): void;
144
- removeChild<T_2 extends Node>(child: T_2): T_2;
145
- replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
145
+ removeChild<T extends Node>(child: T): T;
146
+ replaceChild<T extends Node>(node: Node, child: T): T;
146
147
  readonly ELEMENT_NODE: 1;
147
148
  readonly ATTRIBUTE_NODE: 2;
148
149
  readonly TEXT_NODE: 3;
@@ -164,6 +165,8 @@ declare const CDSStructuredListRow_base: {
164
165
  dispatchEvent(event: Event): boolean;
165
166
  ariaAtomic: string | null;
166
167
  ariaAutoComplete: string | null;
168
+ ariaBrailleLabel: string | null;
169
+ ariaBrailleRoleDescription: string | null;
167
170
  ariaBusy: string | null;
168
171
  ariaChecked: string | null;
169
172
  ariaColCount: string | null;
@@ -201,12 +204,12 @@ declare const CDSStructuredListRow_base: {
201
204
  ariaValueNow: string | null;
202
205
  ariaValueText: string | null;
203
206
  role: string | null;
204
- animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
205
- getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
206
- after(...nodes: (string | Node)[]): void;
207
- before(...nodes: (string | Node)[]): void;
207
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
208
+ getAnimations(options?: GetAnimationsOptions): Animation[];
209
+ after(...nodes: (Node | string)[]): void;
210
+ before(...nodes: (Node | string)[]): void;
208
211
  remove(): void;
209
- replaceWith(...nodes: (string | Node)[]): void;
212
+ replaceWith(...nodes: (Node | string)[]): void;
210
213
  innerHTML: string;
211
214
  readonly nextElementSibling: Element | null;
212
215
  readonly previousElementSibling: Element | null;
@@ -214,19 +217,19 @@ declare const CDSStructuredListRow_base: {
214
217
  readonly children: HTMLCollection;
215
218
  readonly firstElementChild: Element | null;
216
219
  readonly lastElementChild: Element | null;
217
- append(...nodes: (string | Node)[]): void;
218
- prepend(...nodes: (string | Node)[]): void;
219
- querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
220
- querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
221
- querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
222
- querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
223
- querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
224
- querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
225
- querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
226
- querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
227
- querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
228
- querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
229
- replaceChildren(...nodes: (string | Node)[]): void;
220
+ append(...nodes: (Node | string)[]): void;
221
+ prepend(...nodes: (Node | string)[]): void;
222
+ querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
223
+ querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
224
+ querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
225
+ querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
226
+ querySelector<E extends Element = Element>(selectors: string): E | null;
227
+ querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
228
+ querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
229
+ querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
230
+ querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
231
+ querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
232
+ replaceChildren(...nodes: (Node | string)[]): void;
230
233
  readonly assignedSlot: HTMLSlotElement | null;
231
234
  readonly attributeStyleMap: StylePropertyMap;
232
235
  readonly style: CSSStyleDeclaration;
@@ -297,7 +300,7 @@ declare const CDSStructuredListRow_base: {
297
300
  onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
298
301
  onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
299
302
  onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
300
- onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
303
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
301
304
  onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
302
305
  onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
303
306
  onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
@@ -332,15 +335,15 @@ declare const CDSStructuredListRow_base: {
332
335
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
333
336
  autofocus: boolean;
334
337
  readonly dataset: DOMStringMap;
335
- nonce?: string | undefined;
338
+ nonce?: string;
336
339
  tabIndex: number;
337
340
  blur(): void;
338
- focus(options?: FocusOptions | undefined): void;
341
+ focus(options?: FocusOptions): void;
339
342
  };
340
343
  _hostListeners: {
341
344
  [listenerName: string]: {
342
345
  [type: string]: {
343
- options?: boolean | AddEventListenerOptions | undefined;
346
+ options?: boolean | AddEventListenerOptions;
344
347
  };
345
348
  };
346
349
  };
@@ -1 +1 @@
1
- {"version":3,"file":"structured-list-row.js","names":["LitElement","html","property","query","ifDefined","CheckmarkFilled16","prefix","HostListener","HostListenerMixin","RadioGroupManager","NAVIGATION_DIRECTION","styles","carbonElement","customElement","navigationDirectionForKey","ArrowUp","BACKWARD","Up","ArrowDown","FORWARD","Down","StructuredListRowRadioButtonDelegate","constructor","row","_row","checked","selected","tabIndex","name","selectionName","compareDocumentPosition","other","focus","CDSStructuredListRow","_decorate","_initialize","_HostListenerMixin","args","F","d","kind","key","value","decorators","_inputNode","inputNode","_manager","select","_radioButtonDelegate","event","manager","navigationDirection","navigate","type","Boolean","reflect","attribute","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","get","getRootNode","composed","_this$_manager","add","disconnectedCallback","delete","updated","changedProperties","has","shouldBeFocusable","render","selectionValue","selectionIconTitle","_t","_","class","title","_t2","static"],"sources":["components/structured-list/structured-list-row.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport CheckmarkFilled16 from '@carbon/icons/lib/checkmark--filled/16';\nimport { prefix } from '../../globals/settings';\nimport HostListener from '../../globals/decorators/host-listener';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport RadioGroupManager, {\n NAVIGATION_DIRECTION,\n ManagedRadioButtonDelegate,\n} from '../../globals/internal/radio-group-manager';\nimport styles from './structured-list.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Map of navigation direction by key.\n */\nconst navigationDirectionForKey = {\n ArrowUp: NAVIGATION_DIRECTION.BACKWARD,\n Up: NAVIGATION_DIRECTION.BACKWARD, // IE\n ArrowDown: NAVIGATION_DIRECTION.FORWARD,\n Down: NAVIGATION_DIRECTION.FORWARD, // IE\n};\n\n/**\n * The interface for `RadioGroupManager` for structured list row.\n */\nclass StructuredListRowRadioButtonDelegate\n implements ManagedRadioButtonDelegate\n{\n /**\n * The structured list row to target.\n */\n private _row: CDSStructuredListRow;\n\n constructor(row: CDSStructuredListRow) {\n this._row = row;\n }\n\n get checked() {\n return this._row.selected;\n }\n\n set checked(checked) {\n this._row.selected = checked;\n this._row.tabIndex = checked ? 0 : -1;\n }\n\n get tabIndex() {\n return this._row.tabIndex;\n }\n\n set tabIndex(tabIndex) {\n this._row.tabIndex = tabIndex;\n }\n\n get name() {\n return this._row.selectionName;\n }\n\n compareDocumentPosition(other: StructuredListRowRadioButtonDelegate) {\n return this._row.compareDocumentPosition(other._row);\n }\n\n focus() {\n this._row.focus();\n }\n}\n\n/**\n * Structured list row.\n *\n * @element cds-structured-list-row\n */\n@customElement(`${prefix}-structured-list-row`)\nclass CDSStructuredListRow extends HostListenerMixin(LitElement) {\n /**\n * The radio group manager associated with the radio button.\n */\n private _manager: RadioGroupManager | null = null;\n\n /**\n * The interface for `RadioGroupManager` for structured list row.\n */\n private _radioButtonDelegate = new StructuredListRowRadioButtonDelegate(this);\n\n /**\n * The hidden radio button.\n */\n @query('#input')\n private _inputNode!: HTMLInputElement;\n\n /**\n * Handles `click` event on this element.\n */\n @HostListener('click')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleClick = () => {\n const { _inputNode: inputNode } = this;\n if (inputNode) {\n this.selected = true;\n if (this._manager) {\n this._manager.select(this._radioButtonDelegate);\n }\n }\n };\n\n /**\n * Handles `keydown` event on this element.\n */\n @HostListener('keydown')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleKeydown = (event: KeyboardEvent) => {\n const { _inputNode: inputNode } = this;\n const manager = this._manager;\n if (inputNode && manager) {\n const navigationDirection = navigationDirectionForKey[event.key];\n if (navigationDirection) {\n manager.select(\n manager.navigate(this._radioButtonDelegate, navigationDirection)\n );\n }\n if (event.key === ' ' || event.key === 'Enter') {\n manager.select(this._radioButtonDelegate);\n }\n }\n };\n\n /**\n * `true` if this structured list row should be selectable and selected.\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n /**\n * The `name` attribute for the `<input>` for selection.\n * If present, this structured list row will be a selectable one.\n */\n @property({ attribute: 'selection-name' })\n selectionName = '';\n\n /**\n * The `value` attribute for the `<input>` for selection.\n */\n @property({ attribute: 'selection-value' })\n selectionValue = '';\n\n /**\n * The content to put into the `<title>` attribute of the selection icon.\n */\n @property({ attribute: 'selection-icon-title' })\n selectionIconTitle = '';\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'row');\n }\n super.connectedCallback();\n if (!this._manager) {\n this._manager = RadioGroupManager.get(\n this.getRootNode({ composed: true }) as Document\n );\n const { selectionName } = this;\n if (selectionName) {\n this._manager?.add(this._radioButtonDelegate);\n }\n }\n }\n\n disconnectedCallback() {\n if (this._manager) {\n this._manager.delete(this._radioButtonDelegate);\n }\n super.disconnectedCallback();\n }\n\n updated(changedProperties) {\n const { _manager: manager, selectionName } = this;\n if (changedProperties.has('selectionName')) {\n if (manager) {\n manager.delete(\n this._radioButtonDelegate,\n changedProperties.get('selectionName')\n );\n if (selectionName) {\n manager.add(this._radioButtonDelegate);\n }\n }\n this.setAttribute(\n 'tabindex',\n !selectionName ||\n !manager ||\n !manager.shouldBeFocusable(this._radioButtonDelegate)\n ? '-1'\n : '0'\n );\n }\n }\n\n render() {\n const { selected, selectionName, selectionValue, selectionIconTitle } =\n this;\n if (selectionName) {\n // \"Selected\" style with `.${prefix}--structured-list-td` does not work somehow - Need investigation\n return html`\n <slot></slot>\n <input\n id=\"input\"\n type=\"radio\"\n class=\"${prefix}--structured-list-input ${prefix}--visually-hidden\"\n .checked=${selected}\n name=${selectionName}\n value=${ifDefined(selectionValue)} />\n <div\n class=\"${prefix}--structured-list-td ${prefix}--structured-list-cell\">\n ${CheckmarkFilled16({\n class: `${prefix}--structured-list-svg`,\n title: selectionIconTitle,\n })}\n </div>\n `;\n }\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSStructuredListRow;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AAC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vC,IAAA;MAAA2C,MAAA;MAAA1C,GAAA;MAAAC,MAAA;QAAA,OAEe/B,MAAM;MAAA;IAAA;EAAA;AAAA,GAtJWH,iBAAiB,CAACR,UAAU,CAAC;AAyJhE,eAAeiC,oBAAoB","ignoreList":[]}
1
+ {"version":3,"file":"structured-list-row.js","names":["LitElement","html","property","query","ifDefined","CheckmarkFilled16","prefix","HostListener","HostListenerMixin","RadioGroupManager","NAVIGATION_DIRECTION","styles","carbonElement","customElement","navigationDirectionForKey","ArrowUp","BACKWARD","Up","ArrowDown","FORWARD","Down","StructuredListRowRadioButtonDelegate","constructor","row","_row","checked","selected","tabIndex","name","selectionName","compareDocumentPosition","other","focus","CDSStructuredListRow","_decorate","_initialize","_HostListenerMixin","args","F","d","kind","key","value","decorators","_inputNode","inputNode","_manager","select","_radioButtonDelegate","event","manager","navigationDirection","navigate","type","Boolean","reflect","attribute","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","get","getRootNode","composed","_this$_manager","add","disconnectedCallback","delete","updated","changedProperties","has","shouldBeFocusable","render","selectionValue","selectionIconTitle","_t","_","class","title","_t2","static"],"sources":["components/structured-list/structured-list-row.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport CheckmarkFilled16 from '@carbon/icons/lib/checkmark--filled/16';\nimport { prefix } from '../../globals/settings';\nimport HostListener from '../../globals/decorators/host-listener';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport RadioGroupManager, {\n NAVIGATION_DIRECTION,\n ManagedRadioButtonDelegate,\n} from '../../globals/internal/radio-group-manager';\nimport styles from './structured-list.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Map of navigation direction by key.\n */\nconst navigationDirectionForKey = {\n ArrowUp: NAVIGATION_DIRECTION.BACKWARD,\n Up: NAVIGATION_DIRECTION.BACKWARD, // IE\n ArrowDown: NAVIGATION_DIRECTION.FORWARD,\n Down: NAVIGATION_DIRECTION.FORWARD, // IE\n};\n\n/**\n * The interface for `RadioGroupManager` for structured list row.\n */\nclass StructuredListRowRadioButtonDelegate\n implements ManagedRadioButtonDelegate\n{\n /**\n * The structured list row to target.\n */\n private _row: CDSStructuredListRow;\n\n constructor(row: CDSStructuredListRow) {\n this._row = row;\n }\n\n get checked() {\n return this._row.selected;\n }\n\n set checked(checked) {\n this._row.selected = checked;\n this._row.tabIndex = checked ? 0 : -1;\n }\n\n get tabIndex() {\n return this._row.tabIndex;\n }\n\n set tabIndex(tabIndex) {\n this._row.tabIndex = tabIndex;\n }\n\n get name() {\n return this._row.selectionName;\n }\n\n compareDocumentPosition(other: StructuredListRowRadioButtonDelegate) {\n return this._row.compareDocumentPosition(other._row);\n }\n\n focus() {\n this._row.focus();\n }\n}\n\n/**\n * Structured list row.\n *\n * @element cds-structured-list-row\n */\n@customElement(`${prefix}-structured-list-row`)\nclass CDSStructuredListRow extends HostListenerMixin(LitElement) {\n /**\n * The radio group manager associated with the radio button.\n */\n private _manager: RadioGroupManager | null = null;\n\n /**\n * The interface for `RadioGroupManager` for structured list row.\n */\n private _radioButtonDelegate = new StructuredListRowRadioButtonDelegate(this);\n\n /**\n * The hidden radio button.\n */\n @query('#input')\n private _inputNode!: HTMLInputElement;\n\n /**\n * Handles `click` event on this element.\n */\n @HostListener('click')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleClick = () => {\n const { _inputNode: inputNode } = this;\n if (inputNode) {\n this.selected = true;\n if (this._manager) {\n this._manager.select(this._radioButtonDelegate);\n }\n }\n };\n\n /**\n * Handles `keydown` event on this element.\n */\n @HostListener('keydown')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleKeydown = (event: KeyboardEvent) => {\n const { _inputNode: inputNode } = this;\n const manager = this._manager;\n if (inputNode && manager) {\n const navigationDirection = navigationDirectionForKey[event.key];\n if (navigationDirection) {\n manager.select(\n manager.navigate(this._radioButtonDelegate, navigationDirection)\n );\n }\n if (event.key === ' ' || event.key === 'Enter') {\n manager.select(this._radioButtonDelegate);\n }\n }\n };\n\n /**\n * `true` if this structured list row should be selectable and selected.\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n /**\n * The `name` attribute for the `<input>` for selection.\n * If present, this structured list row will be a selectable one.\n */\n @property({ attribute: 'selection-name' })\n selectionName = '';\n\n /**\n * The `value` attribute for the `<input>` for selection.\n */\n @property({ attribute: 'selection-value' })\n selectionValue = '';\n\n /**\n * The content to put into the `<title>` attribute of the selection icon.\n */\n @property({ attribute: 'selection-icon-title' })\n selectionIconTitle = '';\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'row');\n }\n super.connectedCallback();\n if (!this._manager) {\n this._manager = RadioGroupManager.get(\n this.getRootNode({ composed: true }) as Document\n );\n const { selectionName } = this;\n if (selectionName) {\n this._manager?.add(this._radioButtonDelegate);\n }\n }\n }\n\n disconnectedCallback() {\n if (this._manager) {\n this._manager.delete(this._radioButtonDelegate);\n }\n super.disconnectedCallback();\n }\n\n updated(changedProperties) {\n const { _manager: manager, selectionName } = this;\n if (changedProperties.has('selectionName')) {\n if (manager) {\n manager.delete(\n this._radioButtonDelegate,\n changedProperties.get('selectionName')\n );\n if (selectionName) {\n manager.add(this._radioButtonDelegate);\n }\n }\n this.setAttribute(\n 'tabindex',\n !selectionName ||\n !manager ||\n !manager.shouldBeFocusable(this._radioButtonDelegate)\n ? '-1'\n : '0'\n );\n }\n }\n\n render() {\n const { selected, selectionName, selectionValue, selectionIconTitle } =\n this;\n if (selectionName) {\n // \"Selected\" style with `.${prefix}--structured-list-td` does not work somehow - Need investigation\n return html`\n <slot></slot>\n <input\n id=\"input\"\n type=\"radio\"\n class=\"${prefix}--structured-list-input ${prefix}--visually-hidden\"\n .checked=${selected}\n name=${selectionName}\n value=${ifDefined(selectionValue)} />\n <div\n class=\"${prefix}--structured-list-td ${prefix}--structured-list-cell\">\n ${CheckmarkFilled16({\n class: `${prefix}--structured-list-svg`,\n title: selectionIconTitle,\n })}\n </div>\n `;\n }\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSStructuredListRow;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,QAAQ,EAAEC,KAAK,QAAQ,mBAAmB;AACnD,SAASC,SAAS,QAAQ,8BAA8B;AACxD,OAAOC,iBAAiB,MAAM,kCAAwC;AACtE,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,YAAY,MAAM,wCAAwC;AACjE,OAAOC,iBAAiB,MAAM,oCAAoC;AAClE,OAAOC,iBAAiB,IACtBC,oBAAoB,QAEf,4CAA4C;AACnD,OAAOC,MAAM,MAAM,4BAAwB;AAC3C,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;;AAExF;AACA;AACA;AACA,MAAMC,yBAAyB,GAAG;EAChCC,OAAO,EAAEL,oBAAoB,CAACM,QAAQ;EACtCC,EAAE,EAAEP,oBAAoB,CAACM,QAAQ;EAAE;EACnCE,SAAS,EAAER,oBAAoB,CAACS,OAAO;EACvCC,IAAI,EAAEV,oBAAoB,CAACS,OAAO,CAAE;AACtC,CAAC;;AAED;AACA;AACA;AACA,MAAME,oCAAoC,CAE1C;EACE;AACF;AACA;;EAGEC,WAAWA,CAACC,GAAyB,EAAE;IACrC,IAAI,CAACC,IAAI,GAAGD,GAAG;EACjB;EAEA,IAAIE,OAAOA,CAAA,EAAG;IACZ,OAAO,IAAI,CAACD,IAAI,CAACE,QAAQ;EAC3B;EAEA,IAAID,OAAOA,CAACA,OAAO,EAAE;IACnB,IAAI,CAACD,IAAI,CAACE,QAAQ,GAAGD,OAAO;IA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