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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1952) hide show
  1. package/custom-elements.json +480 -12
  2. package/es/components/accordion/accordion-item.d.ts +47 -27
  3. package/es/components/accordion/accordion-item.js +13 -3
  4. package/es/components/accordion/accordion-item.js.map +1 -1
  5. package/es/components/accordion/accordion.css.js +1 -1
  6. package/es/components/accordion/accordion.rtl.css.js +1 -1
  7. package/es/components/breadcrumb/breadcrumb.css.js +1 -1
  8. package/es/components/breadcrumb/breadcrumb.rtl.css.js +1 -1
  9. package/es/components/button/button.css.js +1 -1
  10. package/es/components/button/button.d.ts +98 -58
  11. package/es/components/button/button.js +3 -3
  12. package/es/components/button/button.js.map +1 -1
  13. package/es/components/button/button.rtl.css.js +1 -1
  14. package/es/components/checkbox/checkbox.css.js +1 -1
  15. package/es/components/checkbox/checkbox.d.ts +100 -60
  16. package/es/components/checkbox/checkbox.rtl.css.js +1 -1
  17. package/es/components/code-snippet/code-snippet.css.js +1 -1
  18. package/es/components/code-snippet/code-snippet.d.ts +47 -27
  19. package/es/components/code-snippet/code-snippet.js +1 -1
  20. package/es/components/code-snippet/code-snippet.js.map +1 -1
  21. package/es/components/code-snippet/code-snippet.rtl.css.js +1 -1
  22. package/es/components/combo-box/combo-box.css.js +1 -1
  23. package/es/components/combo-box/combo-box.d.ts +1 -1
  24. package/es/components/combo-box/combo-box.js +2 -1
  25. package/es/components/combo-box/combo-box.js.map +1 -1
  26. package/es/components/combo-box/combo-box.rtl.css.js +1 -1
  27. package/es/components/content-switcher/content-switcher-item.d.ts +47 -27
  28. package/es/components/content-switcher/content-switcher-item.js +3 -3
  29. package/es/components/content-switcher/content-switcher-item.js.map +1 -1
  30. package/es/components/content-switcher/content-switcher.css.js +1 -1
  31. package/es/components/content-switcher/content-switcher.rtl.css.js +1 -1
  32. package/es/components/copy/copy.js +14 -14
  33. package/es/components/copy/copy.js.map +1 -1
  34. package/es/components/copy-button/copy-button.css.js +1 -1
  35. package/es/components/copy-button/copy-button.d.ts +47 -27
  36. package/es/components/copy-button/copy-button.rtl.css.js +1 -1
  37. package/es/components/data-table/data-table.css.js +1 -1
  38. package/es/components/data-table/data-table.rtl.css.js +1 -1
  39. package/es/components/data-table/table-expanded-row.d.ts +47 -27
  40. package/es/components/data-table/table-header-cell.d.ts +47 -27
  41. package/es/components/data-table/table-row.d.ts +98 -58
  42. package/es/components/data-table/table-row.js +1 -1
  43. package/es/components/data-table/table-row.js.map +1 -1
  44. package/es/components/data-table/table-skeleton.js +2 -2
  45. package/es/components/data-table/table-skeleton.js.map +1 -1
  46. package/es/components/data-table/table-toolbar-search.d.ts +47 -27
  47. package/es/components/data-table/table-toolbar-search.js +1 -1
  48. package/es/components/data-table/table-toolbar-search.js.map +1 -1
  49. package/es/components/data-table/table.d.ts +47 -27
  50. package/es/components/data-table/table.js +2 -2
  51. package/es/components/data-table/table.js.map +1 -1
  52. package/es/components/date-picker/date-picker-input.d.ts +59 -27
  53. package/es/components/date-picker/date-picker-input.js +60 -19
  54. package/es/components/date-picker/date-picker-input.js.map +1 -1
  55. package/es/components/date-picker/date-picker.css.js +1 -1
  56. package/es/components/date-picker/date-picker.d.ts +98 -58
  57. package/es/components/date-picker/date-picker.rtl.css.js +1 -1
  58. package/es/components/dropdown/dropdown.css.js +1 -1
  59. package/es/components/dropdown/dropdown.d.ts +219 -126
  60. package/es/components/dropdown/dropdown.js +47 -1
  61. package/es/components/dropdown/dropdown.js.map +1 -1
  62. package/es/components/dropdown/dropdown.rtl.css.js +1 -1
  63. package/es/components/file-uploader/file-uploader-button.d.ts +47 -27
  64. package/es/components/file-uploader/file-uploader-button.js +7 -7
  65. package/es/components/file-uploader/file-uploader-button.js.map +1 -1
  66. package/es/components/file-uploader/file-uploader-drop-container.d.ts +47 -27
  67. package/es/components/file-uploader/file-uploader-drop-container.js +1 -1
  68. package/es/components/file-uploader/file-uploader-drop-container.js.map +1 -1
  69. package/es/components/file-uploader/file-uploader.css.js +1 -1
  70. package/es/components/file-uploader/file-uploader.rtl.css.js +1 -1
  71. package/es/components/floating-menu/floating-menu.d.ts +98 -58
  72. package/es/components/floating-menu/floating-menu.js +1 -1
  73. package/es/components/floating-menu/floating-menu.js.map +1 -1
  74. package/es/components/form/form-item.css.js +1 -1
  75. package/es/components/form/form-item.rtl.css.js +1 -1
  76. package/es/components/form-group/form-group.css.js +1 -1
  77. package/es/components/form-group/form-group.rtl.css.js +1 -1
  78. package/es/components/icon-button/icon-button.css.js +1 -1
  79. package/es/components/icon-button/icon-button.js +3 -3
  80. package/es/components/icon-button/icon-button.js.map +1 -1
  81. package/es/components/icon-button/icon-button.rtl.css.js +1 -1
  82. package/es/components/inline-loading/inline-loading.css.js +1 -1
  83. package/es/components/inline-loading/inline-loading.rtl.css.js +1 -1
  84. package/es/components/link/link.css.js +1 -1
  85. package/es/components/link/link.d.ts +54 -42
  86. package/es/components/link/link.js +7 -7
  87. package/es/components/link/link.js.map +1 -1
  88. package/es/components/link/link.rtl.css.js +1 -1
  89. package/es/components/list/list.css.js +1 -1
  90. package/es/components/list/list.rtl.css.js +1 -1
  91. package/es/components/loading/loading.css.js +1 -1
  92. package/es/components/loading/loading.rtl.css.js +1 -1
  93. package/es/components/modal/modal-close-button.d.ts +47 -27
  94. package/es/components/modal/modal.css.js +1 -1
  95. package/es/components/modal/modal.d.ts +47 -27
  96. package/es/components/modal/modal.rtl.css.js +1 -1
  97. package/es/components/multi-select/multi-select.css.js +1 -1
  98. package/es/components/multi-select/multi-select.js +15 -5
  99. package/es/components/multi-select/multi-select.js.map +1 -1
  100. package/es/components/multi-select/multi-select.rtl.css.js +1 -1
  101. package/es/components/notification/actionable-notification-button.js +1 -1
  102. package/es/components/notification/actionable-notification-button.js.map +1 -1
  103. package/es/components/notification/actionable-notification.css.js +1 -1
  104. package/es/components/notification/actionable-notification.d.ts +47 -27
  105. package/es/components/notification/actionable-notification.js +5 -5
  106. package/es/components/notification/actionable-notification.js.map +1 -1
  107. package/es/components/notification/actionable-notification.rtl.css.js +1 -1
  108. package/es/components/notification/inline-notification.css.js +1 -1
  109. package/es/components/notification/inline-notification.d.ts +47 -27
  110. package/es/components/notification/inline-notification.rtl.css.js +1 -1
  111. package/es/components/notification/toast-notification.css.js +1 -1
  112. package/es/components/notification/toast-notification.rtl.css.js +1 -1
  113. package/es/components/number-input/number-input.css.js +1 -1
  114. package/es/components/number-input/number-input.js +4 -2
  115. package/es/components/number-input/number-input.js.map +1 -1
  116. package/es/components/number-input/number-input.rtl.css.js +1 -1
  117. package/es/components/overflow-menu/overflow-menu-body.js +1 -1
  118. package/es/components/overflow-menu/overflow-menu-body.js.map +1 -1
  119. package/es/components/overflow-menu/overflow-menu-item.d.ts +47 -27
  120. package/es/components/overflow-menu/overflow-menu.css.js +1 -1
  121. package/es/components/overflow-menu/overflow-menu.d.ts +98 -58
  122. package/es/components/overflow-menu/overflow-menu.js +13 -13
  123. package/es/components/overflow-menu/overflow-menu.js.map +1 -1
  124. package/es/components/overflow-menu/overflow-menu.rtl.css.js +1 -1
  125. package/es/components/pagination/pagination.css.js +1 -1
  126. package/es/components/pagination/pagination.d.ts +100 -60
  127. package/es/components/pagination/pagination.js +6 -2
  128. package/es/components/pagination/pagination.js.map +1 -1
  129. package/es/components/pagination/pagination.rtl.css.js +1 -1
  130. package/es/components/popover/popover.css.js +1 -1
  131. package/es/components/popover/popover.rtl.css.js +1 -1
  132. package/es/components/progress-bar/progress-bar.css.js +1 -1
  133. package/es/components/progress-bar/progress-bar.rtl.css.js +1 -1
  134. package/es/components/progress-indicator/progress-indicator.css.js +1 -1
  135. package/es/components/progress-indicator/progress-indicator.rtl.css.js +1 -1
  136. package/es/components/progress-indicator/progress-step.d.ts +47 -27
  137. package/es/components/radio-button/radio-button-group.d.ts +98 -58
  138. package/es/components/radio-button/radio-button.css.js +1 -1
  139. package/es/components/radio-button/radio-button.d.ts +98 -58
  140. package/es/components/radio-button/radio-button.rtl.css.js +1 -1
  141. package/es/components/search/search.css.js +1 -1
  142. package/es/components/search/search.d.ts +149 -89
  143. package/es/components/search/search.js +3 -3
  144. package/es/components/search/search.js.map +1 -1
  145. package/es/components/search/search.rtl.css.js +1 -1
  146. package/es/components/select/select.css.js +1 -1
  147. package/es/components/select/select.d.ts +59 -27
  148. package/es/components/select/select.js +43 -3
  149. package/es/components/select/select.js.map +1 -1
  150. package/es/components/select/select.rtl.css.js +1 -1
  151. package/es/components/skeleton-placeholder/skeleton-placeholder.css.js +1 -1
  152. package/es/components/skeleton-placeholder/skeleton-placeholder.rtl.css.js +1 -1
  153. package/es/components/skeleton-text/skeleton-text.css.js +1 -1
  154. package/es/components/skeleton-text/skeleton-text.rtl.css.js +1 -1
  155. package/es/components/skip-to-content/skip-to-content.css.js +1 -1
  156. package/es/components/skip-to-content/skip-to-content.d.ts +47 -27
  157. package/es/components/skip-to-content/skip-to-content.rtl.css.js +1 -1
  158. package/es/components/slider/slider-input.d.ts +47 -27
  159. package/es/components/slider/slider.css.js +1 -1
  160. package/es/components/slider/slider.d.ts +149 -89
  161. package/es/components/slider/slider.js +2 -2
  162. package/es/components/slider/slider.js.map +1 -1
  163. package/es/components/slider/slider.rtl.css.js +1 -1
  164. package/es/components/slug/defs.d.ts +73 -0
  165. package/es/components/slug/defs.js +42 -0
  166. package/es/components/slug/defs.js.map +1 -0
  167. package/es/components/slug/index.d.ts +12 -0
  168. package/es/components/slug/index.js +12 -0
  169. package/es/components/slug/index.js.map +1 -0
  170. package/es/components/slug/slug-action-button.d.ts +23 -0
  171. package/es/components/slug/slug-action-button.js +51 -0
  172. package/es/components/slug/slug-action-button.js.map +1 -0
  173. package/es/components/slug/slug.css.js +12 -0
  174. package/es/components/slug/slug.d.ts +59 -0
  175. package/es/components/slug/slug.js +270 -0
  176. package/es/components/slug/slug.js.map +1 -0
  177. package/es/components/slug/slug.rtl.css.js +12 -0
  178. package/es/components/stack/stack.css.js +1 -1
  179. package/es/components/stack/stack.js +4 -3
  180. package/es/components/stack/stack.js.map +1 -1
  181. package/es/components/stack/stack.rtl.css.js +1 -1
  182. package/es/components/structured-list/structured-list-row.d.ts +47 -27
  183. package/es/components/structured-list/structured-list-row.js +1 -1
  184. package/es/components/structured-list/structured-list-row.js.map +1 -1
  185. package/es/components/structured-list/structured-list.css.js +1 -1
  186. package/es/components/structured-list/structured-list.d.ts +47 -27
  187. package/es/components/structured-list/structured-list.rtl.css.js +1 -1
  188. package/es/components/tabs/tab.d.ts +8 -0
  189. package/es/components/tabs/tab.js +30 -5
  190. package/es/components/tabs/tab.js.map +1 -1
  191. package/es/components/tabs/tabs.css.js +1 -1
  192. package/es/components/tabs/tabs.d.ts +58 -29
  193. package/es/components/tabs/tabs.js +53 -25
  194. package/es/components/tabs/tabs.js.map +1 -1
  195. package/es/components/tabs/tabs.rtl.css.js +1 -1
  196. package/es/components/tag/tag.css.js +1 -1
  197. package/es/components/tag/tag.d.ts +98 -58
  198. package/es/components/tag/tag.rtl.css.js +1 -1
  199. package/es/components/text-input/text-input.css.js +1 -1
  200. package/es/components/text-input/text-input.d.ts +112 -60
  201. package/es/components/text-input/text-input.js +46 -8
  202. package/es/components/text-input/text-input.js.map +1 -1
  203. package/es/components/text-input/text-input.rtl.css.js +1 -1
  204. package/es/components/textarea/textarea.css.js +1 -1
  205. package/es/components/textarea/textarea.js +4 -2
  206. package/es/components/textarea/textarea.js.map +1 -1
  207. package/es/components/textarea/textarea.rtl.css.js +1 -1
  208. package/es/components/tile/defs.d.ts +1 -1
  209. package/es/components/tile/defs.js +1 -1
  210. package/es/components/tile/defs.js.map +1 -1
  211. package/es/components/tile/expandable-tile.d.ts +98 -58
  212. package/es/components/tile/selectable-tile.d.ts +98 -58
  213. package/es/components/tile/tile-group.d.ts +47 -27
  214. package/es/components/tile/tile.css.js +1 -1
  215. package/es/components/tile/tile.js +1 -1
  216. package/es/components/tile/tile.js.map +1 -1
  217. package/es/components/tile/tile.rtl.css.js +1 -1
  218. package/es/components/toggle/index.d.ts +1 -1
  219. package/es/components/toggle/index.js +1 -1
  220. package/es/components/toggle/index.js.map +1 -1
  221. package/es/components/toggle/toggle.css.js +1 -1
  222. package/es/components/toggle/toggle.d.ts +47 -27
  223. package/es/components/toggle/toggle.rtl.css.js +1 -1
  224. package/es/components/toggle-tip/toggletip.css.js +1 -1
  225. package/es/components/toggle-tip/toggletip.d.ts +398 -29
  226. package/es/components/toggle-tip/toggletip.js +107 -32
  227. package/es/components/toggle-tip/toggletip.js.map +1 -1
  228. package/es/components/toggle-tip/toggletip.rtl.css.js +1 -1
  229. package/es/components/tooltip/tooltip-content.js +2 -2
  230. package/es/components/tooltip/tooltip-content.js.map +1 -1
  231. package/es/components/tooltip/tooltip.css.js +1 -1
  232. package/es/components/tooltip/tooltip.d.ts +47 -27
  233. package/es/components/tooltip/tooltip.js +3 -3
  234. package/es/components/tooltip/tooltip.js.map +1 -1
  235. package/es/components/tooltip/tooltip.rtl.css.js +1 -1
  236. package/es/components/ui-shell/header-menu-button.d.ts +47 -27
  237. package/es/components/ui-shell/header-menu.d.ts +98 -58
  238. package/es/components/ui-shell/header-name.d.ts +47 -27
  239. package/es/components/ui-shell/header-nav-item.d.ts +47 -27
  240. package/es/components/ui-shell/header.css.js +1 -1
  241. package/es/components/ui-shell/header.rtl.css.js +1 -1
  242. package/es/components/ui-shell/side-nav-link.d.ts +47 -27
  243. package/es/components/ui-shell/side-nav-link.js +1 -1
  244. package/es/components/ui-shell/side-nav-link.js.map +1 -1
  245. package/es/components/ui-shell/side-nav-menu-item.d.ts +48 -27
  246. package/es/components/ui-shell/side-nav-menu-item.js +11 -0
  247. package/es/components/ui-shell/side-nav-menu-item.js.map +1 -1
  248. package/es/components/ui-shell/side-nav-menu.d.ts +47 -27
  249. package/es/components/ui-shell/side-nav-menu.js +1 -1
  250. package/es/components/ui-shell/side-nav-menu.js.map +1 -1
  251. package/es/components/ui-shell/side-nav.css.js +1 -1
  252. package/es/components/ui-shell/side-nav.d.ts +47 -27
  253. package/es/components/ui-shell/side-nav.js +1 -1
  254. package/es/components/ui-shell/side-nav.js.map +1 -1
  255. package/es/components/ui-shell/side-nav.rtl.css.js +1 -1
  256. package/es/components/ui-shell/switcher-item.d.ts +47 -27
  257. package/es/components-react/slug/defs.d.ts +14 -0
  258. package/es/components-react/slug/defs.js +9 -0
  259. package/es/components-react/slug/index.d.ts +14 -0
  260. package/es/components-react/slug/index.js +8 -0
  261. package/es/components-react/slug/slug-action-button.d.ts +13 -0
  262. package/es/components-react/slug/slug-action-button.js +22 -0
  263. package/es/components-react/slug/slug.d.ts +13 -0
  264. package/es/components-react/slug/slug.js +22 -0
  265. package/es/globals/decorators/carbon-element.d.ts +1 -1
  266. package/es/globals/internal/feature-flags.d.ts +25 -0
  267. package/es/globals/internal/feature-flags.js +27 -0
  268. package/es/globals/internal/feature-flags.js.map +1 -0
  269. package/es/globals/internal/radio-group-manager.d.ts +1 -1
  270. package/es/globals/mixins/focus.d.ts +47 -27
  271. package/es/globals/mixins/form.d.ts +47 -27
  272. package/es/globals/mixins/host-listener.d.ts +47 -27
  273. package/es/globals/mixins/validity.d.ts +47 -27
  274. package/es/globals/scss/grid.css.js +1 -1
  275. package/es/globals/scss/grid.rtl.css.js +1 -1
  276. package/es/globals/scss/themes.css.js +1 -1
  277. package/es/globals/scss/themes.rtl.css.js +1 -1
  278. package/es/globals/settings.d.ts +1 -1
  279. package/es/globals/wrappers/createReactCustomElementType.js +2 -1
  280. package/es/globals/wrappers/createReactCustomElementType.js.map +1 -1
  281. package/es/icons/AI/16.d.ts +17 -0
  282. package/es/icons/AI/16.js +15 -0
  283. package/es/icons/AI/20.d.ts +17 -0
  284. package/es/icons/AI/20.js +15 -0
  285. package/es/icons/AI/24.d.ts +17 -0
  286. package/es/icons/AI/24.js +15 -0
  287. package/es/icons/AI/32.d.ts +17 -0
  288. package/es/icons/AI/32.js +15 -0
  289. package/es/icons/IP/16.d.ts +17 -0
  290. package/es/icons/IP/16.js +15 -0
  291. package/es/icons/IP/20.d.ts +17 -0
  292. package/es/icons/IP/20.js +15 -0
  293. package/es/icons/IP/24.d.ts +17 -0
  294. package/es/icons/IP/24.js +15 -0
  295. package/es/icons/IP/32.d.ts +17 -0
  296. package/es/icons/IP/32.js +15 -0
  297. package/es/icons/MAC/16.d.ts +17 -0
  298. package/es/icons/MAC/16.js +15 -0
  299. package/es/icons/MAC/20.d.ts +17 -0
  300. package/es/icons/MAC/20.js +15 -0
  301. package/es/icons/MAC/24.d.ts +17 -0
  302. package/es/icons/MAC/24.js +15 -0
  303. package/es/icons/MAC/32.d.ts +17 -0
  304. package/es/icons/MAC/32.js +15 -0
  305. package/es/icons/URL/16.d.ts +17 -0
  306. package/es/icons/URL/16.js +15 -0
  307. package/es/icons/URL/20.d.ts +17 -0
  308. package/es/icons/URL/20.js +15 -0
  309. package/es/icons/URL/24.d.ts +17 -0
  310. package/es/icons/URL/24.js +15 -0
  311. package/es/icons/URL/32.d.ts +17 -0
  312. package/es/icons/URL/32.js +15 -0
  313. package/es/icons/add--large/16.d.ts +17 -0
  314. package/es/icons/add--large/16.js +15 -0
  315. package/es/icons/add--large/20.d.ts +17 -0
  316. package/es/icons/add--large/20.js +15 -0
  317. package/es/icons/add--large/24.d.ts +17 -0
  318. package/es/icons/add--large/24.js +15 -0
  319. package/es/icons/add--large/32.d.ts +17 -0
  320. package/es/icons/add--large/32.js +15 -0
  321. package/es/icons/ai-governance--lifecycle/16.d.ts +17 -0
  322. package/es/icons/ai-governance--lifecycle/16.js +15 -0
  323. package/es/icons/ai-governance--lifecycle/20.d.ts +17 -0
  324. package/es/icons/ai-governance--lifecycle/20.js +15 -0
  325. package/es/icons/ai-governance--lifecycle/24.d.ts +17 -0
  326. package/es/icons/ai-governance--lifecycle/24.js +15 -0
  327. package/es/icons/ai-governance--lifecycle/32.d.ts +17 -0
  328. package/es/icons/ai-governance--lifecycle/32.js +15 -0
  329. package/es/icons/ai-governance--tracked/16.d.ts +17 -0
  330. package/es/icons/ai-governance--tracked/16.js +15 -0
  331. package/es/icons/ai-governance--tracked/20.d.ts +17 -0
  332. package/es/icons/ai-governance--tracked/20.js +15 -0
  333. package/es/icons/ai-governance--tracked/24.d.ts +17 -0
  334. package/es/icons/ai-governance--tracked/24.js +15 -0
  335. package/es/icons/ai-governance--tracked/32.d.ts +17 -0
  336. package/es/icons/ai-governance--tracked/32.js +15 -0
  337. package/es/icons/ai-governance--untracked/16.d.ts +17 -0
  338. package/es/icons/ai-governance--untracked/16.js +15 -0
  339. package/es/icons/ai-governance--untracked/20.d.ts +17 -0
  340. package/es/icons/ai-governance--untracked/20.js +15 -0
  341. package/es/icons/ai-governance--untracked/24.d.ts +17 -0
  342. package/es/icons/ai-governance--untracked/24.js +15 -0
  343. package/es/icons/ai-governance--untracked/32.d.ts +17 -0
  344. package/es/icons/ai-governance--untracked/32.js +15 -0
  345. package/es/icons/app-switcher/16.d.ts +17 -0
  346. package/es/icons/app-switcher/16.js +15 -0
  347. package/es/icons/app-switcher/20.d.ts +17 -0
  348. package/es/icons/app-switcher/20.js +15 -0
  349. package/es/icons/app-switcher/24.d.ts +17 -0
  350. package/es/icons/app-switcher/24.js +15 -0
  351. package/es/icons/app-switcher/32.d.ts +17 -0
  352. package/es/icons/app-switcher/32.js +15 -0
  353. package/es/icons/arithmetic-mean/16.d.ts +17 -0
  354. package/es/icons/arithmetic-mean/16.js +15 -0
  355. package/es/icons/arithmetic-mean/20.d.ts +17 -0
  356. package/es/icons/arithmetic-mean/20.js +15 -0
  357. package/es/icons/arithmetic-mean/24.d.ts +17 -0
  358. package/es/icons/arithmetic-mean/24.js +15 -0
  359. package/es/icons/arithmetic-mean/32.d.ts +17 -0
  360. package/es/icons/arithmetic-mean/32.js +15 -0
  361. package/es/icons/arithmetic-median/16.d.ts +17 -0
  362. package/es/icons/arithmetic-median/16.js +15 -0
  363. package/es/icons/arithmetic-median/20.d.ts +17 -0
  364. package/es/icons/arithmetic-median/20.js +15 -0
  365. package/es/icons/arithmetic-median/24.d.ts +17 -0
  366. package/es/icons/arithmetic-median/24.js +15 -0
  367. package/es/icons/arithmetic-median/32.d.ts +17 -0
  368. package/es/icons/arithmetic-median/32.js +15 -0
  369. package/es/icons/arrows/16.d.ts +17 -0
  370. package/es/icons/arrows/16.js +15 -0
  371. package/es/icons/arrows/20.d.ts +17 -0
  372. package/es/icons/arrows/20.js +15 -0
  373. package/es/icons/arrows/24.d.ts +17 -0
  374. package/es/icons/arrows/24.js +15 -0
  375. package/es/icons/arrows/32.d.ts +17 -0
  376. package/es/icons/arrows/32.js +15 -0
  377. package/es/icons/async/16.d.ts +17 -0
  378. package/es/icons/async/16.js +15 -0
  379. package/es/icons/async/20.d.ts +17 -0
  380. package/es/icons/async/20.js +15 -0
  381. package/es/icons/async/24.d.ts +17 -0
  382. package/es/icons/async/24.js +15 -0
  383. package/es/icons/async/32.d.ts +17 -0
  384. package/es/icons/async/32.js +15 -0
  385. package/es/icons/back-to-top/16.d.ts +17 -0
  386. package/es/icons/back-to-top/16.js +15 -0
  387. package/es/icons/back-to-top/20.d.ts +17 -0
  388. package/es/icons/back-to-top/20.js +15 -0
  389. package/es/icons/back-to-top/24.d.ts +17 -0
  390. package/es/icons/back-to-top/24.js +15 -0
  391. package/es/icons/back-to-top/32.d.ts +17 -0
  392. package/es/icons/back-to-top/32.js +15 -0
  393. package/es/icons/business-processes/16.d.ts +17 -0
  394. package/es/icons/business-processes/16.js +15 -0
  395. package/es/icons/business-processes/20.d.ts +17 -0
  396. package/es/icons/business-processes/20.js +15 -0
  397. package/es/icons/business-processes/24.d.ts +17 -0
  398. package/es/icons/business-processes/24.js +15 -0
  399. package/es/icons/business-processes/32.d.ts +17 -0
  400. package/es/icons/business-processes/32.js +15 -0
  401. package/es/icons/calls/16.d.ts +17 -0
  402. package/es/icons/calls/16.js +15 -0
  403. package/es/icons/calls/20.d.ts +17 -0
  404. package/es/icons/calls/20.js +15 -0
  405. package/es/icons/calls/24.d.ts +17 -0
  406. package/es/icons/calls/24.js +15 -0
  407. package/es/icons/calls/32.d.ts +17 -0
  408. package/es/icons/calls/32.js +15 -0
  409. package/es/icons/calls--all/16.d.ts +17 -0
  410. package/es/icons/calls--all/16.js +15 -0
  411. package/es/icons/calls--all/20.d.ts +17 -0
  412. package/es/icons/calls--all/20.js +15 -0
  413. package/es/icons/calls--all/24.d.ts +17 -0
  414. package/es/icons/calls--all/24.js +15 -0
  415. package/es/icons/calls--all/32.d.ts +17 -0
  416. package/es/icons/calls--all/32.js +15 -0
  417. package/es/icons/calls--incoming/16.d.ts +17 -0
  418. package/es/icons/calls--incoming/16.js +15 -0
  419. package/es/icons/calls--incoming/20.d.ts +17 -0
  420. package/es/icons/calls--incoming/20.js +15 -0
  421. package/es/icons/calls--incoming/24.d.ts +17 -0
  422. package/es/icons/calls--incoming/24.js +15 -0
  423. package/es/icons/calls--incoming/32.d.ts +17 -0
  424. package/es/icons/calls--incoming/32.js +15 -0
  425. package/es/icons/carbon-for-mobile/16.d.ts +17 -0
  426. package/es/icons/carbon-for-mobile/16.js +15 -0
  427. package/es/icons/carbon-for-mobile/20.d.ts +17 -0
  428. package/es/icons/carbon-for-mobile/20.js +15 -0
  429. package/es/icons/carbon-for-mobile/24.d.ts +17 -0
  430. package/es/icons/carbon-for-mobile/24.js +15 -0
  431. package/es/icons/carbon-for-mobile/32.d.ts +17 -0
  432. package/es/icons/carbon-for-mobile/32.js +15 -0
  433. package/es/icons/chart--dual-y-axis/16.d.ts +17 -0
  434. package/es/icons/chart--dual-y-axis/16.js +15 -0
  435. package/es/icons/chart--dual-y-axis/20.d.ts +17 -0
  436. package/es/icons/chart--dual-y-axis/20.js +15 -0
  437. package/es/icons/chart--dual-y-axis/24.d.ts +17 -0
  438. package/es/icons/chart--dual-y-axis/24.js +15 -0
  439. package/es/icons/chart--dual-y-axis/32.d.ts +17 -0
  440. package/es/icons/chart--dual-y-axis/32.js +15 -0
  441. package/es/icons/chart--planning-waterfall/16.d.ts +17 -0
  442. package/es/icons/chart--planning-waterfall/16.js +15 -0
  443. package/es/icons/chart--planning-waterfall/20.d.ts +17 -0
  444. package/es/icons/chart--planning-waterfall/20.js +15 -0
  445. package/es/icons/chart--planning-waterfall/24.d.ts +17 -0
  446. package/es/icons/chart--planning-waterfall/24.js +15 -0
  447. package/es/icons/chart--planning-waterfall/32.d.ts +17 -0
  448. package/es/icons/chart--planning-waterfall/32.js +15 -0
  449. package/es/icons/checkbox--undeterminate/16.d.ts +17 -0
  450. package/es/icons/checkbox--undeterminate/16.js +15 -0
  451. package/es/icons/checkbox--undeterminate/20.d.ts +17 -0
  452. package/es/icons/checkbox--undeterminate/20.js +15 -0
  453. package/es/icons/checkbox--undeterminate/24.d.ts +17 -0
  454. package/es/icons/checkbox--undeterminate/24.js +15 -0
  455. package/es/icons/checkbox--undeterminate/32.d.ts +17 -0
  456. package/es/icons/checkbox--undeterminate/32.js +15 -0
  457. package/es/icons/checkbox--undeterminate--filled/16.d.ts +17 -0
  458. package/es/icons/checkbox--undeterminate--filled/16.js +15 -0
  459. package/es/icons/checkbox--undeterminate--filled/20.d.ts +17 -0
  460. package/es/icons/checkbox--undeterminate--filled/20.js +15 -0
  461. package/es/icons/checkbox--undeterminate--filled/24.d.ts +17 -0
  462. package/es/icons/checkbox--undeterminate--filled/24.js +15 -0
  463. package/es/icons/checkbox--undeterminate--filled/32.d.ts +17 -0
  464. package/es/icons/checkbox--undeterminate--filled/32.js +15 -0
  465. package/es/icons/chevron--down--outline/16.d.ts +17 -0
  466. package/es/icons/chevron--down--outline/16.js +15 -0
  467. package/es/icons/chevron--down--outline/20.d.ts +17 -0
  468. package/es/icons/chevron--down--outline/20.js +15 -0
  469. package/es/icons/chevron--down--outline/24.d.ts +17 -0
  470. package/es/icons/chevron--down--outline/24.js +15 -0
  471. package/es/icons/chevron--down--outline/32.d.ts +17 -0
  472. package/es/icons/chevron--down--outline/32.js +15 -0
  473. package/es/icons/chevron--up--outline/16.d.ts +17 -0
  474. package/es/icons/chevron--up--outline/16.js +15 -0
  475. package/es/icons/chevron--up--outline/20.d.ts +17 -0
  476. package/es/icons/chevron--up--outline/20.js +15 -0
  477. package/es/icons/chevron--up--outline/24.d.ts +17 -0
  478. package/es/icons/chevron--up--outline/24.js +15 -0
  479. package/es/icons/chevron--up--outline/32.d.ts +17 -0
  480. package/es/icons/chevron--up--outline/32.js +15 -0
  481. package/es/icons/close/16.js +1 -1
  482. package/es/icons/close/20.js +1 -1
  483. package/es/icons/close/24.js +1 -1
  484. package/es/icons/close/32.js +1 -1
  485. package/es/icons/close--large/16.d.ts +17 -0
  486. package/es/icons/close--large/16.js +15 -0
  487. package/es/icons/close--large/20.d.ts +17 -0
  488. package/es/icons/close--large/20.js +15 -0
  489. package/es/icons/close--large/24.d.ts +17 -0
  490. package/es/icons/close--large/24.js +15 -0
  491. package/es/icons/close--large/32.d.ts +17 -0
  492. package/es/icons/close--large/32.js +15 -0
  493. package/es/icons/cloud--lightning/16.d.ts +17 -0
  494. package/es/icons/cloud--lightning/16.js +15 -0
  495. package/es/icons/cloud--lightning/20.d.ts +17 -0
  496. package/es/icons/cloud--lightning/20.js +15 -0
  497. package/es/icons/cloud--lightning/24.d.ts +17 -0
  498. package/es/icons/cloud--lightning/24.js +15 -0
  499. package/es/icons/cloud--lightning/32.d.ts +17 -0
  500. package/es/icons/cloud--lightning/32.js +15 -0
  501. package/es/icons/cloud--rain/16.d.ts +17 -0
  502. package/es/icons/cloud--rain/16.js +15 -0
  503. package/es/icons/cloud--rain/20.d.ts +17 -0
  504. package/es/icons/cloud--rain/20.js +15 -0
  505. package/es/icons/cloud--rain/24.d.ts +17 -0
  506. package/es/icons/cloud--rain/24.js +15 -0
  507. package/es/icons/cloud--rain/32.d.ts +17 -0
  508. package/es/icons/cloud--rain/32.js +15 -0
  509. package/es/icons/cloud--snow/16.d.ts +17 -0
  510. package/es/icons/cloud--snow/16.js +15 -0
  511. package/es/icons/cloud--snow/20.d.ts +17 -0
  512. package/es/icons/cloud--snow/20.js +15 -0
  513. package/es/icons/cloud--snow/24.d.ts +17 -0
  514. package/es/icons/cloud--snow/24.js +15 -0
  515. package/es/icons/cloud--snow/32.d.ts +17 -0
  516. package/es/icons/cloud--snow/32.js +15 -0
  517. package/es/icons/customer/16.d.ts +17 -0
  518. package/es/icons/customer/16.js +15 -0
  519. package/es/icons/customer/20.d.ts +17 -0
  520. package/es/icons/customer/20.js +15 -0
  521. package/es/icons/customer/24.d.ts +17 -0
  522. package/es/icons/customer/24.js +15 -0
  523. package/es/icons/customer/32.d.ts +17 -0
  524. package/es/icons/customer/32.js +15 -0
  525. package/es/icons/data--reference/16.js +1 -1
  526. package/es/icons/data--reference/20.js +1 -1
  527. package/es/icons/data--reference/24.js +1 -1
  528. package/es/icons/data--reference/32.js +1 -1
  529. package/es/icons/data--set/16.js +1 -1
  530. package/es/icons/data--set/20.js +1 -1
  531. package/es/icons/data--set/24.js +1 -1
  532. package/es/icons/data--set/32.js +1 -1
  533. package/es/icons/data--unreal/16.d.ts +17 -0
  534. package/es/icons/data--unreal/16.js +15 -0
  535. package/es/icons/data--unreal/20.d.ts +17 -0
  536. package/es/icons/data--unreal/20.js +15 -0
  537. package/es/icons/data--unreal/24.d.ts +17 -0
  538. package/es/icons/data--unreal/24.js +15 -0
  539. package/es/icons/data--unreal/32.d.ts +17 -0
  540. package/es/icons/data--unreal/32.js +15 -0
  541. package/es/icons/data-analytics/16.d.ts +17 -0
  542. package/es/icons/data-analytics/16.js +15 -0
  543. package/es/icons/data-analytics/20.d.ts +17 -0
  544. package/es/icons/data-analytics/20.js +15 -0
  545. package/es/icons/data-analytics/24.d.ts +17 -0
  546. package/es/icons/data-analytics/24.js +15 -0
  547. package/es/icons/data-analytics/32.d.ts +17 -0
  548. package/es/icons/data-analytics/32.js +15 -0
  549. package/es/icons/database--enterprisedb/16.d.ts +17 -0
  550. package/es/icons/database--enterprisedb/16.js +15 -0
  551. package/es/icons/database--enterprisedb/20.d.ts +17 -0
  552. package/es/icons/database--enterprisedb/20.js +15 -0
  553. package/es/icons/database--enterprisedb/24.d.ts +17 -0
  554. package/es/icons/database--enterprisedb/24.js +15 -0
  555. package/es/icons/database--enterprisedb/32.d.ts +17 -0
  556. package/es/icons/database--enterprisedb/32.js +15 -0
  557. package/es/icons/database--messaging/16.d.ts +17 -0
  558. package/es/icons/database--messaging/16.js +15 -0
  559. package/es/icons/database--messaging/20.d.ts +17 -0
  560. package/es/icons/database--messaging/20.js +15 -0
  561. package/es/icons/database--messaging/24.d.ts +17 -0
  562. package/es/icons/database--messaging/24.js +15 -0
  563. package/es/icons/database--messaging/32.d.ts +17 -0
  564. package/es/icons/database--messaging/32.js +15 -0
  565. package/es/icons/delete/16.d.ts +17 -0
  566. package/es/icons/delete/16.js +15 -0
  567. package/es/icons/delete/20.d.ts +17 -0
  568. package/es/icons/delete/20.js +15 -0
  569. package/es/icons/delete/24.d.ts +17 -0
  570. package/es/icons/delete/24.js +15 -0
  571. package/es/icons/delete/32.d.ts +17 -0
  572. package/es/icons/delete/32.js +15 -0
  573. package/es/icons/demo/16.d.ts +17 -0
  574. package/es/icons/demo/16.js +15 -0
  575. package/es/icons/demo/20.d.ts +17 -0
  576. package/es/icons/demo/20.js +15 -0
  577. package/es/icons/demo/24.d.ts +17 -0
  578. package/es/icons/demo/24.js +15 -0
  579. package/es/icons/demo/32.d.ts +17 -0
  580. package/es/icons/demo/32.js +15 -0
  581. package/es/icons/devices--apps/16.d.ts +17 -0
  582. package/es/icons/devices--apps/16.js +15 -0
  583. package/es/icons/devices--apps/20.d.ts +17 -0
  584. package/es/icons/devices--apps/20.js +15 -0
  585. package/es/icons/devices--apps/24.d.ts +17 -0
  586. package/es/icons/devices--apps/24.js +15 -0
  587. package/es/icons/devices--apps/32.d.ts +17 -0
  588. package/es/icons/devices--apps/32.js +15 -0
  589. package/es/icons/downstream/16.d.ts +17 -0
  590. package/es/icons/downstream/16.js +15 -0
  591. package/es/icons/downstream/20.d.ts +17 -0
  592. package/es/icons/downstream/20.js +15 -0
  593. package/es/icons/downstream/24.d.ts +17 -0
  594. package/es/icons/downstream/24.js +15 -0
  595. package/es/icons/downstream/32.d.ts +17 -0
  596. package/es/icons/downstream/32.js +15 -0
  597. package/es/icons/equal--approximately/16.d.ts +17 -0
  598. package/es/icons/equal--approximately/16.js +15 -0
  599. package/es/icons/equal--approximately/20.d.ts +17 -0
  600. package/es/icons/equal--approximately/20.js +15 -0
  601. package/es/icons/equal--approximately/24.d.ts +17 -0
  602. package/es/icons/equal--approximately/24.js +15 -0
  603. package/es/icons/equal--approximately/32.d.ts +17 -0
  604. package/es/icons/equal--approximately/32.js +15 -0
  605. package/es/icons/event--change/16.d.ts +17 -0
  606. package/es/icons/event--change/16.js +15 -0
  607. package/es/icons/event--change/20.d.ts +17 -0
  608. package/es/icons/event--change/20.js +15 -0
  609. package/es/icons/event--change/24.d.ts +17 -0
  610. package/es/icons/event--change/24.js +15 -0
  611. package/es/icons/event--change/32.d.ts +17 -0
  612. package/es/icons/event--change/32.js +15 -0
  613. package/es/icons/event--incident/16.d.ts +17 -0
  614. package/es/icons/event--incident/16.js +15 -0
  615. package/es/icons/event--incident/20.d.ts +17 -0
  616. package/es/icons/event--incident/20.js +15 -0
  617. package/es/icons/event--incident/24.d.ts +17 -0
  618. package/es/icons/event--incident/24.js +15 -0
  619. package/es/icons/event--incident/32.d.ts +17 -0
  620. package/es/icons/event--incident/32.js +15 -0
  621. package/es/icons/event--warning/16.d.ts +17 -0
  622. package/es/icons/event--warning/16.js +15 -0
  623. package/es/icons/event--warning/20.d.ts +17 -0
  624. package/es/icons/event--warning/20.js +15 -0
  625. package/es/icons/event--warning/24.d.ts +17 -0
  626. package/es/icons/event--warning/24.js +15 -0
  627. package/es/icons/event--warning/32.d.ts +17 -0
  628. package/es/icons/event--warning/32.js +15 -0
  629. package/es/icons/foundation-model/16.d.ts +17 -0
  630. package/es/icons/foundation-model/16.js +15 -0
  631. package/es/icons/foundation-model/20.d.ts +17 -0
  632. package/es/icons/foundation-model/20.js +15 -0
  633. package/es/icons/foundation-model/24.d.ts +17 -0
  634. package/es/icons/foundation-model/24.js +15 -0
  635. package/es/icons/foundation-model/32.d.ts +17 -0
  636. package/es/icons/foundation-model/32.js +15 -0
  637. package/es/icons/global-loan-and-trial/16.d.ts +17 -0
  638. package/es/icons/global-loan-and-trial/16.js +15 -0
  639. package/es/icons/global-loan-and-trial/20.d.ts +17 -0
  640. package/es/icons/global-loan-and-trial/20.js +15 -0
  641. package/es/icons/global-loan-and-trial/24.d.ts +17 -0
  642. package/es/icons/global-loan-and-trial/24.js +15 -0
  643. package/es/icons/global-loan-and-trial/32.d.ts +17 -0
  644. package/es/icons/global-loan-and-trial/32.js +15 -0
  645. package/es/icons/glyph--caution/index.d.ts +17 -0
  646. package/es/icons/glyph--caution/index.js +15 -0
  647. package/es/icons/glyph--caution-inverted/index.d.ts +17 -0
  648. package/es/icons/glyph--caution-inverted/index.js +15 -0
  649. package/es/icons/glyph--circle-fill/index.d.ts +17 -0
  650. package/es/icons/glyph--circle-fill/index.js +15 -0
  651. package/es/icons/glyph--circle-stroke/index.d.ts +17 -0
  652. package/es/icons/glyph--circle-stroke/index.js +15 -0
  653. package/es/icons/glyph--critical/index.d.ts +17 -0
  654. package/es/icons/glyph--critical/index.js +15 -0
  655. package/es/icons/glyph--incomplete/index.d.ts +17 -0
  656. package/es/icons/glyph--incomplete/index.js +15 -0
  657. package/es/icons/glyph--square-fill/index.d.ts +17 -0
  658. package/es/icons/glyph--square-fill/index.js +15 -0
  659. package/es/icons/glyph--undefined/index.d.ts +17 -0
  660. package/es/icons/glyph--undefined/index.js +15 -0
  661. package/es/icons/ibm--ai-on-z/16.d.ts +17 -0
  662. package/es/icons/ibm--ai-on-z/16.js +15 -0
  663. package/es/icons/ibm--ai-on-z/20.d.ts +17 -0
  664. package/es/icons/ibm--ai-on-z/20.js +15 -0
  665. package/es/icons/ibm--ai-on-z/24.d.ts +17 -0
  666. package/es/icons/ibm--ai-on-z/24.js +15 -0
  667. package/es/icons/ibm--ai-on-z/32.d.ts +17 -0
  668. package/es/icons/ibm--ai-on-z/32.js +15 -0
  669. package/es/icons/ibm--aiops-insights/16.d.ts +17 -0
  670. package/es/icons/ibm--aiops-insights/16.js +15 -0
  671. package/es/icons/ibm--aiops-insights/20.d.ts +17 -0
  672. package/es/icons/ibm--aiops-insights/20.js +15 -0
  673. package/es/icons/ibm--aiops-insights/24.d.ts +17 -0
  674. package/es/icons/ibm--aiops-insights/24.js +15 -0
  675. package/es/icons/ibm--aiops-insights/32.d.ts +17 -0
  676. package/es/icons/ibm--aiops-insights/32.js +15 -0
  677. package/es/icons/ibm--cloudant/16.d.ts +17 -0
  678. package/es/icons/ibm--cloudant/16.js +15 -0
  679. package/es/icons/ibm--cloudant/20.d.ts +17 -0
  680. package/es/icons/ibm--cloudant/20.js +15 -0
  681. package/es/icons/ibm--cloudant/24.d.ts +17 -0
  682. package/es/icons/ibm--cloudant/24.js +15 -0
  683. package/es/icons/ibm--cloudant/32.d.ts +17 -0
  684. package/es/icons/ibm--cloudant/32.js +15 -0
  685. package/es/icons/ibm--data-product-exchange/16.d.ts +17 -0
  686. package/es/icons/ibm--data-product-exchange/16.js +15 -0
  687. package/es/icons/ibm--data-product-exchange/20.d.ts +17 -0
  688. package/es/icons/ibm--data-product-exchange/20.js +15 -0
  689. package/es/icons/ibm--data-product-exchange/24.d.ts +17 -0
  690. package/es/icons/ibm--data-product-exchange/24.js +15 -0
  691. package/es/icons/ibm--data-product-exchange/32.d.ts +17 -0
  692. package/es/icons/ibm--data-product-exchange/32.js +15 -0
  693. package/es/icons/ibm--db2/16.js +1 -1
  694. package/es/icons/ibm--db2/20.js +1 -1
  695. package/es/icons/ibm--db2/24.js +1 -1
  696. package/es/icons/ibm--db2/32.js +1 -1
  697. package/es/icons/ibm--db2-warehouse/16.d.ts +17 -0
  698. package/es/icons/ibm--db2-warehouse/16.js +15 -0
  699. package/es/icons/ibm--db2-warehouse/20.d.ts +17 -0
  700. package/es/icons/ibm--db2-warehouse/20.js +15 -0
  701. package/es/icons/ibm--db2-warehouse/24.d.ts +17 -0
  702. package/es/icons/ibm--db2-warehouse/24.js +15 -0
  703. package/es/icons/ibm--db2-warehouse/32.d.ts +17 -0
  704. package/es/icons/ibm--db2-warehouse/32.js +15 -0
  705. package/es/icons/ibm--dynamic-route-server/16.d.ts +17 -0
  706. package/es/icons/ibm--dynamic-route-server/16.js +15 -0
  707. package/es/icons/ibm--dynamic-route-server/20.d.ts +17 -0
  708. package/es/icons/ibm--dynamic-route-server/20.js +15 -0
  709. package/es/icons/ibm--dynamic-route-server/24.d.ts +17 -0
  710. package/es/icons/ibm--dynamic-route-server/24.js +15 -0
  711. package/es/icons/ibm--dynamic-route-server/32.d.ts +17 -0
  712. package/es/icons/ibm--dynamic-route-server/32.js +15 -0
  713. package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/16.d.ts +17 -0
  714. package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/16.js +15 -0
  715. package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/20.d.ts +17 -0
  716. package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/20.js +15 -0
  717. package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/24.d.ts +17 -0
  718. package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/24.js +15 -0
  719. package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/32.d.ts +17 -0
  720. package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/32.js +15 -0
  721. package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/16.d.ts +17 -0
  722. package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/16.js +15 -0
  723. package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/20.d.ts +17 -0
  724. package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/20.js +15 -0
  725. package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/24.d.ts +17 -0
  726. package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/24.js +15 -0
  727. package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/32.d.ts +17 -0
  728. package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/32.js +15 -0
  729. package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/16.d.ts +17 -0
  730. package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/16.js +15 -0
  731. package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/20.d.ts +17 -0
  732. package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/20.js +15 -0
  733. package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/24.d.ts +17 -0
  734. package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/24.js +15 -0
  735. package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/32.d.ts +17 -0
  736. package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/32.js +15 -0
  737. package/es/icons/ibm--event-automation/16.d.ts +17 -0
  738. package/es/icons/ibm--event-automation/16.js +15 -0
  739. package/es/icons/ibm--event-automation/20.d.ts +17 -0
  740. package/es/icons/ibm--event-automation/20.js +15 -0
  741. package/es/icons/ibm--event-automation/24.d.ts +17 -0
  742. package/es/icons/ibm--event-automation/24.js +15 -0
  743. package/es/icons/ibm--event-automation/32.d.ts +17 -0
  744. package/es/icons/ibm--event-automation/32.js +15 -0
  745. package/es/icons/ibm--event-endpoint-mgmt/16.d.ts +17 -0
  746. package/es/icons/ibm--event-endpoint-mgmt/16.js +15 -0
  747. package/es/icons/ibm--event-endpoint-mgmt/20.d.ts +17 -0
  748. package/es/icons/ibm--event-endpoint-mgmt/20.js +15 -0
  749. package/es/icons/ibm--event-endpoint-mgmt/24.d.ts +17 -0
  750. package/es/icons/ibm--event-endpoint-mgmt/24.js +15 -0
  751. package/es/icons/ibm--event-endpoint-mgmt/32.d.ts +17 -0
  752. package/es/icons/ibm--event-endpoint-mgmt/32.js +15 -0
  753. package/es/icons/ibm--event-processing/16.d.ts +17 -0
  754. package/es/icons/ibm--event-processing/16.js +15 -0
  755. package/es/icons/ibm--event-processing/20.d.ts +17 -0
  756. package/es/icons/ibm--event-processing/20.js +15 -0
  757. package/es/icons/ibm--event-processing/24.d.ts +17 -0
  758. package/es/icons/ibm--event-processing/24.js +15 -0
  759. package/es/icons/ibm--event-processing/32.d.ts +17 -0
  760. package/es/icons/ibm--event-processing/32.js +15 -0
  761. package/es/icons/ibm--event-streams/16.d.ts +17 -0
  762. package/es/icons/ibm--event-streams/16.js +15 -0
  763. package/es/icons/ibm--event-streams/20.d.ts +17 -0
  764. package/es/icons/ibm--event-streams/20.js +15 -0
  765. package/es/icons/ibm--event-streams/24.d.ts +17 -0
  766. package/es/icons/ibm--event-streams/24.js +15 -0
  767. package/es/icons/ibm--event-streams/32.d.ts +17 -0
  768. package/es/icons/ibm--event-streams/32.js +15 -0
  769. package/es/icons/ibm--ibv/16.d.ts +17 -0
  770. package/es/icons/ibm--ibv/16.js +15 -0
  771. package/es/icons/ibm--ibv/20.d.ts +17 -0
  772. package/es/icons/ibm--ibv/20.js +15 -0
  773. package/es/icons/ibm--ibv/24.d.ts +17 -0
  774. package/es/icons/ibm--ibv/24.js +15 -0
  775. package/es/icons/ibm--ibv/32.d.ts +17 -0
  776. package/es/icons/ibm--ibv/32.js +15 -0
  777. package/es/icons/ibm--instana/16.d.ts +17 -0
  778. package/es/icons/ibm--instana/16.js +15 -0
  779. package/es/icons/ibm--instana/20.d.ts +17 -0
  780. package/es/icons/ibm--instana/20.js +15 -0
  781. package/es/icons/ibm--instana/24.d.ts +17 -0
  782. package/es/icons/ibm--instana/24.js +15 -0
  783. package/es/icons/ibm--instana/32.d.ts +17 -0
  784. package/es/icons/ibm--instana/32.js +15 -0
  785. package/es/icons/ibm--power-vs-private-cloud/16.d.ts +17 -0
  786. package/es/icons/ibm--power-vs-private-cloud/16.js +15 -0
  787. package/es/icons/ibm--power-vs-private-cloud/20.d.ts +17 -0
  788. package/es/icons/ibm--power-vs-private-cloud/20.js +15 -0
  789. package/es/icons/ibm--power-vs-private-cloud/24.d.ts +17 -0
  790. package/es/icons/ibm--power-vs-private-cloud/24.js +15 -0
  791. package/es/icons/ibm--power-vs-private-cloud/32.d.ts +17 -0
  792. package/es/icons/ibm--power-vs-private-cloud/32.js +15 -0
  793. package/es/icons/ibm--saas-console/16.d.ts +17 -0
  794. package/es/icons/ibm--saas-console/16.js +15 -0
  795. package/es/icons/ibm--saas-console/20.d.ts +17 -0
  796. package/es/icons/ibm--saas-console/20.js +15 -0
  797. package/es/icons/ibm--saas-console/24.d.ts +17 -0
  798. package/es/icons/ibm--saas-console/24.js +15 -0
  799. package/es/icons/ibm--saas-console/32.d.ts +17 -0
  800. package/es/icons/ibm--saas-console/32.js +15 -0
  801. package/es/icons/ibm--turbonomic/16.d.ts +17 -0
  802. package/es/icons/ibm--turbonomic/16.js +15 -0
  803. package/es/icons/ibm--turbonomic/20.d.ts +17 -0
  804. package/es/icons/ibm--turbonomic/20.js +15 -0
  805. package/es/icons/ibm--turbonomic/24.d.ts +17 -0
  806. package/es/icons/ibm--turbonomic/24.js +15 -0
  807. package/es/icons/ibm--turbonomic/32.d.ts +17 -0
  808. package/es/icons/ibm--turbonomic/32.js +15 -0
  809. package/es/icons/ibm--vpn-for-vpc/16.d.ts +17 -0
  810. package/es/icons/ibm--vpn-for-vpc/16.js +15 -0
  811. package/es/icons/ibm--vpn-for-vpc/20.d.ts +17 -0
  812. package/es/icons/ibm--vpn-for-vpc/20.js +15 -0
  813. package/es/icons/ibm--vpn-for-vpc/24.d.ts +17 -0
  814. package/es/icons/ibm--vpn-for-vpc/24.js +15 -0
  815. package/es/icons/ibm--vpn-for-vpc/32.d.ts +17 -0
  816. package/es/icons/ibm--vpn-for-vpc/32.js +15 -0
  817. package/es/icons/ibm--wazi-deploy/16.d.ts +17 -0
  818. package/es/icons/ibm--wazi-deploy/16.js +15 -0
  819. package/es/icons/ibm--wazi-deploy/20.d.ts +17 -0
  820. package/es/icons/ibm--wazi-deploy/20.js +15 -0
  821. package/es/icons/ibm--wazi-deploy/24.d.ts +17 -0
  822. package/es/icons/ibm--wazi-deploy/24.js +15 -0
  823. package/es/icons/ibm--wazi-deploy/32.d.ts +17 -0
  824. package/es/icons/ibm--wazi-deploy/32.js +15 -0
  825. package/es/icons/ibm-cloud--bare-metal-server/16.d.ts +17 -0
  826. package/es/icons/ibm-cloud--bare-metal-server/16.js +15 -0
  827. package/es/icons/ibm-cloud--bare-metal-server/20.d.ts +17 -0
  828. package/es/icons/ibm-cloud--bare-metal-server/20.js +15 -0
  829. package/es/icons/ibm-cloud--bare-metal-server/24.d.ts +17 -0
  830. package/es/icons/ibm-cloud--bare-metal-server/24.js +15 -0
  831. package/es/icons/ibm-cloud--bare-metal-server/32.d.ts +17 -0
  832. package/es/icons/ibm-cloud--bare-metal-server/32.js +15 -0
  833. package/es/icons/ibm-cloud--bare-metal-servers-vpc/16.d.ts +17 -0
  834. package/es/icons/ibm-cloud--bare-metal-servers-vpc/16.js +15 -0
  835. package/es/icons/ibm-cloud--bare-metal-servers-vpc/20.d.ts +17 -0
  836. package/es/icons/ibm-cloud--bare-metal-servers-vpc/20.js +15 -0
  837. package/es/icons/ibm-cloud--bare-metal-servers-vpc/24.d.ts +17 -0
  838. package/es/icons/ibm-cloud--bare-metal-servers-vpc/24.js +15 -0
  839. package/es/icons/ibm-cloud--bare-metal-servers-vpc/32.d.ts +17 -0
  840. package/es/icons/ibm-cloud--bare-metal-servers-vpc/32.js +15 -0
  841. package/es/icons/ibm-cloud--hpc/16.d.ts +17 -0
  842. package/es/icons/ibm-cloud--hpc/16.js +15 -0
  843. package/es/icons/ibm-cloud--hpc/20.d.ts +17 -0
  844. package/es/icons/ibm-cloud--hpc/20.js +15 -0
  845. package/es/icons/ibm-cloud--hpc/24.d.ts +17 -0
  846. package/es/icons/ibm-cloud--hpc/24.js +15 -0
  847. package/es/icons/ibm-cloud--hpc/32.d.ts +17 -0
  848. package/es/icons/ibm-cloud--hpc/32.js +15 -0
  849. package/es/icons/ibm-cloud--pal/16.js +1 -1
  850. package/es/icons/ibm-cloud--pal/20.js +1 -1
  851. package/es/icons/ibm-cloud--pal/24.js +1 -1
  852. package/es/icons/ibm-cloud--pal/32.js +1 -1
  853. package/es/icons/ibm-cloud--transit-gateway/16.js +1 -1
  854. package/es/icons/ibm-cloud--transit-gateway/20.js +1 -1
  855. package/es/icons/ibm-cloud--transit-gateway/24.js +1 -1
  856. package/es/icons/ibm-cloud--transit-gateway/32.js +1 -1
  857. package/es/icons/ibm-cloud--virtual-server-classic/16.d.ts +17 -0
  858. package/es/icons/ibm-cloud--virtual-server-classic/16.js +15 -0
  859. package/es/icons/ibm-cloud--virtual-server-classic/20.d.ts +17 -0
  860. package/es/icons/ibm-cloud--virtual-server-classic/20.js +15 -0
  861. package/es/icons/ibm-cloud--virtual-server-classic/24.d.ts +17 -0
  862. package/es/icons/ibm-cloud--virtual-server-classic/24.js +15 -0
  863. package/es/icons/ibm-cloud--virtual-server-classic/32.d.ts +17 -0
  864. package/es/icons/ibm-cloud--virtual-server-classic/32.js +15 -0
  865. package/es/icons/ibm-cloud--virtual-server-vpc/16.d.ts +17 -0
  866. package/es/icons/ibm-cloud--virtual-server-vpc/16.js +15 -0
  867. package/es/icons/ibm-cloud--virtual-server-vpc/20.d.ts +17 -0
  868. package/es/icons/ibm-cloud--virtual-server-vpc/20.js +15 -0
  869. package/es/icons/ibm-cloud--virtual-server-vpc/24.d.ts +17 -0
  870. package/es/icons/ibm-cloud--virtual-server-vpc/24.js +15 -0
  871. package/es/icons/ibm-cloud--virtual-server-vpc/32.d.ts +17 -0
  872. package/es/icons/ibm-cloud--virtual-server-vpc/32.js +15 -0
  873. package/es/icons/ibm-cloud--vpc/16.d.ts +17 -0
  874. package/es/icons/ibm-cloud--vpc/16.js +15 -0
  875. package/es/icons/ibm-cloud--vpc/20.d.ts +17 -0
  876. package/es/icons/ibm-cloud--vpc/20.js +15 -0
  877. package/es/icons/ibm-cloud--vpc/24.d.ts +17 -0
  878. package/es/icons/ibm-cloud--vpc/24.js +15 -0
  879. package/es/icons/ibm-cloud--vpc/32.d.ts +17 -0
  880. package/es/icons/ibm-cloud--vpc/32.js +15 -0
  881. package/es/icons/ibm-watsonx--assistant/16.d.ts +17 -0
  882. package/es/icons/ibm-watsonx--assistant/16.js +15 -0
  883. package/es/icons/ibm-watsonx--assistant/20.d.ts +17 -0
  884. package/es/icons/ibm-watsonx--assistant/20.js +15 -0
  885. package/es/icons/ibm-watsonx--assistant/24.d.ts +17 -0
  886. package/es/icons/ibm-watsonx--assistant/24.js +15 -0
  887. package/es/icons/ibm-watsonx--assistant/32.d.ts +17 -0
  888. package/es/icons/ibm-watsonx--assistant/32.js +15 -0
  889. package/es/icons/ibm-watsonx--code-assistant/16.d.ts +17 -0
  890. package/es/icons/ibm-watsonx--code-assistant/16.js +15 -0
  891. package/es/icons/ibm-watsonx--code-assistant/20.d.ts +17 -0
  892. package/es/icons/ibm-watsonx--code-assistant/20.js +15 -0
  893. package/es/icons/ibm-watsonx--code-assistant/24.d.ts +17 -0
  894. package/es/icons/ibm-watsonx--code-assistant/24.js +15 -0
  895. package/es/icons/ibm-watsonx--code-assistant/32.d.ts +17 -0
  896. package/es/icons/ibm-watsonx--code-assistant/32.js +15 -0
  897. package/es/icons/ibm-watsonx--code-assistant-for-z/16.d.ts +17 -0
  898. package/es/icons/ibm-watsonx--code-assistant-for-z/16.js +15 -0
  899. package/es/icons/ibm-watsonx--code-assistant-for-z/20.d.ts +17 -0
  900. package/es/icons/ibm-watsonx--code-assistant-for-z/20.js +15 -0
  901. package/es/icons/ibm-watsonx--code-assistant-for-z/24.d.ts +17 -0
  902. package/es/icons/ibm-watsonx--code-assistant-for-z/24.js +15 -0
  903. package/es/icons/ibm-watsonx--code-assistant-for-z/32.d.ts +17 -0
  904. package/es/icons/ibm-watsonx--code-assistant-for-z/32.js +15 -0
  905. package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/16.d.ts +17 -0
  906. package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/16.js +15 -0
  907. package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/20.d.ts +17 -0
  908. package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/20.js +15 -0
  909. package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/24.d.ts +17 -0
  910. package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/24.js +15 -0
  911. package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/32.d.ts +17 -0
  912. package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/32.js +15 -0
  913. package/es/icons/ibm-watsonx--orchestrate/16.d.ts +17 -0
  914. package/es/icons/ibm-watsonx--orchestrate/16.js +15 -0
  915. package/es/icons/ibm-watsonx--orchestrate/20.d.ts +17 -0
  916. package/es/icons/ibm-watsonx--orchestrate/20.js +15 -0
  917. package/es/icons/ibm-watsonx--orchestrate/24.d.ts +17 -0
  918. package/es/icons/ibm-watsonx--orchestrate/24.js +15 -0
  919. package/es/icons/ibm-watsonx--orchestrate/32.d.ts +17 -0
  920. package/es/icons/ibm-watsonx--orchestrate/32.js +15 -0
  921. package/es/icons/ibm-z--processor-capacity-reference/16.d.ts +17 -0
  922. package/es/icons/ibm-z--processor-capacity-reference/16.js +15 -0
  923. package/es/icons/ibm-z--processor-capacity-reference/20.d.ts +17 -0
  924. package/es/icons/ibm-z--processor-capacity-reference/20.js +15 -0
  925. package/es/icons/ibm-z--processor-capacity-reference/24.d.ts +17 -0
  926. package/es/icons/ibm-z--processor-capacity-reference/24.js +15 -0
  927. package/es/icons/ibm-z--processor-capacity-reference/32.d.ts +17 -0
  928. package/es/icons/ibm-z--processor-capacity-reference/32.js +15 -0
  929. package/es/icons/ibm-z-os/16.d.ts +17 -0
  930. package/es/icons/ibm-z-os/16.js +15 -0
  931. package/es/icons/ibm-z-os/20.d.ts +17 -0
  932. package/es/icons/ibm-z-os/20.js +15 -0
  933. package/es/icons/ibm-z-os/24.d.ts +17 -0
  934. package/es/icons/ibm-z-os/24.js +15 -0
  935. package/es/icons/ibm-z-os/32.d.ts +17 -0
  936. package/es/icons/ibm-z-os/32.js +15 -0
  937. package/es/icons/infinity/16.d.ts +17 -0
  938. package/es/icons/infinity/16.js +15 -0
  939. package/es/icons/infinity/20.d.ts +17 -0
  940. package/es/icons/infinity/20.js +15 -0
  941. package/es/icons/infinity/24.d.ts +17 -0
  942. package/es/icons/infinity/24.js +15 -0
  943. package/es/icons/infinity/32.d.ts +17 -0
  944. package/es/icons/infinity/32.js +15 -0
  945. package/es/icons/js-error/16.d.ts +17 -0
  946. package/es/icons/js-error/16.js +15 -0
  947. package/es/icons/js-error/20.d.ts +17 -0
  948. package/es/icons/js-error/20.js +15 -0
  949. package/es/icons/js-error/24.d.ts +17 -0
  950. package/es/icons/js-error/24.js +15 -0
  951. package/es/icons/js-error/32.d.ts +17 -0
  952. package/es/icons/js-error/32.js +15 -0
  953. package/es/icons/kubernetes--ip-address/16.d.ts +17 -0
  954. package/es/icons/kubernetes--ip-address/16.js +15 -0
  955. package/es/icons/kubernetes--ip-address/20.d.ts +17 -0
  956. package/es/icons/kubernetes--ip-address/20.js +15 -0
  957. package/es/icons/kubernetes--ip-address/24.d.ts +17 -0
  958. package/es/icons/kubernetes--ip-address/24.js +15 -0
  959. package/es/icons/kubernetes--ip-address/32.d.ts +17 -0
  960. package/es/icons/kubernetes--ip-address/32.js +15 -0
  961. package/es/icons/kubernetes--pod/16.d.ts +17 -0
  962. package/es/icons/kubernetes--pod/16.js +15 -0
  963. package/es/icons/kubernetes--pod/20.d.ts +17 -0
  964. package/es/icons/kubernetes--pod/20.js +15 -0
  965. package/es/icons/kubernetes--pod/24.d.ts +17 -0
  966. package/es/icons/kubernetes--pod/24.js +15 -0
  967. package/es/icons/kubernetes--pod/32.d.ts +17 -0
  968. package/es/icons/kubernetes--pod/32.js +15 -0
  969. package/es/icons/letter--Aa--large/16.d.ts +17 -0
  970. package/es/icons/letter--Aa--large/16.js +15 -0
  971. package/es/icons/letter--Aa--large/20.d.ts +17 -0
  972. package/es/icons/letter--Aa--large/20.js +15 -0
  973. package/es/icons/letter--Aa--large/24.d.ts +17 -0
  974. package/es/icons/letter--Aa--large/24.js +15 -0
  975. package/es/icons/letter--Aa--large/32.d.ts +17 -0
  976. package/es/icons/letter--Aa--large/32.js +15 -0
  977. package/es/icons/logo--delicious/16.d.ts +17 -0
  978. package/es/icons/logo--delicious/16.js +15 -0
  979. package/es/icons/logo--delicious/20.d.ts +17 -0
  980. package/es/icons/logo--delicious/20.js +15 -0
  981. package/es/icons/logo--delicious/24.d.ts +17 -0
  982. package/es/icons/logo--delicious/24.js +15 -0
  983. package/es/icons/logo--delicious/32.d.ts +17 -0
  984. package/es/icons/logo--delicious/32.js +15 -0
  985. package/es/icons/logo--gitlab/16.d.ts +17 -0
  986. package/es/icons/logo--gitlab/16.js +15 -0
  987. package/es/icons/logo--gitlab/20.d.ts +17 -0
  988. package/es/icons/logo--gitlab/20.js +15 -0
  989. package/es/icons/logo--gitlab/24.d.ts +17 -0
  990. package/es/icons/logo--gitlab/24.js +15 -0
  991. package/es/icons/logo--gitlab/32.d.ts +17 -0
  992. package/es/icons/logo--gitlab/32.js +15 -0
  993. package/es/icons/logo--google/16.d.ts +17 -0
  994. package/es/icons/logo--google/16.js +15 -0
  995. package/es/icons/logo--google/20.d.ts +17 -0
  996. package/es/icons/logo--google/20.js +15 -0
  997. package/es/icons/logo--google/24.d.ts +17 -0
  998. package/es/icons/logo--google/24.js +15 -0
  999. package/es/icons/logo--google/32.d.ts +17 -0
  1000. package/es/icons/logo--google/32.js +15 -0
  1001. package/es/icons/logo--stumbleupon/16.d.ts +17 -0
  1002. package/es/icons/logo--stumbleupon/16.js +15 -0
  1003. package/es/icons/logo--stumbleupon/20.d.ts +17 -0
  1004. package/es/icons/logo--stumbleupon/20.js +15 -0
  1005. package/es/icons/logo--stumbleupon/24.d.ts +17 -0
  1006. package/es/icons/logo--stumbleupon/24.js +15 -0
  1007. package/es/icons/logo--stumbleupon/32.d.ts +17 -0
  1008. package/es/icons/logo--stumbleupon/32.js +15 -0
  1009. package/es/icons/logo--x/16.d.ts +17 -0
  1010. package/es/icons/logo--x/16.js +15 -0
  1011. package/es/icons/logo--x/20.d.ts +17 -0
  1012. package/es/icons/logo--x/20.js +15 -0
  1013. package/es/icons/logo--x/24.d.ts +17 -0
  1014. package/es/icons/logo--x/24.js +15 -0
  1015. package/es/icons/logo--x/32.d.ts +17 -0
  1016. package/es/icons/logo--x/32.js +15 -0
  1017. package/es/icons/mammogram--stacked/16.d.ts +17 -0
  1018. package/es/icons/mammogram--stacked/16.js +15 -0
  1019. package/es/icons/mammogram--stacked/20.d.ts +17 -0
  1020. package/es/icons/mammogram--stacked/20.js +15 -0
  1021. package/es/icons/mammogram--stacked/24.d.ts +17 -0
  1022. package/es/icons/mammogram--stacked/24.js +15 -0
  1023. package/es/icons/mammogram--stacked/32.d.ts +17 -0
  1024. package/es/icons/mammogram--stacked/32.js +15 -0
  1025. package/es/icons/misuse--alt/16.d.ts +17 -0
  1026. package/es/icons/misuse--alt/16.js +15 -0
  1027. package/es/icons/misuse--alt/20.d.ts +17 -0
  1028. package/es/icons/misuse--alt/20.js +15 -0
  1029. package/es/icons/misuse--alt/24.d.ts +17 -0
  1030. package/es/icons/misuse--alt/24.js +15 -0
  1031. package/es/icons/misuse--alt/32.d.ts +17 -0
  1032. package/es/icons/misuse--alt/32.js +15 -0
  1033. package/es/icons/mobile--crash/16.d.ts +17 -0
  1034. package/es/icons/mobile--crash/16.js +15 -0
  1035. package/es/icons/mobile--crash/20.d.ts +17 -0
  1036. package/es/icons/mobile--crash/20.js +15 -0
  1037. package/es/icons/mobile--crash/24.d.ts +17 -0
  1038. package/es/icons/mobile--crash/24.js +15 -0
  1039. package/es/icons/mobile--crash/32.d.ts +17 -0
  1040. package/es/icons/mobile--crash/32.js +15 -0
  1041. package/es/icons/mobile--event/16.d.ts +17 -0
  1042. package/es/icons/mobile--event/16.js +15 -0
  1043. package/es/icons/mobile--event/20.d.ts +17 -0
  1044. package/es/icons/mobile--event/20.js +15 -0
  1045. package/es/icons/mobile--event/24.d.ts +17 -0
  1046. package/es/icons/mobile--event/24.js +15 -0
  1047. package/es/icons/mobile--event/32.d.ts +17 -0
  1048. package/es/icons/mobile--event/32.js +15 -0
  1049. package/es/icons/mobile--request/16.d.ts +17 -0
  1050. package/es/icons/mobile--request/16.js +15 -0
  1051. package/es/icons/mobile--request/20.d.ts +17 -0
  1052. package/es/icons/mobile--request/20.js +15 -0
  1053. package/es/icons/mobile--request/24.d.ts +17 -0
  1054. package/es/icons/mobile--request/24.js +15 -0
  1055. package/es/icons/mobile--request/32.d.ts +17 -0
  1056. package/es/icons/mobile--request/32.js +15 -0
  1057. package/es/icons/mobile--session/16.d.ts +17 -0
  1058. package/es/icons/mobile--session/16.js +15 -0
  1059. package/es/icons/mobile--session/20.d.ts +17 -0
  1060. package/es/icons/mobile--session/20.js +15 -0
  1061. package/es/icons/mobile--session/24.d.ts +17 -0
  1062. package/es/icons/mobile--session/24.js +15 -0
  1063. package/es/icons/mobile--session/32.d.ts +17 -0
  1064. package/es/icons/mobile--session/32.js +15 -0
  1065. package/es/icons/mobile--view/16.d.ts +17 -0
  1066. package/es/icons/mobile--view/16.js +15 -0
  1067. package/es/icons/mobile--view/20.d.ts +17 -0
  1068. package/es/icons/mobile--view/20.js +15 -0
  1069. package/es/icons/mobile--view/24.d.ts +17 -0
  1070. package/es/icons/mobile--view/24.js +15 -0
  1071. package/es/icons/mobile--view/32.d.ts +17 -0
  1072. package/es/icons/mobile--view/32.js +15 -0
  1073. package/es/icons/mobile--view-orientation/16.d.ts +17 -0
  1074. package/es/icons/mobile--view-orientation/16.js +15 -0
  1075. package/es/icons/mobile--view-orientation/20.d.ts +17 -0
  1076. package/es/icons/mobile--view-orientation/20.js +15 -0
  1077. package/es/icons/mobile--view-orientation/24.d.ts +17 -0
  1078. package/es/icons/mobile--view-orientation/24.js +15 -0
  1079. package/es/icons/mobile--view-orientation/32.d.ts +17 -0
  1080. package/es/icons/mobile--view-orientation/32.js +15 -0
  1081. package/es/icons/model--tuned/16.d.ts +17 -0
  1082. package/es/icons/model--tuned/16.js +15 -0
  1083. package/es/icons/model--tuned/20.d.ts +17 -0
  1084. package/es/icons/model--tuned/20.js +15 -0
  1085. package/es/icons/model--tuned/24.d.ts +17 -0
  1086. package/es/icons/model--tuned/24.js +15 -0
  1087. package/es/icons/model--tuned/32.d.ts +17 -0
  1088. package/es/icons/model--tuned/32.js +15 -0
  1089. package/es/icons/mysql/16.d.ts +17 -0
  1090. package/es/icons/mysql/16.js +15 -0
  1091. package/es/icons/mysql/20.d.ts +17 -0
  1092. package/es/icons/mysql/20.js +15 -0
  1093. package/es/icons/mysql/24.d.ts +17 -0
  1094. package/es/icons/mysql/24.js +15 -0
  1095. package/es/icons/mysql/32.d.ts +17 -0
  1096. package/es/icons/mysql/32.js +15 -0
  1097. package/es/icons/network-interface/16.d.ts +17 -0
  1098. package/es/icons/network-interface/16.js +15 -0
  1099. package/es/icons/network-interface/20.d.ts +17 -0
  1100. package/es/icons/network-interface/20.js +15 -0
  1101. package/es/icons/network-interface/24.d.ts +17 -0
  1102. package/es/icons/network-interface/24.js +15 -0
  1103. package/es/icons/network-interface/32.d.ts +17 -0
  1104. package/es/icons/network-interface/32.js +15 -0
  1105. package/es/icons/platforms/16.d.ts +17 -0
  1106. package/es/icons/platforms/16.js +15 -0
  1107. package/es/icons/platforms/20.d.ts +17 -0
  1108. package/es/icons/platforms/20.js +15 -0
  1109. package/es/icons/platforms/24.d.ts +17 -0
  1110. package/es/icons/platforms/24.js +15 -0
  1111. package/es/icons/platforms/32.d.ts +17 -0
  1112. package/es/icons/platforms/32.js +15 -0
  1113. package/es/icons/process/16.d.ts +17 -0
  1114. package/es/icons/process/16.js +15 -0
  1115. package/es/icons/process/20.d.ts +17 -0
  1116. package/es/icons/process/20.js +15 -0
  1117. package/es/icons/process/24.d.ts +17 -0
  1118. package/es/icons/process/24.js +15 -0
  1119. package/es/icons/process/32.d.ts +17 -0
  1120. package/es/icons/process/32.js +15 -0
  1121. package/es/icons/process-automate/16.d.ts +17 -0
  1122. package/es/icons/process-automate/16.js +15 -0
  1123. package/es/icons/process-automate/20.d.ts +17 -0
  1124. package/es/icons/process-automate/20.js +15 -0
  1125. package/es/icons/process-automate/24.d.ts +17 -0
  1126. package/es/icons/process-automate/24.js +15 -0
  1127. package/es/icons/process-automate/32.d.ts +17 -0
  1128. package/es/icons/process-automate/32.js +15 -0
  1129. package/es/icons/prompt-session/16.d.ts +17 -0
  1130. package/es/icons/prompt-session/16.js +15 -0
  1131. package/es/icons/prompt-session/20.d.ts +17 -0
  1132. package/es/icons/prompt-session/20.js +15 -0
  1133. package/es/icons/prompt-session/24.d.ts +17 -0
  1134. package/es/icons/prompt-session/24.js +15 -0
  1135. package/es/icons/prompt-session/32.d.ts +17 -0
  1136. package/es/icons/prompt-session/32.js +15 -0
  1137. package/es/icons/prompt-template/16.d.ts +17 -0
  1138. package/es/icons/prompt-template/16.js +15 -0
  1139. package/es/icons/prompt-template/20.d.ts +17 -0
  1140. package/es/icons/prompt-template/20.js +15 -0
  1141. package/es/icons/prompt-template/24.d.ts +17 -0
  1142. package/es/icons/prompt-template/24.js +15 -0
  1143. package/es/icons/prompt-template/32.d.ts +17 -0
  1144. package/es/icons/prompt-template/32.js +15 -0
  1145. package/es/icons/redo/16.js +1 -1
  1146. package/es/icons/redo/20.js +1 -1
  1147. package/es/icons/redo/24.js +1 -1
  1148. package/es/icons/research--bloch-sphere/16.d.ts +17 -0
  1149. package/es/icons/research--bloch-sphere/16.js +15 -0
  1150. package/es/icons/research--bloch-sphere/20.d.ts +17 -0
  1151. package/es/icons/research--bloch-sphere/20.js +15 -0
  1152. package/es/icons/research--bloch-sphere/24.d.ts +17 -0
  1153. package/es/icons/research--bloch-sphere/24.js +15 -0
  1154. package/es/icons/research--bloch-sphere/32.d.ts +17 -0
  1155. package/es/icons/research--bloch-sphere/32.js +15 -0
  1156. package/es/icons/research--hinton-plot/16.d.ts +17 -0
  1157. package/es/icons/research--hinton-plot/16.js +15 -0
  1158. package/es/icons/research--hinton-plot/20.d.ts +17 -0
  1159. package/es/icons/research--hinton-plot/20.js +15 -0
  1160. package/es/icons/research--hinton-plot/24.d.ts +17 -0
  1161. package/es/icons/research--hinton-plot/24.js +15 -0
  1162. package/es/icons/research--hinton-plot/32.d.ts +17 -0
  1163. package/es/icons/research--hinton-plot/32.js +15 -0
  1164. package/es/icons/research--matrix/16.d.ts +17 -0
  1165. package/es/icons/research--matrix/16.js +15 -0
  1166. package/es/icons/research--matrix/20.d.ts +17 -0
  1167. package/es/icons/research--matrix/20.js +15 -0
  1168. package/es/icons/research--matrix/24.d.ts +17 -0
  1169. package/es/icons/research--matrix/24.js +15 -0
  1170. package/es/icons/research--matrix/32.d.ts +17 -0
  1171. package/es/icons/research--matrix/32.js +15 -0
  1172. package/es/icons/return/16.d.ts +17 -0
  1173. package/es/icons/return/16.js +15 -0
  1174. package/es/icons/return/20.d.ts +17 -0
  1175. package/es/icons/return/20.js +15 -0
  1176. package/es/icons/return/24.d.ts +17 -0
  1177. package/es/icons/return/24.js +15 -0
  1178. package/es/icons/return/32.d.ts +17 -0
  1179. package/es/icons/return/32.js +15 -0
  1180. package/es/icons/running/16.d.ts +17 -0
  1181. package/es/icons/running/16.js +15 -0
  1182. package/es/icons/running/20.d.ts +17 -0
  1183. package/es/icons/running/20.js +15 -0
  1184. package/es/icons/running/24.d.ts +17 -0
  1185. package/es/icons/running/24.js +15 -0
  1186. package/es/icons/running/32.d.ts +17 -0
  1187. package/es/icons/running/32.js +15 -0
  1188. package/es/icons/sales-ops/16.d.ts +17 -0
  1189. package/es/icons/sales-ops/16.js +15 -0
  1190. package/es/icons/sales-ops/20.d.ts +17 -0
  1191. package/es/icons/sales-ops/20.js +15 -0
  1192. package/es/icons/sales-ops/24.d.ts +17 -0
  1193. package/es/icons/sales-ops/24.js +15 -0
  1194. package/es/icons/sales-ops/32.d.ts +17 -0
  1195. package/es/icons/sales-ops/32.js +15 -0
  1196. package/es/icons/service-levels/16.d.ts +17 -0
  1197. package/es/icons/service-levels/16.js +15 -0
  1198. package/es/icons/service-levels/20.d.ts +17 -0
  1199. package/es/icons/service-levels/20.js +15 -0
  1200. package/es/icons/service-levels/24.d.ts +17 -0
  1201. package/es/icons/service-levels/24.js +15 -0
  1202. package/es/icons/service-levels/32.d.ts +17 -0
  1203. package/es/icons/service-levels/32.js +15 -0
  1204. package/es/icons/settings--edit/16.d.ts +17 -0
  1205. package/es/icons/settings--edit/16.js +15 -0
  1206. package/es/icons/settings--edit/20.d.ts +17 -0
  1207. package/es/icons/settings--edit/20.js +15 -0
  1208. package/es/icons/settings--edit/24.d.ts +17 -0
  1209. package/es/icons/settings--edit/24.js +15 -0
  1210. package/es/icons/settings--edit/32.d.ts +17 -0
  1211. package/es/icons/settings--edit/32.js +15 -0
  1212. package/es/icons/subdirectory/16.d.ts +17 -0
  1213. package/es/icons/subdirectory/16.js +15 -0
  1214. package/es/icons/subdirectory/20.d.ts +17 -0
  1215. package/es/icons/subdirectory/20.js +15 -0
  1216. package/es/icons/subdirectory/24.d.ts +17 -0
  1217. package/es/icons/subdirectory/24.js +15 -0
  1218. package/es/icons/subdirectory/32.d.ts +17 -0
  1219. package/es/icons/subdirectory/32.js +15 -0
  1220. package/es/icons/subtract--filled/16.d.ts +17 -0
  1221. package/es/icons/subtract--filled/16.js +15 -0
  1222. package/es/icons/subtract--filled/20.d.ts +17 -0
  1223. package/es/icons/subtract--filled/20.js +15 -0
  1224. package/es/icons/subtract--filled/24.d.ts +17 -0
  1225. package/es/icons/subtract--filled/24.js +15 -0
  1226. package/es/icons/subtract--filled/32.d.ts +17 -0
  1227. package/es/icons/subtract--filled/32.js +15 -0
  1228. package/es/icons/subtract--large/16.d.ts +17 -0
  1229. package/es/icons/subtract--large/16.js +15 -0
  1230. package/es/icons/subtract--large/20.d.ts +17 -0
  1231. package/es/icons/subtract--large/20.js +15 -0
  1232. package/es/icons/subtract--large/24.d.ts +17 -0
  1233. package/es/icons/subtract--large/24.js +15 -0
  1234. package/es/icons/subtract--large/32.d.ts +17 -0
  1235. package/es/icons/subtract--large/32.js +15 -0
  1236. package/es/icons/sunny/16.d.ts +17 -0
  1237. package/es/icons/sunny/16.js +15 -0
  1238. package/es/icons/sunny/20.d.ts +17 -0
  1239. package/es/icons/sunny/20.js +15 -0
  1240. package/es/icons/sunny/24.d.ts +17 -0
  1241. package/es/icons/sunny/24.js +15 -0
  1242. package/es/icons/sunny/32.d.ts +17 -0
  1243. package/es/icons/sunny/32.js +15 -0
  1244. package/es/icons/sustainability/16.d.ts +17 -0
  1245. package/es/icons/sustainability/16.js +15 -0
  1246. package/es/icons/sustainability/20.d.ts +17 -0
  1247. package/es/icons/sustainability/20.js +15 -0
  1248. package/es/icons/sustainability/24.d.ts +17 -0
  1249. package/es/icons/sustainability/24.js +15 -0
  1250. package/es/icons/sustainability/32.d.ts +17 -0
  1251. package/es/icons/sustainability/32.js +15 -0
  1252. package/es/icons/text--long-paragraph/16.d.ts +17 -0
  1253. package/es/icons/text--long-paragraph/16.js +15 -0
  1254. package/es/icons/text--long-paragraph/20.d.ts +17 -0
  1255. package/es/icons/text--long-paragraph/20.js +15 -0
  1256. package/es/icons/text--long-paragraph/24.d.ts +17 -0
  1257. package/es/icons/text--long-paragraph/24.js +15 -0
  1258. package/es/icons/text--long-paragraph/32.d.ts +17 -0
  1259. package/es/icons/text--long-paragraph/32.js +15 -0
  1260. package/es/icons/text--short-paragraph/16.d.ts +17 -0
  1261. package/es/icons/text--short-paragraph/16.js +15 -0
  1262. package/es/icons/text--short-paragraph/20.d.ts +17 -0
  1263. package/es/icons/text--short-paragraph/20.js +15 -0
  1264. package/es/icons/text--short-paragraph/24.d.ts +17 -0
  1265. package/es/icons/text--short-paragraph/24.js +15 -0
  1266. package/es/icons/text--short-paragraph/32.d.ts +17 -0
  1267. package/es/icons/text--short-paragraph/32.js +15 -0
  1268. package/es/icons/time--filled/16.d.ts +17 -0
  1269. package/es/icons/time--filled/16.js +15 -0
  1270. package/es/icons/time--filled/20.d.ts +17 -0
  1271. package/es/icons/time--filled/20.js +15 -0
  1272. package/es/icons/time--filled/24.d.ts +17 -0
  1273. package/es/icons/time--filled/24.js +15 -0
  1274. package/es/icons/time--filled/32.d.ts +17 -0
  1275. package/es/icons/time--filled/32.js +15 -0
  1276. package/es/icons/tour/16.d.ts +17 -0
  1277. package/es/icons/tour/16.js +15 -0
  1278. package/es/icons/tour/20.d.ts +17 -0
  1279. package/es/icons/tour/20.js +15 -0
  1280. package/es/icons/tour/24.d.ts +17 -0
  1281. package/es/icons/tour/24.js +15 -0
  1282. package/es/icons/tour/32.d.ts +17 -0
  1283. package/es/icons/tour/32.js +15 -0
  1284. package/es/icons/tuning/16.d.ts +17 -0
  1285. package/es/icons/tuning/16.js +15 -0
  1286. package/es/icons/tuning/20.d.ts +17 -0
  1287. package/es/icons/tuning/20.js +15 -0
  1288. package/es/icons/tuning/24.d.ts +17 -0
  1289. package/es/icons/tuning/24.js +15 -0
  1290. package/es/icons/tuning/32.d.ts +17 -0
  1291. package/es/icons/tuning/32.js +15 -0
  1292. package/es/icons/undefined/index.d.ts +17 -0
  1293. package/es/icons/undefined/index.js +15 -0
  1294. package/es/icons/undo/16.js +1 -1
  1295. package/es/icons/undo/20.js +1 -1
  1296. package/es/icons/undo/24.js +1 -1
  1297. package/es/icons/upstream/16.d.ts +17 -0
  1298. package/es/icons/upstream/16.js +15 -0
  1299. package/es/icons/upstream/20.d.ts +17 -0
  1300. package/es/icons/upstream/20.js +15 -0
  1301. package/es/icons/upstream/24.d.ts +17 -0
  1302. package/es/icons/upstream/24.js +15 -0
  1303. package/es/icons/upstream/32.d.ts +17 -0
  1304. package/es/icons/upstream/32.js +15 -0
  1305. package/es/icons/vegetation--encroachment/16.d.ts +17 -0
  1306. package/es/icons/vegetation--encroachment/16.js +15 -0
  1307. package/es/icons/vegetation--encroachment/20.d.ts +17 -0
  1308. package/es/icons/vegetation--encroachment/20.js +15 -0
  1309. package/es/icons/vegetation--encroachment/24.d.ts +17 -0
  1310. package/es/icons/vegetation--encroachment/24.js +15 -0
  1311. package/es/icons/vegetation--encroachment/32.d.ts +17 -0
  1312. package/es/icons/vegetation--encroachment/32.js +15 -0
  1313. package/es/icons/vegetation--height/16.d.ts +17 -0
  1314. package/es/icons/vegetation--height/16.js +15 -0
  1315. package/es/icons/vegetation--height/20.d.ts +17 -0
  1316. package/es/icons/vegetation--height/20.js +15 -0
  1317. package/es/icons/vegetation--height/24.d.ts +17 -0
  1318. package/es/icons/vegetation--height/24.js +15 -0
  1319. package/es/icons/vegetation--height/32.d.ts +17 -0
  1320. package/es/icons/vegetation--height/32.js +15 -0
  1321. package/es/icons/video-player/16.d.ts +17 -0
  1322. package/es/icons/video-player/16.js +15 -0
  1323. package/es/icons/video-player/20.d.ts +17 -0
  1324. package/es/icons/video-player/20.js +15 -0
  1325. package/es/icons/video-player/24.d.ts +17 -0
  1326. package/es/icons/video-player/24.js +15 -0
  1327. package/es/icons/video-player/32.d.ts +17 -0
  1328. package/es/icons/video-player/32.js +15 -0
  1329. package/es/icons/warning--diamond/16.d.ts +17 -0
  1330. package/es/icons/warning--diamond/16.js +15 -0
  1331. package/es/icons/warning--diamond/20.d.ts +17 -0
  1332. package/es/icons/warning--diamond/20.js +15 -0
  1333. package/es/icons/warning--diamond/24.d.ts +17 -0
  1334. package/es/icons/warning--diamond/24.js +15 -0
  1335. package/es/icons/warning--diamond/32.d.ts +17 -0
  1336. package/es/icons/warning--diamond/32.js +15 -0
  1337. package/es/icons/warning--multiple/16.d.ts +17 -0
  1338. package/es/icons/warning--multiple/16.js +15 -0
  1339. package/es/icons/warning--multiple/20.d.ts +17 -0
  1340. package/es/icons/warning--multiple/20.js +15 -0
  1341. package/es/icons/warning--multiple/24.d.ts +17 -0
  1342. package/es/icons/warning--multiple/24.js +15 -0
  1343. package/es/icons/warning--multiple/32.d.ts +17 -0
  1344. package/es/icons/warning--multiple/32.js +15 -0
  1345. package/es/icons/watson-health/edit-filter/16.d.ts +17 -0
  1346. package/es/icons/watson-health/edit-filter/16.js +15 -0
  1347. package/es/icons/watson-health/edit-filter/20.d.ts +17 -0
  1348. package/es/icons/watson-health/edit-filter/20.js +15 -0
  1349. package/es/icons/watson-health/edit-filter/24.d.ts +17 -0
  1350. package/es/icons/watson-health/edit-filter/24.js +15 -0
  1351. package/es/icons/watson-health/edit-filter/32.d.ts +17 -0
  1352. package/es/icons/watson-health/edit-filter/32.js +15 -0
  1353. package/es/icons/watsonx/16.d.ts +17 -0
  1354. package/es/icons/watsonx/16.js +15 -0
  1355. package/es/icons/watsonx/20.d.ts +17 -0
  1356. package/es/icons/watsonx/20.js +15 -0
  1357. package/es/icons/watsonx/24.d.ts +17 -0
  1358. package/es/icons/watsonx/24.js +15 -0
  1359. package/es/icons/watsonx/32.d.ts +17 -0
  1360. package/es/icons/watsonx/32.js +15 -0
  1361. package/es/icons/watsonx-ai/16.d.ts +17 -0
  1362. package/es/icons/watsonx-ai/16.js +15 -0
  1363. package/es/icons/watsonx-ai/20.d.ts +17 -0
  1364. package/es/icons/watsonx-ai/20.js +15 -0
  1365. package/es/icons/watsonx-ai/24.d.ts +17 -0
  1366. package/es/icons/watsonx-ai/24.js +15 -0
  1367. package/es/icons/watsonx-ai/32.d.ts +17 -0
  1368. package/es/icons/watsonx-ai/32.js +15 -0
  1369. package/es/icons/watsonx-data/16.d.ts +17 -0
  1370. package/es/icons/watsonx-data/16.js +15 -0
  1371. package/es/icons/watsonx-data/20.d.ts +17 -0
  1372. package/es/icons/watsonx-data/20.js +15 -0
  1373. package/es/icons/watsonx-data/24.d.ts +17 -0
  1374. package/es/icons/watsonx-data/24.js +15 -0
  1375. package/es/icons/watsonx-data/32.d.ts +17 -0
  1376. package/es/icons/watsonx-data/32.js +15 -0
  1377. package/es/icons/watsonx-governance/16.d.ts +17 -0
  1378. package/es/icons/watsonx-governance/16.js +15 -0
  1379. package/es/icons/watsonx-governance/20.d.ts +17 -0
  1380. package/es/icons/watsonx-governance/20.js +15 -0
  1381. package/es/icons/watsonx-governance/24.d.ts +17 -0
  1382. package/es/icons/watsonx-governance/24.js +15 -0
  1383. package/es/icons/watsonx-governance/32.d.ts +17 -0
  1384. package/es/icons/watsonx-governance/32.js +15 -0
  1385. package/es/icons/web-services--cluster/16.d.ts +17 -0
  1386. package/es/icons/web-services--cluster/16.js +15 -0
  1387. package/es/icons/web-services--cluster/20.d.ts +17 -0
  1388. package/es/icons/web-services--cluster/20.js +15 -0
  1389. package/es/icons/web-services--cluster/24.d.ts +17 -0
  1390. package/es/icons/web-services--cluster/24.js +15 -0
  1391. package/es/icons/web-services--cluster/32.d.ts +17 -0
  1392. package/es/icons/web-services--cluster/32.js +15 -0
  1393. package/es/icons/web-services--container/16.d.ts +17 -0
  1394. package/es/icons/web-services--container/16.js +15 -0
  1395. package/es/icons/web-services--container/20.d.ts +17 -0
  1396. package/es/icons/web-services--container/20.js +15 -0
  1397. package/es/icons/web-services--container/24.d.ts +17 -0
  1398. package/es/icons/web-services--container/24.js +15 -0
  1399. package/es/icons/web-services--container/32.d.ts +17 -0
  1400. package/es/icons/web-services--container/32.js +15 -0
  1401. package/es/icons/web-services--definition/16.d.ts +17 -0
  1402. package/es/icons/web-services--definition/16.js +15 -0
  1403. package/es/icons/web-services--definition/20.d.ts +17 -0
  1404. package/es/icons/web-services--definition/20.js +15 -0
  1405. package/es/icons/web-services--definition/24.d.ts +17 -0
  1406. package/es/icons/web-services--definition/24.js +15 -0
  1407. package/es/icons/web-services--definition/32.d.ts +17 -0
  1408. package/es/icons/web-services--definition/32.js +15 -0
  1409. package/es/icons/web-services--service/16.d.ts +17 -0
  1410. package/es/icons/web-services--service/16.js +15 -0
  1411. package/es/icons/web-services--service/20.d.ts +17 -0
  1412. package/es/icons/web-services--service/20.js +15 -0
  1413. package/es/icons/web-services--service/24.d.ts +17 -0
  1414. package/es/icons/web-services--service/24.js +15 -0
  1415. package/es/icons/web-services--service/32.d.ts +17 -0
  1416. package/es/icons/web-services--service/32.js +15 -0
  1417. package/es/icons/web-services--task/16.d.ts +17 -0
  1418. package/es/icons/web-services--task/16.js +15 -0
  1419. package/es/icons/web-services--task/20.d.ts +17 -0
  1420. package/es/icons/web-services--task/20.js +15 -0
  1421. package/es/icons/web-services--task/24.d.ts +17 -0
  1422. package/es/icons/web-services--task/24.js +15 -0
  1423. package/es/icons/web-services--task/32.d.ts +17 -0
  1424. package/es/icons/web-services--task/32.js +15 -0
  1425. package/es/icons/web-services--task-definition-version/16.d.ts +17 -0
  1426. package/es/icons/web-services--task-definition-version/16.js +15 -0
  1427. package/es/icons/web-services--task-definition-version/20.d.ts +17 -0
  1428. package/es/icons/web-services--task-definition-version/20.js +15 -0
  1429. package/es/icons/web-services--task-definition-version/24.d.ts +17 -0
  1430. package/es/icons/web-services--task-definition-version/24.js +15 -0
  1431. package/es/icons/web-services--task-definition-version/32.d.ts +17 -0
  1432. package/es/icons/web-services--task-definition-version/32.js +15 -0
  1433. package/lib/components/accordion/defs.js +3 -6
  1434. package/lib/components/accordion/defs.js.map +1 -1
  1435. package/lib/components/button/defs.js +5 -10
  1436. package/lib/components/button/defs.js.map +1 -1
  1437. package/lib/components/code-snippet/defs.js +1 -2
  1438. package/lib/components/code-snippet/defs.js.map +1 -1
  1439. package/lib/components/content-switcher/defs.js +2 -4
  1440. package/lib/components/content-switcher/defs.js.map +1 -1
  1441. package/lib/components/data-table/defs.js +4 -8
  1442. package/lib/components/data-table/defs.js.map +1 -1
  1443. package/lib/components/date-picker/defs.js +1 -2
  1444. package/lib/components/date-picker/defs.js.map +1 -1
  1445. package/lib/components/dropdown/defs.js +5 -10
  1446. package/lib/components/dropdown/defs.js.map +1 -1
  1447. package/lib/components/file-uploader/defs.js +2 -4
  1448. package/lib/components/file-uploader/defs.js.map +1 -1
  1449. package/lib/components/floating-menu/defs.js +2 -4
  1450. package/lib/components/floating-menu/defs.js.map +1 -1
  1451. package/lib/components/icon-button/defs.js +2 -4
  1452. package/lib/components/icon-button/defs.js.map +1 -1
  1453. package/lib/components/inline-loading/defs.js +1 -2
  1454. package/lib/components/inline-loading/defs.js.map +1 -1
  1455. package/lib/components/loading/defs.js +1 -2
  1456. package/lib/components/loading/defs.js.map +1 -1
  1457. package/lib/components/modal/defs.js +1 -2
  1458. package/lib/components/modal/defs.js.map +1 -1
  1459. package/lib/components/multi-select/defs.js +1 -2
  1460. package/lib/components/multi-select/defs.js.map +1 -1
  1461. package/lib/components/notification/defs.js +2 -4
  1462. package/lib/components/notification/defs.js.map +1 -1
  1463. package/lib/components/number-input/defs.js +1 -2
  1464. package/lib/components/number-input/defs.js.map +1 -1
  1465. package/lib/components/overflow-menu/defs.js +2 -4
  1466. package/lib/components/overflow-menu/defs.js.map +1 -1
  1467. package/lib/components/pagination/defs.js +1 -2
  1468. package/lib/components/pagination/defs.js.map +1 -1
  1469. package/lib/components/popover/defs.js +1 -2
  1470. package/lib/components/popover/defs.js.map +1 -1
  1471. package/lib/components/progress-bar/defs.js +3 -6
  1472. package/lib/components/progress-bar/defs.js.map +1 -1
  1473. package/lib/components/progress-indicator/defs.js +1 -2
  1474. package/lib/components/progress-indicator/defs.js.map +1 -1
  1475. package/lib/components/radio-button/defs.js +2 -4
  1476. package/lib/components/radio-button/defs.js.map +1 -1
  1477. package/lib/components/skeleton-text/defs.js +1 -2
  1478. package/lib/components/skeleton-text/defs.js.map +1 -1
  1479. package/lib/components/slug/defs.js +45 -0
  1480. package/lib/components/slug/defs.js.map +1 -0
  1481. package/lib/components/stack/defs.js +2 -4
  1482. package/lib/components/stack/defs.js.map +1 -1
  1483. package/lib/components/tabs/defs.js +2 -4
  1484. package/lib/components/tabs/defs.js.map +1 -1
  1485. package/lib/components/tag/defs.js +2 -4
  1486. package/lib/components/tag/defs.js.map +1 -1
  1487. package/lib/components/text-input/defs.js +4 -8
  1488. package/lib/components/text-input/defs.js.map +1 -1
  1489. package/lib/components/tile/defs.js.map +1 -1
  1490. package/lib/components/toggle/defs.js +1 -2
  1491. package/lib/components/toggle/defs.js.map +1 -1
  1492. package/lib/components/ui-shell/defs.js +2 -4
  1493. package/lib/components/ui-shell/defs.js.map +1 -1
  1494. package/lib/components-react-node/accordion/accordion-item-skeleton.js +3 -6
  1495. package/lib/components-react-node/accordion/accordion-item.js +5 -8
  1496. package/lib/components-react-node/accordion/accordion-skeleton.js +3 -6
  1497. package/lib/components-react-node/accordion/accordion.js +3 -6
  1498. package/lib/components-react-node/breadcrumb/breadcrumb-item.js +3 -6
  1499. package/lib/components-react-node/breadcrumb/breadcrumb-link.js +3 -6
  1500. package/lib/components-react-node/breadcrumb/breadcrumb-overflow-menu.js +11 -6
  1501. package/lib/components-react-node/breadcrumb/breadcrumb-skeleton.js +3 -6
  1502. package/lib/components-react-node/breadcrumb/breadcrumb.js +3 -6
  1503. package/lib/components-react-node/button/button-set.js +3 -6
  1504. package/lib/components-react-node/button/button-skeleton.js +7 -6
  1505. package/lib/components-react-node/button/button.js +3 -6
  1506. package/lib/components-react-node/checkbox/checkbox-skeleton.js +3 -6
  1507. package/lib/components-react-node/checkbox/checkbox.js +5 -8
  1508. package/lib/components-react-node/code-snippet/code-snippet-skeleton.js +3 -6
  1509. package/lib/components-react-node/code-snippet/code-snippet.js +3 -6
  1510. package/lib/components-react-node/combo-box/combo-box-item.js +11 -6
  1511. package/lib/components-react-node/combo-box/combo-box.js +5 -8
  1512. package/lib/components-react-node/content-switcher/content-switcher-item.js +3 -6
  1513. package/lib/components-react-node/content-switcher/content-switcher.js +5 -8
  1514. package/lib/components-react-node/copy/copy.js +11 -6
  1515. package/lib/components-react-node/copy-button/copy-button.js +3 -6
  1516. package/lib/components-react-node/data-table/table-batch-actions.js +5 -8
  1517. package/lib/components-react-node/data-table/table-body.js +3 -6
  1518. package/lib/components-react-node/data-table/table-cell-content.js +3 -6
  1519. package/lib/components-react-node/data-table/table-cell.js +3 -6
  1520. package/lib/components-react-node/data-table/table-expanded-row.js +3 -6
  1521. package/lib/components-react-node/data-table/table-head.js +3 -6
  1522. package/lib/components-react-node/data-table/table-header-cell.js +5 -8
  1523. package/lib/components-react-node/data-table/table-header-description.js +3 -6
  1524. package/lib/components-react-node/data-table/table-header-row.js +5 -8
  1525. package/lib/components-react-node/data-table/table-header-title.js +3 -6
  1526. package/lib/components-react-node/data-table/table-row.js +5 -8
  1527. package/lib/components-react-node/data-table/table-skeleton.js +3 -6
  1528. package/lib/components-react-node/data-table/table-toolbar-content.js +3 -6
  1529. package/lib/components-react-node/data-table/table-toolbar-search.js +5 -8
  1530. package/lib/components-react-node/data-table/table-toolbar.js +3 -6
  1531. package/lib/components-react-node/data-table/table.js +5 -8
  1532. package/lib/components-react-node/date-picker/date-picker-input-skeleton.js +3 -6
  1533. package/lib/components-react-node/date-picker/date-picker-input.js +3 -6
  1534. package/lib/components-react-node/date-picker/date-picker.js +5 -8
  1535. package/lib/components-react-node/dropdown/dropdown-item.js +3 -6
  1536. package/lib/components-react-node/dropdown/dropdown-skeleton.js +3 -6
  1537. package/lib/components-react-node/dropdown/dropdown.js +5 -8
  1538. package/lib/components-react-node/file-uploader/demo-file-uploader.js +3 -6
  1539. package/lib/components-react-node/file-uploader/file-uploader-button.js +5 -8
  1540. package/lib/components-react-node/file-uploader/file-uploader-drop-container.js +5 -8
  1541. package/lib/components-react-node/file-uploader/file-uploader-item.js +5 -8
  1542. package/lib/components-react-node/file-uploader/file-uploader-skeleton.js +3 -6
  1543. package/lib/components-react-node/file-uploader/file-uploader.js +3 -6
  1544. package/lib/components-react-node/floating-menu/floating-menu.js +2 -4
  1545. package/lib/components-react-node/form/form-item.js +3 -6
  1546. package/lib/components-react-node/form-group/form-group.js +3 -6
  1547. package/lib/components-react-node/icon-button/icon-button.js +7 -6
  1548. package/lib/components-react-node/inline-loading/inline-loading.js +3 -6
  1549. package/lib/components-react-node/layer/layer.js +5 -8
  1550. package/lib/components-react-node/link/link.js +3 -6
  1551. package/lib/components-react-node/list/list-item.js +3 -6
  1552. package/lib/components-react-node/list/ordered-list.js +11 -6
  1553. package/lib/components-react-node/list/unordered-list.js +3 -6
  1554. package/lib/components-react-node/loading/loading.js +3 -6
  1555. package/lib/components-react-node/modal/modal-body-content.js +3 -6
  1556. package/lib/components-react-node/modal/modal-body.js +3 -6
  1557. package/lib/components-react-node/modal/modal-close-button.js +3 -6
  1558. package/lib/components-react-node/modal/modal-footer-button.js +7 -6
  1559. package/lib/components-react-node/modal/modal-footer.js +3 -6
  1560. package/lib/components-react-node/modal/modal-header.js +3 -6
  1561. package/lib/components-react-node/modal/modal-heading.js +3 -6
  1562. package/lib/components-react-node/modal/modal-label.js +3 -6
  1563. package/lib/components-react-node/modal/modal.js +5 -8
  1564. package/lib/components-react-node/multi-select/multi-select-item.js +11 -6
  1565. package/lib/components-react-node/multi-select/multi-select.js +5 -8
  1566. package/lib/components-react-node/notification/actionable-notification-button.js +7 -6
  1567. package/lib/components-react-node/notification/actionable-notification.js +11 -6
  1568. package/lib/components-react-node/notification/inline-notification.js +5 -8
  1569. package/lib/components-react-node/notification/toast-notification.js +11 -6
  1570. package/lib/components-react-node/number-input/number-input-skeleton.js +3 -6
  1571. package/lib/components-react-node/number-input/number-input.js +12 -11
  1572. package/lib/components-react-node/overflow-menu/overflow-menu-body.js +11 -6
  1573. package/lib/components-react-node/overflow-menu/overflow-menu-item.js +3 -6
  1574. package/lib/components-react-node/overflow-menu/overflow-menu.js +11 -6
  1575. package/lib/components-react-node/pagination/pagination.js +5 -8
  1576. package/lib/components-react-node/popover/popover-content.js +3 -6
  1577. package/lib/components-react-node/popover/popover.js +3 -6
  1578. package/lib/components-react-node/progress-bar/progress-bar.js +3 -6
  1579. package/lib/components-react-node/progress-indicator/progress-indicator-skeleton.js +3 -6
  1580. package/lib/components-react-node/progress-indicator/progress-indicator.js +3 -6
  1581. package/lib/components-react-node/progress-indicator/progress-step-skeleton.js +3 -6
  1582. package/lib/components-react-node/progress-indicator/progress-step.js +3 -6
  1583. package/lib/components-react-node/radio-button/radio-button-group.js +5 -8
  1584. package/lib/components-react-node/radio-button/radio-button-skeleton.js +3 -6
  1585. package/lib/components-react-node/radio-button/radio-button.js +5 -8
  1586. package/lib/components-react-node/search/search-skeleton.js +3 -6
  1587. package/lib/components-react-node/search/search.js +5 -8
  1588. package/lib/components-react-node/select/select-item-group.js +3 -6
  1589. package/lib/components-react-node/select/select-item.js +3 -6
  1590. package/lib/components-react-node/select/select-skeleton.js +3 -6
  1591. package/lib/components-react-node/select/select.js +5 -8
  1592. package/lib/components-react-node/skeleton-placeholder/skeleton-placeholder.js +3 -6
  1593. package/lib/components-react-node/skeleton-text/skeleton-text.js +3 -6
  1594. package/lib/components-react-node/skip-to-content/skip-to-content.js +3 -6
  1595. package/lib/components-react-node/slider/slider-input.js +5 -8
  1596. package/lib/components-react-node/slider/slider-skeleton.js +3 -6
  1597. package/lib/components-react-node/slider/slider.js +5 -8
  1598. package/lib/components-react-node/slug/defs.js +24 -0
  1599. package/lib/components-react-node/slug/index.js +9 -0
  1600. package/lib/components-react-node/slug/slug-action-button.js +35 -0
  1601. package/lib/components-react-node/slug/slug.js +39 -0
  1602. package/lib/components-react-node/stack/stack.js +3 -6
  1603. package/lib/components-react-node/structured-list/structured-list-body.js +3 -6
  1604. package/lib/components-react-node/structured-list/structured-list-cell.js +3 -6
  1605. package/lib/components-react-node/structured-list/structured-list-head.js +3 -6
  1606. package/lib/components-react-node/structured-list/structured-list-header-cell-skeleton.js +3 -6
  1607. package/lib/components-react-node/structured-list/structured-list-header-cell.js +3 -6
  1608. package/lib/components-react-node/structured-list/structured-list-header-row.js +3 -6
  1609. package/lib/components-react-node/structured-list/structured-list-row.js +3 -6
  1610. package/lib/components-react-node/structured-list/structured-list.js +3 -6
  1611. package/lib/components-react-node/tabs/tab-skeleton.js +3 -6
  1612. package/lib/components-react-node/tabs/tab.js +11 -6
  1613. package/lib/components-react-node/tabs/tabs-skeleton.js +3 -6
  1614. package/lib/components-react-node/tabs/tabs.js +21 -16
  1615. package/lib/components-react-node/tag/tag.js +5 -8
  1616. package/lib/components-react-node/text-input/text-input-skeleton.js +3 -6
  1617. package/lib/components-react-node/text-input/text-input.js +3 -6
  1618. package/lib/components-react-node/textarea/textarea-skeleton.js +3 -6
  1619. package/lib/components-react-node/textarea/textarea.js +11 -6
  1620. package/lib/components-react-node/tile/clickable-tile.js +3 -6
  1621. package/lib/components-react-node/tile/expandable-tile.js +5 -8
  1622. package/lib/components-react-node/tile/radio-tile.js +17 -12
  1623. package/lib/components-react-node/tile/selectable-tile.js +5 -8
  1624. package/lib/components-react-node/tile/tile-group.js +5 -8
  1625. package/lib/components-react-node/tile/tile.js +3 -6
  1626. package/lib/components-react-node/toggle/toggle.js +5 -8
  1627. package/lib/components-react-node/toggle-tip/toggletip.js +3 -6
  1628. package/lib/components-react-node/tooltip/tooltip-content.js +11 -6
  1629. package/lib/components-react-node/tooltip/tooltip.js +7 -6
  1630. package/lib/components-react-node/ui-shell/header-global-action.js +7 -6
  1631. package/lib/components-react-node/ui-shell/header-menu-button.js +5 -8
  1632. package/lib/components-react-node/ui-shell/header-menu-item.js +11 -6
  1633. package/lib/components-react-node/ui-shell/header-menu.js +3 -6
  1634. package/lib/components-react-node/ui-shell/header-name.js +3 -6
  1635. package/lib/components-react-node/ui-shell/header-nav-item.js +3 -6
  1636. package/lib/components-react-node/ui-shell/header-nav.js +3 -6
  1637. package/lib/components-react-node/ui-shell/header-panel.js +3 -6
  1638. package/lib/components-react-node/ui-shell/header-side-nav-items.js +3 -6
  1639. package/lib/components-react-node/ui-shell/header.js +3 -6
  1640. package/lib/components-react-node/ui-shell/side-nav-divider.js +3 -6
  1641. package/lib/components-react-node/ui-shell/side-nav-items.js +3 -6
  1642. package/lib/components-react-node/ui-shell/side-nav-link.js +3 -6
  1643. package/lib/components-react-node/ui-shell/side-nav-menu-item.js +3 -6
  1644. package/lib/components-react-node/ui-shell/side-nav-menu.js +5 -8
  1645. package/lib/components-react-node/ui-shell/side-nav.js +5 -8
  1646. package/lib/components-react-node/ui-shell/switcher-divider.js +3 -6
  1647. package/lib/components-react-node/ui-shell/switcher-item.js +3 -6
  1648. package/lib/components-react-node/ui-shell/switcher.js +3 -6
  1649. package/lib/globals/settings.js +2 -4
  1650. package/lib/globals/settings.js.map +1 -1
  1651. package/lib/globals/shared-enums.js +1 -2
  1652. package/lib/globals/shared-enums.js.map +1 -1
  1653. package/lib/globals/wrappers/createReactCustomElementType.js +3 -4
  1654. package/lib/globals/wrappers/createReactCustomElementType.js.map +1 -1
  1655. package/package.json +18 -17
  1656. package/scss/components/breadcrumb/breadcrumb.scss +2 -2
  1657. package/scss/components/button/button.scss +3 -3
  1658. package/scss/components/code-snippet/code-snippet.scss +5 -5
  1659. package/scss/components/combo-box/combo-box.scss +62 -1
  1660. package/scss/components/content-switcher/content-switcher.scss +8 -7
  1661. package/scss/components/copy-button/copy-button.scss +3 -2
  1662. package/scss/components/data-table/_table-action.scss +1 -1
  1663. package/scss/components/data-table/_table-sizes.scss +5 -5
  1664. package/scss/components/data-table/_table-sort.scss +1 -1
  1665. package/scss/components/date-picker/date-picker.scss +13 -0
  1666. package/scss/components/dropdown/dropdown.scss +28 -4
  1667. package/scss/components/icon-button/icon-button.scss +5 -0
  1668. package/scss/components/list/list.scss +1 -1
  1669. package/scss/components/modal/modal.scss +17 -4
  1670. package/scss/components/multi-select/multi-select.scss +29 -2
  1671. package/scss/components/notification/inline-notification.scss +5 -0
  1672. package/scss/components/number-input/number-input.scss +19 -0
  1673. package/scss/components/overflow-menu/overflow-menu.scss +1 -1
  1674. package/scss/components/pagination/pagination.scss +1 -1
  1675. package/scss/components/popover/popover.scss +57 -20
  1676. package/scss/components/select/select.scss +19 -0
  1677. package/scss/components/slug/slug.scss +135 -0
  1678. package/scss/components/stack/stack.scss +3 -3
  1679. package/scss/components/tabs/tabs.scss +7 -9
  1680. package/scss/components/text-input/text-input.scss +44 -10
  1681. package/scss/components/textarea/textarea.scss +35 -0
  1682. package/scss/components/tile/tile.scss +1 -1
  1683. package/scss/components/toggle-tip/toggletip.scss +3 -2
  1684. package/scss/components/tooltip/tooltip.scss +1 -2
  1685. package/scss/components/ui-shell/header.scss +4 -4
  1686. package/scss/components/ui-shell/side-nav.scss +1 -1
  1687. package/es/components/accordion/accordion-item-skeleton.d.ts.map +0 -1
  1688. package/es/components/accordion/accordion-item.d.ts.map +0 -1
  1689. package/es/components/accordion/accordion-skeleton.d.ts.map +0 -1
  1690. package/es/components/accordion/accordion.d.ts.map +0 -1
  1691. package/es/components/accordion/defs.d.ts.map +0 -1
  1692. package/es/components/accordion/index.d.ts.map +0 -1
  1693. package/es/components/breadcrumb/breadcrumb-item.d.ts.map +0 -1
  1694. package/es/components/breadcrumb/breadcrumb-link.d.ts.map +0 -1
  1695. package/es/components/breadcrumb/breadcrumb-overflow-menu.d.ts.map +0 -1
  1696. package/es/components/breadcrumb/breadcrumb-skeleton.d.ts.map +0 -1
  1697. package/es/components/breadcrumb/breadcrumb.d.ts.map +0 -1
  1698. package/es/components/breadcrumb/index.d.ts.map +0 -1
  1699. package/es/components/button/button-set.d.ts.map +0 -1
  1700. package/es/components/button/button-skeleton.d.ts.map +0 -1
  1701. package/es/components/button/button.d.ts.map +0 -1
  1702. package/es/components/button/defs.d.ts.map +0 -1
  1703. package/es/components/button/index.d.ts.map +0 -1
  1704. package/es/components/checkbox/checkbox-skeleton.d.ts.map +0 -1
  1705. package/es/components/checkbox/checkbox.d.ts.map +0 -1
  1706. package/es/components/checkbox/index.d.ts.map +0 -1
  1707. package/es/components/code-snippet/code-snippet-skeleton.d.ts.map +0 -1
  1708. package/es/components/code-snippet/code-snippet.d.ts.map +0 -1
  1709. package/es/components/code-snippet/defs.d.ts.map +0 -1
  1710. package/es/components/code-snippet/index.d.ts.map +0 -1
  1711. package/es/components/combo-box/combo-box-item.d.ts.map +0 -1
  1712. package/es/components/combo-box/combo-box.d.ts.map +0 -1
  1713. package/es/components/combo-box/index.d.ts.map +0 -1
  1714. package/es/components/content-switcher/content-switcher-item.d.ts.map +0 -1
  1715. package/es/components/content-switcher/content-switcher.d.ts.map +0 -1
  1716. package/es/components/content-switcher/defs.d.ts.map +0 -1
  1717. package/es/components/content-switcher/index.d.ts.map +0 -1
  1718. package/es/components/copy/copy.d.ts.map +0 -1
  1719. package/es/components/copy-button/copy-button.d.ts.map +0 -1
  1720. package/es/components/copy-button/index.d.ts.map +0 -1
  1721. package/es/components/data-table/defs.d.ts.map +0 -1
  1722. package/es/components/data-table/index.d.ts.map +0 -1
  1723. package/es/components/data-table/table-batch-actions.d.ts.map +0 -1
  1724. package/es/components/data-table/table-body.d.ts.map +0 -1
  1725. package/es/components/data-table/table-cell-content.d.ts.map +0 -1
  1726. package/es/components/data-table/table-cell.d.ts.map +0 -1
  1727. package/es/components/data-table/table-expanded-row.d.ts.map +0 -1
  1728. package/es/components/data-table/table-head.d.ts.map +0 -1
  1729. package/es/components/data-table/table-header-cell.d.ts.map +0 -1
  1730. package/es/components/data-table/table-header-description.d.ts.map +0 -1
  1731. package/es/components/data-table/table-header-row.d.ts.map +0 -1
  1732. package/es/components/data-table/table-header-title.d.ts.map +0 -1
  1733. package/es/components/data-table/table-row.d.ts.map +0 -1
  1734. package/es/components/data-table/table-skeleton.d.ts.map +0 -1
  1735. package/es/components/data-table/table-toolbar-content.d.ts.map +0 -1
  1736. package/es/components/data-table/table-toolbar-search.d.ts.map +0 -1
  1737. package/es/components/data-table/table-toolbar.d.ts.map +0 -1
  1738. package/es/components/data-table/table.d.ts.map +0 -1
  1739. package/es/components/date-picker/append-to-plugin.d.ts.map +0 -1
  1740. package/es/components/date-picker/css-class-plugin.d.ts.map +0 -1
  1741. package/es/components/date-picker/date-picker-input-skeleton.d.ts.map +0 -1
  1742. package/es/components/date-picker/date-picker-input.d.ts.map +0 -1
  1743. package/es/components/date-picker/date-picker.d.ts.map +0 -1
  1744. package/es/components/date-picker/defs.d.ts.map +0 -1
  1745. package/es/components/date-picker/fix-events-plugin.d.ts.map +0 -1
  1746. package/es/components/date-picker/focus-plugin.d.ts.map +0 -1
  1747. package/es/components/date-picker/icon-plugin.d.ts.map +0 -1
  1748. package/es/components/date-picker/index.d.ts.map +0 -1
  1749. package/es/components/date-picker/iso-date.d.ts.map +0 -1
  1750. package/es/components/date-picker/month-select-plugin.d.ts.map +0 -1
  1751. package/es/components/date-picker/range-plugin.d.ts.map +0 -1
  1752. package/es/components/date-picker/shadow-dom-events-plugin.d.ts.map +0 -1
  1753. package/es/components/date-picker/state-handshake-plugin.d.ts.map +0 -1
  1754. package/es/components/dropdown/defs.d.ts.map +0 -1
  1755. package/es/components/dropdown/dropdown-item.d.ts.map +0 -1
  1756. package/es/components/dropdown/dropdown-skeleton.d.ts.map +0 -1
  1757. package/es/components/dropdown/dropdown.d.ts.map +0 -1
  1758. package/es/components/dropdown/index.d.ts.map +0 -1
  1759. package/es/components/file-uploader/defs.d.ts.map +0 -1
  1760. package/es/components/file-uploader/demo-file-uploader.d.ts.map +0 -1
  1761. package/es/components/file-uploader/file-uploader-button.d.ts.map +0 -1
  1762. package/es/components/file-uploader/file-uploader-drop-container.d.ts.map +0 -1
  1763. package/es/components/file-uploader/file-uploader-item.d.ts.map +0 -1
  1764. package/es/components/file-uploader/file-uploader-skeleton.d.ts.map +0 -1
  1765. package/es/components/file-uploader/file-uploader.d.ts.map +0 -1
  1766. package/es/components/file-uploader/index.d.ts.map +0 -1
  1767. package/es/components/floating-menu/defs.d.ts.map +0 -1
  1768. package/es/components/floating-menu/floating-menu-trigger.d.ts.map +0 -1
  1769. package/es/components/floating-menu/floating-menu.d.ts.map +0 -1
  1770. package/es/components/floating-menu/index.d.ts.map +0 -1
  1771. package/es/components/form/form-item.d.ts.map +0 -1
  1772. package/es/components/form/index.d.ts.map +0 -1
  1773. package/es/components/form-group/form-group.d.ts.map +0 -1
  1774. package/es/components/form-group/index.d.ts.map +0 -1
  1775. package/es/components/icon-button/defs.d.ts.map +0 -1
  1776. package/es/components/icon-button/icon-button.d.ts.map +0 -1
  1777. package/es/components/icon-button/index.d.ts.map +0 -1
  1778. package/es/components/inline-loading/defs.d.ts.map +0 -1
  1779. package/es/components/inline-loading/index.d.ts.map +0 -1
  1780. package/es/components/inline-loading/inline-loading.d.ts.map +0 -1
  1781. package/es/components/layer/index.d.ts.map +0 -1
  1782. package/es/components/layer/layer.d.ts.map +0 -1
  1783. package/es/components/link/index.d.ts.map +0 -1
  1784. package/es/components/link/link.d.ts.map +0 -1
  1785. package/es/components/list/index.d.ts.map +0 -1
  1786. package/es/components/list/list-item.d.ts.map +0 -1
  1787. package/es/components/list/ordered-list.d.ts.map +0 -1
  1788. package/es/components/list/unordered-list.d.ts.map +0 -1
  1789. package/es/components/loading/defs.d.ts.map +0 -1
  1790. package/es/components/loading/index.d.ts.map +0 -1
  1791. package/es/components/loading/loading-icon.d.ts.map +0 -1
  1792. package/es/components/loading/loading.d.ts.map +0 -1
  1793. package/es/components/loading/types.d.ts.map +0 -1
  1794. package/es/components/modal/defs.d.ts.map +0 -1
  1795. package/es/components/modal/index.d.ts.map +0 -1
  1796. package/es/components/modal/modal-body-content.d.ts.map +0 -1
  1797. package/es/components/modal/modal-body.d.ts.map +0 -1
  1798. package/es/components/modal/modal-close-button.d.ts.map +0 -1
  1799. package/es/components/modal/modal-footer-button.d.ts.map +0 -1
  1800. package/es/components/modal/modal-footer.d.ts.map +0 -1
  1801. package/es/components/modal/modal-header.d.ts.map +0 -1
  1802. package/es/components/modal/modal-heading.d.ts.map +0 -1
  1803. package/es/components/modal/modal-label.d.ts.map +0 -1
  1804. package/es/components/modal/modal.d.ts.map +0 -1
  1805. package/es/components/multi-select/defs.d.ts.map +0 -1
  1806. package/es/components/multi-select/index.d.ts.map +0 -1
  1807. package/es/components/multi-select/multi-select-item.d.ts.map +0 -1
  1808. package/es/components/multi-select/multi-select.d.ts.map +0 -1
  1809. package/es/components/notification/actionable-notification-button.d.ts.map +0 -1
  1810. package/es/components/notification/actionable-notification.d.ts.map +0 -1
  1811. package/es/components/notification/defs.d.ts.map +0 -1
  1812. package/es/components/notification/index.d.ts.map +0 -1
  1813. package/es/components/notification/inline-notification.d.ts.map +0 -1
  1814. package/es/components/notification/toast-notification.d.ts.map +0 -1
  1815. package/es/components/number-input/defs.d.ts.map +0 -1
  1816. package/es/components/number-input/index.d.ts.map +0 -1
  1817. package/es/components/number-input/number-input-skeleton.d.ts.map +0 -1
  1818. package/es/components/number-input/number-input.d.ts.map +0 -1
  1819. package/es/components/overflow-menu/defs.d.ts.map +0 -1
  1820. package/es/components/overflow-menu/index.d.ts.map +0 -1
  1821. package/es/components/overflow-menu/overflow-menu-body.d.ts.map +0 -1
  1822. package/es/components/overflow-menu/overflow-menu-item.d.ts.map +0 -1
  1823. package/es/components/overflow-menu/overflow-menu.d.ts.map +0 -1
  1824. package/es/components/pagination/defs.d.ts.map +0 -1
  1825. package/es/components/pagination/index.d.ts.map +0 -1
  1826. package/es/components/pagination/pagination.d.ts.map +0 -1
  1827. package/es/components/popover/defs.d.ts.map +0 -1
  1828. package/es/components/popover/index.d.ts.map +0 -1
  1829. package/es/components/popover/popover-content.d.ts.map +0 -1
  1830. package/es/components/popover/popover.d.ts.map +0 -1
  1831. package/es/components/progress-bar/defs.d.ts.map +0 -1
  1832. package/es/components/progress-bar/index.d.ts.map +0 -1
  1833. package/es/components/progress-bar/progress-bar.d.ts.map +0 -1
  1834. package/es/components/progress-indicator/defs.d.ts.map +0 -1
  1835. package/es/components/progress-indicator/index.d.ts.map +0 -1
  1836. package/es/components/progress-indicator/progress-indicator-skeleton.d.ts.map +0 -1
  1837. package/es/components/progress-indicator/progress-indicator.d.ts.map +0 -1
  1838. package/es/components/progress-indicator/progress-step-skeleton.d.ts.map +0 -1
  1839. package/es/components/progress-indicator/progress-step.d.ts.map +0 -1
  1840. package/es/components/radio-button/defs.d.ts.map +0 -1
  1841. package/es/components/radio-button/index.d.ts.map +0 -1
  1842. package/es/components/radio-button/radio-button-group.d.ts.map +0 -1
  1843. package/es/components/radio-button/radio-button-skeleton.d.ts.map +0 -1
  1844. package/es/components/radio-button/radio-button.d.ts.map +0 -1
  1845. package/es/components/search/index.d.ts.map +0 -1
  1846. package/es/components/search/search-skeleton.d.ts.map +0 -1
  1847. package/es/components/search/search.d.ts.map +0 -1
  1848. package/es/components/select/index.d.ts.map +0 -1
  1849. package/es/components/select/select-item-group.d.ts.map +0 -1
  1850. package/es/components/select/select-item.d.ts.map +0 -1
  1851. package/es/components/select/select-skeleton.d.ts.map +0 -1
  1852. package/es/components/select/select.d.ts.map +0 -1
  1853. package/es/components/skeleton-placeholder/index.d.ts.map +0 -1
  1854. package/es/components/skeleton-placeholder/skeleton-placeholder.d.ts.map +0 -1
  1855. package/es/components/skeleton-text/defs.d.ts.map +0 -1
  1856. package/es/components/skeleton-text/index.d.ts.map +0 -1
  1857. package/es/components/skeleton-text/skeleton-text.d.ts.map +0 -1
  1858. package/es/components/skip-to-content/index.d.ts.map +0 -1
  1859. package/es/components/skip-to-content/skip-to-content.d.ts.map +0 -1
  1860. package/es/components/slider/index.d.ts.map +0 -1
  1861. package/es/components/slider/slider-input.d.ts.map +0 -1
  1862. package/es/components/slider/slider-skeleton.d.ts.map +0 -1
  1863. package/es/components/slider/slider.d.ts.map +0 -1
  1864. package/es/components/stack/defs.d.ts.map +0 -1
  1865. package/es/components/stack/index.d.ts.map +0 -1
  1866. package/es/components/stack/stack.d.ts.map +0 -1
  1867. package/es/components/structured-list/index.d.ts.map +0 -1
  1868. package/es/components/structured-list/structured-list-body.d.ts.map +0 -1
  1869. package/es/components/structured-list/structured-list-cell.d.ts.map +0 -1
  1870. package/es/components/structured-list/structured-list-head.d.ts.map +0 -1
  1871. package/es/components/structured-list/structured-list-header-cell-skeleton.d.ts.map +0 -1
  1872. package/es/components/structured-list/structured-list-header-cell.d.ts.map +0 -1
  1873. package/es/components/structured-list/structured-list-header-row.d.ts.map +0 -1
  1874. package/es/components/structured-list/structured-list-row.d.ts.map +0 -1
  1875. package/es/components/structured-list/structured-list.d.ts.map +0 -1
  1876. package/es/components/tabs/defs.d.ts.map +0 -1
  1877. package/es/components/tabs/index.d.ts.map +0 -1
  1878. package/es/components/tabs/tab-skeleton.d.ts.map +0 -1
  1879. package/es/components/tabs/tab.d.ts.map +0 -1
  1880. package/es/components/tabs/tabs-skeleton.d.ts.map +0 -1
  1881. package/es/components/tabs/tabs.d.ts.map +0 -1
  1882. package/es/components/tag/defs.d.ts.map +0 -1
  1883. package/es/components/tag/index.d.ts.map +0 -1
  1884. package/es/components/tag/tag.d.ts.map +0 -1
  1885. package/es/components/tag/types.d.ts.map +0 -1
  1886. package/es/components/text-input/defs.d.ts.map +0 -1
  1887. package/es/components/text-input/index.d.ts.map +0 -1
  1888. package/es/components/text-input/text-input-skeleton.d.ts.map +0 -1
  1889. package/es/components/text-input/text-input.d.ts.map +0 -1
  1890. package/es/components/textarea/defs.d.ts.map +0 -1
  1891. package/es/components/textarea/index.d.ts.map +0 -1
  1892. package/es/components/textarea/textarea-skeleton.d.ts.map +0 -1
  1893. package/es/components/textarea/textarea.d.ts.map +0 -1
  1894. package/es/components/tile/clickable-tile.d.ts.map +0 -1
  1895. package/es/components/tile/defs.d.ts.map +0 -1
  1896. package/es/components/tile/expandable-tile.d.ts.map +0 -1
  1897. package/es/components/tile/index.d.ts.map +0 -1
  1898. package/es/components/tile/radio-tile.d.ts.map +0 -1
  1899. package/es/components/tile/selectable-tile.d.ts.map +0 -1
  1900. package/es/components/tile/tile-group.d.ts.map +0 -1
  1901. package/es/components/tile/tile.d.ts.map +0 -1
  1902. package/es/components/toggle/defs.d.ts.map +0 -1
  1903. package/es/components/toggle/index.d.ts.map +0 -1
  1904. package/es/components/toggle/toggle.d.ts.map +0 -1
  1905. package/es/components/toggle-tip/index.d.ts.map +0 -1
  1906. package/es/components/toggle-tip/toggletip.d.ts.map +0 -1
  1907. package/es/components/tooltip/index.d.ts.map +0 -1
  1908. package/es/components/tooltip/tooltip-content.d.ts.map +0 -1
  1909. package/es/components/tooltip/tooltip.d.ts.map +0 -1
  1910. package/es/components/ui-shell/defs.d.ts.map +0 -1
  1911. package/es/components/ui-shell/header-global-action.d.ts.map +0 -1
  1912. package/es/components/ui-shell/header-menu-button.d.ts.map +0 -1
  1913. package/es/components/ui-shell/header-menu-item.d.ts.map +0 -1
  1914. package/es/components/ui-shell/header-menu.d.ts.map +0 -1
  1915. package/es/components/ui-shell/header-name.d.ts.map +0 -1
  1916. package/es/components/ui-shell/header-nav-item.d.ts.map +0 -1
  1917. package/es/components/ui-shell/header-nav.d.ts.map +0 -1
  1918. package/es/components/ui-shell/header-panel.d.ts.map +0 -1
  1919. package/es/components/ui-shell/header-side-nav-items.d.ts.map +0 -1
  1920. package/es/components/ui-shell/header.d.ts.map +0 -1
  1921. package/es/components/ui-shell/index.d.ts.map +0 -1
  1922. package/es/components/ui-shell/side-nav-divider.d.ts.map +0 -1
  1923. package/es/components/ui-shell/side-nav-items.d.ts.map +0 -1
  1924. package/es/components/ui-shell/side-nav-link.d.ts.map +0 -1
  1925. package/es/components/ui-shell/side-nav-menu-item.d.ts.map +0 -1
  1926. package/es/components/ui-shell/side-nav-menu.d.ts.map +0 -1
  1927. package/es/components/ui-shell/side-nav.d.ts.map +0 -1
  1928. package/es/components/ui-shell/switcher-divider.d.ts.map +0 -1
  1929. package/es/components/ui-shell/switcher-item.d.ts.map +0 -1
  1930. package/es/components/ui-shell/switcher.d.ts.map +0 -1
  1931. package/es/globals/decorators/carbon-element.d.ts.map +0 -1
  1932. package/es/globals/decorators/host-listener.d.ts.map +0 -1
  1933. package/es/globals/directives/if-non-empty.d.ts.map +0 -1
  1934. package/es/globals/directives/spread.d.ts.map +0 -1
  1935. package/es/globals/internal/collection-helpers.d.ts.map +0 -1
  1936. package/es/globals/internal/handle.d.ts.map +0 -1
  1937. package/es/globals/internal/radio-group-manager.d.ts.map +0 -1
  1938. package/es/globals/internal/storybook-cdn.d.ts.map +0 -1
  1939. package/es/globals/mixins/focus.d.ts.map +0 -1
  1940. package/es/globals/mixins/form.d.ts.map +0 -1
  1941. package/es/globals/mixins/host-listener.d.ts.map +0 -1
  1942. package/es/globals/mixins/on.d.ts.map +0 -1
  1943. package/es/globals/mixins/validity.d.ts.map +0 -1
  1944. package/es/globals/settings.d.ts.map +0 -1
  1945. package/es/globals/shared-enums.d.ts.map +0 -1
  1946. package/es/globals/wrappers/createReactCustomElementType.d.ts.map +0 -1
  1947. package/es/index.d.ts.map +0 -1
  1948. package/es/polyfills/element-closest.d.ts.map +0 -1
  1949. package/es/polyfills/element-matches.d.ts.map +0 -1
  1950. package/es/polyfills/index.d.ts.map +0 -1
  1951. package/es/polyfills/toggle-attribute.d.ts.map +0 -1
  1952. package/es/polyfills/toggle-class.d.ts.map +0 -1
@@ -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"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/floating-menu/floating-menu.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAIjC,OAAO,MAAM,MAAM,+BAA+B,CAAC;AACnD,OAAO,EACL,uBAAuB,EACvB,gCAAgC,EACjC,MAAM,QAAQ,CAAC;AAChB,OAAO,sBAAsB,MAAM,yBAAyB,CAAC;AAG7D,OAAO,EAAE,uBAAuB,EAAE,gCAAgC,EAAE,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,SAAS,EAAE,gCAAgC,CAAC;IAE5C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCD;;GAEG;AACH,uBAAe,eAAgB,SAAQ,oBAEtC;IACC;;OAEG;IACH,OAAO,CAAC,qBAAqB,CAAuB;IAEpD;;OAEG;IACH,OAAO,CAAC,wBAAwB,CAAuB;IAEvD;;OAEG;IAGH,OAAO,CAAC,eAAe,CASpB;IAIH,OAAO,CAAC,WAAW,CAQjB;IAIF,OAAO,CAAC,MAAM,CAKZ;IAIF,OAAO,CAAC,cAAc,CASpB;IAEF;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAAQ;IAEvD;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,uBAAuB,CAAC;IAE5C;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,IAAI,SAAS,QAOZ;IAED;;OAEG;IACH,IAAI,QAAQ,IAAI,oBAAoB,CAyEnC;IAED,oBAAoB;IASpB,OAAO,CAAC,iBAAiB,KAAA;IA0CzB;;OAEG;IACH,MAAM,CAAC,aAAa,UAAQ;IAE5B;;OAEG;IACH,MAAM,KAAK,iBAAiB,WAE3B;IACD,MAAM,CAAC,iBAAiB;;;;MAGtB;CACH;AAED,eAAe,eAAe,CAAC","file":"floating-menu.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 } from 'lit';\nimport HostListener from '../../globals/decorators/host-listener';\nimport FocusMixin from '../../globals/mixins/focus';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport Handle from '../../globals/internal/handle';\nimport {\n FLOATING_MENU_DIRECTION,\n FLOATING_MENU_POSITION_DIRECTION,\n} from './defs';\nimport CDSFloatingMenuTrigger from './floating-menu-trigger';\nimport { prefix } from '../../globals/settings';\n\nexport { FLOATING_MENU_DIRECTION, FLOATING_MENU_POSITION_DIRECTION };\n\n/**\n * Position of floating menu, or trigger button of floating menu.\n */\nexport interface FloatingMenuPosition {\n /**\n * The LTR/RTL direction used for positioning floating menu.\n */\n direction: FLOATING_MENU_POSITION_DIRECTION;\n\n /**\n * The start position (Left position for LTR, right position for RTL).\n */\n start: number;\n\n /**\n * The top position.\n */\n top: number;\n}\n\n/**\n * Observes resize of the given element with the given resize observer.\n *\n * @param observer The resize observer.\n * @param elem The element to observe the resize.\n */\nconst observeResize = (observer: ResizeObserver, elem: Element) => {\n observer.observe(elem);\n return {\n release() {\n observer.unobserve(elem);\n return null;\n },\n } as Handle;\n};\n\n/**\n * @param elem The starting element.\n * @param selector The CSS selector.\n * @returns {Element}\n * The closest ancestor node of the given element that matches the given selector, crossing Shadow DOM boundary.\n */\nconst closestComposed = (elem: Element, selector: string) => {\n const found = elem.closest(selector);\n if (found) {\n return found;\n }\n const { host } = elem.getRootNode() as ShadowRoot;\n if (host) {\n return closestComposed(host, selector);\n }\n return null;\n};\n\n/**\n * Floating menu.\n */\nabstract class CDSFloatingMenu extends HostListenerMixin(\n FocusMixin(LitElement)\n) {\n /**\n * The handle for observing resize of the element containing the trigger button.\n */\n private _hObserveResizeParent: Handle | null = null;\n\n /**\n * The handle for observing resize of the floating menu container.\n */\n private _hObserveResizeContainer: Handle | null = null;\n\n /**\n * The `ResizeObserver` instance for observing element resizes for re-positioning floating menu position.\n */\n // TODO: Wait for `.d.ts` update to support `ResizeObserver`\n // @ts-ignore\n private _resizeObserver = new ResizeObserver(() => {\n const { container, open, parent, position } = this;\n if (container && open && parent) {\n const { direction, start, top } = position;\n this.style[\n direction !== FLOATING_MENU_POSITION_DIRECTION.RTL ? 'left' : 'right'\n ] = `${start}px`;\n this.style.top = `${top}px`;\n }\n });\n\n @HostListener('focusout')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleBlur = ({ relatedTarget }: FocusEvent) => {\n if (!this.contains(relatedTarget as Node)) {\n const { parent } = this;\n if (parent && parent !== relatedTarget) {\n parent.open = false;\n HTMLElement.prototype.focus.call(this.parent); // SVGElement in IE11 does not have `.focus()` method\n }\n }\n };\n\n @HostListener('click')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _click = (event: MouseEvent) => {\n const { parent } = this;\n if (parent) {\n parent.open = false;\n }\n };\n\n @HostListener('keydown')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Tab') {\n if (event.shiftKey) {\n const { parent } = this;\n if (parent) {\n parent.open = false;\n }\n }\n }\n };\n\n /**\n * The DOM element, typically a custom element in this library, launching this floating menu.\n */\n protected parent: CDSFloatingMenuTrigger | null = null;\n\n /**\n * The menu direction.\n */\n abstract direction: FLOATING_MENU_DIRECTION;\n\n /**\n * `true` if the menu should be open.\n */\n abstract open: boolean;\n\n /**\n * `true` if the menu alignment should be flipped.\n */\n abstract flipped: boolean;\n\n /**\n * The DOM element to put this menu into.\n */\n get container() {\n return (\n closestComposed(\n this,\n (this.constructor as typeof CDSFloatingMenu).selectorContainer\n ) || this.ownerDocument!.body\n );\n }\n\n /**\n * The position of this floating menu.\n */\n get position(): FloatingMenuPosition {\n const { triggerPosition } = this.parent!;\n if (!triggerPosition) {\n throw new TypeError('Missing information of trigger button position.');\n }\n\n const { container } = this;\n const {\n left: refLeft = 0,\n top: refTop = 0,\n right: refRight = 0,\n bottom: refBottom = 0,\n } = triggerPosition;\n const { width, height } = this.getBoundingClientRect();\n const {\n left: containerLeft = 0,\n right: containerRight = 0,\n top: containerTop = 0,\n } = container.getBoundingClientRect();\n\n const containerComputedStyle =\n container.ownerDocument!.defaultView!.getComputedStyle(container);\n const positionDirection = containerComputedStyle.getPropertyValue(\n 'direction'\n ) as FLOATING_MENU_POSITION_DIRECTION;\n const isRtl = positionDirection === FLOATING_MENU_POSITION_DIRECTION.RTL;\n const containerStartFromViewport = !isRtl\n ? containerLeft\n : container.ownerDocument!.defaultView!.innerWidth - containerRight;\n const refStartFromContainer = !isRtl\n ? refLeft - containerLeft\n : containerRight - refRight;\n const refEndFromContainer = !isRtl\n ? refRight - containerLeft\n : containerRight - refLeft;\n const refTopFromContainer = refTop - containerTop;\n\n if (\n (container !== this.ownerDocument!.body ||\n containerStartFromViewport !== 0 ||\n containerTop !== 0) &&\n containerComputedStyle.getPropertyValue('position') === 'static'\n ) {\n throw new Error(\n 'Floating menu container must not have `position:static`.'\n );\n }\n\n const { flipped, direction } = this;\n if (Object.values(FLOATING_MENU_DIRECTION).indexOf(direction) < 0) {\n throw new Error(`Wrong menu position direction: ${direction}`);\n }\n\n const alignmentStart = flipped\n ? refEndFromContainer - width\n : refStartFromContainer;\n\n const { start, top } = {\n [FLOATING_MENU_DIRECTION.TOP]: () => ({\n start: alignmentStart,\n top: refTopFromContainer - height,\n }),\n [FLOATING_MENU_DIRECTION.BOTTOM]: () => ({\n start: alignmentStart,\n top: refBottom,\n }),\n }[direction]();\n\n return {\n direction: positionDirection,\n start,\n top,\n };\n }\n\n disconnectedCallback() {\n if (this._hObserveResizeContainer) {\n this._hObserveResizeContainer = this._hObserveResizeContainer.release();\n }\n if (this._hObserveResizeParent) {\n this._hObserveResizeParent = this._hObserveResizeParent.release();\n }\n }\n\n updated(changedProperties) {\n const { container, open, parent } = this;\n if (\n (changedProperties.has('flipped') ||\n changedProperties.has('direction') ||\n changedProperties.has('open')) &&\n open\n ) {\n if (!parent) {\n this.parent = this.parentElement as CDSFloatingMenuTrigger;\n container.appendChild(this);\n }\n // Note: `this.position` cannot be referenced until `this.parent` is set\n const { direction, start, top } = this.position;\n this.style[\n direction !== FLOATING_MENU_POSITION_DIRECTION.RTL ? 'left' : 'right'\n ] = `${start}px`;\n this.style.top = `${top}px`;\n }\n if (changedProperties.has('open')) {\n if (this._hObserveResizeContainer) {\n this._hObserveResizeContainer = this._hObserveResizeContainer.release();\n }\n if (this._hObserveResizeParent) {\n this._hObserveResizeParent = this._hObserveResizeParent.release();\n }\n if (open) {\n const { parentElement } = this.parent ?? {};\n this._hObserveResizeContainer = observeResize(\n this._resizeObserver,\n container\n );\n if (parentElement) {\n this._hObserveResizeParent = observeResize(\n this._resizeObserver,\n parentElement\n );\n }\n }\n }\n }\n\n /**\n * A constant indicating that this class is a floating menu.\n */\n static FLOATING_MENU = true;\n\n /**\n * The CSS selector to find the element to put this floating menu in.\n */\n static get selectorContainer() {\n return `[data-floating-menu-container],${prefix}-modal`;\n }\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n}\n\nexport default CDSFloatingMenu;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/floating-menu/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,iBAAiB,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 './floating-menu';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/form/form-item.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC;;;;GAIG;AACH,cACM,WAAY,SAAQ,UAAU;IAClC,MAAM;IAIN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,WAAW,CAAC","file":"form-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 { prefix } from '../../globals/settings';\nimport styles from './form-item.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Presentational element for form items\n *\n * @element cds-form-item\n */\n@customElement(`${prefix}-form-item`)\nclass CDSFormItem extends LitElement {\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default CDSFormItem;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/form/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,aAAa,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 './form-item';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/form-group/form-group.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC;;;;;;GAMG;AACH,cACM,YAAa,SAAQ,UAAU;IACnC;;OAEG;IAEH,OAAO,UAAS;IAEhB;;;OAGG;IAEH,QAAQ,MAAC;IAET;;OAEG;IAEH,UAAU,EAAG,MAAM,CAAC;IAEpB;;OAEG;IAEH,OAAO,UAAS;IAEhB;;OAEG;IAEH,WAAW,MAAC;IAEZ,MAAM;IAmBN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,YAAY,CAAC","file":"form-group.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './form-group.scss';\n\n/**\n * The shell UI for file uploader.\n *\n * @element cds-form-group\n * @slot label-title.\n * @slot lebel-description.\n */\n@customElement(`${prefix}-form-group`)\nclass CDSFormGroup extends LitElement {\n /**\n * Specify whether the Form Group is invalid\n */\n @property({ type: Boolean, reflect: true })\n invalid = false;\n\n /**\n * Provide id for the fieldset <legend> which corresponds to the fieldset\n * `aria-labelledby`\n */\n @property({ attribute: 'legend-id' })\n legendId;\n\n /**\n * Provide the text to be rendered inside of the fieldset <legend>\n */\n @property({ attribute: 'legend-text' })\n legendText!: string;\n\n /**\n * Specify whether the message should be displayed in the Form Group\n */\n @property({ type: Boolean, reflect: true })\n message = false;\n\n /**\n * Provide the text for the message in the Form Group\n */\n @property({ type: String, attribute: 'message-text', reflect: true })\n messageText;\n\n render() {\n const { invalid, legendId, legendText, message, messageText } = this;\n\n return html`\n <fieldset\n class=\"${prefix}--fieldset\"\n ?data-invalid=${invalid}\n aria-labelledby=\"${legendId}\">\n <legend class=\"${prefix}--label\" id=${legendId}>${legendText}</legend>\n <slot></slot>\n ${message\n ? html`<div class=\"${prefix}--form__requirements\">\n ${messageText}\n </div>`\n : null}\n </fieldset>\n `;\n }\n\n static styles = styles;\n}\n\nexport default CDSFormGroup;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/form-group/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,cAAc,CAAC","file":"index.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport './form-group';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/icon-button/defs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,oBAAY,gBAAgB;IAC1B;;OAEG;IACH,KAAK,OAAO;IAEZ;;OAEG;IACH,MAAM,OAAO;IAEb;;OAEG;IACH,KAAK,OAAO;CACb;AAED;;GAEG;AACH,oBAAY,6BAA6B;IACvC;;OAEG;IACH,GAAG,QAAQ;IAEX;;OAEG;IACH,QAAQ,aAAa;IAErB;;OAEG;IACH,SAAS,cAAc;IAEvB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;OAEG;IACH,YAAY,iBAAiB;IAE7B;;OAEG;IACH,IAAI,SAAS;IAEb;;OAEG;IACH,KAAK,UAAU;CAChB","file":"defs.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\n/**\n * Icon Button size.\n */\nexport enum ICON_BUTTON_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 * Icon Button Tooltip alignment.\n */\nexport enum ICON_BUTTON_TOOLTIP_ALIGNMENT {\n /**\n * Align the top position for the tooltip content.\n */\n TOP = 'top',\n\n /**\n * Align the top-left position for the tooltip content.\n */\n TOP_LEFT = 'top-left',\n\n /**\n * Align the top right position for the tooltip content.\n */\n TOP_RIGHT = 'top-right',\n\n /**\n * Align the bottom position for the tooltip content.\n */\n BOTTOM = 'bottom',\n\n /**\n * Align the bottom left position for the tooltip content.\n */\n BOTTOM_LEFT = 'bottom-left',\n\n /**\n * Align the bottom right position for the tooltip content.\n */\n BOTTOM_RIGHT = 'bottom-right',\n\n /**\n * Align the left position for the tooltip content.\n */\n LEFT = 'left',\n\n /**\n * Align the right position for the tooltip content.\n */\n RIGHT = 'right',\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/icon-button/icon-button.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,kBAAkB,CAAC;AAC1B,OAAO,iBAAiB,CAAC;AACzB,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,QAAQ,CAAC;AAGzE,OAAO,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,CAAC;AAE3D;;;GAGG;AACH,cACM,aAAc,SAAQ,SAAS;IACnC;;OAEG;IAEH,KAAK,SAAS;IAEd;;OAEG;IAEH,iBAAiB,UAAQ;IAEzB;;OAEG;IAEH,WAAW,UAAS;IAEpB;;OAEG;IAEH,YAAY,SAAO;IAEnB;;OAEG;IAEH,YAAY,SAAO;IAEnB;;OAEG;IAEH,IAAI,SAAQ;IAEZ,OAAO,CAAC,iBAAiB,KAAA;IAkBzB,SAAS,CAAC,qBAAqB;IAQ/B,MAAM;IAoBN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,aAAa,CAAC","file":"icon-button.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 } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport '../tooltip/index';\nimport '../button/index';\nimport CDSButton from '../button/button';\nimport { ICON_BUTTON_SIZE, ICON_BUTTON_TOOLTIP_ALIGNMENT } from './defs';\nimport styles from './icon-button.scss';\n\nexport { ICON_BUTTON_SIZE, ICON_BUTTON_TOOLTIP_ALIGNMENT };\n\n/**\n * Icon Button\n *\n */\n@customElement(`${prefix}-icon-button`)\nclass CDSIconButton extends CDSButton {\n /**\n * Specify how the trigger should align with the tooltip\n */\n @property({ reflect: true, type: String })\n align = 'top';\n\n /**\n * Determines whether the tooltip should close when inner content is activated (click, Enter or Space)\n */\n @property({ attribute: 'close-on-activation', reflect: true, type: Boolean })\n closeOnActivation = true;\n\n /**\n * Specify whether the tooltip should be open when it first renders\n */\n @property({ reflect: true, type: Boolean })\n defaultOpen = false;\n\n /**\n * Specify the duration in milliseconds to delay before displaying the tooltip\n */\n @property({ attribute: 'enter-delay-ms', type: Number })\n enterDelayMs = 100;\n\n /**\n * Specify the duration in milliseconds to delay before hiding the tooltip\n */\n @property({ attribute: 'leave-delay-ms', type: Number })\n leaveDelayMs = 300;\n\n /**\n * Specify the size of the Button. Defaults to `md`.\n */\n @property({ reflect: true })\n size = 'md';\n\n updated(changedProperties) {\n if (changedProperties) {\n this.shadowRoot\n ?.querySelector(`${prefix}-tooltip`)\n ?.shadowRoot?.querySelector(`.${prefix}--tooltip`)\n ?.classList.add(`${prefix}--icon-tooltip`);\n\n const tooltipContent = this.querySelector(\n '[slot=tooltip-content]'\n )?.textContent;\n this.shadowRoot\n ?.querySelector(`${prefix}-tooltip`)\n ?.querySelector(`button`)\n ?.setAttribute('aria-label', String(tooltipContent));\n }\n }\n\n // eslint-disable-next-line class-methods-use-this\n protected _renderTooltipContent() {\n return html`\n <cds-tooltip-content>\n <slot name=\"tooltip-content\"></slot>\n </cds-tooltip-content>\n `;\n }\n\n render() {\n const {\n align,\n closeOnActivation,\n defaultOpen,\n enterDelayMs,\n leaveDelayMs,\n } = this;\n return html`\n <cds-tooltip\n align=${align}\n ?defaultOpen=${defaultOpen}\n close-on-activation=\"${closeOnActivation}\"\n enter-delay-ms=${enterDelayMs}\n leave-delay-ms=${leaveDelayMs}>\n ${super.render()} ${this._renderTooltipContent()}\n </cds-tooltip>\n `;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default CDSIconButton;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/icon-button/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,eAAe,CAAC","file":"index.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport './icon-button';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/inline-loading/defs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,oBAAY,oBAAoB;IAC9B;;OAEG;IACH,QAAQ,aAAa;IAErB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,QAAQ,aAAa;IAErB;;OAEG;IACH,KAAK,UAAU;CAChB","file":"defs.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Loading state for inline loading spinner.\n */\nexport enum INLINE_LOADING_STATE {\n /**\n * Inactive state.\n */\n INACTIVE = 'inactive',\n\n /**\n * State for loading in progress.\n */\n ACTIVE = 'active',\n\n /**\n * State for loading successful.\n */\n FINISHED = 'finished',\n\n /**\n * State for loading failure.\n */\n ERROR = 'error',\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/inline-loading/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,kBAAkB,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 './inline-loading';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/inline-loading/inline-loading.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAQvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAI9C,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;;;GAIG;AACH,cACM,gBAAiB,SAAQ,UAAU;IACvC;;OAEG;IAEH,aAAa,SAAa;IAE1B;;OAEG;IACH,OAAO,CAAC,WAAW;IA8BnB;;OAEG;IAEH,MAAM,uBAA+B;IAErC,iBAAiB;IAOjB,MAAM;IAeN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,gBAAgB,CAAC","file":"inline-loading.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 { classMap } from 'lit/directives/class-map.js';\nimport CheckmarkFilled16 from '@carbon/icons/lib/checkmark--filled/16';\nimport ErrorFilled16 from '@carbon/icons/lib/error--filled/16';\nimport { prefix } from '../../globals/settings';\nimport LOADING_TYPE from '../loading/types';\nimport getLoadingIcon from '../loading/loading-icon';\nimport { INLINE_LOADING_STATE } from './defs';\nimport styles from './inline-loading.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\nexport { INLINE_LOADING_STATE };\n\n/**\n * Lnline loading spinner.\n *\n * @element cds-inline-loading\n */\n@customElement(`${prefix}-inline-loading`)\nclass CDSInlineLoading extends LitElement {\n /**\n * The assistive text for the spinner icon.\n */\n @property({ attribute: 'assistive-text' })\n assistiveText = 'Loading';\n\n /**\n * @returns The template for the status icon.\n */\n private _renderIcon() {\n const { assistiveText, status } = this;\n if (status === INLINE_LOADING_STATE.ERROR) {\n return ErrorFilled16({\n class: `${prefix}--inline-loading--error`,\n });\n }\n if (status === INLINE_LOADING_STATE.FINISHED) {\n return CheckmarkFilled16({\n class: `${prefix}--inline-loading__checkmark-container`,\n });\n }\n if (\n status === INLINE_LOADING_STATE.INACTIVE ||\n status === INLINE_LOADING_STATE.ACTIVE\n ) {\n const classes = classMap({\n [`${prefix}--loading`]: true,\n [`${prefix}--loading--small`]: true,\n [`${prefix}--loading--stop`]: status === INLINE_LOADING_STATE.INACTIVE,\n });\n return html`\n <div class=\"${classes}\">\n ${getLoadingIcon({ assistiveText, type: LOADING_TYPE.SMALL })}\n </div>\n `;\n }\n return undefined;\n }\n\n /**\n * The loading status.\n */\n @property({ reflect: true })\n status = INLINE_LOADING_STATE.ACTIVE;\n\n connectedCallback() {\n if (!this.hasAttribute('aria-live')) {\n this.setAttribute('aria-live', 'assertive');\n }\n super.connectedCallback();\n }\n\n render() {\n const statusIconResult = this._renderIcon();\n const statusIconWrapperResult = !statusIconResult\n ? undefined\n : html`\n <div class=\"${prefix}--inline-loading__animation\">\n ${statusIconResult}\n </div>\n `;\n return html`\n ${statusIconWrapperResult}\n <p class=\"${prefix}--inline-loading__text\"><slot></slot></p>\n `;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default CDSInlineLoading;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/layer/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,SAAS,CAAC","file":"index.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport './layer';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/layer/layer.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC;;;;;GAKG;AACH,cACM,QAAS,SAAQ,UAAU;IAC/B;;OAEG;IAEH,KAAK,SAAK;IAGV,MAAM,MAAC;IAEP,OAAO;IA2BP,MAAM;IAIN;;OAEG;IACH,MAAM,KAAK,aAAa,WAEvB;IAED;;OAEG;IACH,MAAM,KAAK,aAAa,WAEvB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,QAAQ,CAAC","file":"layer.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './layer.scss';\n\n/**\n * Basic layer\n *\n * @element cds-layer\n * @slot children - The elements contained within the component.\n */\n@customElement(`${prefix}-layer`)\nclass CDSLayer extends LitElement {\n /**\n * Specify the layer level and override any existing levels based on hierarchy\n */\n @property({ type: Number, reflect: true })\n level = 0;\n\n @property()\n layers;\n\n updated() {\n if (!this.layers) {\n this.layers = this.querySelectorAll(\n (this.constructor as typeof CDSLayer).selectorLayer\n );\n }\n\n this.layers.forEach((item) => {\n (item as HTMLElement).setAttribute(\n 'level',\n ((this.level + 1) % 3).toString()\n );\n });\n\n this.dispatchEvent(\n new CustomEvent((this.constructor as typeof CDSLayer).eventUseLayer, {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n layer: this,\n level: this.level,\n },\n })\n );\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n /**\n * A selector that selects a layer component.\n */\n static get selectorLayer() {\n return `${prefix}-layer`;\n }\n\n /**\n * A selector that selects a layer component.\n */\n static get eventUseLayer() {\n return `${prefix}-use-layer`;\n }\n\n static styles = styles;\n}\n\nexport default CDSLayer;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/link/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,QAAQ,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 './link';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/link/link.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAOvC;;GAEG;AACH,oBAAY,SAAS;IACnB;;OAEG;IACH,KAAK,OAAO;IAEZ;;OAEG;IACH,MAAM,OAAO;IAEb;;OAEG;IACH,KAAK,OAAO;CACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED;;;;;GAKG;AACH,cACM,OAAQ,SAAQ,YAAsB;IAC1C;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAS;IAEzB;;OAEG;IACH,SAAS,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK;IAY7C,SAAS,CAAC,SAAS,CAAC,EAAE,iBAAiB,GAAG,oBAAoB,CAAC;IAE/D;;OAEG;IACH,SAAS,KAAK,QAAQ,mHAUrB;IAED;;OAEG;IAEH,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;IAEpC;;OAEG;IAEH,SAAS,CAAC,YAAY;IAUtB;;OAEG;IACH,SAAS,CAAC,mBAAmB;IAO7B;;OAEG;IACH,SAAS,CAAC,WAAW;IAiCrB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,EAAG,MAAM,CAAC;IAElB;;OAEG;IAEH,IAAI,EAAG,MAAM,CAAC;IAEd;;OAEG;IAEH,QAAQ,EAAG,MAAM,CAAC;IAElB;;OAEG;IAEH,MAAM,UAAS;IAEf;;OAEG;IAEH,QAAQ,EAAG,MAAM,CAAC;IAElB;;OAEG;IAEH,IAAI,EAAG,MAAM,CAAC;IAEd;;OAEG;IAEH,GAAG,EAAG,MAAM,CAAC;IAEb;;OAEG;IAEH,IAAI,YAAoB;IAExB;;OAEG;IAEH,MAAM,EAAG,MAAM,CAAC;IAEhB;;OAEG;IAEH,IAAI,EAAG,MAAM,CAAC;IAEd;;OAEG;IAEH,OAAO,UAAS;IAEhB,MAAM;IAKN,MAAM,CAAC,iBAAiB;;;;MAGtB;IACF,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,OAAO,CAAC","file":"link.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 } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport FocusMixin from '../../globals/mixins/focus';\nimport styles from './link.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Link size.\n */\nexport enum LINK_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 * Link.\n *\n * @element cds-link\n * @csspart link The link.\n */\n@customElement(`${prefix}-link`)\nclass CDSLink extends FocusMixin(LitElement) {\n /**\n * `true` if there is an icon.\n */\n private _hasIcon = false;\n\n /**\n * Handles `slotchange` event.\n */\n protected _handleSlotChange({ target }: Event) {\n const { name } = target as HTMLSlotElement;\n const hasContent = (target as HTMLSlotElement)\n .assignedNodes()\n .some(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n this[name === 'icon' ? '_hasIcon' : ''] = hasContent;\n this.requestUpdate();\n }\n\n @query('#link')\n protected _linkNode?: HTMLAnchorElement | HTMLParagraphElement;\n\n /**\n * The CSS class list for the link node.\n */\n protected get _classes() {\n const { disabled, size, inline, visited, _hasIcon } = this;\n return classMap({\n [`${prefix}--link`]: true,\n [`${prefix}--link--disabled`]: disabled,\n [`${prefix}--link--icon`]: _hasIcon,\n [`${prefix}--link--inline`]: inline,\n [`${prefix}--link--${size}`]: size,\n [`${prefix}--link--visited`]: visited,\n });\n }\n\n /**\n * Handles `click` event on the `<a>`.\n */\n // eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-unused-vars\n protected _handleClick(_: MouseEvent) {}\n\n /**\n * @returns The inner content.\n */\n // eslint-disable-next-line class-methods-use-this\n protected _renderInner() {\n const { _hasIcon: hasIcon, _handleSlotChange: handleSlotChange } = this;\n return html`\n <slot @slotchange=\"${handleSlotChange}\"></slot>\n <div ?hidden=\"${!hasIcon}\" class=\"${prefix}--link__icon\">\n <slot name=\"icon\" @slotchange=\"${handleSlotChange}\"></slot>\n </div>\n `;\n }\n\n /**\n * @returns The disabled link content.\n */\n protected _renderDisabledLink() {\n const { _classes: classes } = this;\n return html`\n <p id=\"link\" part=\"link\" class=\"${classes}\">${this._renderInner()}</p>\n `;\n }\n\n /**\n * @returns The link content.\n */\n protected _renderLink() {\n const {\n download,\n href,\n hreflang,\n linkRole,\n ping,\n rel,\n target,\n type,\n _classes: classes,\n _handleClick: handleClick,\n } = this;\n return html`\n <a\n tabindex=\"0\"\n id=\"link\"\n role=\"${ifDefined(linkRole)}\"\n class=\"${classes}\"\n part=\"link\"\n download=\"${ifDefined(download)}\"\n href=\"${ifDefined(href)}\"\n hreflang=\"${ifDefined(hreflang)}\"\n ping=\"${ifDefined(ping)}\"\n rel=\"${ifDefined(rel)}\"\n target=\"${ifDefined(target)}\"\n type=\"${ifDefined(type)}\"\n @click=\"${handleClick}\">\n ${this._renderInner()}\n </a>\n `;\n }\n\n /**\n * `true` if the link should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * The default file name.\n */\n @property({ reflect: true })\n download!: string;\n\n /**\n * Link `href`.\n */\n @property({ reflect: true })\n href!: string;\n\n /**\n * The language of what `href` points to.\n */\n @property({ reflect: true })\n hreflang!: string;\n\n /**\n * `true` if the link should be inline.\n */\n @property({ type: Boolean, reflect: true })\n inline = false;\n\n /**\n * The a11y role for `<a>`.\n */\n @property({ attribute: 'link-role' })\n linkRole!: string;\n\n /**\n * URLs to ping.\n */\n @property({ reflect: true })\n ping!: string;\n\n /**\n * The link type.\n */\n @property({ reflect: true })\n rel!: string;\n\n /**\n * Link size.\n */\n @property({ reflect: true })\n size = LINK_SIZE.MEDIUM;\n\n /**\n * The link target.\n */\n @property({ reflect: true })\n target!: string;\n\n /**\n * MIME type of the `target`.\n */\n @property({ reflect: true })\n type!: string;\n\n /**\n * `true` if the link has been visited.\n */\n @property({ type: Boolean, reflect: true })\n visited = false;\n\n render() {\n const { disabled } = this;\n return disabled ? this._renderDisabledLink() : this._renderLink();\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default CDSLink;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/list/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,aAAa,CAAC;AACrB,OAAO,gBAAgB,CAAC;AACxB,OAAO,kBAAkB,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 './list-item';\nimport './ordered-list';\nimport './unordered-list';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/list/list-item.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC;;;;;GAKG;AACH,cACM,WAAY,SAAQ,UAAU;IAClC;;OAEG;IACH,OAAO,CAAC,eAAe,CAAS;IAEhC;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAM/B;;;OAGG;IAEH,MAAM,UAAS;IAEf,iBAAiB;IAgBjB,MAAM;IAeN;;OAEG;IACH,MAAM,KAAK,kBAAkB,WAE5B;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,WAAW,CAAC","file":"list-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 { prefix } from '../../globals/settings';\nimport styles from './list.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * List item.\n *\n * @element cds-list-item\n * @slot nested - The nested child list.\n */\n@customElement(`${prefix}-list-item`)\nclass CDSListItem extends LitElement {\n /**\n * `true` if there is slotted nested child list.\n */\n private _hasNestedChild = false;\n\n /**\n * Handles `slotchange` event for the `<slot>` for the nested child list.\n *\n * @param event The event.\n */\n private _handleSlotChangeNested({ target }: Event) {\n this._hasNestedChild =\n (target as HTMLSlotElement).assignedNodes().length > 0;\n this.requestUpdate();\n }\n\n /**\n * `true` if this list item is a child of a nested list.\n * `<cds-ordered-list>` or `<cds-unordered-list>` automatically sets this property.\n */\n @property({ type: Boolean, reflect: true })\n nested = false;\n\n connectedCallback() {\n // Uses attribute for lookup from child\n this.toggleAttribute(\n 'nested',\n Boolean(\n this.closest(\n (this.constructor as typeof CDSListItem).selectorNestedList\n )\n )\n );\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'listitem');\n }\n super.connectedCallback();\n }\n\n render() {\n const {\n _hasNestedChild: hasNestedChild,\n _handleSlotChangeNested: handleSlotChangeNested,\n } = this;\n return html`\n <slot></slot>\n <div\n ?hidden=\"${!hasNestedChild}\"\n class=\"${prefix}-ce--list__item__nested-child\">\n <slot name=\"nested\" @slotchange=\"${handleSlotChangeNested}\"></slot>\n </div>\n `;\n }\n\n /**\n * A selector that will return nested list.\n */\n static get selectorNestedList() {\n return `${prefix}-ordered-list[slot=\"nested\"],${prefix}-unordered-list[slot=\"nested\"]`;\n }\n\n static styles = styles;\n}\n\nexport default CDSListItem;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["components/list/ordered-list.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,gBAAgB,MAAM,kBAAkB,CAAC;AAGhD;;GAEG;AACH,cACM,cAAe,SAAQ,gBAAgB;IAC3C;;;OAGG;IAEH,MAAM,UAAS;IAEf,MAAM;CAaP;AAED,eAAe,cAAc,CAAC","file":"ordered-list.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 { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport CDSUnorderedList from './unordered-list';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Ordered list.\n */\n@customElement(`${prefix}-ordered-list`)\nclass CDSOrderedList extends CDSUnorderedList {\n /**\n * Specify whether the ordered list should use native list styles instead of\n * custom counter\n */\n @property({ type: Boolean, reflect: true })\n native = false;\n\n render() {\n const classes = classMap({\n [`${prefix}--list--ordered`]: !this.native,\n [`${prefix}--list--ordered--native`]: this.native,\n [`${prefix}--list--nested`]: this.getAttribute('slot') === 'nested',\n [`${prefix}--list--expressive`]: this.isExpressive,\n });\n return html`\n <ol class=\"${classes}\">\n <slot></slot>\n </ol>\n `;\n }\n}\n\nexport default CDSOrderedList;\n"]}