@carbon/web-components 2.0.0-rc.1 → 2.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (723) hide show
  1. package/custom-elements.json +307 -79
  2. package/es/components/accordion/accordion-item.d.ts.map +1 -1
  3. package/es/components/accordion/accordion-item.js +3 -2
  4. package/es/components/accordion/accordion-item.js.map +1 -1
  5. package/es/components/accordion/accordion-skeleton.js.map +1 -1
  6. package/es/components/accordion/accordion.css.js +1 -1
  7. package/es/components/accordion/accordion.d.ts.map +1 -1
  8. package/es/components/accordion/accordion.js +2 -1
  9. package/es/components/accordion/accordion.js.map +1 -1
  10. package/es/components/accordion/accordion.rtl.css.js +1 -1
  11. package/es/components/accordion/defs.d.ts +1 -1
  12. package/es/components/accordion/defs.d.ts.map +1 -1
  13. package/es/components/accordion/defs.js +1 -1
  14. package/es/components/accordion/defs.js.map +1 -1
  15. package/es/components/accordion/index.d.ts +1 -1
  16. package/es/components/accordion/index.d.ts.map +1 -1
  17. package/es/components/accordion/index.js +1 -1
  18. package/es/components/accordion/index.js.map +1 -1
  19. package/es/components/breadcrumb/breadcrumb-item.d.ts.map +1 -1
  20. package/es/components/breadcrumb/breadcrumb-item.js +2 -6
  21. package/es/components/breadcrumb/breadcrumb-item.js.map +1 -1
  22. package/es/components/breadcrumb/breadcrumb-link.d.ts.map +1 -1
  23. package/es/components/breadcrumb/breadcrumb-link.js +2 -6
  24. package/es/components/breadcrumb/breadcrumb-link.js.map +1 -1
  25. package/es/components/breadcrumb/breadcrumb-overflow-menu.d.ts.map +1 -1
  26. package/es/components/breadcrumb/breadcrumb-overflow-menu.js +2 -6
  27. package/es/components/breadcrumb/breadcrumb-overflow-menu.js.map +1 -1
  28. package/es/components/breadcrumb/breadcrumb-skeleton.js.map +1 -1
  29. package/es/components/breadcrumb/breadcrumb.css.js +1 -1
  30. package/es/components/breadcrumb/breadcrumb.d.ts.map +1 -1
  31. package/es/components/breadcrumb/breadcrumb.js +3 -6
  32. package/es/components/breadcrumb/breadcrumb.js.map +1 -1
  33. package/es/components/breadcrumb/breadcrumb.rtl.css.js +1 -1
  34. package/es/components/breadcrumb/index.d.ts +1 -1
  35. package/es/components/breadcrumb/index.d.ts.map +1 -1
  36. package/es/components/breadcrumb/index.js +1 -1
  37. package/es/components/breadcrumb/index.js.map +1 -1
  38. package/es/components/button/button-set.js.map +1 -1
  39. package/es/components/button/button-skeleton.d.ts.map +1 -1
  40. package/es/components/button/button-skeleton.js +2 -4
  41. package/es/components/button/button-skeleton.js.map +1 -1
  42. package/es/components/button/button.css.js +1 -1
  43. package/es/components/button/button.d.ts +1 -1
  44. package/es/components/button/button.d.ts.map +1 -1
  45. package/es/components/button/button.js +12 -9
  46. package/es/components/button/button.js.map +1 -1
  47. package/es/components/button/button.rtl.css.js +1 -1
  48. package/es/components/button/defs.d.ts +1 -1
  49. package/es/components/button/defs.d.ts.map +1 -1
  50. package/es/components/button/defs.js +1 -1
  51. package/es/components/button/defs.js.map +1 -1
  52. package/es/components/button/index.d.ts +1 -1
  53. package/es/components/button/index.d.ts.map +1 -1
  54. package/es/components/button/index.js +1 -1
  55. package/es/components/button/index.js.map +1 -1
  56. package/es/components/checkbox/checkbox.css.js +1 -1
  57. package/es/components/checkbox/checkbox.d.ts.map +1 -1
  58. package/es/components/checkbox/checkbox.js +3 -9
  59. package/es/components/checkbox/checkbox.js.map +1 -1
  60. package/es/components/checkbox/checkbox.rtl.css.js +1 -1
  61. package/es/components/checkbox/index.d.ts +1 -1
  62. package/es/components/checkbox/index.d.ts.map +1 -1
  63. package/es/components/checkbox/index.js +1 -1
  64. package/es/components/checkbox/index.js.map +1 -1
  65. package/es/components/code-snippet/code-snippet-skeleton.d.ts.map +1 -1
  66. package/es/components/code-snippet/code-snippet-skeleton.js +3 -4
  67. package/es/components/code-snippet/code-snippet-skeleton.js.map +1 -1
  68. package/es/components/code-snippet/code-snippet.css.js +1 -1
  69. package/es/components/code-snippet/code-snippet.d.ts +4 -0
  70. package/es/components/code-snippet/code-snippet.d.ts.map +1 -1
  71. package/es/components/code-snippet/code-snippet.js +20 -9
  72. package/es/components/code-snippet/code-snippet.js.map +1 -1
  73. package/es/components/code-snippet/code-snippet.rtl.css.js +1 -1
  74. package/es/components/code-snippet/defs.d.ts +1 -1
  75. package/es/components/code-snippet/defs.d.ts.map +1 -1
  76. package/es/components/code-snippet/defs.js +1 -1
  77. package/es/components/code-snippet/defs.js.map +1 -1
  78. package/es/components/code-snippet/index.d.ts +1 -1
  79. package/es/components/code-snippet/index.d.ts.map +1 -1
  80. package/es/components/code-snippet/index.js +1 -1
  81. package/es/components/code-snippet/index.js.map +1 -1
  82. package/es/components/combo-box/combo-box-item.d.ts.map +1 -1
  83. package/es/components/combo-box/combo-box-item.js +2 -6
  84. package/es/components/combo-box/combo-box-item.js.map +1 -1
  85. package/es/components/combo-box/combo-box.css.js +1 -1
  86. package/es/components/combo-box/combo-box.d.ts.map +1 -1
  87. package/es/components/combo-box/combo-box.js +2 -1
  88. package/es/components/combo-box/combo-box.js.map +1 -1
  89. package/es/components/combo-box/combo-box.rtl.css.js +1 -1
  90. package/es/components/combo-box/index.d.ts +1 -1
  91. package/es/components/combo-box/index.d.ts.map +1 -1
  92. package/es/components/combo-box/index.js +1 -1
  93. package/es/components/combo-box/index.js.map +1 -1
  94. package/es/components/content-switcher/content-switcher-item.d.ts.map +1 -1
  95. package/es/components/content-switcher/content-switcher-item.js +3 -6
  96. package/es/components/content-switcher/content-switcher-item.js.map +1 -1
  97. package/es/components/content-switcher/content-switcher.css.js +1 -1
  98. package/es/components/content-switcher/content-switcher.d.ts.map +1 -1
  99. package/es/components/content-switcher/content-switcher.js +2 -1
  100. package/es/components/content-switcher/content-switcher.js.map +1 -1
  101. package/es/components/content-switcher/content-switcher.rtl.css.js +1 -1
  102. package/es/components/content-switcher/defs.d.ts +1 -1
  103. package/es/components/content-switcher/defs.d.ts.map +1 -1
  104. package/es/components/content-switcher/defs.js +1 -1
  105. package/es/components/content-switcher/defs.js.map +1 -1
  106. package/es/components/content-switcher/index.d.ts +1 -1
  107. package/es/components/content-switcher/index.d.ts.map +1 -1
  108. package/es/components/content-switcher/index.js +1 -1
  109. package/es/components/content-switcher/index.js.map +1 -1
  110. package/es/components/copy/copy.d.ts.map +1 -1
  111. package/es/components/copy/copy.js +3 -1
  112. package/es/components/copy/copy.js.map +1 -1
  113. package/es/components/copy-button/copy-button.css.js +1 -1
  114. package/es/components/copy-button/copy-button.d.ts +1 -1
  115. package/es/components/copy-button/copy-button.d.ts.map +1 -1
  116. package/es/components/copy-button/copy-button.js +7 -7
  117. package/es/components/copy-button/copy-button.js.map +1 -1
  118. package/es/components/copy-button/copy-button.rtl.css.js +1 -1
  119. package/es/components/copy-button/index.d.ts +1 -1
  120. package/es/components/copy-button/index.d.ts.map +1 -1
  121. package/es/components/copy-button/index.js +1 -1
  122. package/es/components/copy-button/index.js.map +1 -1
  123. package/es/components/data-table/data-table.css.js +1 -1
  124. package/es/components/data-table/data-table.rtl.css.js +1 -1
  125. package/es/components/data-table/index.d.ts +1 -1
  126. package/es/components/data-table/index.d.ts.map +1 -1
  127. package/es/components/data-table/index.js +1 -1
  128. package/es/components/data-table/index.js.map +1 -1
  129. package/es/components/data-table/table-batch-actions.d.ts.map +1 -1
  130. package/es/components/data-table/table-batch-actions.js +3 -7
  131. package/es/components/data-table/table-batch-actions.js.map +1 -1
  132. package/es/components/data-table/table-body.d.ts.map +1 -1
  133. package/es/components/data-table/table-body.js +3 -6
  134. package/es/components/data-table/table-body.js.map +1 -1
  135. package/es/components/data-table/table-cell.d.ts.map +1 -1
  136. package/es/components/data-table/table-cell.js +3 -7
  137. package/es/components/data-table/table-cell.js.map +1 -1
  138. package/es/components/data-table/table-expanded-row.d.ts.map +1 -1
  139. package/es/components/data-table/table-expanded-row.js +2 -1
  140. package/es/components/data-table/table-expanded-row.js.map +1 -1
  141. package/es/components/data-table/table-head.d.ts.map +1 -1
  142. package/es/components/data-table/table-head.js +2 -6
  143. package/es/components/data-table/table-head.js.map +1 -1
  144. package/es/components/data-table/table-header-cell.d.ts.map +1 -1
  145. package/es/components/data-table/table-header-cell.js +2 -1
  146. package/es/components/data-table/table-header-cell.js.map +1 -1
  147. package/es/components/data-table/table-header-row.d.ts.map +1 -1
  148. package/es/components/data-table/table-header-row.js +1 -1
  149. package/es/components/data-table/table-header-row.js.map +1 -1
  150. package/es/components/data-table/table-row.d.ts.map +1 -1
  151. package/es/components/data-table/table-row.js +3 -2
  152. package/es/components/data-table/table-row.js.map +1 -1
  153. package/es/components/data-table/table-skeleton.js.map +1 -1
  154. package/es/components/data-table/table-toolbar-content.d.ts.map +1 -1
  155. package/es/components/data-table/table-toolbar-content.js +4 -7
  156. package/es/components/data-table/table-toolbar-content.js.map +1 -1
  157. package/es/components/data-table/table-toolbar-search.d.ts.map +1 -1
  158. package/es/components/data-table/table-toolbar-search.js +3 -7
  159. package/es/components/data-table/table-toolbar-search.js.map +1 -1
  160. package/es/components/data-table/table-toolbar.d.ts +0 -8
  161. package/es/components/data-table/table-toolbar.d.ts.map +1 -1
  162. package/es/components/data-table/table-toolbar.js +3 -30
  163. package/es/components/data-table/table-toolbar.js.map +1 -1
  164. package/es/components/data-table/table.d.ts.map +1 -1
  165. package/es/components/data-table/table.js +3 -3
  166. package/es/components/data-table/table.js.map +1 -1
  167. package/es/components/date-picker/append-to-plugin.js.map +1 -1
  168. package/es/components/date-picker/css-class-plugin.js.map +1 -1
  169. package/es/components/date-picker/date-picker-input-skeleton.d.ts.map +1 -1
  170. package/es/components/date-picker/date-picker-input-skeleton.js +3 -4
  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.map +1 -1
  173. package/es/components/date-picker/date-picker-input.js +2 -1
  174. package/es/components/date-picker/date-picker-input.js.map +1 -1
  175. package/es/components/date-picker/date-picker.css.js +1 -1
  176. package/es/components/date-picker/date-picker.d.ts.map +1 -1
  177. package/es/components/date-picker/date-picker.js +7 -4
  178. package/es/components/date-picker/date-picker.js.map +1 -1
  179. package/es/components/date-picker/date-picker.rtl.css.js +1 -1
  180. package/es/components/date-picker/defs.d.ts +1 -1
  181. package/es/components/date-picker/defs.d.ts.map +1 -1
  182. package/es/components/date-picker/defs.js +1 -1
  183. package/es/components/date-picker/defs.js.map +1 -1
  184. package/es/components/date-picker/fix-events-plugin.js +9 -0
  185. package/es/components/date-picker/fix-events-plugin.js.map +1 -1
  186. package/es/components/date-picker/focus-plugin.d.ts.map +1 -1
  187. package/es/components/date-picker/focus-plugin.js +14 -4
  188. package/es/components/date-picker/focus-plugin.js.map +1 -1
  189. package/es/components/date-picker/icon-plugin.js.map +1 -1
  190. package/es/components/date-picker/index.d.ts +1 -1
  191. package/es/components/date-picker/index.d.ts.map +1 -1
  192. package/es/components/date-picker/index.js +1 -1
  193. package/es/components/date-picker/index.js.map +1 -1
  194. package/es/components/date-picker/iso-date.js.map +1 -1
  195. package/es/components/date-picker/month-select-plugin.js.map +1 -1
  196. package/es/components/date-picker/range-plugin.d.ts +21 -6
  197. package/es/components/date-picker/range-plugin.d.ts.map +1 -1
  198. package/es/components/date-picker/range-plugin.js +51 -17
  199. package/es/components/date-picker/range-plugin.js.map +1 -1
  200. package/es/components/date-picker/shadow-dom-events-plugin.js.map +1 -1
  201. package/es/components/date-picker/state-handshake-plugin.js.map +1 -1
  202. package/es/components/dropdown/defs.d.ts +1 -1
  203. package/es/components/dropdown/defs.d.ts.map +1 -1
  204. package/es/components/dropdown/defs.js +1 -1
  205. package/es/components/dropdown/defs.js.map +1 -1
  206. package/es/components/dropdown/dropdown-item.d.ts.map +1 -1
  207. package/es/components/dropdown/dropdown-item.js +3 -7
  208. package/es/components/dropdown/dropdown-item.js.map +1 -1
  209. package/es/components/dropdown/dropdown-skeleton.d.ts.map +1 -1
  210. package/es/components/dropdown/dropdown-skeleton.js +2 -4
  211. package/es/components/dropdown/dropdown-skeleton.js.map +1 -1
  212. package/es/components/dropdown/dropdown.css.js +1 -1
  213. package/es/components/dropdown/dropdown.d.ts +1 -3
  214. package/es/components/dropdown/dropdown.d.ts.map +1 -1
  215. package/es/components/dropdown/dropdown.js +2 -1
  216. package/es/components/dropdown/dropdown.js.map +1 -1
  217. package/es/components/dropdown/dropdown.rtl.css.js +1 -1
  218. package/es/components/dropdown/index.d.ts +1 -1
  219. package/es/components/dropdown/index.d.ts.map +1 -1
  220. package/es/components/dropdown/index.js +1 -1
  221. package/es/components/dropdown/index.js.map +1 -1
  222. package/es/components/file-uploader/defs.d.ts +1 -1
  223. package/es/components/file-uploader/defs.d.ts.map +1 -1
  224. package/es/components/file-uploader/defs.js +1 -1
  225. package/es/components/file-uploader/defs.js.map +1 -1
  226. package/es/components/file-uploader/demo-file-uploader.js.map +1 -1
  227. package/es/components/file-uploader/file-uploader-button.d.ts.map +1 -1
  228. package/es/components/file-uploader/file-uploader-button.js +1 -0
  229. package/es/components/file-uploader/file-uploader-button.js.map +1 -1
  230. package/es/components/file-uploader/file-uploader-drop-container.d.ts.map +1 -1
  231. package/es/components/file-uploader/file-uploader-drop-container.js +2 -1
  232. package/es/components/file-uploader/file-uploader-drop-container.js.map +1 -1
  233. package/es/components/file-uploader/file-uploader-item.d.ts.map +1 -1
  234. package/es/components/file-uploader/file-uploader-item.js +2 -1
  235. package/es/components/file-uploader/file-uploader-item.js.map +1 -1
  236. package/es/components/file-uploader/file-uploader.css.js +1 -1
  237. package/es/components/file-uploader/file-uploader.d.ts.map +1 -1
  238. package/es/components/file-uploader/file-uploader.js +3 -8
  239. package/es/components/file-uploader/file-uploader.js.map +1 -1
  240. package/es/components/file-uploader/file-uploader.rtl.css.js +1 -1
  241. package/es/components/file-uploader/index.d.ts +1 -1
  242. package/es/components/file-uploader/index.d.ts.map +1 -1
  243. package/es/components/file-uploader/index.js +1 -1
  244. package/es/components/file-uploader/index.js.map +1 -1
  245. package/es/components/floating-menu/defs.d.ts +1 -1
  246. package/es/components/floating-menu/defs.d.ts.map +1 -1
  247. package/es/components/floating-menu/defs.js +1 -1
  248. package/es/components/floating-menu/defs.js.map +1 -1
  249. package/es/components/floating-menu/floating-menu-trigger.d.ts +1 -1
  250. package/es/components/floating-menu/floating-menu-trigger.d.ts.map +1 -1
  251. package/es/components/floating-menu/floating-menu.js +9 -2
  252. package/es/components/floating-menu/floating-menu.js.map +1 -1
  253. package/es/components/floating-menu/index.d.ts +1 -1
  254. package/es/components/floating-menu/index.d.ts.map +1 -1
  255. package/es/components/floating-menu/index.js +1 -1
  256. package/es/components/floating-menu/index.js.map +1 -1
  257. package/es/components/form/form-item.css.js +1 -1
  258. package/es/components/form/form-item.d.ts.map +1 -1
  259. package/es/components/form/form-item.js +2 -6
  260. package/es/components/form/form-item.js.map +1 -1
  261. package/es/components/form/form-item.rtl.css.js +1 -1
  262. package/es/components/form/index.d.ts +1 -1
  263. package/es/components/form/index.d.ts.map +1 -1
  264. package/es/components/form/index.js +1 -1
  265. package/es/components/form/index.js.map +1 -1
  266. package/es/components/form-group/form-group.css.js +1 -1
  267. package/es/components/form-group/form-group.rtl.css.js +1 -1
  268. package/es/components/icon-button/icon-button.css.js +1 -1
  269. package/es/components/icon-button/icon-button.d.ts.map +1 -1
  270. package/es/components/icon-button/icon-button.js +3 -1
  271. package/es/components/icon-button/icon-button.js.map +1 -1
  272. package/es/components/icon-button/icon-button.rtl.css.js +1 -1
  273. package/es/components/inline-loading/defs.d.ts +1 -1
  274. package/es/components/inline-loading/defs.d.ts.map +1 -1
  275. package/es/components/inline-loading/defs.js +1 -1
  276. package/es/components/inline-loading/defs.js.map +1 -1
  277. package/es/components/inline-loading/index.d.ts +1 -1
  278. package/es/components/inline-loading/index.d.ts.map +1 -1
  279. package/es/components/inline-loading/index.js +1 -1
  280. package/es/components/inline-loading/index.js.map +1 -1
  281. package/es/components/inline-loading/inline-loading.css.js +1 -1
  282. package/es/components/inline-loading/inline-loading.d.ts.map +1 -1
  283. package/es/components/inline-loading/inline-loading.js +2 -1
  284. package/es/components/inline-loading/inline-loading.js.map +1 -1
  285. package/es/components/inline-loading/inline-loading.rtl.css.js +1 -1
  286. package/es/components/layer/layer.js.map +1 -1
  287. package/es/components/link/index.d.ts +1 -1
  288. package/es/components/link/index.d.ts.map +1 -1
  289. package/es/components/link/index.js +1 -1
  290. package/es/components/link/index.js.map +1 -1
  291. package/es/components/link/link.d.ts.map +1 -1
  292. package/es/components/link/link.js +3 -4
  293. package/es/components/link/link.js.map +1 -1
  294. package/es/components/list/index.d.ts +1 -1
  295. package/es/components/list/index.d.ts.map +1 -1
  296. package/es/components/list/index.js +1 -1
  297. package/es/components/list/index.js.map +1 -1
  298. package/es/components/list/list-item.d.ts.map +1 -1
  299. package/es/components/list/list-item.js +3 -7
  300. package/es/components/list/list-item.js.map +1 -1
  301. package/es/components/list/ordered-list.d.ts.map +1 -1
  302. package/es/components/list/ordered-list.js +2 -1
  303. package/es/components/list/ordered-list.js.map +1 -1
  304. package/es/components/list/unordered-list.d.ts.map +1 -1
  305. package/es/components/list/unordered-list.js +3 -4
  306. package/es/components/list/unordered-list.js.map +1 -1
  307. package/es/components/loading/defs.d.ts +1 -1
  308. package/es/components/loading/defs.d.ts.map +1 -1
  309. package/es/components/loading/defs.js +1 -1
  310. package/es/components/loading/defs.js.map +1 -1
  311. package/es/components/loading/index.d.ts +1 -1
  312. package/es/components/loading/index.d.ts.map +1 -1
  313. package/es/components/loading/index.js +1 -1
  314. package/es/components/loading/index.js.map +1 -1
  315. package/es/components/loading/loading.css.js +1 -1
  316. package/es/components/loading/loading.d.ts.map +1 -1
  317. package/es/components/loading/loading.js +3 -6
  318. package/es/components/loading/loading.js.map +1 -1
  319. package/es/components/loading/loading.rtl.css.js +1 -1
  320. package/es/components/loading/types.d.ts +1 -1
  321. package/es/components/loading/types.d.ts.map +1 -1
  322. package/es/components/loading/types.js +1 -1
  323. package/es/components/loading/types.js.map +1 -1
  324. package/es/components/modal/defs.d.ts +1 -1
  325. package/es/components/modal/defs.d.ts.map +1 -1
  326. package/es/components/modal/defs.js +1 -1
  327. package/es/components/modal/defs.js.map +1 -1
  328. package/es/components/modal/index.d.ts +1 -1
  329. package/es/components/modal/index.d.ts.map +1 -1
  330. package/es/components/modal/index.js +1 -1
  331. package/es/components/modal/index.js.map +1 -1
  332. package/es/components/modal/modal-body.d.ts.map +1 -1
  333. package/es/components/modal/modal-body.js +2 -6
  334. package/es/components/modal/modal-body.js.map +1 -1
  335. package/es/components/modal/modal-close-button.d.ts.map +1 -1
  336. package/es/components/modal/modal-close-button.js +3 -8
  337. package/es/components/modal/modal-close-button.js.map +1 -1
  338. package/es/components/modal/modal-footer-button.d.ts.map +1 -1
  339. package/es/components/modal/modal-footer-button.js +2 -6
  340. package/es/components/modal/modal-footer-button.js.map +1 -1
  341. package/es/components/modal/modal-footer.d.ts.map +1 -1
  342. package/es/components/modal/modal-footer.js +3 -6
  343. package/es/components/modal/modal-footer.js.map +1 -1
  344. package/es/components/modal/modal-header.d.ts.map +1 -1
  345. package/es/components/modal/modal-header.js +2 -6
  346. package/es/components/modal/modal-header.js.map +1 -1
  347. package/es/components/modal/modal-heading.d.ts.map +1 -1
  348. package/es/components/modal/modal-heading.js +2 -6
  349. package/es/components/modal/modal-heading.js.map +1 -1
  350. package/es/components/modal/modal-label.d.ts.map +1 -1
  351. package/es/components/modal/modal-label.js +2 -6
  352. package/es/components/modal/modal-label.js.map +1 -1
  353. package/es/components/modal/modal.css.js +1 -1
  354. package/es/components/modal/modal.d.ts.map +1 -1
  355. package/es/components/modal/modal.js +2 -1
  356. package/es/components/modal/modal.js.map +1 -1
  357. package/es/components/modal/modal.rtl.css.js +1 -1
  358. package/es/components/multi-select/multi-select-item.d.ts.map +1 -1
  359. package/es/components/multi-select/multi-select-item.js +3 -6
  360. package/es/components/multi-select/multi-select-item.js.map +1 -1
  361. package/es/components/multi-select/multi-select.css.js +1 -1
  362. package/es/components/multi-select/multi-select.d.ts.map +1 -1
  363. package/es/components/multi-select/multi-select.js +2 -1
  364. package/es/components/multi-select/multi-select.js.map +1 -1
  365. package/es/components/multi-select/multi-select.rtl.css.js +1 -1
  366. package/es/components/notification/actionable-notification-button.js.map +1 -1
  367. package/es/components/notification/actionable-notification.css.js +1 -1
  368. package/es/components/notification/actionable-notification.js.map +1 -1
  369. package/es/components/notification/actionable-notification.rtl.css.js +1 -1
  370. package/es/components/notification/inline-notification.css.js +1 -1
  371. package/es/components/notification/inline-notification.d.ts.map +1 -1
  372. package/es/components/notification/inline-notification.js +2 -1
  373. package/es/components/notification/inline-notification.js.map +1 -1
  374. package/es/components/notification/inline-notification.rtl.css.js +1 -1
  375. package/es/components/notification/toast-notification.css.js +1 -1
  376. package/es/components/notification/toast-notification.d.ts.map +1 -1
  377. package/es/components/notification/toast-notification.js +2 -1
  378. package/es/components/notification/toast-notification.js.map +1 -1
  379. package/es/components/notification/toast-notification.rtl.css.js +1 -1
  380. package/es/components/number-input/number-input-skeleton.d.ts.map +1 -1
  381. package/es/components/number-input/number-input-skeleton.js +3 -4
  382. package/es/components/number-input/number-input-skeleton.js.map +1 -1
  383. package/es/components/number-input/number-input.css.js +1 -1
  384. package/es/components/number-input/number-input.d.ts.map +1 -1
  385. package/es/components/number-input/number-input.js +2 -1
  386. package/es/components/number-input/number-input.js.map +1 -1
  387. package/es/components/number-input/number-input.rtl.css.js +1 -1
  388. package/es/components/overflow-menu/overflow-menu-body.d.ts.map +1 -1
  389. package/es/components/overflow-menu/overflow-menu-body.js +2 -1
  390. package/es/components/overflow-menu/overflow-menu-body.js.map +1 -1
  391. package/es/components/overflow-menu/overflow-menu-item.d.ts.map +1 -1
  392. package/es/components/overflow-menu/overflow-menu-item.js +2 -1
  393. package/es/components/overflow-menu/overflow-menu-item.js.map +1 -1
  394. package/es/components/overflow-menu/overflow-menu.css.js +1 -1
  395. package/es/components/overflow-menu/overflow-menu.d.ts.map +1 -1
  396. package/es/components/overflow-menu/overflow-menu.js +6 -8
  397. package/es/components/overflow-menu/overflow-menu.js.map +1 -1
  398. package/es/components/overflow-menu/overflow-menu.rtl.css.js +1 -1
  399. package/es/components/pagination/pagination.css.js +1 -1
  400. package/es/components/pagination/pagination.d.ts.map +1 -1
  401. package/es/components/pagination/pagination.js +14 -8
  402. package/es/components/pagination/pagination.js.map +1 -1
  403. package/es/components/pagination/pagination.rtl.css.js +1 -1
  404. package/es/components/popover/popover.css.js +1 -1
  405. package/es/components/popover/popover.js.map +1 -1
  406. package/es/components/popover/popover.rtl.css.js +1 -1
  407. package/es/components/progress-bar/progress-bar.css.js +1 -1
  408. package/es/components/progress-bar/progress-bar.js.map +1 -1
  409. package/es/components/progress-bar/progress-bar.rtl.css.js +1 -1
  410. package/es/components/progress-indicator/progress-indicator-skeleton.d.ts.map +1 -1
  411. package/es/components/progress-indicator/progress-indicator-skeleton.js +3 -4
  412. package/es/components/progress-indicator/progress-indicator-skeleton.js.map +1 -1
  413. package/es/components/progress-indicator/progress-indicator.css.js +1 -1
  414. package/es/components/progress-indicator/progress-indicator.d.ts.map +1 -1
  415. package/es/components/progress-indicator/progress-indicator.js +3 -6
  416. package/es/components/progress-indicator/progress-indicator.js.map +1 -1
  417. package/es/components/progress-indicator/progress-indicator.rtl.css.js +1 -1
  418. package/es/components/progress-indicator/progress-step-skeleton.d.ts.map +1 -1
  419. package/es/components/progress-indicator/progress-step-skeleton.js +3 -2
  420. package/es/components/progress-indicator/progress-step-skeleton.js.map +1 -1
  421. package/es/components/progress-indicator/progress-step.d.ts.map +1 -1
  422. package/es/components/progress-indicator/progress-step.js +2 -1
  423. package/es/components/progress-indicator/progress-step.js.map +1 -1
  424. package/es/components/radio-button/radio-button-group.d.ts +23 -1
  425. package/es/components/radio-button/radio-button-group.d.ts.map +1 -1
  426. package/es/components/radio-button/radio-button-group.js +111 -11
  427. package/es/components/radio-button/radio-button-group.js.map +1 -1
  428. package/es/components/radio-button/radio-button-skeleton.d.ts.map +1 -1
  429. package/es/components/radio-button/radio-button-skeleton.js +2 -4
  430. package/es/components/radio-button/radio-button-skeleton.js.map +1 -1
  431. package/es/components/radio-button/radio-button.css.js +1 -1
  432. package/es/components/radio-button/radio-button.d.ts +4 -0
  433. package/es/components/radio-button/radio-button.d.ts.map +1 -1
  434. package/es/components/radio-button/radio-button.js +20 -1
  435. package/es/components/radio-button/radio-button.js.map +1 -1
  436. package/es/components/radio-button/radio-button.rtl.css.js +1 -1
  437. package/es/components/search/search-skeleton.d.ts.map +1 -1
  438. package/es/components/search/search-skeleton.js +3 -4
  439. package/es/components/search/search-skeleton.js.map +1 -1
  440. package/es/components/search/search.css.js +1 -1
  441. package/es/components/search/search.d.ts.map +1 -1
  442. package/es/components/search/search.js +3 -12
  443. package/es/components/search/search.js.map +1 -1
  444. package/es/components/search/search.rtl.css.js +1 -1
  445. package/es/components/select/select-item-group.d.ts.map +1 -1
  446. package/es/components/select/select-item-group.js +2 -1
  447. package/es/components/select/select-item-group.js.map +1 -1
  448. package/es/components/select/select-item.d.ts.map +1 -1
  449. package/es/components/select/select-item.js +2 -1
  450. package/es/components/select/select-item.js.map +1 -1
  451. package/es/components/select/select.css.js +1 -1
  452. package/es/components/select/select.d.ts.map +1 -1
  453. package/es/components/select/select.js +3 -9
  454. package/es/components/select/select.js.map +1 -1
  455. package/es/components/select/select.rtl.css.js +1 -1
  456. package/es/components/skeleton-placeholder/skeleton-placeholder.d.ts.map +1 -1
  457. package/es/components/skeleton-placeholder/skeleton-placeholder.js +2 -6
  458. package/es/components/skeleton-placeholder/skeleton-placeholder.js.map +1 -1
  459. package/es/components/skeleton-text/skeleton-text.d.ts.map +1 -1
  460. package/es/components/skeleton-text/skeleton-text.js +2 -1
  461. package/es/components/skeleton-text/skeleton-text.js.map +1 -1
  462. package/es/components/skip-to-content/skip-to-content.css.js +1 -1
  463. package/es/components/skip-to-content/skip-to-content.d.ts.map +1 -1
  464. package/es/components/skip-to-content/skip-to-content.js +3 -6
  465. package/es/components/skip-to-content/skip-to-content.js.map +1 -1
  466. package/es/components/skip-to-content/skip-to-content.rtl.css.js +1 -1
  467. package/es/components/slider/slider-input.d.ts +4 -0
  468. package/es/components/slider/slider-input.d.ts.map +1 -1
  469. package/es/components/slider/slider-input.js +35 -15
  470. package/es/components/slider/slider-input.js.map +1 -1
  471. package/es/components/slider/slider-skeleton.d.ts.map +1 -1
  472. package/es/components/slider/slider-skeleton.js +2 -4
  473. package/es/components/slider/slider-skeleton.js.map +1 -1
  474. package/es/components/slider/slider.css.js +1 -1
  475. package/es/components/slider/slider.d.ts +17 -0
  476. package/es/components/slider/slider.d.ts.map +1 -1
  477. package/es/components/slider/slider.js +94 -7
  478. package/es/components/slider/slider.js.map +1 -1
  479. package/es/components/slider/slider.rtl.css.js +1 -1
  480. package/es/components/stack/defs.js.map +1 -1
  481. package/es/components/structured-list/structured-list-body.d.ts.map +1 -1
  482. package/es/components/structured-list/structured-list-body.js +1 -1
  483. package/es/components/structured-list/structured-list-body.js.map +1 -1
  484. package/es/components/structured-list/structured-list-cell.d.ts.map +1 -1
  485. package/es/components/structured-list/structured-list-cell.js +2 -6
  486. package/es/components/structured-list/structured-list-cell.js.map +1 -1
  487. package/es/components/structured-list/structured-list-head.d.ts.map +1 -1
  488. package/es/components/structured-list/structured-list-head.js +1 -1
  489. package/es/components/structured-list/structured-list-head.js.map +1 -1
  490. package/es/components/structured-list/structured-list-header-cell-skeleton.d.ts.map +1 -1
  491. package/es/components/structured-list/structured-list-header-cell-skeleton.js +2 -4
  492. package/es/components/structured-list/structured-list-header-cell-skeleton.js.map +1 -1
  493. package/es/components/structured-list/structured-list-header-cell.d.ts.map +1 -1
  494. package/es/components/structured-list/structured-list-header-cell.js +2 -6
  495. package/es/components/structured-list/structured-list-header-cell.js.map +1 -1
  496. package/es/components/structured-list/structured-list-header-row.d.ts.map +1 -1
  497. package/es/components/structured-list/structured-list-header-row.js +2 -1
  498. package/es/components/structured-list/structured-list-header-row.js.map +1 -1
  499. package/es/components/structured-list/structured-list-row.d.ts +0 -3
  500. package/es/components/structured-list/structured-list-row.d.ts.map +1 -1
  501. package/es/components/structured-list/structured-list-row.js +3 -4
  502. package/es/components/structured-list/structured-list-row.js.map +1 -1
  503. package/es/components/structured-list/structured-list.css.js +1 -1
  504. package/es/components/structured-list/structured-list.d.ts.map +1 -1
  505. package/es/components/structured-list/structured-list.js +3 -6
  506. package/es/components/structured-list/structured-list.js.map +1 -1
  507. package/es/components/structured-list/structured-list.rtl.css.js +1 -1
  508. package/es/components/tabs/tab-skeleton.d.ts.map +1 -1
  509. package/es/components/tabs/tab-skeleton.js +2 -4
  510. package/es/components/tabs/tab-skeleton.js.map +1 -1
  511. package/es/components/tabs/tab.d.ts.map +1 -1
  512. package/es/components/tabs/tab.js +3 -6
  513. package/es/components/tabs/tab.js.map +1 -1
  514. package/es/components/tabs/tabs-skeleton.d.ts.map +1 -1
  515. package/es/components/tabs/tabs-skeleton.js +2 -4
  516. package/es/components/tabs/tabs-skeleton.js.map +1 -1
  517. package/es/components/tabs/tabs.css.js +1 -1
  518. package/es/components/tabs/tabs.d.ts.map +1 -1
  519. package/es/components/tabs/tabs.js +3 -8
  520. package/es/components/tabs/tabs.js.map +1 -1
  521. package/es/components/tabs/tabs.rtl.css.js +1 -1
  522. package/es/components/tag/tag.css.js +1 -1
  523. package/es/components/tag/tag.d.ts.map +1 -1
  524. package/es/components/tag/tag.js +2 -1
  525. package/es/components/tag/tag.js.map +1 -1
  526. package/es/components/tag/tag.rtl.css.js +1 -1
  527. package/es/components/text-input/text-input.css.js +1 -1
  528. package/es/components/text-input/text-input.d.ts +4 -4
  529. package/es/components/text-input/text-input.d.ts.map +1 -1
  530. package/es/components/text-input/text-input.js +13 -12
  531. package/es/components/text-input/text-input.js.map +1 -1
  532. package/es/components/text-input/text-input.rtl.css.js +1 -1
  533. package/es/components/textarea/textarea-skeleton.d.ts.map +1 -1
  534. package/es/components/textarea/textarea-skeleton.js +2 -4
  535. package/es/components/textarea/textarea-skeleton.js.map +1 -1
  536. package/es/components/textarea/textarea.css.js +1 -1
  537. package/es/components/textarea/textarea.d.ts.map +1 -1
  538. package/es/components/textarea/textarea.js +12 -14
  539. package/es/components/textarea/textarea.js.map +1 -1
  540. package/es/components/textarea/textarea.rtl.css.js +1 -1
  541. package/es/components/tile/clickable-tile.d.ts.map +1 -1
  542. package/es/components/tile/clickable-tile.js +3 -6
  543. package/es/components/tile/clickable-tile.js.map +1 -1
  544. package/es/components/tile/expandable-tile.d.ts.map +1 -1
  545. package/es/components/tile/expandable-tile.js +2 -1
  546. package/es/components/tile/expandable-tile.js.map +1 -1
  547. package/es/components/tile/radio-tile.d.ts.map +1 -1
  548. package/es/components/tile/radio-tile.js +2 -6
  549. package/es/components/tile/radio-tile.js.map +1 -1
  550. package/es/components/tile/selectable-tile.d.ts +3 -1
  551. package/es/components/tile/selectable-tile.d.ts.map +1 -1
  552. package/es/components/tile/selectable-tile.js +2 -1
  553. package/es/components/tile/selectable-tile.js.map +1 -1
  554. package/es/components/tile/tile-group.d.ts +1 -1
  555. package/es/components/tile/tile-group.d.ts.map +1 -1
  556. package/es/components/tile/tile-group.js +7 -8
  557. package/es/components/tile/tile-group.js.map +1 -1
  558. package/es/components/tile/tile.css.js +1 -1
  559. package/es/components/tile/tile.d.ts.map +1 -1
  560. package/es/components/tile/tile.js +2 -1
  561. package/es/components/tile/tile.js.map +1 -1
  562. package/es/components/tile/tile.rtl.css.js +1 -1
  563. package/es/components/toggle/toggle.css.js +1 -1
  564. package/es/components/toggle/toggle.d.ts.map +1 -1
  565. package/es/components/toggle/toggle.js +2 -1
  566. package/es/components/toggle/toggle.js.map +1 -1
  567. package/es/components/toggle/toggle.rtl.css.js +1 -1
  568. package/es/components/toggle-tip/toggletip.css.js +1 -1
  569. package/es/components/toggle-tip/toggletip.js.map +1 -1
  570. package/es/components/toggle-tip/toggletip.rtl.css.js +1 -1
  571. package/es/components/tooltip/tooltip.css.js +1 -1
  572. package/es/components/tooltip/tooltip.d.ts +0 -1
  573. package/es/components/tooltip/tooltip.d.ts.map +1 -1
  574. package/es/components/tooltip/tooltip.js +3 -3
  575. package/es/components/tooltip/tooltip.js.map +1 -1
  576. package/es/components/tooltip/tooltip.rtl.css.js +1 -1
  577. package/es/components/ui-shell/header-global-action.d.ts +16 -1
  578. package/es/components/ui-shell/header-global-action.d.ts.map +1 -1
  579. package/es/components/ui-shell/header-global-action.js +92 -8
  580. package/es/components/ui-shell/header-global-action.js.map +1 -1
  581. package/es/components/ui-shell/header-menu-button.d.ts.map +1 -1
  582. package/es/components/ui-shell/header-menu-button.js +3 -9
  583. package/es/components/ui-shell/header-menu-button.js.map +1 -1
  584. package/es/components/ui-shell/header-menu-item.d.ts.map +1 -1
  585. package/es/components/ui-shell/header-menu-item.js +1 -1
  586. package/es/components/ui-shell/header-menu-item.js.map +1 -1
  587. package/es/components/ui-shell/header-menu.d.ts +1 -1
  588. package/es/components/ui-shell/header-menu.d.ts.map +1 -1
  589. package/es/components/ui-shell/header-menu.js +11 -17
  590. package/es/components/ui-shell/header-menu.js.map +1 -1
  591. package/es/components/ui-shell/header-name.d.ts.map +1 -1
  592. package/es/components/ui-shell/header-name.js +3 -8
  593. package/es/components/ui-shell/header-name.js.map +1 -1
  594. package/es/components/ui-shell/header-nav-item.d.ts +8 -0
  595. package/es/components/ui-shell/header-nav-item.d.ts.map +1 -1
  596. package/es/components/ui-shell/header-nav-item.js +32 -11
  597. package/es/components/ui-shell/header-nav-item.js.map +1 -1
  598. package/es/components/ui-shell/header-nav.d.ts.map +1 -1
  599. package/es/components/ui-shell/header-nav.js +2 -1
  600. package/es/components/ui-shell/header-nav.js.map +1 -1
  601. package/es/components/ui-shell/header.css.js +1 -1
  602. package/es/components/ui-shell/header.d.ts.map +1 -1
  603. package/es/components/ui-shell/header.js +1 -1
  604. package/es/components/ui-shell/header.js.map +1 -1
  605. package/es/components/ui-shell/header.rtl.css.js +1 -1
  606. package/es/components/ui-shell/index.d.ts +12 -11
  607. package/es/components/ui-shell/index.d.ts.map +1 -1
  608. package/es/components/ui-shell/index.js +12 -11
  609. package/es/components/ui-shell/index.js.map +1 -1
  610. package/es/components/ui-shell/side-nav-divider.d.ts.map +1 -1
  611. package/es/components/ui-shell/side-nav-divider.js +1 -1
  612. package/es/components/ui-shell/side-nav-divider.js.map +1 -1
  613. package/es/components/ui-shell/side-nav-items.d.ts.map +1 -1
  614. package/es/components/ui-shell/side-nav-items.js +1 -1
  615. package/es/components/ui-shell/side-nav-items.js.map +1 -1
  616. package/es/components/ui-shell/side-nav-link.d.ts +8 -0
  617. package/es/components/ui-shell/side-nav-link.d.ts.map +1 -1
  618. package/es/components/ui-shell/side-nav-link.js +33 -11
  619. package/es/components/ui-shell/side-nav-link.js.map +1 -1
  620. package/es/components/ui-shell/side-nav-menu-item.d.ts.map +1 -1
  621. package/es/components/ui-shell/side-nav-menu-item.js +3 -8
  622. package/es/components/ui-shell/side-nav-menu-item.js.map +1 -1
  623. package/es/components/ui-shell/side-nav-menu.d.ts.map +1 -1
  624. package/es/components/ui-shell/side-nav-menu.js +3 -13
  625. package/es/components/ui-shell/side-nav-menu.js.map +1 -1
  626. package/es/components/ui-shell/side-nav.css.js +1 -1
  627. package/es/components/ui-shell/side-nav.d.ts +5 -0
  628. package/es/components/ui-shell/side-nav.d.ts.map +1 -1
  629. package/es/components/ui-shell/side-nav.js +29 -6
  630. package/es/components/ui-shell/side-nav.js.map +1 -1
  631. package/es/components/ui-shell/side-nav.rtl.css.js +1 -1
  632. package/es/components/ui-shell/switcher-item.js.map +1 -1
  633. package/es/globals/decorators/carbon-element.d.ts +235 -0
  634. package/es/globals/decorators/carbon-element.d.ts.map +1 -0
  635. package/es/globals/decorators/carbon-element.js +429 -0
  636. package/es/globals/decorators/carbon-element.js.map +1 -0
  637. package/es/globals/decorators/host-listener.js.map +1 -1
  638. package/es/globals/directives/spread.d.ts +1 -1
  639. package/es/globals/directives/spread.d.ts.map +1 -1
  640. package/es/globals/directives/spread.js +1 -1
  641. package/es/globals/directives/spread.js.map +1 -1
  642. package/es/globals/internal/radio-group-manager.js +3 -4
  643. package/es/globals/internal/radio-group-manager.js.map +1 -1
  644. package/es/globals/internal/storybook-cdn.d.ts +1 -1
  645. package/es/globals/internal/storybook-cdn.d.ts.map +1 -1
  646. package/es/globals/internal/storybook-cdn.js +3 -3
  647. package/es/globals/internal/storybook-cdn.js.map +1 -1
  648. package/es/globals/mixins/focus.js.map +1 -1
  649. package/es/globals/mixins/form.js +6 -1
  650. package/es/globals/mixins/form.js.map +1 -1
  651. package/es/globals/mixins/host-listener.js.map +1 -1
  652. package/es/globals/mixins/temp-layout.css.js +12 -0
  653. package/es/globals/mixins/temp-layout.rtl.css.js +12 -0
  654. package/es/globals/mixins/validity.js +16 -0
  655. package/es/globals/mixins/validity.js.map +1 -1
  656. package/es/globals/wrappers/createReactCustomElementType.js +17 -0
  657. package/es/globals/wrappers/createReactCustomElementType.js.map +1 -1
  658. package/es/polyfills/toggle-class.js.map +1 -1
  659. package/lib/components/accordion/defs.js +1 -1
  660. package/lib/components/accordion/defs.js.map +1 -1
  661. package/lib/components/button/defs.js +1 -1
  662. package/lib/components/button/defs.js.map +1 -1
  663. package/lib/components/code-snippet/defs.js +1 -1
  664. package/lib/components/code-snippet/defs.js.map +1 -1
  665. package/lib/components/content-switcher/defs.js +1 -1
  666. package/lib/components/content-switcher/defs.js.map +1 -1
  667. package/lib/components/date-picker/defs.js +1 -1
  668. package/lib/components/date-picker/defs.js.map +1 -1
  669. package/lib/components/dropdown/defs.js +1 -1
  670. package/lib/components/dropdown/defs.js.map +1 -1
  671. package/lib/components/file-uploader/defs.js +1 -1
  672. package/lib/components/file-uploader/defs.js.map +1 -1
  673. package/lib/components/floating-menu/defs.js +1 -1
  674. package/lib/components/floating-menu/defs.js.map +1 -1
  675. package/lib/components/inline-loading/defs.js +1 -1
  676. package/lib/components/inline-loading/defs.js.map +1 -1
  677. package/lib/components/loading/defs.js +1 -1
  678. package/lib/components/loading/defs.js.map +1 -1
  679. package/lib/components/modal/defs.js +1 -1
  680. package/lib/components/modal/defs.js.map +1 -1
  681. package/lib/components/stack/defs.js.map +1 -1
  682. package/lib/globals/wrappers/createReactCustomElementType.js +16 -0
  683. package/lib/globals/wrappers/createReactCustomElementType.js.map +1 -1
  684. package/package.json +17 -16
  685. package/scss/components/accordion/accordion.scss +10 -5
  686. package/scss/components/breadcrumb/breadcrumb.scss +12 -0
  687. package/scss/components/button/button.scss +16 -2
  688. package/scss/components/code-snippet/code-snippet.scss +6 -8
  689. package/scss/components/combo-box/combo-box.scss +0 -10
  690. package/scss/components/content-switcher/content-switcher.scss +8 -21
  691. package/scss/components/copy-button/copy-button.scss +3 -3
  692. package/scss/components/data-table/_table-action.scss +4 -0
  693. package/scss/components/data-table/_table-core.scss +0 -2
  694. package/scss/components/data-table/data-table.scss +0 -1
  695. package/scss/components/date-picker/date-picker.scss +0 -3
  696. package/scss/components/dropdown/dropdown.scss +1 -2
  697. package/scss/components/file-uploader/file-uploader.scss +3 -5
  698. package/scss/components/icon-button/icon-button.scss +5 -0
  699. package/scss/components/inline-loading/inline-loading.scss +0 -3
  700. package/scss/components/modal/modal.scss +1 -4
  701. package/scss/components/multi-select/multi-select.scss +0 -3
  702. package/scss/components/notification/actionable-notification.scss +69 -24
  703. package/scss/components/notification/inline-notification.scss +76 -25
  704. package/scss/components/notification/toast-notification.scss +43 -27
  705. package/scss/components/number-input/number-input.scss +0 -3
  706. package/scss/components/overflow-menu/overflow-menu.scss +8 -3
  707. package/scss/components/pagination/pagination.scss +8 -3
  708. package/scss/components/popover/popover.scss +4 -2
  709. package/scss/components/progress-bar/progress-bar.scss +0 -5
  710. package/scss/components/progress-indicator/progress-indicator.scss +0 -3
  711. package/scss/components/radio-button/radio-button.scss +24 -1
  712. package/scss/components/search/search.scss +33 -3
  713. package/scss/components/select/select.scss +0 -3
  714. package/scss/components/slider/slider.scss +2 -3
  715. package/scss/components/structured-list/structured-list.scss +0 -5
  716. package/scss/components/tag/tag.scss +10 -5
  717. package/scss/components/text-input/text-input.scss +2 -2
  718. package/scss/components/textarea/textarea.scss +0 -3
  719. package/scss/components/tile/tile.scss +7 -8
  720. package/scss/components/tooltip/tooltip.scss +4 -4
  721. package/scss/components/ui-shell/header.scss +13 -3
  722. package/scss/components/ui-shell/side-nav.scss +0 -5
  723. package/scss/globals/mixins/temp-layout.scss +36 -0
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  *
4
- * Copyright IBM Corp. 2021, 2023
4
+ * Copyright IBM Corp. 2021, 2022, 2023
5
5
  *
6
6
  * This source code is licensed under the Apache-2.0 license found in the
7
7
  * LICENSE file in the root directory of this source tree.
@@ -1 +1 @@
1
- {"version":3,"sources":["components/data-table/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,SAAS,CAAC;AACjB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,4BAA4B,CAAC;AACpC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AACtB,OAAO,sBAAsB,CAAC;AAC9B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,cAAc,CAAC;AACtB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AACrB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,iBAAiB,CAAC;AACzB,OAAO,yBAAyB,CAAC;AACjC,OAAO,wBAAwB,CAAC","file":"index.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 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 './table';\nimport './table-skeleton';\nimport './table-header-title';\nimport './table-header-description';\nimport './table-batch-actions';\nimport './table-body';\nimport './table-cell';\nimport './table-cell-content';\nimport './table-expanded-row';\nimport './table-head';\nimport './table-header-cell';\nimport './table-header-row';\nimport './table-row';\nimport './table-skeleton';\nimport './table-toolbar';\nimport './table-toolbar-content';\nimport './table-toolbar-search';\n"]}
1
+ {"version":3,"sources":["components/data-table/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,SAAS,CAAC;AACjB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,4BAA4B,CAAC;AACpC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AACtB,OAAO,sBAAsB,CAAC;AAC9B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,cAAc,CAAC;AACtB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AACrB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,iBAAiB,CAAC;AACzB,OAAO,yBAAyB,CAAC;AACjC,OAAO,wBAAwB,CAAC","file":"index.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 2022, 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 './table';\nimport './table-skeleton';\nimport './table-header-title';\nimport './table-header-description';\nimport './table-batch-actions';\nimport './table-body';\nimport './table-cell';\nimport './table-cell-content';\nimport './table-expanded-row';\nimport './table-head';\nimport './table-header-cell';\nimport './table-header-row';\nimport './table-row';\nimport './table-skeleton';\nimport './table-toolbar';\nimport './table-toolbar-content';\nimport './table-toolbar-search';\n"]}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  *
4
- * Copyright IBM Corp. 2021, 2023
4
+ * Copyright IBM Corp. 2021, 2022, 2023
5
5
  *
6
6
  * This source code is licensed under the Apache-2.0 license found in the
7
7
  * LICENSE file in the root directory of this source tree.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["components/data-table/index.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 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 './table';\nimport './table-skeleton';\nimport './table-header-title';\nimport './table-header-description';\nimport './table-batch-actions';\nimport './table-body';\nimport './table-cell';\nimport './table-cell-content';\nimport './table-expanded-row';\nimport './table-head';\nimport './table-header-cell';\nimport './table-header-row';\nimport './table-row';\nimport './table-skeleton';\nimport './table-toolbar';\nimport './table-toolbar-content';\nimport './table-toolbar-search';\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,SAAS;AAChB,OAAO,kBAAkB;AACzB,OAAO,sBAAsB;AAC7B,OAAO,4BAA4B;AACnC,OAAO,uBAAuB;AAC9B,OAAO,cAAc;AACrB,OAAO,cAAc;AACrB,OAAO,sBAAsB;AAC7B,OAAO,sBAAsB;AAC7B,OAAO,cAAc;AACrB,OAAO,qBAAqB;AAC5B,OAAO,oBAAoB;AAC3B,OAAO,aAAa;AACpB,OAAO,kBAAkB;AACzB,OAAO,iBAAiB;AACxB,OAAO,yBAAyB;AAChC,OAAO,wBAAwB"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["components/data-table/index.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 2022, 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 './table';\nimport './table-skeleton';\nimport './table-header-title';\nimport './table-header-description';\nimport './table-batch-actions';\nimport './table-body';\nimport './table-cell';\nimport './table-cell-content';\nimport './table-expanded-row';\nimport './table-head';\nimport './table-header-cell';\nimport './table-header-row';\nimport './table-row';\nimport './table-skeleton';\nimport './table-toolbar';\nimport './table-toolbar-content';\nimport './table-toolbar-search';\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,SAAS;AAChB,OAAO,kBAAkB;AACzB,OAAO,sBAAsB;AAC7B,OAAO,4BAA4B;AACnC,OAAO,uBAAuB;AAC9B,OAAO,cAAc;AACrB,OAAO,cAAc;AACrB,OAAO,sBAAsB;AAC7B,OAAO,sBAAsB;AAC7B,OAAO,cAAc;AACrB,OAAO,qBAAqB;AAC5B,OAAO,oBAAoB;AAC3B,OAAO,aAAa;AACpB,OAAO,kBAAkB;AACzB,OAAO,iBAAiB;AACxB,OAAO,yBAAyB;AAChC,OAAO,wBAAwB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["components/data-table/table-batch-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC;;;;;GAKG;AACH,cACM,oBAAqB,SAAQ,UAAU;IAC3C;;OAEG;IACH,OAAO,CAAC,aAAa;IAQrB;;OAEG;IAEH,MAAM,UAAS;IAEf;;OAEG;IAEH,wBAAwB;;iBAC2B;IAEnD;;;OAGG;IAEH,iBAAiB,SAAK;IAEtB,YAAY;IAQZ,OAAO,CAAC,iBAAiB,KAAA;IAMzB,MAAM;IAuBN;;OAEG;IACH,MAAM,KAAK,eAAe,WAEzB;IAED;;OAEG;IACH,MAAM,KAAK,gBAAgB,WAE1B;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,oBAAoB,CAAC","file":"table-batch-actions.d.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, customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\n\n/**\n * Table batch actions.\n *\n * @element cds-table-batch-actions\n * @fires cds-table-batch-actions-cancel-clicked - The custom event fired after the Cancel button is clicked.\n */\n@customElement(`${prefix}-table-batch-actions`)\nclass CDSTableBatchActions extends LitElement {\n /**\n * Handles `click` event on the Cancel button.\n */\n private _handleCancel() {\n const { eventClickCancel } = this\n .constructor as typeof CDSTableBatchActions;\n this.dispatchEvent(\n new CustomEvent(eventClickCancel, { bubbles: true, composed: true })\n );\n }\n\n /**\n * `true` if this batch actions bar should be active.\n */\n @property({ type: Boolean, reflect: true })\n active = false;\n\n /**\n * The formatter for selected items. Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatSelectedItemsCount = ({ count }) =>\n `${count} item${count <= 1 ? '' : 's'} selected`;\n\n /**\n * Numeric representation of the total number of items selected in a table.\n * This number is used to derive the selection message.\n */\n @property({ type: Number, attribute: 'selected-rows-count' })\n selectedRowsCount = 0;\n\n firstUpdated() {\n this.querySelectorAll(\n (this.constructor as typeof CDSTableBatchActions).selectorButtons\n ).forEach((e) => {\n e.setAttribute('batch-action', '');\n });\n }\n\n updated(changedProperties) {\n if (changedProperties.has('active')) {\n this.setAttribute('tabindex', `${this.active ? '' : '-1'}`);\n }\n }\n\n render() {\n const {\n formatSelectedItemsCount,\n selectedRowsCount,\n _handleCancel: handleCancel,\n } = this;\n return html`\n <div class=\"${prefix}--batch-summary\">\n <p class=\"${prefix}--batch-summary__para\">\n ${formatSelectedItemsCount({ count: selectedRowsCount })}\n </p>\n </div>\n <div class=\"${prefix}--action-list\">\n <slot></slot>\n <button\n class=\"${prefix}--btn ${prefix}--btn--primary ${prefix}--batch-summary__cancel\"\n @click=${handleCancel}>\n <slot name=\"cancel-button-content\">Cancel</slot>\n </button>\n </div>\n `;\n }\n\n /**\n * The CSS selector to find the action buttons.\n */\n static get selectorButtons() {\n return `${prefix}-button`;\n }\n\n /**\n * The name of the custom event fired after the Cancel button is clicked.\n */\n static get eventClickCancel() {\n return `${prefix}-table-batch-actions-cancel-clicked`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableBatchActions;\n"]}
1
+ {"version":3,"sources":["components/data-table/table-batch-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC;;;;;GAKG;AACH,cACM,oBAAqB,SAAQ,UAAU;IAC3C;;OAEG;IACH,OAAO,CAAC,aAAa;IAQrB;;OAEG;IAEH,MAAM,UAAS;IAEf;;OAEG;IAEH,wBAAwB;;iBAC2B;IAEnD;;;OAGG;IAEH,iBAAiB,SAAK;IAEtB,YAAY;IAQZ,OAAO,CAAC,iBAAiB,KAAA;IAMzB,MAAM;IAuBN;;OAEG;IACH,MAAM,KAAK,eAAe,WAEzB;IAED;;OAEG;IACH,MAAM,KAAK,gBAAgB,WAE1B;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,oBAAoB,CAAC","file":"table-batch-actions.d.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 batch actions.\n *\n * @element cds-table-batch-actions\n * @fires cds-table-batch-actions-cancel-clicked - The custom event fired after the Cancel button is clicked.\n */\n@customElement(`${prefix}-table-batch-actions`)\nclass CDSTableBatchActions extends LitElement {\n /**\n * Handles `click` event on the Cancel button.\n */\n private _handleCancel() {\n const { eventClickCancel } = this\n .constructor as typeof CDSTableBatchActions;\n this.dispatchEvent(\n new CustomEvent(eventClickCancel, { bubbles: true, composed: true })\n );\n }\n\n /**\n * `true` if this batch actions bar should be active.\n */\n @property({ type: Boolean, reflect: true })\n active = false;\n\n /**\n * The formatter for selected items. Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatSelectedItemsCount = ({ count }) =>\n `${count} item${count <= 1 ? '' : 's'} selected`;\n\n /**\n * Numeric representation of the total number of items selected in a table.\n * This number is used to derive the selection message.\n */\n @property({ type: Number, attribute: 'selected-rows-count' })\n selectedRowsCount = 0;\n\n firstUpdated() {\n this.querySelectorAll(\n (this.constructor as typeof CDSTableBatchActions).selectorButtons\n ).forEach((e) => {\n e.setAttribute('batch-action', '');\n });\n }\n\n updated(changedProperties) {\n if (changedProperties.has('active')) {\n this.setAttribute('tabindex', `${this.active ? '' : '-1'}`);\n }\n }\n\n render() {\n const {\n formatSelectedItemsCount,\n selectedRowsCount,\n _handleCancel: handleCancel,\n } = this;\n return html`\n <div class=\"${prefix}--batch-summary\">\n <p class=\"${prefix}--batch-summary__para\">\n ${formatSelectedItemsCount({ count: selectedRowsCount })}\n </p>\n </div>\n <div class=\"${prefix}--action-list\">\n <slot></slot>\n <button\n class=\"${prefix}--btn ${prefix}--btn--primary ${prefix}--batch-summary__cancel\"\n @click=${handleCancel}>\n <slot name=\"cancel-button-content\">Cancel</slot>\n </button>\n </div>\n `;\n }\n\n /**\n * The CSS selector to find the action buttons.\n */\n static get selectorButtons() {\n return `${prefix}-button`;\n }\n\n /**\n * The name of the custom event fired after the Cancel button is clicked.\n */\n static get eventClickCancel() {\n return `${prefix}-table-batch-actions-cancel-clicked`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableBatchActions;\n"]}
@@ -11,21 +11,17 @@ let _ = t => t,
11
11
  */
12
12
 
13
13
  import { LitElement, html } from 'lit';
14
- import { property, customElement } from 'lit/decorators.js';
14
+ import { property } from 'lit/decorators.js';
15
15
  import { prefix } from '../../globals/settings';
16
16
  import styles from "././data-table.css.js";
17
+ import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
17
18
 
18
19
  /**
19
20
  * Table batch actions.
20
21
  *
21
22
  * @element cds-table-batch-actions
22
23
  * @fires cds-table-batch-actions-cancel-clicked - The custom event fired after the Cancel button is clicked.
23
- */ /**
24
- * Table batch actions.
25
- *
26
- * @element cds-table-batch-actions
27
- * @fires cds-table-batch-actions-cancel-clicked - The custom event fired after the Cancel button is clicked.
28
- */
24
+ */
29
25
  let CDSTableBatchActions = _decorate([customElement(`${prefix}-table-batch-actions`)], function (_initialize, _LitElement) {
30
26
  class CDSTableBatchActions extends _LitElement {
31
27
  constructor(...args) {
@@ -1 +1 @@
1
- {"version":3,"file":"table-batch-actions.js","names":["LitElement","html","property","customElement","prefix","styles","CDSTableBatchActions","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","key","value","_handleCancel","eventClickCancel","dispatchEvent","CustomEvent","bubbles","composed","decorators","type","Boolean","reflect","attribute","count","Number","firstUpdated","querySelectorAll","selectorButtons","forEach","e","setAttribute","updated","changedProperties","has","active","render","formatSelectedItemsCount","selectedRowsCount","handleCancel","_t","_","static"],"sources":["components/data-table/table-batch-actions.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, customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\n\n/**\n * Table batch actions.\n *\n * @element cds-table-batch-actions\n * @fires cds-table-batch-actions-cancel-clicked - The custom event fired after the Cancel button is clicked.\n */\n@customElement(`${prefix}-table-batch-actions`)\nclass CDSTableBatchActions extends LitElement {\n /**\n * Handles `click` event on the Cancel button.\n */\n private _handleCancel() {\n const { eventClickCancel } = this\n .constructor as typeof CDSTableBatchActions;\n this.dispatchEvent(\n new CustomEvent(eventClickCancel, { bubbles: true, composed: true })\n );\n }\n\n /**\n * `true` if this batch actions bar should be active.\n */\n @property({ type: Boolean, reflect: true })\n active = false;\n\n /**\n * The formatter for selected items. Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatSelectedItemsCount = ({ count }) =>\n `${count} item${count <= 1 ? '' : 's'} selected`;\n\n /**\n * Numeric representation of the total number of items selected in a table.\n * This number is used to derive the selection message.\n */\n @property({ type: Number, attribute: 'selected-rows-count' })\n selectedRowsCount = 0;\n\n firstUpdated() {\n this.querySelectorAll(\n (this.constructor as typeof CDSTableBatchActions).selectorButtons\n ).forEach((e) => {\n e.setAttribute('batch-action', '');\n });\n }\n\n updated(changedProperties) {\n if (changedProperties.has('active')) {\n this.setAttribute('tabindex', `${this.active ? '' : '-1'}`);\n }\n }\n\n render() {\n const {\n formatSelectedItemsCount,\n selectedRowsCount,\n _handleCancel: handleCancel,\n } = this;\n return html`\n <div class=\"${prefix}--batch-summary\">\n <p class=\"${prefix}--batch-summary__para\">\n ${formatSelectedItemsCount({ count: selectedRowsCount })}\n </p>\n </div>\n <div class=\"${prefix}--action-list\">\n <slot></slot>\n <button\n class=\"${prefix}--btn ${prefix}--btn--primary ${prefix}--batch-summary__cancel\"\n @click=${handleCancel}>\n <slot name=\"cancel-button-content\">Cancel</slot>\n </button>\n </div>\n `;\n }\n\n /**\n * The CSS selector to find the action buttons.\n */\n static get selectorButtons() {\n return `${prefix}-button`;\n }\n\n /**\n * The name of the custom event fired after the Cancel button is clicked.\n */\n static get eventClickCancel() {\n return `${prefix}-table-batch-actions-cancel-clicked`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableBatchActions;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,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;AACA,GALA;AACA;AACA;AACA;AACA;AACA;AALA,IAOMC,oBAAoB,GAAAC,SAAA,EADzBJ,aAAa,CAAE,GAAEC,MAAO,sBAAqB,CAAC,aAAAI,WAAA,EAAAC,WAAA;EAA/C,MACMH,oBAAoB,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAoF9C;EAAC;IAAAI,CAAA,EApFKN,oBAAoB;IAAAO,CAAA;MAAAC,IAAA;MAAAC,GAAA;MAAAC,KAAA;MACxB;AACF;AACA;MACE,SAAAC,cAAA,EAAwB;QACtB,MAAM;UAAEC;QAAiB,CAAC,GAAG,IAAI,CAC9BR,WAA0C;QAC7C,IAAI,C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AAG,IAAK,EAAC,CAAC;QAC7D;MACF;IAAC;MAAAzB,IAAA;MAAAC,GAAA;MAAAC,KAAA,EAED,SAAAwB,OAAA,EAAS;QACP,MAAM;UACJC,wBAAwB;UACxBC,iBAAiB;UACjBzB,aAAa,EAAE0B;QACjB,CAAC,GAAG,IAAI;QACR,OAAO1C,IAAI,CAAA2C,EAAA,KAAAA,EAAA,GAAAC,CAAC;AAChB,oBAAkB,CAAS;AAC3B,oBAAkB,CAAS;AAC3B,YAAU,CAAyD;AACnE;AACA;AACA,oBAAkB,CAAS;AAC3B;AACA;AACA,mBAAiB,CAAS,SAAM,CAAS,kBAAe,CAAS;AACjE,mBAAiB,CAAe;AAChC;AACA;AACA;AACA,KAAI,GAbgBzC,MAAM,EACNA,MAAM,EACdqC,wBAAwB,CAAC;UAAEb,KAAK,EAAEc;QAAkB,CAAC,CAAC,EAG9CtC,MAAM,EAGPA,MAAM,EAASA,MAAM,EAAkBA,MAAM,EAC7CuC,YAAY;MAK7B;;MAEA;AACF;AACA;IAFE;MAAA7B,IAAA;MAAAgC,MAAA;MAAA/B,GAAA;MAAAC,KAAA,EAGA,SAAAgB,gBAAA,EAA6B;QAC3B,OAAQ,GAAE5B,MAAO,SAAQ;MAC3B;;MAEA;AACF;AACA;IAFE;MAAAU,IAAA;MAAAgC,MAAA;MAAA/B,GAAA;MAAAC,KAAA,EAGA,SAAAE,iBAAA,EAA8B;QAC5B,OAAQ,GAAEd,MAAO,qCAAoC;MACvD;IAAC;MAAAU,IAAA;MAAAgC,MAAA;MAAA/B,GAAA;MAAAC,MAAA;QAAA,OAEeX,MAAM;MAAA;IAAA;EAAA;AAAA,GAnFWL,UAAU;AAsF7C,eAAeM,oBAAoB"}
1
+ {"version":3,"file":"table-batch-actions.js","names":["LitElement","html","property","prefix","styles","carbonElement","customElement","CDSTableBatchActions","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","key","value","_handleCancel","eventClickCancel","dispatchEvent","CustomEvent","bubbles","composed","decorators","type","Boolean","reflect","attribute","count","Number","firstUpdated","querySelectorAll","selectorButtons","forEach","e","setAttribute","updated","changedProperties","has","active","render","formatSelectedItemsCount","selectedRowsCount","handleCancel","_t","_","static"],"sources":["components/data-table/table-batch-actions.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 batch actions.\n *\n * @element cds-table-batch-actions\n * @fires cds-table-batch-actions-cancel-clicked - The custom event fired after the Cancel button is clicked.\n */\n@customElement(`${prefix}-table-batch-actions`)\nclass CDSTableBatchActions extends LitElement {\n /**\n * Handles `click` event on the Cancel button.\n */\n private _handleCancel() {\n const { eventClickCancel } = this\n .constructor as typeof CDSTableBatchActions;\n this.dispatchEvent(\n new CustomEvent(eventClickCancel, { bubbles: true, composed: true })\n );\n }\n\n /**\n * `true` if this batch actions bar should be active.\n */\n @property({ type: Boolean, reflect: true })\n active = false;\n\n /**\n * The formatter for selected items. Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatSelectedItemsCount = ({ count }) =>\n `${count} item${count <= 1 ? '' : 's'} selected`;\n\n /**\n * Numeric representation of the total number of items selected in a table.\n * This number is used to derive the selection message.\n */\n @property({ type: Number, attribute: 'selected-rows-count' })\n selectedRowsCount = 0;\n\n firstUpdated() {\n this.querySelectorAll(\n (this.constructor as typeof CDSTableBatchActions).selectorButtons\n ).forEach((e) => {\n e.setAttribute('batch-action', '');\n });\n }\n\n updated(changedProperties) {\n if (changedProperties.has('active')) {\n this.setAttribute('tabindex', `${this.active ? '' : '-1'}`);\n }\n }\n\n render() {\n const {\n formatSelectedItemsCount,\n selectedRowsCount,\n _handleCancel: handleCancel,\n } = this;\n return html`\n <div class=\"${prefix}--batch-summary\">\n <p class=\"${prefix}--batch-summary__para\">\n ${formatSelectedItemsCount({ count: selectedRowsCount })}\n </p>\n </div>\n <div class=\"${prefix}--action-list\">\n <slot></slot>\n <button\n class=\"${prefix}--btn ${prefix}--btn--primary ${prefix}--batch-summary__cancel\"\n @click=${handleCancel}>\n <slot name=\"cancel-button-content\">Cancel</slot>\n </button>\n </div>\n `;\n }\n\n /**\n * The CSS selector to find the action buttons.\n */\n static get selectorButtons() {\n return `${prefix}-button`;\n }\n\n /**\n * The name of the custom event fired after the Cancel button is clicked.\n */\n static get eventClickCancel() {\n return `${prefix}-table-batch-actions-cancel-clicked`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableBatchActions;\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;AACA;AALA,IAOMC,oBAAoB,GAAAC,SAAA,EADzBF,aAAa,CAAE,GAAEH,MAAO,sBAAqB,CAAC,aAAAM,WAAA,EAAAC,WAAA;EAA/C,MACMH,oBAAoB,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAoF9C;EAAC;IAAAI,CAAA,EApFKN,oBAAoB;IAAAO,CAAA;MAAAC,IAAA;MAAAC,GAAA;MAAAC,KAAA;MACxB;AACF;AACA;MACE,SAAAC,cAAA,EAAwB;QACtB,MAAM;UAAEC;QAAiB,CAAC,GAAG,IAAI,CAC9BR,WAA0C;QAC7C,IAAI,CAACS,aAAa,CAChB,IAAIC,WAAW,CAACF,gBAAgB,EAAE;UAAEG,OAAO,EAAE,IAA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AAO,CAAC,YAAY;IAWpB;;OAEG;IACH,OAAO,CAAC,iBAAiB,CAEvB;IAEF;;;;OAIG;IAIH;;OAEG;IAEH,cAAc,UAAS;IAEvB,iBAAiB;IAOjB,OAAO,CAAC,iBAAiB,KAAA;IAMzB,MAAM;IAKN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,YAAY,CAAC","file":"table-body.d.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, customElement, query } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport CDSTableRow from './table-row';\nimport styles from './data-table.scss';\n\n/**\n * Data table body.\n *\n * @element cds-table-body\n */\n@customElement(`${prefix}-table-body`)\nclass CDSTableBody extends LitElement {\n /**\n * The `<slot>` element in the shadow DOM.\n */\n @query('slot')\n private _slotNode!: HTMLSlotElement;\n\n /**\n * Updates `even`/`odd` properties of the child `<cds-table-row>`s.\n */\n private _updateZebra() {\n const { useZebraStyles, _slotNode: slotNode } = this;\n slotNode.assignedNodes().forEach((node) => {\n if (node.nodeType === Node.ELEMENT_NODE) {\n const even = (node as HTMLElement).matches('*:nth-of-type(even)');\n (node as CDSTableRow).even = useZebraStyles && even;\n (node as CDSTableRow).odd = useZebraStyles && !even;\n }\n });\n }\n\n /**\n * Handles `slotchange` event in the `<slot>` element in the shadow DOM.\n */\n private _handleSlotChange = () => {\n this._updateZebra();\n };\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 /**\n * The color scheme.\n */\n @property({ type: Boolean, reflect: true, attribute: 'use-zebra-styles' })\n useZebraStyles = false;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'rowgroup');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (changedProperties.has('useZebraStyles')) {\n this._updateZebra();\n }\n }\n\n render() {\n const { _handleSlotChange: handleSlotChange } = this;\n return html` <slot @slotchange=\"${handleSlotChange}\"></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableBody;\n"]}
1
+ {"version":3,"sources":["components/data-table/table-body.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAOvC;;;;GAIG;AACH,cACM,YAAa,SAAQ,UAAU;IACnC;;OAEG;IAEH,OAAO,CAAC,SAAS,CAAmB;IAEpC;;OAEG;IACH,OAAO,CAAC,YAAY;IAWpB;;OAEG;IACH,OAAO,CAAC,iBAAiB,CAEvB;IAEF;;;;OAIG;IAIH;;OAEG;IAEH,cAAc,UAAS;IAEvB,iBAAiB;IAOjB,OAAO,CAAC,iBAAiB,KAAA;IAMzB,MAAM;IAKN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,YAAY,CAAC","file":"table-body.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport CDSTableRow from './table-row';\nimport styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Data table body.\n *\n * @element cds-table-body\n */\n@customElement(`${prefix}-table-body`)\nclass CDSTableBody extends LitElement {\n /**\n * The `<slot>` element in the shadow DOM.\n */\n @query('slot')\n private _slotNode!: HTMLSlotElement;\n\n /**\n * Updates `even`/`odd` properties of the child `<cds-table-row>`s.\n */\n private _updateZebra() {\n const { useZebraStyles, _slotNode: slotNode } = this;\n slotNode.assignedNodes().forEach((node) => {\n if (node.nodeType === Node.ELEMENT_NODE) {\n const even = (node as HTMLElement).matches('*:nth-of-type(even)');\n (node as CDSTableRow).even = useZebraStyles && even;\n (node as CDSTableRow).odd = useZebraStyles && !even;\n }\n });\n }\n\n /**\n * Handles `slotchange` event in the `<slot>` element in the shadow DOM.\n */\n private _handleSlotChange = () => {\n this._updateZebra();\n };\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 /**\n * The color scheme.\n */\n @property({ type: Boolean, reflect: true, attribute: 'use-zebra-styles' })\n useZebraStyles = false;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'rowgroup');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (changedProperties.has('useZebraStyles')) {\n this._updateZebra();\n }\n }\n\n render() {\n const { _handleSlotChange: handleSlotChange } = this;\n return html` <slot @slotchange=\"${handleSlotChange}\"></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableBody;\n"]}
@@ -13,19 +13,16 @@ let _ = t => t,
13
13
  */
14
14
 
15
15
  import { LitElement, html } from 'lit';
16
- import { property, customElement, query } from 'lit/decorators.js';
16
+ import { property, query } from 'lit/decorators.js';
17
17
  import { prefix } from '../../globals/settings';
18
18
  import styles from "././data-table.css.js";
19
+ import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
19
20
 
20
21
  /**
21
22
  * Data table body.
22
23
  *
23
24
  * @element cds-table-body
24
- */ /**
25
- * Data table body.
26
- *
27
- * @element cds-table-body
28
- */
25
+ */
29
26
  let CDSTableBody = _decorate([customElement(`${prefix}-table-body`)], function (_initialize, _LitElement) {
30
27
  class CDSTableBody extends _LitElement {
31
28
  constructor(...args) {
@@ -1 +1 @@
1
- {"version":3,"file":"table-body.js","names":["LitElement","html","property","customElement","query","prefix","styles","CDSTableBody","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","decorators","key","value","_updateZebra","useZebraStyles","_slotNode","slotNode","assignedNodes","forEach","node","nodeType","Node","ELEMENT_NODE","even","matches","odd","type","Boolean","reflect","attribute","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","updated","changedProperties","has","render","_handleSlotChange","handleSlotChange","_t","_","static"],"sources":["components/data-table/table-body.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { property, customElement, query } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport CDSTableRow from './table-row';\nimport styles from './data-table.scss';\n\n/**\n * Data table body.\n *\n * @element cds-table-body\n */\n@customElement(`${prefix}-table-body`)\nclass CDSTableBody extends LitElement {\n /**\n * The `<slot>` element in the shadow DOM.\n */\n @query('slot')\n private _slotNode!: HTMLSlotElement;\n\n /**\n * Updates `even`/`odd` properties of the child `<cds-table-row>`s.\n */\n private _updateZebra() {\n const { useZebraStyles, _slotNode: slotNode } = this;\n slotNode.assignedNodes().forEach((node) => {\n if (node.nodeType === Node.ELEMENT_NODE) {\n const even = (node as HTMLElement).matches('*:nth-of-type(even)');\n (node as CDSTableRow).even = useZebraStyles && even;\n (node as CDSTableRow).odd = useZebraStyles && !even;\n }\n });\n }\n\n /**\n * Handles `slotchange` event in the `<slot>` element in the shadow DOM.\n */\n private _handleSlotChange = () => {\n this._updateZebra();\n };\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 /**\n * The color scheme.\n */\n @property({ type: Boolean, reflect: true, attribute: 'use-zebra-styles' })\n useZebraStyles = false;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'rowgroup');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (changedProperties.has('useZebraStyles')) {\n this._updateZebra();\n }\n }\n\n render() {\n const { _handleSlotChange: handleSlotChange } = this;\n return html` <slot @slotchange=\"${handleSlotChange}\"></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableBody;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,QAAQ,EAAEC,aAAa,EAAEC,KAAK,QAAQ,mBAAmB;AAClE,SAASC,MAAM,QAAQ,wBAAwB;AAE/C,OAAOC,MAAM,MAAM,uBAAmB;;AAEtC;AACA;AACA;AACA;AACA,GAJA;AACA;AACA;AACA;AACA;AAJA,IAMMC,YAAY,GAAAC,SAAA,EADjBL,aAAa,CAAE,GAAEE,MAAO,aAAY,CAAC,aAAAI,WAAA,EAAAC,WAAA;EAAtC,MACMH,YAAY,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EA6DtC;EAAC;IAAAI,CAAA,EA7DKN,YAAY;IAAAO,CAAA;MAAAC,IAAA;MAAAC,UAAA,GAIfZ,KAAK,CAAC,MAAM,CAAC;MAAAa,GAAA;MAAAC,KAAA;IAAA;MAAAH,IAAA;MAAAE,GAAA;MAAAC,KAAA;MAHd;AACF;AACA;;MAIE;AACF;AACA;MACE,SAAAC,aAAA,EAAuB;QACrB,MAAM;UAAEC,cAAc;UAAEC,SAAS,EAAEC;QAAS,CAAC,GAAG,IAAI;QACpDA,QAAQ,CAACC,aAAa,EAAE,CAACC,OAAO,CAAEC,IAAI,IAAK;UACzC,IAAIA,IAAI,CAACC,QAAQ,KAAKC,IAAI,CAACC,YAAY,EAAE;YACvC,MAAMC,IAAI,GAAIJ,IAAI,CAAiBK,OAAO,CAAC,qBAAqB,CAAC;YAChEL,IAAI,CAAiBI,IAAI,GAAGT,cAAc,IAAIS,IAAI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AA,OAEeZ,MAAM;MAAA;IAAA;EAAA;AAAA,GA5DGN,UAAU;AA+DrC,eAAeO,YAAY"}
1
+ {"version":3,"file":"table-body.js","names":["LitElement","html","property","query","prefix","styles","carbonElement","customElement","CDSTableBody","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","decorators","key","value","_updateZebra","useZebraStyles","_slotNode","slotNode","assignedNodes","forEach","node","nodeType","Node","ELEMENT_NODE","even","matches","odd","type","Boolean","reflect","attribute","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","updated","changedProperties","has","render","_handleSlotChange","handleSlotChange","_t","_","static"],"sources":["components/data-table/table-body.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport CDSTableRow from './table-row';\nimport styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Data table body.\n *\n * @element cds-table-body\n */\n@customElement(`${prefix}-table-body`)\nclass CDSTableBody extends LitElement {\n /**\n * The `<slot>` element in the shadow DOM.\n */\n @query('slot')\n private _slotNode!: HTMLSlotElement;\n\n /**\n * Updates `even`/`odd` properties of the child `<cds-table-row>`s.\n */\n private _updateZebra() {\n const { useZebraStyles, _slotNode: slotNode } = this;\n slotNode.assignedNodes().forEach((node) => {\n if (node.nodeType === Node.ELEMENT_NODE) {\n const even = (node as HTMLElement).matches('*:nth-of-type(even)');\n (node as CDSTableRow).even = useZebraStyles && even;\n (node as CDSTableRow).odd = useZebraStyles && !even;\n }\n });\n }\n\n /**\n * Handles `slotchange` event in the `<slot>` element in the shadow DOM.\n */\n private _handleSlotChange = () => {\n this._updateZebra();\n };\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 /**\n * The color scheme.\n */\n @property({ type: Boolean, reflect: true, attribute: 'use-zebra-styles' })\n useZebraStyles = false;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'rowgroup');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (changedProperties.has('useZebraStyles')) {\n this._updateZebra();\n }\n }\n\n render() {\n const { _handleSlotChange: handleSlotChange } = this;\n return html` <slot @slotchange=\"${handleSlotChange}\"></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableBody;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,QAAQ,EAAEC,KAAK,QAAQ,mBAAmB;AACnD,SAASC,MAAM,QAAQ,wBAAwB;AAE/C,OAAOC,MAAM,MAAM,uBAAmB;AACtC,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;;AAExF;AACA;AACA;AACA;AACA;AAJA,IAMMC,YAAY,GAAAC,SAAA,EADjBF,aAAa,CAAE,GAAEH,MAAO,aAAY,CAAC,aAAAM,WAAA,EAAAC,WAAA;EAAtC,MACMH,YAAY,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EA6DtC;EAAC;IAAAI,CAAA,EA7DKN,YAAY;IAAAO,CAAA;MAAAC,IAAA;MAAAC,UAAA,GAIfd,KAAK,CAAC,MAAM,CAAC;MAAAe,GAAA;MAAAC,KAAA;IAAA;MAAAH,IAAA;MAAAE,GAAA;MAAAC,KAAA;MAHd;AACF;AACA;;MAIE;AACF;AACA;MACE,SAAAC,aAAA,EAAuB;QACrB,MAAM;UAAEC,cAAc;UAAEC,SAAS,EAAEC;QAAS,CAAC,GAAG,IAAI;QACpDA,QAAQ,CAACC,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A4B,OAAA,EAAS;QACP,MAAM;UAAEC,iBAAiB,EAAEC;QAAiB,CAAC,GAAG,IAAI;QACpD,OAAOhD,IAAI,CAAAiD,EAAA,KAAAA,EAAA,GAAAC,CAAC,uBAAoB,CAAmB,YAAU,GAA3BF,gBAAgB;MACpD;IAAC;MAAAjC,IAAA;MAAAoC,MAAA;MAAAlC,GAAA;MAAAC,MAAA;QAAA,OAEed,MAAM;MAAA;IAAA;EAAA;AAAA,GA5DGL,UAAU;AA+DrC,eAAeQ,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"sources":["components/data-table/table-cell.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC;;;;GAIG;AACH,cACM,YAAa,SAAQ,UAAU;IACnC;;OAEG;IAMH,mBAAmB,UAAS;IAE5B;;OAEG;IAEH,IAAI,MAAC;IAEL;;;;OAIG;IAIH,iBAAiB;IAOjB,MAAM;IAIN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,YAAY,CAAC","file":"table-cell.d.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 { customElement, property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\n\n/**\n * Data table cell.\n *\n * @element cds-table-cell\n */\n@customElement(`${prefix}-table-cell`)\nclass CDSTableCell extends LitElement {\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 * The table size.\n */\n @property({ reflect: true })\n size;\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', 'cell');\n }\n super.connectedCallback();\n }\n\n render() {\n return html`<slot></slot>`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableCell;\n"]}
1
+ {"version":3,"sources":["components/data-table/table-cell.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC;;;;GAIG;AACH,cACM,YAAa,SAAQ,UAAU;IACnC;;OAEG;IAMH,mBAAmB,UAAS;IAE5B;;OAEG;IAEH,IAAI,MAAC;IAEL;;;;OAIG;IAIH,iBAAiB;IAOjB,MAAM;IAIN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,YAAY,CAAC","file":"table-cell.d.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 * Data table cell.\n *\n * @element cds-table-cell\n */\n@customElement(`${prefix}-table-cell`)\nclass CDSTableCell extends LitElement {\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 * The table size.\n */\n @property({ reflect: true })\n size;\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', 'cell');\n }\n super.connectedCallback();\n }\n\n render() {\n return html`<slot></slot>`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableCell;\n"]}
@@ -13,19 +13,16 @@ let _ = t => t,
13
13
  */
14
14
 
15
15
  import { LitElement, html } from 'lit';
16
- import { customElement, property } from 'lit/decorators.js';
16
+ import { property } from 'lit/decorators.js';
17
17
  import { prefix } from '../../globals/settings';
18
18
  import styles from "././data-table.css.js";
19
+ import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
19
20
 
20
21
  /**
21
22
  * Data table cell.
22
23
  *
23
24
  * @element cds-table-cell
24
- */ /**
25
- * Data table cell.
26
- *
27
- * @element cds-table-cell
28
- */
25
+ */
29
26
  let CDSTableCell = _decorate([customElement(`${prefix}-table-cell`)], function (_initialize, _LitElement) {
30
27
  class CDSTableCell extends _LitElement {
31
28
  constructor(...args) {
@@ -72,7 +69,6 @@ let CDSTableCell = _decorate([customElement(`${prefix}-table-cell`)], function (
72
69
  */
73
70
  // @property({ type: Boolean, reflect: true, attribute: 'sticky-header' })
74
71
  // stickyHeader = false;
75
-
76
72
  function connectedCallback() {
77
73
  if (!this.hasAttribute('role')) {
78
74
  this.setAttribute('role', 'cell');
@@ -1 +1 @@
1
- {"version":3,"file":"table-cell.js","names":["LitElement","html","customElement","property","prefix","styles","CDSTableCell","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","decorators","type","Boolean","reflect","attribute","key","value","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","render","_t","_","static"],"sources":["components/data-table/table-cell.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 { customElement, property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\n\n/**\n * Data table cell.\n *\n * @element cds-table-cell\n */\n@customElement(`${prefix}-table-cell`)\nclass CDSTableCell extends LitElement {\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 * The table size.\n */\n @property({ reflect: true })\n size;\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', 'cell');\n }\n super.connectedCallback();\n }\n\n render() {\n return html`<slot></slot>`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableCell;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,aAAa,EAAEC,QAAQ,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,YAAY,GAAAC,SAAA,EADjBL,aAAa,CAAE,GAAEE,MAAO,aAAY,CAAC,aAAAI,WAAA,EAAAC,WAAA;EAAtC,MACMH,YAAY,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAqCtC;EAAC;IAAAI,CAAA,EArCKN,YAAY;IAAAO,CAAA;MAAAC,IAAA;MAAAC,UAAA,GAIfZ,QAAQ,CAAC;QACRa,IAAI,EAAEC,OAAO;QACbC,OAAO,EAAE,IAAI;QACbC,SAAS,EAAE;MACb,CAAC,CAAC;MAAAC,GAAA;MAAAC,MAAA;QAAA,OACoB,KAAK;MAAA;IAAA;MAAAP,IAAA;MAAAC,UAAA,GAK1BZ,QAAQ,CAAC;QAAEe,OAAO,EAAE;MAAK,CAAC,CAAC;MAAAE,GAAA;MAAAC,KAAA;IAAA;MAAAP,IAAA;MAAAM,GAAA;MAAAC,KAAA;MAb5B;AACF;AACA;;MAQE;AACF;AACA;;MAIE;AACF;AACA;AACA;AACA;MACE;MACA;;MAEA,SAAAC,kBAAA,EAAoB;QAClB,IAAI,CAAC,IAAI,CAACC,YAAY,CAAC,MAAM,CAAC,EAAE;UAC9B,IAAI,CAACC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC;QACnC;QACAC,IAAA,CAAAC,eAAA,CA7BEpB,YAAY,CAAAqB,SAAA,8BAAAC,IAAA;MA8BhB;IAAC;MAAAd,IAAA;MAAAM,GAAA;MAAAC,KAAA,EAED,SAAAQ,OAAA,EAAS;QACP,OAAO5B,IAAI,CAAA6B,EAAA,KAAAA,EAAA,GAAAC,CAAC,eAAa;MAC3B;IAAC;MAAAjB,IAAA;MAAAkB,MAAA;MAAAZ,GAAA;MAAAC,MAAA;QAAA,OAEehB,MAAM;MAAA;IAAA;EAAA;AAAA,GApCGL,UAAU;AAuCrC,eAAeM,YAAY"}
1
+ {"version":3,"file":"table-cell.js","names":["LitElement","html","property","prefix","styles","carbonElement","customElement","CDSTableCell","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","decorators","type","Boolean","reflect","attribute","key","value","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","render","_t","_","static"],"sources":["components/data-table/table-cell.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 * Data table cell.\n *\n * @element cds-table-cell\n */\n@customElement(`${prefix}-table-cell`)\nclass CDSTableCell extends LitElement {\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 * The table size.\n */\n @property({ reflect: true })\n size;\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', 'cell');\n }\n super.connectedCallback();\n }\n\n render() {\n return html`<slot></slot>`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableCell;\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,YAAY,GAAAC,SAAA,EADjBF,aAAa,CAAE,GAAEH,MAAO,aAAY,CAAC,aAAAM,WAAA,EAAAC,WAAA;EAAtC,MACMH,YAAY,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAqCtC;EAAC;IAAAI,CAAA,EArCKN,YAAY;IAAAO,CAAA;MAAAC,IAAA;MAAAC,UAAA,GAIfd,QAAQ,CAAC;QACRe,IAAI,EAAEC,OAAO;QACbC,OAAO,EAAE,IAAI;QACbC,SAAS,EAAE;MACb,CAAC,CAAC;MAAAC,GAAA;MAAAC,MAAA;QAAA,OACoB,KAAK;MAAA;IAAA;MAAAP,IAAA;MAAAC,UAAA,GAK1Bd,QAAQ,CAAC;QAAEiB,OAAO,EAAE;MAAK,CAAC,CAAC;MAAAE,GAAA;MAAAC,K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AAC,mBAAmB;IAS3B;;OAEG;IAEH,OAAO,SAAK;IAEZ;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,WAAW,UAAS;IAEpB;;OAEG;IAEH,QAAQ,UAAS;IAEjB,MAAM;IAWN;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,mBAAmB,CAAC","file":"table-expanded-row.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\n\nimport HostListener from '../../globals/decorators/host-listener';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport CDSTableRow from './table-row';\n/**\n * Table row of collapsible details.\n *\n * @element cds-table-expanded-row\n */\n@customElement(`${prefix}-table-expanded-row`)\nclass CDSTableExpandedRow extends HostListenerMixin(LitElement) {\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 { selectorRow } = this.constructor as typeof CDSTableExpandedRow;\n const { previousElementSibling } = this;\n if (previousElementSibling?.matches(selectorRow)) {\n (previousElementSibling as CDSTableRow).highlighted =\n event.type === 'mouseover';\n }\n }\n\n /**\n * The colspan.\n */\n @property({ type: Number, attribute: 'colspan' })\n colSpan = 1;\n\n /**\n * `true` if the table row should be expanded.\n */\n @property({ type: Boolean, reflect: true })\n expanded = false;\n\n /**\n * `true` if the table row should be filtered.\n */\n @property({ type: Boolean, reflect: true })\n filtered = 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 the previous table row has been selected\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n render() {\n const { colSpan } = this;\n return html`\n <td colspan=\"${colSpan}\">\n <div class=\"${prefix}--child-row-inner-container\">\n <slot></slot>\n </div>\n </td>\n `;\n }\n\n /**\n * A selector that will return the previous sibling row.\n */\n static get selectorRow() {\n return `${prefix}-table-row`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default CDSTableExpandedRow;\n"]}
1
+ {"version":3,"sources":["components/data-table/table-expanded-row.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASvC;;;;GAIG;AACH,cACM,mBAAoB,SAAQ,wBAA6B;IAC7D;;;;OAIG;IAIH,OAAO,CAAC,mBAAmB;IAS3B;;OAEG;IAEH,OAAO,SAAK;IAEZ;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,WAAW,UAAS;IAEpB;;OAEG;IAEH,QAAQ,UAAS;IAEjB,MAAM;IAWN;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,mBAAmB,CAAC","file":"table-expanded-row.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { 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\nimport HostListener from '../../globals/decorators/host-listener';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport CDSTableRow from './table-row';\n/**\n * Table row of collapsible details.\n *\n * @element cds-table-expanded-row\n */\n@customElement(`${prefix}-table-expanded-row`)\nclass CDSTableExpandedRow extends HostListenerMixin(LitElement) {\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 { selectorRow } = this.constructor as typeof CDSTableExpandedRow;\n const { previousElementSibling } = this;\n if (previousElementSibling?.matches(selectorRow)) {\n (previousElementSibling as CDSTableRow).highlighted =\n event.type === 'mouseover';\n }\n }\n\n /**\n * The colspan.\n */\n @property({ type: Number, attribute: 'colspan' })\n colSpan = 1;\n\n /**\n * `true` if the table row should be expanded.\n */\n @property({ type: Boolean, reflect: true })\n expanded = false;\n\n /**\n * `true` if the table row should be filtered.\n */\n @property({ type: Boolean, reflect: true })\n filtered = 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 the previous table row has been selected\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n render() {\n const { colSpan } = this;\n return html`\n <td colspan=\"${colSpan}\">\n <div class=\"${prefix}--child-row-inner-container\">\n <slot></slot>\n </div>\n </td>\n `;\n }\n\n /**\n * A selector that will return the previous sibling row.\n */\n static get selectorRow() {\n return `${prefix}-table-row`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default CDSTableExpandedRow;\n"]}
@@ -11,9 +11,10 @@ let _ = t => t,
11
11
  */
12
12
 
13
13
  import { LitElement, html } from 'lit';
14
- import { property, customElement } from 'lit/decorators.js';
14
+ import { property } from 'lit/decorators.js';
15
15
  import { prefix } from '../../globals/settings';
16
16
  import styles from "././data-table.css.js";
17
+ import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
17
18
  import HostListener from '../../globals/decorators/host-listener';
18
19
  import HostListenerMixin from '../../globals/mixins/host-listener';
19
20
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"table-expanded-row.js","names":["LitElement","html","property","customElement","prefix","styles","HostListener","HostListenerMixin","CDSTableExpandedRow","_decorate","_initialize","_HostListenerMixin","constructor","args","F","d","kind","decorators","key","value","_handleMouseOverOut","event","selectorRow","previousElementSibling","matches","highlighted","type","Number","attribute","Boolean","reflect","render","colSpan","_t","_","static"],"sources":["components/data-table/table-expanded-row.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\n\nimport HostListener from '../../globals/decorators/host-listener';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport CDSTableRow from './table-row';\n/**\n * Table row of collapsible details.\n *\n * @element cds-table-expanded-row\n */\n@customElement(`${prefix}-table-expanded-row`)\nclass CDSTableExpandedRow extends HostListenerMixin(LitElement) {\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 { selectorRow } = this.constructor as typeof CDSTableExpandedRow;\n const { previousElementSibling } = this;\n if (previousElementSibling?.matches(selectorRow)) {\n (previousElementSibling as CDSTableRow).highlighted =\n event.type === 'mouseover';\n }\n }\n\n /**\n * The colspan.\n */\n @property({ type: Number, attribute: 'colspan' })\n colSpan = 1;\n\n /**\n * `true` if the table row should be expanded.\n */\n @property({ type: Boolean, reflect: true })\n expanded = false;\n\n /**\n * `true` if the table row should be filtered.\n */\n @property({ type: Boolean, reflect: true })\n filtered = 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 the previous table row has been selected\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n render() {\n const { colSpan } = this;\n return html`\n <td colspan=\"${colSpan}\">\n <div class=\"${prefix}--child-row-inner-container\">\n <slot></slot>\n </div>\n </td>\n `;\n }\n\n /**\n * A selector that will return the previous sibling row.\n */\n static get selectorRow() {\n return `${prefix}-table-row`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default CDSTableExpandedRow;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,QAAQ,EAAEC,aAAa,QAAQ,mBAAmB;AAC3D,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,MAAM,MAAM,uBAAmB;AAEtC,OAAOC,YAAY,MAAM,wCAAwC;AACjE,OAAOC,iBAAiB,MAAM,oCAAoC;AAElE;AACA;AACA;AACA;AACA;AAJA,IAMMC,mBAAmB,GAAAC,SAAA,EADxBN,aAAa,CAAE,GAAEC,MAAO,qBAAoB,CAAC,aAAAM,WAAA,EAAAC,kBAAA;EAA9C,MACMH,mBAAmB,SAAAG,kBAAA,CAAuC;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAmEhE;EAAC;IAAAI,CAAA,EAnEKN,mBAAmB;IAAAO,CAAA;MAAAC,IAAA;MAA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AAK,CAAC,CAAC;MAAAZ,GAAA;MAAAC,MAAA;QAAA,OAChC,KAAK;MAAA;IAAA;MAAAH,IAAA;MAAAE,GAAA;MAAAC,KAAA;MAtBhB;AACF;AACA;MAIE;AACF;AACA;MAIE;AACF;AACA;MAIE;AACF;AACA;MAIE,SAAAY,OAAA,EAAS;QACP,MAAM;UAAEC;QAAQ,CAAC,GAAG,IAAI;QACxB,OAAO/B,IAAI,CAAAgC,EAAA,KAAAA,EAAA,GAAAC,CAAC;AAChB,qBAAmB,CAAU;AAC7B,sBAAoB,CAAS;AAC7B;AACA;AACA;AACA,KAAI,GALiBF,OAAO,EACN5B,MAAM;MAK1B;;MAEA;AACF;AACA;IAFE;MAAAY,IAAA;MAAAmB,MAAA;MAAAjB,GAAA;MAAAC,KAAA,EAGA,SAAAG,YAAA,EAAyB;QACvB,OAAQ,GAAElB,MAAO,YAAW;MAC9B;IAAC;MAAAY,IAAA;MAAAmB,MAAA;MAAAjB,GAAA;MAAAC,MAAA;QAAA,OAEed,MAAM;MAAA;IAAA;EAAA;AAAA,GAlEUE,iBAAiB,CAACP,UAAU,CAAC;AAqE/D,eAAeQ,mBAAmB"}
1
+ {"version":3,"file":"table-expanded-row.js","names":["LitElement","html","property","prefix","styles","carbonElement","customElement","HostListener","HostListenerMixin","CDSTableExpandedRow","_decorate","_initialize","_HostListenerMixin","constructor","args","F","d","kind","decorators","key","value","_handleMouseOverOut","event","selectorRow","previousElementSibling","matches","highlighted","type","Number","attribute","Boolean","reflect","render","colSpan","_t","_","static"],"sources":["components/data-table/table-expanded-row.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { 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\nimport HostListener from '../../globals/decorators/host-listener';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport CDSTableRow from './table-row';\n/**\n * Table row of collapsible details.\n *\n * @element cds-table-expanded-row\n */\n@customElement(`${prefix}-table-expanded-row`)\nclass CDSTableExpandedRow extends HostListenerMixin(LitElement) {\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 { selectorRow } = this.constructor as typeof CDSTableExpandedRow;\n const { previousElementSibling } = this;\n if (previousElementSibling?.matches(selectorRow)) {\n (previousElementSibling as CDSTableRow).highlighted =\n event.type === 'mouseover';\n }\n }\n\n /**\n * The colspan.\n */\n @property({ type: Number, attribute: 'colspan' })\n colSpan = 1;\n\n /**\n * `true` if the table row should be expanded.\n */\n @property({ type: Boolean, reflect: true })\n expanded = false;\n\n /**\n * `true` if the table row should be filtered.\n */\n @property({ type: Boolean, reflect: true })\n filtered = 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 the previous table row has been selected\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n render() {\n const { colSpan } = this;\n return html`\n <td colspan=\"${colSpan}\">\n <div class=\"${prefix}--child-row-inner-container\">\n <slot></slot>\n </div>\n </td>\n `;\n }\n\n /**\n * A selector that will return the previous sibling row.\n */\n static get selectorRow() {\n return `${prefix}-table-row`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default CDSTableExpandedRow;\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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A;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC;;;;GAIG;AACH,cACM,YAAa,SAAQ,UAAU;IACnC;;;;OAIG;IAIH,iBAAiB;IAOjB,MAAM;IAIN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,YAAY,CAAC","file":"table-head.d.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 { customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\n\n/**\n * Data table header.\n *\n * @element cds-table-head\n */\n@customElement(`${prefix}-table-head`)\nclass CDSTableHead extends LitElement {\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', 'rowgroup');\n }\n super.connectedCallback();\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableHead;\n"]}
1
+ {"version":3,"sources":["components/data-table/table-head.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC;;;;GAIG;AACH,cACM,YAAa,SAAQ,UAAU;IACnC;;;;OAIG;IAIH,iBAAiB;IAOjB,MAAM;IAIN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,YAAY,CAAC","file":"table-head.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Data table header.\n *\n * @element cds-table-head\n */\n@customElement(`${prefix}-table-head`)\nclass CDSTableHead extends LitElement {\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', 'rowgroup');\n }\n super.connectedCallback();\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableHead;\n"]}
@@ -13,19 +13,15 @@ let _ = t => t,
13
13
  */
14
14
 
15
15
  import { LitElement, html } from 'lit';
16
- import { customElement } from 'lit/decorators.js';
17
16
  import { prefix } from '../../globals/settings';
18
17
  import styles from "././data-table.css.js";
18
+ import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
19
19
 
20
20
  /**
21
21
  * Data table header.
22
22
  *
23
23
  * @element cds-table-head
24
- */ /**
25
- * Data table header.
26
- *
27
- * @element cds-table-head
28
- */
24
+ */
29
25
  let CDSTableHead = _decorate([customElement(`${prefix}-table-head`)], function (_initialize, _LitElement) {
30
26
  class CDSTableHead extends _LitElement {
31
27
  constructor(...args) {
@@ -1 +1 @@
1
- {"version":3,"file":"table-head.js","names":["LitElement","html","customElement","prefix","styles","CDSTableHead","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","key","value","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","render","_t","_","static"],"sources":["components/data-table/table-head.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\n\n/**\n * Data table header.\n *\n * @element cds-table-head\n */\n@customElement(`${prefix}-table-head`)\nclass CDSTableHead extends LitElement {\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', 'rowgroup');\n }\n super.connectedCallback();\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableHead;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,aAAa,QAAQ,mBAAmB;AACjD,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,MAAM,MAAM,uBAAmB;;AAEtC;AACA;AACA;AACA;AACA,GAJA;AACA;AACA;AACA;AACA;AAJA,IAMMC,YAAY,GAAAC,SAAA,EADjBJ,aAAa,CAAE,GAAEC,MAAO,aAAY,CAAC,aAAAI,WAAA,EAAAC,WAAA;EAAtC,MACMH,YAAY,SAAAG,WAAA,CAAoB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAqBtC;EAAC;IAAAI,CAAA,EArBKN,YAAY;IAAAO,CAAA;MAAAC,IAAA;MAAAC,GAAA;MAAAC,KAAA;MAChB;AACF;AACA;AACA;AACA;MACE;MACA;;MAEA,SAAAC,kBAAA,EAAoB;QAClB,IAAI,CAAC,IAAI,CAACC,YAAY,CAAC,MAAM,CAAC,EAAE;UAC9B,IAAI,CAACC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC;QACvC;QACAC,IAAA,CAAAC,eAAA,CAbEf,YAAY,CAAAgB,SAAA,8BAAAC,IAAA;MAchB;IAAC;MAAAT,IAAA;MAAAC,GAAA;MAAAC,KAAA,EAED,SAAAQ,OAAA,EAAS;QACP,OAAOtB,IAAI,CAAAuB,EAAA,KAAAA,EAAA,GAAAC,CAAC,iBAAe;MAC7B;IAAC;MAAAZ,IAAA;MAAAa,MAAA;MAAAZ,GAAA;MAAAC,MAAA;QAAA,OAEeX,MAAM;MAAA;IAAA;EAAA;AAAA,GApBGJ,UAAU;AAuBrC,eAAeK,YAAY"}
1
+ {"version":3,"file":"table-head.js","names":["LitElement","html","prefix","styles","carbonElement","customElement","CDSTableHead","_decorate","_initialize","_LitElement","constructor","args","F","d","kind","key","value","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","render","_t","_","static"],"sources":["components/data-table/table-head.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Data table header.\n *\n * @element cds-table-head\n */\n@customElement(`${prefix}-table-head`)\nclass CDSTableHead extends LitElement {\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', 'rowgroup');\n }\n super.connectedCallback();\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableHead;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,MAAM,MAAM,uBAAmB;AACtC,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;;AAExF;AACA;AACA;AACA;AACA;AAJ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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAErE;;;;;;;GAOG;AACH,cACM,kBAAmB,SAAQ,uBAAsB;IACrD;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAoB9B;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAIzB;;OAEG;IACH,OAAO,CAAC,YAAY;IA0BpB;;OAEG;IAEH,YAAY,UAAS;IAErB;;OAEG;IAEH,YAAY,UAAS;IACrB;;OAEG;IAEH,UAAU,UAAS;IAEnB;;OAEG;IAEH,UAAU,UAAS;IAEnB;;OAEG;IAEH,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAE7B;;;OAGG;IAEH,aAAa,CAAC,EAAE,oBAAoB,CAAC;IAErC;;;;OAIG;IAIH,iBAAiB;IAOjB,OAAO,CAAC,iBAAiB,KAAA;IAMzB,MAAM;IA6BN;;;OAGG;IACH,MAAM,KAAK,eAAe,WAEzB;IAED,MAAM,CAAC,iBAAiB;;;;MAGtB;IACF,MAAM,CAAC,MAAM,MAAU;IAEvB;;OAEG;IACH,MAAM,CAAC,iBAAiB;;;;;MAAqB;CAC9C;AAED,eAAe,kBAAkB,CAAC","file":"table-header-cell.d.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, customElement } from 'lit/decorators.js';\nimport ArrowsVertical32 from '@carbon/icons/lib/arrows--vertical/32';\nimport ArrowDown32 from '@carbon/icons/lib/arrow--down/32';\nimport { prefix } from '../../globals/settings';\nimport FocusMixin from '../../globals/mixins/focus';\nimport {\n TABLE_SORT_CYCLE,\n TABLE_SORT_CYCLES,\n TABLE_SORT_DIRECTION,\n} from './defs';\nimport styles from './data-table.scss';\n\nexport { TABLE_SORT_CYCLE, TABLE_SORT_CYCLES, TABLE_SORT_DIRECTION };\n\n/**\n * Data table header cell.\n *\n * @element cds-table-header-cell\n * @fires cds-table-header-cell-sort\n * The custom event fired before a new sort direction is set upon a user gesture.\n * Cancellation of this event stops the user-initiated change in sort direction.\n */\n@customElement(`${prefix}-table-header-cell`)\nclass CDSTableHeaderCell extends FocusMixin(LitElement) {\n /**\n * Handles `click` event on the sort button.\n *\n */\n private _handleClickSortButton() {\n const nextSortDirection = this._getNextSort();\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n oldSortDirection: this.sortDirection,\n sortDirection: nextSortDirection,\n },\n };\n const constructor = this.constructor as typeof CDSTableHeaderCell;\n if (\n this.dispatchEvent(new CustomEvent(constructor.eventBeforeSort, init))\n ) {\n this.sortActive = true;\n this.sortDirection = nextSortDirection;\n }\n }\n\n /**\n * Handles `slotchange` event.\n *\n */\n private _handleSlotChange() {\n this.requestUpdate();\n }\n\n /**\n * @returns The next sort direction.\n */\n private _getNextSort() {\n const {\n sortCycle = TABLE_SORT_CYCLE.TRI_STATES_FROM_ASCENDING,\n sortDirection,\n } = this;\n if (!sortDirection) {\n throw new TypeError(\n 'Table sort direction is not defined. ' +\n 'Likely that `_getNextSort()` is called with non-sorted table column, which should not happen in regular condition.'\n );\n }\n const directions = (this.constructor as typeof CDSTableHeaderCell)\n .TABLE_SORT_CYCLES[sortCycle];\n const index = directions.indexOf(sortDirection as TABLE_SORT_DIRECTION);\n if (index < 0) {\n if (sortDirection === TABLE_SORT_DIRECTION.NONE) {\n // If the current sort direction is `none` in bi-state sort cycle, returns the first one in the cycle\n return directions[0];\n }\n throw new RangeError(\n `The given sort state (${sortDirection}) is not found in the given table sort cycle: ${sortCycle}`\n );\n }\n return directions[(index + 1) % directions.length];\n }\n\n /**\n * `true` if the table has expandable rows\n */\n @property({ type: Boolean, reflect: true, attribute: 'is-sortable' })\n isExpandable = false;\n\n /**\n * `true` if this table has selectable rows\n */\n @property({ type: Boolean, reflect: true, attribute: 'is-sortable' })\n isSelectable = false;\n /**\n * `true` if this table header column should be sortable\n */\n @property({ type: Boolean, reflect: true, attribute: 'is-sortable' })\n isSortable = false;\n\n /**\n * `true` if this table header cell is of a primary sorting column.\n */\n @property({ type: Boolean, reflect: true, attribute: 'sort-active' })\n sortActive = false;\n\n /**\n * The table sort cycle in use.\n */\n @property({ reflect: true, attribute: 'sort-cycle' })\n sortCycle?: TABLE_SORT_CYCLE;\n\n /**\n * The table sort direction.\n * If present, this table header cell will have a sorting UI. Choose between `ascending` or `descending`.\n */\n @property({ reflect: true, attribute: 'sort-direction' })\n sortDirection?: TABLE_SORT_DIRECTION;\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', 'columnheader');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (this.isSortable && !changedProperties.has('sortDirection')) {\n this.sortDirection = TABLE_SORT_DIRECTION.NONE;\n }\n }\n\n render() {\n const { sortDirection } = this;\n if (sortDirection) {\n const sortIcon =\n sortDirection === TABLE_SORT_DIRECTION.NONE\n ? ArrowsVertical32({\n part: 'sort-icon',\n class: `${prefix}--table-sort__icon-unsorted`,\n })\n : ArrowDown32({\n part: 'sort-icon',\n class: `${prefix}--table-sort__icon`,\n });\n return html`\n <button\n part=\"sort-button\"\n class=\"${prefix}--table-sort\"\n title=\"${this.textContent}\"\n @click=${this._handleClickSortButton}>\n <span part=\"label-text\" class=\"${prefix}--table-header-label\"\n ><slot @slotchange=${this._handleSlotChange}></slot\n ></span>\n ${sortIcon}\n </button>\n `;\n }\n return html` <slot></slot> `;\n }\n\n /**\n * The name of the custom event fired before a new sort direction is set upon a user gesture.\n * Cancellation of this event stops the user-initiated change in sort direction.\n */\n static get eventBeforeSort() {\n return `${prefix}-table-header-cell-sort`;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles;\n\n /**\n * Mapping of table sort cycles to table sort states.\n */\n static TABLE_SORT_CYCLES = TABLE_SORT_CYCLES;\n}\n\nexport default CDSTableHeaderCell;\n"]}
1
+ {"version":3,"sources":["components/data-table/table-header-cell.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,QAAQ,CAAC;AAIhB,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAErE;;;;;;;GAOG;AACH,cACM,kBAAmB,SAAQ,uBAAsB;IACrD;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAoB9B;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAIzB;;OAEG;IACH,OAAO,CAAC,YAAY;IA0BpB;;OAEG;IAEH,YAAY,UAAS;IAErB;;OAEG;IAEH,YAAY,UAAS;IACrB;;OAEG;IAEH,UAAU,UAAS;IAEnB;;OAEG;IAEH,UAAU,UAAS;IAEnB;;OAEG;IAEH,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAE7B;;;OAGG;IAEH,aAAa,CAAC,EAAE,oBAAoB,CAAC;IAErC;;;;OAIG;IAIH,iBAAiB;IAOjB,OAAO,CAAC,iBAAiB,KAAA;IAMzB,MAAM;IA6BN;;;OAGG;IACH,MAAM,KAAK,eAAe,WAEzB;IAED,MAAM,CAAC,iBAAiB;;;;MAGtB;IACF,MAAM,CAAC,MAAM,MAAU;IAEvB;;OAEG;IACH,MAAM,CAAC,iBAAiB;;;;;MAAqB;CAC9C;AAED,eAAe,kBAAkB,CAAC","file":"table-header-cell.d.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 ArrowsVertical32 from '@carbon/icons/lib/arrows--vertical/32';\nimport ArrowDown32 from '@carbon/icons/lib/arrow--down/32';\nimport { prefix } from '../../globals/settings';\nimport FocusMixin from '../../globals/mixins/focus';\nimport {\n TABLE_SORT_CYCLE,\n TABLE_SORT_CYCLES,\n TABLE_SORT_DIRECTION,\n} from './defs';\nimport styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\nexport { TABLE_SORT_CYCLE, TABLE_SORT_CYCLES, TABLE_SORT_DIRECTION };\n\n/**\n * Data table header cell.\n *\n * @element cds-table-header-cell\n * @fires cds-table-header-cell-sort\n * The custom event fired before a new sort direction is set upon a user gesture.\n * Cancellation of this event stops the user-initiated change in sort direction.\n */\n@customElement(`${prefix}-table-header-cell`)\nclass CDSTableHeaderCell extends FocusMixin(LitElement) {\n /**\n * Handles `click` event on the sort button.\n *\n */\n private _handleClickSortButton() {\n const nextSortDirection = this._getNextSort();\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n oldSortDirection: this.sortDirection,\n sortDirection: nextSortDirection,\n },\n };\n const constructor = this.constructor as typeof CDSTableHeaderCell;\n if (\n this.dispatchEvent(new CustomEvent(constructor.eventBeforeSort, init))\n ) {\n this.sortActive = true;\n this.sortDirection = nextSortDirection;\n }\n }\n\n /**\n * Handles `slotchange` event.\n *\n */\n private _handleSlotChange() {\n this.requestUpdate();\n }\n\n /**\n * @returns The next sort direction.\n */\n private _getNextSort() {\n const {\n sortCycle = TABLE_SORT_CYCLE.TRI_STATES_FROM_ASCENDING,\n sortDirection,\n } = this;\n if (!sortDirection) {\n throw new TypeError(\n 'Table sort direction is not defined. ' +\n 'Likely that `_getNextSort()` is called with non-sorted table column, which should not happen in regular condition.'\n );\n }\n const directions = (this.constructor as typeof CDSTableHeaderCell)\n .TABLE_SORT_CYCLES[sortCycle];\n const index = directions.indexOf(sortDirection as TABLE_SORT_DIRECTION);\n if (index < 0) {\n if (sortDirection === TABLE_SORT_DIRECTION.NONE) {\n // If the current sort direction is `none` in bi-state sort cycle, returns the first one in the cycle\n return directions[0];\n }\n throw new RangeError(\n `The given sort state (${sortDirection}) is not found in the given table sort cycle: ${sortCycle}`\n );\n }\n return directions[(index + 1) % directions.length];\n }\n\n /**\n * `true` if the table has expandable rows\n */\n @property({ type: Boolean, reflect: true, attribute: 'is-sortable' })\n isExpandable = false;\n\n /**\n * `true` if this table has selectable rows\n */\n @property({ type: Boolean, reflect: true, attribute: 'is-sortable' })\n isSelectable = false;\n /**\n * `true` if this table header column should be sortable\n */\n @property({ type: Boolean, reflect: true, attribute: 'is-sortable' })\n isSortable = false;\n\n /**\n * `true` if this table header cell is of a primary sorting column.\n */\n @property({ type: Boolean, reflect: true, attribute: 'sort-active' })\n sortActive = false;\n\n /**\n * The table sort cycle in use.\n */\n @property({ reflect: true, attribute: 'sort-cycle' })\n sortCycle?: TABLE_SORT_CYCLE;\n\n /**\n * The table sort direction.\n * If present, this table header cell will have a sorting UI. Choose between `ascending` or `descending`.\n */\n @property({ reflect: true, attribute: 'sort-direction' })\n sortDirection?: TABLE_SORT_DIRECTION;\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', 'columnheader');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (this.isSortable && !changedProperties.has('sortDirection')) {\n this.sortDirection = TABLE_SORT_DIRECTION.NONE;\n }\n }\n\n render() {\n const { sortDirection } = this;\n if (sortDirection) {\n const sortIcon =\n sortDirection === TABLE_SORT_DIRECTION.NONE\n ? ArrowsVertical32({\n part: 'sort-icon',\n class: `${prefix}--table-sort__icon-unsorted`,\n })\n : ArrowDown32({\n part: 'sort-icon',\n class: `${prefix}--table-sort__icon`,\n });\n return html`\n <button\n part=\"sort-button\"\n class=\"${prefix}--table-sort\"\n title=\"${this.textContent}\"\n @click=${this._handleClickSortButton}>\n <span part=\"label-text\" class=\"${prefix}--table-header-label\"\n ><slot @slotchange=${this._handleSlotChange}></slot\n ></span>\n ${sortIcon}\n </button>\n `;\n }\n return html` <slot></slot> `;\n }\n\n /**\n * The name of the custom event fired before a new sort direction is set upon a user gesture.\n * Cancellation of this event stops the user-initiated change in sort direction.\n */\n static get eventBeforeSort() {\n return `${prefix}-table-header-cell-sort`;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles;\n\n /**\n * Mapping of table sort cycles to table sort states.\n */\n static TABLE_SORT_CYCLES = TABLE_SORT_CYCLES;\n}\n\nexport default CDSTableHeaderCell;\n"]}
@@ -15,13 +15,14 @@ let _ = t => t,
15
15
  */
16
16
 
17
17
  import { LitElement, html } from 'lit';
18
- import { property, customElement } from 'lit/decorators.js';
18
+ import { property } from 'lit/decorators.js';
19
19
  import ArrowsVertical32 from "../../icons/arrows--vertical/32";
20
20
  import ArrowDown32 from "../../icons/arrow--down/32";
21
21
  import { prefix } from '../../globals/settings';
22
22
  import FocusMixin from '../../globals/mixins/focus';
23
23
  import { TABLE_SORT_CYCLE, TABLE_SORT_CYCLES, TABLE_SORT_DIRECTION } from './defs';
24
24
  import styles from "././data-table.css.js";
25
+ import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
25
26
  export { TABLE_SORT_CYCLE, TABLE_SORT_CYCLES, TABLE_SORT_DIRECTION };
26
27
 
27
28
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"table-header-cell.js","names":["LitElement","html","property","customElement","ArrowsVertical32","ArrowDown32","prefix","FocusMixin","TABLE_SORT_CYCLE","TABLE_SORT_CYCLES","TABLE_SORT_DIRECTION","styles","CDSTableHeaderCell","_decorate","_initialize","_FocusMixin","constructor","args","F","d","kind","key","value","_handleClickSortButton","nextSortDirection","_getNextSort","init","bubbles","cancelable","composed","detail","oldSortDirection","sortDirection","dispatchEvent","CustomEvent","eventBeforeSort","sortActive","_handleSlotChange","requestUpdate","sortCycle","TRI_STATES_FROM_ASCENDING","TypeError","directions","index","indexOf","NONE","RangeError","length","decorators","type","Boolean","reflect","attribute","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","updated","changedProperties","isSortable","has","render","sortIcon","part","class","_t","_","textContent","_t2","static","_objectSpread","shadowRootOptions","delegatesFocus"],"sources":["components/data-table/table-header-cell.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, customElement } from 'lit/decorators.js';\nimport ArrowsVertical32 from '@carbon/icons/lib/arrows--vertical/32';\nimport ArrowDown32 from '@carbon/icons/lib/arrow--down/32';\nimport { prefix } from '../../globals/settings';\nimport FocusMixin from '../../globals/mixins/focus';\nimport {\n TABLE_SORT_CYCLE,\n TABLE_SORT_CYCLES,\n TABLE_SORT_DIRECTION,\n} from './defs';\nimport styles from './data-table.scss';\n\nexport { TABLE_SORT_CYCLE, TABLE_SORT_CYCLES, TABLE_SORT_DIRECTION };\n\n/**\n * Data table header cell.\n *\n * @element cds-table-header-cell\n * @fires cds-table-header-cell-sort\n * The custom event fired before a new sort direction is set upon a user gesture.\n * Cancellation of this event stops the user-initiated change in sort direction.\n */\n@customElement(`${prefix}-table-header-cell`)\nclass CDSTableHeaderCell extends FocusMixin(LitElement) {\n /**\n * Handles `click` event on the sort button.\n *\n */\n private _handleClickSortButton() {\n const nextSortDirection = this._getNextSort();\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n oldSortDirection: this.sortDirection,\n sortDirection: nextSortDirection,\n },\n };\n const constructor = this.constructor as typeof CDSTableHeaderCell;\n if (\n this.dispatchEvent(new CustomEvent(constructor.eventBeforeSort, init))\n ) {\n this.sortActive = true;\n this.sortDirection = nextSortDirection;\n }\n }\n\n /**\n * Handles `slotchange` event.\n *\n */\n private _handleSlotChange() {\n this.requestUpdate();\n }\n\n /**\n * @returns The next sort direction.\n */\n private _getNextSort() {\n const {\n sortCycle = TABLE_SORT_CYCLE.TRI_STATES_FROM_ASCENDING,\n sortDirection,\n } = this;\n if (!sortDirection) {\n throw new TypeError(\n 'Table sort direction is not defined. ' +\n 'Likely that `_getNextSort()` is called with non-sorted table column, which should not happen in regular condition.'\n );\n }\n const directions = (this.constructor as typeof CDSTableHeaderCell)\n .TABLE_SORT_CYCLES[sortCycle];\n const index = directions.indexOf(sortDirection as TABLE_SORT_DIRECTION);\n if (index < 0) {\n if (sortDirection === TABLE_SORT_DIRECTION.NONE) {\n // If the current sort direction is `none` in bi-state sort cycle, returns the first one in the cycle\n return directions[0];\n }\n throw new RangeError(\n `The given sort state (${sortDirection}) is not found in the given table sort cycle: ${sortCycle}`\n );\n }\n return directions[(index + 1) % directions.length];\n }\n\n /**\n * `true` if the table has expandable rows\n */\n @property({ type: Boolean, reflect: true, attribute: 'is-sortable' })\n isExpandable = false;\n\n /**\n * `true` if this table has selectable rows\n */\n @property({ type: Boolean, reflect: true, attribute: 'is-sortable' })\n isSelectable = false;\n /**\n * `true` if this table header column should be sortable\n */\n @property({ type: Boolean, reflect: true, attribute: 'is-sortable' })\n isSortable = false;\n\n /**\n * `true` if this table header cell is of a primary sorting column.\n */\n @property({ type: Boolean, reflect: true, attribute: 'sort-active' })\n sortActive = false;\n\n /**\n * The table sort cycle in use.\n */\n @property({ reflect: true, attribute: 'sort-cycle' })\n sortCycle?: TABLE_SORT_CYCLE;\n\n /**\n * The table sort direction.\n * If present, this table header cell will have a sorting UI. Choose between `ascending` or `descending`.\n */\n @property({ reflect: true, attribute: 'sort-direction' })\n sortDirection?: TABLE_SORT_DIRECTION;\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', 'columnheader');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (this.isSortable && !changedProperties.has('sortDirection')) {\n this.sortDirection = TABLE_SORT_DIRECTION.NONE;\n }\n }\n\n render() {\n const { sortDirection } = this;\n if (sortDirection) {\n const sortIcon =\n sortDirection === TABLE_SORT_DIRECTION.NONE\n ? ArrowsVertical32({\n part: 'sort-icon',\n class: `${prefix}--table-sort__icon-unsorted`,\n })\n : ArrowDown32({\n part: 'sort-icon',\n class: `${prefix}--table-sort__icon`,\n });\n return html`\n <button\n part=\"sort-button\"\n class=\"${prefix}--table-sort\"\n title=\"${this.textContent}\"\n @click=${this._handleClickSortButton}>\n <span part=\"label-text\" class=\"${prefix}--table-header-label\"\n ><slot @slotchange=${this._handleSlotChange}></slot\n ></span>\n ${sortIcon}\n </button>\n `;\n }\n return html` <slot></slot> `;\n }\n\n /**\n * The name of the custom event fired before a new sort direction is set upon a user gesture.\n * Cancellation of this event stops the user-initiated change in sort direction.\n */\n static get eventBeforeSort() {\n return `${prefix}-table-header-cell-sort`;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles;\n\n /**\n * Mapping of table sort cycles to table sort states.\n */\n static TABLE_SORT_CYCLES = TABLE_SORT_CYCLES;\n}\n\nexport default CDSTableHeaderCell;\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,QAAQ,EAAEC,aAAa,QAAQ,mBAAmB;AAC3D,OAAOC,gBAAgB,MAAM,iCAAuC;AACpE,OAAOC,WAAW,MAAM,4BAAkC;AAC1D,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,UAAU,MAAM,4BAA4B;AACnD,SACEC,gBAAgB,EAChBC,iBAAiB,EACjBC,oBAAoB,QACf,QAAQ;AACf,OAAOC,MAAM,MAAM,uBAAmB;AAEtC,SAASH,gBAAgB,EAAEC,iBAAiB,EAAEC,oBAAoB;;AAElE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA,IASME,kBAAkB,GAAAC,SAAA,EADvBV,aAAa,CAAE,GAAEG,MAAO,oBAAmB,CAAC,aAAAQ,WAAA,EAAAC,WAAA;EAA7C,MACMH,kBAAkB,SAAAG,WAAA,CAAgC;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAsKxD;EAAC;IAAAI,CAAA,EAtKKN,kBAAkB;IAAAO,CAAA;MAAAC,IAAA;MAAAC,GAAA;MAAAC,KAAA;MACtB;AACF;AACA;AACA;MACE,SAAAC,uBAAA,EAAiC;QAC/B,MAAMC,iBAAiB,GAAG,IAAI,CAACC,YAAY,EAAE;QAC7C,MAAMC,IAAI,GAAG;UACXC,OAAO,EAAE,IAAI;UACbC,UAAU,EAAE,IAAI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AGhB;QACA,OAAOhE,IAAI,CAAAsE,GAAA,KAAAA,GAAA,GAAAF,CAAC,iBAAe;MAC7B;;MAEA;AACF;AACA;AACA;IAHE;MAAAjD,IAAA;MAAAoD,MAAA;MAAAnD,GAAA;MAAAC,KAAA,EAIA,SAAAa,gBAAA,EAA6B;QAC3B,OAAQ,GAAE7B,MAAO,yBAAwB;MAC3C;IAAC;MAAAc,IAAA;MAAAoD,MAAA;MAAAnD,GAAA;MAAAC,MAAA;QAAA,OAAAmD,aAAA,CAAAA,aAAA,KAGIzE,UAAU,CAAC0E,iBAAiB;UAC/BC,cAAc,EAAE;QAAI;MAAA;IAAA;MAAAvD,IAAA;MAAAoD,MAAA;MAAAnD,GAAA;MAAAC,MAAA;QAAA,OAENX,MAAM;MAAA;IAAA;MAAAS,IAAA;MAAAoD,MAAA;MAAAnD,GAAA;MAAAC,MAAA;QAAA,OAKKb,iBAAiB;MAAA;IAAA;EAAA;AAAA,GArKbF,UAAU,CAACP,UAAU,CAAC;AAwKvD,eAAeY,kBAAkB"}
1
+ {"version":3,"file":"table-header-cell.js","names":["LitElement","html","property","ArrowsVertical32","ArrowDown32","prefix","FocusMixin","TABLE_SORT_CYCLE","TABLE_SORT_CYCLES","TABLE_SORT_DIRECTION","styles","carbonElement","customElement","CDSTableHeaderCell","_decorate","_initialize","_FocusMixin","constructor","args","F","d","kind","key","value","_handleClickSortButton","nextSortDirection","_getNextSort","init","bubbles","cancelable","composed","detail","oldSortDirection","sortDirection","dispatchEvent","CustomEvent","eventBeforeSort","sortActive","_handleSlotChange","requestUpdate","sortCycle","TRI_STATES_FROM_ASCENDING","TypeError","directions","index","indexOf","NONE","RangeError","length","decorators","type","Boolean","reflect","attribute","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","updated","changedProperties","isSortable","has","render","sortIcon","part","class","_t","_","textContent","_t2","static","_objectSpread","shadowRootOptions","delegatesFocus"],"sources":["components/data-table/table-header-cell.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 ArrowsVertical32 from '@carbon/icons/lib/arrows--vertical/32';\nimport ArrowDown32 from '@carbon/icons/lib/arrow--down/32';\nimport { prefix } from '../../globals/settings';\nimport FocusMixin from '../../globals/mixins/focus';\nimport {\n TABLE_SORT_CYCLE,\n TABLE_SORT_CYCLES,\n TABLE_SORT_DIRECTION,\n} from './defs';\nimport styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\nexport { TABLE_SORT_CYCLE, TABLE_SORT_CYCLES, TABLE_SORT_DIRECTION };\n\n/**\n * Data table header cell.\n *\n * @element cds-table-header-cell\n * @fires cds-table-header-cell-sort\n * The custom event fired before a new sort direction is set upon a user gesture.\n * Cancellation of this event stops the user-initiated change in sort direction.\n */\n@customElement(`${prefix}-table-header-cell`)\nclass CDSTableHeaderCell extends FocusMixin(LitElement) {\n /**\n * Handles `click` event on the sort button.\n *\n */\n private _handleClickSortButton() {\n const nextSortDirection = this._getNextSort();\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n oldSortDirection: this.sortDirection,\n sortDirection: nextSortDirection,\n },\n };\n const constructor = this.constructor as typeof CDSTableHeaderCell;\n if (\n this.dispatchEvent(new CustomEvent(constructor.eventBeforeSort, init))\n ) {\n this.sortActive = true;\n this.sortDirection = nextSortDirection;\n }\n }\n\n /**\n * Handles `slotchange` event.\n *\n */\n private _handleSlotChange() {\n this.requestUpdate();\n }\n\n /**\n * @returns The next sort direction.\n */\n private _getNextSort() {\n const {\n sortCycle = TABLE_SORT_CYCLE.TRI_STATES_FROM_ASCENDING,\n sortDirection,\n } = this;\n if (!sortDirection) {\n throw new TypeError(\n 'Table sort direction is not defined. ' +\n 'Likely that `_getNextSort()` is called with non-sorted table column, which should not happen in regular condition.'\n );\n }\n const directions = (this.constructor as typeof CDSTableHeaderCell)\n .TABLE_SORT_CYCLES[sortCycle];\n const index = directions.indexOf(sortDirection as TABLE_SORT_DIRECTION);\n if (index < 0) {\n if (sortDirection === TABLE_SORT_DIRECTION.NONE) {\n // If the current sort direction is `none` in bi-state sort cycle, returns the first one in the cycle\n return directions[0];\n }\n throw new RangeError(\n `The given sort state (${sortDirection}) is not found in the given table sort cycle: ${sortCycle}`\n );\n }\n return directions[(index + 1) % directions.length];\n }\n\n /**\n * `true` if the table has expandable rows\n */\n @property({ type: Boolean, reflect: true, attribute: 'is-sortable' })\n isExpandable = false;\n\n /**\n * `true` if this table has selectable rows\n */\n @property({ type: Boolean, reflect: true, attribute: 'is-sortable' })\n isSelectable = false;\n /**\n * `true` if this table header column should be sortable\n */\n @property({ type: Boolean, reflect: true, attribute: 'is-sortable' })\n isSortable = false;\n\n /**\n * `true` if this table header cell is of a primary sorting column.\n */\n @property({ type: Boolean, reflect: true, attribute: 'sort-active' })\n sortActive = false;\n\n /**\n * The table sort cycle in use.\n */\n @property({ reflect: true, attribute: 'sort-cycle' })\n sortCycle?: TABLE_SORT_CYCLE;\n\n /**\n * The table sort direction.\n * If present, this table header cell will have a sorting UI. Choose between `ascending` or `descending`.\n */\n @property({ reflect: true, attribute: 'sort-direction' })\n sortDirection?: TABLE_SORT_DIRECTION;\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', 'columnheader');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (this.isSortable && !changedProperties.has('sortDirection')) {\n this.sortDirection = TABLE_SORT_DIRECTION.NONE;\n }\n }\n\n render() {\n const { sortDirection } = this;\n if (sortDirection) {\n const sortIcon =\n sortDirection === TABLE_SORT_DIRECTION.NONE\n ? ArrowsVertical32({\n part: 'sort-icon',\n class: `${prefix}--table-sort__icon-unsorted`,\n })\n : ArrowDown32({\n part: 'sort-icon',\n class: `${prefix}--table-sort__icon`,\n });\n return html`\n <button\n part=\"sort-button\"\n class=\"${prefix}--table-sort\"\n title=\"${this.textContent}\"\n @click=${this._handleClickSortButton}>\n <span part=\"label-text\" class=\"${prefix}--table-header-label\"\n ><slot @slotchange=${this._handleSlotChange}></slot\n ></span>\n ${sortIcon}\n </button>\n `;\n }\n return html` <slot></slot> `;\n }\n\n /**\n * The name of the custom event fired before a new sort direction is set upon a user gesture.\n * Cancellation of this event stops the user-initiated change in sort direction.\n */\n static get eventBeforeSort() {\n return `${prefix}-table-header-cell-sort`;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles;\n\n /**\n * Mapping of table sort cycles to table sort states.\n */\n static TABLE_SORT_CYCLES = TABLE_SORT_CYCLES;\n}\n\nexport default CDSTableHeaderCell;\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,OAAOC,gBAAgB,MAAM,iCAAuC;AACpE,OAAOC,WAAW,MAAM,4BAAkC;AAC1D,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,UAAU,MAAM,4BAA4B;AACnD,SACEC,gBAAgB,EAChBC,iBAAiB,EACjBC,oBAAoB,QACf,QAAQ;AACf,OAAOC,MAAM,MAAM,uBAAmB;AACtC,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;AAExF,SAASL,gBAAgB,EAAEC,iBAAiB,EAAEC,oBAAoB;;AAElE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA,IASMI,kBAAkB,GAAAC,SAAA,EADvBF,aAAa,CAAE,GAAEP,MAAO,oBAAmB,CAAC,aAAAU,WAAA,EAAAC,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KAAK,0BAA0B,WAEpC;CACF;AAED,eAAe,iBAAiB,CAAC","file":"table-header-row.d.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 { customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport CDSTableRow from './table-row';\n\n/**\n * Data table header row.\n *\n * @element cds-table-header-row\n */\n@customElement(`${prefix}-table-header-row`)\nclass CDSTableHeaderRow extends CDSTableRow {\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-change-selection-all`;\n }\n}\n\nexport default CDSTableHeaderRow;\n"]}
1
+ {"version":3,"sources":["components/data-table/table-header-row.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,WAAW,MAAM,aAAa,CAAC;AAGtC;;;;GAIG;AACH,cACM,iBAAkB,SAAQ,WAAW;IACzC;;;OAGG;IACH,MAAM,KAAK,0BAA0B,WAEpC;CACF;AAED,eAAe,iBAAiB,CAAC","file":"table-header-row.d.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 { prefix } from '../../globals/settings';\nimport CDSTableRow from './table-row';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Data table header row.\n *\n * @element cds-table-header-row\n */\n@customElement(`${prefix}-table-header-row`)\nclass CDSTableHeaderRow extends CDSTableRow {\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-change-selection-all`;\n }\n}\n\nexport default CDSTableHeaderRow;\n"]}
@@ -8,9 +8,9 @@ import _decorate from "@babel/runtime/helpers/esm/decorate";
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
 
11
- import { customElement } from 'lit/decorators.js';
12
11
  import { prefix } from '../../globals/settings';
13
12
  import CDSTableRow from './table-row';
13
+ import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
14
14
 
15
15
  /**
16
16
  * Data table header row.
@@ -1 +1 @@
1
- {"version":3,"file":"table-header-row.js","names":["customElement","prefix","CDSTableRow","CDSTableHeaderRow","_decorate","_initialize","_CDSTableRow","constructor","args","F","d","kind","static","key","value","eventBeforeChangeSelection"],"sources":["components/data-table/table-header-row.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport CDSTableRow from './table-row';\n\n/**\n * Data table header row.\n *\n * @element cds-table-header-row\n */\n@customElement(`${prefix}-table-header-row`)\nclass CDSTableHeaderRow extends CDSTableRow {\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-change-selection-all`;\n }\n}\n\nexport default CDSTableHeaderRow;\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,QAAQ,mBAAmB;AACjD,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,WAAW,MAAM,aAAa;;AAErC;AACA;AACA;AACA;AACA;AAJA,IAMMC,iBAAiB,GAAAC,SAAA,EADtBJ,aAAa,CAAE,GAAEC,MAAO,mBAAkB,CAAC,aAAAI,WAAA,EAAAC,YAAA;EAA5C,MACMH,iBAAiB,SAAAG,YAAA,CAAqB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAQ5C;EAAC;IAAAI,CAAA,EARKN,iBAAiB;IAAAO,CAAA;MAAAC,IAAA;MAAAC,MAAA;MAAAC,GAAA;MAAAC,KAAA;MACrB;AACF;AACA;AACA;MACE,SAAAC,2BAAA,EAAwC;QACtC,OAAQ,GAAEd,MAAO,6BAA4B;MAC/C;IAAC;EAAA;AAAA,GAP6BC,WAAW;AAU3C,eAAeC,iBAAiB"}
1
+ {"version":3,"file":"table-header-row.js","names":["prefix","CDSTableRow","carbonElement","customElement","CDSTableHeaderRow","_decorate","_initialize","_CDSTableRow","constructor","args","F","d","kind","static","key","value","eventBeforeChangeSelection"],"sources":["components/data-table/table-header-row.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { prefix } from '../../globals/settings';\nimport CDSTableRow from './table-row';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Data table header row.\n *\n * @element cds-table-header-row\n */\n@customElement(`${prefix}-table-header-row`)\nclass CDSTableHeaderRow extends CDSTableRow {\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-change-selection-all`;\n }\n}\n\nexport default CDSTableHeaderRow;\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,WAAW,MAAM,aAAa;AACrC,SAASC,aAAa,IAAIC,aAAa,QAAQ,yCAAyC;;AAExF;AACA;AACA;AACA;AACA;AAJA,IAMMC,iBAAiB,GAAAC,SAAA,EADtBF,aAAa,CAAE,GAAEH,MAAO,mBAAkB,CAAC,aAAAM,WAAA,EAAAC,YAAA;EAA5C,MACMH,iBAAiB,SAAAG,YAAA,CAAqB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAQ5C;EAAC;IAAAI,CAAA,EARKN,iBAAiB;IAAAO,CAAA;MAAAC,IAAA;MAAAC,MAAA;MAAAC,GAAA;MAAAC,KAAA;MACrB;AACF;AACA;AACA;MACE,SAAAC,2BAAA,EAAwC;QACtC,OAAQ,GAAEhB,MAAO,6BAA4B;MAC/C;IAAC;EAAA;AAAA,GAP6BC,WAAW;AAU3C,eAAeG,iBAAiB"}