@carbon/web-components 2.0.1 → 2.0.2-rc.1

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 (2015) hide show
  1. package/custom-elements.json +480 -12
  2. package/dist/16-01ebcb7f.js +50 -0
  3. package/dist/16-08c7b6ab.js +50 -0
  4. package/dist/16-1664e172.js +50 -0
  5. package/dist/16-1c0007f3.js +50 -0
  6. package/dist/16-20c5edc1.js +50 -0
  7. package/dist/16-220724e0.js +50 -0
  8. package/dist/16-228e7358.js +50 -0
  9. package/dist/16-291af4c1.js +50 -0
  10. package/dist/16-36ae18bf.js +50 -0
  11. package/dist/16-3b37b4ba.js +50 -0
  12. package/dist/16-46b03826.js +50 -0
  13. package/dist/16-5aefc3c2.js +50 -0
  14. package/dist/16-60b422c4.js +50 -0
  15. package/dist/16-6791071b.js +50 -0
  16. package/dist/16-6ceb5b82.js +50 -0
  17. package/dist/16-758bd5d3.js +50 -0
  18. package/dist/16-99afca88.js +50 -0
  19. package/dist/16-9e41b122.js +50 -0
  20. package/dist/16-9f0fa955.js +50 -0
  21. package/dist/16-a89c399c.js +50 -0
  22. package/dist/16-ae0e9a56.js +50 -0
  23. package/dist/16-c0c1a32f.js +50 -0
  24. package/dist/16-c18899be.js +50 -0
  25. package/dist/16-c56d8c15.js +50 -0
  26. package/dist/16-d814df5b.js +50 -0
  27. package/dist/16-d9457893.js +50 -0
  28. package/dist/16-d9a15472.js +50 -0
  29. package/dist/16-f1e0111b.js +50 -0
  30. package/dist/16-f62d4131.js +50 -0
  31. package/dist/16-f7a9dffe.js +50 -0
  32. package/dist/16-fbf142c7.js +50 -0
  33. package/dist/16-fd11e4ec.js +50 -0
  34. package/dist/20-1dd5ae57.js +50 -0
  35. package/dist/20-b7ed64f4.js +50 -0
  36. package/dist/20-d7cf1679.js +50 -0
  37. package/dist/20-e51c1f39.js +50 -0
  38. package/dist/accordion.min.js +103 -0
  39. package/dist/accordion.rtl.min.js +103 -0
  40. package/dist/breadcrumb.min.js +64 -0
  41. package/dist/breadcrumb.rtl.min.js +64 -0
  42. package/dist/button-3dafe360.js +114 -0
  43. package/dist/button-582a2f3a.js +114 -0
  44. package/dist/button-8d4316cb.js +114 -0
  45. package/dist/button-e33e1c4a.js +114 -0
  46. package/dist/button-set-04f29086.js +50 -0
  47. package/dist/button-set-49c4279d.js +50 -0
  48. package/dist/button-set-5ee221b2.js +50 -0
  49. package/dist/button-set-c9335535.js +50 -0
  50. package/dist/button-skeleton-00620289.js +70 -0
  51. package/dist/button-skeleton-b2facaf2.js +70 -0
  52. package/dist/button-skeleton-d68066fe.js +70 -0
  53. package/dist/button-skeleton-f9f83011.js +70 -0
  54. package/dist/button.min.js +50 -0
  55. package/dist/button.rtl.min.js +50 -0
  56. package/dist/carbon-element-4ca9803f.js +58 -0
  57. package/dist/checkbox-1ca3f18c.js +72 -0
  58. package/dist/checkbox-1e621c4d.js +72 -0
  59. package/dist/checkbox-440be135.js +72 -0
  60. package/dist/checkbox-fa74151f.js +72 -0
  61. package/dist/checkbox.min.js +56 -0
  62. package/dist/checkbox.rtl.min.js +56 -0
  63. package/dist/class-map-0ae732f6.js +55 -0
  64. package/dist/class-map-ff7e8fde.js +55 -0
  65. package/dist/code-snippet.min.js +115 -0
  66. package/dist/code-snippet.rtl.min.js +115 -0
  67. package/dist/collection-helpers-4e32fe16.js +58 -0
  68. package/dist/combo-box.min.js +72 -0
  69. package/dist/combo-box.rtl.min.js +72 -0
  70. package/dist/content-switcher-item-55b2adca.js +84 -0
  71. package/dist/content-switcher-item-6d9b81cf.js +84 -0
  72. package/dist/content-switcher-item-bee4ce7e.js +84 -0
  73. package/dist/content-switcher-item-f758c238.js +84 -0
  74. package/dist/content-switcher.min.js +50 -0
  75. package/dist/content-switcher.rtl.min.js +50 -0
  76. package/dist/copy-button-0404162f.js +63 -0
  77. package/dist/copy-button-1d23e1bd.js +63 -0
  78. package/dist/copy-button-cf261260.js +63 -0
  79. package/dist/copy-button-d35b2079.js +63 -0
  80. package/dist/copy-button.min.js +50 -0
  81. package/dist/copy-button.rtl.min.js +50 -0
  82. package/dist/custom-element-975be15f.js +55 -0
  83. package/dist/data-table.min.js +169 -0
  84. package/dist/data-table.rtl.min.js +169 -0
  85. package/dist/date-picker.min.js +169 -0
  86. package/dist/date-picker.rtl.min.js +169 -0
  87. package/dist/directive-e2d48b9c.js +55 -0
  88. package/dist/dropdown-item-2ae1dc7f.js +128 -0
  89. package/dist/dropdown-item-64bf0a4f.js +128 -0
  90. package/dist/dropdown-item-7273edb2.js +128 -0
  91. package/dist/dropdown-item-cdd1a116.js +128 -0
  92. package/dist/dropdown.min.js +57 -0
  93. package/dist/dropdown.rtl.min.js +57 -0
  94. package/dist/file-uploader.min.js +128 -0
  95. package/dist/file-uploader.rtl.min.js +128 -0
  96. package/dist/floating-menu-1795f0f3.js +58 -0
  97. package/dist/floating-menu-26d746d4.js +58 -0
  98. package/dist/floating-menu.min.js +50 -0
  99. package/dist/floating-menu.rtl.min.js +50 -0
  100. package/dist/focus-4a59e420.js +58 -0
  101. package/dist/focus-e79b2a40.js +58 -0
  102. package/dist/form-54a62766.js +50 -0
  103. package/dist/form-f6607c5c.js +50 -0
  104. package/dist/form-group.min.js +61 -0
  105. package/dist/form-group.rtl.min.js +61 -0
  106. package/dist/form.min.js +50 -0
  107. package/dist/form.rtl.min.js +50 -0
  108. package/dist/get-d229c408.js +50 -0
  109. package/dist/host-listener-0e75581e.js +58 -0
  110. package/dist/host-listener-42fdb22d.js +58 -0
  111. package/dist/icon-button-32eafa9f.js +71 -0
  112. package/dist/icon-button-334ed010.js +71 -0
  113. package/dist/icon-button-6974bc9a.js +71 -0
  114. package/dist/icon-button-8f6cac1e.js +71 -0
  115. package/dist/icon-button.min.js +50 -0
  116. package/dist/icon-button.rtl.min.js +50 -0
  117. package/dist/if-defined-2063a6b2.js +55 -0
  118. package/dist/if-defined-5b102a7a.js +55 -0
  119. package/dist/if-non-empty-3cac5484.js +58 -0
  120. package/dist/if-non-empty-f97d9ca3.js +58 -0
  121. package/dist/inline-loading.min.js +69 -0
  122. package/dist/inline-loading.rtl.min.js +69 -0
  123. package/dist/layer.min.js +50 -0
  124. package/dist/layer.rtl.min.js +50 -0
  125. package/dist/link-40eed54e.js +74 -0
  126. package/dist/link-42b684df.js +74 -0
  127. package/dist/link.min.js +50 -0
  128. package/dist/link.rtl.min.js +50 -0
  129. package/dist/list.min.js +65 -0
  130. package/dist/list.rtl.min.js +65 -0
  131. package/dist/loading-38056720.js +50 -0
  132. package/dist/loading-3aa24148.js +50 -0
  133. package/dist/loading-638b469c.js +50 -0
  134. package/dist/loading-dadfb60c.js +50 -0
  135. package/dist/loading-icon-5f6382df.js +82 -0
  136. package/dist/loading-icon-64a5114e.js +82 -0
  137. package/dist/loading.min.js +50 -0
  138. package/dist/loading.rtl.min.js +50 -0
  139. package/dist/modal.min.js +87 -0
  140. package/dist/modal.rtl.min.js +87 -0
  141. package/dist/multi-select.min.js +119 -0
  142. package/dist/multi-select.rtl.min.js +119 -0
  143. package/dist/notification.min.js +119 -0
  144. package/dist/notification.rtl.min.js +119 -0
  145. package/dist/number-input.min.js +130 -0
  146. package/dist/number-input.rtl.min.js +130 -0
  147. package/dist/objectSpread2-8208d45c.js +50 -0
  148. package/dist/objectSpread2-ea408269.js +50 -0
  149. package/dist/on-6c264d49.js +50 -0
  150. package/dist/overflow-menu.min.js +77 -0
  151. package/dist/overflow-menu.rtl.min.js +77 -0
  152. package/dist/pagination.min.js +142 -0
  153. package/dist/pagination.rtl.min.js +142 -0
  154. package/dist/popover-content-091b39e0.js +61 -0
  155. package/dist/popover-content-9e3bbe49.js +61 -0
  156. package/dist/popover-content-b376ac06.js +61 -0
  157. package/dist/popover-content-f183f37a.js +61 -0
  158. package/dist/popover.min.js +50 -0
  159. package/dist/popover.rtl.min.js +50 -0
  160. package/dist/progress-bar.min.js +79 -0
  161. package/dist/progress-bar.rtl.min.js +79 -0
  162. package/dist/progress-indicator.min.js +87 -0
  163. package/dist/progress-indicator.rtl.min.js +87 -0
  164. package/dist/query-6ca5e414.js +55 -0
  165. package/dist/query-assigned-elements-8e88277c.js +60 -0
  166. package/dist/radio-button.min.js +89 -0
  167. package/dist/radio-button.rtl.min.js +89 -0
  168. package/dist/radio-group-manager-3a681292.js +58 -0
  169. package/dist/radio-group-manager-f79f750e.js +58 -0
  170. package/dist/search-28dbefa9.js +79 -0
  171. package/dist/search-45d09092.js +79 -0
  172. package/dist/search-63dc2971.js +79 -0
  173. package/dist/search-f633f8c0.js +79 -0
  174. package/dist/search.min.js +53 -0
  175. package/dist/search.rtl.min.js +53 -0
  176. package/dist/select-item-355b65a2.js +50 -0
  177. package/dist/select-item-ac48969e.js +50 -0
  178. package/dist/select.min.js +121 -0
  179. package/dist/select.rtl.min.js +121 -0
  180. package/dist/settings-a675998f.js +80 -0
  181. package/dist/settings-daf72103.js +80 -0
  182. package/dist/shared-enums-c6fe8c39.js +58 -0
  183. package/dist/skeleton-placeholder.min.js +50 -0
  184. package/dist/skeleton-placeholder.rtl.min.js +50 -0
  185. package/dist/skeleton-text-3f580931.js +58 -0
  186. package/dist/skeleton-text-5cfb8d17.js +58 -0
  187. package/dist/skeleton-text-bb615714.js +58 -0
  188. package/dist/skeleton-text-e6700c4b.js +58 -0
  189. package/dist/skeleton-text.min.js +50 -0
  190. package/dist/skeleton-text.rtl.min.js +50 -0
  191. package/dist/skip-to-content.min.js +54 -0
  192. package/dist/skip-to-content.rtl.min.js +54 -0
  193. package/dist/slider.min.js +125 -0
  194. package/dist/slider.rtl.min.js +125 -0
  195. package/dist/slug.min.js +84 -0
  196. package/dist/slug.rtl.min.js +84 -0
  197. package/dist/spread-6bfe3826.js +58 -0
  198. package/dist/spread-eaa3f2b9.js +58 -0
  199. package/dist/stack.min.js +59 -0
  200. package/dist/stack.rtl.min.js +59 -0
  201. package/dist/state-63312e74.js +55 -0
  202. package/dist/structured-list.min.js +68 -0
  203. package/dist/structured-list.rtl.min.js +68 -0
  204. package/dist/tabs.min.js +114 -0
  205. package/dist/tabs.rtl.min.js +114 -0
  206. package/dist/tag.min.js +71 -0
  207. package/dist/tag.rtl.min.js +71 -0
  208. package/dist/text-input-08a8a922.js +119 -0
  209. package/dist/text-input-45ea7bf7.js +119 -0
  210. package/dist/text-input-4616af44.js +119 -0
  211. package/dist/text-input-6d08528b.js +119 -0
  212. package/dist/text-input.min.js +53 -0
  213. package/dist/text-input.rtl.min.js +53 -0
  214. package/dist/textarea.min.js +95 -0
  215. package/dist/textarea.rtl.min.js +95 -0
  216. package/dist/tile.min.js +106 -0
  217. package/dist/tile.rtl.min.js +106 -0
  218. package/dist/toggle-tip.min.js +50 -0
  219. package/dist/toggle-tip.rtl.min.js +50 -0
  220. package/dist/toggle.min.js +92 -0
  221. package/dist/toggle.rtl.min.js +92 -0
  222. package/dist/toggletip-0aa429db.js +90 -0
  223. package/dist/toggletip-0c43069a.js +90 -0
  224. package/dist/toggletip-6a368ecf.js +90 -0
  225. package/dist/toggletip-f3e84381.js +90 -0
  226. package/dist/tooltip-content-2470a2af.js +52 -0
  227. package/dist/tooltip-content-267c3eb7.js +52 -0
  228. package/dist/tooltip-content-3096d302.js +52 -0
  229. package/dist/tooltip-content-a38f2e85.js +52 -0
  230. package/dist/tooltip.min.js +50 -0
  231. package/dist/tooltip.rtl.min.js +50 -0
  232. package/dist/ui-shell.min.js +186 -0
  233. package/dist/ui-shell.rtl.min.js +186 -0
  234. package/dist/validity-d86ffa4f.js +58 -0
  235. package/es/components/accordion/accordion-item.d.ts +47 -27
  236. package/es/components/accordion/accordion-item.js +13 -3
  237. package/es/components/accordion/accordion-item.js.map +1 -1
  238. package/es/components/accordion/accordion.css.js +1 -1
  239. package/es/components/accordion/accordion.rtl.css.js +1 -1
  240. package/es/components/breadcrumb/breadcrumb.css.js +1 -1
  241. package/es/components/breadcrumb/breadcrumb.rtl.css.js +1 -1
  242. package/es/components/button/button.css.js +1 -1
  243. package/es/components/button/button.d.ts +98 -58
  244. package/es/components/button/button.js +3 -3
  245. package/es/components/button/button.js.map +1 -1
  246. package/es/components/button/button.rtl.css.js +1 -1
  247. package/es/components/checkbox/checkbox.css.js +1 -1
  248. package/es/components/checkbox/checkbox.d.ts +100 -60
  249. package/es/components/checkbox/checkbox.rtl.css.js +1 -1
  250. package/es/components/code-snippet/code-snippet.css.js +1 -1
  251. package/es/components/code-snippet/code-snippet.d.ts +47 -27
  252. package/es/components/code-snippet/code-snippet.js +1 -1
  253. package/es/components/code-snippet/code-snippet.js.map +1 -1
  254. package/es/components/code-snippet/code-snippet.rtl.css.js +1 -1
  255. package/es/components/combo-box/combo-box.css.js +1 -1
  256. package/es/components/combo-box/combo-box.d.ts +1 -1
  257. package/es/components/combo-box/combo-box.js +2 -1
  258. package/es/components/combo-box/combo-box.js.map +1 -1
  259. package/es/components/combo-box/combo-box.rtl.css.js +1 -1
  260. package/es/components/content-switcher/content-switcher-item.d.ts +47 -27
  261. package/es/components/content-switcher/content-switcher-item.js +3 -3
  262. package/es/components/content-switcher/content-switcher-item.js.map +1 -1
  263. package/es/components/content-switcher/content-switcher.css.js +1 -1
  264. package/es/components/content-switcher/content-switcher.rtl.css.js +1 -1
  265. package/es/components/copy/copy.js +14 -14
  266. package/es/components/copy/copy.js.map +1 -1
  267. package/es/components/copy-button/copy-button.css.js +1 -1
  268. package/es/components/copy-button/copy-button.d.ts +47 -27
  269. package/es/components/copy-button/copy-button.rtl.css.js +1 -1
  270. package/es/components/data-table/data-table.css.js +1 -1
  271. package/es/components/data-table/data-table.rtl.css.js +1 -1
  272. package/es/components/data-table/table-expanded-row.d.ts +47 -27
  273. package/es/components/data-table/table-header-cell.d.ts +47 -27
  274. package/es/components/data-table/table-row.d.ts +98 -58
  275. package/es/components/data-table/table-row.js +1 -1
  276. package/es/components/data-table/table-row.js.map +1 -1
  277. package/es/components/data-table/table-skeleton.js +2 -2
  278. package/es/components/data-table/table-skeleton.js.map +1 -1
  279. package/es/components/data-table/table-toolbar-search.d.ts +47 -27
  280. package/es/components/data-table/table-toolbar-search.js +1 -1
  281. package/es/components/data-table/table-toolbar-search.js.map +1 -1
  282. package/es/components/data-table/table.d.ts +47 -27
  283. package/es/components/data-table/table.js +2 -2
  284. package/es/components/data-table/table.js.map +1 -1
  285. package/es/components/date-picker/date-picker-input.d.ts +59 -27
  286. package/es/components/date-picker/date-picker-input.js +60 -19
  287. package/es/components/date-picker/date-picker-input.js.map +1 -1
  288. package/es/components/date-picker/date-picker.css.js +1 -1
  289. package/es/components/date-picker/date-picker.d.ts +98 -58
  290. package/es/components/date-picker/date-picker.rtl.css.js +1 -1
  291. package/es/components/dropdown/dropdown.css.js +1 -1
  292. package/es/components/dropdown/dropdown.d.ts +219 -126
  293. package/es/components/dropdown/dropdown.js +47 -1
  294. package/es/components/dropdown/dropdown.js.map +1 -1
  295. package/es/components/dropdown/dropdown.rtl.css.js +1 -1
  296. package/es/components/file-uploader/file-uploader-button.d.ts +47 -27
  297. package/es/components/file-uploader/file-uploader-button.js +7 -7
  298. package/es/components/file-uploader/file-uploader-button.js.map +1 -1
  299. package/es/components/file-uploader/file-uploader-drop-container.d.ts +47 -27
  300. package/es/components/file-uploader/file-uploader-drop-container.js +1 -1
  301. package/es/components/file-uploader/file-uploader-drop-container.js.map +1 -1
  302. package/es/components/file-uploader/file-uploader.css.js +1 -1
  303. package/es/components/file-uploader/file-uploader.rtl.css.js +1 -1
  304. package/es/components/floating-menu/floating-menu.d.ts +98 -58
  305. package/es/components/floating-menu/floating-menu.js +1 -1
  306. package/es/components/floating-menu/floating-menu.js.map +1 -1
  307. package/es/components/form/form-item.css.js +1 -1
  308. package/es/components/form/form-item.rtl.css.js +1 -1
  309. package/es/components/form-group/form-group.css.js +1 -1
  310. package/es/components/form-group/form-group.rtl.css.js +1 -1
  311. package/es/components/icon-button/icon-button.css.js +1 -1
  312. package/es/components/icon-button/icon-button.js +3 -3
  313. package/es/components/icon-button/icon-button.js.map +1 -1
  314. package/es/components/icon-button/icon-button.rtl.css.js +1 -1
  315. package/es/components/inline-loading/inline-loading.css.js +1 -1
  316. package/es/components/inline-loading/inline-loading.rtl.css.js +1 -1
  317. package/es/components/link/link.css.js +1 -1
  318. package/es/components/link/link.d.ts +54 -42
  319. package/es/components/link/link.js +7 -7
  320. package/es/components/link/link.js.map +1 -1
  321. package/es/components/link/link.rtl.css.js +1 -1
  322. package/es/components/list/list.css.js +1 -1
  323. package/es/components/list/list.rtl.css.js +1 -1
  324. package/es/components/loading/loading.css.js +1 -1
  325. package/es/components/loading/loading.rtl.css.js +1 -1
  326. package/es/components/modal/modal-close-button.d.ts +47 -27
  327. package/es/components/modal/modal.css.js +1 -1
  328. package/es/components/modal/modal.d.ts +47 -27
  329. package/es/components/modal/modal.rtl.css.js +1 -1
  330. package/es/components/multi-select/multi-select.css.js +1 -1
  331. package/es/components/multi-select/multi-select.js +15 -6
  332. package/es/components/multi-select/multi-select.js.map +1 -1
  333. package/es/components/multi-select/multi-select.rtl.css.js +1 -1
  334. package/es/components/notification/actionable-notification-button.js +1 -1
  335. package/es/components/notification/actionable-notification-button.js.map +1 -1
  336. package/es/components/notification/actionable-notification.css.js +1 -1
  337. package/es/components/notification/actionable-notification.d.ts +47 -27
  338. package/es/components/notification/actionable-notification.js +5 -5
  339. package/es/components/notification/actionable-notification.js.map +1 -1
  340. package/es/components/notification/actionable-notification.rtl.css.js +1 -1
  341. package/es/components/notification/inline-notification.css.js +1 -1
  342. package/es/components/notification/inline-notification.d.ts +47 -27
  343. package/es/components/notification/inline-notification.rtl.css.js +1 -1
  344. package/es/components/notification/toast-notification.css.js +1 -1
  345. package/es/components/notification/toast-notification.rtl.css.js +1 -1
  346. package/es/components/number-input/number-input.css.js +1 -1
  347. package/es/components/number-input/number-input.js +4 -2
  348. package/es/components/number-input/number-input.js.map +1 -1
  349. package/es/components/number-input/number-input.rtl.css.js +1 -1
  350. package/es/components/overflow-menu/overflow-menu-body.js +1 -1
  351. package/es/components/overflow-menu/overflow-menu-body.js.map +1 -1
  352. package/es/components/overflow-menu/overflow-menu-item.d.ts +47 -27
  353. package/es/components/overflow-menu/overflow-menu.css.js +1 -1
  354. package/es/components/overflow-menu/overflow-menu.d.ts +98 -58
  355. package/es/components/overflow-menu/overflow-menu.js +13 -13
  356. package/es/components/overflow-menu/overflow-menu.js.map +1 -1
  357. package/es/components/overflow-menu/overflow-menu.rtl.css.js +1 -1
  358. package/es/components/pagination/pagination.css.js +1 -1
  359. package/es/components/pagination/pagination.d.ts +100 -60
  360. package/es/components/pagination/pagination.js +6 -2
  361. package/es/components/pagination/pagination.js.map +1 -1
  362. package/es/components/pagination/pagination.rtl.css.js +1 -1
  363. package/es/components/popover/popover.css.js +1 -1
  364. package/es/components/popover/popover.rtl.css.js +1 -1
  365. package/es/components/progress-bar/progress-bar.css.js +1 -1
  366. package/es/components/progress-bar/progress-bar.rtl.css.js +1 -1
  367. package/es/components/progress-indicator/progress-indicator.css.js +1 -1
  368. package/es/components/progress-indicator/progress-indicator.rtl.css.js +1 -1
  369. package/es/components/progress-indicator/progress-step.d.ts +47 -27
  370. package/es/components/radio-button/radio-button-group.d.ts +98 -58
  371. package/es/components/radio-button/radio-button.css.js +1 -1
  372. package/es/components/radio-button/radio-button.d.ts +98 -58
  373. package/es/components/radio-button/radio-button.rtl.css.js +1 -1
  374. package/es/components/search/search.css.js +1 -1
  375. package/es/components/search/search.d.ts +149 -89
  376. package/es/components/search/search.js +3 -3
  377. package/es/components/search/search.js.map +1 -1
  378. package/es/components/search/search.rtl.css.js +1 -1
  379. package/es/components/select/select.css.js +1 -1
  380. package/es/components/select/select.d.ts +59 -27
  381. package/es/components/select/select.js +43 -3
  382. package/es/components/select/select.js.map +1 -1
  383. package/es/components/select/select.rtl.css.js +1 -1
  384. package/es/components/skeleton-placeholder/skeleton-placeholder.css.js +1 -1
  385. package/es/components/skeleton-placeholder/skeleton-placeholder.rtl.css.js +1 -1
  386. package/es/components/skeleton-text/skeleton-text.css.js +1 -1
  387. package/es/components/skeleton-text/skeleton-text.rtl.css.js +1 -1
  388. package/es/components/skip-to-content/skip-to-content.css.js +1 -1
  389. package/es/components/skip-to-content/skip-to-content.d.ts +47 -27
  390. package/es/components/skip-to-content/skip-to-content.rtl.css.js +1 -1
  391. package/es/components/slider/slider-input.d.ts +47 -27
  392. package/es/components/slider/slider.css.js +1 -1
  393. package/es/components/slider/slider.d.ts +149 -89
  394. package/es/components/slider/slider.js +2 -2
  395. package/es/components/slider/slider.js.map +1 -1
  396. package/es/components/slider/slider.rtl.css.js +1 -1
  397. package/es/components/slug/defs.d.ts +73 -0
  398. package/es/components/slug/defs.js +42 -0
  399. package/es/components/slug/defs.js.map +1 -0
  400. package/es/components/slug/index.d.ts +12 -0
  401. package/es/components/slug/index.js +12 -0
  402. package/es/components/slug/index.js.map +1 -0
  403. package/es/components/slug/slug-action-button.d.ts +23 -0
  404. package/es/components/slug/slug-action-button.js +51 -0
  405. package/es/components/slug/slug-action-button.js.map +1 -0
  406. package/es/components/slug/slug.css.js +12 -0
  407. package/es/components/slug/slug.d.ts +59 -0
  408. package/es/components/slug/slug.js +270 -0
  409. package/es/components/slug/slug.js.map +1 -0
  410. package/es/components/slug/slug.rtl.css.js +12 -0
  411. package/es/components/stack/stack.css.js +1 -1
  412. package/es/components/stack/stack.js +4 -3
  413. package/es/components/stack/stack.js.map +1 -1
  414. package/es/components/stack/stack.rtl.css.js +1 -1
  415. package/es/components/structured-list/structured-list-row.d.ts +47 -27
  416. package/es/components/structured-list/structured-list-row.js +1 -1
  417. package/es/components/structured-list/structured-list-row.js.map +1 -1
  418. package/es/components/structured-list/structured-list.css.js +1 -1
  419. package/es/components/structured-list/structured-list.d.ts +47 -27
  420. package/es/components/structured-list/structured-list.rtl.css.js +1 -1
  421. package/es/components/tabs/tab.d.ts +8 -0
  422. package/es/components/tabs/tab.js +30 -5
  423. package/es/components/tabs/tab.js.map +1 -1
  424. package/es/components/tabs/tabs.css.js +1 -1
  425. package/es/components/tabs/tabs.d.ts +58 -29
  426. package/es/components/tabs/tabs.js +53 -25
  427. package/es/components/tabs/tabs.js.map +1 -1
  428. package/es/components/tabs/tabs.rtl.css.js +1 -1
  429. package/es/components/tag/tag.css.js +1 -1
  430. package/es/components/tag/tag.d.ts +98 -58
  431. package/es/components/tag/tag.rtl.css.js +1 -1
  432. package/es/components/text-input/text-input.css.js +1 -1
  433. package/es/components/text-input/text-input.d.ts +112 -60
  434. package/es/components/text-input/text-input.js +46 -8
  435. package/es/components/text-input/text-input.js.map +1 -1
  436. package/es/components/text-input/text-input.rtl.css.js +1 -1
  437. package/es/components/textarea/textarea.css.js +1 -1
  438. package/es/components/textarea/textarea.js +4 -2
  439. package/es/components/textarea/textarea.js.map +1 -1
  440. package/es/components/textarea/textarea.rtl.css.js +1 -1
  441. package/es/components/tile/defs.d.ts +1 -1
  442. package/es/components/tile/defs.js +1 -1
  443. package/es/components/tile/defs.js.map +1 -1
  444. package/es/components/tile/expandable-tile.d.ts +98 -58
  445. package/es/components/tile/selectable-tile.d.ts +98 -58
  446. package/es/components/tile/tile-group.d.ts +47 -27
  447. package/es/components/tile/tile.css.js +1 -1
  448. package/es/components/tile/tile.js +1 -1
  449. package/es/components/tile/tile.js.map +1 -1
  450. package/es/components/tile/tile.rtl.css.js +1 -1
  451. package/es/components/toggle/index.d.ts +1 -1
  452. package/es/components/toggle/index.js +1 -1
  453. package/es/components/toggle/index.js.map +1 -1
  454. package/es/components/toggle/toggle.css.js +1 -1
  455. package/es/components/toggle/toggle.d.ts +47 -27
  456. package/es/components/toggle/toggle.rtl.css.js +1 -1
  457. package/es/components/toggle-tip/toggletip.css.js +1 -1
  458. package/es/components/toggle-tip/toggletip.d.ts +398 -29
  459. package/es/components/toggle-tip/toggletip.js +107 -32
  460. package/es/components/toggle-tip/toggletip.js.map +1 -1
  461. package/es/components/toggle-tip/toggletip.rtl.css.js +1 -1
  462. package/es/components/tooltip/tooltip-content.js +2 -2
  463. package/es/components/tooltip/tooltip-content.js.map +1 -1
  464. package/es/components/tooltip/tooltip.css.js +1 -1
  465. package/es/components/tooltip/tooltip.d.ts +47 -27
  466. package/es/components/tooltip/tooltip.js +3 -3
  467. package/es/components/tooltip/tooltip.js.map +1 -1
  468. package/es/components/tooltip/tooltip.rtl.css.js +1 -1
  469. package/es/components/ui-shell/header-menu-button.d.ts +47 -27
  470. package/es/components/ui-shell/header-menu.d.ts +98 -58
  471. package/es/components/ui-shell/header-name.d.ts +47 -27
  472. package/es/components/ui-shell/header-nav-item.d.ts +47 -27
  473. package/es/components/ui-shell/header.css.js +1 -1
  474. package/es/components/ui-shell/header.rtl.css.js +1 -1
  475. package/es/components/ui-shell/side-nav-link.d.ts +47 -27
  476. package/es/components/ui-shell/side-nav-link.js +1 -1
  477. package/es/components/ui-shell/side-nav-link.js.map +1 -1
  478. package/es/components/ui-shell/side-nav-menu-item.d.ts +48 -27
  479. package/es/components/ui-shell/side-nav-menu-item.js +11 -0
  480. package/es/components/ui-shell/side-nav-menu-item.js.map +1 -1
  481. package/es/components/ui-shell/side-nav-menu.d.ts +47 -27
  482. package/es/components/ui-shell/side-nav-menu.js +1 -1
  483. package/es/components/ui-shell/side-nav-menu.js.map +1 -1
  484. package/es/components/ui-shell/side-nav.css.js +1 -1
  485. package/es/components/ui-shell/side-nav.d.ts +47 -27
  486. package/es/components/ui-shell/side-nav.js +1 -1
  487. package/es/components/ui-shell/side-nav.js.map +1 -1
  488. package/es/components/ui-shell/side-nav.rtl.css.js +1 -1
  489. package/es/components/ui-shell/switcher-item.d.ts +47 -27
  490. package/es/components-react/slug/defs.d.ts +14 -0
  491. package/es/components-react/slug/defs.js +9 -0
  492. package/es/components-react/slug/index.d.ts +14 -0
  493. package/es/components-react/slug/index.js +8 -0
  494. package/es/components-react/slug/slug-action-button.d.ts +13 -0
  495. package/es/components-react/slug/slug-action-button.js +22 -0
  496. package/es/components-react/slug/slug.d.ts +13 -0
  497. package/es/components-react/slug/slug.js +22 -0
  498. package/es/globals/decorators/carbon-element.d.ts +1 -1
  499. package/es/globals/internal/feature-flags.d.ts +25 -0
  500. package/es/globals/internal/feature-flags.js +27 -0
  501. package/es/globals/internal/feature-flags.js.map +1 -0
  502. package/es/globals/internal/radio-group-manager.d.ts +1 -1
  503. package/es/globals/mixins/focus.d.ts +47 -27
  504. package/es/globals/mixins/form.d.ts +47 -27
  505. package/es/globals/mixins/host-listener.d.ts +47 -27
  506. package/es/globals/mixins/validity.d.ts +47 -27
  507. package/es/globals/scss/grid.css.js +1 -1
  508. package/es/globals/scss/grid.rtl.css.js +1 -1
  509. package/es/globals/scss/themes.css.js +1 -1
  510. package/es/globals/scss/themes.rtl.css.js +1 -1
  511. package/es/globals/settings.d.ts +1 -1
  512. package/es/globals/wrappers/createReactCustomElementType.js +2 -1
  513. package/es/globals/wrappers/createReactCustomElementType.js.map +1 -1
  514. package/es/icons/AI/16.d.ts +17 -0
  515. package/es/icons/AI/16.js +15 -0
  516. package/es/icons/AI/20.d.ts +17 -0
  517. package/es/icons/AI/20.js +15 -0
  518. package/es/icons/AI/24.d.ts +17 -0
  519. package/es/icons/AI/24.js +15 -0
  520. package/es/icons/AI/32.d.ts +17 -0
  521. package/es/icons/AI/32.js +15 -0
  522. package/es/icons/IP/16.d.ts +17 -0
  523. package/es/icons/IP/16.js +15 -0
  524. package/es/icons/IP/20.d.ts +17 -0
  525. package/es/icons/IP/20.js +15 -0
  526. package/es/icons/IP/24.d.ts +17 -0
  527. package/es/icons/IP/24.js +15 -0
  528. package/es/icons/IP/32.d.ts +17 -0
  529. package/es/icons/IP/32.js +15 -0
  530. package/es/icons/MAC/16.d.ts +17 -0
  531. package/es/icons/MAC/16.js +15 -0
  532. package/es/icons/MAC/20.d.ts +17 -0
  533. package/es/icons/MAC/20.js +15 -0
  534. package/es/icons/MAC/24.d.ts +17 -0
  535. package/es/icons/MAC/24.js +15 -0
  536. package/es/icons/MAC/32.d.ts +17 -0
  537. package/es/icons/MAC/32.js +15 -0
  538. package/es/icons/URL/16.d.ts +17 -0
  539. package/es/icons/URL/16.js +15 -0
  540. package/es/icons/URL/20.d.ts +17 -0
  541. package/es/icons/URL/20.js +15 -0
  542. package/es/icons/URL/24.d.ts +17 -0
  543. package/es/icons/URL/24.js +15 -0
  544. package/es/icons/URL/32.d.ts +17 -0
  545. package/es/icons/URL/32.js +15 -0
  546. package/es/icons/add--large/16.d.ts +17 -0
  547. package/es/icons/add--large/16.js +15 -0
  548. package/es/icons/add--large/20.d.ts +17 -0
  549. package/es/icons/add--large/20.js +15 -0
  550. package/es/icons/add--large/24.d.ts +17 -0
  551. package/es/icons/add--large/24.js +15 -0
  552. package/es/icons/add--large/32.d.ts +17 -0
  553. package/es/icons/add--large/32.js +15 -0
  554. package/es/icons/ai-governance--lifecycle/16.d.ts +17 -0
  555. package/es/icons/ai-governance--lifecycle/16.js +15 -0
  556. package/es/icons/ai-governance--lifecycle/20.d.ts +17 -0
  557. package/es/icons/ai-governance--lifecycle/20.js +15 -0
  558. package/es/icons/ai-governance--lifecycle/24.d.ts +17 -0
  559. package/es/icons/ai-governance--lifecycle/24.js +15 -0
  560. package/es/icons/ai-governance--lifecycle/32.d.ts +17 -0
  561. package/es/icons/ai-governance--lifecycle/32.js +15 -0
  562. package/es/icons/ai-governance--tracked/16.d.ts +17 -0
  563. package/es/icons/ai-governance--tracked/16.js +15 -0
  564. package/es/icons/ai-governance--tracked/20.d.ts +17 -0
  565. package/es/icons/ai-governance--tracked/20.js +15 -0
  566. package/es/icons/ai-governance--tracked/24.d.ts +17 -0
  567. package/es/icons/ai-governance--tracked/24.js +15 -0
  568. package/es/icons/ai-governance--tracked/32.d.ts +17 -0
  569. package/es/icons/ai-governance--tracked/32.js +15 -0
  570. package/es/icons/ai-governance--untracked/16.d.ts +17 -0
  571. package/es/icons/ai-governance--untracked/16.js +15 -0
  572. package/es/icons/ai-governance--untracked/20.d.ts +17 -0
  573. package/es/icons/ai-governance--untracked/20.js +15 -0
  574. package/es/icons/ai-governance--untracked/24.d.ts +17 -0
  575. package/es/icons/ai-governance--untracked/24.js +15 -0
  576. package/es/icons/ai-governance--untracked/32.d.ts +17 -0
  577. package/es/icons/ai-governance--untracked/32.js +15 -0
  578. package/es/icons/arithmetic-mean/16.d.ts +17 -0
  579. package/es/icons/arithmetic-mean/16.js +15 -0
  580. package/es/icons/arithmetic-mean/20.d.ts +17 -0
  581. package/es/icons/arithmetic-mean/20.js +15 -0
  582. package/es/icons/arithmetic-mean/24.d.ts +17 -0
  583. package/es/icons/arithmetic-mean/24.js +15 -0
  584. package/es/icons/arithmetic-mean/32.d.ts +17 -0
  585. package/es/icons/arithmetic-mean/32.js +15 -0
  586. package/es/icons/arithmetic-median/16.d.ts +17 -0
  587. package/es/icons/arithmetic-median/16.js +15 -0
  588. package/es/icons/arithmetic-median/20.d.ts +17 -0
  589. package/es/icons/arithmetic-median/20.js +15 -0
  590. package/es/icons/arithmetic-median/24.d.ts +17 -0
  591. package/es/icons/arithmetic-median/24.js +15 -0
  592. package/es/icons/arithmetic-median/32.d.ts +17 -0
  593. package/es/icons/arithmetic-median/32.js +15 -0
  594. package/es/icons/async/16.d.ts +17 -0
  595. package/es/icons/async/16.js +15 -0
  596. package/es/icons/async/20.d.ts +17 -0
  597. package/es/icons/async/20.js +15 -0
  598. package/es/icons/async/24.d.ts +17 -0
  599. package/es/icons/async/24.js +15 -0
  600. package/es/icons/async/32.d.ts +17 -0
  601. package/es/icons/async/32.js +15 -0
  602. package/es/icons/business-processes/16.d.ts +17 -0
  603. package/es/icons/business-processes/16.js +15 -0
  604. package/es/icons/business-processes/20.d.ts +17 -0
  605. package/es/icons/business-processes/20.js +15 -0
  606. package/es/icons/business-processes/24.d.ts +17 -0
  607. package/es/icons/business-processes/24.js +15 -0
  608. package/es/icons/business-processes/32.d.ts +17 -0
  609. package/es/icons/business-processes/32.js +15 -0
  610. package/es/icons/calls/16.d.ts +17 -0
  611. package/es/icons/calls/16.js +15 -0
  612. package/es/icons/calls/20.d.ts +17 -0
  613. package/es/icons/calls/20.js +15 -0
  614. package/es/icons/calls/24.d.ts +17 -0
  615. package/es/icons/calls/24.js +15 -0
  616. package/es/icons/calls/32.d.ts +17 -0
  617. package/es/icons/calls/32.js +15 -0
  618. package/es/icons/calls--all/16.d.ts +17 -0
  619. package/es/icons/calls--all/16.js +15 -0
  620. package/es/icons/calls--all/20.d.ts +17 -0
  621. package/es/icons/calls--all/20.js +15 -0
  622. package/es/icons/calls--all/24.d.ts +17 -0
  623. package/es/icons/calls--all/24.js +15 -0
  624. package/es/icons/calls--all/32.d.ts +17 -0
  625. package/es/icons/calls--all/32.js +15 -0
  626. package/es/icons/calls--incoming/16.d.ts +17 -0
  627. package/es/icons/calls--incoming/16.js +15 -0
  628. package/es/icons/calls--incoming/20.d.ts +17 -0
  629. package/es/icons/calls--incoming/20.js +15 -0
  630. package/es/icons/calls--incoming/24.d.ts +17 -0
  631. package/es/icons/calls--incoming/24.js +15 -0
  632. package/es/icons/calls--incoming/32.d.ts +17 -0
  633. package/es/icons/calls--incoming/32.js +15 -0
  634. package/es/icons/carbon-for-mobile/16.d.ts +17 -0
  635. package/es/icons/carbon-for-mobile/16.js +15 -0
  636. package/es/icons/carbon-for-mobile/20.d.ts +17 -0
  637. package/es/icons/carbon-for-mobile/20.js +15 -0
  638. package/es/icons/carbon-for-mobile/24.d.ts +17 -0
  639. package/es/icons/carbon-for-mobile/24.js +15 -0
  640. package/es/icons/carbon-for-mobile/32.d.ts +17 -0
  641. package/es/icons/carbon-for-mobile/32.js +15 -0
  642. package/es/icons/chart--dual-y-axis/16.d.ts +17 -0
  643. package/es/icons/chart--dual-y-axis/16.js +15 -0
  644. package/es/icons/chart--dual-y-axis/20.d.ts +17 -0
  645. package/es/icons/chart--dual-y-axis/20.js +15 -0
  646. package/es/icons/chart--dual-y-axis/24.d.ts +17 -0
  647. package/es/icons/chart--dual-y-axis/24.js +15 -0
  648. package/es/icons/chart--dual-y-axis/32.d.ts +17 -0
  649. package/es/icons/chart--dual-y-axis/32.js +15 -0
  650. package/es/icons/chart--planning-waterfall/16.d.ts +17 -0
  651. package/es/icons/chart--planning-waterfall/16.js +15 -0
  652. package/es/icons/chart--planning-waterfall/20.d.ts +17 -0
  653. package/es/icons/chart--planning-waterfall/20.js +15 -0
  654. package/es/icons/chart--planning-waterfall/24.d.ts +17 -0
  655. package/es/icons/chart--planning-waterfall/24.js +15 -0
  656. package/es/icons/chart--planning-waterfall/32.d.ts +17 -0
  657. package/es/icons/chart--planning-waterfall/32.js +15 -0
  658. package/es/icons/chevron--down--outline/16.d.ts +17 -0
  659. package/es/icons/chevron--down--outline/16.js +15 -0
  660. package/es/icons/chevron--down--outline/20.d.ts +17 -0
  661. package/es/icons/chevron--down--outline/20.js +15 -0
  662. package/es/icons/chevron--down--outline/24.d.ts +17 -0
  663. package/es/icons/chevron--down--outline/24.js +15 -0
  664. package/es/icons/chevron--down--outline/32.d.ts +17 -0
  665. package/es/icons/chevron--down--outline/32.js +15 -0
  666. package/es/icons/chevron--up--outline/16.d.ts +17 -0
  667. package/es/icons/chevron--up--outline/16.js +15 -0
  668. package/es/icons/chevron--up--outline/20.d.ts +17 -0
  669. package/es/icons/chevron--up--outline/20.js +15 -0
  670. package/es/icons/chevron--up--outline/24.d.ts +17 -0
  671. package/es/icons/chevron--up--outline/24.js +15 -0
  672. package/es/icons/chevron--up--outline/32.d.ts +17 -0
  673. package/es/icons/chevron--up--outline/32.js +15 -0
  674. package/es/icons/close/16.js +1 -1
  675. package/es/icons/close/20.js +1 -1
  676. package/es/icons/close/24.js +1 -1
  677. package/es/icons/close/32.js +1 -1
  678. package/es/icons/close--large/16.d.ts +17 -0
  679. package/es/icons/close--large/16.js +15 -0
  680. package/es/icons/close--large/20.d.ts +17 -0
  681. package/es/icons/close--large/20.js +15 -0
  682. package/es/icons/close--large/24.d.ts +17 -0
  683. package/es/icons/close--large/24.js +15 -0
  684. package/es/icons/close--large/32.d.ts +17 -0
  685. package/es/icons/close--large/32.js +15 -0
  686. package/es/icons/customer/16.d.ts +17 -0
  687. package/es/icons/customer/16.js +15 -0
  688. package/es/icons/customer/20.d.ts +17 -0
  689. package/es/icons/customer/20.js +15 -0
  690. package/es/icons/customer/24.d.ts +17 -0
  691. package/es/icons/customer/24.js +15 -0
  692. package/es/icons/customer/32.d.ts +17 -0
  693. package/es/icons/customer/32.js +15 -0
  694. package/es/icons/data--reference/16.js +1 -1
  695. package/es/icons/data--reference/20.js +1 -1
  696. package/es/icons/data--reference/24.js +1 -1
  697. package/es/icons/data--reference/32.js +1 -1
  698. package/es/icons/data--set/16.js +1 -1
  699. package/es/icons/data--set/20.js +1 -1
  700. package/es/icons/data--set/24.js +1 -1
  701. package/es/icons/data--set/32.js +1 -1
  702. package/es/icons/data--unreal/16.d.ts +17 -0
  703. package/es/icons/data--unreal/16.js +15 -0
  704. package/es/icons/data--unreal/20.d.ts +17 -0
  705. package/es/icons/data--unreal/20.js +15 -0
  706. package/es/icons/data--unreal/24.d.ts +17 -0
  707. package/es/icons/data--unreal/24.js +15 -0
  708. package/es/icons/data--unreal/32.d.ts +17 -0
  709. package/es/icons/data--unreal/32.js +15 -0
  710. package/es/icons/data-analytics/16.d.ts +17 -0
  711. package/es/icons/data-analytics/16.js +15 -0
  712. package/es/icons/data-analytics/20.d.ts +17 -0
  713. package/es/icons/data-analytics/20.js +15 -0
  714. package/es/icons/data-analytics/24.d.ts +17 -0
  715. package/es/icons/data-analytics/24.js +15 -0
  716. package/es/icons/data-analytics/32.d.ts +17 -0
  717. package/es/icons/data-analytics/32.js +15 -0
  718. package/es/icons/database--enterprisedb/16.d.ts +17 -0
  719. package/es/icons/database--enterprisedb/16.js +15 -0
  720. package/es/icons/database--enterprisedb/20.d.ts +17 -0
  721. package/es/icons/database--enterprisedb/20.js +15 -0
  722. package/es/icons/database--enterprisedb/24.d.ts +17 -0
  723. package/es/icons/database--enterprisedb/24.js +15 -0
  724. package/es/icons/database--enterprisedb/32.d.ts +17 -0
  725. package/es/icons/database--enterprisedb/32.js +15 -0
  726. package/es/icons/database--messaging/16.d.ts +17 -0
  727. package/es/icons/database--messaging/16.js +15 -0
  728. package/es/icons/database--messaging/20.d.ts +17 -0
  729. package/es/icons/database--messaging/20.js +15 -0
  730. package/es/icons/database--messaging/24.d.ts +17 -0
  731. package/es/icons/database--messaging/24.js +15 -0
  732. package/es/icons/database--messaging/32.d.ts +17 -0
  733. package/es/icons/database--messaging/32.js +15 -0
  734. package/es/icons/delete/16.d.ts +17 -0
  735. package/es/icons/delete/16.js +15 -0
  736. package/es/icons/delete/20.d.ts +17 -0
  737. package/es/icons/delete/20.js +15 -0
  738. package/es/icons/delete/24.d.ts +17 -0
  739. package/es/icons/delete/24.js +15 -0
  740. package/es/icons/delete/32.d.ts +17 -0
  741. package/es/icons/delete/32.js +15 -0
  742. package/es/icons/demo/16.d.ts +17 -0
  743. package/es/icons/demo/16.js +15 -0
  744. package/es/icons/demo/20.d.ts +17 -0
  745. package/es/icons/demo/20.js +15 -0
  746. package/es/icons/demo/24.d.ts +17 -0
  747. package/es/icons/demo/24.js +15 -0
  748. package/es/icons/demo/32.d.ts +17 -0
  749. package/es/icons/demo/32.js +15 -0
  750. package/es/icons/devices--apps/16.d.ts +17 -0
  751. package/es/icons/devices--apps/16.js +15 -0
  752. package/es/icons/devices--apps/20.d.ts +17 -0
  753. package/es/icons/devices--apps/20.js +15 -0
  754. package/es/icons/devices--apps/24.d.ts +17 -0
  755. package/es/icons/devices--apps/24.js +15 -0
  756. package/es/icons/devices--apps/32.d.ts +17 -0
  757. package/es/icons/devices--apps/32.js +15 -0
  758. package/es/icons/downstream/16.d.ts +17 -0
  759. package/es/icons/downstream/16.js +15 -0
  760. package/es/icons/downstream/20.d.ts +17 -0
  761. package/es/icons/downstream/20.js +15 -0
  762. package/es/icons/downstream/24.d.ts +17 -0
  763. package/es/icons/downstream/24.js +15 -0
  764. package/es/icons/downstream/32.d.ts +17 -0
  765. package/es/icons/downstream/32.js +15 -0
  766. package/es/icons/equal--approximately/16.d.ts +17 -0
  767. package/es/icons/equal--approximately/16.js +15 -0
  768. package/es/icons/equal--approximately/20.d.ts +17 -0
  769. package/es/icons/equal--approximately/20.js +15 -0
  770. package/es/icons/equal--approximately/24.d.ts +17 -0
  771. package/es/icons/equal--approximately/24.js +15 -0
  772. package/es/icons/equal--approximately/32.d.ts +17 -0
  773. package/es/icons/equal--approximately/32.js +15 -0
  774. package/es/icons/event--change/16.d.ts +17 -0
  775. package/es/icons/event--change/16.js +15 -0
  776. package/es/icons/event--change/20.d.ts +17 -0
  777. package/es/icons/event--change/20.js +15 -0
  778. package/es/icons/event--change/24.d.ts +17 -0
  779. package/es/icons/event--change/24.js +15 -0
  780. package/es/icons/event--change/32.d.ts +17 -0
  781. package/es/icons/event--change/32.js +15 -0
  782. package/es/icons/event--incident/16.d.ts +17 -0
  783. package/es/icons/event--incident/16.js +15 -0
  784. package/es/icons/event--incident/20.d.ts +17 -0
  785. package/es/icons/event--incident/20.js +15 -0
  786. package/es/icons/event--incident/24.d.ts +17 -0
  787. package/es/icons/event--incident/24.js +15 -0
  788. package/es/icons/event--incident/32.d.ts +17 -0
  789. package/es/icons/event--incident/32.js +15 -0
  790. package/es/icons/event--warning/16.d.ts +17 -0
  791. package/es/icons/event--warning/16.js +15 -0
  792. package/es/icons/event--warning/20.d.ts +17 -0
  793. package/es/icons/event--warning/20.js +15 -0
  794. package/es/icons/event--warning/24.d.ts +17 -0
  795. package/es/icons/event--warning/24.js +15 -0
  796. package/es/icons/event--warning/32.d.ts +17 -0
  797. package/es/icons/event--warning/32.js +15 -0
  798. package/es/icons/foundation-model/16.d.ts +17 -0
  799. package/es/icons/foundation-model/16.js +15 -0
  800. package/es/icons/foundation-model/20.d.ts +17 -0
  801. package/es/icons/foundation-model/20.js +15 -0
  802. package/es/icons/foundation-model/24.d.ts +17 -0
  803. package/es/icons/foundation-model/24.js +15 -0
  804. package/es/icons/foundation-model/32.d.ts +17 -0
  805. package/es/icons/foundation-model/32.js +15 -0
  806. package/es/icons/global-loan-and-trial/16.d.ts +17 -0
  807. package/es/icons/global-loan-and-trial/16.js +15 -0
  808. package/es/icons/global-loan-and-trial/20.d.ts +17 -0
  809. package/es/icons/global-loan-and-trial/20.js +15 -0
  810. package/es/icons/global-loan-and-trial/24.d.ts +17 -0
  811. package/es/icons/global-loan-and-trial/24.js +15 -0
  812. package/es/icons/global-loan-and-trial/32.d.ts +17 -0
  813. package/es/icons/global-loan-and-trial/32.js +15 -0
  814. package/es/icons/ibm--ai-on-z/16.d.ts +17 -0
  815. package/es/icons/ibm--ai-on-z/16.js +15 -0
  816. package/es/icons/ibm--ai-on-z/20.d.ts +17 -0
  817. package/es/icons/ibm--ai-on-z/20.js +15 -0
  818. package/es/icons/ibm--ai-on-z/24.d.ts +17 -0
  819. package/es/icons/ibm--ai-on-z/24.js +15 -0
  820. package/es/icons/ibm--ai-on-z/32.d.ts +17 -0
  821. package/es/icons/ibm--ai-on-z/32.js +15 -0
  822. package/es/icons/ibm--aiops-insights/16.d.ts +17 -0
  823. package/es/icons/ibm--aiops-insights/16.js +15 -0
  824. package/es/icons/ibm--aiops-insights/20.d.ts +17 -0
  825. package/es/icons/ibm--aiops-insights/20.js +15 -0
  826. package/es/icons/ibm--aiops-insights/24.d.ts +17 -0
  827. package/es/icons/ibm--aiops-insights/24.js +15 -0
  828. package/es/icons/ibm--aiops-insights/32.d.ts +17 -0
  829. package/es/icons/ibm--aiops-insights/32.js +15 -0
  830. package/es/icons/ibm--cloudant/16.d.ts +17 -0
  831. package/es/icons/ibm--cloudant/16.js +15 -0
  832. package/es/icons/ibm--cloudant/20.d.ts +17 -0
  833. package/es/icons/ibm--cloudant/20.js +15 -0
  834. package/es/icons/ibm--cloudant/24.d.ts +17 -0
  835. package/es/icons/ibm--cloudant/24.js +15 -0
  836. package/es/icons/ibm--cloudant/32.d.ts +17 -0
  837. package/es/icons/ibm--cloudant/32.js +15 -0
  838. package/es/icons/ibm--data-product-exchange/16.d.ts +17 -0
  839. package/es/icons/ibm--data-product-exchange/16.js +15 -0
  840. package/es/icons/ibm--data-product-exchange/20.d.ts +17 -0
  841. package/es/icons/ibm--data-product-exchange/20.js +15 -0
  842. package/es/icons/ibm--data-product-exchange/24.d.ts +17 -0
  843. package/es/icons/ibm--data-product-exchange/24.js +15 -0
  844. package/es/icons/ibm--data-product-exchange/32.d.ts +17 -0
  845. package/es/icons/ibm--data-product-exchange/32.js +15 -0
  846. package/es/icons/ibm--db2/16.js +1 -1
  847. package/es/icons/ibm--db2/20.js +1 -1
  848. package/es/icons/ibm--db2/24.js +1 -1
  849. package/es/icons/ibm--db2/32.js +1 -1
  850. package/es/icons/ibm--db2-warehouse/16.d.ts +17 -0
  851. package/es/icons/ibm--db2-warehouse/16.js +15 -0
  852. package/es/icons/ibm--db2-warehouse/20.d.ts +17 -0
  853. package/es/icons/ibm--db2-warehouse/20.js +15 -0
  854. package/es/icons/ibm--db2-warehouse/24.d.ts +17 -0
  855. package/es/icons/ibm--db2-warehouse/24.js +15 -0
  856. package/es/icons/ibm--db2-warehouse/32.d.ts +17 -0
  857. package/es/icons/ibm--db2-warehouse/32.js +15 -0
  858. package/es/icons/ibm--dynamic-route-server/16.d.ts +17 -0
  859. package/es/icons/ibm--dynamic-route-server/16.js +15 -0
  860. package/es/icons/ibm--dynamic-route-server/20.d.ts +17 -0
  861. package/es/icons/ibm--dynamic-route-server/20.js +15 -0
  862. package/es/icons/ibm--dynamic-route-server/24.d.ts +17 -0
  863. package/es/icons/ibm--dynamic-route-server/24.js +15 -0
  864. package/es/icons/ibm--dynamic-route-server/32.d.ts +17 -0
  865. package/es/icons/ibm--dynamic-route-server/32.js +15 -0
  866. package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/16.d.ts +17 -0
  867. package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/16.js +15 -0
  868. package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/20.d.ts +17 -0
  869. package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/20.js +15 -0
  870. package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/24.d.ts +17 -0
  871. package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/24.js +15 -0
  872. package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/32.d.ts +17 -0
  873. package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/32.js +15 -0
  874. package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/16.d.ts +17 -0
  875. package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/16.js +15 -0
  876. package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/20.d.ts +17 -0
  877. package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/20.js +15 -0
  878. package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/24.d.ts +17 -0
  879. package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/24.js +15 -0
  880. package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/32.d.ts +17 -0
  881. package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/32.js +15 -0
  882. package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/16.d.ts +17 -0
  883. package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/16.js +15 -0
  884. package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/20.d.ts +17 -0
  885. package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/20.js +15 -0
  886. package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/24.d.ts +17 -0
  887. package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/24.js +15 -0
  888. package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/32.d.ts +17 -0
  889. package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/32.js +15 -0
  890. package/es/icons/ibm--event-automation/16.d.ts +17 -0
  891. package/es/icons/ibm--event-automation/16.js +15 -0
  892. package/es/icons/ibm--event-automation/20.d.ts +17 -0
  893. package/es/icons/ibm--event-automation/20.js +15 -0
  894. package/es/icons/ibm--event-automation/24.d.ts +17 -0
  895. package/es/icons/ibm--event-automation/24.js +15 -0
  896. package/es/icons/ibm--event-automation/32.d.ts +17 -0
  897. package/es/icons/ibm--event-automation/32.js +15 -0
  898. package/es/icons/ibm--event-endpoint-mgmt/16.d.ts +17 -0
  899. package/es/icons/ibm--event-endpoint-mgmt/16.js +15 -0
  900. package/es/icons/ibm--event-endpoint-mgmt/20.d.ts +17 -0
  901. package/es/icons/ibm--event-endpoint-mgmt/20.js +15 -0
  902. package/es/icons/ibm--event-endpoint-mgmt/24.d.ts +17 -0
  903. package/es/icons/ibm--event-endpoint-mgmt/24.js +15 -0
  904. package/es/icons/ibm--event-endpoint-mgmt/32.d.ts +17 -0
  905. package/es/icons/ibm--event-endpoint-mgmt/32.js +15 -0
  906. package/es/icons/ibm--event-processing/16.d.ts +17 -0
  907. package/es/icons/ibm--event-processing/16.js +15 -0
  908. package/es/icons/ibm--event-processing/20.d.ts +17 -0
  909. package/es/icons/ibm--event-processing/20.js +15 -0
  910. package/es/icons/ibm--event-processing/24.d.ts +17 -0
  911. package/es/icons/ibm--event-processing/24.js +15 -0
  912. package/es/icons/ibm--event-processing/32.d.ts +17 -0
  913. package/es/icons/ibm--event-processing/32.js +15 -0
  914. package/es/icons/ibm--event-streams/16.d.ts +17 -0
  915. package/es/icons/ibm--event-streams/16.js +15 -0
  916. package/es/icons/ibm--event-streams/20.d.ts +17 -0
  917. package/es/icons/ibm--event-streams/20.js +15 -0
  918. package/es/icons/ibm--event-streams/24.d.ts +17 -0
  919. package/es/icons/ibm--event-streams/24.js +15 -0
  920. package/es/icons/ibm--event-streams/32.d.ts +17 -0
  921. package/es/icons/ibm--event-streams/32.js +15 -0
  922. package/es/icons/ibm--ibv/16.d.ts +17 -0
  923. package/es/icons/ibm--ibv/16.js +15 -0
  924. package/es/icons/ibm--ibv/20.d.ts +17 -0
  925. package/es/icons/ibm--ibv/20.js +15 -0
  926. package/es/icons/ibm--ibv/24.d.ts +17 -0
  927. package/es/icons/ibm--ibv/24.js +15 -0
  928. package/es/icons/ibm--ibv/32.d.ts +17 -0
  929. package/es/icons/ibm--ibv/32.js +15 -0
  930. package/es/icons/ibm--instana/16.d.ts +17 -0
  931. package/es/icons/ibm--instana/16.js +15 -0
  932. package/es/icons/ibm--instana/20.d.ts +17 -0
  933. package/es/icons/ibm--instana/20.js +15 -0
  934. package/es/icons/ibm--instana/24.d.ts +17 -0
  935. package/es/icons/ibm--instana/24.js +15 -0
  936. package/es/icons/ibm--instana/32.d.ts +17 -0
  937. package/es/icons/ibm--instana/32.js +15 -0
  938. package/es/icons/ibm--power-vs-private-cloud/16.d.ts +17 -0
  939. package/es/icons/ibm--power-vs-private-cloud/16.js +15 -0
  940. package/es/icons/ibm--power-vs-private-cloud/20.d.ts +17 -0
  941. package/es/icons/ibm--power-vs-private-cloud/20.js +15 -0
  942. package/es/icons/ibm--power-vs-private-cloud/24.d.ts +17 -0
  943. package/es/icons/ibm--power-vs-private-cloud/24.js +15 -0
  944. package/es/icons/ibm--power-vs-private-cloud/32.d.ts +17 -0
  945. package/es/icons/ibm--power-vs-private-cloud/32.js +15 -0
  946. package/es/icons/ibm--saas-console/16.d.ts +17 -0
  947. package/es/icons/ibm--saas-console/16.js +15 -0
  948. package/es/icons/ibm--saas-console/20.d.ts +17 -0
  949. package/es/icons/ibm--saas-console/20.js +15 -0
  950. package/es/icons/ibm--saas-console/24.d.ts +17 -0
  951. package/es/icons/ibm--saas-console/24.js +15 -0
  952. package/es/icons/ibm--saas-console/32.d.ts +17 -0
  953. package/es/icons/ibm--saas-console/32.js +15 -0
  954. package/es/icons/ibm--turbonomic/16.d.ts +17 -0
  955. package/es/icons/ibm--turbonomic/16.js +15 -0
  956. package/es/icons/ibm--turbonomic/20.d.ts +17 -0
  957. package/es/icons/ibm--turbonomic/20.js +15 -0
  958. package/es/icons/ibm--turbonomic/24.d.ts +17 -0
  959. package/es/icons/ibm--turbonomic/24.js +15 -0
  960. package/es/icons/ibm--turbonomic/32.d.ts +17 -0
  961. package/es/icons/ibm--turbonomic/32.js +15 -0
  962. package/es/icons/ibm--vpn-for-vpc/16.d.ts +17 -0
  963. package/es/icons/ibm--vpn-for-vpc/16.js +15 -0
  964. package/es/icons/ibm--vpn-for-vpc/20.d.ts +17 -0
  965. package/es/icons/ibm--vpn-for-vpc/20.js +15 -0
  966. package/es/icons/ibm--vpn-for-vpc/24.d.ts +17 -0
  967. package/es/icons/ibm--vpn-for-vpc/24.js +15 -0
  968. package/es/icons/ibm--vpn-for-vpc/32.d.ts +17 -0
  969. package/es/icons/ibm--vpn-for-vpc/32.js +15 -0
  970. package/es/icons/ibm--wazi-deploy/16.d.ts +17 -0
  971. package/es/icons/ibm--wazi-deploy/16.js +15 -0
  972. package/es/icons/ibm--wazi-deploy/20.d.ts +17 -0
  973. package/es/icons/ibm--wazi-deploy/20.js +15 -0
  974. package/es/icons/ibm--wazi-deploy/24.d.ts +17 -0
  975. package/es/icons/ibm--wazi-deploy/24.js +15 -0
  976. package/es/icons/ibm--wazi-deploy/32.d.ts +17 -0
  977. package/es/icons/ibm--wazi-deploy/32.js +15 -0
  978. package/es/icons/ibm-cloud--bare-metal-server/16.d.ts +17 -0
  979. package/es/icons/ibm-cloud--bare-metal-server/16.js +15 -0
  980. package/es/icons/ibm-cloud--bare-metal-server/20.d.ts +17 -0
  981. package/es/icons/ibm-cloud--bare-metal-server/20.js +15 -0
  982. package/es/icons/ibm-cloud--bare-metal-server/24.d.ts +17 -0
  983. package/es/icons/ibm-cloud--bare-metal-server/24.js +15 -0
  984. package/es/icons/ibm-cloud--bare-metal-server/32.d.ts +17 -0
  985. package/es/icons/ibm-cloud--bare-metal-server/32.js +15 -0
  986. package/es/icons/ibm-cloud--bare-metal-servers-vpc/16.d.ts +17 -0
  987. package/es/icons/ibm-cloud--bare-metal-servers-vpc/16.js +15 -0
  988. package/es/icons/ibm-cloud--bare-metal-servers-vpc/20.d.ts +17 -0
  989. package/es/icons/ibm-cloud--bare-metal-servers-vpc/20.js +15 -0
  990. package/es/icons/ibm-cloud--bare-metal-servers-vpc/24.d.ts +17 -0
  991. package/es/icons/ibm-cloud--bare-metal-servers-vpc/24.js +15 -0
  992. package/es/icons/ibm-cloud--bare-metal-servers-vpc/32.d.ts +17 -0
  993. package/es/icons/ibm-cloud--bare-metal-servers-vpc/32.js +15 -0
  994. package/es/icons/ibm-cloud--hpc/16.d.ts +17 -0
  995. package/es/icons/ibm-cloud--hpc/16.js +15 -0
  996. package/es/icons/ibm-cloud--hpc/20.d.ts +17 -0
  997. package/es/icons/ibm-cloud--hpc/20.js +15 -0
  998. package/es/icons/ibm-cloud--hpc/24.d.ts +17 -0
  999. package/es/icons/ibm-cloud--hpc/24.js +15 -0
  1000. package/es/icons/ibm-cloud--hpc/32.d.ts +17 -0
  1001. package/es/icons/ibm-cloud--hpc/32.js +15 -0
  1002. package/es/icons/ibm-cloud--pal/16.js +1 -1
  1003. package/es/icons/ibm-cloud--pal/20.js +1 -1
  1004. package/es/icons/ibm-cloud--pal/24.js +1 -1
  1005. package/es/icons/ibm-cloud--pal/32.js +1 -1
  1006. package/es/icons/ibm-cloud--transit-gateway/16.js +1 -1
  1007. package/es/icons/ibm-cloud--transit-gateway/20.js +1 -1
  1008. package/es/icons/ibm-cloud--transit-gateway/24.js +1 -1
  1009. package/es/icons/ibm-cloud--transit-gateway/32.js +1 -1
  1010. package/es/icons/ibm-cloud--virtual-server-classic/16.d.ts +17 -0
  1011. package/es/icons/ibm-cloud--virtual-server-classic/16.js +15 -0
  1012. package/es/icons/ibm-cloud--virtual-server-classic/20.d.ts +17 -0
  1013. package/es/icons/ibm-cloud--virtual-server-classic/20.js +15 -0
  1014. package/es/icons/ibm-cloud--virtual-server-classic/24.d.ts +17 -0
  1015. package/es/icons/ibm-cloud--virtual-server-classic/24.js +15 -0
  1016. package/es/icons/ibm-cloud--virtual-server-classic/32.d.ts +17 -0
  1017. package/es/icons/ibm-cloud--virtual-server-classic/32.js +15 -0
  1018. package/es/icons/ibm-cloud--virtual-server-vpc/16.d.ts +17 -0
  1019. package/es/icons/ibm-cloud--virtual-server-vpc/16.js +15 -0
  1020. package/es/icons/ibm-cloud--virtual-server-vpc/20.d.ts +17 -0
  1021. package/es/icons/ibm-cloud--virtual-server-vpc/20.js +15 -0
  1022. package/es/icons/ibm-cloud--virtual-server-vpc/24.d.ts +17 -0
  1023. package/es/icons/ibm-cloud--virtual-server-vpc/24.js +15 -0
  1024. package/es/icons/ibm-cloud--virtual-server-vpc/32.d.ts +17 -0
  1025. package/es/icons/ibm-cloud--virtual-server-vpc/32.js +15 -0
  1026. package/es/icons/ibm-cloud--vpc/16.d.ts +17 -0
  1027. package/es/icons/ibm-cloud--vpc/16.js +15 -0
  1028. package/es/icons/ibm-cloud--vpc/20.d.ts +17 -0
  1029. package/es/icons/ibm-cloud--vpc/20.js +15 -0
  1030. package/es/icons/ibm-cloud--vpc/24.d.ts +17 -0
  1031. package/es/icons/ibm-cloud--vpc/24.js +15 -0
  1032. package/es/icons/ibm-cloud--vpc/32.d.ts +17 -0
  1033. package/es/icons/ibm-cloud--vpc/32.js +15 -0
  1034. package/es/icons/ibm-watsonx--assistant/16.d.ts +17 -0
  1035. package/es/icons/ibm-watsonx--assistant/16.js +15 -0
  1036. package/es/icons/ibm-watsonx--assistant/20.d.ts +17 -0
  1037. package/es/icons/ibm-watsonx--assistant/20.js +15 -0
  1038. package/es/icons/ibm-watsonx--assistant/24.d.ts +17 -0
  1039. package/es/icons/ibm-watsonx--assistant/24.js +15 -0
  1040. package/es/icons/ibm-watsonx--assistant/32.d.ts +17 -0
  1041. package/es/icons/ibm-watsonx--assistant/32.js +15 -0
  1042. package/es/icons/ibm-watsonx--code-assistant/16.d.ts +17 -0
  1043. package/es/icons/ibm-watsonx--code-assistant/16.js +15 -0
  1044. package/es/icons/ibm-watsonx--code-assistant/20.d.ts +17 -0
  1045. package/es/icons/ibm-watsonx--code-assistant/20.js +15 -0
  1046. package/es/icons/ibm-watsonx--code-assistant/24.d.ts +17 -0
  1047. package/es/icons/ibm-watsonx--code-assistant/24.js +15 -0
  1048. package/es/icons/ibm-watsonx--code-assistant/32.d.ts +17 -0
  1049. package/es/icons/ibm-watsonx--code-assistant/32.js +15 -0
  1050. package/es/icons/ibm-watsonx--code-assistant-for-z/16.d.ts +17 -0
  1051. package/es/icons/ibm-watsonx--code-assistant-for-z/16.js +15 -0
  1052. package/es/icons/ibm-watsonx--code-assistant-for-z/20.d.ts +17 -0
  1053. package/es/icons/ibm-watsonx--code-assistant-for-z/20.js +15 -0
  1054. package/es/icons/ibm-watsonx--code-assistant-for-z/24.d.ts +17 -0
  1055. package/es/icons/ibm-watsonx--code-assistant-for-z/24.js +15 -0
  1056. package/es/icons/ibm-watsonx--code-assistant-for-z/32.d.ts +17 -0
  1057. package/es/icons/ibm-watsonx--code-assistant-for-z/32.js +15 -0
  1058. package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/16.d.ts +17 -0
  1059. package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/16.js +15 -0
  1060. package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/20.d.ts +17 -0
  1061. package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/20.js +15 -0
  1062. package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/24.d.ts +17 -0
  1063. package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/24.js +15 -0
  1064. package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/32.d.ts +17 -0
  1065. package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/32.js +15 -0
  1066. package/es/icons/ibm-watsonx--orchestrate/16.d.ts +17 -0
  1067. package/es/icons/ibm-watsonx--orchestrate/16.js +15 -0
  1068. package/es/icons/ibm-watsonx--orchestrate/20.d.ts +17 -0
  1069. package/es/icons/ibm-watsonx--orchestrate/20.js +15 -0
  1070. package/es/icons/ibm-watsonx--orchestrate/24.d.ts +17 -0
  1071. package/es/icons/ibm-watsonx--orchestrate/24.js +15 -0
  1072. package/es/icons/ibm-watsonx--orchestrate/32.d.ts +17 -0
  1073. package/es/icons/ibm-watsonx--orchestrate/32.js +15 -0
  1074. package/es/icons/ibm-z--processor-capacity-reference/16.d.ts +17 -0
  1075. package/es/icons/ibm-z--processor-capacity-reference/16.js +15 -0
  1076. package/es/icons/ibm-z--processor-capacity-reference/20.d.ts +17 -0
  1077. package/es/icons/ibm-z--processor-capacity-reference/20.js +15 -0
  1078. package/es/icons/ibm-z--processor-capacity-reference/24.d.ts +17 -0
  1079. package/es/icons/ibm-z--processor-capacity-reference/24.js +15 -0
  1080. package/es/icons/ibm-z--processor-capacity-reference/32.d.ts +17 -0
  1081. package/es/icons/ibm-z--processor-capacity-reference/32.js +15 -0
  1082. package/es/icons/ibm-z-os/16.d.ts +17 -0
  1083. package/es/icons/ibm-z-os/16.js +15 -0
  1084. package/es/icons/ibm-z-os/20.d.ts +17 -0
  1085. package/es/icons/ibm-z-os/20.js +15 -0
  1086. package/es/icons/ibm-z-os/24.d.ts +17 -0
  1087. package/es/icons/ibm-z-os/24.js +15 -0
  1088. package/es/icons/ibm-z-os/32.d.ts +17 -0
  1089. package/es/icons/ibm-z-os/32.js +15 -0
  1090. package/es/icons/infinity/16.d.ts +17 -0
  1091. package/es/icons/infinity/16.js +15 -0
  1092. package/es/icons/infinity/20.d.ts +17 -0
  1093. package/es/icons/infinity/20.js +15 -0
  1094. package/es/icons/infinity/24.d.ts +17 -0
  1095. package/es/icons/infinity/24.js +15 -0
  1096. package/es/icons/infinity/32.d.ts +17 -0
  1097. package/es/icons/infinity/32.js +15 -0
  1098. package/es/icons/js-error/16.d.ts +17 -0
  1099. package/es/icons/js-error/16.js +15 -0
  1100. package/es/icons/js-error/20.d.ts +17 -0
  1101. package/es/icons/js-error/20.js +15 -0
  1102. package/es/icons/js-error/24.d.ts +17 -0
  1103. package/es/icons/js-error/24.js +15 -0
  1104. package/es/icons/js-error/32.d.ts +17 -0
  1105. package/es/icons/js-error/32.js +15 -0
  1106. package/es/icons/kubernetes--ip-address/16.d.ts +17 -0
  1107. package/es/icons/kubernetes--ip-address/16.js +15 -0
  1108. package/es/icons/kubernetes--ip-address/20.d.ts +17 -0
  1109. package/es/icons/kubernetes--ip-address/20.js +15 -0
  1110. package/es/icons/kubernetes--ip-address/24.d.ts +17 -0
  1111. package/es/icons/kubernetes--ip-address/24.js +15 -0
  1112. package/es/icons/kubernetes--ip-address/32.d.ts +17 -0
  1113. package/es/icons/kubernetes--ip-address/32.js +15 -0
  1114. package/es/icons/kubernetes--pod/16.d.ts +17 -0
  1115. package/es/icons/kubernetes--pod/16.js +15 -0
  1116. package/es/icons/kubernetes--pod/20.d.ts +17 -0
  1117. package/es/icons/kubernetes--pod/20.js +15 -0
  1118. package/es/icons/kubernetes--pod/24.d.ts +17 -0
  1119. package/es/icons/kubernetes--pod/24.js +15 -0
  1120. package/es/icons/kubernetes--pod/32.d.ts +17 -0
  1121. package/es/icons/kubernetes--pod/32.js +15 -0
  1122. package/es/icons/logo--gitlab/16.d.ts +17 -0
  1123. package/es/icons/logo--gitlab/16.js +15 -0
  1124. package/es/icons/logo--gitlab/20.d.ts +17 -0
  1125. package/es/icons/logo--gitlab/20.js +15 -0
  1126. package/es/icons/logo--gitlab/24.d.ts +17 -0
  1127. package/es/icons/logo--gitlab/24.js +15 -0
  1128. package/es/icons/logo--gitlab/32.d.ts +17 -0
  1129. package/es/icons/logo--gitlab/32.js +15 -0
  1130. package/es/icons/logo--x/16.d.ts +17 -0
  1131. package/es/icons/logo--x/16.js +15 -0
  1132. package/es/icons/logo--x/20.d.ts +17 -0
  1133. package/es/icons/logo--x/20.js +15 -0
  1134. package/es/icons/logo--x/24.d.ts +17 -0
  1135. package/es/icons/logo--x/24.js +15 -0
  1136. package/es/icons/logo--x/32.d.ts +17 -0
  1137. package/es/icons/logo--x/32.js +15 -0
  1138. package/es/icons/mobile--crash/16.d.ts +17 -0
  1139. package/es/icons/mobile--crash/16.js +15 -0
  1140. package/es/icons/mobile--crash/20.d.ts +17 -0
  1141. package/es/icons/mobile--crash/20.js +15 -0
  1142. package/es/icons/mobile--crash/24.d.ts +17 -0
  1143. package/es/icons/mobile--crash/24.js +15 -0
  1144. package/es/icons/mobile--crash/32.d.ts +17 -0
  1145. package/es/icons/mobile--crash/32.js +15 -0
  1146. package/es/icons/mobile--event/16.d.ts +17 -0
  1147. package/es/icons/mobile--event/16.js +15 -0
  1148. package/es/icons/mobile--event/20.d.ts +17 -0
  1149. package/es/icons/mobile--event/20.js +15 -0
  1150. package/es/icons/mobile--event/24.d.ts +17 -0
  1151. package/es/icons/mobile--event/24.js +15 -0
  1152. package/es/icons/mobile--event/32.d.ts +17 -0
  1153. package/es/icons/mobile--event/32.js +15 -0
  1154. package/es/icons/mobile--request/16.d.ts +17 -0
  1155. package/es/icons/mobile--request/16.js +15 -0
  1156. package/es/icons/mobile--request/20.d.ts +17 -0
  1157. package/es/icons/mobile--request/20.js +15 -0
  1158. package/es/icons/mobile--request/24.d.ts +17 -0
  1159. package/es/icons/mobile--request/24.js +15 -0
  1160. package/es/icons/mobile--request/32.d.ts +17 -0
  1161. package/es/icons/mobile--request/32.js +15 -0
  1162. package/es/icons/mobile--session/16.d.ts +17 -0
  1163. package/es/icons/mobile--session/16.js +15 -0
  1164. package/es/icons/mobile--session/20.d.ts +17 -0
  1165. package/es/icons/mobile--session/20.js +15 -0
  1166. package/es/icons/mobile--session/24.d.ts +17 -0
  1167. package/es/icons/mobile--session/24.js +15 -0
  1168. package/es/icons/mobile--session/32.d.ts +17 -0
  1169. package/es/icons/mobile--session/32.js +15 -0
  1170. package/es/icons/mobile--view/16.d.ts +17 -0
  1171. package/es/icons/mobile--view/16.js +15 -0
  1172. package/es/icons/mobile--view/20.d.ts +17 -0
  1173. package/es/icons/mobile--view/20.js +15 -0
  1174. package/es/icons/mobile--view/24.d.ts +17 -0
  1175. package/es/icons/mobile--view/24.js +15 -0
  1176. package/es/icons/mobile--view/32.d.ts +17 -0
  1177. package/es/icons/mobile--view/32.js +15 -0
  1178. package/es/icons/mobile--view-orientation/16.d.ts +17 -0
  1179. package/es/icons/mobile--view-orientation/16.js +15 -0
  1180. package/es/icons/mobile--view-orientation/20.d.ts +17 -0
  1181. package/es/icons/mobile--view-orientation/20.js +15 -0
  1182. package/es/icons/mobile--view-orientation/24.d.ts +17 -0
  1183. package/es/icons/mobile--view-orientation/24.js +15 -0
  1184. package/es/icons/mobile--view-orientation/32.d.ts +17 -0
  1185. package/es/icons/mobile--view-orientation/32.js +15 -0
  1186. package/es/icons/model--tuned/16.d.ts +17 -0
  1187. package/es/icons/model--tuned/16.js +15 -0
  1188. package/es/icons/model--tuned/20.d.ts +17 -0
  1189. package/es/icons/model--tuned/20.js +15 -0
  1190. package/es/icons/model--tuned/24.d.ts +17 -0
  1191. package/es/icons/model--tuned/24.js +15 -0
  1192. package/es/icons/model--tuned/32.d.ts +17 -0
  1193. package/es/icons/model--tuned/32.js +15 -0
  1194. package/es/icons/mysql/16.d.ts +17 -0
  1195. package/es/icons/mysql/16.js +15 -0
  1196. package/es/icons/mysql/20.d.ts +17 -0
  1197. package/es/icons/mysql/20.js +15 -0
  1198. package/es/icons/mysql/24.d.ts +17 -0
  1199. package/es/icons/mysql/24.js +15 -0
  1200. package/es/icons/mysql/32.d.ts +17 -0
  1201. package/es/icons/mysql/32.js +15 -0
  1202. package/es/icons/network-interface/16.d.ts +17 -0
  1203. package/es/icons/network-interface/16.js +15 -0
  1204. package/es/icons/network-interface/20.d.ts +17 -0
  1205. package/es/icons/network-interface/20.js +15 -0
  1206. package/es/icons/network-interface/24.d.ts +17 -0
  1207. package/es/icons/network-interface/24.js +15 -0
  1208. package/es/icons/network-interface/32.d.ts +17 -0
  1209. package/es/icons/network-interface/32.js +15 -0
  1210. package/es/icons/platforms/16.d.ts +17 -0
  1211. package/es/icons/platforms/16.js +15 -0
  1212. package/es/icons/platforms/20.d.ts +17 -0
  1213. package/es/icons/platforms/20.js +15 -0
  1214. package/es/icons/platforms/24.d.ts +17 -0
  1215. package/es/icons/platforms/24.js +15 -0
  1216. package/es/icons/platforms/32.d.ts +17 -0
  1217. package/es/icons/platforms/32.js +15 -0
  1218. package/es/icons/process/16.d.ts +17 -0
  1219. package/es/icons/process/16.js +15 -0
  1220. package/es/icons/process/20.d.ts +17 -0
  1221. package/es/icons/process/20.js +15 -0
  1222. package/es/icons/process/24.d.ts +17 -0
  1223. package/es/icons/process/24.js +15 -0
  1224. package/es/icons/process/32.d.ts +17 -0
  1225. package/es/icons/process/32.js +15 -0
  1226. package/es/icons/process-automate/16.d.ts +17 -0
  1227. package/es/icons/process-automate/16.js +15 -0
  1228. package/es/icons/process-automate/20.d.ts +17 -0
  1229. package/es/icons/process-automate/20.js +15 -0
  1230. package/es/icons/process-automate/24.d.ts +17 -0
  1231. package/es/icons/process-automate/24.js +15 -0
  1232. package/es/icons/process-automate/32.d.ts +17 -0
  1233. package/es/icons/process-automate/32.js +15 -0
  1234. package/es/icons/prompt-session/16.d.ts +17 -0
  1235. package/es/icons/prompt-session/16.js +15 -0
  1236. package/es/icons/prompt-session/20.d.ts +17 -0
  1237. package/es/icons/prompt-session/20.js +15 -0
  1238. package/es/icons/prompt-session/24.d.ts +17 -0
  1239. package/es/icons/prompt-session/24.js +15 -0
  1240. package/es/icons/prompt-session/32.d.ts +17 -0
  1241. package/es/icons/prompt-session/32.js +15 -0
  1242. package/es/icons/prompt-template/16.d.ts +17 -0
  1243. package/es/icons/prompt-template/16.js +15 -0
  1244. package/es/icons/prompt-template/20.d.ts +17 -0
  1245. package/es/icons/prompt-template/20.js +15 -0
  1246. package/es/icons/prompt-template/24.d.ts +17 -0
  1247. package/es/icons/prompt-template/24.js +15 -0
  1248. package/es/icons/prompt-template/32.d.ts +17 -0
  1249. package/es/icons/prompt-template/32.js +15 -0
  1250. package/es/icons/redo/16.js +1 -1
  1251. package/es/icons/redo/20.js +1 -1
  1252. package/es/icons/redo/24.js +1 -1
  1253. package/es/icons/return/16.d.ts +17 -0
  1254. package/es/icons/return/16.js +15 -0
  1255. package/es/icons/return/20.d.ts +17 -0
  1256. package/es/icons/return/20.js +15 -0
  1257. package/es/icons/return/24.d.ts +17 -0
  1258. package/es/icons/return/24.js +15 -0
  1259. package/es/icons/return/32.d.ts +17 -0
  1260. package/es/icons/return/32.js +15 -0
  1261. package/es/icons/running/16.d.ts +17 -0
  1262. package/es/icons/running/16.js +15 -0
  1263. package/es/icons/running/20.d.ts +17 -0
  1264. package/es/icons/running/20.js +15 -0
  1265. package/es/icons/running/24.d.ts +17 -0
  1266. package/es/icons/running/24.js +15 -0
  1267. package/es/icons/running/32.d.ts +17 -0
  1268. package/es/icons/running/32.js +15 -0
  1269. package/es/icons/sales-ops/16.d.ts +17 -0
  1270. package/es/icons/sales-ops/16.js +15 -0
  1271. package/es/icons/sales-ops/20.d.ts +17 -0
  1272. package/es/icons/sales-ops/20.js +15 -0
  1273. package/es/icons/sales-ops/24.d.ts +17 -0
  1274. package/es/icons/sales-ops/24.js +15 -0
  1275. package/es/icons/sales-ops/32.d.ts +17 -0
  1276. package/es/icons/sales-ops/32.js +15 -0
  1277. package/es/icons/service-levels/16.d.ts +17 -0
  1278. package/es/icons/service-levels/16.js +15 -0
  1279. package/es/icons/service-levels/20.d.ts +17 -0
  1280. package/es/icons/service-levels/20.js +15 -0
  1281. package/es/icons/service-levels/24.d.ts +17 -0
  1282. package/es/icons/service-levels/24.js +15 -0
  1283. package/es/icons/service-levels/32.d.ts +17 -0
  1284. package/es/icons/service-levels/32.js +15 -0
  1285. package/es/icons/settings--edit/16.d.ts +17 -0
  1286. package/es/icons/settings--edit/16.js +15 -0
  1287. package/es/icons/settings--edit/20.d.ts +17 -0
  1288. package/es/icons/settings--edit/20.js +15 -0
  1289. package/es/icons/settings--edit/24.d.ts +17 -0
  1290. package/es/icons/settings--edit/24.js +15 -0
  1291. package/es/icons/settings--edit/32.d.ts +17 -0
  1292. package/es/icons/settings--edit/32.js +15 -0
  1293. package/es/icons/subdirectory/16.d.ts +17 -0
  1294. package/es/icons/subdirectory/16.js +15 -0
  1295. package/es/icons/subdirectory/20.d.ts +17 -0
  1296. package/es/icons/subdirectory/20.js +15 -0
  1297. package/es/icons/subdirectory/24.d.ts +17 -0
  1298. package/es/icons/subdirectory/24.js +15 -0
  1299. package/es/icons/subdirectory/32.d.ts +17 -0
  1300. package/es/icons/subdirectory/32.js +15 -0
  1301. package/es/icons/subtract--filled/16.d.ts +17 -0
  1302. package/es/icons/subtract--filled/16.js +15 -0
  1303. package/es/icons/subtract--filled/20.d.ts +17 -0
  1304. package/es/icons/subtract--filled/20.js +15 -0
  1305. package/es/icons/subtract--filled/24.d.ts +17 -0
  1306. package/es/icons/subtract--filled/24.js +15 -0
  1307. package/es/icons/subtract--filled/32.d.ts +17 -0
  1308. package/es/icons/subtract--filled/32.js +15 -0
  1309. package/es/icons/subtract--large/16.d.ts +17 -0
  1310. package/es/icons/subtract--large/16.js +15 -0
  1311. package/es/icons/subtract--large/20.d.ts +17 -0
  1312. package/es/icons/subtract--large/20.js +15 -0
  1313. package/es/icons/subtract--large/24.d.ts +17 -0
  1314. package/es/icons/subtract--large/24.js +15 -0
  1315. package/es/icons/subtract--large/32.d.ts +17 -0
  1316. package/es/icons/subtract--large/32.js +15 -0
  1317. package/es/icons/sustainability/16.d.ts +17 -0
  1318. package/es/icons/sustainability/16.js +15 -0
  1319. package/es/icons/sustainability/20.d.ts +17 -0
  1320. package/es/icons/sustainability/20.js +15 -0
  1321. package/es/icons/sustainability/24.d.ts +17 -0
  1322. package/es/icons/sustainability/24.js +15 -0
  1323. package/es/icons/sustainability/32.d.ts +17 -0
  1324. package/es/icons/sustainability/32.js +15 -0
  1325. package/es/icons/text--long-paragraph/16.d.ts +17 -0
  1326. package/es/icons/text--long-paragraph/16.js +15 -0
  1327. package/es/icons/text--long-paragraph/20.d.ts +17 -0
  1328. package/es/icons/text--long-paragraph/20.js +15 -0
  1329. package/es/icons/text--long-paragraph/24.d.ts +17 -0
  1330. package/es/icons/text--long-paragraph/24.js +15 -0
  1331. package/es/icons/text--long-paragraph/32.d.ts +17 -0
  1332. package/es/icons/text--long-paragraph/32.js +15 -0
  1333. package/es/icons/text--short-paragraph/16.d.ts +17 -0
  1334. package/es/icons/text--short-paragraph/16.js +15 -0
  1335. package/es/icons/text--short-paragraph/20.d.ts +17 -0
  1336. package/es/icons/text--short-paragraph/20.js +15 -0
  1337. package/es/icons/text--short-paragraph/24.d.ts +17 -0
  1338. package/es/icons/text--short-paragraph/24.js +15 -0
  1339. package/es/icons/text--short-paragraph/32.d.ts +17 -0
  1340. package/es/icons/text--short-paragraph/32.js +15 -0
  1341. package/es/icons/time--filled/16.d.ts +17 -0
  1342. package/es/icons/time--filled/16.js +15 -0
  1343. package/es/icons/time--filled/20.d.ts +17 -0
  1344. package/es/icons/time--filled/20.js +15 -0
  1345. package/es/icons/time--filled/24.d.ts +17 -0
  1346. package/es/icons/time--filled/24.js +15 -0
  1347. package/es/icons/time--filled/32.d.ts +17 -0
  1348. package/es/icons/time--filled/32.js +15 -0
  1349. package/es/icons/tour/16.d.ts +17 -0
  1350. package/es/icons/tour/16.js +15 -0
  1351. package/es/icons/tour/20.d.ts +17 -0
  1352. package/es/icons/tour/20.js +15 -0
  1353. package/es/icons/tour/24.d.ts +17 -0
  1354. package/es/icons/tour/24.js +15 -0
  1355. package/es/icons/tour/32.d.ts +17 -0
  1356. package/es/icons/tour/32.js +15 -0
  1357. package/es/icons/tuning/16.d.ts +17 -0
  1358. package/es/icons/tuning/16.js +15 -0
  1359. package/es/icons/tuning/20.d.ts +17 -0
  1360. package/es/icons/tuning/20.js +15 -0
  1361. package/es/icons/tuning/24.d.ts +17 -0
  1362. package/es/icons/tuning/24.js +15 -0
  1363. package/es/icons/tuning/32.d.ts +17 -0
  1364. package/es/icons/tuning/32.js +15 -0
  1365. package/es/icons/undo/16.js +1 -1
  1366. package/es/icons/undo/20.js +1 -1
  1367. package/es/icons/undo/24.js +1 -1
  1368. package/es/icons/upstream/16.d.ts +17 -0
  1369. package/es/icons/upstream/16.js +15 -0
  1370. package/es/icons/upstream/20.d.ts +17 -0
  1371. package/es/icons/upstream/20.js +15 -0
  1372. package/es/icons/upstream/24.d.ts +17 -0
  1373. package/es/icons/upstream/24.js +15 -0
  1374. package/es/icons/upstream/32.d.ts +17 -0
  1375. package/es/icons/upstream/32.js +15 -0
  1376. package/es/icons/vegetation--encroachment/16.d.ts +17 -0
  1377. package/es/icons/vegetation--encroachment/16.js +15 -0
  1378. package/es/icons/vegetation--encroachment/20.d.ts +17 -0
  1379. package/es/icons/vegetation--encroachment/20.js +15 -0
  1380. package/es/icons/vegetation--encroachment/24.d.ts +17 -0
  1381. package/es/icons/vegetation--encroachment/24.js +15 -0
  1382. package/es/icons/vegetation--encroachment/32.d.ts +17 -0
  1383. package/es/icons/vegetation--encroachment/32.js +15 -0
  1384. package/es/icons/vegetation--height/16.d.ts +17 -0
  1385. package/es/icons/vegetation--height/16.js +15 -0
  1386. package/es/icons/vegetation--height/20.d.ts +17 -0
  1387. package/es/icons/vegetation--height/20.js +15 -0
  1388. package/es/icons/vegetation--height/24.d.ts +17 -0
  1389. package/es/icons/vegetation--height/24.js +15 -0
  1390. package/es/icons/vegetation--height/32.d.ts +17 -0
  1391. package/es/icons/vegetation--height/32.js +15 -0
  1392. package/es/icons/video-player/16.d.ts +17 -0
  1393. package/es/icons/video-player/16.js +15 -0
  1394. package/es/icons/video-player/20.d.ts +17 -0
  1395. package/es/icons/video-player/20.js +15 -0
  1396. package/es/icons/video-player/24.d.ts +17 -0
  1397. package/es/icons/video-player/24.js +15 -0
  1398. package/es/icons/video-player/32.d.ts +17 -0
  1399. package/es/icons/video-player/32.js +15 -0
  1400. package/es/icons/warning--diamond/16.d.ts +17 -0
  1401. package/es/icons/warning--diamond/16.js +15 -0
  1402. package/es/icons/warning--diamond/20.d.ts +17 -0
  1403. package/es/icons/warning--diamond/20.js +15 -0
  1404. package/es/icons/warning--diamond/24.d.ts +17 -0
  1405. package/es/icons/warning--diamond/24.js +15 -0
  1406. package/es/icons/warning--diamond/32.d.ts +17 -0
  1407. package/es/icons/warning--diamond/32.js +15 -0
  1408. package/es/icons/warning--multiple/16.d.ts +17 -0
  1409. package/es/icons/warning--multiple/16.js +15 -0
  1410. package/es/icons/warning--multiple/20.d.ts +17 -0
  1411. package/es/icons/warning--multiple/20.js +15 -0
  1412. package/es/icons/warning--multiple/24.d.ts +17 -0
  1413. package/es/icons/warning--multiple/24.js +15 -0
  1414. package/es/icons/warning--multiple/32.d.ts +17 -0
  1415. package/es/icons/warning--multiple/32.js +15 -0
  1416. package/es/icons/watsonx/16.d.ts +17 -0
  1417. package/es/icons/watsonx/16.js +15 -0
  1418. package/es/icons/watsonx/20.d.ts +17 -0
  1419. package/es/icons/watsonx/20.js +15 -0
  1420. package/es/icons/watsonx/24.d.ts +17 -0
  1421. package/es/icons/watsonx/24.js +15 -0
  1422. package/es/icons/watsonx/32.d.ts +17 -0
  1423. package/es/icons/watsonx/32.js +15 -0
  1424. package/es/icons/watsonx-ai/16.d.ts +17 -0
  1425. package/es/icons/watsonx-ai/16.js +15 -0
  1426. package/es/icons/watsonx-ai/20.d.ts +17 -0
  1427. package/es/icons/watsonx-ai/20.js +15 -0
  1428. package/es/icons/watsonx-ai/24.d.ts +17 -0
  1429. package/es/icons/watsonx-ai/24.js +15 -0
  1430. package/es/icons/watsonx-ai/32.d.ts +17 -0
  1431. package/es/icons/watsonx-ai/32.js +15 -0
  1432. package/es/icons/watsonx-data/16.d.ts +17 -0
  1433. package/es/icons/watsonx-data/16.js +15 -0
  1434. package/es/icons/watsonx-data/20.d.ts +17 -0
  1435. package/es/icons/watsonx-data/20.js +15 -0
  1436. package/es/icons/watsonx-data/24.d.ts +17 -0
  1437. package/es/icons/watsonx-data/24.js +15 -0
  1438. package/es/icons/watsonx-data/32.d.ts +17 -0
  1439. package/es/icons/watsonx-data/32.js +15 -0
  1440. package/es/icons/watsonx-governance/16.d.ts +17 -0
  1441. package/es/icons/watsonx-governance/16.js +15 -0
  1442. package/es/icons/watsonx-governance/20.d.ts +17 -0
  1443. package/es/icons/watsonx-governance/20.js +15 -0
  1444. package/es/icons/watsonx-governance/24.d.ts +17 -0
  1445. package/es/icons/watsonx-governance/24.js +15 -0
  1446. package/es/icons/watsonx-governance/32.d.ts +17 -0
  1447. package/es/icons/watsonx-governance/32.js +15 -0
  1448. package/es/icons/web-services--cluster/16.d.ts +17 -0
  1449. package/es/icons/web-services--cluster/16.js +15 -0
  1450. package/es/icons/web-services--cluster/20.d.ts +17 -0
  1451. package/es/icons/web-services--cluster/20.js +15 -0
  1452. package/es/icons/web-services--cluster/24.d.ts +17 -0
  1453. package/es/icons/web-services--cluster/24.js +15 -0
  1454. package/es/icons/web-services--cluster/32.d.ts +17 -0
  1455. package/es/icons/web-services--cluster/32.js +15 -0
  1456. package/es/icons/web-services--container/16.d.ts +17 -0
  1457. package/es/icons/web-services--container/16.js +15 -0
  1458. package/es/icons/web-services--container/20.d.ts +17 -0
  1459. package/es/icons/web-services--container/20.js +15 -0
  1460. package/es/icons/web-services--container/24.d.ts +17 -0
  1461. package/es/icons/web-services--container/24.js +15 -0
  1462. package/es/icons/web-services--container/32.d.ts +17 -0
  1463. package/es/icons/web-services--container/32.js +15 -0
  1464. package/es/icons/web-services--definition/16.d.ts +17 -0
  1465. package/es/icons/web-services--definition/16.js +15 -0
  1466. package/es/icons/web-services--definition/20.d.ts +17 -0
  1467. package/es/icons/web-services--definition/20.js +15 -0
  1468. package/es/icons/web-services--definition/24.d.ts +17 -0
  1469. package/es/icons/web-services--definition/24.js +15 -0
  1470. package/es/icons/web-services--definition/32.d.ts +17 -0
  1471. package/es/icons/web-services--definition/32.js +15 -0
  1472. package/es/icons/web-services--service/16.d.ts +17 -0
  1473. package/es/icons/web-services--service/16.js +15 -0
  1474. package/es/icons/web-services--service/20.d.ts +17 -0
  1475. package/es/icons/web-services--service/20.js +15 -0
  1476. package/es/icons/web-services--service/24.d.ts +17 -0
  1477. package/es/icons/web-services--service/24.js +15 -0
  1478. package/es/icons/web-services--service/32.d.ts +17 -0
  1479. package/es/icons/web-services--service/32.js +15 -0
  1480. package/es/icons/web-services--task/16.d.ts +17 -0
  1481. package/es/icons/web-services--task/16.js +15 -0
  1482. package/es/icons/web-services--task/20.d.ts +17 -0
  1483. package/es/icons/web-services--task/20.js +15 -0
  1484. package/es/icons/web-services--task/24.d.ts +17 -0
  1485. package/es/icons/web-services--task/24.js +15 -0
  1486. package/es/icons/web-services--task/32.d.ts +17 -0
  1487. package/es/icons/web-services--task/32.js +15 -0
  1488. package/es/icons/web-services--task-definition-version/16.d.ts +17 -0
  1489. package/es/icons/web-services--task-definition-version/16.js +15 -0
  1490. package/es/icons/web-services--task-definition-version/20.d.ts +17 -0
  1491. package/es/icons/web-services--task-definition-version/20.js +15 -0
  1492. package/es/icons/web-services--task-definition-version/24.d.ts +17 -0
  1493. package/es/icons/web-services--task-definition-version/24.js +15 -0
  1494. package/es/icons/web-services--task-definition-version/32.d.ts +17 -0
  1495. package/es/icons/web-services--task-definition-version/32.js +15 -0
  1496. package/lib/components/accordion/defs.js +3 -6
  1497. package/lib/components/accordion/defs.js.map +1 -1
  1498. package/lib/components/button/defs.js +5 -10
  1499. package/lib/components/button/defs.js.map +1 -1
  1500. package/lib/components/code-snippet/defs.js +1 -2
  1501. package/lib/components/code-snippet/defs.js.map +1 -1
  1502. package/lib/components/content-switcher/defs.js +2 -4
  1503. package/lib/components/content-switcher/defs.js.map +1 -1
  1504. package/lib/components/data-table/defs.js +4 -8
  1505. package/lib/components/data-table/defs.js.map +1 -1
  1506. package/lib/components/date-picker/defs.js +1 -2
  1507. package/lib/components/date-picker/defs.js.map +1 -1
  1508. package/lib/components/dropdown/defs.js +5 -10
  1509. package/lib/components/dropdown/defs.js.map +1 -1
  1510. package/lib/components/file-uploader/defs.js +2 -4
  1511. package/lib/components/file-uploader/defs.js.map +1 -1
  1512. package/lib/components/floating-menu/defs.js +2 -4
  1513. package/lib/components/floating-menu/defs.js.map +1 -1
  1514. package/lib/components/icon-button/defs.js +2 -4
  1515. package/lib/components/icon-button/defs.js.map +1 -1
  1516. package/lib/components/inline-loading/defs.js +1 -2
  1517. package/lib/components/inline-loading/defs.js.map +1 -1
  1518. package/lib/components/loading/defs.js +1 -2
  1519. package/lib/components/loading/defs.js.map +1 -1
  1520. package/lib/components/modal/defs.js +1 -2
  1521. package/lib/components/modal/defs.js.map +1 -1
  1522. package/lib/components/multi-select/defs.js +1 -2
  1523. package/lib/components/multi-select/defs.js.map +1 -1
  1524. package/lib/components/notification/defs.js +2 -4
  1525. package/lib/components/notification/defs.js.map +1 -1
  1526. package/lib/components/number-input/defs.js +1 -2
  1527. package/lib/components/number-input/defs.js.map +1 -1
  1528. package/lib/components/overflow-menu/defs.js +2 -4
  1529. package/lib/components/overflow-menu/defs.js.map +1 -1
  1530. package/lib/components/pagination/defs.js +1 -2
  1531. package/lib/components/pagination/defs.js.map +1 -1
  1532. package/lib/components/popover/defs.js +1 -2
  1533. package/lib/components/popover/defs.js.map +1 -1
  1534. package/lib/components/progress-bar/defs.js +3 -6
  1535. package/lib/components/progress-bar/defs.js.map +1 -1
  1536. package/lib/components/progress-indicator/defs.js +1 -2
  1537. package/lib/components/progress-indicator/defs.js.map +1 -1
  1538. package/lib/components/radio-button/defs.js +2 -4
  1539. package/lib/components/radio-button/defs.js.map +1 -1
  1540. package/lib/components/skeleton-text/defs.js +1 -2
  1541. package/lib/components/skeleton-text/defs.js.map +1 -1
  1542. package/lib/components/slug/defs.js +45 -0
  1543. package/lib/components/slug/defs.js.map +1 -0
  1544. package/lib/components/stack/defs.js +2 -4
  1545. package/lib/components/stack/defs.js.map +1 -1
  1546. package/lib/components/tabs/defs.js +2 -4
  1547. package/lib/components/tabs/defs.js.map +1 -1
  1548. package/lib/components/tag/defs.js +2 -4
  1549. package/lib/components/tag/defs.js.map +1 -1
  1550. package/lib/components/text-input/defs.js +4 -8
  1551. package/lib/components/text-input/defs.js.map +1 -1
  1552. package/lib/components/tile/defs.js.map +1 -1
  1553. package/lib/components/toggle/defs.js +1 -2
  1554. package/lib/components/toggle/defs.js.map +1 -1
  1555. package/lib/components/ui-shell/defs.js +2 -4
  1556. package/lib/components/ui-shell/defs.js.map +1 -1
  1557. package/lib/components-react-node/accordion/accordion-item-skeleton.js +3 -6
  1558. package/lib/components-react-node/accordion/accordion-item.js +5 -8
  1559. package/lib/components-react-node/accordion/accordion-skeleton.js +3 -6
  1560. package/lib/components-react-node/accordion/accordion.js +3 -6
  1561. package/lib/components-react-node/breadcrumb/breadcrumb-item.js +3 -6
  1562. package/lib/components-react-node/breadcrumb/breadcrumb-link.js +3 -6
  1563. package/lib/components-react-node/breadcrumb/breadcrumb-overflow-menu.js +11 -6
  1564. package/lib/components-react-node/breadcrumb/breadcrumb-skeleton.js +3 -6
  1565. package/lib/components-react-node/breadcrumb/breadcrumb.js +3 -6
  1566. package/lib/components-react-node/button/button-set.js +3 -6
  1567. package/lib/components-react-node/button/button-skeleton.js +7 -6
  1568. package/lib/components-react-node/button/button.js +3 -6
  1569. package/lib/components-react-node/checkbox/checkbox-skeleton.js +3 -6
  1570. package/lib/components-react-node/checkbox/checkbox.js +5 -8
  1571. package/lib/components-react-node/code-snippet/code-snippet-skeleton.js +3 -6
  1572. package/lib/components-react-node/code-snippet/code-snippet.js +3 -6
  1573. package/lib/components-react-node/combo-box/combo-box-item.js +11 -6
  1574. package/lib/components-react-node/combo-box/combo-box.js +5 -8
  1575. package/lib/components-react-node/content-switcher/content-switcher-item.js +3 -6
  1576. package/lib/components-react-node/content-switcher/content-switcher.js +5 -8
  1577. package/lib/components-react-node/copy/copy.js +11 -6
  1578. package/lib/components-react-node/copy-button/copy-button.js +3 -6
  1579. package/lib/components-react-node/data-table/table-batch-actions.js +5 -8
  1580. package/lib/components-react-node/data-table/table-body.js +3 -6
  1581. package/lib/components-react-node/data-table/table-cell-content.js +3 -6
  1582. package/lib/components-react-node/data-table/table-cell.js +3 -6
  1583. package/lib/components-react-node/data-table/table-expanded-row.js +3 -6
  1584. package/lib/components-react-node/data-table/table-head.js +3 -6
  1585. package/lib/components-react-node/data-table/table-header-cell.js +5 -8
  1586. package/lib/components-react-node/data-table/table-header-description.js +3 -6
  1587. package/lib/components-react-node/data-table/table-header-row.js +5 -8
  1588. package/lib/components-react-node/data-table/table-header-title.js +3 -6
  1589. package/lib/components-react-node/data-table/table-row.js +5 -8
  1590. package/lib/components-react-node/data-table/table-skeleton.js +3 -6
  1591. package/lib/components-react-node/data-table/table-toolbar-content.js +3 -6
  1592. package/lib/components-react-node/data-table/table-toolbar-search.js +5 -8
  1593. package/lib/components-react-node/data-table/table-toolbar.js +3 -6
  1594. package/lib/components-react-node/data-table/table.js +5 -8
  1595. package/lib/components-react-node/date-picker/date-picker-input-skeleton.js +3 -6
  1596. package/lib/components-react-node/date-picker/date-picker-input.js +3 -6
  1597. package/lib/components-react-node/date-picker/date-picker.js +5 -8
  1598. package/lib/components-react-node/dropdown/dropdown-item.js +3 -6
  1599. package/lib/components-react-node/dropdown/dropdown-skeleton.js +3 -6
  1600. package/lib/components-react-node/dropdown/dropdown.js +5 -8
  1601. package/lib/components-react-node/file-uploader/demo-file-uploader.js +3 -6
  1602. package/lib/components-react-node/file-uploader/file-uploader-button.js +5 -8
  1603. package/lib/components-react-node/file-uploader/file-uploader-drop-container.js +5 -8
  1604. package/lib/components-react-node/file-uploader/file-uploader-item.js +5 -8
  1605. package/lib/components-react-node/file-uploader/file-uploader-skeleton.js +3 -6
  1606. package/lib/components-react-node/file-uploader/file-uploader.js +3 -6
  1607. package/lib/components-react-node/floating-menu/floating-menu.js +2 -4
  1608. package/lib/components-react-node/form/form-item.js +3 -6
  1609. package/lib/components-react-node/form-group/form-group.js +3 -6
  1610. package/lib/components-react-node/icon-button/icon-button.js +7 -6
  1611. package/lib/components-react-node/inline-loading/inline-loading.js +3 -6
  1612. package/lib/components-react-node/layer/layer.js +5 -8
  1613. package/lib/components-react-node/link/link.js +3 -6
  1614. package/lib/components-react-node/list/list-item.js +3 -6
  1615. package/lib/components-react-node/list/ordered-list.js +11 -6
  1616. package/lib/components-react-node/list/unordered-list.js +3 -6
  1617. package/lib/components-react-node/loading/loading.js +3 -6
  1618. package/lib/components-react-node/modal/modal-body-content.js +3 -6
  1619. package/lib/components-react-node/modal/modal-body.js +3 -6
  1620. package/lib/components-react-node/modal/modal-close-button.js +3 -6
  1621. package/lib/components-react-node/modal/modal-footer-button.js +7 -6
  1622. package/lib/components-react-node/modal/modal-footer.js +3 -6
  1623. package/lib/components-react-node/modal/modal-header.js +3 -6
  1624. package/lib/components-react-node/modal/modal-heading.js +3 -6
  1625. package/lib/components-react-node/modal/modal-label.js +3 -6
  1626. package/lib/components-react-node/modal/modal.js +5 -8
  1627. package/lib/components-react-node/multi-select/multi-select-item.js +11 -6
  1628. package/lib/components-react-node/multi-select/multi-select.js +5 -8
  1629. package/lib/components-react-node/notification/actionable-notification-button.js +7 -6
  1630. package/lib/components-react-node/notification/actionable-notification.js +11 -6
  1631. package/lib/components-react-node/notification/inline-notification.js +5 -8
  1632. package/lib/components-react-node/notification/toast-notification.js +11 -6
  1633. package/lib/components-react-node/number-input/number-input-skeleton.js +3 -6
  1634. package/lib/components-react-node/number-input/number-input.js +12 -11
  1635. package/lib/components-react-node/overflow-menu/overflow-menu-body.js +11 -6
  1636. package/lib/components-react-node/overflow-menu/overflow-menu-item.js +3 -6
  1637. package/lib/components-react-node/overflow-menu/overflow-menu.js +11 -6
  1638. package/lib/components-react-node/pagination/pagination.js +5 -8
  1639. package/lib/components-react-node/popover/popover-content.js +3 -6
  1640. package/lib/components-react-node/popover/popover.js +3 -6
  1641. package/lib/components-react-node/progress-bar/progress-bar.js +3 -6
  1642. package/lib/components-react-node/progress-indicator/progress-indicator-skeleton.js +3 -6
  1643. package/lib/components-react-node/progress-indicator/progress-indicator.js +3 -6
  1644. package/lib/components-react-node/progress-indicator/progress-step-skeleton.js +3 -6
  1645. package/lib/components-react-node/progress-indicator/progress-step.js +3 -6
  1646. package/lib/components-react-node/radio-button/radio-button-group.js +5 -8
  1647. package/lib/components-react-node/radio-button/radio-button-skeleton.js +3 -6
  1648. package/lib/components-react-node/radio-button/radio-button.js +5 -8
  1649. package/lib/components-react-node/search/search-skeleton.js +3 -6
  1650. package/lib/components-react-node/search/search.js +5 -8
  1651. package/lib/components-react-node/select/select-item-group.js +3 -6
  1652. package/lib/components-react-node/select/select-item.js +3 -6
  1653. package/lib/components-react-node/select/select-skeleton.js +3 -6
  1654. package/lib/components-react-node/select/select.js +5 -8
  1655. package/lib/components-react-node/skeleton-placeholder/skeleton-placeholder.js +3 -6
  1656. package/lib/components-react-node/skeleton-text/skeleton-text.js +3 -6
  1657. package/lib/components-react-node/skip-to-content/skip-to-content.js +3 -6
  1658. package/lib/components-react-node/slider/slider-input.js +5 -8
  1659. package/lib/components-react-node/slider/slider-skeleton.js +3 -6
  1660. package/lib/components-react-node/slider/slider.js +5 -8
  1661. package/lib/components-react-node/slug/defs.js +24 -0
  1662. package/lib/components-react-node/slug/index.js +9 -0
  1663. package/lib/components-react-node/slug/slug-action-button.js +35 -0
  1664. package/lib/components-react-node/slug/slug.js +39 -0
  1665. package/lib/components-react-node/stack/stack.js +3 -6
  1666. package/lib/components-react-node/structured-list/structured-list-body.js +3 -6
  1667. package/lib/components-react-node/structured-list/structured-list-cell.js +3 -6
  1668. package/lib/components-react-node/structured-list/structured-list-head.js +3 -6
  1669. package/lib/components-react-node/structured-list/structured-list-header-cell-skeleton.js +3 -6
  1670. package/lib/components-react-node/structured-list/structured-list-header-cell.js +3 -6
  1671. package/lib/components-react-node/structured-list/structured-list-header-row.js +3 -6
  1672. package/lib/components-react-node/structured-list/structured-list-row.js +3 -6
  1673. package/lib/components-react-node/structured-list/structured-list.js +3 -6
  1674. package/lib/components-react-node/tabs/tab-skeleton.js +3 -6
  1675. package/lib/components-react-node/tabs/tab.js +11 -6
  1676. package/lib/components-react-node/tabs/tabs-skeleton.js +3 -6
  1677. package/lib/components-react-node/tabs/tabs.js +21 -16
  1678. package/lib/components-react-node/tag/tag.js +5 -8
  1679. package/lib/components-react-node/text-input/text-input-skeleton.js +3 -6
  1680. package/lib/components-react-node/text-input/text-input.js +3 -6
  1681. package/lib/components-react-node/textarea/textarea-skeleton.js +3 -6
  1682. package/lib/components-react-node/textarea/textarea.js +11 -6
  1683. package/lib/components-react-node/tile/clickable-tile.js +3 -6
  1684. package/lib/components-react-node/tile/expandable-tile.js +5 -8
  1685. package/lib/components-react-node/tile/radio-tile.js +17 -12
  1686. package/lib/components-react-node/tile/selectable-tile.js +5 -8
  1687. package/lib/components-react-node/tile/tile-group.js +5 -8
  1688. package/lib/components-react-node/tile/tile.js +3 -6
  1689. package/lib/components-react-node/toggle/toggle.js +5 -8
  1690. package/lib/components-react-node/toggle-tip/toggletip.js +3 -6
  1691. package/lib/components-react-node/tooltip/tooltip-content.js +11 -6
  1692. package/lib/components-react-node/tooltip/tooltip.js +7 -6
  1693. package/lib/components-react-node/ui-shell/header-global-action.js +7 -6
  1694. package/lib/components-react-node/ui-shell/header-menu-button.js +5 -8
  1695. package/lib/components-react-node/ui-shell/header-menu-item.js +11 -6
  1696. package/lib/components-react-node/ui-shell/header-menu.js +3 -6
  1697. package/lib/components-react-node/ui-shell/header-name.js +3 -6
  1698. package/lib/components-react-node/ui-shell/header-nav-item.js +3 -6
  1699. package/lib/components-react-node/ui-shell/header-nav.js +3 -6
  1700. package/lib/components-react-node/ui-shell/header-panel.js +3 -6
  1701. package/lib/components-react-node/ui-shell/header-side-nav-items.js +3 -6
  1702. package/lib/components-react-node/ui-shell/header.js +3 -6
  1703. package/lib/components-react-node/ui-shell/side-nav-divider.js +3 -6
  1704. package/lib/components-react-node/ui-shell/side-nav-items.js +3 -6
  1705. package/lib/components-react-node/ui-shell/side-nav-link.js +3 -6
  1706. package/lib/components-react-node/ui-shell/side-nav-menu-item.js +3 -6
  1707. package/lib/components-react-node/ui-shell/side-nav-menu.js +5 -8
  1708. package/lib/components-react-node/ui-shell/side-nav.js +5 -8
  1709. package/lib/components-react-node/ui-shell/switcher-divider.js +3 -6
  1710. package/lib/components-react-node/ui-shell/switcher-item.js +3 -6
  1711. package/lib/components-react-node/ui-shell/switcher.js +3 -6
  1712. package/lib/globals/settings.js +2 -4
  1713. package/lib/globals/settings.js.map +1 -1
  1714. package/lib/globals/shared-enums.js +1 -2
  1715. package/lib/globals/shared-enums.js.map +1 -1
  1716. package/lib/globals/wrappers/createReactCustomElementType.js +3 -4
  1717. package/lib/globals/wrappers/createReactCustomElementType.js.map +1 -1
  1718. package/package.json +18 -17
  1719. package/scss/components/breadcrumb/breadcrumb.scss +2 -2
  1720. package/scss/components/button/button.scss +3 -3
  1721. package/scss/components/code-snippet/code-snippet.scss +5 -5
  1722. package/scss/components/combo-box/combo-box.scss +62 -1
  1723. package/scss/components/content-switcher/content-switcher.scss +8 -7
  1724. package/scss/components/copy-button/copy-button.scss +3 -2
  1725. package/scss/components/data-table/_table-action.scss +1 -1
  1726. package/scss/components/data-table/_table-sizes.scss +5 -5
  1727. package/scss/components/data-table/_table-sort.scss +1 -1
  1728. package/scss/components/date-picker/date-picker.scss +13 -0
  1729. package/scss/components/dropdown/dropdown.scss +28 -4
  1730. package/scss/components/icon-button/icon-button.scss +5 -0
  1731. package/scss/components/list/list.scss +1 -1
  1732. package/scss/components/modal/modal.scss +17 -4
  1733. package/scss/components/multi-select/multi-select.scss +29 -2
  1734. package/scss/components/notification/inline-notification.scss +6 -1
  1735. package/scss/components/number-input/number-input.scss +19 -0
  1736. package/scss/components/overflow-menu/overflow-menu.scss +1 -1
  1737. package/scss/components/pagination/pagination.scss +1 -1
  1738. package/scss/components/popover/popover.scss +57 -20
  1739. package/scss/components/select/select.scss +19 -0
  1740. package/scss/components/slug/slug.scss +135 -0
  1741. package/scss/components/stack/stack.scss +3 -3
  1742. package/scss/components/tabs/tabs.scss +7 -9
  1743. package/scss/components/text-input/text-input.scss +44 -10
  1744. package/scss/components/textarea/textarea.scss +35 -0
  1745. package/scss/components/tile/tile.scss +1 -1
  1746. package/scss/components/toggle-tip/toggletip.scss +3 -2
  1747. package/scss/components/tooltip/tooltip.scss +1 -2
  1748. package/scss/components/ui-shell/header.scss +4 -4
  1749. package/scss/components/ui-shell/side-nav.scss +1 -1
  1750. package/es/components/accordion/accordion-item-skeleton.d.ts.map +0 -1
  1751. package/es/components/accordion/accordion-item.d.ts.map +0 -1
  1752. package/es/components/accordion/accordion-skeleton.d.ts.map +0 -1
  1753. package/es/components/accordion/accordion.d.ts.map +0 -1
  1754. package/es/components/accordion/defs.d.ts.map +0 -1
  1755. package/es/components/accordion/index.d.ts.map +0 -1
  1756. package/es/components/breadcrumb/breadcrumb-item.d.ts.map +0 -1
  1757. package/es/components/breadcrumb/breadcrumb-link.d.ts.map +0 -1
  1758. package/es/components/breadcrumb/breadcrumb-overflow-menu.d.ts.map +0 -1
  1759. package/es/components/breadcrumb/breadcrumb-skeleton.d.ts.map +0 -1
  1760. package/es/components/breadcrumb/breadcrumb.d.ts.map +0 -1
  1761. package/es/components/breadcrumb/index.d.ts.map +0 -1
  1762. package/es/components/button/button-set.d.ts.map +0 -1
  1763. package/es/components/button/button-skeleton.d.ts.map +0 -1
  1764. package/es/components/button/button.d.ts.map +0 -1
  1765. package/es/components/button/defs.d.ts.map +0 -1
  1766. package/es/components/button/index.d.ts.map +0 -1
  1767. package/es/components/checkbox/checkbox-skeleton.d.ts.map +0 -1
  1768. package/es/components/checkbox/checkbox.d.ts.map +0 -1
  1769. package/es/components/checkbox/index.d.ts.map +0 -1
  1770. package/es/components/code-snippet/code-snippet-skeleton.d.ts.map +0 -1
  1771. package/es/components/code-snippet/code-snippet.d.ts.map +0 -1
  1772. package/es/components/code-snippet/defs.d.ts.map +0 -1
  1773. package/es/components/code-snippet/index.d.ts.map +0 -1
  1774. package/es/components/combo-box/combo-box-item.d.ts.map +0 -1
  1775. package/es/components/combo-box/combo-box.d.ts.map +0 -1
  1776. package/es/components/combo-box/index.d.ts.map +0 -1
  1777. package/es/components/content-switcher/content-switcher-item.d.ts.map +0 -1
  1778. package/es/components/content-switcher/content-switcher.d.ts.map +0 -1
  1779. package/es/components/content-switcher/defs.d.ts.map +0 -1
  1780. package/es/components/content-switcher/index.d.ts.map +0 -1
  1781. package/es/components/copy/copy.d.ts.map +0 -1
  1782. package/es/components/copy-button/copy-button.d.ts.map +0 -1
  1783. package/es/components/copy-button/index.d.ts.map +0 -1
  1784. package/es/components/data-table/defs.d.ts.map +0 -1
  1785. package/es/components/data-table/index.d.ts.map +0 -1
  1786. package/es/components/data-table/table-batch-actions.d.ts.map +0 -1
  1787. package/es/components/data-table/table-body.d.ts.map +0 -1
  1788. package/es/components/data-table/table-cell-content.d.ts.map +0 -1
  1789. package/es/components/data-table/table-cell.d.ts.map +0 -1
  1790. package/es/components/data-table/table-expanded-row.d.ts.map +0 -1
  1791. package/es/components/data-table/table-head.d.ts.map +0 -1
  1792. package/es/components/data-table/table-header-cell.d.ts.map +0 -1
  1793. package/es/components/data-table/table-header-description.d.ts.map +0 -1
  1794. package/es/components/data-table/table-header-row.d.ts.map +0 -1
  1795. package/es/components/data-table/table-header-title.d.ts.map +0 -1
  1796. package/es/components/data-table/table-row.d.ts.map +0 -1
  1797. package/es/components/data-table/table-skeleton.d.ts.map +0 -1
  1798. package/es/components/data-table/table-toolbar-content.d.ts.map +0 -1
  1799. package/es/components/data-table/table-toolbar-search.d.ts.map +0 -1
  1800. package/es/components/data-table/table-toolbar.d.ts.map +0 -1
  1801. package/es/components/data-table/table.d.ts.map +0 -1
  1802. package/es/components/date-picker/append-to-plugin.d.ts.map +0 -1
  1803. package/es/components/date-picker/css-class-plugin.d.ts.map +0 -1
  1804. package/es/components/date-picker/date-picker-input-skeleton.d.ts.map +0 -1
  1805. package/es/components/date-picker/date-picker-input.d.ts.map +0 -1
  1806. package/es/components/date-picker/date-picker.d.ts.map +0 -1
  1807. package/es/components/date-picker/defs.d.ts.map +0 -1
  1808. package/es/components/date-picker/fix-events-plugin.d.ts.map +0 -1
  1809. package/es/components/date-picker/focus-plugin.d.ts.map +0 -1
  1810. package/es/components/date-picker/icon-plugin.d.ts.map +0 -1
  1811. package/es/components/date-picker/index.d.ts.map +0 -1
  1812. package/es/components/date-picker/iso-date.d.ts.map +0 -1
  1813. package/es/components/date-picker/month-select-plugin.d.ts.map +0 -1
  1814. package/es/components/date-picker/range-plugin.d.ts.map +0 -1
  1815. package/es/components/date-picker/shadow-dom-events-plugin.d.ts.map +0 -1
  1816. package/es/components/date-picker/state-handshake-plugin.d.ts.map +0 -1
  1817. package/es/components/dropdown/defs.d.ts.map +0 -1
  1818. package/es/components/dropdown/dropdown-item.d.ts.map +0 -1
  1819. package/es/components/dropdown/dropdown-skeleton.d.ts.map +0 -1
  1820. package/es/components/dropdown/dropdown.d.ts.map +0 -1
  1821. package/es/components/dropdown/index.d.ts.map +0 -1
  1822. package/es/components/file-uploader/defs.d.ts.map +0 -1
  1823. package/es/components/file-uploader/demo-file-uploader.d.ts.map +0 -1
  1824. package/es/components/file-uploader/file-uploader-button.d.ts.map +0 -1
  1825. package/es/components/file-uploader/file-uploader-drop-container.d.ts.map +0 -1
  1826. package/es/components/file-uploader/file-uploader-item.d.ts.map +0 -1
  1827. package/es/components/file-uploader/file-uploader-skeleton.d.ts.map +0 -1
  1828. package/es/components/file-uploader/file-uploader.d.ts.map +0 -1
  1829. package/es/components/file-uploader/index.d.ts.map +0 -1
  1830. package/es/components/floating-menu/defs.d.ts.map +0 -1
  1831. package/es/components/floating-menu/floating-menu-trigger.d.ts.map +0 -1
  1832. package/es/components/floating-menu/floating-menu.d.ts.map +0 -1
  1833. package/es/components/floating-menu/index.d.ts.map +0 -1
  1834. package/es/components/form/form-item.d.ts.map +0 -1
  1835. package/es/components/form/index.d.ts.map +0 -1
  1836. package/es/components/form-group/form-group.d.ts.map +0 -1
  1837. package/es/components/form-group/index.d.ts.map +0 -1
  1838. package/es/components/icon-button/defs.d.ts.map +0 -1
  1839. package/es/components/icon-button/icon-button.d.ts.map +0 -1
  1840. package/es/components/icon-button/index.d.ts.map +0 -1
  1841. package/es/components/inline-loading/defs.d.ts.map +0 -1
  1842. package/es/components/inline-loading/index.d.ts.map +0 -1
  1843. package/es/components/inline-loading/inline-loading.d.ts.map +0 -1
  1844. package/es/components/layer/index.d.ts.map +0 -1
  1845. package/es/components/layer/layer.d.ts.map +0 -1
  1846. package/es/components/link/index.d.ts.map +0 -1
  1847. package/es/components/link/link.d.ts.map +0 -1
  1848. package/es/components/list/index.d.ts.map +0 -1
  1849. package/es/components/list/list-item.d.ts.map +0 -1
  1850. package/es/components/list/ordered-list.d.ts.map +0 -1
  1851. package/es/components/list/unordered-list.d.ts.map +0 -1
  1852. package/es/components/loading/defs.d.ts.map +0 -1
  1853. package/es/components/loading/index.d.ts.map +0 -1
  1854. package/es/components/loading/loading-icon.d.ts.map +0 -1
  1855. package/es/components/loading/loading.d.ts.map +0 -1
  1856. package/es/components/loading/types.d.ts.map +0 -1
  1857. package/es/components/modal/defs.d.ts.map +0 -1
  1858. package/es/components/modal/index.d.ts.map +0 -1
  1859. package/es/components/modal/modal-body-content.d.ts.map +0 -1
  1860. package/es/components/modal/modal-body.d.ts.map +0 -1
  1861. package/es/components/modal/modal-close-button.d.ts.map +0 -1
  1862. package/es/components/modal/modal-footer-button.d.ts.map +0 -1
  1863. package/es/components/modal/modal-footer.d.ts.map +0 -1
  1864. package/es/components/modal/modal-header.d.ts.map +0 -1
  1865. package/es/components/modal/modal-heading.d.ts.map +0 -1
  1866. package/es/components/modal/modal-label.d.ts.map +0 -1
  1867. package/es/components/modal/modal.d.ts.map +0 -1
  1868. package/es/components/multi-select/defs.d.ts.map +0 -1
  1869. package/es/components/multi-select/index.d.ts.map +0 -1
  1870. package/es/components/multi-select/multi-select-item.d.ts.map +0 -1
  1871. package/es/components/multi-select/multi-select.d.ts.map +0 -1
  1872. package/es/components/notification/actionable-notification-button.d.ts.map +0 -1
  1873. package/es/components/notification/actionable-notification.d.ts.map +0 -1
  1874. package/es/components/notification/defs.d.ts.map +0 -1
  1875. package/es/components/notification/index.d.ts.map +0 -1
  1876. package/es/components/notification/inline-notification.d.ts.map +0 -1
  1877. package/es/components/notification/toast-notification.d.ts.map +0 -1
  1878. package/es/components/number-input/defs.d.ts.map +0 -1
  1879. package/es/components/number-input/index.d.ts.map +0 -1
  1880. package/es/components/number-input/number-input-skeleton.d.ts.map +0 -1
  1881. package/es/components/number-input/number-input.d.ts.map +0 -1
  1882. package/es/components/overflow-menu/defs.d.ts.map +0 -1
  1883. package/es/components/overflow-menu/index.d.ts.map +0 -1
  1884. package/es/components/overflow-menu/overflow-menu-body.d.ts.map +0 -1
  1885. package/es/components/overflow-menu/overflow-menu-item.d.ts.map +0 -1
  1886. package/es/components/overflow-menu/overflow-menu.d.ts.map +0 -1
  1887. package/es/components/pagination/defs.d.ts.map +0 -1
  1888. package/es/components/pagination/index.d.ts.map +0 -1
  1889. package/es/components/pagination/pagination.d.ts.map +0 -1
  1890. package/es/components/popover/defs.d.ts.map +0 -1
  1891. package/es/components/popover/index.d.ts.map +0 -1
  1892. package/es/components/popover/popover-content.d.ts.map +0 -1
  1893. package/es/components/popover/popover.d.ts.map +0 -1
  1894. package/es/components/progress-bar/defs.d.ts.map +0 -1
  1895. package/es/components/progress-bar/index.d.ts.map +0 -1
  1896. package/es/components/progress-bar/progress-bar.d.ts.map +0 -1
  1897. package/es/components/progress-indicator/defs.d.ts.map +0 -1
  1898. package/es/components/progress-indicator/index.d.ts.map +0 -1
  1899. package/es/components/progress-indicator/progress-indicator-skeleton.d.ts.map +0 -1
  1900. package/es/components/progress-indicator/progress-indicator.d.ts.map +0 -1
  1901. package/es/components/progress-indicator/progress-step-skeleton.d.ts.map +0 -1
  1902. package/es/components/progress-indicator/progress-step.d.ts.map +0 -1
  1903. package/es/components/radio-button/defs.d.ts.map +0 -1
  1904. package/es/components/radio-button/index.d.ts.map +0 -1
  1905. package/es/components/radio-button/radio-button-group.d.ts.map +0 -1
  1906. package/es/components/radio-button/radio-button-skeleton.d.ts.map +0 -1
  1907. package/es/components/radio-button/radio-button.d.ts.map +0 -1
  1908. package/es/components/search/index.d.ts.map +0 -1
  1909. package/es/components/search/search-skeleton.d.ts.map +0 -1
  1910. package/es/components/search/search.d.ts.map +0 -1
  1911. package/es/components/select/index.d.ts.map +0 -1
  1912. package/es/components/select/select-item-group.d.ts.map +0 -1
  1913. package/es/components/select/select-item.d.ts.map +0 -1
  1914. package/es/components/select/select-skeleton.d.ts.map +0 -1
  1915. package/es/components/select/select.d.ts.map +0 -1
  1916. package/es/components/skeleton-placeholder/index.d.ts.map +0 -1
  1917. package/es/components/skeleton-placeholder/skeleton-placeholder.d.ts.map +0 -1
  1918. package/es/components/skeleton-text/defs.d.ts.map +0 -1
  1919. package/es/components/skeleton-text/index.d.ts.map +0 -1
  1920. package/es/components/skeleton-text/skeleton-text.d.ts.map +0 -1
  1921. package/es/components/skip-to-content/index.d.ts.map +0 -1
  1922. package/es/components/skip-to-content/skip-to-content.d.ts.map +0 -1
  1923. package/es/components/slider/index.d.ts.map +0 -1
  1924. package/es/components/slider/slider-input.d.ts.map +0 -1
  1925. package/es/components/slider/slider-skeleton.d.ts.map +0 -1
  1926. package/es/components/slider/slider.d.ts.map +0 -1
  1927. package/es/components/stack/defs.d.ts.map +0 -1
  1928. package/es/components/stack/index.d.ts.map +0 -1
  1929. package/es/components/stack/stack.d.ts.map +0 -1
  1930. package/es/components/structured-list/index.d.ts.map +0 -1
  1931. package/es/components/structured-list/structured-list-body.d.ts.map +0 -1
  1932. package/es/components/structured-list/structured-list-cell.d.ts.map +0 -1
  1933. package/es/components/structured-list/structured-list-head.d.ts.map +0 -1
  1934. package/es/components/structured-list/structured-list-header-cell-skeleton.d.ts.map +0 -1
  1935. package/es/components/structured-list/structured-list-header-cell.d.ts.map +0 -1
  1936. package/es/components/structured-list/structured-list-header-row.d.ts.map +0 -1
  1937. package/es/components/structured-list/structured-list-row.d.ts.map +0 -1
  1938. package/es/components/structured-list/structured-list.d.ts.map +0 -1
  1939. package/es/components/tabs/defs.d.ts.map +0 -1
  1940. package/es/components/tabs/index.d.ts.map +0 -1
  1941. package/es/components/tabs/tab-skeleton.d.ts.map +0 -1
  1942. package/es/components/tabs/tab.d.ts.map +0 -1
  1943. package/es/components/tabs/tabs-skeleton.d.ts.map +0 -1
  1944. package/es/components/tabs/tabs.d.ts.map +0 -1
  1945. package/es/components/tag/defs.d.ts.map +0 -1
  1946. package/es/components/tag/index.d.ts.map +0 -1
  1947. package/es/components/tag/tag.d.ts.map +0 -1
  1948. package/es/components/tag/types.d.ts.map +0 -1
  1949. package/es/components/text-input/defs.d.ts.map +0 -1
  1950. package/es/components/text-input/index.d.ts.map +0 -1
  1951. package/es/components/text-input/text-input-skeleton.d.ts.map +0 -1
  1952. package/es/components/text-input/text-input.d.ts.map +0 -1
  1953. package/es/components/textarea/defs.d.ts.map +0 -1
  1954. package/es/components/textarea/index.d.ts.map +0 -1
  1955. package/es/components/textarea/textarea-skeleton.d.ts.map +0 -1
  1956. package/es/components/textarea/textarea.d.ts.map +0 -1
  1957. package/es/components/tile/clickable-tile.d.ts.map +0 -1
  1958. package/es/components/tile/defs.d.ts.map +0 -1
  1959. package/es/components/tile/expandable-tile.d.ts.map +0 -1
  1960. package/es/components/tile/index.d.ts.map +0 -1
  1961. package/es/components/tile/radio-tile.d.ts.map +0 -1
  1962. package/es/components/tile/selectable-tile.d.ts.map +0 -1
  1963. package/es/components/tile/tile-group.d.ts.map +0 -1
  1964. package/es/components/tile/tile.d.ts.map +0 -1
  1965. package/es/components/toggle/defs.d.ts.map +0 -1
  1966. package/es/components/toggle/index.d.ts.map +0 -1
  1967. package/es/components/toggle/toggle.d.ts.map +0 -1
  1968. package/es/components/toggle-tip/index.d.ts.map +0 -1
  1969. package/es/components/toggle-tip/toggletip.d.ts.map +0 -1
  1970. package/es/components/tooltip/index.d.ts.map +0 -1
  1971. package/es/components/tooltip/tooltip-content.d.ts.map +0 -1
  1972. package/es/components/tooltip/tooltip.d.ts.map +0 -1
  1973. package/es/components/ui-shell/defs.d.ts.map +0 -1
  1974. package/es/components/ui-shell/header-global-action.d.ts.map +0 -1
  1975. package/es/components/ui-shell/header-menu-button.d.ts.map +0 -1
  1976. package/es/components/ui-shell/header-menu-item.d.ts.map +0 -1
  1977. package/es/components/ui-shell/header-menu.d.ts.map +0 -1
  1978. package/es/components/ui-shell/header-name.d.ts.map +0 -1
  1979. package/es/components/ui-shell/header-nav-item.d.ts.map +0 -1
  1980. package/es/components/ui-shell/header-nav.d.ts.map +0 -1
  1981. package/es/components/ui-shell/header-panel.d.ts.map +0 -1
  1982. package/es/components/ui-shell/header-side-nav-items.d.ts.map +0 -1
  1983. package/es/components/ui-shell/header.d.ts.map +0 -1
  1984. package/es/components/ui-shell/index.d.ts.map +0 -1
  1985. package/es/components/ui-shell/side-nav-divider.d.ts.map +0 -1
  1986. package/es/components/ui-shell/side-nav-items.d.ts.map +0 -1
  1987. package/es/components/ui-shell/side-nav-link.d.ts.map +0 -1
  1988. package/es/components/ui-shell/side-nav-menu-item.d.ts.map +0 -1
  1989. package/es/components/ui-shell/side-nav-menu.d.ts.map +0 -1
  1990. package/es/components/ui-shell/side-nav.d.ts.map +0 -1
  1991. package/es/components/ui-shell/switcher-divider.d.ts.map +0 -1
  1992. package/es/components/ui-shell/switcher-item.d.ts.map +0 -1
  1993. package/es/components/ui-shell/switcher.d.ts.map +0 -1
  1994. package/es/globals/decorators/carbon-element.d.ts.map +0 -1
  1995. package/es/globals/decorators/host-listener.d.ts.map +0 -1
  1996. package/es/globals/directives/if-non-empty.d.ts.map +0 -1
  1997. package/es/globals/directives/spread.d.ts.map +0 -1
  1998. package/es/globals/internal/collection-helpers.d.ts.map +0 -1
  1999. package/es/globals/internal/handle.d.ts.map +0 -1
  2000. package/es/globals/internal/radio-group-manager.d.ts.map +0 -1
  2001. package/es/globals/internal/storybook-cdn.d.ts.map +0 -1
  2002. package/es/globals/mixins/focus.d.ts.map +0 -1
  2003. package/es/globals/mixins/form.d.ts.map +0 -1
  2004. package/es/globals/mixins/host-listener.d.ts.map +0 -1
  2005. package/es/globals/mixins/on.d.ts.map +0 -1
  2006. package/es/globals/mixins/validity.d.ts.map +0 -1
  2007. package/es/globals/settings.d.ts.map +0 -1
  2008. package/es/globals/shared-enums.d.ts.map +0 -1
  2009. package/es/globals/wrappers/createReactCustomElementType.d.ts.map +0 -1
  2010. package/es/index.d.ts.map +0 -1
  2011. package/es/polyfills/element-closest.d.ts.map +0 -1
  2012. package/es/polyfills/element-matches.d.ts.map +0 -1
  2013. package/es/polyfills/index.d.ts.map +0 -1
  2014. package/es/polyfills/toggle-attribute.d.ts.map +0 -1
  2015. package/es/polyfills/toggle-class.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/data-table/table-toolbar-search.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,SAAS,MAAM,kBAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIzC;;;;;GAKG;AACH,cACM,qBAAsB,SAAQ,0BAA4B;IAE9D,OAAO,CAAC,UAAU,CAAoB;IAEtC;;OAEG;YACW,0BAA0B;IAOxC;;OAEG;IAGH,OAAO,CAAC,cAAc;IAItB;;;;OAIG;IAGH,OAAO,CAAC,eAAe;IAUvB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAI1B;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,UAAU,UAAS;IAEnB;;OAEG;IAEH,IAAI,aAAoB;IAExB,iBAAiB;IAOjB,MAAM;IAyBN;;OAEG;IACH,MAAM,KAAK,UAAU,WAGpB;IAED,MAAM,CAAC,iBAAiB;;;;MAGtB;IACF,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,qBAAqB,CAAC","file":"table-toolbar-search.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 { classMap } from 'lit/directives/class-map.js';\nimport { LitElement, html } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport HostListener from '../../globals/decorators/host-listener';\nimport { INPUT_SIZE } from '../text-input/text-input';\nimport CDSSearch from '../search/search';\nimport styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Table toolbar search.\n *\n * @element cds-table-toolbar-search\n * @fires cds-search-input - The custom event fired after the search content is changed upon a user gesture.\n */\n@customElement(`${prefix}-table-toolbar-search`)\nclass CDSTableToolbarSearch extends HostListenerMixin(CDSSearch) {\n @query('input')\n private _inputNode!: HTMLInputElement;\n\n /**\n * Handles user-initiated gestures for expanding the search box.\n */\n private async _handleUserInitiatedExpand() {\n this.expanded = true;\n await this.updateComplete;\n const { _inputNode: inputNode } = this;\n inputNode?.focus();\n }\n\n /**\n * Handles `focus` event handler on this element.\n */\n @HostListener('focusin')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleFocusIn() {\n this._handleUserInitiatedExpand();\n }\n\n /**\n * Handles `blur` event handler on this element.\n *\n * @param event The event.\n */\n @HostListener('focusout')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleFocusOut(event: FocusEvent) {\n if (\n !this.contains(event.relatedTarget as Node) &&\n !this.value &&\n !this.persistent\n ) {\n this.expanded = false;\n }\n }\n\n /**\n * Handles `click` event handler on the search box.\n */\n private _handleSearchClick() {\n this._handleUserInitiatedExpand();\n }\n\n /**\n * `true` if the search box should be expanded.\n */\n @property({ type: Boolean, reflect: true })\n expanded = false;\n\n /**\n * `true` if the search box should be always be open.\n */\n @property({ type: Boolean, reflect: true })\n persistent = false;\n\n /**\n * The search box size.\n */\n @property({ reflect: true })\n size = INPUT_SIZE.LARGE;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'search');\n }\n super.connectedCallback();\n }\n\n render() {\n const result = super.render();\n const {\n persistent,\n expanded,\n size,\n _handleSearchClick: handleSearchClick,\n } = this;\n const classes = classMap({\n [`${prefix}--search`]: true,\n [`${prefix}--search--${size}`]: size,\n });\n if (persistent) {\n this.expanded = true;\n }\n return html`\n <div\n class=\"${classes}\"\n tabindex=\"${expanded ? '-1' : '0'}\"\n @click=\"${handleSearchClick}\">\n ${result}\n </div>\n `;\n }\n\n /**\n * The name of the custom event fired after the search content is changed upon a user gesture.\n */\n static get eventInput() {\n // The code uses on in `<cds-search>`, but definition is done also here for React event generation\n return `${prefix}-search-input`;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles;\n}\n\nexport default CDSTableToolbarSearch;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/data-table/table-toolbar.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAOvC;;;;GAIG;AACH,cACM,eAAgB,SAAQ,UAAU;IACtC;;OAEG;IAEH,IAAI,MAAC;IAEL,iBAAiB;IAOjB,OAAO,CAAC,iBAAiB,KAAA;IAUzB,MAAM;IAIN;;OAEG;IACH,MAAM,KAAK,sBAAsB,WAEhC;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,eAAe,CAAC","file":"table-toolbar.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 { CDSTableToolbarContent } from '../..';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Table toolbar.\n *\n * @element cds-table-toolbar\n */\n@customElement(`${prefix}-table-toolbar`)\nclass CDSTableToolbar extends LitElement {\n /**\n * Toolbar size\n */\n @property({ reflect: true })\n size;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'section');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (changedProperties.has('size')) {\n (\n this.querySelector(\n (this.constructor as typeof CDSTableToolbar).selectorToolbarContent\n ) as CDSTableToolbarContent\n ).size = this.size;\n }\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n /**\n * The CSS selector to find the toolbar contents\n */\n static get selectorToolbarContent() {\n return `${prefix}-table-toolbar-content`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableToolbar;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/data-table/table.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAIvC,OAAO,EAAE,UAAU,EAAwB,MAAM,QAAQ,CAAC;AAiB1D,OAAO,EAAE,UAAU,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtB;;;;GAIG;AACH,cACM,QAAS,SAAQ,aAA6B;IAClD;;OAEG;IACH,OAAO,CAAC,gBAAgB,CAGtB;IAEF;;OAEG;IAEH,OAAO,CAAC,eAAe,CAAC;IAExB;;OAEG;IAEH,OAAO,CAAC,YAAY,CAAM;IAE1B;;OAEG;IAEH,OAAO,CAAC,eAAe,CAAC;IAExB;;OAEG;IAEH,OAAO,CAAC,UAAU,CAAC;IAEnB;;OAEG;IAEH,OAAO,CAAC,kBAAkB,CAAC;IAE3B;;OAEG;IAEH,OAAO,CAAC,UAAU,CAAC;IAEnB;;OAEG;IAEH,OAAO,CAAC,kBAAkB,CAAC;IAE3B;;OAEG;IAEH,OAAO,CAAC,aAAa,CAAC;IAEtB;;OAEG;IAEH,OAAO,CAAC,oBAAoB,CAAC;IAG7B,OAAO,CAAC,aAAa,CAAqB;IAE1C;;OAEG;IAEH,cAAc,UAAS;IAEvB;;OAEG;IAEH,QAAQ,MAAC;IAET;;;;;;;;OAQG;IAEH,aAAa,CAAC,GAAG,KAAA,EAAE,GAAG,KAAA,EAAE,QAAQ,KAAA;IAOhC;;OAEG;IAEH,UAAU,UAAS;IAEnB;;;;;;;OAOG;IAEH,UAAU,YAAa,MAAM,gBAAgB,MAAM,aACD;IAElD;;OAEG;IAEH,WAAW,SAAK;IAEhB;;OAEG;IAEH,YAAY,UAAS;IAErB;;OAEG;IAEH,UAAU,UAAS;IAEnB;;OAEG;IAEH,MAAM,SAAQ;IAEd;;OAEG;IAMH,mBAAmB,UAAS;IAE5B;;OAEG;IAEH,KAAK,UAAS;IAEd;;OAEG;IAEH,IAAI,aAAiB;IAErB;;;;OAIG;IAIH;;OAEG;IAEH,cAAc,UAAS;IAEvB;;OAEG;IAEH,cAAc,UAAS;IAGvB,UAAU,MAAC;IAEX,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,iBAAiB;IAgCzB;;OAEG;IACH,OAAO,CAAC,eAAe;IAiCvB;;OAEG;IAGH,OAAO,CAAC,qBAAqB,CAO3B;IAEF;;OAEG;IAGH,OAAO,CAAC,WAAW,CA0EjB;IAEF;;OAEG;IAGH,OAAO,CAAC,kBAAkB,CAQxB;IAEF;;OAEG;IAGH,OAAO,CAAC,gBAAgB,CAmEtB;IAEF;;OAEG;IAGH,OAAO,CAAC,oBAAoB,CAiE1B;IAEF;;OAEG;IAGH,OAAO,CAAC,sBAAsB,CAU5B;IAEF,iBAAiB;IAOjB,YAAY;IAiCZ,OAAO,CAAC,iBAAiB,KAAA;IAuHzB,MAAM;IAmBN;;;OAGG;IACH,MAAM,KAAK,eAAe,WAEzB;IAED;;OAEG;IACH,MAAM,KAAK,gBAAgB,WAE1B;IAED;;OAEG;IACH,MAAM,KAAK,6BAA6B,WAEvC;IAED;;OAEG;IACH,MAAM,KAAK,0BAA0B,WAEpC;IAED;;OAEG;IACH,MAAM,KAAK,gBAAgB,WAE1B;IAED;;OAEG;IACH,MAAM,KAAK,kBAAkB,WAE5B;IAED;;OAEG;IACH,MAAM,KAAK,mBAAmB,WAE7B;IAED;;OAEG;IACH,MAAM,KAAK,sBAAsB,WAEhC;IAED;;OAEG;IACH,MAAM,KAAK,gBAAgB,WAE1B;IAED;;OAEG;IACH,MAAM,KAAK,kBAAkB,WAE5B;IAED;;OAEG;IACH,MAAM,KAAK,6BAA6B,WAEvC;IAED;;OAEG;IACH,MAAM,KAAK,uBAAuB,WAEjC;IAED;;OAEG;IACH,MAAM,KAAK,yBAAyB,WAEnC;IAED;;OAEG;IACH,MAAM,KAAK,oBAAoB,WAE9B;IAED;;OAEG;IACH,MAAM,KAAK,2BAA2B,WAErC;IAED;;OAEG;IACH,MAAM,KAAK,0BAA0B,WAEpC;IAED;;OAEG;IACH,MAAM,KAAK,iBAAiB,WAE3B;IAED;;OAEG;IACH,MAAM,KAAK,iBAAiB,WAE3B;IAED;;OAEG;IACH,MAAM,KAAK,yBAAyB,WAEnC;IAED;;OAEG;IACH,MAAM,KAAK,gBAAgB,WAE1B;IAED;;OAEG;IACH,MAAM,KAAK,qBAAqB,WAE/B;IAED;;OAEG;IACH,MAAM,KAAK,kBAAkB,WAE5B;IAED;;OAEG;IACH,MAAM,KAAK,kBAAkB,WAE5B;IAED;;OAEG;IACH,MAAM,KAAK,sBAAsB,WAEhC;IAED;;OAEG;IACH,MAAM,KAAK,eAAe,WAEzB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,QAAQ,CAAC","file":"table.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, state } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport { forEach } from '../../globals/internal/collection-helpers';\nimport { TABLE_SIZE, TABLE_SORT_DIRECTION } from './defs';\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 {\n CDSRadioButton,\n CDSTableBatchActions,\n CDSTableCell,\n CDSTableHeaderCell,\n CDSTableHeaderRow,\n CDSTableRow,\n CDSTableToolbarSearch,\n} from '../..';\nimport CDSTableExpandedRow from './table-expanded-row';\n\nexport { TABLE_SIZE };\n\n/**\n * Data table.\n *\n * @element cds-table\n */\n@customElement(`${prefix}-table`)\nclass CDSTable extends HostListenerMixin(LitElement) {\n /**\n * The map of how sorting direction affects sorting order.\n */\n private collationFactors = {\n [TABLE_SORT_DIRECTION.ASCENDING]: 1,\n [TABLE_SORT_DIRECTION.DESCENDING]: -1,\n };\n\n /**\n * Reference to download button\n */\n @state()\n private _downloadButton;\n\n /**\n * Current search value for filtering\n */\n @state()\n private _searchValue = '';\n\n /**\n * Table header row within component\n */\n @state()\n private _tableHeaderRow;\n\n /**\n * Table body\n */\n @state()\n private _tableBody;\n\n /**\n * Table expanded row within component\n */\n @state()\n private _tableExpandedRows;\n\n /**\n * Table rows within component\n */\n @state()\n private _tableRows;\n\n /**\n * Reference to the component containing batch actions\n */\n @state()\n private _tableBatchActions;\n\n /**\n * Reference to the table toolbar\n */\n @state()\n private _tableToolbar;\n\n /**\n * Reference to the table toolbar content\n */\n @state()\n private _tableToolbarContent;\n\n @state()\n private _selectedRows: CDSTableRow[] = [];\n\n /**\n * `true` if this table should support batch expansion\n */\n @property({ type: Boolean, reflect: true, attribute: 'batch-expansion' })\n batchExpansion = false;\n\n /**\n * The g11n collator to use.\n */\n @property({ attribute: false })\n collator;\n\n /**\n * @param lhs A value.\n * @param rhs Another value.\n * @param collator A custom collator.\n * @returns\n * `0` if the given two values are equal\n * A negative value to sort `lhs` to an index lower than `rhs`\n * A positive value to sort `rhs` to an index lower than `lhs`\n */\n // eslint-disable-next-line class-methods-use-this\n customSortRow(lhs, rhs, collator) {\n if (typeof lhs === 'number' && typeof rhs === 'number') {\n return lhs - rhs;\n }\n return collator.compare(lhs, rhs);\n }\n\n /**\n * Specify whether the rows should be able to be expandable\n */\n @property({ type: Boolean, reflect: true })\n expandable = false;\n\n /**\n * The method used when filtering the table with the search bar.\n * Can be replaced with custom method.\n *\n * @param row A table row.\n * @param searchString A search string.\n * @returns `false` if the given table row matches the given search string.\n */\n @property()\n filterRows = (rowText: string, searchString: string) =>\n rowText.toLowerCase().indexOf(searchString) < 0;\n\n /**\n * The total headers\n */\n @property()\n headerCount = 0;\n\n /**\n * `true` if this table contains selectable rows\n */\n @property({ type: Boolean, reflect: true, attribute: 'is-selectable' })\n isSelectable = false;\n\n /**\n * `true` if this table should support sorting.\n */\n @property({ type: Boolean, reflect: true, attribute: 'is-sortable' })\n isSortable = false;\n\n /**\n * The table size.\n */\n @property({ reflect: true })\n locale = 'en';\n\n /**\n * Specify whether the overflow menu (if it exists) should be shown always, or only on hover\n */\n @property({\n type: Boolean,\n reflect: true,\n attribute: 'overflow-menu-on-hover',\n })\n overflowMenuOnHover = false;\n\n /**\n * Specify whether the control should be a radio button or inline checkbox\n */\n @property({ type: Boolean, reflect: true })\n radio = false;\n\n /**\n * The table size.\n */\n @property({ reflect: true })\n size = TABLE_SIZE.LG;\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, attribute: 'sticky-header', reflect: true })\n // stickyHeader = false;\n\n /**\n * If true, will use a width of 'auto' instead of 100%\n */\n @property({ type: Boolean, attribute: 'use-static-width', reflect: true })\n useStaticWidth = false;\n\n /**\n * true to add useZebraStyles striping.\n */\n @property({ type: Boolean, attribute: 'use-zebra-styles', reflect: true })\n useZebraStyles = false;\n\n @property({ type: Boolean, attribute: 'with-header', reflect: true })\n withHeader;\n\n private _handleSlotChange({ target }: Event) {\n const hasContent = (target as HTMLSlotElement)\n .assignedNodes()\n .some(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n this.withHeader = hasContent;\n }\n\n private _handleFilterRows() {\n const unfilteredRows = [] as any;\n forEach(this._tableRows, (elem) => {\n const rowText = elem.textContent?.trim();\n const filtered = this.filterRows(rowText as string, this._searchValue);\n (elem as any).filtered = filtered;\n\n if (!filtered) {\n unfilteredRows.push(elem);\n }\n\n if (this.expandable) {\n (elem as any).nextElementSibling.filtered = filtered;\n }\n });\n\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n unfilteredRows,\n },\n };\n this.dispatchEvent(\n new CustomEvent(\n (this.constructor as typeof CDSTable).eventTableFiltered,\n init\n )\n );\n }\n\n /**\n * Download manager for selected rows.\n */\n private _handleDownload({ target }) {\n const data = [] as any;\n\n const elementsToArray = (elements) =>\n Array.from(elements, (element) => (element as any).textContent);\n\n const headerCells = this.querySelectorAll(\n (this.constructor as typeof CDSTable).selectorHeaderCell\n );\n const rows = this._selectedRows;\n const headerTitleArray = elementsToArray(headerCells);\n\n rows.forEach((row) => {\n const rowData = {};\n const cells = elementsToArray(\n row.querySelectorAll(\n (this.constructor as typeof CDSTable).selectorTableRowCells\n )\n );\n\n cells.forEach((cellText, index) => {\n const headerTitle = headerTitleArray[index];\n rowData[headerTitle] = cellText;\n });\n\n data.push(rowData);\n });\n\n const blob = new Blob([JSON.stringify(data)], { type: 'application/json' });\n\n target.href = URL.createObjectURL(blob);\n }\n\n /**\n * Handles batch expansion\n */\n @HostListener('eventExpandoToggle')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleBatchExpansion = async (event: CustomEvent) => {\n const { detail, target } = event;\n const { expanded } = detail;\n\n if ((target as CDSTableHeaderRow) === this._tableHeaderRow) {\n this._tableRows.forEach((e) => ((e as CDSTableRow).expanded = expanded));\n }\n };\n\n /**\n * Handles sorting the table depending on the column selected\n */\n @HostListener('eventBeforeSort')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleSort = async (event: CustomEvent) => {\n const { detail, target } = event;\n const { sortDirection } = detail;\n\n if (!this.contains(target as any)) {\n return;\n }\n\n const rows = [...this._tableRows];\n const columns = [...this._tableHeaderRow.children];\n const columnIndex = columns.indexOf(target);\n\n columns.forEach(\n (e) => e !== target && e.setAttribute('sort-direction', 'none')\n );\n\n // regular row sorting\n rows.sort((a, b) => {\n const cellA = a.querySelectorAll(\n (this.constructor as typeof CDSTable).selectorTableRowCells\n )[columnIndex].textContent;\n const cellB = b.querySelectorAll(\n (this.constructor as typeof CDSTable).selectorTableRowCells\n )[columnIndex].textContent;\n return (\n this.collationFactors[sortDirection] *\n this.customSortRow(cellA, cellB, this.collator)\n );\n });\n\n // take into account the expanded rows, mapping each expandable row to its original for proper reinsertion\n if (this.expandable) {\n const originalRows = [...this._tableRows];\n const expandedRows = [...this._tableExpandedRows];\n\n const mapping = originalRows.reduce((acc, element, index) => {\n const sortId = element.getAttribute('sort-id');\n acc[sortId] = expandedRows[index];\n return acc;\n }, {});\n\n const sortedWithExpanded = [] as any;\n\n rows.forEach((e) => {\n const sortId = e.getAttribute('sort-id');\n sortedWithExpanded.push(e);\n sortedWithExpanded.push(mapping[sortId]);\n });\n\n sortedWithExpanded.forEach((e) => {\n this._tableBody.insertBefore(e, null);\n });\n } else {\n rows.forEach((e) => {\n this._tableBody.insertBefore(e, null);\n });\n }\n\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n sortedHeader: columns[columnIndex],\n },\n };\n this.dispatchEvent(\n new CustomEvent(\n (this.constructor as typeof CDSTable).eventTableSorted,\n init\n )\n );\n\n this._handleFilterRows();\n };\n\n /**\n * Handles search input within the toolbar actions\n */\n @HostListener('eventSearchInput')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleSearchInput = async (event: CustomEvent) => {\n const { detail, target } = event;\n\n if (this.contains(target as CDSTableToolbarSearch)) {\n const { value } = detail;\n this._searchValue = value;\n this._handleFilterRows();\n }\n };\n\n /**\n * Handles row selection\n */\n @HostListener('eventBeforeChangeSelection')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleRowSelect = async (event: CustomEvent) => {\n const { detail, target } = event;\n const { selected } = detail;\n const {\n _tableBatchActions: tableBatchActions,\n _tableToolbarContent: tableToolbarContent,\n _tableHeaderRow: tableHeaderRow,\n _selectedRows: selectedRows,\n } = this;\n\n if (!this.contains(target as CDSTableRow)) {\n return;\n }\n\n if (this.radio) {\n this._tableRows.forEach((e) => {\n if (e !== target) {\n e.removeAttribute('selected');\n e.shadowRoot!.querySelector(`${prefix}-radio-button`).checked = false;\n }\n });\n this._selectedRows.push(...[target as CDSTableRow]);\n } else {\n if (selectedRows.includes(target as CDSTableRow)) {\n this._selectedRows = selectedRows.filter((e) => e !== target);\n } else {\n selectedRows.push(target as CDSTableRow);\n }\n\n if (tableBatchActions) {\n tableBatchActions.active = this._selectedRows?.length;\n tableBatchActions.selectedRowsCount += selected ? 1 : -1;\n }\n\n if (tableToolbarContent) {\n tableToolbarContent.hasBatchActions = this._selectedRows.length;\n }\n }\n\n const totalRows = [...this._tableRows].filter(\n (elem) => !elem.hasAttribute('filtered')\n ).length;\n\n // selected header checkbox upon all rows being selected\n const headerCheckbox = tableHeaderRow.shadowRoot\n ?.querySelector(`${prefix}-checkbox`)\n .shadowRoot.querySelector(`.${prefix}--checkbox`);\n const allRowsSelected = this._selectedRows.length === totalRows;\n headerCheckbox.checked = !this._selectedRows.length ? false : true;\n headerCheckbox.indeterminate =\n !allRowsSelected && this._selectedRows.length > 0;\n\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n selectedRow: target,\n selectedRows: selectedRows,\n },\n };\n this.dispatchEvent(\n new CustomEvent(\n (this.constructor as typeof CDSTable).eventTableRowSelect,\n init\n )\n );\n };\n\n /**\n * Handles header row selection, selecting/unselecting all rows\n */\n @HostListener('eventBeforeChangeSelectionAll')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleAllRowsSelect = async (event: CustomEvent) => {\n const { detail, target } = event;\n const { selected } = detail;\n const {\n _tableBatchActions: tableBatchActions,\n _tableToolbarContent: tableToolbarContent,\n _tableRows: tableRows,\n } = this;\n\n if (!this.contains(target as CDSTableRow)) {\n return;\n }\n\n let totalRows = 0;\n forEach(tableRows, (elem) => {\n if (!(elem as CDSTableRow).filtered) {\n (elem as CDSTableRow).selected = selected;\n this.radio\n ? ((\n (elem as CDSTableRow).shadowRoot!.querySelector(\n `${prefix}-radio-button`\n ) as CDSRadioButton\n ).checked = selected)\n : null;\n this._selectedRows.push(elem as CDSTableRow);\n totalRows++;\n\n const { selectorTableExpandedRows } = this\n .constructor as typeof CDSTable;\n const { nextElementSibling } = elem;\n\n // selecting the expanded row as well\n if (nextElementSibling?.matches(selectorTableExpandedRows)) {\n (elem.nextElementSibling as CDSTableExpandedRow).selected = selected;\n }\n }\n });\n\n if (!selected) {\n this._selectedRows = [];\n }\n\n if (tableBatchActions) {\n tableBatchActions.selectedRowsCount = selected ? totalRows : 0;\n tableBatchActions.active = selected;\n }\n\n if (tableToolbarContent) {\n tableToolbarContent.hasBatchActions = selected;\n }\n\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n selectedRows: this._selectedRows,\n },\n };\n this.dispatchEvent(\n new CustomEvent(\n (this.constructor as typeof CDSTable).eventTableRowSelectAll,\n init\n )\n );\n };\n\n /**\n * Handles cancel button within the toolbar actions\n */\n @HostListener('eventClickCancel')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleCancelSelection = async (event: CustomEvent) => {\n const { target } = event;\n const { _tableHeaderRow: tableHeaderRow } = this;\n\n if (this.contains(target as CDSTableBatchActions)) {\n tableHeaderRow.shadowRoot\n ?.querySelector(`${prefix}-checkbox`)\n .shadowRoot.querySelector(`.${prefix}--checkbox`)\n .click();\n }\n };\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'table');\n }\n super.connectedCallback();\n }\n\n firstUpdated() {\n this._tableBatchActions = this.querySelector(\n (this.constructor as typeof CDSTable).selectorTableBatchActions\n );\n this._tableToolbar = this.querySelector(\n (this.constructor as typeof CDSTable).selectorTableToolbar\n );\n this._tableToolbarContent = this.querySelector(\n (this.constructor as typeof CDSTable).selectorTableToolbarContent\n );\n this._tableBody = this.querySelector(\n (this.constructor as typeof CDSTable).selectorTableBody\n );\n this._tableHeaderRow = this.querySelector(\n (this.constructor as typeof CDSTable).selectorRowsWithHeader\n );\n this._tableExpandedRows = this.querySelectorAll(\n (this.constructor as typeof CDSTable).selectorTableExpandedRows\n );\n\n this._tableRows = this.querySelectorAll(\n (this.constructor as typeof CDSTable).selectorTableRow\n );\n\n this._downloadButton = this.querySelector(\n (this.constructor as typeof CDSTable).selectorToolbarDownload\n );\n if (this._downloadButton) {\n this._downloadButton.onclick = this._handleDownload.bind(this);\n }\n this.headerCount = this._tableHeaderRow.children.length;\n }\n\n updated(changedProperties) {\n if (changedProperties.has('expandable')) {\n this._tableRows.forEach((e, index) => {\n e.expandable = this.expandable;\n e.setAttribute('sort-id', index);\n });\n this._tableHeaderRow.expandable = this.expandable;\n this._tableHeaderRow.batchExpansion = this.batchExpansion;\n this.headerCount += this.expandable ? 1 : -1;\n }\n\n if (changedProperties.has('headerCount')) {\n this._tableExpandedRows.forEach((e) => {\n e.setAttribute('colspan', this.headerCount);\n });\n }\n\n if (changedProperties.has('isSelectable')) {\n this.headerCount++;\n }\n\n if (changedProperties.has('isSortable')) {\n const headerCells = this.querySelectorAll(\n (this.constructor as typeof CDSTable).selectorHeaderCell\n );\n headerCells.forEach((e) => {\n (e as CDSTableHeaderCell).isSortable = this.isSortable;\n (e as CDSTableHeaderCell).removeAttribute('sort-direction');\n (e as CDSTableHeaderCell).isSelectable = this.isSelectable;\n (e as CDSTableHeaderCell).isExpandable = this.expandable;\n });\n }\n\n if (changedProperties.has('locale')) {\n this.collator = new Intl.Collator(this.locale);\n }\n\n if (\n changedProperties.has('overflowMenuOnHover') ||\n changedProperties.has('size')\n ) {\n forEach(\n this.querySelectorAll(\n (this.constructor as typeof CDSTable).selectorTableCellOverflowMenu\n ),\n (elem) => {\n const cell = elem.parentNode as CDSTableCell;\n const row = cell.parentNode as CDSTableRow;\n cell.overflowMenuOnHover = this.overflowMenuOnHover;\n row.overflowMenuOnHover = this.overflowMenuOnHover;\n cell.setAttribute('size', this.size);\n elem.setAttribute('size', this.size);\n elem.setAttribute('data-table', '');\n }\n );\n }\n\n if (changedProperties.has('radio')) {\n // Propagate `size` attribute to descendants until `:host-context()` gets supported in all major browsers\n forEach(\n this.querySelectorAll(\n (this.constructor as typeof CDSTable).selectorTableRow\n ),\n (elem) => {\n (elem as CDSTableRow).radio = this.radio;\n }\n );\n }\n\n if (changedProperties.has('size')) {\n // Propagate `size` attribute to descendants until `:host-context()` gets supported in all major browsers\n forEach(\n this.querySelectorAll(\n (this.constructor as typeof CDSTable).selectorAllRows\n ),\n (elem) => {\n elem.setAttribute('size', this.size);\n }\n );\n this._tableToolbar?.setAttribute('size', this.size);\n }\n\n // TODO: Uncomment when Carbon fully implements Sticky header feature\n // if (changedProperties.has('stickyHeader')) {\n // const tableBody = this.querySelector(\n // (this.constructor as typeof CDSTable).selectorTableBody\n // );\n // const tableHead = this.querySelector(\n // (this.constructor as typeof CDSTable).selectorTableHead\n // );\n // (tableBody as any).stickyHeader = this.stickyHeader;\n // (tableHead as any).stickyHeader = this.stickyHeader;\n // forEach(\n // this.querySelectorAll(\n // (this.constructor as typeof CDSTable).selectorRowsWithHeader\n // ),\n // (elem) => {\n // (elem as any).stickyHeader = this.stickyHeader;\n // }\n // );\n // forEach(\n // this.querySelectorAll(\n // (this.constructor as typeof CDSTable).selectorTableCells\n // ),\n // (elem) => {\n // (elem as any).stickyHeader = this.stickyHeader;\n // }\n // );\n // }\n\n if (changedProperties.has('useZebraStyles')) {\n const tableBody = this.querySelector(\n (this.constructor as typeof CDSTable).selectorTableBody\n );\n (tableBody as any).useZebraStyles = this.useZebraStyles;\n }\n }\n\n /* eslint-disable no-constant-condition */\n render() {\n return html`\n <div ?hidden=\"${!this.withHeader}\" class=\"${prefix}--data-table-header\">\n <slot @slotchange=\"${this._handleSlotChange}\" name=\"title\"></slot>\n <slot @slotchange=\"${this._handleSlotChange}\" name=\"description\"></slot>\n </div>\n <slot name=\"toolbar\"></slot>\n\n ${false // TODO: replace with this.stickyHeader when feature is fully implemented\n ? html` <div class=\"${prefix}--data-table_inner-container\">\n <div class=\"${prefix}--data-table-content\">\n <slot></slot>\n </div>\n </div>`\n : html`<slot></slot>`}\n `;\n }\n /* eslint-enable no-constant-condition */\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 /**\n * The name of the custom event fired during search bar input\n */\n static get eventSearchInput() {\n return `${prefix}-search-input`;\n }\n\n /**\n * The name of the custom event fired before header row is selected/unselected upon a user gesture.\n */\n static get eventBeforeChangeSelectionAll() {\n return `${prefix}-table-change-selection-all`;\n }\n\n /**\n * The name of the custom event fired before a row is selected/unselected upon a user gesture.\n */\n static get eventBeforeChangeSelection() {\n return `${prefix}-table-row-change-selection`;\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 /**\n * The name of the custom event fired after the expanded state a row is toggled upon a user gesture.\n */\n static get eventExpandoToggle() {\n return `${prefix}-table-row-expando-toggled`;\n }\n\n /**\n * The name of the custom event fired after a row has been selected\n */\n static get eventTableRowSelect() {\n return `${prefix}-table-row-selected`;\n }\n\n /**\n * The name of the custom event fired after all rows have been selected\n */\n static get eventTableRowSelectAll() {\n return `${prefix}-table-row-all-selected`;\n }\n\n /**\n * The name of the custom event fired after the table has been sorted\n */\n static get eventTableSorted() {\n return `${prefix}-table-sorted`;\n }\n\n /**\n * The name of the custom event fired after the table has been filtered containing remaining rows.\n */\n static get eventTableFiltered() {\n return `${prefix}-table-filtered`;\n }\n\n /**\n * The CSS selector to find the overflow menu on the table cell\n */\n static get selectorTableCellOverflowMenu() {\n return `${prefix}-table-cell ${prefix}-overflow-menu`;\n }\n\n /**\n * The CSS selector to find the download button\n */\n static get selectorToolbarDownload() {\n return `${prefix}-button[download]`;\n }\n\n /**\n * The CSS selector to find the table batch actions\n */\n static get selectorTableBatchActions() {\n return `${prefix}-table-batch-actions`;\n }\n\n /**\n * The CSS selector to find the table toolbar\n */\n static get selectorTableToolbar() {\n return `${prefix}-table-toolbar`;\n }\n\n /**\n * The CSS selector to find the table toolbar content\n */\n static get selectorTableToolbarContent() {\n return `${prefix}-table-toolbar-content`;\n }\n\n /**\n * The CSS selector to find the table toolbar search\n */\n static get selectorTableToolbarSearch() {\n return `${prefix}-table-toolbar-search`;\n }\n\n /**\n * The CSS selector to find the table head\n */\n static get selectorTableHead() {\n return `${prefix}-table-head`;\n }\n\n /**\n * The CSS selector to find the table body\n */\n static get selectorTableBody() {\n return `${prefix}-table-body`;\n }\n\n /**\n * The CSS selector to find the table expanded rows\n */\n static get selectorTableExpandedRows() {\n return `${prefix}-table-expanded-row`;\n }\n\n /**\n * The CSS selector to find the table rows\n */\n static get selectorTableRow() {\n return `${prefix}-table-row`;\n }\n\n /**\n * The CSS selector to find the rows cells.\n */\n static get selectorTableRowCells() {\n return `${prefix}-table-cell`;\n }\n\n /**\n * The CSS selector to find the rows cells, including header cells.\n */\n static get selectorTableCells() {\n return `${prefix}-table-cell, ${prefix}-table-header-cell`;\n }\n\n /**\n * The CSS selector to find the header cell\n */\n static get selectorHeaderCell() {\n return `${prefix}-table-header-cell`;\n }\n\n /**\n * The CSS selector to find the rows, including header rows.\n */\n static get selectorRowsWithHeader() {\n return `${prefix}-table-header-row,${prefix}-table-row`;\n }\n\n /**\n * The CSS selector to find all rows\n */\n static get selectorAllRows() {\n return `${prefix}-table-header-row,${prefix}-table-row,${prefix}-table-expanded-row`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTable;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/date-picker/append-to-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC;CACvB;AAED;;;GAGG;iCACqB,8BAA8B,KAAG,MAAM;AAA/D,wBAsCI","file":"append-to-plugin.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Instance as FlatpickrInstance } from 'flatpickr/dist/types/instance';\nimport { Plugin } from 'flatpickr/dist/types/options';\n\n/**\n * The configuration for the Flatpickr plugin to put the calendar dropdown in shadow DOM.\n */\nexport interface DatePickerAppendToPluginConfig {\n /**\n * The floating menu container.\n */\n appendTo: HTMLElement;\n}\n\n/**\n * @param config Plugin configuration.\n * @returns A Flatpickr plugin to put the calendar dropdown in shadow DOM.\n */\nexport default (config: DatePickerAppendToPluginConfig): Plugin =>\n (fp: FlatpickrInstance) => {\n /**\n * Adjusts the floating meun position after Flatpicker sets it.\n */\n const handlePreCalendarPosition = async () => {\n await Promise.resolve();\n const {\n calendarContainer,\n config: fpConfig,\n _positionElement: positionElement,\n } = fp;\n const { appendTo } = fpConfig;\n const { top: containerTop } = appendTo!.getBoundingClientRect();\n const { bottom: refBottom } = positionElement.getBoundingClientRect();\n const isRtl =\n appendTo!\n .ownerDocument!.defaultView!.getComputedStyle(appendTo!)\n .getPropertyValue('direction') === 'rtl';\n calendarContainer.style.top = `${refBottom - containerTop}px`;\n calendarContainer.style.left = !isRtl ? '0' : 'auto';\n calendarContainer.style.right = !isRtl ? 'auto' : '0';\n };\n\n /**\n * Registers this Flatpickr plugin.\n *\n * @param calendar The Flatpickr instance.\n */\n const register = () => {\n fp.loadedPlugins.push('carbonFlatpickrAppendToPlugin');\n };\n\n return {\n appendTo: config.appendTo,\n onReady: register,\n onPreCalendarPosition: handlePreCalendarPosition,\n };\n };\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/date-picker/css-class-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAGtD;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAElC;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,wBAAwB,EAAE,MAAM,CAAC;IAEjC;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED;;;GAGG;iCACqB,8BAA8B,KAAG,MAAM;AAA/D,wBA+EI","file":"css-class-plugin.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Instance as FlatpickrInstance } from 'flatpickr/dist/types/instance';\nimport { Plugin } from 'flatpickr/dist/types/options';\nimport { forEach } from '../../globals/internal/collection-helpers';\n\n/**\n * The configuration for the Flatpickr plugin to set CSS classes specific to this design system.\n */\nexport interface DatePickerCSSClassPluginConfig {\n /**\n * The CSS class for the calendar dropdown.\n */\n classCalendarContainer: string;\n\n /**\n * The CSS class for the month navigator.\n */\n classMonth: string;\n\n /**\n * The CSS class for the container of the weekdays.\n */\n classWeekdays: string;\n\n /**\n * The CSS class for the container of the days.\n */\n classDays: string;\n\n /**\n * The CSS class applied to each weekdays.\n */\n classWeekday: string;\n\n /**\n * The CSS class applied to each days.\n */\n classDay: string;\n\n /**\n * The CSS class applied to the \"today\" highlight if there are any dates selected.\n */\n classNoBorder: string;\n\n /**\n * The CSS selector for Flatpickr's month navigator.\n */\n selectorFlatpickrMonth: string;\n\n /**\n * The CSS selector for Flatpickr's container of the weekdays.\n */\n selectorFlatpickrWeekdays: string;\n\n /**\n * The CSS selector for Flatpickr's container of the days.\n */\n selectorFlatpickrDays: string;\n\n /**\n * The CSS selector applied to Flatpickr's each weekdays.\n */\n selectorFlatpickrWeekday: string;\n\n /**\n * The CSS selector applied to Flatpickr's each days.\n */\n selectorFlatpickrDay: string;\n\n /**\n * The CSS class applied to Flatpickr's \"today\" highlight.\n */\n classFlatpickrToday: string;\n}\n\n/**\n * @param config Plugin configuration.\n * @returns A Flatpickr plugin to set CSS classes specific to this design system.\n */\nexport default (config: DatePickerCSSClassPluginConfig): Plugin =>\n (fp: FlatpickrInstance) => {\n /**\n * Adds class names specific to our design system to calendar dropdown.\n */\n const ensureClassesInDatePicker = () => {\n const { calendarContainer, selectedDates } = fp;\n if (calendarContainer) {\n const {\n classCalendarContainer,\n classMonth,\n classWeekdays,\n classDays,\n classWeekday,\n classDay,\n classNoBorder,\n selectorFlatpickrMonth,\n selectorFlatpickrWeekdays,\n selectorFlatpickrDays,\n selectorFlatpickrWeekday,\n selectorFlatpickrDay,\n classFlatpickrToday,\n } = config;\n calendarContainer.classList.add(classCalendarContainer);\n const month = calendarContainer.querySelector(selectorFlatpickrMonth);\n if (month) {\n month.classList.add(classMonth);\n }\n const weekdays = calendarContainer.querySelector(\n selectorFlatpickrWeekdays\n );\n if (weekdays) {\n weekdays.classList.add(classWeekdays);\n }\n const days = calendarContainer.querySelector(selectorFlatpickrDays);\n if (days) {\n days.classList.add(classDays);\n }\n forEach(\n calendarContainer.querySelectorAll(selectorFlatpickrWeekday),\n (item) => {\n item.innerHTML = item.innerHTML.replace(/\\s+/g, '');\n item.classList.add(classWeekday);\n }\n );\n forEach(\n calendarContainer.querySelectorAll(selectorFlatpickrDay),\n (item) => {\n item.classList.add(classDay);\n if (\n item.classList.contains(classFlatpickrToday) &&\n selectedDates!.length > 0\n ) {\n item.classList.add(classNoBorder);\n } else if (\n item.classList.contains(classFlatpickrToday) &&\n selectedDates!.length === 0\n ) {\n item.classList.remove(classNoBorder);\n }\n }\n );\n }\n };\n\n /**\n * Registers this Flatpickr plugin.\n */\n const register = () => {\n fp.loadedPlugins.push('carbonFlatpickrCSSClassPlugin');\n };\n\n return {\n onMonthChange: ensureClassesInDatePicker,\n onYearChange: ensureClassesInDatePicker,\n onValueUpdate: ensureClassesInDatePicker,\n onOpen: ensureClassesInDatePicker,\n onReady: [register],\n };\n };\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/date-picker/date-picker-input-skeleton.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAGvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAI7D;;GAEG;AACH,cACM,0BAA2B,SAAQ,UAAU;IACjD;;OAEG;IAEH,IAAI,yBAAiC;IAErC,MAAM;IAON,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,0BAA0B,CAAC","file":"date-picker-input-skeleton.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 { DATE_PICKER_INPUT_KIND } from './date-picker-input';\nimport styles from './date-picker.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Skeleton version of the input box for date picker.\n */\n@customElement(`${prefix}-date-picker-input-skeleton`)\nclass CDSDatePickerInputSkeleton extends LitElement {\n /**\n * Date picker input kind. Corresponds to the attribute with the same name.\n */\n @property({ reflect: true })\n kind = DATE_PICKER_INPUT_KIND.SIMPLE;\n\n render() {\n return html`\n <span class=\"${prefix}--label\"></span>\n <div class=\"${prefix}--date-picker__input ${prefix}--skeleton\"></div>\n `;\n }\n\n static styles = styles;\n}\n\nexport default CDSDatePickerInputSkeleton;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/date-picker/date-picker-input.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAC;AAMhF,OAAO,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElE;;;;GAIG;AACH,cACM,kBAAmB,SAAQ,uBAAsB;IACrD;;OAEG;IAEH,OAAO,CAAC,SAAS,CAAc;IAE/B;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAM3B;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAKpB;;OAEG;IACH,OAAO,CAAC,WAAW;IAUnB;;OAEG;IAEH,SAAS,CAAC,cAAc,UAAS;IAEjC;;OAEG;IACH,SAAS,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK;IAY7C;;OAEG;IAEH,KAAK,EAAG,gBAAgB,CAAC;IAEzB;;OAEG;IAEH,WAAW,iCAA0C;IAErD;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,SAAS,UAAS;IAElB;;OAEG;IAEH,IAAI,UAAS;IAEb;;OAEG;IAEH,QAAQ,SAAM;IAEd;;OAEG;IAEH,WAAW,SAAM;IAEjB;;OAEG;IAEH,OAAO,UAAS;IAEhB;;OAEG;IAEH,IAAI,yBAAiC;IAErC;;OAEG;IAEH,SAAS,EAAG,MAAM,CAAC;IAEnB;;OAEG;IAEH,OAAO,EAAG,MAAM,CAAC;IAEjB;;OAEG;IAEH,WAAW,EAAG,MAAM,CAAC;IAErB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,IAAI,aAAqB;IAEzB;;OAEG;IAEH,KAAK,UAAS;IAEd;;OAEG;IAEH,IAAI,EAAG,MAAM,CAAC;IAEd;;OAEG;IAEH,KAAK,EAAG,MAAM,CAAC;IAEf,MAAM;IAuGN;;OAEG;IACH,MAAM,CAAC,cAAc,SAAkC;IAEvD;;OAEG;IACH,MAAM,CAAC,WAAW,SAAU;IAE5B;;OAEG;IACH,MAAM,KAAK,cAAc,WAExB;IAED,MAAM,CAAC,iBAAiB;;;;MAGtB;IACF,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,kBAAkB,CAAC","file":"date-picker-input.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 { classMap } from 'lit/directives/class-map.js';\nimport { LitElement, html } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport Calendar16 from '@carbon/icons/lib/calendar/16';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { prefix } from '../../globals/settings';\nimport FocusMixin from '../../globals/mixins/focus';\nimport { INPUT_SIZE } from '../text-input/text-input';\nimport { DATE_PICKER_INPUT_COLOR_SCHEME, DATE_PICKER_INPUT_KIND } from './defs';\nimport WarningFilled16 from '@carbon/icons/lib/warning--filled/16';\nimport WarningAltFilled16 from '@carbon/icons/lib/warning--alt--filled/16';\nimport styles from './date-picker.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\nexport { DATE_PICKER_INPUT_COLOR_SCHEME, DATE_PICKER_INPUT_KIND };\n\n/**\n * The input box for date picker.\n *\n * @element cds-date-picker-input\n */\n@customElement(`${prefix}-date-picker-input`)\nclass CDSDatePickerInput extends FocusMixin(LitElement) {\n /**\n * The calendar icon.\n */\n @query(`.${prefix}--date-picker__icon`)\n private _iconNode!: SVGElement;\n\n /**\n * Handles `click` event on the calendar icon.\n *\n * @param event The event.\n */\n private _handleClickWrapper(event: MouseEvent) {\n if (event.target === this._iconNode) {\n this.input.focus();\n }\n }\n\n /**\n * Handles `input` event on `<input>` in the shadow DOM.\n *\n * @param event The event.\n */\n private _handleInput({ target }: Event) {\n const { value } = target as HTMLInputElement;\n this.value = value;\n }\n\n /**\n * @returns The template for the the calendar icon.\n */\n private _renderIcon() {\n return this.kind === DATE_PICKER_INPUT_KIND.SIMPLE\n ? undefined\n : Calendar16({\n class: `${prefix}--date-picker__icon`,\n role: 'img',\n children: [html` <title>Open calendar</title> `],\n });\n }\n\n /**\n * `true` if there is helper text content.\n */\n @state()\n protected _hasHelperText = false;\n\n /**\n * Handles `slotchange` event on the default `<slot>`.\n */\n protected _handleSlotChange({ target }: Event) {\n if (!(target as HTMLSlotElement).name) {\n const hasContent = (target as HTMLSlotElement)\n .assignedNodes()\n .some(\n (node) =>\n node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n this._hasHelperText = hasContent;\n }\n }\n\n /**\n * The `<input>`, used for Flatpickr to grab.\n */\n @query('input')\n input!: HTMLInputElement;\n\n /**\n * The color scheme.\n */\n @property({ attribute: 'color-scheme', reflect: true })\n colorScheme = DATE_PICKER_INPUT_COLOR_SCHEME.REGULAR;\n\n /**\n * `true` if the check box should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * `true` if the label should be hidden.\n */\n @property({ type: Boolean, reflect: true, attribute: 'hide-label' })\n hideLabel = false;\n\n /**\n * Specify whether the control is currently in warning state\n */\n @property({ type: Boolean, reflect: true })\n warn = false;\n\n /**\n * Provide the text that is displayed when the control is in warning state\n */\n @property({ attribute: 'warn-text' })\n warnText = '';\n\n /**\n * Message which is displayed if the value is invalid.\n */\n @property({ attribute: 'invalid-text' })\n invalidText = '';\n\n /**\n * Controls the invalid state and visibility of the `validityMessage`.\n */\n @property({ type: Boolean, reflect: true })\n invalid = false;\n\n /**\n * Date picker input kind.\n */\n @property({ reflect: true })\n kind = DATE_PICKER_INPUT_KIND.SIMPLE;\n\n /**\n * The label text.\n */\n @property({ attribute: 'label-text' })\n labelText!: string;\n\n /**\n * The `pattern` attribute for the `<input>` in the shadow DOM.\n */\n @property()\n pattern!: string;\n\n /**\n * The placeholder text.\n */\n @property()\n placeholder!: string;\n\n /**\n * Specify if the component should be read-only\n */\n @property({ type: Boolean, reflect: true })\n readonly = false;\n\n /**\n * `true` if the value is required.\n */\n @property({ type: Boolean, reflect: true })\n required = false;\n\n /**\n * Vertical size of this date picker input.\n */\n @property({ attribute: 'size', reflect: true })\n size = INPUT_SIZE.MEDIUM;\n\n /**\n * true to use the short version.\n */\n @property({ type: Boolean, reflect: true })\n short = false;\n\n /**\n * The `type` attribute for the `<input>` in the shadow DOM.\n */\n @property()\n type!: string;\n\n /**\n * The value.\n */\n @property()\n value!: string;\n\n render() {\n const constructor = this.constructor as typeof CDSDatePickerInput;\n const {\n disabled,\n _hasHelperText: hasHelperText,\n hideLabel,\n invalid,\n invalidText,\n labelText,\n pattern = constructor.defaultPattern,\n placeholder,\n readonly,\n size,\n type = constructor.defaultType,\n value,\n warn,\n warnText,\n _handleClickWrapper: handleClickWrapper,\n _handleInput: handleInput,\n } = this;\n\n const invalidIcon = WarningFilled16({\n class: `${prefix}--date-picker__icon ${prefix}--date-picker__icon--invalid`,\n });\n\n const warnIcon = WarningAltFilled16({\n class: `${prefix}--date-picker__icon ${prefix}--date-picker__icon--warn`,\n });\n\n let normalizedProps = {\n disabled: !readonly && disabled,\n invalid: !readonly && invalid,\n warn: !readonly && !invalid && warn,\n 'slot-name': '',\n 'slot-text': '',\n icon: null,\n };\n\n if (normalizedProps.invalid) {\n normalizedProps.icon = invalidIcon;\n normalizedProps['slot-name'] = 'invalid-text';\n normalizedProps['slot-text'] = invalidText;\n } else if (normalizedProps.warn) {\n normalizedProps.icon = warnIcon;\n normalizedProps['slot-name'] = 'warn-text';\n normalizedProps['slot-text'] = warnText;\n }\n\n const labelClasses = classMap({\n [`${prefix}--label`]: true,\n [`${prefix}--visually-hidden`]: hideLabel,\n [`${prefix}--label--disabled`]: disabled,\n });\n const inputClasses = classMap({\n [`${prefix}--date-picker__input`]: true,\n [`${prefix}--date-picker__input--invalid`]: normalizedProps.invalid,\n [`${prefix}--date-picker__input--warn`]: normalizedProps.warn,\n [`${prefix}--date-picker__input--${size}`]: size,\n });\n\n const inputWrapperClasses = classMap({\n [`${prefix}--date-picker-input__wrapper`]: true,\n [`${prefix}--date-picker-input__wrapper--invalid`]:\n normalizedProps.invalid,\n [`${prefix}--date-picker-input__wrapper--warn`]: normalizedProps.warn,\n });\n\n const helperTextClasses = classMap({\n [`${prefix}--form__helper-text`]: true,\n [`${prefix}--form__helper-text--disabled`]: disabled,\n });\n\n return html`\n <label for=\"input\" class=\"${labelClasses}\">\n <slot name=\"label-text\">${labelText}</slot>\n </label>\n <div class=\"${inputWrapperClasses}\" @click=\"${handleClickWrapper}\">\n <input\n id=\"input\"\n type=\"${type}\"\n class=\"${inputClasses}\"\n ?disabled=\"${disabled}\"\n pattern=\"${pattern}\"\n placeholder=\"${ifDefined(placeholder)}\"\n .value=\"${ifDefined(value)}\"\n ?data-invalid=\"${invalid}\"\n @input=\"${handleInput}\"\n ?readonly=\"${readonly}\" />\n ${normalizedProps.icon || this._renderIcon()}\n </div>\n <div\n class=\"${prefix}--form-requirement\"\n ?hidden=\"${!normalizedProps.invalid && !normalizedProps.warn}\">\n <slot name=\"${normalizedProps['slot-name']}\">\n ${normalizedProps['slot-text']}\n </slot>\n </div>\n <div ?hidden=\"${hasHelperText}\" class=\"${helperTextClasses}\">\n <slot name=\"helper-text\" @slotchange=\"${this._handleSlotChange}\"></slot>\n </div>\n `;\n }\n\n /**\n * The default value for `pattern` property.\n */\n static defaultPattern = '\\\\d{1,2}\\\\/\\\\d{1,2}\\\\/\\\\d{4}';\n\n /**\n * The default value for `type` property.\n */\n static defaultType = 'text';\n\n /**\n * A selector that will return the parent date picker.\n */\n static get selectorParent() {\n return `${prefix}-date-picker`;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles;\n}\n\nexport default CDSDatePickerInput;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/date-picker/date-picker.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAGvC,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDxE;;;;;GAKG;AACH,cACM,aAAc,SAAQ,kBAAwC;IAClE;;OAEG;IACH,OAAO,CAAC,iBAAiB,CAAmC;IAE5D;;OAEG;IAEH,OAAO,CAAC,0BAA0B,CAAkB;IAEpD;;OAEG;IACH,OAAO,CAAC,MAAM,CAAU;IAExB;;OAEG;IACH,OAAO,KAAK,KAAK,GAUhB;IAED;;OAEG;IACH,OAAO,KAAK,kBAAkB,GAyE7B;IAED;;OAEG;IACH,OAAO,KAAK,kBAAkB,GA4B7B;IAED;;OAEG;IAGH,OAAO,CAAC,aAAa,CAInB;IAEF,eAAe,CAAC,KAAK,EAAE,KAAK;IAQ5B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAiBzB;;OAEG;IACH,OAAO,CAAC,qBAAqB,CAc3B;IAEF;;;;OAIG;IACH,OAAO,CAAC,sBAAsB;IAc9B;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAQ1B;;OAEG;IACH,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IAE1C;;OAEG;IAEH,UAAU,UAAQ;IAElB;;OAEG;IAEH,aAAa,UAAQ;IAErB;;OAEG;IAEH,UAAU,EAAG,MAAM,CAAC;IAEpB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,MAAM,EAAG,eAAe,CAAC;IAEzB;;OAEG;IAEH,YAAY,EAAG,MAAM,CAAC;IAEtB;;OAEG;IAEH,OAAO,EAAG,MAAM,CAAC;IAEjB;;OAEG;IAEH,OAAO,EAAG,MAAM,CAAC;IAEjB;;OAEG;IAEH,IAAI,SAAM;IAEV;;OAEG;IAEH,IAAI,UAAS;IAEb;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IACH,IACI,KAAK,IAIQ,MAAM,CAFtB;IAED,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAItB;IAED,iBAAiB;IAKjB,oBAAoB;IAKpB,OAAO,CAAC,iBAAiB,KAAA;IAuFzB,MAAM;IAgBN;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,oCAAoC,CACtB;IAE7B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,+BAA+B,CAAsB;IAEpE;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,8BAA8B,CAAgB;IAE7D;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,uBAAuB,CAAsB;IAE5D;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAyB;IAElE;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAqB;IAE1D;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,yBAAyB,CAAwB;IAEhE;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAAoB;IAExD;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,2BAA2B,CAAe;IAEzD;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAAW;IAE9C;;OAEG;IACH,MAAM,KAAK,sBAAsB,WAEhC;IAED;;OAEG;IACH,MAAM,KAAK,UAAU,WAEpB;IAED;;OAEG;IACH,MAAM,KAAK,aAAa,WAEvB;IAED;;OAEG;IACH,MAAM,KAAK,SAAS,WAEnB;IAED;;OAEG;IACH,MAAM,KAAK,YAAY,WAEtB;IAED;;OAEG;IACH,MAAM,KAAK,QAAQ,WAElB;IAED;;OAEG;IACH,MAAM,CAAC,aAAa,SAAe;IAEnC;;OAEG;IACH,MAAM,CAAC,iBAAiB,SAAW;IAEnC;;OAEG;IACH,MAAM,CAAC,aAAa,uEAA2B;IAE/C;;OAEG;IACH,MAAM,KAAK,iBAAiB,WAE3B;IAED;;OAEG;IACH,MAAM,KAAK,eAAe,WAEzB;IAED;;OAEG;IACH,MAAM,KAAK,mBAAmB,WAE7B;IAED;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,aAAa,CAAC","file":"date-picker.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 flatpickr from 'flatpickr';\nimport { Instance as FlatpickrInstance } from 'flatpickr/dist/types/instance';\nimport { Locale as FlatpickrLocale } from 'flatpickr/dist/types/locale';\nimport {\n Options as FlatpickrOptions,\n Plugin as FlatpickrPlugin,\n} from 'flatpickr/dist/types/options';\nimport { prefix } from '../../globals/settings';\nimport FormMixin from '../../globals/mixins/form';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport HostListener from '../../globals/decorators/host-listener';\nimport { getISODateString, parseISODateString } from './iso-date';\nimport CDSDatePickerInput from './date-picker-input';\nimport appendToPlugin from './append-to-plugin';\nimport cssClassPlugin from './css-class-plugin';\nimport fixEventsPlugin from './fix-events-plugin';\nimport focusPlugin from './focus-plugin';\nimport iconPlugin from './icon-plugin';\nimport monthSelectPlugin from './month-select-plugin';\nimport rangePlugin from './range-plugin';\nimport shadowDOMEventPlugin from './shadow-dom-events-plugin';\nimport stateHandshakePlugin from './state-handshake-plugin';\nimport styles from './date-picker.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Date picker modes.\n */\nenum DATE_PICKER_MODE {\n /**\n * Simple mode, without calendar dropdown.\n */\n SIMPLE = 'simple',\n\n /**\n * Single date mode.\n */\n SINGLE = 'single',\n\n /**\n * Range mode.\n */\n RANGE = 'range',\n}\n\n// Weekdays shorthand for english locale\nflatpickr!.l10ns!.en!.weekdays.shorthand.forEach((_day, index) => {\n const currentDay = flatpickr!.l10ns!.en!.weekdays.shorthand;\n if (currentDay[index] === 'Thu' || currentDay[index] === 'Th') {\n currentDay[index] = 'Th';\n } else {\n currentDay[index] = currentDay[index].charAt(0);\n }\n});\n\n/**\n * Date picker.\n *\n * @element cds-date-picker\n * @fires cds-date-picker-changed - The custom event fired on this element when Flatpickr updates its value.\n */\n@customElement(`${prefix}-date-picker`)\nclass CDSDatePicker extends HostListenerMixin(FormMixin(LitElement)) {\n /**\n * The slotted `<cds-date-input kind=\"from\">`.\n */\n private _dateInteractNode: CDSDatePickerInput | null = null;\n\n /**\n * The element to put calendar dropdown in.\n */\n @query('#floating-menu-container')\n private _floatingMenuContainerNode!: HTMLDivElement;\n\n /**\n * The internal placeholder for the `value` property.\n */\n private _value!: string;\n\n /**\n * @returns The effective date picker mode, determined by the child `<cds-date-picker-input>`.\n */\n private get _mode() {\n const { selectorInputFrom, selectorInputTo } = this\n .constructor as typeof CDSDatePicker;\n if (this.querySelector(selectorInputTo)) {\n return DATE_PICKER_MODE.RANGE;\n }\n if (this.querySelector(selectorInputFrom)) {\n return DATE_PICKER_MODE.SINGLE;\n }\n return DATE_PICKER_MODE.SIMPLE;\n }\n\n /**\n * @returns The Flatpickr plugins to use.\n */\n private get _datePickerPlugins(): FlatpickrPlugin[] {\n const {\n classCalendarContainer,\n classMonth,\n classWeekdays,\n classDays,\n classWeekday,\n classDay,\n classNoBorder,\n selectorInputFrom,\n selectorInputTo,\n _selectorFlatpickrMonthYearContainer: selectorFlatpickrMonthYearContainer,\n _selectorFlatpickrYearContainer: selectorFlatpickrYearContainer,\n _selectorFlatpickrCurrentMonth: selectorFlatpickrCurrentMonth,\n _selectorFlatpickrMonth: selectorFlatpickrMonth,\n _selectorFlatpickrWeekdays: selectorFlatpickrWeekdays,\n _selectorFlatpickrDays: selectorFlatpickrDays,\n _selectorFlatpickrWeekday: selectorFlatpickrWeekday,\n _selectorFlatpickrDay: selectorFlatpickrDay,\n _classFlatpickrCurrentMonth: classFlatpickrCurrentMonth,\n _classFlatpickrToday: classFlatpickrToday,\n } = this.constructor as typeof CDSDatePicker;\n const {\n _floatingMenuContainerNode: floatingMenuContainerNode,\n _mode: mode,\n } = this;\n const inputFrom = this.querySelector(selectorInputFrom);\n const inputTo = this.querySelector(selectorInputTo);\n const plugins = [\n appendToPlugin({ appendTo: floatingMenuContainerNode }),\n cssClassPlugin({\n classCalendarContainer,\n classMonth,\n classWeekdays,\n classDays,\n classWeekday,\n classDay,\n classNoBorder,\n selectorFlatpickrMonth,\n selectorFlatpickrWeekdays,\n selectorFlatpickrDays,\n selectorFlatpickrWeekday,\n selectorFlatpickrDay,\n classFlatpickrToday,\n }),\n fixEventsPlugin({\n inputFrom: inputFrom as CDSDatePickerInput,\n inputTo: inputTo as CDSDatePickerInput,\n }),\n focusPlugin({\n inputFrom: inputFrom as CDSDatePickerInput,\n inputTo: inputTo as CDSDatePickerInput,\n }),\n iconPlugin(),\n monthSelectPlugin({\n selectorFlatpickrMonthYearContainer,\n selectorFlatpickrYearContainer,\n selectorFlatpickrCurrentMonth,\n classFlatpickrCurrentMonth,\n }),\n shadowDOMEventPlugin(),\n stateHandshakePlugin(this),\n ];\n if (mode === DATE_PICKER_MODE.RANGE) {\n // Flatpickr runs event handlers of last registered plugins first.\n // Ensures `onValueUpdate` of `rangePlugin` runs first\n // given Flatpickr puts `01/01/1970 to 01/02/1970` to from date\n // where `rangePlugin` overrides it to separate them to from/to dates.\n // We want to ensure our handler of `onValueUpdate` (notably one in `<cds-date-picker-input>`)\n // gets the `<input>` value set by `rangePlugin` instead of Flatpickr core.\n plugins.push(rangePlugin({ input: inputTo as HTMLInputElement }));\n }\n return plugins;\n }\n\n /**\n * @returns The options to instantiate Flatpickr with.\n */\n private get _datePickerOptions(): FlatpickrOptions {\n const {\n locale = (this.constructor as typeof CDSDatePicker).defaultLocale,\n enabledRange,\n _dateInteractNode: dateInteractNode,\n _datePickerPlugins: plugins,\n _handleFlatpickrError: handleFlatpickrError,\n } = this;\n // We use `<cds-date-picker-input>` to communicate values/events with Flatpickr,\n // but want to use `<input>` in shadow DOM to base the calendar dropdown's position on\n const { input: positionElement } = dateInteractNode!;\n const [minDate = undefined, maxDate = undefined] = !enabledRange\n ? []\n : enabledRange.split('/');\n return {\n allowInput: this.allowInput,\n closeOnSelect: this.closeOnSelect,\n dateFormat:\n this.dateFormat ??\n (this.constructor as typeof CDSDatePicker).defaultDateFormat,\n disableMobile: true,\n errorHandler: handleFlatpickrError,\n locale,\n maxDate,\n minDate,\n positionElement,\n plugins,\n };\n }\n\n /**\n * Handles `${prefix}-date-picker-changed` event on this element.\n */\n @HostListener('eventChange')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleChange = ({ detail }: CustomEvent) => {\n this._value = detail.selectedDates\n .map((date) => getISODateString(date))\n .join('/');\n };\n\n _handleFormdata(event: Event) {\n const { formData } = event as any; // TODO: Wait for `FormDataEvent` being available in `lib.dom.d.ts`\n const { disabled, name, value } = this;\n if (!disabled) {\n formData.append(name, value);\n }\n }\n\n /**\n * Handles `slotchange` event in the `<slot>`.\n */\n private _handleSlotChange({ target }: Event) {\n const { _dateInteractNode: oldDateInteractNode } = this;\n const dateInteractNode = (target as HTMLSlotElement)\n .assignedNodes()\n .find(\n (node) =>\n node.nodeType === Node.ELEMENT_NODE &&\n (node as HTMLElement).matches(\n (this.constructor as typeof CDSDatePicker).selectorInputFrom\n )\n );\n if (oldDateInteractNode !== dateInteractNode) {\n this._dateInteractNode = dateInteractNode as CDSDatePickerInput;\n this._instantiateDatePicker();\n }\n }\n\n /**\n * Fires a custom event to notify an error in Flatpickr.\n */\n private _handleFlatpickrError = (error: Error) => {\n this.dispatchEvent(\n new CustomEvent(\n (this.constructor as typeof CDSDatePicker).eventFlatpickrError,\n {\n bubbles: true,\n cancelable: false,\n composed: true,\n detail: {\n error,\n },\n }\n )\n );\n };\n\n /**\n * Instantiates Flatpickr.\n *\n * @returns The Flatpickr instance.\n */\n private _instantiateDatePicker() {\n this._releaseDatePicker();\n const { _dateInteractNode: dateInteractNode } = this;\n // `this._dateInteractNode` won't be there unless there is a slotted `<cds-date-input type=\"from\">`,\n // which means Flatpickr will never be instantiated in \"simple\" mode.\n if (dateInteractNode && dateInteractNode.input) {\n this.calendar = flatpickr(\n dateInteractNode as any,\n this._datePickerOptions\n );\n }\n return this.calendar;\n }\n\n /**\n * Releases Flatpickr instances.\n */\n private _releaseDatePicker() {\n if (this.calendar) {\n this.calendar.destroy();\n this.calendar = null;\n }\n return this.calendar;\n }\n\n /**\n * The Flatpickr instance.\n */\n calendar: FlatpickrInstance | null = null;\n\n /**\n * flatpickr prop passthrough. Allows the user to enter a date directly into the input field\n */\n @property({ type: Boolean, reflect: true, attribute: 'allow-input' })\n allowInput = true;\n\n /**\n * flatpickr prop passthrough. Controls whether the calendar dropdown closes upon selection.\n */\n @property({ type: Boolean, reflect: true, attribute: 'close-on-select' })\n closeOnSelect = true;\n\n /**\n * The date format to let Flatpickr use.\n */\n @property({ attribute: 'date-format' })\n dateFormat!: string;\n\n /**\n * Controls the disabled state of the input\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * The localization data.\n */\n @property({ attribute: false })\n locale!: FlatpickrLocale;\n\n /**\n * The date range that a user can pick in calendar dropdown.\n */\n @property({ attribute: 'enabled-range' })\n enabledRange!: string;\n\n /**\n * The minimum date that a user can start picking from.\n */\n @property({ attribute: 'min-date' })\n minDate!: string;\n\n /**\n * The maximum date that a user can start picking from.\n */\n @property({ attribute: 'max-date' })\n maxDate!: string;\n\n /**\n * Name for the input in the `FormData`\n */\n @property()\n name = '';\n\n /**\n * `true` if the date picker should be open.\n */\n @property({ type: Boolean, reflect: true })\n open = false;\n\n /**\n * Specify if the component should be read-only\n */\n @property({ type: Boolean, reflect: true })\n readonly = false;\n\n /**\n * The date(s) in ISO8601 format (date portion only), for range mode, '/' is used for separate start/end dates.\n */\n @property()\n get value() {\n return this._value;\n }\n\n set value(value: string) {\n const { _value: oldValue } = this;\n this._value = value;\n this.requestUpdate('value', oldValue);\n }\n\n connectedCallback() {\n super.connectedCallback();\n this._instantiateDatePicker();\n }\n\n disconnectedCallback() {\n this._releaseDatePicker();\n super.disconnectedCallback();\n }\n\n updated(changedProperties) {\n const { calendar, disabled, open, readonly } = this;\n const { selectorInputFrom, selectorInputTo } = this\n .constructor as typeof CDSDatePicker;\n const inputFrom = this.querySelector(\n selectorInputFrom\n ) as CDSDatePickerInput;\n const inputTo = this.querySelector(selectorInputTo) as CDSDatePickerInput;\n if (calendar && changedProperties.has('dateFormat')) {\n const { dateFormat } = this;\n calendar.set({ dateFormat });\n }\n if (changedProperties.has('minDate') || changedProperties.has('maxDate')) {\n const { minDate, maxDate } = this;\n if (!parseISODateString(minDate)) {\n // Allows empty start/end\n throw new Error(\n `Wrong date format found in \\`minDate\\` property: ${minDate}`\n );\n }\n if (!parseISODateString(maxDate)) {\n // Allows empty start/end\n throw new Error(\n `Wrong date format found in \\`maxDate\\` property: ${maxDate}`\n );\n }\n if (minDate && maxDate && minDate > maxDate) {\n throw new Error(\n `\\`maxDate\\` property, shouldn't be smaller than the \\`minDate\\` property. You have: minDate: ${minDate}, maxDate: ${maxDate}`\n );\n }\n if (calendar) {\n calendar.set({ minDate, maxDate });\n }\n }\n\n if (changedProperties.has('open') && calendar) {\n if (open && !readonly) {\n calendar.open();\n } else {\n calendar.close();\n }\n }\n if (\n changedProperties.has('disabled') ||\n changedProperties.has('readonly')\n ) {\n [inputFrom, inputTo].forEach((input) => {\n if (input) {\n input.disabled = disabled;\n input.readonly = readonly;\n }\n });\n }\n if (changedProperties.has('value')) {\n const { value } = this;\n const dates = value\n .split('/')\n .filter(Boolean)\n .map((item) => parseISODateString(item));\n if (dates.some((item) => isNaN(Number(item)))) {\n throw new Error(\n `Wrong date format found in \\`value\\` property: ${value}`\n );\n }\n const [startDate, endDate] = dates;\n if (startDate && endDate && startDate > endDate) {\n throw new Error(\n `In \\`value\\` property, the end date shouldn't be smaller than the start date. You have: ${value}`\n );\n }\n if (calendar) {\n calendar.setDate(dates);\n [inputFrom, inputTo].forEach((input, i) => {\n if (input) {\n input.value = !dates[i]\n ? ''\n : calendar.formatDate(\n new Date(dates[i]),\n calendar.config.dateFormat\n );\n }\n });\n }\n }\n }\n\n render() {\n const { _handleSlotChange: handleSlotChange } = this;\n return html`\n <a\n class=\"${prefix}--visually-hidden\"\n href=\"javascript:void 0\"\n role=\"navigation\"></a>\n <slot @slotchange=\"${handleSlotChange}\"></slot>\n <div id=\"floating-menu-container\"></div>\n <a\n class=\"${prefix}--visually-hidden\"\n href=\"javascript:void 0\"\n role=\"navigation\"></a>\n `;\n }\n\n /**\n * The CSS selector for Flatpickr's month/year portion.\n */\n private static _selectorFlatpickrMonthYearContainer =\n '.flatpickr-current-month';\n\n /**\n * The CSS selector for Flatpickr's year portion.\n */\n private static _selectorFlatpickrYearContainer = '.numInputWrapper';\n\n /**\n * The CSS selector for the inner element of Flatpickr's month portion.\n */\n private static _selectorFlatpickrCurrentMonth = '.cur-month';\n\n /**\n * The CSS selector for Flatpickr's month navigator.\n */\n private static _selectorFlatpickrMonth = '.flatpickr-month';\n\n /**\n * The CSS selector for Flatpickr's container of the weekdays.\n */\n private static _selectorFlatpickrWeekdays = '.flatpickr-weekdays';\n\n /**\n * The CSS selector for Flatpickr's container of the days.\n */\n private static _selectorFlatpickrDays = '.flatpickr-days';\n\n /**\n * The CSS selector applied to Flatpickr's each weekdays.\n */\n private static _selectorFlatpickrWeekday = '.flatpickr-weekday';\n\n /**\n * The CSS selector applied to Flatpickr's each days.\n */\n private static _selectorFlatpickrDay = '.flatpickr-day';\n\n /**\n * The CSS class for the inner element of Flatpickr's month portion.\n */\n private static _classFlatpickrCurrentMonth = 'cur-month';\n\n /**\n * The CSS class applied to Flatpickr's \"today\" highlight.\n */\n private static _classFlatpickrToday = 'today';\n\n /**\n * The CSS class for the calendar dropdown.\n */\n static get classCalendarContainer() {\n return `${prefix}--date-picker__calendar`;\n }\n\n /**\n * The CSS class for the month navigator.\n */\n static get classMonth() {\n return `${prefix}--date-picker__month`;\n }\n\n /**\n * The CSS class for the container of the weekdays.\n */\n static get classWeekdays() {\n return `${prefix}--date-picker__weekdays`;\n }\n\n /**\n * The CSS class for the container of the days.\n */\n static get classDays() {\n return `${prefix}--date-picker__days`;\n }\n\n /**\n * The CSS class applied to each weekdays.\n */\n static get classWeekday() {\n return `${prefix}--date-picker__weekday`;\n }\n\n /**\n * The CSS class applied to each days.\n */\n static get classDay() {\n return `${prefix}--date-picker__day`;\n }\n\n /**\n * The CSS class applied to the \"today\" highlight if there are any dates selected.\n */\n static classNoBorder = 'no-border';\n\n /**\n * The default date format.\n */\n static defaultDateFormat = 'm/d/Y';\n\n /**\n * The default localization data.\n */\n static defaultLocale = flatpickr.l10ns.default;\n\n /**\n * A selector that will return the `<input>` to enter starting date.\n */\n static get selectorInputFrom() {\n return `${prefix}-date-picker-input,${prefix}-date-picker-input[kind=\"from\"]`;\n }\n\n /**\n * A selector that will return the `<input>` to enter end date.\n */\n static get selectorInputTo() {\n return `${prefix}-date-picker-input[kind=\"to\"]`;\n }\n\n /**\n * The name of the custom event when Flatpickr throws an error.\n */\n static get eventFlatpickrError() {\n return `${prefix}-date-picker-flatpickr-error`;\n }\n\n /**\n * The name of the custom event fired on this element when Flatpickr updates its value.\n */\n static get eventChange() {\n return `${prefix}-date-picker-changed`;\n }\n\n static styles = styles;\n}\n\nexport default CDSDatePicker;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/date-picker/defs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,yBAAyB,IAAI,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AAEzG;;GAEG;AACH,oBAAY,sBAAsB;IAChC;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,IAAI,SAAS;IAEb;;OAEG;IACH,EAAE,OAAO;CACV","file":"defs.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 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\nexport { FORM_ELEMENT_COLOR_SCHEME as DATE_PICKER_INPUT_COLOR_SCHEME } from '../../globals/shared-enums';\n\n/**\n * Date picker input kinds.\n */\nexport enum DATE_PICKER_INPUT_KIND {\n /**\n * One for simple variant of date picker, comes without the calendar dropdown.\n */\n SIMPLE = 'simple',\n\n /**\n * One for single variant of date picker.\n */\n SINGLE = 'single',\n\n /**\n * One for the start date for the range variant.\n */\n FROM = 'from',\n\n /**\n * One for the end date for the range variant.\n */\n TO = 'to',\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/date-picker/fix-events-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAEtD,OAAO,MAAM,MAAM,+BAA+B,CAAC;AACnD,OAAO,kBAAkB,MAAM,qBAAqB,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,SAAS,EAAE,kBAAkB,CAAC;IAE9B;;OAEG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,wCACf,SAAQ,iBAAiB;IACzB;;OAEG;IACH,2CAA2C,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5D;;OAEG;IACH,yCAAyC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3D;AAED;;;GAGG;iCACqB,+BAA+B,KAAG,MAAM;AAAhE,wBAkFI","file":"fix-events-plugin.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 { Instance as FlatpickrInstance } from 'flatpickr/dist/types/instance';\nimport { Plugin } from 'flatpickr/dist/types/options';\nimport on from '../../globals/mixins/on';\nimport Handle from '../../globals/internal/handle';\nimport CDSDatePickerInput from './date-picker-input';\n\n/**\n * The configuration for the Flatpickr plugin to fix Flatpickr's behavior of certain events.\n */\nexport interface DatePickerFixEventsPluginConfig {\n /**\n * The input box to enter starting date.\n */\n inputFrom: CDSDatePickerInput;\n\n /**\n * The input box to enter end date.\n */\n inputTo?: CDSDatePickerInput;\n}\n\n/**\n * `FlatpickrInstance` with additional properties used for `carbonFlatpickrFixEventsPlugin`.\n */\nexport interface ExtendedFlatpickrInstanceFixEventsPlugin\n extends FlatpickrInstance {\n /**\n * The handle for `keydown` event handler in the `<input>` for the starting date.\n */\n _hCDSCEDatePickerFixEventsPluginKeydownFrom?: Handle | null;\n\n /**\n * The handle for `keydown` event handler in the `<input>` for the end date.\n */\n _hCDSCEDatePickerFixEventsPluginKeydownTo?: Handle | null;\n}\n\n/**\n * @param config Plugin configuration.\n * @returns A Flatpickr plugin to fix Flatpickr's behavior of certain events.\n */\nexport default (config: DatePickerFixEventsPluginConfig): Plugin =>\n (fp: ExtendedFlatpickrInstanceFixEventsPlugin) => {\n /**\n * Handles `keydown` event.\n */\n const handleKeydown = (event: KeyboardEvent) => {\n const { inputFrom, inputTo } = config;\n const { key, target } = event;\n if (inputFrom === target || inputTo === target) {\n switch (key) {\n case 'Enter':\n // Makes sure the hitting enter key picks up pending values of both `<input>`\n // Workaround for: https://github.com/flatpickr/flatpickr/issues/1942\n fp.setDate(\n [inputFrom.value!, (inputTo && inputTo.value)!],\n true,\n fp.config.dateFormat\n );\n event.stopPropagation();\n break;\n case 'ArrowLeft':\n case 'Left':\n case 'ArrowRight':\n case 'Right':\n // Prevents Flatpickr code from canceling the event if left/right arrow keys are hit on `<input>`,\n // so user can move the keyboard cursor for editing dates\n // Workaround for: https://github.com/flatpickr/flatpickr/issues/1943\n event.stopPropagation();\n break;\n default:\n break;\n }\n }\n };\n\n /**\n * Releases event listeners used in this Flatpickr plugin.\n */\n const release = () => {\n if (fp._hCDSCEDatePickerFixEventsPluginKeydownTo) {\n fp._hCDSCEDatePickerFixEventsPluginKeydownTo =\n fp._hCDSCEDatePickerFixEventsPluginKeydownTo.release();\n }\n if (fp._hCDSCEDatePickerFixEventsPluginKeydownFrom) {\n fp._hCDSCEDatePickerFixEventsPluginKeydownFrom =\n fp._hCDSCEDatePickerFixEventsPluginKeydownFrom.release();\n }\n };\n\n /**\n * Sets up event listeners used for this Flatpickr plugin.\n */\n const init = () => {\n release();\n const { inputFrom, inputTo } = config;\n fp._hCDSCEDatePickerFixEventsPluginKeydownFrom = on(\n inputFrom,\n 'keydown',\n handleKeydown,\n true\n );\n if (inputTo) {\n fp._hCDSCEDatePickerFixEventsPluginKeydownTo = on(\n inputTo,\n 'keydown',\n handleKeydown,\n true\n );\n }\n };\n\n /**\n * Registers this Flatpickr plugin.\n */\n const register = () => {\n fp.loadedPlugins.push('carbonFlatpickrFixEventsPlugin');\n };\n\n return {\n onReady: [register, init],\n onDestroy: [release],\n };\n };\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/date-picker/focus-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAEtD,OAAO,MAAM,MAAM,+BAA+B,CAAC;AACnD,OAAO,kBAAkB,MAAM,qBAAqB,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,SAAS,EAAE,kBAAkB,CAAC;IAE9B;;OAEG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,oCACf,SAAQ,iBAAiB;IACzB;;OAEG;IACH,gCAAgC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjD;;OAEG;IACH,uCAAuC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExD;;OAEG;IACH,qCAAqC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtD;;OAEG;IACH,qCAAqC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtD;;OAEG;IACH,mCAAmC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpD;;OAEG;IACH,eAAe,CAAC,EAAE,gBAAgB,CAAC;CACpC;AAED;;;GAGG;iCACqB,2BAA2B,KAAG,MAAM;AAA5D,wBAkJI","file":"focus-plugin.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 { Instance as FlatpickrInstance } from 'flatpickr/dist/types/instance';\nimport { Plugin } from 'flatpickr/dist/types/options';\nimport on from '../../globals/mixins/on';\nimport Handle from '../../globals/internal/handle';\nimport CDSDatePickerInput from './date-picker-input';\n\n/**\n * The configuration for the Flatpickr plugin to set CSS classes specific to this design system.\n */\nexport interface DatePickerFocusPluginConfig {\n /**\n * The input box to enter starting date.\n */\n inputFrom: CDSDatePickerInput;\n\n /**\n * The input box to enter end date.\n */\n inputTo?: CDSDatePickerInput;\n}\n\n/**\n * `FlatpickrInstance` with additional properties used for `carbonFlatpickrFocusPlugin`.\n */\nexport interface ExtendedFlatpickrInstanceFocusPlugin\n extends FlatpickrInstance {\n /**\n * The handle for `blur` event handler in calendar dropdown.\n */\n _hCDSCEDatePickerFocusPluginBlur?: Handle | null;\n\n /**\n * The handle for `keydown` event handler in the `<input>` for the starting date.\n */\n _hCDSCEDatePickerFocusPluginKeydownFrom?: Handle | null;\n\n /**\n * The handle for `keydown` event handler in the `<input>` for the end date.\n */\n _hCDSCEDatePickerFocusPluginKeydownTo?: Handle | null;\n\n /**\n * The handle for `focus` event handler in the `<input>` for the starting date.\n */\n _hCDSCEDatePickerFocusPluginFocusFrom?: Handle | null;\n\n /**\n * The handle for `focus` event handler in the `<input>` for the end date.\n */\n _hCDSCEDatePickerFocusPluginFocusTo?: Handle | null;\n\n /**\n * Lastly focused `<input>` for starting/end date.\n */\n _lastFocusInput?: HTMLInputElement;\n}\n\n/**\n * @param config Plugin configuration.\n * @returns A Flatpickr plugin to manage focus to align with the UX pattern in our design system.\n */\nexport default (config: DatePickerFocusPluginConfig): Plugin =>\n (fp: ExtendedFlatpickrInstanceFocusPlugin) => {\n /**\n * Focuses on calendar dropdown.\n */\n const focusCalendar = () => {\n const { calendarContainer, selectedDateElem, todayDateElem } = fp;\n (selectedDateElem || todayDateElem || calendarContainer).focus();\n };\n\n /**\n * Handles `blur` event to move the focus back to the `<input>`.\n */\n const handleBlur = ({ target, relatedTarget }: FocusEvent) => {\n // Obtains `beingUpdated` up-front because it'll be flushed out shortly\n const { calendarContainer, isOpen } = fp;\n if (\n isOpen &&\n calendarContainer.contains(target as Node) &&\n !calendarContainer.contains(relatedTarget as Node) &&\n relatedTarget !== config.inputFrom &&\n relatedTarget !== config.inputTo\n ) {\n Promise.resolve().then(() => {\n const rootNode = (target as Node).getRootNode();\n // This `blur` event handler can be called from Flatpickr's code,\n // cleaning up the calendar dropdowns DOM. Changing focus in such\n // condition causes removing an orphaned DOM node, because Flatpickr\n // redraws the calendar dropdown when the `<input>` gets focus.\n if (\n rootNode.nodeType === Node.DOCUMENT_NODE ||\n rootNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE\n ) {\n if (fp._lastFocusInput === config.inputTo) {\n config.inputTo!.focus();\n } else {\n config.inputFrom.focus();\n }\n // Closing after moving focus. Reversing the order will cause re-opening calendar dropdown upon focusing\n fp.close();\n }\n });\n }\n };\n\n /**\n * Handles `keydown` event to move focus on calendar dropdown.\n */\n const handleInputKeydown = (event: KeyboardEvent) => {\n const { key } = event;\n if (key === 'ArrowDown' || key === 'Down' || key === 'Enter') {\n event.preventDefault();\n fp.open();\n if (key !== 'Enter') {\n focusCalendar();\n } else {\n // Hitting Enter key blurs the `<input>`, causing any element to lose focus\n setTimeout(focusCalendar, 0);\n }\n }\n };\n\n /**\n * Handles `focus` event on `<input>` for starting/end date to track the lastly focused one.\n */\n const handleInputFocus = ({ target }: FocusEvent) => {\n fp._lastFocusInput = target as HTMLInputElement;\n };\n\n /**\n * Releases event listeners used in this Flatpickr plugin.\n */\n const release = () => {\n if (fp._hCDSCEDatePickerFocusPluginBlur) {\n fp._hCDSCEDatePickerFocusPluginBlur =\n fp._hCDSCEDatePickerFocusPluginBlur.release();\n }\n if (fp._hCDSCEDatePickerFocusPluginFocusTo) {\n fp._hCDSCEDatePickerFocusPluginFocusTo =\n fp._hCDSCEDatePickerFocusPluginFocusTo.release();\n }\n if (fp._hCDSCEDatePickerFocusPluginFocusFrom) {\n fp._hCDSCEDatePickerFocusPluginFocusFrom =\n fp._hCDSCEDatePickerFocusPluginFocusFrom.release();\n }\n if (fp._hCDSCEDatePickerFocusPluginKeydownTo) {\n fp._hCDSCEDatePickerFocusPluginKeydownTo =\n fp._hCDSCEDatePickerFocusPluginKeydownTo.release();\n }\n if (fp._hCDSCEDatePickerFocusPluginKeydownFrom) {\n fp._hCDSCEDatePickerFocusPluginKeydownFrom =\n fp._hCDSCEDatePickerFocusPluginKeydownFrom.release();\n }\n };\n\n /**\n * Sets up event listeners used for this Flatpickr plugin.\n */\n const init = () => {\n release();\n const { inputFrom, inputTo } = config;\n fp._hCDSCEDatePickerFocusPluginBlur = on(\n fp.calendarContainer,\n 'blur',\n handleBlur,\n true\n );\n fp._hCDSCEDatePickerFocusPluginKeydownFrom = on(\n inputFrom,\n 'keydown',\n handleInputKeydown\n );\n if (inputTo) {\n fp._hCDSCEDatePickerFocusPluginKeydownTo = on(\n inputTo,\n 'keydown',\n handleInputKeydown\n );\n }\n fp._hCDSCEDatePickerFocusPluginFocusFrom = on(\n inputFrom,\n 'focus',\n handleInputFocus\n );\n if (inputTo) {\n fp._hCDSCEDatePickerFocusPluginFocusTo = on(\n inputTo,\n 'focus',\n handleInputFocus\n );\n }\n };\n\n /**\n * Registers this Flatpickr plugin.\n *\n * @param calendar The Flatpickr instance.\n */\n const register = () => {\n fp.loadedPlugins.push('carbonFlatpickrFocusPlugin');\n };\n\n return {\n onReady: [register, init],\n onDestroy: release,\n };\n };\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/date-picker/icon-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAItD;;;GAGG;8BACgB,MAAM;AAAzB,wBAgCE","file":"icon-plugin.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 { render } from 'lit';\nimport { Instance as FlatpickrInstance } from 'flatpickr/dist/types/instance';\nimport { Plugin } from 'flatpickr/dist/types/options';\nimport ChevronLeft16 from '@carbon/icons/lib/chevron--left/16';\nimport ChevronRight16 from '@carbon/icons/lib/chevron--right/16';\n\n/**\n * @param config Plugin configuration.\n * @returns A Flatpickr plugin to set the right icons in the design system.\n */\nexport default (): Plugin => (fp: FlatpickrInstance) => {\n /**\n * Sets the icon in the design system.\n */\n const setIcon = () => {\n const { prevMonthNav, nextMonthNav } = fp;\n render(ChevronLeft16(), prevMonthNav);\n render(ChevronRight16(), nextMonthNav);\n };\n\n /**\n * Sets empty arrow icon contents as we render those icons after initialization.\n */\n const parseConfig = () => {\n const { config } = fp;\n config.prevArrow = '';\n config.nextArrow = '';\n };\n\n /**\n * Registers this Flatpickr plugin.\n *\n * @param calendar The Flatpickr instance.\n */\n const register = () => {\n fp.loadedPlugins.push('carbonFlatpickrIconPlugin');\n };\n\n return {\n onParseConfig: parseConfig,\n onReady: [register, setIcon],\n };\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/date-picker/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,eAAe,CAAC;AACvB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,8BAA8B,CAAC","file":"index.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport './date-picker';\nimport './date-picker-input';\nimport './date-picker-input-skeleton';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/date-picker/iso-date.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,SAAU,IAAI,WAGzB,CAAC;AAEnB;;;GAGG;AACH,eAAO,MAAM,kBAAkB,MAAO,MAAM,SAO3C,CAAC","file":"iso-date.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * @param date A date.\n * @returns Date portion of the ISO8601 string of the given date, based on the local timezone.\n */\nexport const getISODateString = (date: Date) =>\n new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()))\n .toISOString()\n .split('T')[0];\n\n/**\n * @param s A date portion of an ISO8601 string, based on the local timezone.\n * @returns The date object corresponding to the given ISO8601 string.\n */\nexport const parseISODateString = (s: string) => {\n const utcDate = new Date(Date.parse(s));\n return new Date(\n utcDate.getUTCFullYear(),\n utcDate.getUTCMonth(),\n utcDate.getUTCDate()\n );\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/date-picker/month-select-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAYtD;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,mCAAmC,EAAE,MAAM,CAAC;IAE5C;;OAEG;IACH,8BAA8B,EAAE,MAAM,CAAC;IAEvC;;OAEG;IACH,6BAA6B,EAAE,MAAM,CAAC;IAEtC;;OAEG;IACH,0BAA0B,EAAE,MAAM,CAAC;CACpC;AAED;;;GAGG;iCACqB,iCAAiC,KAAG,MAAM;AAAlE,wBA8FI","file":"month-select-plugin.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Instance as FlatpickrInstance } from 'flatpickr/dist/types/instance';\nimport { Locale } from 'flatpickr/dist/types/locale';\nimport { Plugin } from 'flatpickr/dist/types/options';\nimport { forEach } from '../../globals/internal/collection-helpers';\n\n/**\n * @param monthNumber The month number.\n * @param shorthand `true` to use shorthand month.\n * @param locale The Flatpickr locale data.\n * @returns The month string.\n */\nconst monthToStr = (monthNumber: number, shorthand: boolean, locale: Locale) =>\n locale.months[shorthand ? 'shorthand' : 'longhand'][monthNumber];\n\n/**\n * The configuration for the Flatpickr plugin to use text instead of `<select>` for month picker.\n */\nexport interface DatePickerMonthSelectPluginConfig {\n /**\n * `true` to use shorthand month.\n */\n shorthand?: boolean;\n\n /**\n * The CSS selector for the container of month/year selection UI.\n */\n selectorFlatpickrMonthYearContainer: string;\n\n /**\n * The CSS selector for the container of year selection UI.\n */\n selectorFlatpickrYearContainer: string;\n\n /**\n * The CSS selector for the text-based month selection UI.\n */\n selectorFlatpickrCurrentMonth: string;\n\n /**\n * The CSS class for the text-based month selection UI.\n */\n classFlatpickrCurrentMonth: string;\n}\n\n/**\n * @param config Plugin configuration.\n * @returns A Flatpickr plugin to use text instead of `<select>` for month picker.\n */\nexport default (config: DatePickerMonthSelectPluginConfig): Plugin =>\n (fp: FlatpickrInstance) => {\n /**\n * Replaces `<select>` for month with text content.\n */\n const setupElements = () => {\n const {\n monthElements,\n yearElements,\n currentMonth,\n l10n,\n _createElement: createElement,\n } = fp;\n if (!monthElements) {\n return;\n }\n const {\n shorthand,\n selectorFlatpickrMonthYearContainer,\n selectorFlatpickrYearContainer,\n classFlatpickrCurrentMonth,\n } = config;\n monthElements.forEach((elem) => {\n if (!elem.parentNode) return;\n elem.parentNode.removeChild(elem);\n });\n monthElements.splice(\n 0,\n monthElements.length,\n ...monthElements.map(() => {\n const monthElement = createElement(\n 'span',\n classFlatpickrCurrentMonth\n );\n monthElement.textContent = monthToStr(\n currentMonth,\n shorthand === true,\n l10n\n );\n const monthYearContainer = yearElements[0].closest(\n selectorFlatpickrMonthYearContainer\n );\n if (monthYearContainer) {\n monthYearContainer.insertBefore(\n monthElement,\n yearElements[0].closest(selectorFlatpickrYearContainer)\n );\n }\n return monthElement;\n })\n );\n };\n\n /**\n * Updates the text-based month UI with the latest selected date.\n */\n const updateCurrentMonth = () => {\n const { yearElements, currentMonth, l10n } = fp;\n const {\n shorthand,\n selectorFlatpickrMonthYearContainer,\n selectorFlatpickrCurrentMonth,\n } = config;\n const monthStr = monthToStr(currentMonth, shorthand === true, l10n);\n yearElements.forEach((elem) => {\n const currentMonthContainer = elem.closest(\n selectorFlatpickrMonthYearContainer\n );\n if (currentMonthContainer) {\n forEach(\n currentMonthContainer.querySelectorAll(\n selectorFlatpickrCurrentMonth\n ),\n (monthElement) => {\n monthElement.textContent = monthStr;\n }\n );\n }\n });\n };\n\n /**\n * Registers this Flatpickr plugin.\n */\n const register = () => {\n fp.loadedPlugins.push('carbonFlatpickrMonthSelectPlugin');\n };\n\n return {\n onMonthChange: updateCurrentMonth,\n onValueUpdate: updateCurrentMonth,\n onOpen: updateCurrentMonth,\n onReady: [setupElements, updateCurrentMonth, register],\n };\n };\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/date-picker/range-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAoB,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAEtD,OAAO,MAAM,MAAM,+BAA+B,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,oCACf,SAAQ,iBAAiB;IACzB;;OAEG;IACH,qCAAqC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtD;;OAEG;IACH,mCAAmC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrD;AAED;;;;;;;;;;;;;;;;;GAiBG;iCACqB,MAAM,KAAG,MAAM;AAAvC,wBA4FE","file":"range-plugin.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\n// @ts-nocheck\nimport rangePlugin, { Config } from 'flatpickr/dist/plugins/rangePlugin';\nimport { Instance as FlatpickrInstance } from 'flatpickr/dist/types/instance';\nimport { Plugin } from 'flatpickr/dist/types/options';\nimport on from 'carbon-components/es/globals/js/misc/on';\nimport Handle from '../../globals/internal/handle';\n\n/**\n * `FlatpickrInstance` with additional properties used for `range` plugin.\n */\nexport interface ExtendedFlatpickrInstanceRangePlugin\n extends FlatpickrInstance {\n /**\n * The handle for `blur` event handler for from date range input.\n */\n _hBXCEDatePickerRangePluginOnBlurFrom?: Handle | null;\n\n /**\n * The handle for `blur` event handler for to date range input.\n */\n _hBXCEDatePickerRangePluginOnBlurTo?: Handle | null;\n}\n\n/**\n * @param config Plugin configuration.\n * @returns\n * An extension of Flatpickr `rangePlugin` that does the following:\n *\n * Better ensures the calendar dropdown is always aligned to the `<input>` for the starting date.\n * Workaround for: https://github.com/flatpickr/flatpickr/issues/1944\n * Disables the logic in Flatpickr `rangePlugin` that calculates the new range with the old selected date\n * when user selects a date from calendar dropdown.\n * We'd like to reset the selection when user re-opens calendar dropdown and re-selects a date.\n * Workaround for: https://github.com/flatpickr/flatpickr/issues/1958\n * Disables the logic in Flatpickr `rangePlugin` that closes the calendar dropdown\n * when it's launched from the `<input>` for the end date and user selects a date.\n * Workaround for: https://github.com/flatpickr/flatpickr/issues/1958\n * Ensures that the `<input>` in shadow DOM is treated as part of Flatpickr UI,\n * by ensuring such `<input>` hits `.contains()` search from `fp.config.ignoredFocusElements`.\n * Without that, Flatpickr clears the `<input>` when end date hasn't been selected yet (which we don't want).\n */\nexport default (config: Config): Plugin => {\n const factory = rangePlugin({ position: 'left', ...config });\n return (fp: ExtendedFlatpickrInstanceRangePlugin) => {\n const origRangePlugin = factory(fp);\n const { onReady: origOnReady } = origRangePlugin;\n\n const getDateStrFromInputs = (dates: Array<string>) => {\n return dates\n .filter((value) => value)\n .filter(\n (d, i, arr) =>\n fp.config.mode !== 'range' ||\n fp.config.enableTime ||\n arr.indexOf(d) === i\n )\n .join(\n fp.config.mode !== 'range'\n ? fp.config.conjunction\n : fp.l10n.rangeSeparator\n );\n };\n\n const handleBlur = (event: FocusEvent) => {\n event.stopPropagation();\n const firstInput = fp._input;\n const secondInput = config.input as HTMLInputElement;\n const isInput =\n event.target === firstInput || event.target === secondInput;\n const valueChanged =\n getDateStrFromInputs([firstInput.value, secondInput.value]) !==\n fp.getDateStr();\n const relatedTargetIsCalendar =\n event.relatedTarget &&\n event.relatedTarget instanceof Node &&\n fp.calendarContainer.contains(event.relatedTarget);\n\n if (isInput && valueChanged && !relatedTargetIsCalendar) {\n fp.setDate(\n [firstInput.value, secondInput.value],\n true,\n firstInput === fp.altInput\n ? fp.config.altFormat\n : fp.config.dateFormat\n );\n }\n };\n\n const release = () => {\n if (fp._hBXCEDatePickerRangePluginOnBlurFrom) {\n fp._hBXCEDatePickerRangePluginOnBlurFrom =\n fp._hBXCEDatePickerRangePluginOnBlurFrom.release();\n }\n if (fp._hBXCEDatePickerRangePluginOnBlurTo) {\n fp._hBXCEDatePickerRangePluginOnBlurTo =\n fp._hBXCEDatePickerRangePluginOnBlurTo.release();\n }\n };\n\n return Object.assign(origRangePlugin, {\n onReady() {\n (origOnReady as Function).call(this);\n const { ignoredFocusElements } = fp.config;\n ignoredFocusElements.push(\n ...ignoredFocusElements\n .map((elem) => elem.shadowRoot as any)\n .filter(Boolean)\n );\n\n // Setup event listeners for the blur even on both inputs. In the case\n // of the first input, we're overriding the blur event handler from\n // the library to fix it by setting it on the capture phase and then\n // stopping propagation. This is necessary b/c the library does not take\n // the range plugin into consideration when it calls setDate.\n // Workaround for: https://github.com/flatpickr/flatpickr/issues/2918\n release();\n if (fp.config.allowInput) {\n fp._hBXCEDatePickerRangePluginOnBlurFrom = on(\n fp._input,\n 'blur',\n handleBlur,\n { capture: true }\n );\n fp._hBXCEDatePickerRangePluginOnBlurTo = on(\n config.input as HTMLInputElement,\n 'blur',\n handleBlur,\n { capture: true }\n );\n }\n },\n });\n };\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/date-picker/shadow-dom-events-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAEtD,OAAO,MAAM,MAAM,+BAA+B,CAAC;AAGnD;;GAEG;AACH,MAAM,WAAW,8CACf,SAAQ,iBAAiB;IACzB;;OAEG;IACH,6CAA6C,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/D;AA6DD;;;;;GAKG;8BACgB,MAAM;AAAzB,wBA4FI","file":"shadow-dom-events-plugin.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 { Instance as FlatpickrInstance } from 'flatpickr/dist/types/instance';\nimport { Plugin } from 'flatpickr/dist/types/options';\nimport on from '../../globals/mixins/on';\nimport Handle from '../../globals/internal/handle';\nimport { find } from '../../globals/internal/collection-helpers';\n\n/**\n * `FlatpickrInstance` with additional properties used for `carbonFlatpickrShadowDOMEventsPlugin`.\n */\nexport interface ExtendedFlatpickrInstanceShadowDOMEventsPlugin\n extends FlatpickrInstance {\n /**\n * The handle for `keydown` event handler in calendar dropdown.\n */\n _hCDSCEDatePickerShadowDOMEventsPluginKeydown?: Handle | null;\n}\n\n/**\n * The amount of days to adjust, keyed by the key code.\n */\nconst moveDateForKeys = {\n ArrowLeft: -1,\n Left: -1,\n ArrowUp: -7,\n Up: -7,\n ArrowRight: 1,\n Right: 1,\n ArrowDown: 7,\n Down: 7,\n};\n\n/**\n * The amount of months to adjust, keyed by the key code. Used with Ctrl modifier key.\n */\nconst moveMonthForKeys = {\n ArrowLeft: -1,\n Left: -1,\n ArrowUp: -12,\n Up: -12,\n ArrowRight: 1,\n Right: 1,\n ArrowDown: 12,\n Down: 12,\n};\n\n/**\n * The number of milliseconds per day.\n */\nconst MILLISECONDS_IN_DAY = 86400000;\n\n/**\n * Adjusts the date with the given amount of days.\n *\n * @param localDate The original date.\n * @param options The options.\n * @param [options.date=0] The amount of days to adjust.\n */\nconst adjustDate = (\n localDate: Date,\n { date: moveDate = 0 }: { date?: number }\n) => {\n const utcDate = new Date(\n Date.UTC(\n localDate.getFullYear(),\n localDate.getMonth(),\n localDate.getDate()\n ) +\n moveDate * MILLISECONDS_IN_DAY\n );\n return new Date(\n utcDate.getUTCFullYear(),\n utcDate.getUTCMonth(),\n utcDate.getUTCDate()\n );\n};\n\n/**\n * @param config Plugin configuration.\n * @returns\n * A Flatpickr plugin to handle events.\n * Some event handlers in Flatpickr won't work is the calendar dropdown is put in shadow DOM, due to event retargetting.\n */\nexport default (): Plugin =>\n (fp: ExtendedFlatpickrInstanceShadowDOMEventsPlugin) => {\n const getDateElem = (localDate) =>\n find(\n fp.daysContainer!.firstElementChild!.children,\n ({ dateObj }: any) => localDate.getTime() === dateObj.getTime()\n );\n\n /**\n * Handles `keydown` event.\n */\n const handleKeydown = (event: KeyboardEvent) => {\n const { ctrlKey, key, target } = event;\n if (key === 'Enter') {\n target!.dispatchEvent(\n Object.assign(new CustomEvent('mousedown', { bubbles: true }), {\n which: 1,\n })\n );\n } else if (!ctrlKey && key in moveDateForKeys) {\n const { dateObj } = target as any;\n const movedDate = adjustDate(dateObj, { date: moveDateForKeys[key] });\n const movedDateElem = getDateElem(movedDate);\n if (movedDateElem) {\n movedDateElem.focus();\n } else {\n const innerDaysContainer = fp.daysContainer!.firstElementChild!;\n if (\n movedDate.getTime() <\n (innerDaysContainer.firstElementChild as any).dateObj.getTime()\n ) {\n fp.changeMonth(-1);\n // `fp.daysContainer` is updated by `fp.changeMonth()`\n (\n fp.daysContainer!.firstElementChild!\n .lastElementChild as HTMLElement\n ).focus();\n } else if (\n movedDate.getTime() >\n (innerDaysContainer.lastElementChild as any).dateObj.getTime()\n ) {\n fp.changeMonth(1);\n // `fp.daysContainer` is updated by `fp.changeMonth()`\n (\n fp.daysContainer!.firstElementChild!\n .firstElementChild as HTMLElement\n ).focus();\n }\n }\n event.preventDefault();\n } else if (ctrlKey && key in moveMonthForKeys) {\n fp.changeMonth(moveMonthForKeys[key]);\n (\n fp.daysContainer!.firstElementChild!.firstElementChild as HTMLElement\n ).focus();\n event.preventDefault();\n }\n };\n\n /**\n * Releases event listeners used in this Flatpickr plugin.\n */\n const release = () => {\n if (fp._hCDSCEDatePickerShadowDOMEventsPluginKeydown) {\n fp._hCDSCEDatePickerShadowDOMEventsPluginKeydown =\n fp._hCDSCEDatePickerShadowDOMEventsPluginKeydown.release();\n }\n };\n\n /**\n * Sets up event listeners used for this Flatpickr plugin.\n */\n const init = () => {\n release();\n fp._hCDSCEDatePickerShadowDOMEventsPluginKeydown = on(\n fp.calendarContainer,\n 'keydown',\n handleKeydown\n );\n };\n\n /**\n * Registers this Flatpickr plugin.\n */\n const register = () => {\n fp.loadedPlugins.push('carbonFlatpickrShadowDOMEventsPlugin');\n };\n\n return {\n onReady: [register, init],\n onDestroy: [release],\n };\n };\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/date-picker/state-handshake-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,aAAa,MAAM,eAAe,CAAC;AAE1C;;;GAGG;qCACyB,aAAa,KAAG,MAAM;AAAlD,wBAmDI","file":"state-handshake-plugin.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 { Instance as FlatpickrInstance } from 'flatpickr/dist/types/instance';\nimport { Plugin } from 'flatpickr/dist/types/options';\nimport CDSDatePicker from './date-picker';\n\n/**\n * @param config Plugin configuration.\n * @returns A Flatpickr plugin to handshake states with `<cds-date-picker>`.\n */\nexport default (datePicker: CDSDatePicker): Plugin =>\n (fp: FlatpickrInstance) => {\n /**\n * Sets open state.\n */\n const setOpen = () => {\n datePicker.open = true;\n };\n\n /**\n * Sets closed state.\n */\n const setClosed = () => {\n datePicker.open = false;\n };\n\n /**\n * Propagates Flatpickr's `onChange` event to `<cds-date-picker>`.\n *\n * @param selectedDates The latest selected dates.\n */\n const handleChange = (selectedDates: Date[]) => {\n const { eventChange } = datePicker.constructor as typeof CDSDatePicker;\n datePicker.dispatchEvent(\n new CustomEvent(eventChange, {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n selectedDates,\n },\n })\n );\n };\n\n /**\n * Registers this Flatpickr plugin.\n *\n * @param calendar The Flatpickr instance.\n */\n const register = (_selectedDates, _value, calendar: FlatpickrInstance) => {\n datePicker.calendar = calendar;\n fp.loadedPlugins.push('carbonFlatpickrStateHandshakePlugin');\n };\n\n return {\n onOpen: setOpen,\n onClose: setClosed,\n onChange: handleChange,\n onReady: [register],\n };\n };\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/dropdown/defs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,yBAAyB,IAAI,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEhG;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;CAKhC,CAAC;AAEF;;GAEG;AACH,oBAAY,wBAAwB;IAClC;;OAEG;IACH,IAAI,SAAS;IAEb;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,UAAU,eAAe;IAEzB;;OAEG;IACH,UAAU,eAAe;CAC1B;AAED;;GAEG;AACH,oBAAY,aAAa;IACvB;;OAEG;IACH,KAAK,OAAO;IAEZ;;OAEG;IACH,MAAM,OAAO;IAEb;;OAEG;IACH,KAAK,OAAO;CACb;AAED;;GAEG;AACH,oBAAY,aAAa;IACvB;;OAEG;IACH,OAAO,KAAK;IAEZ;;OAEG;IACH,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,oBAAY,kBAAkB;IAC5B;;OAEG;IACH,GAAG,QAAQ;IAEX;;OAEG;IACH,MAAM,WAAW;CAClB","file":"defs.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 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\nexport { FORM_ELEMENT_COLOR_SCHEME as DROPDOWN_COLOR_SCHEME } from '../../globals/shared-enums';\n\n/**\n * Navigation direction, associated with key symbols.\n */\nexport const NAVIGATION_DIRECTION = {\n Up: -1,\n ArrowUp: -1,\n Down: 1,\n ArrowDown: 1,\n};\n\n/**\n * The keyboard action categories for dropdown.\n */\nexport enum DROPDOWN_KEYBOARD_ACTION {\n /**\n * Not doing any action.\n */\n NONE = 'none',\n\n /**\n * Keyboard action to close menu.\n */\n CLOSING = 'closing',\n\n /**\n * Keyboard action to navigate back/forward.\n */\n NAVIGATING = 'navigating',\n\n /**\n * Keyboard action to open/close menu on the trigger button or select/deselect a menu item.\n */\n TRIGGERING = 'triggering',\n}\n\n/**\n * Dropdown size.\n */\nexport enum DROPDOWN_SIZE {\n /**\n * Small size.\n */\n SMALL = 'sm',\n\n /**\n * Medium size.\n */\n MEDIUM = 'md',\n\n /**\n * Large size.\n */\n LARGE = 'lg',\n}\n\n/**\n * Dropdown types.\n */\nexport enum DROPDOWN_TYPE {\n /**\n * Default type.\n */\n DEFAULT = '',\n\n /**\n * Inline type.\n */\n INLINE = 'inline',\n}\n\n/**\n * Dropdown direction.\n */\nexport enum DROPDOWN_DIRECTION {\n /**\n * Top.\n */\n TOP = 'top',\n\n /**\n * Bottom.\n */\n BOTTOM = 'bottom',\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/dropdown/dropdown-item.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAIvC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C;;;;;GAKG;AACH,cACM,eAAgB,SAAQ,UAAU;IACtC;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;;;;OAKG;IAEH,WAAW,UAAS;IAEpB;;;;OAIG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,IAAI,gBAAwB;IAE5B;;OAEG;IAEH,KAAK,SAAM;IAEX,MAAM;IAeN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,eAAe,CAAC","file":"dropdown-item.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 Checkmark16 from '@carbon/icons/lib/checkmark/16';\nimport { prefix } from '../../globals/settings';\nimport { DROPDOWN_SIZE } from './dropdown';\nimport styles from './dropdown.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Dropdown item.\n *\n * @element cds-dropdown-item\n * @csspart selected-icon The selected icon.\n */\n@customElement(`${prefix}-dropdown-item`)\nclass CDSDropdownItem extends LitElement {\n /**\n * `true` if this dropdown item should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * `true` if this dropdown item should be highlighted.\n * If `true`, parent `<dropdown>` selects/deselects this dropdown item upon keyboard interaction.\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n highlighted = false;\n\n /**\n * `true` if this dropdown item should be selected.\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n /**\n * Dropdown size.\n */\n @property({ reflect: true })\n size = DROPDOWN_SIZE.MEDIUM;\n\n /**\n * The `value` attribute that is set to the parent `<cds-dropdown>` when this dropdown item is selected.\n */\n @property()\n value = '';\n\n render() {\n const { selected } = this;\n return html`\n <div class=\"${prefix}--list-box__menu-item__option\">\n <slot></slot>\n ${!selected\n ? undefined\n : Checkmark16({\n part: 'selected-icon',\n class: `${prefix}--list-box__menu-item__selected-icon`,\n })}\n </div>\n `;\n }\n\n static styles = styles;\n}\n\nexport default CDSDropdownItem;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/dropdown/dropdown-skeleton.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC;;GAEG;AACH,cACM,mBAAoB,SAAQ,UAAU;IAC1C,MAAM;IAWN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,mBAAmB,CAAC","file":"dropdown-skeleton.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 './dropdown.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Skeleton version of dropdown.\n */\n@customElement(`${prefix}-dropdown-skeleton`)\nclass CDSDropdownSkeleton extends LitElement {\n render() {\n return html`\n <div\n class=\"${prefix}--skeleton ${prefix}--dropdown-v2 ${prefix}--list-box ${prefix}--form-item\">\n <div class=\"${prefix}--list-box__field\">\n <span class=\"${prefix}--list-box__label\"></span>\n </div>\n </div>\n `;\n }\n\n static styles = styles;\n}\n\nexport default CDSDropdownSkeleton;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/dropdown/dropdown.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAE,UAAU,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAgBvD,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,oBAAoB,EACrB,MAAM,QAAQ,CAAC;AAChB,OAAO,eAAe,MAAM,iBAAiB,CAAC;AAI9C,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,oBAAoB,GACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,cACM,WAAY,SAAQ,gBAEzB;IACC;;OAEG;IACH,SAAS,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAExC;;OAEG;IACH,SAAS,CAAC,oBAAoB,EAAE,gBAAgB,GAAG,IAAI,CAAQ;IAE/D;;;OAGG;IACH,SAAS,CAAC,yBAAyB,UAAQ;IAE3C;;OAEG;IAEH,SAAS,CAAC,YAAY,EAAG,cAAc,CAAC;IAExC;;OAEG;IAEH,SAAS,CAAC,mBAAmB,EAAG,eAAe,CAAC;IAEhD;;OAEG;IAEH,SAAS,CAAC,kBAAkB,EAAG,eAAe,CAAC;IAE/C;;;OAGG;IACH,SAAS,CAAC,sBAAsB,CAAC,YAAY,CAAC,EAAE,eAAe;IAI/D;;;;;;OAMG;IACH,SAAS,CAAC,mBAAmB,CAAC,YAAY,CAAC,EAAE,eAAe;IAiB5D;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,UAAU;IAiB7C;;OAEG;IACH,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,aAAa;IA2BlD;;OAEG;IACH,SAAS,CAAC,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAgCnD;;;;OAIG;IAGH,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,UAAU;IAM3C;;OAEG;IACH,SAAS,CAAC,2BAA2B;IAIrC;;OAEG;IACH,SAAS,CAAC,0BAA0B;IAIpC;;;;OAIG;IACH,SAAS,CAAC,8BAA8B,CAAC,IAAI,CAAC,EAAE,eAAe;IA0B/D;;;;OAIG;IACH,SAAS,CAAC,0BAA0B,CAAC,KAAK,GAAE,OAAoB;IAgDhE;;OAEG;IACH,SAAS,CAAC,eAAe;IAWzB;;;;OAIG;IACH,SAAS,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM;IAoCrC;;OAEG;IACH,SAAS,CAAC,qBAAqB,IAAI,cAAc,GAAG,IAAI;IAKxD;;OAEG;IACH,SAAS,CAAC,YAAY,IAAI,cAAc;IASxC;;OAEG;IACH,SAAS,CAAC,iBAAiB,IAAI,cAAc;IAgC7C;;OAEG;IACH,SAAS,CAAC,qBAAqB,IAAI,cAAc,GAAG,IAAI;IAKxD;;;;OAIG;IACH,eAAe,CAAC,KAAK,EAAE,KAAK;IAQ5B;;;OAGG;IAEH,SAAS,SAAM;IAEf;;OAEG;IAEH,SAAS,qBAA6B;IAEtC;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,UAAU,SAAM;IAEhB;;OAEG;IAEH,SAAS,UAAS;IAElB;;OAEG;IAEH,OAAO,UAAS;IAEhB;;OAEG;IAEH,WAAW,SAAM;IAEjB;;OAEG;IAEH,SAAS,SAAM;IAEf;;OAEG;IAEH,IAAI,SAAM;IAEV;;OAEG;IAEH,IAAI,UAAS;IAEb;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,uBAAuB,SAAiC;IAExD;;OAEG;IAEH,2BAA2B,SACkC;IAE7D;;OAEG;IAEH,yBAAyB,SAAuB;IAEhD;;OAEG;IAEH,IAAI,gBAAwB;IAE5B;;OAEG;IAEH,iBAAiB,SAAM;IAEvB;;OAEG;IAEH,eAAe,SAAM;IAErB;;OAEG;IAEH,KAAK,SAAM;IAEX;;OAEG;IAEH,IAAI,gBAAyB;IAE7B;;OAEG;IAEH,eAAe,SAAM;IAErB;;OAEG;IAEH,KAAK,SAAM;IAEX;;OAEG;IAEH,IAAI,UAAS;IAEb;;OAEG;IAEH,QAAQ,SAAM;IAEd,YAAY,CAAC,iBAAiB,KAAA;IAwC9B;;OAEG;IACH,SAAS,KAAK,QAAQ,mHAoBrB;IAED,MAAM;IA4GN;;OAEG;IACH,MAAM,CAAC,YAAY,cAA2B;IAE9C;;OAEG;IACH,MAAM,KAAK,uBAAuB,WAEjC;IAED;;OAEG;IACH,MAAM,KAAK,YAAY,WAEtB;IAED;;OAEG;IACH,MAAM,KAAK,oBAAoB,WAE9B;IAED;;;OAGG;IACH,MAAM,KAAK,iBAAiB,WAE3B;IAED;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED;;;OAGG;IACH,MAAM,KAAK,iBAAiB,WAE3B;IAED;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED,MAAM,CAAC,iBAAiB;;;;MAGtB;IACF,MAAM,CAAC,MAAM,MAAU;IAEvB;;OAEG;IACH,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE,MAAM;CAY7B;AAED,eAAe,WAAW,CAAC","file":"dropdown.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 { classMap } from 'lit/directives/class-map.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { LitElement, html, TemplateResult } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport ChevronDown16 from '@carbon/icons/lib/chevron--down/16';\nimport WarningFilled16 from '@carbon/icons/lib/warning--filled/16';\nimport WarningAltFilled16 from '@carbon/icons/lib/warning--alt--filled/16';\nimport FocusMixin from '../../globals/mixins/focus';\nimport FormMixin from '../../globals/mixins/form';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport ValidityMixin from '../../globals/mixins/validity';\nimport HostListener from '../../globals/decorators/host-listener';\nimport {\n find,\n forEach,\n indexOf,\n} from '../../globals/internal/collection-helpers';\nimport {\n DROPDOWN_DIRECTION,\n DROPDOWN_KEYBOARD_ACTION,\n DROPDOWN_SIZE,\n DROPDOWN_TYPE,\n NAVIGATION_DIRECTION,\n} from './defs';\nimport CDSDropdownItem from './dropdown-item';\nimport styles from './dropdown.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\nexport {\n DROPDOWN_KEYBOARD_ACTION,\n DROPDOWN_DIRECTION,\n DROPDOWN_SIZE,\n DROPDOWN_TYPE,\n NAVIGATION_DIRECTION,\n};\n\n/**\n * Dropdown.\n *\n * @element cds-dropdown\n * @csspart label-text The label text.\n * @csspart helper-text The helper text.\n * @csspart trigger-button The trigger button.\n * @csspart menu-body The menu body.\n * @csspart validity-message The validity message.\n * @fires cds-dropdown-beingselected\n * The custom event fired before a dropdown item is selected upon a user gesture.\n * Cancellation of this event stops changing the user-initiated selection.\n * @fires cds-dropdown-beingtoggled\n * The custom event fired before the open state of this dropdown is toggled upon a user gesture.\n * Cancellation of this event stops the user-initiated toggling.\n * @fires cds-dropdown-selected - The custom event fired after a dropdown item is selected upon a user gesture.\n * @fires cds-dropdown-toggled - The custom event fired after the open state of this dropdown is toggled upon a user gesture.\n */\n@customElement(`${prefix}-dropdown`)\nclass CDSDropdown extends ValidityMixin(\n HostListenerMixin(FormMixin(FocusMixin(LitElement)))\n) {\n /**\n * The latest status of this dropdown, for screen reader to accounce.\n */\n protected _assistiveStatusText?: string;\n\n /**\n * The content of the selected item.\n */\n protected _selectedItemContent: DocumentFragment | null = null;\n\n /**\n * `true` if the trigger button should be focusable.\n * Derived class can set `false` to this if the trigger button contains another primary focusable element (e.g. `<input>`).\n */\n protected _shouldTriggerBeFocusable = true;\n\n /**\n * The list box `<div>` node.\n */\n @query(`.${prefix}--list-box`)\n protected _listBoxNode!: HTMLDivElement;\n\n /**\n * The `<slot>` element for the helper text in the shadow DOM.\n */\n @query('slot[name=\"helper-text\"]')\n protected _slotHelperTextNode!: HTMLSlotElement;\n\n /**\n * The `<slot>` element for the title text in the shadow DOM.\n */\n @query('slot[name=\"title-text\"]')\n protected _slotTitleTextNode!: HTMLSlotElement;\n\n /**\n * @param itemToSelect A dropdown item. Absense of this argument means clearing selection.\n * @returns `true` if the selection of this dropdown should change if the given item is selected upon user interaction.\n */\n protected _selectionShouldChange(itemToSelect?: CDSDropdownItem) {\n return !itemToSelect || itemToSelect.value !== this.value;\n }\n\n /**\n * A callback that runs after change in dropdown selection upon user interaction is confirmed.\n *\n * @param itemToSelect\n * A dropdown item.\n * Absense of this argument means clearing selection, which may be handled by a derived class.\n */\n protected _selectionDidChange(itemToSelect?: CDSDropdownItem) {\n if (itemToSelect) {\n this.value = itemToSelect.value;\n forEach(\n this.querySelectorAll(\n (this.constructor as typeof CDSDropdown).selectorItemSelected\n ),\n (item) => {\n (item as CDSDropdownItem).selected = false;\n }\n );\n itemToSelect.selected = true;\n this._assistiveStatusText = this.selectedItemAssistiveText;\n this._handleUserInitiatedToggle(false);\n }\n }\n\n /**\n * Handles `click` event on the top-level element in the shadow DOM.\n *\n * @param event The event.\n */\n protected _handleClickInner(event: MouseEvent) {\n if (this.readOnly) {\n return;\n }\n\n if (this.shadowRoot!.contains(event.target as Node)) {\n this._handleUserInitiatedToggle();\n } else {\n const item = (event.target as Element).closest(\n (this.constructor as typeof CDSDropdown).selectorItem\n ) as CDSDropdownItem;\n if (this.contains(item)) {\n this._handleUserInitiatedSelectItem(item);\n }\n }\n }\n\n /**\n * Handler for the `keydown` event on the top-level element in the shadow DOM.\n */\n protected _handleKeydownInner(event: KeyboardEvent) {\n const { key } = event;\n const action = (this.constructor as typeof CDSDropdown).getAction(key);\n if (!this.open) {\n switch (action) {\n case DROPDOWN_KEYBOARD_ACTION.NAVIGATING:\n this._handleUserInitiatedToggle(true);\n // If this menu gets open with an arrow key, reset the highlight\n this._clearHighlight();\n break;\n default:\n break;\n }\n } else {\n switch (action) {\n case DROPDOWN_KEYBOARD_ACTION.CLOSING:\n this._handleUserInitiatedToggle(false);\n break;\n case DROPDOWN_KEYBOARD_ACTION.NAVIGATING:\n this._navigate(NAVIGATION_DIRECTION[key]);\n break;\n default:\n break;\n }\n }\n }\n\n /**\n * Handler for the `keypress` event on the top-level element in the shadow DOM.\n */\n protected _handleKeypressInner(event: KeyboardEvent) {\n const { key } = event;\n const action = (this.constructor as typeof CDSDropdown).getAction(key);\n if (!this.open) {\n switch (action) {\n case DROPDOWN_KEYBOARD_ACTION.TRIGGERING:\n this._handleUserInitiatedToggle(true);\n break;\n default:\n break;\n }\n } else {\n switch (action) {\n case DROPDOWN_KEYBOARD_ACTION.TRIGGERING:\n {\n const constructor = this.constructor as typeof CDSDropdown;\n const highlightedItem = this.querySelector(\n constructor.selectorItemHighlighted\n ) as CDSDropdownItem;\n if (highlightedItem) {\n this._handleUserInitiatedSelectItem(highlightedItem);\n } else {\n this._handleUserInitiatedToggle(false);\n }\n }\n break;\n default:\n break;\n }\n }\n }\n\n /**\n * Handles `blur` event handler on the document this element is in.\n *\n * @param event The event.\n */\n @HostListener('focusout')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n protected _handleFocusOut(event: FocusEvent) {\n if (!this.contains(event.relatedTarget as Node)) {\n this._handleUserInitiatedToggle(false);\n }\n }\n\n /**\n * Handles `slotchange` event for the `<slot>` for helper text.\n */\n protected _handleSlotchangeHelperText() {\n this.requestUpdate();\n }\n\n /**\n * Handles `slotchange` event for the `<slot>` for label text.\n */\n protected _handleSlotchangeLabelText() {\n this.requestUpdate();\n }\n\n /**\n * Handles user-initiated selection of a dropdown item.\n *\n * @param [item] The dropdown item user wants to select. Absense of this argument means clearing selection.\n */\n protected _handleUserInitiatedSelectItem(item?: CDSDropdownItem) {\n if (item?.hasAttribute('disabled')) {\n return;\n }\n\n if (this._selectionShouldChange(item)) {\n const init = {\n bubbles: true,\n composed: true,\n detail: {\n item,\n },\n };\n const constructor = this.constructor as typeof CDSDropdown;\n const beforeSelectEvent = new CustomEvent(constructor.eventBeforeSelect, {\n ...init,\n cancelable: true,\n });\n if (this.dispatchEvent(beforeSelectEvent)) {\n this._selectionDidChange(item);\n const afterSelectEvent = new CustomEvent(constructor.eventSelect, init);\n this.dispatchEvent(afterSelectEvent);\n }\n }\n }\n\n /**\n * Handles user-initiated toggling the open state.\n *\n * @param [force] If specified, forces the open state to the given one.\n */\n protected _handleUserInitiatedToggle(force: boolean = !this.open) {\n const { eventBeforeToggle, eventToggle } = this\n .constructor as typeof CDSDropdown;\n\n const { disabled } = this;\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n open: force,\n },\n };\n if (!disabled) {\n if (this.dispatchEvent(new CustomEvent(eventBeforeToggle, init))) {\n this.open = force;\n if (this.open) {\n this._assistiveStatusText = this.selectingItemsAssistiveText;\n } else {\n const {\n selectedItemAssistiveText,\n label,\n _assistiveStatusText: assistiveStatusText,\n _selectedItemContent: selectedItemContent,\n } = this;\n const selectedItemText =\n (selectedItemContent && selectedItemContent.textContent) || label;\n if (\n selectedItemText &&\n assistiveStatusText !== selectedItemAssistiveText\n ) {\n this._assistiveStatusText = selectedItemText;\n }\n forEach(\n this.querySelectorAll(\n (this.constructor as typeof CDSDropdown).selectorItemHighlighted\n ),\n (item) => {\n (item as CDSDropdownItem).highlighted = false;\n }\n );\n }\n this.requestUpdate();\n this.dispatchEvent(new CustomEvent(eventToggle, init));\n }\n }\n }\n\n /**\n * Clears the selection of dropdown items.\n */\n protected _clearHighlight() {\n forEach(\n this.querySelectorAll(\n (this.constructor as typeof CDSDropdown).selectorItem\n ),\n (item) => {\n (item as CDSDropdownItem).highlighted = false;\n }\n );\n }\n\n /**\n * Navigate through dropdown items.\n *\n * @param direction `-1` to navigate backward, `1` to navigate forward.\n */\n protected _navigate(direction: number) {\n const constructor = this.constructor as typeof CDSDropdown;\n const items = this.querySelectorAll(constructor.selectorItem);\n const highlightedItem = this.querySelector(\n constructor.selectorItemHighlighted\n );\n const highlightedIndex = indexOf(items, highlightedItem!);\n let nextIndex = highlightedIndex + direction;\n\n if (items[nextIndex]?.hasAttribute('disabled')) {\n nextIndex += direction;\n }\n if (nextIndex < 0) {\n nextIndex = items.length - 1;\n }\n if (nextIndex >= items.length) {\n nextIndex = 0;\n }\n forEach(items, (item, i) => {\n (item as CDSDropdownItem).highlighted = i === nextIndex;\n });\n\n const nextItem = items[nextIndex];\n // Using `{ block: 'nearest' }` to prevent scrolling unless scrolling is absolutely necessary.\n // `scrollIntoViewOptions` seems to work in latest Safari despite of MDN/caniuse table.\n // IE falls back to the old behavior.\n nextItem.scrollIntoView({ block: 'nearest' });\n\n const nextItemText = nextItem.textContent;\n if (nextItemText) {\n this._assistiveStatusText = nextItemText;\n }\n this.requestUpdate();\n }\n\n /* eslint-disable class-methods-use-this */\n /**\n * @returns The content preceding the trigger button.\n */\n protected _renderPrecedingLabel(): TemplateResult | void {\n return undefined;\n }\n /* eslint-enable class-methods-use-this */\n\n /**\n * @returns The main content of the trigger button.\n */\n protected _renderLabel(): TemplateResult {\n const { label, _selectedItemContent: selectedItemContent } = this;\n return html`\n <span id=\"trigger-label\" class=\"${prefix}--list-box__label\"\n >${selectedItemContent || label}</span\n >\n `;\n }\n\n /**\n * @returns The title label.\n */\n protected _renderTitleLabel(): TemplateResult {\n const {\n disabled,\n hideLabel,\n titleText,\n _slotTitleTextNode: slotTitleTextNode,\n _handleSlotchangeLabelText: handleSlotchangeLabelText,\n } = this;\n\n const labelClasses = classMap({\n [`${prefix}--label`]: true,\n [`${prefix}--label--disabled`]: disabled,\n [`${prefix}--visually-hidden`]: hideLabel,\n });\n\n const hasTitleText =\n titleText ||\n (slotTitleTextNode && slotTitleTextNode.assignedNodes().length > 0);\n\n return html`\n <label\n part=\"title-text\"\n class=\"${labelClasses}\"\n ?hidden=\"${!hasTitleText}\">\n <slot name=\"title-text\" @slotchange=\"${handleSlotchangeLabelText}\"\n >${titleText}</slot\n >\n </label>\n `;\n }\n\n /* eslint-disable class-methods-use-this */\n /**\n * @returns The content following the trigger button.\n */\n protected _renderFollowingLabel(): TemplateResult | void {\n return undefined;\n }\n /* eslint-enable class-methods-use-this */\n\n /**\n * Handles event to include selected value on the parent form.\n *\n * @param event The event.\n */\n _handleFormdata(event: Event) {\n const { formData } = event as any; // TODO: Wait for `FormDataEvent` being available in `lib.dom.d.ts`\n const { disabled, name, value } = this;\n if (!disabled) {\n formData.append(name, value);\n }\n }\n\n /**\n * 'aria-label' of the ListBox component.\n * Specify a label to be read by screen readers on the container node\n */\n @property({ type: String, reflect: true, attribute: 'aria-label' })\n ariaLabel = '';\n\n /**\n * Specify the direction of the dropdown. Can be either top or bottom.\n */\n @property({ type: String, reflect: true })\n direction = DROPDOWN_DIRECTION.BOTTOM;\n\n /**\n * `true` if this dropdown should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * The helper text.\n */\n @property({ attribute: 'helper-text' })\n helperText = '';\n\n /**\n * Specify whether the title text should be hidden or not\n */\n @property({ type: Boolean, reflect: true, attribute: 'hide-label' })\n hideLabel = false;\n\n /**\n * `true` to show the UI of the invalid state.\n */\n @property({ type: Boolean, reflect: true })\n invalid = false;\n\n /**\n * Message which is displayed if the value is invalid.\n */\n @property({ attribute: 'invalid-text' })\n invalidText = '';\n\n /**\n * Provide the title text that will be read by a screen reader when visiting this control\n */\n @property({ attribute: 'title-text' })\n titleText = '';\n\n /**\n * Name for the dropdown in the `FormData`\n */\n @property()\n name = '';\n\n /**\n * `true` if this dropdown should be open.\n */\n @property({ type: Boolean, reflect: true })\n open = false;\n\n /**\n * Whether or not the Dropdown is readonly\n */\n @property({ type: Boolean, reflect: true, attribute: 'read-only' })\n readOnly = false;\n\n /**\n * `true` if the value is required.\n */\n @property({ type: Boolean, reflect: true })\n required = false;\n\n /**\n * The special validity message for `required`.\n */\n @property({ attribute: 'required-validity-message' })\n requiredValidityMessage = 'Please fill out this field.';\n\n /**\n * An assistive text for screen reader to announce, telling the open state.\n */\n @property({ attribute: 'selecting-items-assistive-text' })\n selectingItemsAssistiveText =\n 'Selecting items. Use up and down arrow keys to navigate.';\n\n /**\n * An assistive text for screen reader to announce, telling that an item is selected.\n */\n @property({ attribute: 'selected-item-assistive-text' })\n selectedItemAssistiveText = 'Selected an item.';\n\n /**\n * Dropdown size.\n */\n @property({ reflect: true })\n size = DROPDOWN_SIZE.MEDIUM;\n\n /**\n * The `aria-label` attribute for the UI indicating the closed state.\n */\n @property({ attribute: 'toggle-label-closed' })\n toggleLabelClosed = '';\n\n /**\n * The `aria-label` attribute for the UI indicating the open state.\n */\n @property({ attribute: 'toggle-label-open' })\n toggleLabelOpen = '';\n\n /**\n * Generic label that will be used as the textual representation of what this field is for\n */\n @property({ attribute: 'label' })\n label = '';\n\n /**\n * `true` if this dropdown should use the inline UI variant.\n */\n @property({ reflect: true })\n type = DROPDOWN_TYPE.DEFAULT;\n\n /**\n * The validity message.\n */\n @property({ attribute: 'validity-message' })\n validityMessage = '';\n\n /**\n * The value of the selected item.\n */\n @property({ reflect: true })\n value = '';\n\n /**\n * Specify whether the control is currently in warning state\n */\n @property({ type: Boolean, reflect: true })\n warn = false;\n\n /**\n * Provide the text that is displayed when the control is in warning state\n */\n @property({ attribute: 'warn-text' })\n warnText = '';\n\n shouldUpdate(changedProperties) {\n const { selectorItem } = this.constructor as typeof CDSDropdown;\n if (changedProperties.has('size')) {\n forEach(this.querySelectorAll(selectorItem), (elem) => {\n (elem as CDSDropdownItem).size = this.size;\n });\n }\n if (changedProperties.has('disabled') && this.disabled) {\n const { disabled } = this;\n // Propagate `disabled` attribute to descendants until `:host-context()` gets supported in all major browsers\n forEach(this.querySelectorAll(selectorItem), (elem) => {\n if (disabled) {\n (elem as CDSDropdownItem).disabled = disabled;\n } else {\n (elem as CDSDropdownItem).removeAttribute('disabled');\n }\n });\n }\n if (changedProperties.has('value')) {\n // `<cds-multi-select>` updates selection beforehand\n // because our rendering logic for `<cds-multi-select>` looks for selected items via `qSA()`\n forEach(this.querySelectorAll(selectorItem), (elem) => {\n (elem as CDSDropdownItem).selected =\n (elem as CDSDropdownItem).value === this.value;\n });\n const item = find(\n this.querySelectorAll(selectorItem),\n (elem) => (elem as CDSDropdownItem).value === this.value\n );\n if (item) {\n const range = this.ownerDocument!.createRange();\n range.selectNodeContents(item);\n this._selectedItemContent = range.cloneContents();\n } else {\n this._selectedItemContent = null;\n }\n }\n return true;\n }\n\n /**\n * The CSS class list for dropdown listbox\n */\n protected get _classes() {\n const { disabled, size, type, invalid, open, warn } = this;\n const inline = type === DROPDOWN_TYPE.INLINE;\n\n const selectedItemsCount = this.querySelectorAll(\n (this.constructor as typeof CDSDropdown).selectorItemSelected\n ).length;\n\n return classMap({\n [`${prefix}--dropdown`]: true,\n [`${prefix}--list-box`]: true,\n [`${prefix}--list-box--disabled`]: disabled,\n [`${prefix}--list-box--inline`]: inline,\n [`${prefix}--list-box--expanded`]: open,\n [`${prefix}--list-box--${size}`]: size,\n [`${prefix}--dropdown--invalid`]: invalid,\n [`${prefix}--dropdown--warn`]: warn,\n [`${prefix}--dropdown--inline`]: inline,\n [`${prefix}--dropdown--selected`]: selectedItemsCount > 0,\n });\n }\n\n render() {\n const {\n ariaLabel,\n _classes: classes,\n disabled,\n helperText,\n invalid,\n invalidText,\n open,\n toggleLabelClosed,\n toggleLabelOpen,\n type,\n warn,\n warnText,\n _assistiveStatusText: assistiveStatusText,\n _shouldTriggerBeFocusable: shouldTriggerBeFocusable,\n _handleClickInner: handleClickInner,\n _handleKeydownInner: handleKeydownInner,\n _handleKeypressInner: handleKeypressInner,\n _handleSlotchangeHelperText: handleSlotchangeHelperText,\n _slotHelperTextNode: slotHelperTextNode,\n } = this;\n const inline = type === DROPDOWN_TYPE.INLINE;\n\n const helperClasses = classMap({\n [`${prefix}--form__helper-text`]: true,\n [`${prefix}--form__helper-text--disabled`]: disabled,\n });\n const iconContainerClasses = classMap({\n [`${prefix}--list-box__menu-icon`]: true,\n [`${prefix}--list-box__menu-icon--open`]: open,\n });\n const toggleLabel =\n (open ? toggleLabelOpen : toggleLabelClosed) || undefined;\n const hasHelperText =\n helperText ||\n (slotHelperTextNode && slotHelperTextNode.assignedNodes().length > 0);\n const validityIcon = !invalid\n ? undefined\n : WarningFilled16({\n class: `${prefix}--list-box__invalid-icon`,\n 'aria-label': toggleLabel,\n });\n const warningIcon =\n !warn || (invalid && warn)\n ? undefined\n : WarningAltFilled16({\n class: `${prefix}--list-box__invalid-icon ${prefix}--list-box__invalid-icon--warning`,\n 'aria-label': toggleLabel,\n });\n const helperMessage = invalid ? invalidText : warn ? warnText : helperText;\n const menuBody = !open\n ? undefined\n : html`\n <div\n aria-label=\"${ariaLabel}\"\n id=\"menu-body\"\n part=\"menu-body\"\n class=\"${prefix}--list-box__menu\"\n role=\"listbox\"\n tabindex=\"-1\">\n <slot></slot>\n </div>\n `;\n return html`\n ${this._renderTitleLabel()}\n <div\n role=\"listbox\"\n class=\"${classes}\"\n ?data-invalid=${invalid}\n @click=${handleClickInner}\n @keydown=${handleKeydownInner}\n @keypress=${handleKeypressInner}>\n <div\n part=\"trigger-button\"\n role=\"${ifDefined(!shouldTriggerBeFocusable ? undefined : 'button')}\"\n class=\"${prefix}--list-box__field\"\n tabindex=\"${ifDefined(!shouldTriggerBeFocusable ? undefined : '0')}\"\n aria-labelledby=\"trigger-label\"\n aria-expanded=\"${String(open)}\"\n aria-haspopup=\"listbox\"\n aria-owns=\"menu-body\"\n aria-controls=\"menu-body\">\n ${this._renderPrecedingLabel()}${this._renderLabel()}${validityIcon}${warningIcon}${this._renderFollowingLabel()}\n <div id=\"trigger-caret\" class=\"${iconContainerClasses}\">\n ${ChevronDown16({ 'aria-label': toggleLabel })}\n </div>\n </div>\n ${menuBody}\n </div>\n <div\n part=\"helper-text\"\n class=\"${helperClasses}\"\n ?hidden=\"${(inline && !warn && !invalid) || !hasHelperText}\">\n <slot name=\"helper-text\" @slotchange=\"${handleSlotchangeHelperText}\"\n >${helperMessage}</slot\n >\n </div>\n <div\n class=\"${prefix}--assistive-text\"\n role=\"status\"\n aria-live=\"assertive\"\n aria-relevant=\"additions text\">\n ${assistiveStatusText}\n </div>\n `;\n }\n\n /**\n * Symbols of keys that triggers opening/closing menu and selecting/deselecting menu item.\n */\n static TRIGGER_KEYS = new Set([' ', 'Enter']);\n\n /**\n * A selector that will return highlighted items.\n */\n static get selectorItemHighlighted() {\n return `${prefix}-dropdown-item[highlighted]`;\n }\n\n /**\n * A selector that will return dropdown items.\n */\n static get selectorItem() {\n return `${prefix}-dropdown-item`;\n }\n\n /**\n * A selector that will return selected items.\n */\n static get selectorItemSelected() {\n return `${prefix}-dropdown-item[selected]`;\n }\n\n /**\n * The name of the custom event fired before a dropdown item is selected upon a user gesture.\n * Cancellation of this event stops changing the user-initiated selection.\n */\n static get eventBeforeSelect() {\n return `${prefix}-dropdown-beingselected`;\n }\n\n /**\n * The name of the custom event fired after a a dropdown item is selected upon a user gesture.\n */\n static get eventSelect() {\n return `${prefix}-dropdown-selected`;\n }\n\n /**\n * The name of the custom event fired before this dropdown item is being toggled upon a user gesture.\n * Cancellation of this event stops the user-initiated action of toggling this dropdown item.\n */\n static get eventBeforeToggle() {\n return `${prefix}-dropdown-beingtoggled`;\n }\n\n /**\n * The name of the custom event fired after this dropdown item is toggled upon a user gesture.\n */\n static get eventToggle() {\n return `${prefix}-dropdown-toggled`;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles;\n\n /**\n * @returns A action for dropdown for the given key symbol.\n */\n static getAction(key: string) {\n if (key === 'Escape') {\n return DROPDOWN_KEYBOARD_ACTION.CLOSING;\n }\n if (key in NAVIGATION_DIRECTION) {\n return DROPDOWN_KEYBOARD_ACTION.NAVIGATING;\n }\n if (this.TRIGGER_KEYS.has(key)) {\n return DROPDOWN_KEYBOARD_ACTION.TRIGGERING;\n }\n return DROPDOWN_KEYBOARD_ACTION.NONE;\n }\n}\n\nexport default CDSDropdown;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/dropdown/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,YAAY,CAAC;AACpB,OAAO,iBAAiB,CAAC;AACzB,OAAO,qBAAqB,CAAC","file":"index.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport './dropdown';\nimport './dropdown-item';\nimport './dropdown-skeleton';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/file-uploader/defs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,oBAAY,wBAAwB;IAClC;;OAEG;IACH,SAAS,cAAc;IAEvB;;OAEG;IACH,QAAQ,aAAa;IAErB;;OAEG;IACH,IAAI,SAAS;CACd;AAED;;GAEG;AACH,oBAAY,uBAAuB;IACjC;;OAEG;IACH,KAAK,OAAO;IAEZ;;OAEG;IACH,MAAM,OAAO;IAEb;;OAEG;IACH,KAAK,OAAO;CACb","file":"defs.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 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\n/**\n * The state of `<cds-file-uploader-item>`.\n */\nexport enum FILE_UPLOADER_ITEM_STATE {\n /**\n * Upload in progress.\n */\n UPLOADING = 'uploading',\n\n /**\n * Upload complete.\n */\n COMPLETE = 'complete',\n\n /**\n * Editing.\n */\n EDIT = 'edit',\n}\n\n/**\n * File uploader item size.\n */\nexport enum FILE_UPLOADER_ITEM_SIZE {\n /**\n * Small size.\n */\n SMALL = 'sm',\n\n /**\n * Medium size.\n */\n MEDIUM = 'md',\n\n /**\n * Large size.\n */\n LARGE = 'lg',\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/file-uploader/demo-file-uploader.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAMvC,OAAO,SAAS,CAAC;AAEjB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C;;;;;;GAMG;AAEH,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,UAAU;IAC3D;;OAEG;IACH,OAAO,CAAC,MAAM,CAAkB;IAEhC;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAsBrB;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAMrB;;;;OAIG;YACW,eAAe;IA2C7B;;OAEG;IAEH,MAAM,SAAM;IAEZ;;OAEG;IAEH,MAAM,UAAS;IAEf;;OAEG;IAEH,UAAU,SAAa;IAEvB;;OAEG;IAEH,WAAW,SAAc;IAEzB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,eAAe,SAAM;IAErB;;OAEG;IAEH,SAAS,SAAM;IAEf;;OAEG;IAEH,gBAAgB,SAAM;IAEtB;;OAEG;IAEH,UAAU,SAAM;IAEhB;;;OAGG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,IAAI,cAAsB;IAE1B;;OAEG;IAEH,UAAU,SAAM;IAEhB,MAAM;CAwDP","file":"demo-file-uploader.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 { html, LitElement } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\nimport { delay } from 'bluebird';\nimport { prefix } from '../../globals/settings';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport './index';\nimport { FILE_UPLOADER_ITEM_STATE } from './file-uploader-item';\nimport { BUTTON_SIZE } from '../button/button';\nimport { FileData } from './stories/types';\n\n/**\n * A class to manage file uploading states, like sending file contents to server.\n * DEMONSTRATION-PURPOSE ONLY.\n * Data/state handling in file uploading tends to involve lots of application-specific logics\n * and thus abstracting everything in a library won't be a good return on investment\n * vs. letting users copy code here and implement features that fit their needs.\n */\n@customElement(`${prefix}-ce-demo-file-uploader`)\nexport default class CDSCEDemoFileUploader extends LitElement {\n /**\n * The files being uploaded.\n */\n private _files: FileData[] = [];\n\n /**\n * Handles `cds-drop-container-changed` on `<cds-file-drop-container>`.\n *\n * @param event The event.\n */\n private _handleChange(event: CustomEvent) {\n const { addedFiles } = event.detail;\n const newFiles: FileData[] = addedFiles.map(\n (item) =>\n ({\n id: Math.random().toString(36).slice(2),\n file: item,\n state: FILE_UPLOADER_ITEM_STATE.UPLOADING,\n } as FileData)\n );\n const { multiple, _files: files, _simulateUpload: simulateUpload } = this;\n if (multiple) {\n this._files = files.concat(newFiles);\n this.requestUpdate();\n newFiles.forEach(simulateUpload, this);\n } else if (addedFiles.length > 0) {\n this._files = files.concat(newFiles[0]);\n this.requestUpdate();\n this._simulateUpload(newFiles[0]);\n }\n }\n\n /**\n * Handles `cds-file-uploader-item-deleted` on `<cds-file-uploader-item>`.\n *\n * @param event The event.\n */\n private _handleDelete(event: CustomEvent) {\n const { fileId: idToDelete } = (event.target as HTMLElement).dataset;\n this._files = this._files.filter(({ id }) => idToDelete !== id);\n this.requestUpdate();\n }\n\n /**\n * Simulates updating file.\n *\n * @param data The data of the file being uploaded.\n */\n private async _simulateUpload(data: FileData) {\n const { id, file } = data;\n if (file.size > 524288) {\n this._files = this._files.map((item) =>\n id !== item.id\n ? item\n : {\n ...item,\n state: FILE_UPLOADER_ITEM_STATE.EDIT,\n invalid: true,\n errorSubject: 'File size exceeds limit',\n errorBody:\n '500kb max file size. Select a new file and try again.',\n }\n );\n this.requestUpdate();\n } else {\n // Simulates network request time\n const rand = Math.random() * 1000;\n await delay(rand);\n this._files = this._files.map((item) =>\n id !== item.id\n ? item\n : {\n ...item,\n state: FILE_UPLOADER_ITEM_STATE.COMPLETE,\n }\n );\n this.requestUpdate();\n // Shows x icon after 1 second\n await delay(1000);\n this._files = this._files.map((item) =>\n id !== item.id\n ? item\n : {\n ...item,\n state: FILE_UPLOADER_ITEM_STATE.EDIT,\n }\n );\n this.requestUpdate();\n }\n }\n\n /**\n * The file types the file input should accept, separated by space.\n */\n @property()\n accept = '';\n\n /**\n * `true` if the drop container should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n button = false;\n\n /**\n * Button kind.\n */\n @property({ attribute: 'button-kind' })\n buttonKind = 'primary';\n\n /**\n * Button label.\n */\n @property({ attribute: 'button-label' })\n buttonLabel = 'Add file';\n\n /**\n * `true` if the drop container should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * Icon description.\n */\n @property({ attribute: 'icon-description' })\n iconDescription = '';\n\n /**\n * The input name.\n */\n @property({ attribute: 'input-name' })\n inputName = '';\n\n /**\n * The label description text.\n */\n @property({ attribute: 'label-description' })\n labelDescription = '';\n\n /**\n * The label title.\n */\n @property({ attribute: 'label-title' })\n labelTitle = '';\n\n /**\n * `true` if the drop container should accept more than one files at once.\n * Note that even with `false` set here, user _can_ select multiple files one by one.\n */\n @property({ type: Boolean, reflect: true })\n multiple = false;\n\n /**\n * The size of the button item.\n */\n @property({ reflect: true })\n size = BUTTON_SIZE.MEDIUM;\n\n /**\n * The state of this file uploader item.\n */\n @property({ reflect: true, attribute: 'input-state' })\n inputState = '';\n\n render() {\n const {\n accept,\n button,\n buttonKind,\n buttonLabel,\n disabled,\n labelDescription,\n labelTitle,\n multiple,\n size,\n inputState,\n iconDescription,\n _files: files,\n _handleChange: handleChange,\n _handleDelete: handleDelete,\n } = this;\n return html`\n <cds-file-uploader\n label-description=\"${ifDefined(labelDescription)}\"\n label-title=\"${ifDefined(labelTitle)}\"\n ?disabled=\"${disabled}\">\n ${!button\n ? html` <cds-file-uploader-drop-container\n accept=\"${ifDefined(accept)}\"\n ?multiple=\"${multiple}\"\n name=\"${ifDefined(this.inputName)}\"\n @cds-file-uploader-drop-container-changed=\"${handleChange}\">\n Drag and drop files here or click to upload\n </cds-file-uploader-drop-container>`\n : html` <cds-file-uploader-button\n size=\"${ifDefined(size)}\"\n button-kind=\"${buttonKind}\"\n accept=\"${ifDefined(accept)}\"\n name=\"${ifDefined(this.inputName)}\"\n ?multiple=\"${multiple}\"\n @cds-file-uploader-button-changed=\"${handleChange}\">\n ${buttonLabel}\n </cds-file-uploader-button>`}\n ${files.map(\n ({ id, invalid, file, state, errorSubject, errorBody }) => html`\n <cds-file-uploader-item\n data-file-id=\"${id}\"\n ?invalid=\"${invalid}\"\n state=\"${inputState || ifDefined(state)}\"\n icon-description=\"${ifDefined(iconDescription)}\"\n error-subject=\"${ifDefined(errorSubject)}\"\n error-body=\"${ifDefined(errorBody)}\"\n @cds-file-uploader-item-deleted=\"${handleDelete}\">\n ${file.name}\n </cds-file-uploader-item>\n `\n )}\n </cds-file-uploader>\n `;\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/file-uploader/file-uploader-button.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE1D,OAAO,EAAE,yBAAyB,IAAI,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE5F;;;;;GAKG;AACH,cACM,qBAAsB,SAAQ,0BAA6B;IAC/D;;OAEG;IACH,OAAO,CAAC,YAAY;IAOpB;;OAEG;IACH,OAAO,CAAC,cAAc;IAQtB;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAoBrB;;;OAGG;IACH,OAAO,CAAC,SAAS;IA2BjB;;OAEG;IAEH,UAAU,cAAuB;IAEjC;;OAEG;IAEH,IAAI,cAAsB;IAE1B;;OAEG;IAEH,MAAM,SAAM;IAEZ;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;;OAGG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,IAAI,SAAM;IAEV;;OAEG;IAEH,IAAI,SAAoB;IAExB,MAAM;IA4CN;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED;;OAEG;IACH,MAAM,KAAK,aAAa,WAEvB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,qBAAqB,CAAC","file":"file-uploader-button.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 { classMap } from 'lit/directives/class-map.js';\nimport { LitElement, html } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport ifNonEmpty from '../../globals/directives/if-non-empty';\nimport styles from './file-uploader.scss';\nimport { BUTTON_KIND, BUTTON_SIZE } from '../button/defs';\n\nexport { FORM_ELEMENT_COLOR_SCHEME as TILE_COLOR_SCHEME } from '../../globals/shared-enums';\n\n/**\n * File uploader button .\n *\n * @element cds-file-uploader-container\n * @fires cds-file-uploader-button-changed The custom event fired when there is a user gesture to select files to upload.\n */\n@customElement(`${prefix}-file-uploader-button`)\nclass CDSFileUploaderButton extends HostListenerMixin(LitElement) {\n /**\n * Handles `click` event on the button.\n */\n private _handleClick(event) {\n event.target.value = null;\n const { selectorInput } = this.constructor as typeof CDSFileUploaderButton;\n this?.shadowRoot?.querySelector(selectorInput)?.setAttribute('value', '');\n (this?.shadowRoot?.querySelector(selectorInput) as HTMLElement).click();\n }\n\n /**\n * Handles `keydown` event on the button.\n */\n private _handleKeyDown(event) {\n const { selectorInput } = this.constructor as typeof CDSFileUploaderButton;\n if (event.key === 'Enter' || event.key === 'Space') {\n this?.shadowRoot?.querySelector(selectorInput)?.setAttribute('value', '');\n (this?.shadowRoot?.querySelector(selectorInput) as HTMLElement).click();\n }\n }\n\n /**\n * Handles user gesture to select files to upload.\n *\n * @param event The event.\n */\n private _handleChange(event: Event | DragEvent) {\n const addedFiles = this._getFiles(event);\n const { eventChange, selectorInput } = this\n .constructor as typeof CDSFileUploaderButton;\n this.dispatchEvent(\n new CustomEvent(eventChange, {\n bubbles: true,\n composed: true,\n detail: {\n addedFiles,\n },\n })\n );\n\n const fileInput = this?.shadowRoot?.querySelector(selectorInput);\n if (fileInput) {\n (fileInput as HTMLInputElement).value = '';\n }\n }\n\n /**\n * @param event The event.\n * @returns The list of files user chose to upload.\n */\n private _getFiles(event: Event | DragEvent) {\n const { files } =\n (event.type === 'drop'\n ? (event as DragEvent).dataTransfer\n : (event.target as HTMLInputElement)) ?? {};\n const { accept } = this;\n if (!accept || !/^(change|drop)$/.test(event.type)) {\n return Array.from(files ?? []);\n }\n const acceptedTypes = new Set(accept.split(' '));\n return Array.prototype.filter.call(\n files,\n ({ name, type: mimeType = '' }) => {\n const fileExtensionRegExp = /\\.[^.]+$/;\n const hasFileExtension = fileExtensionRegExp.test(name);\n const [fileExtension] = !hasFileExtension\n ? [undefined]\n : fileExtensionRegExp.exec(name) ?? [];\n\n return (\n acceptedTypes.has(mimeType) ||\n (fileExtension && acceptedTypes.has(fileExtension))\n );\n }\n ) as File[];\n }\n\n /**\n * Button kind.\n */\n @property({ reflect: true, attribute: 'button-kind' })\n buttonKind = BUTTON_KIND.PRIMARY;\n\n /**\n * Button size.\n */\n @property({ reflect: true })\n size = BUTTON_SIZE.MEDIUM;\n\n /**\n * The file types the file input should accept, separated by space.\n */\n @property()\n accept = '';\n\n /**\n * `true` if this drop container should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * `true` if this drop container should accept more than one files at once.\n * Note that even with `false` set here, user _can_ select multiple files one by one.\n */\n @property({ type: Boolean, reflect: true })\n multiple = false;\n\n /**\n * The name of the input.\n */\n @property({ reflect: true })\n name = '';\n\n /**\n * The shadow DOM slot to put this drop container in.\n */\n @property({ reflect: true })\n slot = 'drop-container';\n\n render() {\n const {\n accept,\n disabled,\n multiple,\n name,\n buttonKind,\n size,\n _handleChange: handleChange,\n } = this;\n\n const labelClasses = classMap({\n [`${prefix}--file-browse-btn`]: true,\n [`${prefix}--file-browse-btn--disabled`]: disabled,\n });\n const buttonClasses = classMap({\n [`${prefix}--btn`]: true,\n [`${prefix}--btn--${buttonKind}`]: buttonKind,\n [`${prefix}--layout--size-${size}`]: size,\n [`${prefix}--btn--disabled`]: disabled,\n [`${prefix}--btn--${size}`]: size,\n });\n return html`\n <button\n type=\"button\"\n class=\"${buttonClasses}\"\n @click=\"${this._handleClick}\"\n @keydown=\"${this._handleKeyDown}\">\n <slot></slot>\n </button>\n <label class=\"${labelClasses}\" for=\"file\"> </label>\n <input\n id=\"file\"\n type=\"file\"\n class=\"${prefix}--file-input\"\n tabindex=\"-1\"\n accept=\"${ifNonEmpty(accept)}\"\n ?disabled=\"${disabled}\"\n ?multiple=\"${multiple}\"\n name=\"${ifNonEmpty(name)}\"\n @change=\"${handleChange}\" />\n `;\n }\n\n /**\n * The name of the custom event fired when there is a user gesture to select files to upload.\n */\n static get eventChange() {\n return `${prefix}-file-uploader-button-changed`;\n }\n\n /**\n * A selector that will return the file `<input>`.\n */\n static get selectorInput() {\n return `.${prefix}--file-input`;\n }\n\n static styles = styles;\n}\n\nexport default CDSFileUploaderButton;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/file-uploader/file-uploader-drop-container.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AASvC,OAAO,EAAE,yBAAyB,IAAI,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAU5F;;;;;GAKG;AACH,cACM,4BAA6B,SAAQ,iCAA6B;IACtE;;OAEG;IACH,OAAO,CAAC,OAAO,CAAS;IAExB;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAwBrB;;;;OAIG;IAKH,OAAO,CAAC,WAAW;IAiBnB;;;OAGG;IACH,OAAO,CAAC,SAAS;IAuBjB;;OAEG;IAEH,MAAM,SAAM;IAEZ;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;;OAGG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,IAAI,SAAM;IAEV;;OAEG;IAEH,IAAI,SAAoB;IAExB,MAAM;IAoCN;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED;;OAEG;IACH,MAAM,KAAK,aAAa,WAEvB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,4BAA4B,CAAC","file":"file-uploader-drop-container.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 { classMap } from 'lit/directives/class-map.js';\nimport { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport HostListener from '../../globals/decorators/host-listener';\nimport ifNonEmpty from '../../globals/directives/if-non-empty';\nimport styles from './file-uploader.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\nexport { FORM_ELEMENT_COLOR_SCHEME as TILE_COLOR_SCHEME } from '../../globals/shared-enums';\n\n/**\n * The value to set to `event.dataTransfer.dropEffect`, keyed by the event nane.\n */\nconst dropEffects = {\n dragover: 'copy',\n dragleave: 'move',\n};\n\n/**\n * File uploader drop container.\n *\n * @element cds-file-uploader-drop-container\n * @fires cds-file-uploader-drop-container-changed The custom event fired when there is a user gesture to select files to upload.\n */\n@customElement(`${prefix}-file-uploader-drop-container`)\nclass CDSFileUploaderDropContainer extends HostListenerMixin(LitElement) {\n /**\n * `true` to show the active state of this UI.\n */\n private _active = false;\n\n /**\n * Handles user gesture to select files to upload.\n *\n * @param event The event.\n */\n private _handleChange(event: Event | DragEvent) {\n const { eventChange, selectorInput } = this\n .constructor as typeof CDSFileUploaderDropContainer;\n const addedFiles = this._getFiles(\n event,\n (this.shadowRoot?.querySelector(selectorInput) as HTMLInputElement).files\n );\n\n this.dispatchEvent(\n new CustomEvent(eventChange, {\n bubbles: true,\n composed: true,\n detail: {\n addedFiles,\n },\n })\n );\n\n const fileInput = this?.shadowRoot?.querySelector(selectorInput);\n if (fileInput) {\n (fileInput as HTMLInputElement).value = ''; // carbon-web-components#904\n }\n }\n\n /**\n * Handles `dragover`, `dragleave` and `drop` events.\n *\n * @param event The event.\n */\n @HostListener('dragover')\n @HostListener('dragleave')\n @HostListener('drop')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleDrag(event: DragEvent) {\n event.preventDefault(); // Prevents page navigation upon dropping\n if (this.disabled) {\n return;\n }\n const { dataTransfer, type } = event;\n const dropEffect = dropEffects[type];\n if (dataTransfer && dropEffect) {\n dataTransfer.dropEffect = dropEffect;\n }\n this._active = type === 'dragover';\n if (type === 'drop') {\n this._handleChange(event);\n }\n this.requestUpdate();\n }\n\n /**\n * @param event The event.\n * @returns The list of files user chose to upload.\n */\n private _getFiles(event, files) {\n const { accept } = this;\n if (!accept || !/^(change|drop)$/.test(event.type)) {\n return Array.from(files ?? []);\n }\n const acceptedTypes = new Set(accept.split(' '));\n return Array.prototype.filter.call(\n files,\n ({ name, type: mimeType = '' }) => {\n const fileExtensionRegExp = /\\.[^.]+$/;\n const hasFileExtension = fileExtensionRegExp.test(name);\n const [fileExtension] = !hasFileExtension\n ? [undefined]\n : fileExtensionRegExp.exec(name) ?? [];\n\n return (\n acceptedTypes.has(mimeType) ||\n (fileExtension && acceptedTypes.has(fileExtension))\n );\n }\n ) as File[];\n }\n\n /**\n * The file types the file input should accept, separated by space.\n */\n @property()\n accept = '';\n\n /**\n * `true` if this drop container should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * `true` if this drop container should accept more than one files at once.\n * Note that even with `false` set here, user _can_ select multiple files one by one.\n */\n @property({ type: Boolean, reflect: true })\n multiple = false;\n\n /**\n * The name of the input.\n */\n @property({ reflect: true })\n name = '';\n\n /**\n * The shadow DOM slot to put this drop container in.\n */\n @property({ reflect: true })\n slot = 'drop-container';\n\n render() {\n const {\n accept,\n disabled,\n multiple,\n name,\n _active: active,\n _handleChange: handleChange,\n } = this;\n const labelClasses = classMap({\n [`${prefix}--file-browse-btn`]: true,\n [`${prefix}--file-browse-btn--disabled`]: disabled,\n });\n const dropareaClasses = classMap({\n [`${prefix}--file__drop-container`]: true,\n [`${prefix}--file__drop-container--drag-over`]: active,\n });\n return html`\n <label class=\"${labelClasses}\" for=\"file\" tabindex=\"0\">\n <div class=\"${dropareaClasses}\" role=\"button\">\n <slot></slot>\n <input\n id=\"file\"\n type=\"file\"\n name=\"${ifNonEmpty(name)}\"\n class=\"${prefix}--file-input\"\n tabindex=\"-1\"\n accept=\"${ifNonEmpty(accept)}\"\n ?disabled=\"${disabled}\"\n ?multiple=\"${multiple}\"\n @change=\"${handleChange}\" />\n </div>\n </label>\n `;\n }\n\n /**\n * The name of the custom event fired when there is a user gesture to select files to upload.\n */\n static get eventChange() {\n return `${prefix}-file-uploader-drop-container-changed`;\n }\n\n /**\n * A selector that will return the file `<input>`.\n */\n static get selectorInput() {\n return `.${prefix}--file-input`;\n }\n\n static styles = styles;\n}\n\nexport default CDSFileUploaderDropContainer;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/file-uploader/file-uploader-item.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAOvC,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAI3E,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,CAAC;AAE7D;;;;;;;;;;GAUG;AACH,cACM,mBAAoB,SAAQ,UAAU;IAC1C;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAahC;;OAEG;IACH,OAAO,CAAC,cAAc;IAoBtB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IASxB;;OAEG;IACH,OAAO,CAAC,eAAe;IAQvB;;OAEG;IACH,OAAO,CAAC,aAAa;IAcrB;;OAEG;IAEH,eAAe,SAAsB;IAErC;;OAEG;IAEH,OAAO,UAAS;IAEhB;;OAEG;IAEH,IAAI,0BAAkC;IAEtC;;OAEG;IAEH,KAAK,2BAAsC;IAE3C;;OAEG;IAEH,YAAY,SAAM;IAElB;;OAEG;IAEH,SAAS,SAAM;IAEf,MAAM;IAkBN;;;OAGG;IACH,MAAM,KAAK,iBAAiB,WAE3B;IAED;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,mBAAmB,CAAC","file":"file-uploader-item.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 CheckmarkFilled16 from '@carbon/icons/lib/checkmark--filled/16';\nimport Close16 from '@carbon/icons/lib/close/16';\nimport WarningFilled16 from '@carbon/icons/lib/warning--filled/16';\nimport { prefix } from '../../globals/settings';\nimport { LOADING_TYPE } from '../loading/loading';\nimport { FILE_UPLOADER_ITEM_SIZE, FILE_UPLOADER_ITEM_STATE } from './defs';\nimport styles from './file-uploader.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\nexport { FILE_UPLOADER_ITEM_SIZE, FILE_UPLOADER_ITEM_STATE };\n\n/**\n * File uploader item.\n *\n * @element cds-file-uploader-item\n * @slot validity-message The validity message.\n * @slot validity-message-supplement The supplemental validity message.\n * @fires cds-file-uploader-item-beingdeleted\n * The custom event fired before this file uploader item is being deleted upon a user gesture.\n * Cancellation of this event stops the user-initiated action of deleting this file uploader item.\n * @fires cds-file-uploader-item-deleted - The custom event fired after this file uploader item is deleted upon a user gesture.\n */\n@customElement(`${prefix}-file-uploader-item`)\nclass CDSFileUploaderItem extends LitElement {\n /**\n * Handles `click` event on the delete button.\n */\n private _handleClickDeleteButton() {\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n };\n const { eventBeforeDelete, eventDelete } = this\n .constructor as typeof CDSFileUploaderItem;\n if (this.dispatchEvent(new CustomEvent(eventBeforeDelete, init))) {\n this.dispatchEvent(new CustomEvent(eventDelete, init));\n }\n }\n\n /**\n * @returns The content showing the editing UI of this file uploader item.\n */\n private _renderEditing() {\n const {\n iconDescription,\n invalid,\n _handleClickDeleteButton: handleClickDeleteButton,\n } = this;\n return html`\n ${!invalid\n ? undefined\n : WarningFilled16({ class: `${prefix}--file-invalid` })}\n <button\n type=\"button\"\n aria-label=\"${iconDescription}\"\n class=\"${prefix}--file-close\"\n @click=\"${handleClickDeleteButton}\">\n ${Close16()}\n </button>\n `;\n }\n\n /**\n * @returns The content showing this file uploader's file uploading status as in progress.\n */\n private _renderUploading() {\n const { iconDescription } = this;\n return html`\n <cds-loading\n assistive-text=\"${iconDescription}\"\n type=\"${LOADING_TYPE.SMALL}\"></cds-loading>\n `;\n }\n\n /**\n * @returns The content showing this file uploader's file uploading status as complete.\n */\n private _renderUploaded() {\n const { iconDescription } = this;\n return CheckmarkFilled16({\n class: `${prefix}--file-complete`,\n 'aria-label': iconDescription,\n });\n }\n\n /**\n * @returns The content showing this file uploader's status.\n */\n private _renderStatus() {\n const { state } = this;\n switch (state) {\n case FILE_UPLOADER_ITEM_STATE.EDIT:\n return this._renderEditing();\n case FILE_UPLOADER_ITEM_STATE.UPLOADING:\n return this._renderUploading();\n case FILE_UPLOADER_ITEM_STATE.COMPLETE:\n return this._renderUploaded();\n default:\n return undefined;\n }\n }\n\n /**\n * The `aria-label` attribute for the icon to delete this file uploader item.\n */\n @property({ attribute: 'icon-description' })\n iconDescription = 'Delete this file';\n\n /**\n * Controls the invalid state and visibility of the `validityMessage`.\n */\n @property({ type: Boolean, reflect: true })\n invalid = false;\n\n /**\n * The size of this file uploader item.\n */\n @property({ reflect: true })\n size = FILE_UPLOADER_ITEM_SIZE.MEDIUM;\n\n /**\n * The state of this file uploader item.\n */\n @property({ reflect: true })\n state = FILE_UPLOADER_ITEM_STATE.UPLOADING;\n\n /**\n * The error subject text.\n */\n @property({ attribute: 'error-subject' })\n errorSubject = '';\n\n /**\n * The error body text\n */\n @property({ attribute: 'error-body' })\n errorBody = '';\n\n render() {\n const { invalid, errorSubject, errorBody } = this;\n return html` <p class=\"${prefix}--file-filename\"><slot></slot></p>\n <span class=\"${prefix}--file__state-container\"\n >${this._renderStatus()}</span\n >\n <div\n class=\"${prefix}--form-requirement\"\n ?hidden=\"${!invalid && !errorSubject}\">\n <div class=\"${prefix}--form-requirement__title\">${errorSubject}</div>\n <p\n class=\"${prefix}--form-requirement__supplement\"\n ?hidden=\"${!errorBody}\">\n ${errorBody}\n </p>\n </div>`;\n }\n\n /**\n * The name of the custom event fired before this file uplodaer item is being deleted upon a user gesture.\n * Cancellation of this event stops the user-initiated action of deleting this file uploader item.\n */\n static get eventBeforeDelete() {\n return `${prefix}-file-uploader-item-beingdeleted`;\n }\n\n /**\n * The name of the custom event fired after this file uplodaer item is deleted upon a user gesture.\n */\n static get eventDelete() {\n return `${prefix}-file-uploader-item-deleted`;\n }\n\n static styles = styles;\n}\n\nexport default CDSFileUploaderItem;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/file-uploader/file-uploader-skeleton.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAGvC,OAAO,gCAAgC,CAAC;AAExC,OAAO,2BAA2B,CAAC;AAEnC;;;;GAIG;AACH,cACM,uBAAwB,SAAQ,UAAU;IAC9C,MAAM;CASP;AAED,eAAe,uBAAuB,CAAC","file":"file-uploader-skeleton.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 '../skeleton-text/skeleton-text';\nimport { SKELETON_TEXT_TYPE } from '../skeleton-text/skeleton-text';\nimport '../button/button-skeleton';\n\n/**\n * The File uploader skeleton.\n *\n * @element cds-file-uploader-skeleton\n */\n@customElement(`${prefix}-file-uploader-skeleton`)\nclass CDSFileUploaderSkeleton extends LitElement {\n render() {\n return html`\n <cds-skeleton-text\n type=\"${SKELETON_TEXT_TYPE.HEADING}\"\n width=\"100px\"></cds-skeleton-text>\n <cds-skeleton-text width=\"225px\"></cds-skeleton-text>\n <cds-button-skeleton></cds-button-skeleton>\n `;\n }\n}\n\nexport default CDSFileUploaderSkeleton;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/file-uploader/file-uploader.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC;;;;;;GAMG;AACH,cACM,eAAgB,SAAQ,UAAU;IACtC;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,gBAAgB,SAAM;IAEtB;;OAEG;IAEH,UAAU,SAAM;IAEhB,OAAO,CAAC,iBAAiB,KAAA;IAWzB,MAAM;IA2BN;;OAEG;IACH,MAAM,KAAK,oBAAoB,WAE9B;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,eAAe,CAAC","file":"file-uploader.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 { classMap } from 'lit/directives/class-map.js';\nimport { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './file-uploader.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * The shell UI for file uploader.\n *\n * @element cds-file-uploader\n * @slot label-title.\n * @slot lebel-description.\n */\n@customElement(`${prefix}-file-uploader`)\nclass CDSFileUploader extends LitElement {\n /**\n * `true` if the file uploader should disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * The description text.\n */\n @property({ attribute: 'label-description' })\n labelDescription = '';\n\n /**\n * The label title.\n */\n @property({ attribute: 'label-title' })\n labelTitle = '';\n\n updated(changedProperties) {\n if (changedProperties.has('disabled')) {\n const { selectorUploaderItem } = this\n .constructor as typeof CDSFileUploader;\n const uploaderItem = this.querySelector(\n selectorUploaderItem\n ) as CDSFileUploader;\n uploaderItem.disabled = this.disabled;\n }\n }\n\n render() {\n const { disabled, labelDescription, labelTitle } = this;\n\n const labelClasses = classMap({\n [`${prefix}--file--label`]: true,\n [`${prefix}--label-description--disabled`]: disabled,\n });\n\n const descriptionClasses = classMap({\n [`${prefix}--label-description`]: true,\n [`${prefix}--label-description--disabled`]: disabled,\n });\n\n return html`\n <p class=\"${labelClasses}\">\n <slot name=\"label-title\">${labelTitle}</slot>\n </p>\n <p class=\"${descriptionClasses}\">\n <slot name=\"label-description\">${labelDescription}</slot>\n </p>\n <slot name=\"drop-container\"></slot>\n <div class=\"${prefix}--file-container\">\n <slot></slot>\n </div>\n `;\n }\n\n /**\n * A selector that will return the `<input>` to enter starting date.\n */\n static get selectorUploaderItem() {\n return `${prefix}-file-uploader-button,${prefix}-file-uploader-drop-container`;\n }\n\n static styles = styles;\n}\n\nexport default CDSFileUploader;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/file-uploader/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,iBAAiB,CAAC;AACzB,OAAO,sBAAsB,CAAC;AAC9B,OAAO,gCAAgC,CAAC;AACxC,OAAO,wBAAwB,CAAC;AAChC,OAAO,0BAA0B,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 './file-uploader';\nimport './file-uploader-item';\nimport './file-uploader-drop-container';\nimport './file-uploader-button';\nimport './file-uploader-skeleton';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/floating-menu/defs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,oBAAY,gCAAgC;IAC1C;;OAEG;IACH,GAAG,QAAQ;IAEX;;OAEG;IACH,GAAG,QAAQ;CACZ;AAED;;GAEG;AACH,oBAAY,uBAAuB;IACjC;;OAEG;IACH,GAAG,QAAQ;IAEX;;OAEG;IACH,MAAM,WAAW;CAClB","file":"defs.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 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\n/**\n * The LTR/RTL direction used for positioning floating menu.\n */\nexport enum FLOATING_MENU_POSITION_DIRECTION {\n /**\n * LTR.\n */\n LTR = 'ltr',\n\n /**\n * RTL.\n */\n RTL = 'rtl',\n}\n\n/**\n * The direction/positioning/orientation choices of floating menu.\n */\nexport enum FLOATING_MENU_DIRECTION {\n /**\n * Put menu body at the top of its trigger button.\n */\n TOP = 'top',\n\n /**\n * Put menu body at the bottom of its trigger button.\n */\n BOTTOM = 'bottom',\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/floating-menu/floating-menu-trigger.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,UAAU,sBAAuB,SAAQ,WAAW;IAClD;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,eAAe,EAAE,UAAU,CAAC;CAC7B;AAGD,eAAe,sBAAsB,CAAC","file":"floating-menu-trigger.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 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\n/**\n * The interface of floating menus containing the trigger button.\n */\ninterface CDSFloatingMenuTrigger extends HTMLElement {\n /**\n * `true` if the menu should be open.\n */\n open: boolean;\n\n /**\n * The position of the trigger button.\n */\n triggerPosition: ClientRect;\n}\n\n// eslint-disable-next-line no-undef\nexport default CDSFloatingMenuTrigger;\n"]}