@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":"table-row.js","names":["LitElement","html","property","prefix","ChevronRight16","carbonElement","customElement","FocusMixin","styles","HostListener","HostListenerMixin","CDSTableRow","_decorate","_initialize","_HostListenerMixin","constructor","args","F","d","kind","key","value","decorators","_handleClickSelectionRadio","event","detail","selected","checked","init","bubbles","cancelable","composed","dispatchEvent","CustomEvent","eventBeforeChangeSelection","_this$nextElementSibl","selectorExpandedRow","nextElementSibling","matches","_handleClickSelectionCheckbox","_this$nextElementSibl2","_handleClickExpando","_handleUserInitiatedToggleExpando","_handleMouseOverOut","selectorTableCellOverflowMenu","highlighted","type","overflowMenuOnHover","overflowMenu","querySelector","parentCell","parentElement","expanded","eventBeforeExpandoToggle","eventExpandoToggle","_renderExpandButton","handleClickExpando","_t","_","_handleSlotChange","class","target","hasContent","assignedNodes","filter","elem","undefined","slugItem","length","_hasSlug","Boolean","setAttribute","requestUpdate","_renderFirstCells","disabled","hideCheckbox","radio","selectionLabel","selectionName","selectionValue","_t2","_t3","_t4","reflect","attribute","connectedCallback","hasAttribute","_get","_getPrototypeOf","prototype","call","updated","changedProperties","has","removeAttribute","render","_this$closest","closest","selectorTable","_t5","expandable","static","eventRadioChange","eventCheckboxChange"],"sources":["components/data-table/table-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 ChevronRight16 from '@carbon/icons/lib/chevron--right/16';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\nimport FocusMixin from '../../globals/mixins/focus';\nimport styles from './data-table.scss';\n\nimport HostListener from '../../globals/decorators/host-listener';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport CDSTableExpandedRow from './table-expanded-row';\nimport CDSTableCell from './table-cell';\n\n/**\n * Data table row.\n *\n * @element cds-table-row\n * @csspart selection-container The container of the checkbox.\n * @csspart selection The checkbox.\n * @fires cds-table-row-change-selection\n * The custom event fired before this row is selected/unselected upon a user gesture.\n * Cancellation of this event stops the user-initiated change in selection.\n * @fires cds-radio-button-changed\n * The name of the custom event fired after this radio button changes its checked state.\n * @fires cds-checkbox-changed\n * The name of the custom event fired after this checkbox changes its checked state.\n * @fires cds-table-row-expando-beingtoggled\n * The name of the custom event fired before the expanded state of this row is being toggled upon a user gesture.\n * Cancellation of this event stops the user-initiated action of toggling the expanded state.\n * @fires cds-table-row-expando-toggled\n * The name of the custom event fired after the expanded state of this row is toggled upon a user gesture.\n */\n@customElement(`${prefix}-table-row`)\nclass CDSTableRow extends HostListenerMixin(FocusMixin(LitElement)) {\n /**\n * `true` if there is a slug.\n */\n protected _hasSlug = false;\n\n /**\n * Handles `click` event on the radio button.\n *\n * @param event The event.\n */\n @HostListener('eventRadioChange')\n // @ts-ignore\n private _handleClickSelectionRadio(event: CustomEvent) {\n const { detail } = event;\n const selected = detail.checked;\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n selected,\n },\n };\n const constructor = this.constructor as typeof CDSTableRow;\n if (\n this.dispatchEvent(\n new CustomEvent(constructor.eventBeforeChangeSelection, init)\n )\n ) {\n this.selected = selected;\n const { selectorExpandedRow } = this.constructor as typeof CDSTableRow;\n\n if (this.nextElementSibling?.matches(selectorExpandedRow)) {\n (this.nextElementSibling as CDSTableExpandedRow).selected = selected;\n }\n }\n }\n\n /**\n * Handles `click` event on the check box.\n *\n * @param event The event.\n */\n @HostListener('eventCheckboxChange')\n // @ts-ignore\n private _handleClickSelectionCheckbox(event: CustomEvent) {\n const { detail } = event;\n const selected = detail.checked;\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n selected,\n },\n };\n const constructor = this.constructor as typeof CDSTableRow;\n if (\n this.dispatchEvent(\n new CustomEvent(constructor.eventBeforeChangeSelection, init)\n )\n ) {\n this.selected = selected;\n const { selectorExpandedRow } = this.constructor as typeof CDSTableRow;\n\n if (this.nextElementSibling?.matches(selectorExpandedRow)) {\n (this.nextElementSibling as CDSTableExpandedRow).selected = selected;\n }\n }\n }\n\n /**\n * Handles `click` event on the expando button.\n */\n private _handleClickExpando() {\n this._handleUserInitiatedToggleExpando();\n }\n\n /**\n * Handles `mouseover`/`mouseout` event handler on this element.\n *\n * @param event The event.\n */\n @HostListener('mouseover')\n @HostListener('mouseout')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleMouseOverOut(event: MouseEvent) {\n const { selectorExpandedRow, selectorTableCellOverflowMenu } = this\n .constructor as typeof CDSTableRow;\n const { nextElementSibling } = this;\n if (nextElementSibling?.matches(selectorExpandedRow)) {\n (nextElementSibling as CDSTableExpandedRow).highlighted =\n event.type === 'mouseover';\n }\n if (this.overflowMenuOnHover) {\n const overflowMenu = this.querySelector(selectorTableCellOverflowMenu);\n const parentCell = overflowMenu?.parentElement;\n\n if (event.type === 'mouseout') {\n (parentCell as CDSTableCell).overflowMenuOnHover = true;\n } else {\n (parentCell as CDSTableCell).overflowMenuOnHover = false;\n }\n }\n }\n\n /**\n * Handles user-initiated toggle request of the expando button in this table row.\n *\n * @param expanded The new expanded state.\n */\n _handleUserInitiatedToggleExpando(expanded = !this.expanded) {\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n expanded,\n },\n };\n if (\n this.dispatchEvent(\n new CustomEvent(\n (this.constructor as typeof CDSTableRow).eventBeforeExpandoToggle,\n init\n )\n )\n ) {\n this.expanded = expanded;\n this.dispatchEvent(\n new CustomEvent(\n (this.constructor as typeof CDSTableRow).eventExpandoToggle,\n init\n )\n );\n }\n }\n\n protected _renderExpandButton() {\n const { _handleClickExpando: handleClickExpando } = this;\n return html`\n <div class=\"${prefix}--table-expand\">\n <div>\n <slot name=\"slug\" @slotchange=\"${this._handleSlotChange}\"></slot>\n <button\n class=\"${prefix}--table-expand__button\"\n @click=\"${handleClickExpando}\">\n ${ChevronRight16({ class: `${prefix}--table-expand__svg` })}\n </button>\n </div>\n </div>\n `;\n }\n\n /**\n * Handles `slotchange` event.\n */\n protected _handleSlotChange({ target }: Event) {\n const hasContent = (target as HTMLSlotElement)\n .assignedNodes()\n .filter((elem) =>\n (elem as HTMLElement).matches !== undefined\n ? (elem as HTMLElement).matches(\n (this.constructor as typeof CDSTableRow).slugItem\n )\n : false\n );\n if (hasContent.length > 0) {\n this._hasSlug = Boolean(hasContent);\n (hasContent[0] as HTMLElement).setAttribute('size', 'mini');\n }\n this.requestUpdate();\n }\n\n /**\n * @returns The first set of table cells.\n */\n protected _renderFirstCells() {\n const {\n disabled,\n hideCheckbox,\n radio,\n selected,\n selectionLabel,\n selectionName,\n selectionValue,\n } = this;\n return !selectionName\n ? undefined\n : html`\n <div class=\"${prefix}--table-column-checkbox\">\n <div>\n <slot name=\"slug\" @slotchange=\"${this._handleSlotChange}\"></slot>\n ${radio\n ? html`<cds-radio-button data-table></cds-radio-button>`\n : html`<cds-checkbox\n hide-label\n ?hide-checkbox=\"${hideCheckbox}\"\n label-text=\"${selectionLabel}\"\n name=${selectionName}\n data-table\n ?disabled=${disabled}\n ?checked=${selected}\n value=${selectionValue}></cds-checkbox> `}\n </div>\n </div>\n `;\n }\n\n /**\n * `true` if this table should support batch expansion\n */\n @property({ type: Boolean, reflect: true, attribute: 'batch-expansion' })\n batchExpansion = false;\n\n /**\n * `true` if this table row should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * `true` if this table row is placed at an even position in parent `<cds-table-body>`.\n * `<cds-table-body>` sets this property, _only_ in zebra stripe mode.\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n even = false;\n\n /**\n * `true` if this table row can be expanded to show content underneath\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n expandable = false;\n\n /**\n * `true` when the table row expanded is showing\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n expanded = false;\n\n /**\n * `true` if this table row should be filtered out.\n */\n @property({ type: Boolean, reflect: true })\n filtered = false;\n\n /**\n * Specify whether the checkbox should be present in the DOM,\n * but invisible and uninteractable.\n */\n @property({ type: Boolean, reflect: true, attribute: 'hide-checkbox' })\n hideCheckbox = false;\n\n /**\n * `true` if the table row should be highlighted.\n */\n @property({ type: Boolean, reflect: true })\n highlighted = false;\n\n /**\n * `true` if this table row is placed at an odd position in parent `<cds-table-body>`.\n * `<cds-table-body>` sets this property, _only_ in zebra stripe mode.\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n odd = false;\n\n /**\n * Specify whether the overflow menu (if it exists) should be shown always, or only on hover\n */\n @property({\n type: Boolean,\n reflect: true,\n attribute: 'overflow-menu-on-hover',\n })\n overflowMenuOnHover = false;\n\n /**\n * Specify whether the control should be a radio button or inline checkbox\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n radio = false;\n\n /**\n * `true` if this table row should be selected.\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n /**\n * The `aria-label` attribute for the `<label>` for selection.\n */\n @property({ attribute: 'selection-label' })\n selectionLabel = '';\n\n /**\n * The `name` attribute for the `<input>` for selection.\n * If present, this table 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 * TODO: Uncomment when Carbon fully implements sticky header\n * Specify whether the header should be sticky.\n * Still experimental: may not work with every combination of table props\n */\n // @property({ type: Boolean, reflect: true, attribute: 'sticky-header' })\n // stickyHeader = false;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'row');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (changedProperties.has('expanded')) {\n const { selectorExpandedRow } = this.constructor as typeof CDSTableRow;\n const { expanded, nextElementSibling } = this;\n if (nextElementSibling?.matches(selectorExpandedRow)) {\n (nextElementSibling as CDSTableExpandedRow).expanded = expanded;\n }\n }\n\n if (changedProperties.has('highlighted')) {\n const { selectorExpandedRow } = this.constructor as typeof CDSTableRow;\n const { highlighted, nextElementSibling } = this;\n if (nextElementSibling?.matches(selectorExpandedRow)) {\n (nextElementSibling as CDSTableExpandedRow).highlighted = highlighted;\n }\n }\n\n if (this._hasSlug) {\n this.setAttribute('slug', '');\n } else {\n this.removeAttribute('slug');\n }\n }\n\n render() {\n if (this.selectionName) {\n this.closest(\n (this.constructor as typeof CDSTableRow).selectorTable\n )?.setAttribute('is-selectable', '');\n }\n return html`\n ${this.expandable ? this._renderExpandButton() : ''}\n ${this._renderFirstCells()}\n <slot></slot>\n `;\n }\n\n /**\n * The name of the custom event fired after this radio button changes its checked state.\n */\n static get eventRadioChange() {\n return `${prefix}-radio-button-changed`;\n }\n\n /**\n * The name of the custom event fired after this radio button changes its checked state.\n */\n static get eventCheckboxChange() {\n return `${prefix}-checkbox-changed`;\n }\n\n /**\n * The name of the custom event fired before this row is selected/unselected upon a user gesture.\n * Cancellation of this event stops the user-initiated change in selection.\n */\n static get eventBeforeChangeSelection() {\n return `${prefix}-table-row-change-selection`;\n }\n\n /**\n * A selector that will return the parent table\n */\n static get selectorTable() {\n return `${prefix}-table`;\n }\n\n /**\n * The CSS selector to find the overflow menu on the table cell\n */\n static get selectorTableCellOverflowMenu() {\n return `${prefix}-table-cell ${prefix}-overflow-menu`;\n }\n\n /**\n * A selector that will return the corresponding expanded row.\n */\n static get selectorExpandedRow() {\n return `${prefix}-table-expanded-row`;\n }\n\n /**\n * A selector that will return the slug item.\n */\n static get slugItem() {\n return `${prefix}-slug`;\n }\n\n /**\n * The name of the custom event fired before the expanded state this row is being toggled upon a user gesture.\n * Cancellation of this event stops the user-initiated action of toggling the expanded state.\n */\n static get eventBeforeExpandoToggle() {\n return `${prefix}-table-row-expando-beingtoggled`;\n }\n\n /**\n * The name of the custom event fired after the expanded state this row is toggled upon a user gesture.\n */\n static get eventExpandoToggle() {\n return `${prefix}-table-row-expando-toggled`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableRow;\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,OAAOC,cAAc,MAAM,+BAAqC;AAChE,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;AACxF,OAAOC,UAAU,MAAM,4BAA4B;AACnD,OAAOC,MAAM,MAAM,uBAAmB;AAEtC,OAAOC,YAAY,MAAM,wCAAwC;AACjE,OAAOC,iBAAiB,MAAM,oCAA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AQ,GAAEjC,MAAO,qBAAoB;MACvC;;MAEA;AACF;AACA;IAFE;MAAAgB,IAAA;MAAAkF,MAAA;MAAAjF,GAAA;MAAAC,KAAA,EAGA,SAAA8C,SAAA,EAAsB;QACpB,OAAQ,GAAEhE,MAAO,OAAM;MACzB;;MAEA;AACF;AACA;AACA;IAHE;MAAAgB,IAAA;MAAAkF,MAAA;MAAAjF,GAAA;MAAAC,KAAA,EAIA,SAAAgC,yBAAA,EAAsC;QACpC,OAAQ,GAAElD,MAAO,iCAAgC;MACnD;;MAEA;AACF;AACA;IAFE;MAAAgB,IAAA;MAAAkF,MAAA;MAAAjF,GAAA;MAAAC,KAAA,EAGA,SAAAiC,mBAAA,EAAgC;QAC9B,OAAQ,GAAEnD,MAAO,4BAA2B;MAC9C;IAAC;MAAAgB,IAAA;MAAAkF,MAAA;MAAAjF,GAAA;MAAAC,MAAA;QAAA,OAEeb,MAAM;MAAA;IAAA;EAAA;AAAA,GAnbEE,iBAAiB,CAACH,UAAU,CAACP,UAAU,CAAC,CAAC;AAsbnE,eAAeW,WAAW","ignoreList":[]}
1
+ {"version":3,"file":"table-row.js","names":["LitElement","html","property","prefix","ChevronRight16","carbonElement","customElement","FocusMixin","styles","HostListener","HostListenerMixin","CDSTableRow","_decorate","_initialize","_HostListenerMixin","constructor","args","F","d","kind","key","value","decorators","_handleClickSelectionRadio","event","detail","selected","checked","init","bubbles","cancelable","composed","dispatchEvent","CustomEvent","eventBeforeChangeSelection","_this$nextElementSibl","selectorExpandedRow","nextElementSibling","matches","_handleClickSelectionCheckbox","_this$nextElementSibl2","_handleClickExpando","_handleUserInitiatedToggleExpando","_handleMouseOverOut","selectorTableCellOverflowMenu","highlighted","type","overflowMenuOnHover","overflowMenu","querySelector","parentCell","parentElement","expanded","eventBeforeExpandoToggle","eventExpandoToggle","_renderExpandButton","handleClickExpando","_t","_","_handleSlotChange","class","target","hasContent","assignedNodes","filter","elem","undefined","slugItem","length","_hasSlug","Boolean","setAttribute","requestUpdate","_renderFirstCells","disabled","hideCheckbox","radio","selectionLabel","selectionName","selectionValue","_t2","_t3","_t4","reflect","attribute","connectedCallback","hasAttribute","_get","_getPrototypeOf","prototype","call","updated","changedProperties","has","removeAttribute","render","_this$closest","closest","selectorTable","_t5","expandable","static","eventRadioChange","eventCheckboxChange"],"sources":["components/data-table/table-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 ChevronRight16 from '@carbon/icons/lib/chevron--right/16';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\nimport FocusMixin from '../../globals/mixins/focus';\nimport styles from './data-table.scss';\n\nimport HostListener from '../../globals/decorators/host-listener';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport CDSTableExpandedRow from './table-expanded-row';\nimport CDSTableCell from './table-cell';\n\n/**\n * Data table row.\n *\n * @element cds-table-row\n * @csspart selection-container The container of the checkbox.\n * @csspart selection The checkbox.\n * @fires cds-table-row-change-selection\n * The custom event fired before this row is selected/unselected upon a user gesture.\n * Cancellation of this event stops the user-initiated change in selection.\n * @fires cds-radio-button-changed\n * The name of the custom event fired after this radio button changes its checked state.\n * @fires cds-checkbox-changed\n * The name of the custom event fired after this checkbox changes its checked state.\n * @fires cds-table-row-expando-beingtoggled\n * The name of the custom event fired before the expanded state of this row is being toggled upon a user gesture.\n * Cancellation of this event stops the user-initiated action of toggling the expanded state.\n * @fires cds-table-row-expando-toggled\n * The name of the custom event fired after the expanded state of this row is toggled upon a user gesture.\n */\n@customElement(`${prefix}-table-row`)\nclass CDSTableRow extends HostListenerMixin(FocusMixin(LitElement)) {\n /**\n * `true` if there is a slug.\n */\n protected _hasSlug = false;\n\n /**\n * Handles `click` event on the radio button.\n *\n * @param event The event.\n */\n @HostListener('eventRadioChange')\n // @ts-ignore\n private _handleClickSelectionRadio(event: CustomEvent) {\n const { detail } = event;\n const selected = detail.checked;\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n selected,\n },\n };\n const constructor = this.constructor as typeof CDSTableRow;\n if (\n this.dispatchEvent(\n new CustomEvent(constructor.eventBeforeChangeSelection, init)\n )\n ) {\n this.selected = selected;\n const { selectorExpandedRow } = this.constructor as typeof CDSTableRow;\n\n if (this.nextElementSibling?.matches(selectorExpandedRow)) {\n (this.nextElementSibling as CDSTableExpandedRow).selected = selected;\n }\n }\n }\n\n /**\n * Handles `click` event on the check box.\n *\n * @param event The event.\n */\n @HostListener('eventCheckboxChange')\n // @ts-ignore\n private _handleClickSelectionCheckbox(event: CustomEvent) {\n const { detail } = event;\n const selected = detail.checked;\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n selected,\n },\n };\n const constructor = this.constructor as typeof CDSTableRow;\n if (\n this.dispatchEvent(\n new CustomEvent(constructor.eventBeforeChangeSelection, init)\n )\n ) {\n this.selected = selected;\n const { selectorExpandedRow } = this.constructor as typeof CDSTableRow;\n\n if (this.nextElementSibling?.matches(selectorExpandedRow)) {\n (this.nextElementSibling as CDSTableExpandedRow).selected = selected;\n }\n }\n }\n\n /**\n * Handles `click` event on the expando button.\n */\n private _handleClickExpando() {\n this._handleUserInitiatedToggleExpando();\n }\n\n /**\n * Handles `mouseover`/`mouseout` event handler on this element.\n *\n * @param event The event.\n */\n @HostListener('mouseover')\n @HostListener('mouseout')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleMouseOverOut(event: MouseEvent) {\n const { selectorExpandedRow, selectorTableCellOverflowMenu } = this\n .constructor as typeof CDSTableRow;\n const { nextElementSibling } = this;\n if (nextElementSibling?.matches(selectorExpandedRow)) {\n (nextElementSibling as CDSTableExpandedRow).highlighted =\n event.type === 'mouseover';\n }\n if (this.overflowMenuOnHover) {\n const overflowMenu = this.querySelector(selectorTableCellOverflowMenu);\n const parentCell = overflowMenu?.parentElement;\n\n if (event.type === 'mouseout') {\n (parentCell as CDSTableCell).overflowMenuOnHover = true;\n } else {\n (parentCell as CDSTableCell).overflowMenuOnHover = false;\n }\n }\n }\n\n /**\n * Handles user-initiated toggle request of the expando button in this table row.\n *\n * @param expanded The new expanded state.\n */\n _handleUserInitiatedToggleExpando(expanded = !this.expanded) {\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n expanded,\n },\n };\n if (\n this.dispatchEvent(\n new CustomEvent(\n (this.constructor as typeof CDSTableRow).eventBeforeExpandoToggle,\n init\n )\n )\n ) {\n this.expanded = expanded;\n this.dispatchEvent(\n new CustomEvent(\n (this.constructor as typeof CDSTableRow).eventExpandoToggle,\n init\n )\n );\n }\n }\n\n protected _renderExpandButton() {\n const { _handleClickExpando: handleClickExpando } = this;\n return html`\n <div class=\"${prefix}--table-expand\">\n <div>\n <slot name=\"slug\" @slotchange=\"${this._handleSlotChange}\"></slot>\n <button\n class=\"${prefix}--table-expand__button\"\n @click=\"${handleClickExpando}\">\n ${ChevronRight16({ class: `${prefix}--table-expand__svg` })}\n </button>\n </div>\n </div>\n `;\n }\n\n /**\n * Handles `slotchange` event.\n */\n protected _handleSlotChange({ target }: Event) {\n const hasContent = (target as HTMLSlotElement)\n .assignedNodes()\n .filter((elem) =>\n (elem as HTMLElement).matches !== undefined\n ? (elem as HTMLElement).matches(\n (this.constructor as typeof CDSTableRow).slugItem\n )\n : false\n );\n if (hasContent.length > 0) {\n this._hasSlug = Boolean(hasContent);\n (hasContent[0] as HTMLElement).setAttribute('size', 'mini');\n }\n this.requestUpdate();\n }\n\n /**\n * @returns The first set of table cells.\n */\n protected _renderFirstCells() {\n const {\n disabled,\n hideCheckbox,\n radio,\n selected,\n selectionLabel,\n selectionName,\n selectionValue,\n } = this;\n return !selectionName\n ? undefined\n : html`\n <div class=\"${prefix}--table-column-checkbox\">\n <div>\n <slot name=\"slug\" @slotchange=\"${this._handleSlotChange}\"></slot>\n ${radio\n ? html`<cds-radio-button data-table></cds-radio-button>`\n : html`<cds-checkbox\n hide-label\n ?hide-checkbox=\"${hideCheckbox}\"\n label-text=\"${selectionLabel}\"\n name=${selectionName}\n data-table\n ?disabled=${disabled}\n ?checked=${selected}\n value=${selectionValue}></cds-checkbox> `}\n </div>\n </div>\n `;\n }\n\n /**\n * `true` if this table should support batch expansion\n */\n @property({ type: Boolean, reflect: true, attribute: 'batch-expansion' })\n batchExpansion = false;\n\n /**\n * `true` if this table row should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * `true` if this table row is placed at an even position in parent `<cds-table-body>`.\n * `<cds-table-body>` sets this property, _only_ in zebra stripe mode.\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n even = false;\n\n /**\n * `true` if this table row can be expanded to show content underneath\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n expandable = false;\n\n /**\n * `true` when the table row expanded is showing\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n expanded = false;\n\n /**\n * `true` if this table row should be filtered out.\n */\n @property({ type: Boolean, reflect: true })\n filtered = false;\n\n /**\n * Specify whether the checkbox should be present in the DOM,\n * but invisible and uninteractable.\n */\n @property({ type: Boolean, reflect: true, attribute: 'hide-checkbox' })\n hideCheckbox = false;\n\n /**\n * `true` if the table row should be highlighted.\n */\n @property({ type: Boolean, reflect: true })\n highlighted = false;\n\n /**\n * `true` if this table row is placed at an odd position in parent `<cds-table-body>`.\n * `<cds-table-body>` sets this property, _only_ in zebra stripe mode.\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n odd = false;\n\n /**\n * Specify whether the overflow menu (if it exists) should be shown always, or only on hover\n */\n @property({\n type: Boolean,\n reflect: true,\n attribute: 'overflow-menu-on-hover',\n })\n overflowMenuOnHover = false;\n\n /**\n * Specify whether the control should be a radio button or inline checkbox\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n radio = false;\n\n /**\n * `true` if this table row should be selected.\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n /**\n * The `aria-label` attribute for the `<label>` for selection.\n */\n @property({ attribute: 'selection-label' })\n selectionLabel = '';\n\n /**\n * The `name` attribute for the `<input>` for selection.\n * If present, this table 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 * TODO: Uncomment when Carbon fully implements sticky header\n * Specify whether the header should be sticky.\n * Still experimental: may not work with every combination of table props\n */\n // @property({ type: Boolean, reflect: true, attribute: 'sticky-header' })\n // stickyHeader = false;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'row');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (changedProperties.has('expanded')) {\n const { selectorExpandedRow } = this.constructor as typeof CDSTableRow;\n const { expanded, nextElementSibling } = this;\n if (nextElementSibling?.matches(selectorExpandedRow)) {\n (nextElementSibling as CDSTableExpandedRow).expanded = expanded;\n }\n }\n\n if (changedProperties.has('highlighted')) {\n const { selectorExpandedRow } = this.constructor as typeof CDSTableRow;\n const { highlighted, nextElementSibling } = this;\n if (nextElementSibling?.matches(selectorExpandedRow)) {\n (nextElementSibling as CDSTableExpandedRow).highlighted = highlighted;\n }\n }\n\n if (this._hasSlug) {\n this.setAttribute('slug', '');\n } else {\n this.removeAttribute('slug');\n }\n }\n\n render() {\n if (this.selectionName) {\n this.closest(\n (this.constructor as typeof CDSTableRow).selectorTable\n )?.setAttribute('is-selectable', '');\n }\n return html`\n ${this.expandable ? this._renderExpandButton() : ''}\n ${this._renderFirstCells()}\n <slot></slot>\n `;\n }\n\n /**\n * The name of the custom event fired after this radio button changes its checked state.\n */\n static get eventRadioChange() {\n return `${prefix}-radio-button-changed`;\n }\n\n /**\n * The name of the custom event fired after this radio button changes its checked state.\n */\n static get eventCheckboxChange() {\n return `${prefix}-checkbox-changed`;\n }\n\n /**\n * The name of the custom event fired before this row is selected/unselected upon a user gesture.\n * Cancellation of this event stops the user-initiated change in selection.\n */\n static get eventBeforeChangeSelection() {\n return `${prefix}-table-row-change-selection`;\n }\n\n /**\n * A selector that will return the parent table\n */\n static get selectorTable() {\n return `${prefix}-table`;\n }\n\n /**\n * The CSS selector to find the overflow menu on the table cell\n */\n static get selectorTableCellOverflowMenu() {\n return `${prefix}-table-cell ${prefix}-overflow-menu`;\n }\n\n /**\n * A selector that will return the corresponding expanded row.\n */\n static get selectorExpandedRow() {\n return `${prefix}-table-expanded-row`;\n }\n\n /**\n * A selector that will return the slug item.\n */\n static get slugItem() {\n return `${prefix}-slug`;\n }\n\n /**\n * The name of the custom event fired before the expanded state this row is being toggled upon a user gesture.\n * Cancellation of this event stops the user-initiated action of toggling the expanded state.\n */\n static get eventBeforeExpandoToggle() {\n return `${prefix}-table-row-expando-beingtoggled`;\n }\n\n /**\n * The name of the custom event fired after the expanded state this row is toggled upon a user gesture.\n */\n static get eventExpandoToggle() {\n return `${prefix}-table-row-expando-toggled`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableRow;\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,OAAOC,cAAc,MAAM,+BAAqC;AAChE,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;AACxF,OAAOC,UAAU,MAAM,4BAA4B;AACnD,OAAOC,MAAM,MAAM,uBAAmB;AAEtC,OAAOC,YAAY,MAAM,wCAAwC;AACjE,OAAOC,iBAAiB,MAAM,oCAAoC;AAIlE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAlBA,IAoBMC,WAAW,GAAAC,SAAA,EADhBN,aAAa,CAAC,GAAG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ACnD;;MAEA;AACF;AACA;IAFE;MAAAgB,IAAA;MAAAkF,MAAA;MAAAjF,GAAA;MAAAC,KAAA,EAGA,SAAAiC,mBAAA,EAAgC;QAC9B,OAAO,GAAGnD,MAAM,4BAA4B;MAC9C;IAAC;MAAAgB,IAAA;MAAAkF,MAAA;MAAAjF,GAAA;MAAAC,MAAA;QAAA,OAEeb,MAAM;MAAA;IAAA;EAAA;AAAA,GAnbEE,iBAAiB,CAACH,UAAU,CAACP,UAAU,CAAC,CAAC;AAsbnE,eAAeW,WAAW","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"table-skeleton.js","names":["classMap","LitElement","html","property","customElement","prefix","styles","CDSTableSkeleton","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","decorators","key","value","type","Boolean","reflect","Number","attribute","_renderHeader","showHeader","undefined","_t","_2","_renderToolbar","showToolbar","_t2","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","updated","headers","length","columnCount","Array","fill","render","compact","rowCount","zebra","classes","_t3","from","map","_","index","_t4","_t5","_t6","static"],"sources":["components/data-table/table-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 { classMap } from 'lit/directives/class-map.js';\nimport { LitElement, html } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\n\n/**\n * Data table skeleton\n *\n * @element cds-table-skeleton\n */\n@customElement(`${prefix}-table-skeleton`)\nclass CDSTableSkeleton extends LitElement {\n /**\n * Optionally specify the displayed headers\n */\n @property()\n private headers: string[] = [];\n\n /**\n * Optionally specify whether you want the Skeleton to be rendered as a compact DataTable\n */\n @property({ type: Boolean, reflect: true })\n compact = false;\n\n /**\n * Specify the number of columns that you want to render in the skeleton state\n */\n @property({ type: Number, reflect: true, attribute: 'column-count' })\n columnCount = 5;\n\n /**\n * Specify the number of rows that you want to render in the skeleton state\n */\n @property({ type: Number, reflect: true, attribute: 'row-count' })\n rowCount = 5;\n\n /**\n * Specify if the table header should be rendered as part of the skeleton.\n */\n @property({ type: Boolean, reflect: true, attribute: 'show-header' })\n showHeader = true;\n\n /**\n * Specify if the table toolbar should be rendered as part of the skeleton.\n */\n @property({ type: Boolean, reflect: true, attribute: 'show-toolbar' })\n showToolbar = true;\n\n /**\n * true to add useZebraStyles striping.\n */\n @property({ type: Boolean, reflect: true })\n zebra = false;\n\n /**\n * @returns The header\n */\n protected _renderHeader() {\n const { showHeader } = this;\n return !showHeader\n ? undefined\n : html`\n <div class=\"${prefix}--skeleton ${prefix}--data-table-container\">\n <div class=\"${prefix}--data-table-header\">\n <div class=\"${prefix}--data-table-header__title\"></div>\n <div class=\"${prefix}--data-table-header__description\"></div>\n </div>\n </div>\n `;\n }\n\n /**\n * @returns The header\n */\n protected _renderToolbar() {\n const { showToolbar } = this;\n return !showToolbar\n ? undefined\n : html`\n <section class=\"${prefix}--table-toolbar\">\n <div class=\"${prefix}--toolbar-content\">\n <span\n class=\"${prefix}--skeleton ${prefix}--btn ${prefix}--btn--sm\"></span>\n </div>\n </section>\n `;\n }\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'table');\n }\n super.connectedCallback();\n }\n\n updated() {\n if (this.headers.length) {\n this.columnCount = this.headers.length;\n } else {\n this.headers = Array(this.columnCount).fill('');\n }\n }\n\n render() {\n const { compact, columnCount, headers, rowCount, zebra } = this;\n const classes = classMap({\n [`${prefix}--skeleton`]: true,\n [`${prefix}--data-table`]: true,\n [`${prefix}--data-table--compact`]: compact,\n [`${prefix}--data-table--zebra`]: zebra,\n });\n return html`\n ${this._renderHeader()} ${this._renderToolbar()}\n\n <table class=\"${classes}\">\n <thead>\n <tr>\n ${Array.from(new Array(columnCount)).map(\n (_, index) =>\n html`\n <th>\n <div class=\"${prefix}--table-header-label\">\n ${headers[index]}\n </div>\n </th>\n `\n )}\n </tr>\n </thead>\n <tbody>\n ${Array.from(new Array(rowCount)).map(\n () =>\n html`\n <tr>\n ${Array.from(new Array(columnCount)).map(\n () =>\n html`\n <td>\n <span></span>\n </td>\n `\n )}\n </tr>\n `\n )}\n </tbody>\n </table>\n `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableSkeleton;\n"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,6BAA6B;AACtD,SAASC,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,QAAQ,EAAEC,aAAa,QAAQ,mBAAmB;AAC3D,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,MAAM,MAAM,uBAAmB;;AAEtC;AACA;AACA;AACA;AACA,GAJA;AACA;AACA;AACA;AACA;AAJA,IAMMC,gBAAgB,GAAAC,SAAA,EADrBJ,aAAa,CAAE,GAAEC,MAAO,iBAAgB,CAAC,aAAAI,WAAA,EAAAC,WAAA;EAA1C,MACMH,gBAAgB,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EA4I1C;EAAC;IAAAI,CAAA,EA5IKN,gBAAgB;IAAAO,CAAA;MAAAC,IAAA;MAAAC,UAAA,GAInBb,QAAQ,CAAC,CAAC;MAAAc,GAAA;MAAAC,MAAA;QAAA,OACiB,EAAE;MAAA;IAAA;MAAAH,IAAA;MAAAC,UAAA,GAK7Bb,QAAQ,CAAC;QAAEgB,IAAI,EAAEC,OAAO;QAAEC,OAAO,EAAE;MAAK,CAAC,CAAC;MAAAJ,GAAA;MAAAC,MAAA;QAAA,OACjC,KAAK;MAAA;IAAA;MAAAH,IAAA;MAAAC,UAAA,GAKdb,QAAQ,CAAC;QAAEgB,IAAI,EAAEG,MAAM;QAAED,OAAO,EAAE,IAAI;QAAEE,SAAS,EAAE;MAAe,CAAC,CAAC;MAA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AGT,CAAC;MAIT;IAAC;MAAAb,IAAA;MAAA2C,MAAA;MAAAzC,GAAA;MAAAC,MAAA;QAAA,OAEeZ,MAAM;MAAA;IAAA;EAAA;AAAA,GA3IOL,UAAU;AA8IzC,eAAeM,gBAAgB","ignoreList":[]}
1
+ {"version":3,"file":"table-skeleton.js","names":["classMap","LitElement","html","property","customElement","prefix","styles","CDSTableSkeleton","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","decorators","key","value","type","Boolean","reflect","Number","attribute","_renderHeader","showHeader","undefined","_t","_2","_renderToolbar","showToolbar","_t2","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","updated","headers","length","columnCount","Array","fill","render","compact","rowCount","zebra","classes","_t3","from","map","_","index","_t4","_t5","_t6","static"],"sources":["components/data-table/table-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 { classMap } from 'lit/directives/class-map.js';\nimport { LitElement, html } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\n\n/**\n * Data table skeleton\n *\n * @element cds-table-skeleton\n */\n@customElement(`${prefix}-table-skeleton`)\nclass CDSTableSkeleton extends LitElement {\n /**\n * Optionally specify the displayed headers\n */\n @property()\n private headers: string[] = [];\n\n /**\n * Optionally specify whether you want the Skeleton to be rendered as a compact DataTable\n */\n @property({ type: Boolean, reflect: true })\n compact = false;\n\n /**\n * Specify the number of columns that you want to render in the skeleton state\n */\n @property({ type: Number, reflect: true, attribute: 'column-count' })\n columnCount = 5;\n\n /**\n * Specify the number of rows that you want to render in the skeleton state\n */\n @property({ type: Number, reflect: true, attribute: 'row-count' })\n rowCount = 5;\n\n /**\n * Specify if the table header should be rendered as part of the skeleton.\n */\n @property({ type: Boolean, reflect: true, attribute: 'show-header' })\n showHeader = true;\n\n /**\n * Specify if the table toolbar should be rendered as part of the skeleton.\n */\n @property({ type: Boolean, reflect: true, attribute: 'show-toolbar' })\n showToolbar = true;\n\n /**\n * true to add useZebraStyles striping.\n */\n @property({ type: Boolean, reflect: true })\n zebra = false;\n\n /**\n * @returns The header\n */\n protected _renderHeader() {\n const { showHeader } = this;\n return !showHeader\n ? undefined\n : html`\n <div class=\"${prefix}--skeleton ${prefix}--data-table-container\">\n <div class=\"${prefix}--data-table-header\">\n <div class=\"${prefix}--data-table-header__title\"></div>\n <div class=\"${prefix}--data-table-header__description\"></div>\n </div>\n </div>\n `;\n }\n\n /**\n * @returns The header\n */\n protected _renderToolbar() {\n const { showToolbar } = this;\n return !showToolbar\n ? undefined\n : html`\n <section class=\"${prefix}--table-toolbar\">\n <div class=\"${prefix}--toolbar-content\">\n <span\n class=\"${prefix}--skeleton ${prefix}--btn ${prefix}--btn--sm\"></span>\n </div>\n </section>\n `;\n }\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'table');\n }\n super.connectedCallback();\n }\n\n updated() {\n if (this.headers.length) {\n this.columnCount = this.headers.length;\n } else {\n this.headers = Array(this.columnCount).fill('');\n }\n }\n\n render() {\n const { compact, columnCount, headers, rowCount, zebra } = this;\n const classes = classMap({\n [`${prefix}--skeleton`]: true,\n [`${prefix}--data-table`]: true,\n [`${prefix}--data-table--compact`]: compact,\n [`${prefix}--data-table--zebra`]: zebra,\n });\n return html`\n ${this._renderHeader()} ${this._renderToolbar()}\n\n <table class=\"${classes}\">\n <thead>\n <tr>\n ${Array.from(new Array(columnCount)).map(\n (_, index) =>\n html`\n <th>\n <div class=\"${prefix}--table-header-label\">\n ${headers[index]}\n </div>\n </th>\n `\n )}\n </tr>\n </thead>\n <tbody>\n ${Array.from(new Array(rowCount)).map(\n () =>\n html`\n <tr>\n ${Array.from(new Array(columnCount)).map(\n () =>\n html`\n <td>\n <span></span>\n </td>\n `\n )}\n </tr>\n `\n )}\n </tbody>\n </table>\n `;\n }\n\n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,IAAI,CAAAgD,GAAA,KAAAA,GAAA,GAAAtB,EAAA;AACf,QADe;AACf;AACA,sBAFe;AACf;AACA;AACA,cAHe;AACf;AACA;AACA;AACA,YAJe;AACf;AACA;AACA,KAHe,GACP,IAAI,CAACJ,aAAa,CAAC,CAAC,EAAI,IAAI,CAACK,cAAc,CAAC,CAAC,EAE/BoB,OAAO,EAGfN,KAAK,CAACQ,IAAI,CAAC,IAAIR,KAAK,CAACD,WAAW,CAAC,CAAC,CAACU,GAAG,CACtC,CAACC,CAAC,EAAEC,KAAK,KACPpD,IAAI,CAAAqD,GAAA,KAAAA,GAAA,GAAA3B,EAAA;AACpB;AACA,kCAFoB;AACpB,wBADoB;AACpB;AACA;AACA,iBAHoB,GAEcvB,MAAM,EAChBmC,OAAO,CAACc,KAAK,CAAC,CAI1B,CAAC,EAIDX,KAAK,CAACQ,IAAI,CAAC,IAAIR,KAAK,CAACI,QAAQ,CAAC,CAAC,CAACK,GAAG,CACnC,MACElD,IAAI,CAAAsD,GAAA,KAAAA,GAAA,GAAA5B,EAAA;AAClB;AACA,oBAFkB;AAClB;AACA,eAFkB,GAEEe,KAAK,CAACQ,IAAI,CAAC,IAAIR,KAAK,CAACD,WAAW,CAAC,CAAC,CAACU,GAAG,CACtC,MACElD,IAAI,CAAAuD,GAAA,KAAAA,GAAA,GAAA7B,EAAA;AAC1B;AACA;AACA;AACA,uBAJ0B,EAKR,CAAC,CAGT,CAAC;MAIT;IAAC;MAAAb,IAAA;MAAA2C,MAAA;MAAAzC,GAAA;MAAAC,MAAA;QAAA,OAEeZ,MAAM;MAAA;IAAA;EAAA;AAAA,GA3IOL,UAAU;AA8IzC,eAAeM,gBAAgB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"table-toolbar-content.js","names":["LitElement","html","property","prefix","styles","carbonElement","customElement","CDSTableToolbarContent","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","decorators","type","Boolean","reflect","attribute","key","value","updated","changedProperties","has","setAttribute","hasBatchActions","children","forEach","e","size","render","_t","_","static"],"sources":["components/data-table/table-toolbar-content.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 styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Table toolbar content.\n *\n * @element cds-table-toolbar-content\n */\n@customElement(`${prefix}-table-toolbar-content`)\nclass CDSTableToolbarContent extends LitElement {\n /**\n * `true` if this batch actions bar is active.\n */\n @property({ type: Boolean, reflect: true, attribute: 'has-batch-actions' })\n hasBatchActions = false;\n\n /**\n * Table toolbar contents size\n */\n @property({ reflect: true })\n size;\n\n updated(changedProperties) {\n if (changedProperties.has('hasBatchActions')) {\n this.setAttribute('tabindex', `${this.hasBatchActions ? '-1' : ''}`);\n }\n\n if (changedProperties.has('size')) {\n [...this.children].forEach((e) => {\n const size =\n this.size === 'xs'\n ? 'sm'\n : this.size === 'md' || this.size === 'xl'\n ? 'lg'\n : this.size;\n e.setAttribute('size', size);\n });\n }\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableToolbarContent;\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,OAAOC,MAAM,MAAM,uBAAmB;AACtC,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;;AAExF;AACA;AACA;AACA;AACA;AAJA,IAMMC,sBAAsB,GAAAC,SAAA,EAD3BF,aAAa,CAAE,GAAEH,MAAO,wBAAuB,CAAC,aAAAM,WAAA,EAAAC,WAAA;EAAjD,MACMH,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,EAAA,KAAAA,EAAA,GAAAC,CAAC,iBAAe;MAC7B;IAAC;MAAAnB,IAAA;MAAAoB,MAAA;MAAAd,GAAA;MAAAC,MAAA;QAAA,OAEelB,MAAM;MAAA;IAAA;EAAA;AAAA,GAnCaJ,UAAU;AAsC/C,eAAeO,sBAAsB","ignoreList":[]}
1
+ {"version":3,"file":"table-toolbar-content.js","names":["LitElement","html","property","prefix","styles","carbonElement","customElement","CDSTableToolbarContent","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","decorators","type","Boolean","reflect","attribute","key","value","updated","changedProperties","has","setAttribute","hasBatchActions","children","forEach","e","size","render","_t","_","static"],"sources":["components/data-table/table-toolbar-content.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 styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Table toolbar content.\n *\n * @element cds-table-toolbar-content\n */\n@customElement(`${prefix}-table-toolbar-content`)\nclass CDSTableToolbarContent extends LitElement {\n /**\n * `true` if this batch actions bar is active.\n */\n @property({ type: Boolean, reflect: true, attribute: 'has-batch-actions' })\n hasBatchActions = false;\n\n /**\n * Table toolbar contents size\n */\n @property({ reflect: true })\n size;\n\n updated(changedProperties) {\n if (changedProperties.has('hasBatchActions')) {\n this.setAttribute('tabindex', `${this.hasBatchActions ? '-1' : ''}`);\n }\n\n if (changedProperties.has('size')) {\n [...this.children].forEach((e) => {\n const size =\n this.size === 'xs'\n ? 'sm'\n : this.size === 'md' || this.size === 'xl'\n ? 'lg'\n : this.size;\n e.setAttribute('size', size);\n });\n }\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableToolbarContent;\n"],"mappings":";;;AAAA;AACA;AACA;AAC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AAC,IAAK;YAChC,MAAMC,IAAI,GACR,IAAI,CAACA,IAAI,KAAK,IAAI,GACd,IAAI,GACJ,IAAI,CAACA,IAAI,KAAK,IAAI,IAAI,IAAI,CAACA,IAAI,KAAK,IAAI,GACxC,IAAI,GACJ,IAAI,CAACA,IAAI;YACfD,CAAC,CAACJ,YAAY,CAAC,MAAM,EAAEK,IAAI,CAAC;UAC9B,CAAC,CAAC;QACJ;MACF;IAAC;MAAAhB,IAAA;MAAAM,GAAA;MAAAC,KAAA,EAED,SAAAU,OAAA,EAAS;QACP,OAAO/B,IAAI,CAAAgC,EAAA,KAAAA,EAAA,GAAAC,CAAA;MACb;IAAC;MAAAnB,IAAA;MAAAoB,MAAA;MAAAd,GAAA;MAAAC,MAAA;QAAA,OAEelB,MAAM;MAAA;IAAA;EAAA;AAAA,GAnCaJ,UAAU;AAsC/C,eAAeO,sBAAsB","ignoreList":[]}
@@ -36,11 +36,11 @@ declare const CDSTableToolbarSearch_base: {
36
36
  click(): void;
37
37
  hidePopover(): void;
38
38
  showPopover(): void;
39
- togglePopover(force?: boolean | undefined): boolean;
40
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
41
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
42
- removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
43
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
39
+ togglePopover(force?: boolean): boolean;
40
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
41
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
42
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
43
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
44
44
  readonly attributes: NamedNodeMap;
45
45
  readonly classList: DOMTokenList;
46
46
  className: string;
@@ -65,10 +65,10 @@ declare const CDSTableToolbarSearch_base: {
65
65
  slot: string;
66
66
  readonly tagName: string;
67
67
  attachShadow(init: ShadowRootInit): ShadowRoot;
68
- checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
69
- closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
70
- closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
71
- closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
68
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
69
+ closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
70
+ closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
71
+ closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
72
72
  closest<E extends Element = Element>(selectors: string): E | null;
73
73
  computedStyleMap(): StylePropertyMapReadOnly;
74
74
  getAttribute(qualifiedName: string): string | null;
@@ -79,10 +79,10 @@ declare const CDSTableToolbarSearch_base: {
79
79
  getBoundingClientRect(): DOMRect;
80
80
  getClientRects(): DOMRectList;
81
81
  getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
82
- getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
83
- getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
84
- getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
85
- getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
82
+ getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
83
+ getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
84
+ getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
85
+ getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
86
86
  getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
87
87
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
88
88
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
@@ -100,21 +100,22 @@ declare const CDSTableToolbarSearch_base: {
100
100
  removeAttribute(qualifiedName: string): void;
101
101
  removeAttributeNS(namespace: string | null, localName: string): void;
102
102
  removeAttributeNode(attr: Attr): Attr;
103
- requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
103
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
104
104
  requestPointerLock(): void;
105
- scroll(options?: ScrollToOptions | undefined): void;
105
+ scroll(options?: ScrollToOptions): void;
106
106
  scroll(x: number, y: number): void;
107
- scrollBy(options?: ScrollToOptions | undefined): void;
107
+ scrollBy(options?: ScrollToOptions): void;
108
108
  scrollBy(x: number, y: number): void;
109
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
110
- scrollTo(options?: ScrollToOptions | undefined): void;
109
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
110
+ scrollTo(options?: ScrollToOptions): void;
111
111
  scrollTo(x: number, y: number): void;
112
112
  setAttribute(qualifiedName: string, value: string): void;
113
113
  setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
114
114
  setAttributeNode(attr: Attr): Attr | null;
115
115
  setAttributeNodeNS(attr: Attr): Attr | null;
116
+ setHTMLUnsafe(html: string): void;
116
117
  setPointerCapture(pointerId: number): void;
117
- toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
118
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
118
119
  webkitMatchesSelector(selectors: string): boolean;
119
120
  readonly baseURI: string;
120
121
  readonly childNodes: NodeListOf<ChildNode>;
@@ -130,20 +131,20 @@ declare const CDSTableToolbarSearch_base: {
130
131
  readonly previousSibling: ChildNode | null;
131
132
  textContent: string | null;
132
133
  appendChild<T extends Node>(node: T): T;
133
- cloneNode(deep?: boolean | undefined): Node;
134
+ cloneNode(deep?: boolean): Node;
134
135
  compareDocumentPosition(other: Node): number;
135
136
  contains(other: Node | null): boolean;
136
- getRootNode(options?: GetRootNodeOptions | undefined): Node;
137
+ getRootNode(options?: GetRootNodeOptions): Node;
137
138
  hasChildNodes(): boolean;
138
- insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
139
+ insertBefore<T extends Node>(node: T, child: Node | null): T;
139
140
  isDefaultNamespace(namespace: string | null): boolean;
140
141
  isEqualNode(otherNode: Node | null): boolean;
141
142
  isSameNode(otherNode: Node | null): boolean;
142
143
  lookupNamespaceURI(prefix: string | null): string | null;
143
144
  lookupPrefix(namespace: string | null): string | null;
144
145
  normalize(): void;
145
- removeChild<T_2 extends Node>(child: T_2): T_2;
146
- replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
146
+ removeChild<T extends Node>(child: T): T;
147
+ replaceChild<T extends Node>(node: Node, child: T): T;
147
148
  readonly ELEMENT_NODE: 1;
148
149
  readonly ATTRIBUTE_NODE: 2;
149
150
  readonly TEXT_NODE: 3;
@@ -165,6 +166,8 @@ declare const CDSTableToolbarSearch_base: {
165
166
  dispatchEvent(event: Event): boolean;
166
167
  ariaAtomic: string | null;
167
168
  ariaAutoComplete: string | null;
169
+ ariaBrailleLabel: string | null;
170
+ ariaBrailleRoleDescription: string | null;
168
171
  ariaBusy: string | null;
169
172
  ariaChecked: string | null;
170
173
  ariaColCount: string | null;
@@ -202,12 +205,12 @@ declare const CDSTableToolbarSearch_base: {
202
205
  ariaValueNow: string | null;
203
206
  ariaValueText: string | null;
204
207
  role: string | null;
205
- animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
206
- getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
207
- after(...nodes: (string | Node)[]): void;
208
- before(...nodes: (string | Node)[]): void;
208
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
209
+ getAnimations(options?: GetAnimationsOptions): Animation[];
210
+ after(...nodes: (Node | string)[]): void;
211
+ before(...nodes: (Node | string)[]): void;
209
212
  remove(): void;
210
- replaceWith(...nodes: (string | Node)[]): void;
213
+ replaceWith(...nodes: (Node | string)[]): void;
211
214
  innerHTML: string;
212
215
  readonly nextElementSibling: Element | null;
213
216
  readonly previousElementSibling: Element | null;
@@ -215,19 +218,19 @@ declare const CDSTableToolbarSearch_base: {
215
218
  readonly children: HTMLCollection;
216
219
  readonly firstElementChild: Element | null;
217
220
  readonly lastElementChild: Element | null;
218
- append(...nodes: (string | Node)[]): void;
219
- prepend(...nodes: (string | Node)[]): void;
220
- querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
221
- querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
222
- querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
223
- querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
224
- querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
225
- querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
226
- querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
227
- querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
228
- querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
229
- querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
230
- replaceChildren(...nodes: (string | Node)[]): void;
221
+ append(...nodes: (Node | string)[]): void;
222
+ prepend(...nodes: (Node | string)[]): void;
223
+ querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
224
+ querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
225
+ querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
226
+ querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
227
+ querySelector<E extends Element = Element>(selectors: string): E | null;
228
+ querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
229
+ querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
230
+ querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
231
+ querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
232
+ querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
233
+ replaceChildren(...nodes: (Node | string)[]): void;
231
234
  readonly assignedSlot: HTMLSlotElement | null;
232
235
  readonly attributeStyleMap: StylePropertyMap;
233
236
  readonly style: CSSStyleDeclaration;
@@ -298,7 +301,7 @@ declare const CDSTableToolbarSearch_base: {
298
301
  onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
299
302
  onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
300
303
  onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
301
- onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
304
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
302
305
  onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
303
306
  onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
304
307
  onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
@@ -333,15 +336,15 @@ declare const CDSTableToolbarSearch_base: {
333
336
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
334
337
  autofocus: boolean;
335
338
  readonly dataset: DOMStringMap;
336
- nonce?: string | undefined;
339
+ nonce?: string;
337
340
  tabIndex: number;
338
341
  blur(): void;
339
- focus(options?: FocusOptions | undefined): void;
342
+ focus(options?: FocusOptions): void;
340
343
  };
341
344
  _hostListeners: {
342
345
  [listenerName: string]: {
343
346
  [type: string]: {
344
- options?: boolean | AddEventListenerOptions | undefined;
347
+ options?: boolean | AddEventListenerOptions;
345
348
  };
346
349
  };
347
350
  };
@@ -393,7 +396,8 @@ declare class CDSTableToolbarSearch extends CDSTableToolbarSearch_base {
393
396
  static shadowRootOptions: {
394
397
  delegatesFocus: boolean;
395
398
  mode: ShadowRootMode;
396
- slotAssignment?: SlotAssignmentMode | undefined;
399
+ serializable?: boolean;
400
+ slotAssignment?: SlotAssignmentMode;
397
401
  };
398
402
  static styles: any;
399
403
  }
@@ -1 +1 @@
1
- {"version":3,"file":"table-toolbar-search.js","names":["classMap","LitElement","html","property","query","prefix","HostListenerMixin","HostListener","INPUT_SIZE","CDSSearch","styles","carbonElement","customElement","CDSTableToolbarSearch","_decorate","_initialize","_HostListenerMixin","constructor","args","F","d","kind","decorators","key","value","_handleUserInitiatedExpand","expanded","updateComplete","_inputNode","inputNode","focus","_handleFocusIn","_handleFocusOut","event","contains","relatedTarget","persistent","_handleSearchClick","type","Boolean","reflect","LARGE","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","render","result","size","handleSearchClick","classes","_t","_","static","eventInput","_objectSpread","shadowRootOptions","delegatesFocus"],"sources":["components/data-table/table-toolbar-search.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 { classMap } from 'lit/directives/class-map.js';\nimport { LitElement, html } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport HostListener from '../../globals/decorators/host-listener';\nimport { INPUT_SIZE } from '../text-input/text-input';\nimport CDSSearch from '../search/search';\nimport styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Table toolbar search.\n *\n * @element cds-table-toolbar-search\n * @fires cds-search-input - The custom event fired after the search content is changed upon a user gesture.\n */\n@customElement(`${prefix}-table-toolbar-search`)\nclass CDSTableToolbarSearch extends HostListenerMixin(CDSSearch) {\n @query('input')\n private _inputNode!: HTMLInputElement;\n\n /**\n * Handles user-initiated gestures for expanding the search box.\n */\n private async _handleUserInitiatedExpand() {\n this.expanded = true;\n await this.updateComplete;\n const { _inputNode: inputNode } = this;\n inputNode?.focus();\n }\n\n /**\n * Handles `focus` event handler on this element.\n */\n @HostListener('focusin')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleFocusIn() {\n this._handleUserInitiatedExpand();\n }\n\n /**\n * Handles `blur` event handler on this element.\n *\n * @param event The event.\n */\n @HostListener('focusout')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleFocusOut(event: FocusEvent) {\n if (\n !this.contains(event.relatedTarget as Node) &&\n !this.value &&\n !this.persistent\n ) {\n this.expanded = false;\n }\n }\n\n /**\n * Handles `click` event handler on the search box.\n */\n private _handleSearchClick() {\n this._handleUserInitiatedExpand();\n }\n\n /**\n * `true` if the search box should be expanded.\n */\n @property({ type: Boolean, reflect: true })\n expanded = false;\n\n /**\n * `true` if the search box should be always be open.\n */\n @property({ type: Boolean, reflect: true })\n persistent = false;\n\n /**\n * The search box size.\n */\n @property({ reflect: true })\n size = INPUT_SIZE.LARGE;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'search');\n }\n super.connectedCallback();\n }\n\n render() {\n const result = super.render();\n const {\n persistent,\n expanded,\n size,\n _handleSearchClick: handleSearchClick,\n } = this;\n const classes = classMap({\n [`${prefix}--search`]: true,\n [`${prefix}--search--${size}`]: size,\n });\n if (persistent) {\n this.expanded = true;\n }\n return html`\n <div\n class=\"${classes}\"\n tabindex=\"${expanded ? '-1' : '0'}\"\n @click=\"${handleSearchClick}\">\n ${result}\n </div>\n `;\n }\n\n /**\n * The name of the custom event fired after the search content is changed upon a user gesture.\n */\n static get eventInput() {\n // The code uses on in `<cds-search>`, but definition is done also here for React event generation\n return `${prefix}-search-input`;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles;\n}\n\nexport default CDSTableToolbarSearch;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,6BAA6B;AACtD,SAASC,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,QAAQ,EAAE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.js","names":["classMap","LitElement","html","property","query","prefix","HostListenerMixin","HostListener","INPUT_SIZE","CDSSearch","styles","carbonElement","customElement","CDSTableToolbarSearch","_decorate","_initialize","_HostListenerMixin","constructor","args","F","d","kind","decorators","key","value","_handleUserInitiatedExpand","expanded","updateComplete","_inputNode","inputNode","focus","_handleFocusIn","_handleFocusOut","event","contains","relatedTarget","persistent","_handleSearchClick","type","Boolean","reflect","LARGE","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","render","result","size","handleSearchClick","classes","_t","_","static","eventInput","_objectSpread","shadowRootOptions","delegatesFocus"],"sources":["components/data-table/table-toolbar-search.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 { classMap } from 'lit/directives/class-map.js';\nimport { LitElement, html } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport HostListener from '../../globals/decorators/host-listener';\nimport { INPUT_SIZE } from '../text-input/text-input';\nimport CDSSearch from '../search/search';\nimport styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Table toolbar search.\n *\n * @element cds-table-toolbar-search\n * @fires cds-search-input - The custom event fired after the search content is changed upon a user gesture.\n */\n@customElement(`${prefix}-table-toolbar-search`)\nclass CDSTableToolbarSearch extends HostListenerMixin(CDSSearch) {\n @query('input')\n private _inputNode!: HTMLInputElement;\n\n /**\n * Handles user-initiated gestures for expanding the search box.\n */\n private async _handleUserInitiatedExpand() {\n this.expanded = true;\n await this.updateComplete;\n const { _inputNode: inputNode } = this;\n inputNode?.focus();\n }\n\n /**\n * Handles `focus` event handler on this element.\n */\n @HostListener('focusin')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleFocusIn() {\n this._handleUserInitiatedExpand();\n }\n\n /**\n * Handles `blur` event handler on this element.\n *\n * @param event The event.\n */\n @HostListener('focusout')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleFocusOut(event: FocusEvent) {\n if (\n !this.contains(event.relatedTarget as Node) &&\n !this.value &&\n !this.persistent\n ) {\n this.expanded = false;\n }\n }\n\n /**\n * Handles `click` event handler on the search box.\n */\n private _handleSearchClick() {\n this._handleUserInitiatedExpand();\n }\n\n /**\n * `true` if the search box should be expanded.\n */\n @property({ type: Boolean, reflect: true })\n expanded = false;\n\n /**\n * `true` if the search box should be always be open.\n */\n @property({ type: Boolean, reflect: true })\n persistent = false;\n\n /**\n * The search box size.\n */\n @property({ reflect: true })\n size = INPUT_SIZE.LARGE;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'search');\n }\n super.connectedCallback();\n }\n\n render() {\n const result = super.render();\n const {\n persistent,\n expanded,\n size,\n _handleSearchClick: handleSearchClick,\n } = this;\n const classes = classMap({\n [`${prefix}--search`]: true,\n [`${prefix}--search--${size}`]: size,\n });\n if (persistent) {\n this.expanded = true;\n }\n return html`\n <div\n class=\"${classes}\"\n tabindex=\"${expanded ? '-1' : '0'}\"\n @click=\"${handleSearchClick}\">\n ${result}\n </div>\n `;\n }\n\n /**\n * The name of the custom event fired after the search content is changed upon a user gesture.\n */\n static get eventInput() {\n // The code uses on in `<cds-search>`, but definition is done also here for React event generation\n return `${prefix}-search-input`;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles;\n}\n\nexport default CDSTableToolbarSearch;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,6BAA6B;AACtD,SAASC,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,QAAQ,EAAEC,KAAK,QAAQ,mBAAmB;AACnD,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,iBAA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CAAAC,eAAA,CAzEVjC,qBAAqB,CAAAkC,SAAA,mBAAAC,IAAA,MAyEM;QAC7B,MAAM;UACJZ,UAAU;UACVV,QAAQ;UACRyB,IAAI;UACJd,kBAAkB,EAAEe;QACtB,CAAC,GAAG,IAAI;QACR,MAAMC,OAAO,GAAGrD,QAAQ,CAAC;UACvB,CAAC,GAAGK,MAAM,UAAU,GAAG,IAAI;UAC3B,CAAC,GAAGA,MAAM,aAAa8C,IAAI,EAAE,GAAGA;QAClC,CAAC,CAAC;QACF,IAAIf,UAAU,EAAE;UACd,IAAI,CAACV,QAAQ,GAAG,IAAI;QACtB;QACA,OAAOxB,IAAI,CAAAoD,EAAA,KAAAA,EAAA,GAAAC,CAAA;AACf;AACA,iBAFe;AACf,oBADe;AACf,kBADe;AACf,UADe;AACf;AACA,KAFe,GAEEF,OAAO,EACJ3B,QAAQ,GAAG,IAAI,GAAG,GAAG,EACvB0B,iBAAiB,EACzBF,MAAM;MAGd;;MAEA;AACF;AACA;IAFE;MAAA7B,IAAA;MAAAmC,MAAA;MAAAjC,GAAA;MAAAC,KAAA,EAGA,SAAAiC,WAAA,EAAwB;QACtB;QACA,OAAO,GAAGpD,MAAM,eAAe;MACjC;IAAC;MAAAgB,IAAA;MAAAmC,MAAA;MAAAjC,GAAA;MAAAC,MAAA;QAAA,OAAAkC,aAAA,CAAAA,aAAA,KAGIzD,UAAU,CAAC0D,iBAAiB;UAC/BC,cAAc,EAAE;QAAI;MAAA;IAAA;MAAAvC,IAAA;MAAAmC,MAAA;MAAAjC,GAAA;MAAAC,MAAA;QAAA,OAENd,MAAM;MAAA;IAAA;EAAA;AAAA,GA7GYJ,iBAAiB,CAACG,SAAS,CAAC;AAgHhE,eAAeI,qBAAqB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"table-toolbar.js","names":["LitElement","html","property","prefix","styles","carbonElement","customElement","CDSTableToolbar","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","decorators","reflect","key","value","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","updated","changedProperties","has","querySelector","selectorToolbarContent","size","render","_t","_","static"],"sources":["components/data-table/table-toolbar.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 styles from './data-table.scss';\nimport { CDSTableToolbarContent } from '../..';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Table toolbar.\n *\n * @element cds-table-toolbar\n */\n@customElement(`${prefix}-table-toolbar`)\nclass CDSTableToolbar extends LitElement {\n /**\n * Toolbar size\n */\n @property({ reflect: true })\n size;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'section');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (changedProperties.has('size')) {\n (\n this.querySelector(\n (this.constructor as typeof CDSTableToolbar).selectorToolbarContent\n ) as CDSTableToolbarContent\n ).size = this.size;\n }\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n /**\n * The CSS selector to find the toolbar contents\n */\n static get selectorToolbarContent() {\n return `${prefix}-table-toolbar-content`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableToolbar;\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,OAAOC,MAAM,MAAM,uBAAmB;AAEtC,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;;AAExF;AACA;AACA;AACA;AACA;AAJA,IAMMC,eAAe,GAAAC,SAAA,EADpBF,aAAa,CAAE,GAAEH,MAAO,gBAAe,CAAC,aAAAM,WAAA,EAAAC,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,UAAU;AAsCxC,eAAeO,eAAe","ignoreList":[]}
1
+ {"version":3,"file":"table-toolbar.js","names":["LitElement","html","property","prefix","styles","carbonElement","customElement","CDSTableToolbar","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","decorators","reflect","key","value","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","updated","changedProperties","has","querySelector","selectorToolbarContent","size","render","_t","_","static"],"sources":["components/data-table/table-toolbar.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 styles from './data-table.scss';\nimport { CDSTableToolbarContent } from '../..';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Table toolbar.\n *\n * @element cds-table-toolbar\n */\n@customElement(`${prefix}-table-toolbar`)\nclass CDSTableToolbar extends LitElement {\n /**\n * Toolbar size\n */\n @property({ reflect: true })\n size;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'section');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (changedProperties.has('size')) {\n (\n this.querySelector(\n (this.constructor as typeof CDSTableToolbar).selectorToolbarContent\n ) as CDSTableToolbarContent\n ).size = this.size;\n }\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n /**\n * The CSS selector to find the toolbar contents\n */\n static get selectorToolbarContent() {\n return `${prefix}-table-toolbar-content`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableToolbar;\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,OAAOC,MAAM,MAAM,uBAAmB;A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