@infineon/infineon-design-system-stencil 33.1.1--canary.1824.75b5030250f4474f2c947b6e8dc7055bdc915c43.0 → 33.1.1--canary.1818.40b59d3e7e35c19c1cd5c4976a5aecca37653bcd.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 (754) hide show
  1. package/dist/cjs/ifx-accordion_2.cjs.entry.js +2 -2
  2. package/dist/cjs/ifx-accordion_2.cjs.entry.js.map +1 -1
  3. package/dist/cjs/ifx-alert_2.cjs.entry.js +2 -2
  4. package/dist/cjs/ifx-alert_2.cjs.entry.js.map +1 -1
  5. package/dist/cjs/ifx-badge.cjs.entry.js +1 -1
  6. package/dist/cjs/ifx-badge.cjs.entry.js.map +1 -1
  7. package/dist/cjs/ifx-basic-table.cjs.entry.js +2 -2
  8. package/dist/cjs/ifx-basic-table.cjs.entry.js.map +1 -1
  9. package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js +1 -1
  10. package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ifx-breadcrumb-item.cjs.entry.js +1 -1
  12. package/dist/cjs/ifx-breadcrumb-item.cjs.entry.js.map +1 -1
  13. package/dist/cjs/ifx-breadcrumb.cjs.entry.js +1 -1
  14. package/dist/cjs/ifx-breadcrumb.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ifx-button.cjs.entry.js +1 -1
  16. package/dist/cjs/ifx-button.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ifx-card-headline.cjs.entry.js +1 -1
  18. package/dist/cjs/ifx-card-headline.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ifx-card-links.cjs.entry.js +1 -1
  20. package/dist/cjs/ifx-card-links.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ifx-card-overline.cjs.entry.js +1 -1
  22. package/dist/cjs/ifx-card-overline.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ifx-card-text.cjs.entry.js +1 -1
  24. package/dist/cjs/ifx-card-text.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ifx-card.cjs.entry.js +1 -1
  26. package/dist/cjs/ifx-card.cjs.entry.js.map +1 -1
  27. package/dist/cjs/ifx-checkbox-group.cjs.entry.js +1 -1
  28. package/dist/cjs/ifx-checkbox-group.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ifx-checkbox.cjs.entry.js +1 -1
  30. package/dist/cjs/ifx-checkbox.cjs.entry.js.map +1 -1
  31. package/dist/cjs/ifx-chip_3.cjs.entry.js +4 -4
  32. package/dist/cjs/ifx-chip_3.cjs.entry.js.map +1 -1
  33. package/dist/cjs/ifx-dropdown-header.cjs.entry.js +1 -1
  34. package/dist/cjs/ifx-dropdown-header.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ifx-dropdown-item.cjs.entry.js +1 -1
  36. package/dist/cjs/ifx-dropdown-item.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ifx-dropdown-menu.cjs.entry.js +1 -1
  38. package/dist/cjs/ifx-dropdown-menu.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ifx-faq.cjs.entry.js +1 -1
  40. package/dist/cjs/ifx-filter-accordion.cjs.entry.js +2 -2
  41. package/dist/cjs/ifx-filter-bar.cjs.entry.js +1 -1
  42. package/dist/cjs/ifx-filter-search.cjs.entry.js +2 -2
  43. package/dist/cjs/ifx-filter-search.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ifx-filter-type-group.cjs.entry.js +1 -1
  45. package/dist/cjs/ifx-footer-column.cjs.entry.js +2 -2
  46. package/dist/cjs/ifx-footer-column.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ifx-footer.cjs.entry.js +5 -5
  48. package/dist/cjs/ifx-footer.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ifx-icon-button.cjs.entry.js +2 -2
  50. package/dist/cjs/ifx-icon-button.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ifx-icon.cjs.entry.js +1 -1
  52. package/dist/cjs/ifx-icons-preview.cjs.entry.js +1 -1
  53. package/dist/cjs/ifx-link.cjs.entry.js +2 -2
  54. package/dist/cjs/ifx-link.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ifx-list-entry.cjs.entry.js +1 -1
  56. package/dist/cjs/ifx-modal.cjs.entry.js +3 -3
  57. package/dist/cjs/ifx-modal.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ifx-multiselect.cjs.entry.js +1 -1
  59. package/dist/cjs/ifx-multiselect.cjs.entry.js.map +1 -1
  60. package/dist/cjs/ifx-navbar-item.cjs.entry.js +6 -6
  61. package/dist/cjs/ifx-navbar-item.cjs.entry.js.map +1 -1
  62. package/dist/cjs/ifx-navbar-profile.cjs.entry.js +4 -4
  63. package/dist/cjs/ifx-navbar-profile.cjs.entry.js.map +1 -1
  64. package/dist/cjs/ifx-navbar.cjs.entry.js +4 -4
  65. package/dist/cjs/ifx-navbar.cjs.entry.js.map +1 -1
  66. package/dist/cjs/ifx-notification.cjs.entry.js +3 -3
  67. package/dist/cjs/ifx-notification.cjs.entry.js.map +1 -1
  68. package/dist/cjs/ifx-number-indicator.cjs.entry.js +2 -2
  69. package/dist/cjs/ifx-number-indicator.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ifx-overview-table.cjs.entry.js +1 -1
  71. package/dist/cjs/ifx-progress-bar.cjs.entry.js +2 -2
  72. package/dist/cjs/ifx-progress-bar.cjs.entry.js.map +1 -1
  73. package/dist/cjs/ifx-radio-button-group.cjs.entry.js +2 -2
  74. package/dist/cjs/ifx-radio-button-group.cjs.entry.js.map +1 -1
  75. package/dist/cjs/ifx-radio-button.cjs.entry.js +3 -3
  76. package/dist/cjs/ifx-radio-button.cjs.entry.js.map +1 -1
  77. package/dist/cjs/ifx-search-bar.cjs.entry.js +2 -2
  78. package/dist/cjs/ifx-search-bar.cjs.entry.js.map +1 -1
  79. package/dist/cjs/ifx-search-field.cjs.entry.js +2 -2
  80. package/dist/cjs/ifx-search-field.cjs.entry.js.map +1 -1
  81. package/dist/cjs/ifx-segment.cjs.entry.js +2 -2
  82. package/dist/cjs/ifx-segment.cjs.entry.js.map +1 -1
  83. package/dist/cjs/ifx-segmented-control.cjs.entry.js +3 -3
  84. package/dist/cjs/ifx-segmented-control.cjs.entry.js.map +1 -1
  85. package/dist/cjs/ifx-select.cjs.entry.js +3 -3
  86. package/dist/cjs/ifx-select.cjs.entry.js.map +1 -1
  87. package/dist/cjs/ifx-sidebar-item.cjs.entry.js +6 -6
  88. package/dist/cjs/ifx-sidebar-item.cjs.entry.js.map +1 -1
  89. package/dist/cjs/ifx-sidebar-title.cjs.entry.js +2 -2
  90. package/dist/cjs/ifx-sidebar-title.cjs.entry.js.map +1 -1
  91. package/dist/cjs/ifx-sidebar.cjs.entry.js +6 -6
  92. package/dist/cjs/ifx-sidebar.cjs.entry.js.map +1 -1
  93. package/dist/cjs/ifx-slider.cjs.entry.js +3 -3
  94. package/dist/cjs/ifx-slider.cjs.entry.js.map +1 -1
  95. package/dist/cjs/ifx-spinner_2.cjs.entry.js +7 -7
  96. package/dist/cjs/ifx-spinner_2.cjs.entry.js.map +1 -1
  97. package/dist/cjs/ifx-status.cjs.entry.js +2 -2
  98. package/dist/cjs/ifx-status.cjs.entry.js.map +1 -1
  99. package/dist/cjs/ifx-step.cjs.entry.js +5 -5
  100. package/dist/cjs/ifx-step.cjs.entry.js.map +1 -1
  101. package/dist/cjs/ifx-stepper.cjs.entry.js +3 -3
  102. package/dist/cjs/ifx-stepper.cjs.entry.js.map +1 -1
  103. package/dist/cjs/ifx-switch.cjs.entry.js +2 -2
  104. package/dist/cjs/ifx-switch.cjs.entry.js.map +1 -1
  105. package/dist/cjs/ifx-tab.cjs.entry.js +1 -1
  106. package/dist/cjs/ifx-table.cjs.entry.js +3 -3
  107. package/dist/cjs/ifx-table.cjs.entry.js.map +1 -1
  108. package/dist/cjs/ifx-tabs.cjs.entry.js +3 -3
  109. package/dist/cjs/ifx-tabs.cjs.entry.js.map +1 -1
  110. package/dist/cjs/ifx-tag.cjs.entry.js +2 -2
  111. package/dist/cjs/ifx-tag.cjs.entry.js.map +1 -1
  112. package/dist/cjs/ifx-templates-ui.cjs.entry.js +1 -1
  113. package/dist/cjs/ifx-textarea.cjs.entry.js +2 -2
  114. package/dist/cjs/ifx-textarea.cjs.entry.js.map +1 -1
  115. package/dist/cjs/ifx-tooltip.cjs.entry.js +5 -5
  116. package/dist/cjs/ifx-tooltip.cjs.entry.js.map +1 -1
  117. package/dist/cjs/index-c9480f70.js +8 -12
  118. package/dist/cjs/infineon-design-system-stencil.cjs.js +1 -1
  119. package/dist/cjs/loader.cjs.js +1 -1
  120. package/dist/collection/collection-manifest.json +0 -1
  121. package/dist/collection/components/accordion/accordion.css +2 -2
  122. package/dist/collection/components/accordion/accordionItem.css +2 -2
  123. package/dist/collection/components/alert/alert.css +3 -3
  124. package/dist/collection/components/badge/badge.css +2 -2
  125. package/dist/collection/components/breadcrumb/breadcrumb-item-label.css +1 -1
  126. package/dist/collection/components/breadcrumb/breadcrumb-item.css +2 -2
  127. package/dist/collection/components/breadcrumb/breadcrumb.css +2 -2
  128. package/dist/collection/components/button/button.css +2 -2
  129. package/dist/collection/components/card/card-headline/card-headline.css +2 -2
  130. package/dist/collection/components/card/card-links/card-links.css +1 -1
  131. package/dist/collection/components/card/card-overline/card-overline.css +1 -1
  132. package/dist/collection/components/card/card-text/card-text.css +1 -1
  133. package/dist/collection/components/card/card.css +2 -2
  134. package/dist/collection/components/checkbox/checkbox.css +1 -1
  135. package/dist/collection/components/checkbox-group/checkbox-group.css +2 -2
  136. package/dist/collection/components/chip/chip-item/chip-item.css +1 -1
  137. package/dist/collection/components/chip/chip.css +1 -1
  138. package/dist/collection/components/dropdown/dropdown-header/dropdown-header.css +3 -3
  139. package/dist/collection/components/dropdown/dropdown-item/dropdown-item.css +2 -2
  140. package/dist/collection/components/dropdown/dropdown-menu/dropdown-menu.css +1 -1
  141. package/dist/collection/components/footer/footer-column.css +2 -2
  142. package/dist/collection/components/footer/footer-column.js +1 -1
  143. package/dist/collection/components/footer/footer.css +2 -2
  144. package/dist/collection/components/footer/footer.js +4 -4
  145. package/dist/collection/components/icon/infineonIconStencil.js +1 -1
  146. package/dist/collection/components/icon-button/icon-button.css +1 -1
  147. package/dist/collection/components/icon-button/icon-button.js +1 -1
  148. package/dist/collection/components/icons-preview/icons-preview.js +1 -1
  149. package/dist/collection/components/link/link.css +2 -2
  150. package/dist/collection/components/link/link.js +1 -1
  151. package/dist/collection/components/modal/modal.css +2 -2
  152. package/dist/collection/components/modal/modal.js +2 -2
  153. package/dist/collection/components/navigation/navbar/navbar-item.css +3 -3
  154. package/dist/collection/components/navigation/navbar/navbar-item.js +5 -5
  155. package/dist/collection/components/navigation/navbar/navbar-profile.js +3 -3
  156. package/dist/collection/components/navigation/navbar/navbar.css +3 -3
  157. package/dist/collection/components/navigation/navbar/navbar.js +3 -3
  158. package/dist/collection/components/navigation/sidebar/sidebar-item.css +2 -2
  159. package/dist/collection/components/navigation/sidebar/sidebar-item.js +5 -5
  160. package/dist/collection/components/navigation/sidebar/sidebar-title.css +1 -1
  161. package/dist/collection/components/navigation/sidebar/sidebar-title.js +1 -1
  162. package/dist/collection/components/navigation/sidebar/sidebar.css +2 -2
  163. package/dist/collection/components/navigation/sidebar/sidebar.js +5 -5
  164. package/dist/collection/components/notification/notification.css +2 -2
  165. package/dist/collection/components/notification/notification.js +2 -2
  166. package/dist/collection/components/number-indicator/number-indicator.css +1 -1
  167. package/dist/collection/components/number-indicator/number-indicator.js +1 -1
  168. package/dist/collection/components/overview-table/overview-table.js +1 -1
  169. package/dist/collection/components/pagination/pagination.css +2 -2
  170. package/dist/collection/components/pagination/pagination.js +1 -1
  171. package/dist/collection/components/progress-bar/progress-bar.css +2 -2
  172. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  173. package/dist/collection/components/radio-button/radio-button.css +2 -2
  174. package/dist/collection/components/radio-button/radio-button.js +2 -2
  175. package/dist/collection/components/radio-button-group/radio-button-group.css +2 -2
  176. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  177. package/dist/collection/components/search-bar/search-bar.css +2 -2
  178. package/dist/collection/components/search-bar/search-bar.js +1 -1
  179. package/dist/collection/components/search-field/search-field.css +2 -2
  180. package/dist/collection/components/search-field/search-field.js +1 -1
  181. package/dist/collection/components/segmented-control/segment/segment.css +1 -1
  182. package/dist/collection/components/segmented-control/segment/segment.js +1 -1
  183. package/dist/collection/components/segmented-control/segmented-control.css +1 -1
  184. package/dist/collection/components/segmented-control/segmented-control.js +2 -2
  185. package/dist/collection/components/select/multi-select/multiselect.css +2 -2
  186. package/dist/collection/components/select/single-select/select.css +2 -2
  187. package/dist/collection/components/select/single-select/select.js +2 -2
  188. package/dist/collection/components/slider/slider.css +1 -1
  189. package/dist/collection/components/slider/slider.js +2 -2
  190. package/dist/collection/components/spinner/spinner.js +2 -2
  191. package/dist/collection/components/status/status.css +2 -2
  192. package/dist/collection/components/status/status.js +1 -1
  193. package/dist/collection/components/stepper/step/step.css +1 -1
  194. package/dist/collection/components/stepper/step/step.js +4 -4
  195. package/dist/collection/components/stepper/stepper.css +1 -1
  196. package/dist/collection/components/stepper/stepper.js +2 -2
  197. package/dist/collection/components/switch/switch.css +1 -1
  198. package/dist/collection/components/switch/switch.js +1 -1
  199. package/dist/collection/components/table-advanced-version/filter-bar/filter-bar.js +1 -1
  200. package/dist/collection/components/table-advanced-version/filter-type-group/filter-accordion/filter-accordion.js +2 -2
  201. package/dist/collection/components/table-advanced-version/filter-type-group/filter-search/filter-search.css +2 -2
  202. package/dist/collection/components/table-advanced-version/filter-type-group/filter-search/filter-search.js +1 -1
  203. package/dist/collection/components/table-advanced-version/filter-type-group/filter-type-group.js +1 -1
  204. package/dist/collection/components/table-advanced-version/list/list-entry/list-entry.js +1 -1
  205. package/dist/collection/components/table-advanced-version/table.css +2 -2
  206. package/dist/collection/components/table-advanced-version/table.js +2 -2
  207. package/dist/collection/components/table-basic-version/table.css +2 -2
  208. package/dist/collection/components/table-basic-version/table.js +1 -1
  209. package/dist/collection/components/tabs/tab.js +1 -1
  210. package/dist/collection/components/tabs/tabs.css +2 -2
  211. package/dist/collection/components/tabs/tabs.js +2 -2
  212. package/dist/collection/components/tag/tag.css +2 -2
  213. package/dist/collection/components/tag/tag.js +1 -1
  214. package/dist/collection/components/templates/template/template.js +1 -1
  215. package/dist/collection/components/templates/templates-ui/templates-ui.js +1 -1
  216. package/dist/collection/components/text-field/text-field.css +2 -2
  217. package/dist/collection/components/text-field/text-field.js +4 -4
  218. package/dist/collection/components/textarea/textarea.css +1 -1
  219. package/dist/collection/components/textarea/textarea.js +1 -1
  220. package/dist/collection/components/tooltip/tooltip.css +2 -2
  221. package/dist/collection/components/tooltip/tooltip.js +4 -4
  222. package/dist/collection/global/font-import.js +2 -0
  223. package/dist/collection/global/font-import.js.map +1 -0
  224. package/dist/collection/index.js +1 -0
  225. package/dist/collection/index.js.map +1 -1
  226. package/dist/collection/stories/setup-and-installation/faq/faq.js +1 -1
  227. package/dist/components/ifx-accordion-item.js +1 -1
  228. package/dist/components/ifx-accordion.js +1 -1
  229. package/dist/components/ifx-alert.js +1 -1
  230. package/dist/components/ifx-badge.js +1 -1
  231. package/dist/components/ifx-badge.js.map +1 -1
  232. package/dist/components/ifx-basic-table.js +2 -2
  233. package/dist/components/ifx-basic-table.js.map +1 -1
  234. package/dist/components/ifx-breadcrumb-item-label.js +2 -2
  235. package/dist/components/ifx-breadcrumb-item-label.js.map +1 -1
  236. package/dist/components/ifx-breadcrumb-item.js +1 -1
  237. package/dist/components/ifx-breadcrumb-item.js.map +1 -1
  238. package/dist/components/ifx-breadcrumb.js +1 -1
  239. package/dist/components/ifx-breadcrumb.js.map +1 -1
  240. package/dist/components/ifx-button.js +1 -1
  241. package/dist/components/ifx-card-headline.js +1 -1
  242. package/dist/components/ifx-card-headline.js.map +1 -1
  243. package/dist/components/ifx-card-links.js +1 -1
  244. package/dist/components/ifx-card-links.js.map +1 -1
  245. package/dist/components/ifx-card-overline.js +1 -1
  246. package/dist/components/ifx-card-overline.js.map +1 -1
  247. package/dist/components/ifx-card-text.js +1 -1
  248. package/dist/components/ifx-card-text.js.map +1 -1
  249. package/dist/components/ifx-card.js +1 -1
  250. package/dist/components/ifx-card.js.map +1 -1
  251. package/dist/components/ifx-checkbox-group.js +2 -2
  252. package/dist/components/ifx-checkbox-group.js.map +1 -1
  253. package/dist/components/ifx-checkbox.js +1 -1
  254. package/dist/components/ifx-chip-item.js +1 -1
  255. package/dist/components/ifx-chip.js +1 -1
  256. package/dist/components/ifx-date-picker.js +1 -1
  257. package/dist/components/ifx-download.js +1 -1
  258. package/dist/components/ifx-dropdown-header.js +1 -1
  259. package/dist/components/ifx-dropdown-header.js.map +1 -1
  260. package/dist/components/ifx-dropdown-item.js +2 -2
  261. package/dist/components/ifx-dropdown-item.js.map +1 -1
  262. package/dist/components/ifx-dropdown-menu.js +1 -1
  263. package/dist/components/ifx-dropdown-menu.js.map +1 -1
  264. package/dist/components/ifx-dropdown-trigger-button.js +2 -2
  265. package/dist/components/ifx-faq.js +4 -4
  266. package/dist/components/ifx-filter-accordion.js +4 -4
  267. package/dist/components/ifx-filter-bar.js +3 -3
  268. package/dist/components/ifx-filter-search.js +4 -4
  269. package/dist/components/ifx-filter-search.js.map +1 -1
  270. package/dist/components/ifx-filter-type-group.js +1 -1
  271. package/dist/components/ifx-footer-column.js +2 -2
  272. package/dist/components/ifx-footer-column.js.map +1 -1
  273. package/dist/components/ifx-footer.js +5 -5
  274. package/dist/components/ifx-footer.js.map +1 -1
  275. package/dist/components/ifx-icon-button.js +1 -1
  276. package/dist/components/ifx-icon.js +1 -1
  277. package/dist/components/ifx-icons-preview.js +4 -4
  278. package/dist/components/ifx-link.js +1 -1
  279. package/dist/components/ifx-list-entry.js +4 -4
  280. package/dist/components/ifx-list.js +2 -2
  281. package/dist/components/ifx-modal.js +5 -5
  282. package/dist/components/ifx-modal.js.map +1 -1
  283. package/dist/components/ifx-multiselect.js +1 -1
  284. package/dist/components/ifx-navbar-item.js +8 -8
  285. package/dist/components/ifx-navbar-item.js.map +1 -1
  286. package/dist/components/ifx-navbar-profile.js +4 -4
  287. package/dist/components/ifx-navbar-profile.js.map +1 -1
  288. package/dist/components/ifx-navbar.js +5 -5
  289. package/dist/components/ifx-navbar.js.map +1 -1
  290. package/dist/components/ifx-notification.js +1 -1
  291. package/dist/components/ifx-number-indicator.js +1 -1
  292. package/dist/components/ifx-overview-table.js +4 -4
  293. package/dist/components/ifx-pagination.js +1 -1
  294. package/dist/components/ifx-progress-bar.js +49 -1
  295. package/dist/components/ifx-progress-bar.js.map +1 -1
  296. package/dist/components/ifx-radio-button-group.js +3 -3
  297. package/dist/components/ifx-radio-button-group.js.map +1 -1
  298. package/dist/components/ifx-radio-button.js +1 -1
  299. package/dist/components/ifx-search-bar.js +4 -4
  300. package/dist/components/ifx-search-bar.js.map +1 -1
  301. package/dist/components/ifx-search-field.js +1 -1
  302. package/dist/components/ifx-segment.js +3 -3
  303. package/dist/components/ifx-segment.js.map +1 -1
  304. package/dist/components/ifx-segmented-control.js +4 -4
  305. package/dist/components/ifx-segmented-control.js.map +1 -1
  306. package/dist/components/ifx-select.js +1 -1
  307. package/dist/components/ifx-set-filter.js +5 -5
  308. package/dist/components/ifx-sidebar-item.js +8 -8
  309. package/dist/components/ifx-sidebar-item.js.map +1 -1
  310. package/dist/components/ifx-sidebar-title.js +2 -2
  311. package/dist/components/ifx-sidebar-title.js.map +1 -1
  312. package/dist/components/ifx-sidebar.js +6 -6
  313. package/dist/components/ifx-sidebar.js.map +1 -1
  314. package/dist/components/ifx-slider.js +4 -4
  315. package/dist/components/ifx-slider.js.map +1 -1
  316. package/dist/components/ifx-spinner.js +1 -1
  317. package/dist/components/ifx-status.js +2 -2
  318. package/dist/components/ifx-status.js.map +1 -1
  319. package/dist/components/ifx-step.js +6 -6
  320. package/dist/components/ifx-step.js.map +1 -1
  321. package/dist/components/ifx-stepper.js +3 -3
  322. package/dist/components/ifx-stepper.js.map +1 -1
  323. package/dist/components/ifx-switch.js +2 -2
  324. package/dist/components/ifx-switch.js.map +1 -1
  325. package/dist/components/ifx-tab.js +1 -1
  326. package/dist/components/ifx-table.js +12 -12
  327. package/dist/components/ifx-table.js.map +1 -1
  328. package/dist/components/ifx-tabs.js +4 -4
  329. package/dist/components/ifx-tabs.js.map +1 -1
  330. package/dist/components/ifx-tag.js +3 -3
  331. package/dist/components/ifx-tag.js.map +1 -1
  332. package/dist/components/ifx-template.js +1 -1
  333. package/dist/components/ifx-templates-ui.js +9 -9
  334. package/dist/components/ifx-text-field.js +1 -1
  335. package/dist/components/ifx-textarea.js +2 -2
  336. package/dist/components/ifx-textarea.js.map +1 -1
  337. package/dist/components/ifx-tooltip.js +6 -6
  338. package/dist/components/ifx-tooltip.js.map +1 -1
  339. package/dist/components/{p-bef5241a.js → p-0532943e.js} +5 -5
  340. package/dist/components/{p-bef5241a.js.map → p-0532943e.js.map} +1 -1
  341. package/dist/components/{p-461cf021.js → p-1135e4bc.js} +4 -4
  342. package/dist/components/p-1135e4bc.js.map +1 -0
  343. package/dist/components/{p-fc183f8e.js → p-159bab57.js} +4 -4
  344. package/dist/components/p-159bab57.js.map +1 -0
  345. package/dist/components/{p-48f52e18.js → p-168c3958.js} +4 -4
  346. package/dist/components/p-168c3958.js.map +1 -0
  347. package/dist/components/p-1e09bbd5.js +116 -0
  348. package/dist/components/p-1e09bbd5.js.map +1 -0
  349. package/dist/components/{p-9306088d.js → p-21f34936.js} +3 -3
  350. package/dist/components/{p-9306088d.js.map → p-21f34936.js.map} +1 -1
  351. package/dist/components/p-2dce6116.js +68 -0
  352. package/dist/components/p-2dce6116.js.map +1 -0
  353. package/dist/components/{p-c2b0bf22.js → p-321de4c1.js} +2 -2
  354. package/dist/components/p-321de4c1.js.map +1 -0
  355. package/dist/components/{p-2bc9826e.js → p-3854eb62.js} +3 -3
  356. package/dist/components/p-3854eb62.js.map +1 -0
  357. package/dist/components/{p-ab514a04.js → p-3f31eb61.js} +6 -6
  358. package/dist/components/p-3f31eb61.js.map +1 -0
  359. package/dist/components/{p-846923e6.js → p-48300c0e.js} +3 -3
  360. package/dist/components/p-48300c0e.js.map +1 -0
  361. package/dist/components/{p-0e277223.js → p-519cb249.js} +3 -3
  362. package/dist/components/{p-0e277223.js.map → p-519cb249.js.map} +1 -1
  363. package/dist/components/{p-05c79468.js → p-5f6433e5.js} +7 -7
  364. package/dist/components/{p-05c79468.js.map → p-5f6433e5.js.map} +1 -1
  365. package/dist/components/{p-18b340af.js → p-642c6a2e.js} +3 -3
  366. package/dist/components/p-642c6a2e.js.map +1 -0
  367. package/dist/components/{p-cd9e4789.js → p-739ae786.js} +4 -4
  368. package/dist/components/p-739ae786.js.map +1 -0
  369. package/dist/components/{p-1678fee6.js → p-a09d7c2d.js} +4 -4
  370. package/dist/components/{p-1678fee6.js.map → p-a09d7c2d.js.map} +1 -1
  371. package/dist/components/{p-ccc83a43.js → p-aec56f39.js} +3 -3
  372. package/dist/components/p-aec56f39.js.map +1 -0
  373. package/dist/components/{p-905fb988.js → p-b619515f.js} +2 -2
  374. package/dist/components/p-b619515f.js.map +1 -0
  375. package/dist/components/{p-d1985f77.js → p-b73462cc.js} +4 -4
  376. package/dist/components/{p-d1985f77.js.map → p-b73462cc.js.map} +1 -1
  377. package/dist/components/{p-35d83f23.js → p-e7551b24.js} +2 -2
  378. package/dist/components/{p-35d83f23.js.map → p-e7551b24.js.map} +1 -1
  379. package/dist/esm/ifx-accordion_2.entry.js +2 -2
  380. package/dist/esm/ifx-accordion_2.entry.js.map +1 -1
  381. package/dist/esm/ifx-alert_2.entry.js +2 -2
  382. package/dist/esm/ifx-alert_2.entry.js.map +1 -1
  383. package/dist/esm/ifx-badge.entry.js +1 -1
  384. package/dist/esm/ifx-badge.entry.js.map +1 -1
  385. package/dist/esm/ifx-basic-table.entry.js +2 -2
  386. package/dist/esm/ifx-basic-table.entry.js.map +1 -1
  387. package/dist/esm/ifx-breadcrumb-item-label.entry.js +1 -1
  388. package/dist/esm/ifx-breadcrumb-item-label.entry.js.map +1 -1
  389. package/dist/esm/ifx-breadcrumb-item.entry.js +1 -1
  390. package/dist/esm/ifx-breadcrumb-item.entry.js.map +1 -1
  391. package/dist/esm/ifx-breadcrumb.entry.js +1 -1
  392. package/dist/esm/ifx-breadcrumb.entry.js.map +1 -1
  393. package/dist/esm/ifx-button.entry.js +1 -1
  394. package/dist/esm/ifx-button.entry.js.map +1 -1
  395. package/dist/esm/ifx-card-headline.entry.js +1 -1
  396. package/dist/esm/ifx-card-headline.entry.js.map +1 -1
  397. package/dist/esm/ifx-card-links.entry.js +1 -1
  398. package/dist/esm/ifx-card-links.entry.js.map +1 -1
  399. package/dist/esm/ifx-card-overline.entry.js +1 -1
  400. package/dist/esm/ifx-card-overline.entry.js.map +1 -1
  401. package/dist/esm/ifx-card-text.entry.js +1 -1
  402. package/dist/esm/ifx-card-text.entry.js.map +1 -1
  403. package/dist/esm/ifx-card.entry.js +1 -1
  404. package/dist/esm/ifx-card.entry.js.map +1 -1
  405. package/dist/esm/ifx-checkbox-group.entry.js +1 -1
  406. package/dist/esm/ifx-checkbox-group.entry.js.map +1 -1
  407. package/dist/esm/ifx-checkbox.entry.js +1 -1
  408. package/dist/esm/ifx-checkbox.entry.js.map +1 -1
  409. package/dist/esm/ifx-chip_3.entry.js +4 -4
  410. package/dist/esm/ifx-chip_3.entry.js.map +1 -1
  411. package/dist/esm/ifx-dropdown-header.entry.js +1 -1
  412. package/dist/esm/ifx-dropdown-header.entry.js.map +1 -1
  413. package/dist/esm/ifx-dropdown-item.entry.js +1 -1
  414. package/dist/esm/ifx-dropdown-item.entry.js.map +1 -1
  415. package/dist/esm/ifx-dropdown-menu.entry.js +1 -1
  416. package/dist/esm/ifx-dropdown-menu.entry.js.map +1 -1
  417. package/dist/esm/ifx-faq.entry.js +1 -1
  418. package/dist/esm/ifx-filter-accordion.entry.js +2 -2
  419. package/dist/esm/ifx-filter-bar.entry.js +1 -1
  420. package/dist/esm/ifx-filter-search.entry.js +2 -2
  421. package/dist/esm/ifx-filter-search.entry.js.map +1 -1
  422. package/dist/esm/ifx-filter-type-group.entry.js +1 -1
  423. package/dist/esm/ifx-footer-column.entry.js +2 -2
  424. package/dist/esm/ifx-footer-column.entry.js.map +1 -1
  425. package/dist/esm/ifx-footer.entry.js +5 -5
  426. package/dist/esm/ifx-footer.entry.js.map +1 -1
  427. package/dist/esm/ifx-icon-button.entry.js +2 -2
  428. package/dist/esm/ifx-icon-button.entry.js.map +1 -1
  429. package/dist/esm/ifx-icon.entry.js +1 -1
  430. package/dist/esm/ifx-icons-preview.entry.js +1 -1
  431. package/dist/esm/ifx-link.entry.js +2 -2
  432. package/dist/esm/ifx-link.entry.js.map +1 -1
  433. package/dist/esm/ifx-list-entry.entry.js +1 -1
  434. package/dist/esm/ifx-modal.entry.js +3 -3
  435. package/dist/esm/ifx-modal.entry.js.map +1 -1
  436. package/dist/esm/ifx-multiselect.entry.js +1 -1
  437. package/dist/esm/ifx-multiselect.entry.js.map +1 -1
  438. package/dist/esm/ifx-navbar-item.entry.js +6 -6
  439. package/dist/esm/ifx-navbar-item.entry.js.map +1 -1
  440. package/dist/esm/ifx-navbar-profile.entry.js +4 -4
  441. package/dist/esm/ifx-navbar-profile.entry.js.map +1 -1
  442. package/dist/esm/ifx-navbar.entry.js +4 -4
  443. package/dist/esm/ifx-navbar.entry.js.map +1 -1
  444. package/dist/esm/ifx-notification.entry.js +3 -3
  445. package/dist/esm/ifx-notification.entry.js.map +1 -1
  446. package/dist/esm/ifx-number-indicator.entry.js +2 -2
  447. package/dist/esm/ifx-number-indicator.entry.js.map +1 -1
  448. package/dist/esm/ifx-overview-table.entry.js +1 -1
  449. package/dist/esm/ifx-progress-bar.entry.js +2 -2
  450. package/dist/esm/ifx-progress-bar.entry.js.map +1 -1
  451. package/dist/esm/ifx-radio-button-group.entry.js +2 -2
  452. package/dist/esm/ifx-radio-button-group.entry.js.map +1 -1
  453. package/dist/esm/ifx-radio-button.entry.js +3 -3
  454. package/dist/esm/ifx-radio-button.entry.js.map +1 -1
  455. package/dist/esm/ifx-search-bar.entry.js +2 -2
  456. package/dist/esm/ifx-search-bar.entry.js.map +1 -1
  457. package/dist/esm/ifx-search-field.entry.js +2 -2
  458. package/dist/esm/ifx-search-field.entry.js.map +1 -1
  459. package/dist/esm/ifx-segment.entry.js +2 -2
  460. package/dist/esm/ifx-segment.entry.js.map +1 -1
  461. package/dist/esm/ifx-segmented-control.entry.js +3 -3
  462. package/dist/esm/ifx-segmented-control.entry.js.map +1 -1
  463. package/dist/esm/ifx-select.entry.js +3 -3
  464. package/dist/esm/ifx-select.entry.js.map +1 -1
  465. package/dist/esm/ifx-sidebar-item.entry.js +6 -6
  466. package/dist/esm/ifx-sidebar-item.entry.js.map +1 -1
  467. package/dist/esm/ifx-sidebar-title.entry.js +2 -2
  468. package/dist/esm/ifx-sidebar-title.entry.js.map +1 -1
  469. package/dist/esm/ifx-sidebar.entry.js +6 -6
  470. package/dist/esm/ifx-sidebar.entry.js.map +1 -1
  471. package/dist/esm/ifx-slider.entry.js +3 -3
  472. package/dist/esm/ifx-slider.entry.js.map +1 -1
  473. package/dist/esm/ifx-spinner_2.entry.js +7 -7
  474. package/dist/esm/ifx-spinner_2.entry.js.map +1 -1
  475. package/dist/esm/ifx-status.entry.js +2 -2
  476. package/dist/esm/ifx-status.entry.js.map +1 -1
  477. package/dist/esm/ifx-step.entry.js +5 -5
  478. package/dist/esm/ifx-step.entry.js.map +1 -1
  479. package/dist/esm/ifx-stepper.entry.js +3 -3
  480. package/dist/esm/ifx-stepper.entry.js.map +1 -1
  481. package/dist/esm/ifx-switch.entry.js +2 -2
  482. package/dist/esm/ifx-switch.entry.js.map +1 -1
  483. package/dist/esm/ifx-tab.entry.js +1 -1
  484. package/dist/esm/ifx-table.entry.js +3 -3
  485. package/dist/esm/ifx-table.entry.js.map +1 -1
  486. package/dist/esm/ifx-tabs.entry.js +3 -3
  487. package/dist/esm/ifx-tabs.entry.js.map +1 -1
  488. package/dist/esm/ifx-tag.entry.js +2 -2
  489. package/dist/esm/ifx-tag.entry.js.map +1 -1
  490. package/dist/esm/ifx-templates-ui.entry.js +1 -1
  491. package/dist/esm/ifx-textarea.entry.js +2 -2
  492. package/dist/esm/ifx-textarea.entry.js.map +1 -1
  493. package/dist/esm/ifx-tooltip.entry.js +5 -5
  494. package/dist/esm/ifx-tooltip.entry.js.map +1 -1
  495. package/dist/esm/index-c77e25a0.js +8 -12
  496. package/dist/esm/infineon-design-system-stencil.js +1 -1
  497. package/dist/esm/loader.js +1 -1
  498. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.css +1 -1
  499. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -1
  500. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js.map +1 -1
  501. package/dist/infineon-design-system-stencil/p-07e45186.entry.js +2 -0
  502. package/dist/infineon-design-system-stencil/{p-1dbd5a8f.entry.js.map → p-07e45186.entry.js.map} +1 -1
  503. package/dist/infineon-design-system-stencil/p-08e61ab9.entry.js +2 -0
  504. package/dist/infineon-design-system-stencil/p-08e61ab9.entry.js.map +1 -0
  505. package/dist/infineon-design-system-stencil/p-09f1748d.entry.js +2 -0
  506. package/dist/infineon-design-system-stencil/p-09f1748d.entry.js.map +1 -0
  507. package/dist/infineon-design-system-stencil/p-0a43ac11.entry.js +2 -0
  508. package/dist/infineon-design-system-stencil/p-0a43ac11.entry.js.map +1 -0
  509. package/dist/infineon-design-system-stencil/p-13c0d591.entry.js +2 -0
  510. package/dist/infineon-design-system-stencil/p-13c0d591.entry.js.map +1 -0
  511. package/dist/infineon-design-system-stencil/p-16cbfc56.entry.js +2 -0
  512. package/dist/infineon-design-system-stencil/p-16cbfc56.entry.js.map +1 -0
  513. package/dist/infineon-design-system-stencil/p-1818045f.entry.js +2 -0
  514. package/dist/infineon-design-system-stencil/p-1818045f.entry.js.map +1 -0
  515. package/dist/infineon-design-system-stencil/{p-5bc7c9cc.entry.js → p-1abbcdbc.entry.js} +2 -2
  516. package/dist/infineon-design-system-stencil/p-1b59a7f9.entry.js +2 -0
  517. package/dist/infineon-design-system-stencil/p-1b870109.entry.js +2 -0
  518. package/dist/infineon-design-system-stencil/p-1b870109.entry.js.map +1 -0
  519. package/dist/infineon-design-system-stencil/p-1e9f56d6.entry.js +2 -0
  520. package/dist/infineon-design-system-stencil/p-1e9f56d6.entry.js.map +1 -0
  521. package/dist/infineon-design-system-stencil/p-2418b99b.entry.js +2 -0
  522. package/dist/infineon-design-system-stencil/p-2418b99b.entry.js.map +1 -0
  523. package/dist/infineon-design-system-stencil/p-249d1657.entry.js +2 -0
  524. package/dist/infineon-design-system-stencil/p-249d1657.entry.js.map +1 -0
  525. package/dist/infineon-design-system-stencil/p-32e55c75.entry.js +2 -0
  526. package/dist/infineon-design-system-stencil/{p-582970ed.entry.js.map → p-32e55c75.entry.js.map} +1 -1
  527. package/dist/infineon-design-system-stencil/p-3725483d.entry.js +2 -0
  528. package/dist/infineon-design-system-stencil/p-3725483d.entry.js.map +1 -0
  529. package/dist/infineon-design-system-stencil/p-37282615.entry.js +2 -0
  530. package/dist/infineon-design-system-stencil/{p-6abc7111.entry.js.map → p-37282615.entry.js.map} +1 -1
  531. package/dist/infineon-design-system-stencil/{p-051f1f75.entry.js → p-37e75e7c.entry.js} +2 -2
  532. package/dist/infineon-design-system-stencil/p-3a1f64f5.entry.js +2 -0
  533. package/dist/infineon-design-system-stencil/p-3a1f64f5.entry.js.map +1 -0
  534. package/dist/infineon-design-system-stencil/p-3e2ac944.entry.js +2 -0
  535. package/dist/infineon-design-system-stencil/{p-7a977f98.entry.js.map → p-3e2ac944.entry.js.map} +1 -1
  536. package/dist/infineon-design-system-stencil/p-4562cd5b.entry.js +2 -0
  537. package/dist/infineon-design-system-stencil/p-4562cd5b.entry.js.map +1 -0
  538. package/dist/infineon-design-system-stencil/p-462dbc47.entry.js +2 -0
  539. package/dist/infineon-design-system-stencil/p-462dbc47.entry.js.map +1 -0
  540. package/dist/infineon-design-system-stencil/p-50ce73a9.entry.js +2 -0
  541. package/dist/infineon-design-system-stencil/p-50ce73a9.entry.js.map +1 -0
  542. package/dist/infineon-design-system-stencil/p-562aa71f.entry.js +2 -0
  543. package/dist/infineon-design-system-stencil/p-562aa71f.entry.js.map +1 -0
  544. package/dist/infineon-design-system-stencil/{p-474b0bda.entry.js → p-5ba50092.entry.js} +2 -2
  545. package/dist/infineon-design-system-stencil/p-5f7a47f4.entry.js +2 -0
  546. package/dist/infineon-design-system-stencil/p-5f7a47f4.entry.js.map +1 -0
  547. package/dist/infineon-design-system-stencil/p-64b2226e.entry.js +2 -0
  548. package/dist/infineon-design-system-stencil/p-64b2226e.entry.js.map +1 -0
  549. package/dist/infineon-design-system-stencil/p-65d9faca.entry.js +2 -0
  550. package/dist/infineon-design-system-stencil/p-66400797.entry.js +2 -0
  551. package/dist/infineon-design-system-stencil/p-66400797.entry.js.map +1 -0
  552. package/dist/infineon-design-system-stencil/{p-81391688.entry.js → p-6c61ffd8.entry.js} +2 -2
  553. package/dist/infineon-design-system-stencil/{p-81391688.entry.js.map → p-6c61ffd8.entry.js.map} +1 -1
  554. package/dist/infineon-design-system-stencil/{p-89f8f8c7.entry.js → p-6ee1b4e7.entry.js} +2 -2
  555. package/dist/infineon-design-system-stencil/p-704505ba.entry.js +2 -0
  556. package/dist/infineon-design-system-stencil/{p-13e47c02.entry.js.map → p-704505ba.entry.js.map} +1 -1
  557. package/dist/infineon-design-system-stencil/p-719432f0.entry.js +2 -0
  558. package/dist/infineon-design-system-stencil/p-719432f0.entry.js.map +1 -0
  559. package/dist/infineon-design-system-stencil/p-72a5ab87.entry.js +2 -0
  560. package/dist/infineon-design-system-stencil/{p-57351ddd.entry.js.map → p-72a5ab87.entry.js.map} +1 -1
  561. package/dist/infineon-design-system-stencil/p-737e27a0.entry.js +2 -0
  562. package/dist/infineon-design-system-stencil/{p-0d2595c0.entry.js.map → p-737e27a0.entry.js.map} +1 -1
  563. package/dist/infineon-design-system-stencil/p-75d16708.entry.js +2 -0
  564. package/dist/infineon-design-system-stencil/{p-38fd172b.entry.js.map → p-75d16708.entry.js.map} +1 -1
  565. package/dist/infineon-design-system-stencil/p-77446bb1.entry.js +2 -0
  566. package/dist/infineon-design-system-stencil/p-77446bb1.entry.js.map +1 -0
  567. package/dist/infineon-design-system-stencil/p-77658863.entry.js +2 -0
  568. package/dist/infineon-design-system-stencil/p-77658863.entry.js.map +1 -0
  569. package/dist/infineon-design-system-stencil/p-8dbe0add.entry.js +2 -0
  570. package/dist/infineon-design-system-stencil/p-9448106a.entry.js +2 -0
  571. package/dist/infineon-design-system-stencil/{p-0be5bec9.entry.js.map → p-9448106a.entry.js.map} +1 -1
  572. package/dist/infineon-design-system-stencil/p-98f8a17b.entry.js +2 -0
  573. package/dist/infineon-design-system-stencil/p-98f8a17b.entry.js.map +1 -0
  574. package/dist/infineon-design-system-stencil/p-9c5fa1df.entry.js +2 -0
  575. package/dist/infineon-design-system-stencil/{p-d4a4c134.entry.js.map → p-9c5fa1df.entry.js.map} +1 -1
  576. package/dist/infineon-design-system-stencil/p-9d6abcca.entry.js +2 -0
  577. package/dist/infineon-design-system-stencil/p-9d6abcca.entry.js.map +1 -0
  578. package/dist/infineon-design-system-stencil/p-9eeeeb64.entry.js +2 -0
  579. package/dist/infineon-design-system-stencil/{p-af1d9944.entry.js.map → p-9eeeeb64.entry.js.map} +1 -1
  580. package/dist/infineon-design-system-stencil/{p-38a17a09.entry.js → p-9feda3ff.entry.js} +2 -2
  581. package/dist/infineon-design-system-stencil/p-a7a58b05.entry.js +2 -0
  582. package/dist/infineon-design-system-stencil/p-a7a58b05.entry.js.map +1 -0
  583. package/dist/infineon-design-system-stencil/p-a817ebe2.entry.js +2 -0
  584. package/dist/infineon-design-system-stencil/{p-31f3dba0.entry.js.map → p-a817ebe2.entry.js.map} +1 -1
  585. package/dist/infineon-design-system-stencil/p-af76246e.entry.js +2 -0
  586. package/dist/infineon-design-system-stencil/p-af76246e.entry.js.map +1 -0
  587. package/dist/infineon-design-system-stencil/p-b5aaf108.entry.js +2 -0
  588. package/dist/infineon-design-system-stencil/p-b5aaf108.entry.js.map +1 -0
  589. package/dist/infineon-design-system-stencil/{p-ce55b323.entry.js → p-b7057914.entry.js} +2 -2
  590. package/dist/infineon-design-system-stencil/{p-99a53e43.entry.js → p-b9ae8f89.entry.js} +2 -2
  591. package/dist/infineon-design-system-stencil/p-b9ae8f89.entry.js.map +1 -0
  592. package/dist/infineon-design-system-stencil/p-bdf85a8a.entry.js +2 -0
  593. package/dist/infineon-design-system-stencil/p-bdf85a8a.entry.js.map +1 -0
  594. package/dist/infineon-design-system-stencil/p-be68c945.entry.js +2 -0
  595. package/dist/infineon-design-system-stencil/p-be68c945.entry.js.map +1 -0
  596. package/dist/infineon-design-system-stencil/p-c0777569.entry.js +2 -0
  597. package/dist/infineon-design-system-stencil/p-c0777569.entry.js.map +1 -0
  598. package/dist/infineon-design-system-stencil/{p-2170ccf1.entry.js → p-c74e3799.entry.js} +2 -2
  599. package/dist/infineon-design-system-stencil/p-c74e3799.entry.js.map +1 -0
  600. package/dist/infineon-design-system-stencil/p-cf15132b.entry.js +2 -0
  601. package/dist/infineon-design-system-stencil/p-cf15132b.entry.js.map +1 -0
  602. package/dist/infineon-design-system-stencil/p-d844504d.entry.js +2 -0
  603. package/dist/infineon-design-system-stencil/{p-e7c8d9bf.entry.js.map → p-d844504d.entry.js.map} +1 -1
  604. package/dist/infineon-design-system-stencil/p-df048806.entry.js +2 -0
  605. package/dist/infineon-design-system-stencil/p-df048806.entry.js.map +1 -0
  606. package/dist/infineon-design-system-stencil/{p-be9c2a02.entry.js → p-e2d0ad64.entry.js} +2 -2
  607. package/dist/infineon-design-system-stencil/p-ed58d2ce.entry.js +2 -0
  608. package/dist/infineon-design-system-stencil/p-ed58d2ce.entry.js.map +1 -0
  609. package/dist/infineon-design-system-stencil/p-ef2ec005.entry.js +2 -0
  610. package/dist/infineon-design-system-stencil/{p-0306ed65.entry.js.map → p-ef2ec005.entry.js.map} +1 -1
  611. package/dist/infineon-design-system-stencil/p-ef91bae6.entry.js +2 -0
  612. package/dist/infineon-design-system-stencil/p-ef91bae6.entry.js.map +1 -0
  613. package/dist/infineon-design-system-stencil/p-f99197dd.entry.js +2 -0
  614. package/dist/infineon-design-system-stencil/p-f99197dd.entry.js.map +1 -0
  615. package/dist/infineon-design-system-stencil/p-fbd1163b.entry.js +2 -0
  616. package/dist/infineon-design-system-stencil/p-fbd1163b.entry.js.map +1 -0
  617. package/dist/types/components.d.ts +0 -68
  618. package/dist/types/global/font-import.d.ts +1 -0
  619. package/dist/types/index.d.ts +1 -0
  620. package/package.json +1 -1
  621. package/dist/cjs/ifx-file-upload.cjs.entry.js +0 -322
  622. package/dist/cjs/ifx-file-upload.cjs.entry.js.map +0 -1
  623. package/dist/collection/components/file-upload/file-upload.css +0 -144
  624. package/dist/collection/components/file-upload/file-upload.js +0 -749
  625. package/dist/collection/components/file-upload/file-upload.js.map +0 -1
  626. package/dist/collection/components/file-upload/file-upload.stories.js +0 -144
  627. package/dist/collection/components/file-upload/file-upload.stories.js.map +0 -1
  628. package/dist/components/ifx-file-upload.d.ts +0 -11
  629. package/dist/components/ifx-file-upload.js +0 -377
  630. package/dist/components/ifx-file-upload.js.map +0 -1
  631. package/dist/components/p-18b340af.js.map +0 -1
  632. package/dist/components/p-2bc9826e.js.map +0 -1
  633. package/dist/components/p-2c77bbe2.js +0 -116
  634. package/dist/components/p-2c77bbe2.js.map +0 -1
  635. package/dist/components/p-461cf021.js.map +0 -1
  636. package/dist/components/p-48f52e18.js.map +0 -1
  637. package/dist/components/p-846923e6.js.map +0 -1
  638. package/dist/components/p-905fb988.js.map +0 -1
  639. package/dist/components/p-ab514a04.js.map +0 -1
  640. package/dist/components/p-c2b0bf22.js.map +0 -1
  641. package/dist/components/p-ccc83a43.js.map +0 -1
  642. package/dist/components/p-cd9e4789.js.map +0 -1
  643. package/dist/components/p-cf1e2d94.js +0 -53
  644. package/dist/components/p-cf1e2d94.js.map +0 -1
  645. package/dist/components/p-fa58a72c.js +0 -68
  646. package/dist/components/p-fa58a72c.js.map +0 -1
  647. package/dist/components/p-fc183f8e.js.map +0 -1
  648. package/dist/esm/ifx-file-upload.entry.js +0 -318
  649. package/dist/esm/ifx-file-upload.entry.js.map +0 -1
  650. package/dist/infineon-design-system-stencil/p-021719f5.entry.js +0 -2
  651. package/dist/infineon-design-system-stencil/p-02bf3e6a.entry.js +0 -2
  652. package/dist/infineon-design-system-stencil/p-02bf3e6a.entry.js.map +0 -1
  653. package/dist/infineon-design-system-stencil/p-0306ed65.entry.js +0 -2
  654. package/dist/infineon-design-system-stencil/p-08ded326.entry.js +0 -2
  655. package/dist/infineon-design-system-stencil/p-08ded326.entry.js.map +0 -1
  656. package/dist/infineon-design-system-stencil/p-0be5bec9.entry.js +0 -2
  657. package/dist/infineon-design-system-stencil/p-0d2595c0.entry.js +0 -2
  658. package/dist/infineon-design-system-stencil/p-13e47c02.entry.js +0 -2
  659. package/dist/infineon-design-system-stencil/p-18145ed5.entry.js +0 -2
  660. package/dist/infineon-design-system-stencil/p-18145ed5.entry.js.map +0 -1
  661. package/dist/infineon-design-system-stencil/p-1c80700d.entry.js +0 -2
  662. package/dist/infineon-design-system-stencil/p-1c80700d.entry.js.map +0 -1
  663. package/dist/infineon-design-system-stencil/p-1dbd5a8f.entry.js +0 -2
  664. package/dist/infineon-design-system-stencil/p-1fc608a3.entry.js +0 -2
  665. package/dist/infineon-design-system-stencil/p-1fc608a3.entry.js.map +0 -1
  666. package/dist/infineon-design-system-stencil/p-2170ccf1.entry.js.map +0 -1
  667. package/dist/infineon-design-system-stencil/p-31f3dba0.entry.js +0 -2
  668. package/dist/infineon-design-system-stencil/p-38fd172b.entry.js +0 -2
  669. package/dist/infineon-design-system-stencil/p-3d4c474f.entry.js +0 -2
  670. package/dist/infineon-design-system-stencil/p-3d4c474f.entry.js.map +0 -1
  671. package/dist/infineon-design-system-stencil/p-3f5e136b.entry.js +0 -2
  672. package/dist/infineon-design-system-stencil/p-3f5e136b.entry.js.map +0 -1
  673. package/dist/infineon-design-system-stencil/p-42234c99.entry.js +0 -2
  674. package/dist/infineon-design-system-stencil/p-42964c5d.entry.js +0 -2
  675. package/dist/infineon-design-system-stencil/p-42964c5d.entry.js.map +0 -1
  676. package/dist/infineon-design-system-stencil/p-44ffa393.entry.js +0 -2
  677. package/dist/infineon-design-system-stencil/p-44ffa393.entry.js.map +0 -1
  678. package/dist/infineon-design-system-stencil/p-4679e8ea.entry.js +0 -2
  679. package/dist/infineon-design-system-stencil/p-4679e8ea.entry.js.map +0 -1
  680. package/dist/infineon-design-system-stencil/p-51c067b1.entry.js +0 -2
  681. package/dist/infineon-design-system-stencil/p-51c067b1.entry.js.map +0 -1
  682. package/dist/infineon-design-system-stencil/p-534ef91b.entry.js +0 -2
  683. package/dist/infineon-design-system-stencil/p-534ef91b.entry.js.map +0 -1
  684. package/dist/infineon-design-system-stencil/p-54d98fa9.entry.js +0 -2
  685. package/dist/infineon-design-system-stencil/p-54d98fa9.entry.js.map +0 -1
  686. package/dist/infineon-design-system-stencil/p-57351ddd.entry.js +0 -2
  687. package/dist/infineon-design-system-stencil/p-582970ed.entry.js +0 -2
  688. package/dist/infineon-design-system-stencil/p-5bef967e.entry.js +0 -2
  689. package/dist/infineon-design-system-stencil/p-5bef967e.entry.js.map +0 -1
  690. package/dist/infineon-design-system-stencil/p-5e300ee5.entry.js +0 -2
  691. package/dist/infineon-design-system-stencil/p-5e300ee5.entry.js.map +0 -1
  692. package/dist/infineon-design-system-stencil/p-63679e7a.entry.js +0 -2
  693. package/dist/infineon-design-system-stencil/p-63679e7a.entry.js.map +0 -1
  694. package/dist/infineon-design-system-stencil/p-68f13949.entry.js +0 -2
  695. package/dist/infineon-design-system-stencil/p-68f13949.entry.js.map +0 -1
  696. package/dist/infineon-design-system-stencil/p-6abc7111.entry.js +0 -2
  697. package/dist/infineon-design-system-stencil/p-7103bb15.entry.js +0 -2
  698. package/dist/infineon-design-system-stencil/p-7103bb15.entry.js.map +0 -1
  699. package/dist/infineon-design-system-stencil/p-7a977f98.entry.js +0 -2
  700. package/dist/infineon-design-system-stencil/p-7f777885.entry.js +0 -2
  701. package/dist/infineon-design-system-stencil/p-7f777885.entry.js.map +0 -1
  702. package/dist/infineon-design-system-stencil/p-81b2a882.entry.js +0 -2
  703. package/dist/infineon-design-system-stencil/p-81b2a882.entry.js.map +0 -1
  704. package/dist/infineon-design-system-stencil/p-8319c8c5.entry.js +0 -2
  705. package/dist/infineon-design-system-stencil/p-8319c8c5.entry.js.map +0 -1
  706. package/dist/infineon-design-system-stencil/p-97100c2f.entry.js +0 -2
  707. package/dist/infineon-design-system-stencil/p-97100c2f.entry.js.map +0 -1
  708. package/dist/infineon-design-system-stencil/p-99a53e43.entry.js.map +0 -1
  709. package/dist/infineon-design-system-stencil/p-a26382ae.entry.js +0 -2
  710. package/dist/infineon-design-system-stencil/p-a26382ae.entry.js.map +0 -1
  711. package/dist/infineon-design-system-stencil/p-acf32338.entry.js +0 -2
  712. package/dist/infineon-design-system-stencil/p-acf32338.entry.js.map +0 -1
  713. package/dist/infineon-design-system-stencil/p-ad24c623.entry.js +0 -2
  714. package/dist/infineon-design-system-stencil/p-ad24c623.entry.js.map +0 -1
  715. package/dist/infineon-design-system-stencil/p-af1d9944.entry.js +0 -2
  716. package/dist/infineon-design-system-stencil/p-b2995f20.entry.js +0 -2
  717. package/dist/infineon-design-system-stencil/p-b2995f20.entry.js.map +0 -1
  718. package/dist/infineon-design-system-stencil/p-b4f0ce88.entry.js +0 -2
  719. package/dist/infineon-design-system-stencil/p-b4f0ce88.entry.js.map +0 -1
  720. package/dist/infineon-design-system-stencil/p-bbc83759.entry.js +0 -2
  721. package/dist/infineon-design-system-stencil/p-bbc83759.entry.js.map +0 -1
  722. package/dist/infineon-design-system-stencil/p-bdb0e937.entry.js +0 -2
  723. package/dist/infineon-design-system-stencil/p-c950abaf.entry.js +0 -2
  724. package/dist/infineon-design-system-stencil/p-c950abaf.entry.js.map +0 -1
  725. package/dist/infineon-design-system-stencil/p-ca42aecb.entry.js +0 -2
  726. package/dist/infineon-design-system-stencil/p-ca42aecb.entry.js.map +0 -1
  727. package/dist/infineon-design-system-stencil/p-cf96a19e.entry.js +0 -2
  728. package/dist/infineon-design-system-stencil/p-cf96a19e.entry.js.map +0 -1
  729. package/dist/infineon-design-system-stencil/p-d097a48f.entry.js +0 -2
  730. package/dist/infineon-design-system-stencil/p-d097a48f.entry.js.map +0 -1
  731. package/dist/infineon-design-system-stencil/p-d4a4c134.entry.js +0 -2
  732. package/dist/infineon-design-system-stencil/p-d66fc7fa.entry.js +0 -2
  733. package/dist/infineon-design-system-stencil/p-d66fc7fa.entry.js.map +0 -1
  734. package/dist/infineon-design-system-stencil/p-e54766be.entry.js +0 -2
  735. package/dist/infineon-design-system-stencil/p-e54766be.entry.js.map +0 -1
  736. package/dist/infineon-design-system-stencil/p-e6f4865a.entry.js +0 -2
  737. package/dist/infineon-design-system-stencil/p-e6f4865a.entry.js.map +0 -1
  738. package/dist/infineon-design-system-stencil/p-e7c8d9bf.entry.js +0 -2
  739. package/dist/infineon-design-system-stencil/p-ea24eca0.entry.js +0 -2
  740. package/dist/infineon-design-system-stencil/p-ea24eca0.entry.js.map +0 -1
  741. package/dist/infineon-design-system-stencil/p-edf98dc3.entry.js +0 -2
  742. package/dist/infineon-design-system-stencil/p-edf98dc3.entry.js.map +0 -1
  743. package/dist/types/components/file-upload/file-upload.d.ts +0 -88
  744. package/dist/types/components/file-upload/file-upload.stories.d.ts +0 -7
  745. /package/dist/infineon-design-system-stencil/{p-5bc7c9cc.entry.js.map → p-1abbcdbc.entry.js.map} +0 -0
  746. /package/dist/infineon-design-system-stencil/{p-021719f5.entry.js.map → p-1b59a7f9.entry.js.map} +0 -0
  747. /package/dist/infineon-design-system-stencil/{p-051f1f75.entry.js.map → p-37e75e7c.entry.js.map} +0 -0
  748. /package/dist/infineon-design-system-stencil/{p-474b0bda.entry.js.map → p-5ba50092.entry.js.map} +0 -0
  749. /package/dist/infineon-design-system-stencil/{p-bdb0e937.entry.js.map → p-65d9faca.entry.js.map} +0 -0
  750. /package/dist/infineon-design-system-stencil/{p-89f8f8c7.entry.js.map → p-6ee1b4e7.entry.js.map} +0 -0
  751. /package/dist/infineon-design-system-stencil/{p-42234c99.entry.js.map → p-8dbe0add.entry.js.map} +0 -0
  752. /package/dist/infineon-design-system-stencil/{p-38a17a09.entry.js.map → p-9feda3ff.entry.js.map} +0 -0
  753. /package/dist/infineon-design-system-stencil/{p-ce55b323.entry.js.map → p-b7057914.entry.js.map} +0 -0
  754. /package/dist/infineon-design-system-stencil/{p-be9c2a02.entry.js.map → p-e2d0ad64.entry.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"names":["navbarItemCss","IfxNavbarProfileStyle0","NavbarProfile","constructor","hostRef","this","showLabel","href","imageUrl","target","alt","userName","internalHref","isMenuItem","hasChildNavItems","internalImageUrl","type","value","defaultProfileImage","handleOutsideClick","event","path","composedPath","itemMenu","getItemMenu","classList","contains","includes","el","closeItemMenu","componentWillLoad","setHref","setImage","sidebarItems","getNavbarItems","length","componentDidLoad","setProfileGap","navItems","appendNavItemToMenu","hideComponent","style","display","showComponent","handleClassList","className","querySelectorAll","getNavBarItem","navItem","shadowRoot","querySelector","relocateUsingSlot","forEach","item","setAttribute","isValidHttpUrl","string","url","URL","_","protocol","toLowerCase","trim","undefined","innerContentWrapper","labelWrapper","labelSlot","nodes","assignedNodes","menu","menuItem","toggleItemMenu","itemHasNestedItems","childNavItem","render","h","key","class","onClick","src","encodeURIComponent","onSlotchange","name"],"sources":["src/components/navigation/navbar/navbar-item.scss?tag=ifx-navbar-profile&encapsulation=shadow","src/components/navigation/navbar/navbar-profile.tsx"],"sourcesContent":["@use \"~@infineon/design-system-tokens/dist/tokens\";\n\n:host(.hidden) {\n display: none;\n}\n\n.navbar__item {\n position: relative;\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 0px 8px;\n flex: none;\n order: 0;\n flex-grow: 0;\n font-family: var(--ifx-font-family, #{tokens.$ifxFontFamilyBody});\n text-decoration: none;\n font-weight: 400;\n font-size: 16px;\n color: tokens.$ifxColorBaseBlack;\n\n &.hide { \n display: none;\n }\n\n &.isParent { \n gap: 8px;\n }\n\n & .navItemIconWrapper { \n transition: .3s;\n }\n\n &.open { \n & .navItemIconWrapper { \n transform: rotate(-180deg);\n transition: .3s;\n }\n }\n\n &:hover {\n color: tokens.$ifxColorOcean500;\n cursor: pointer;\n\n & .username__tooltip { \n display: block;\n }\n\n & .navbar__container-right-content-navigation-item-icon-wrapper { \n & .initials__wrapper { \n cursor: pointer;\n background-color: tokens.$ifxColorOcean600;\n }\n }\n }\n\n &.remove {\n display: none;\n }\n\n &.removeLabel {\n & .label__wrapper {\n display: none;\n }\n }\n\n & .number__indicator-wrapper { \n position: relative;\n top: -11px;\n }\n\n & .dot__indicator-wrapper { \n display: flex;\n width: 8px;\n height: 8px;\n justify-content: center;\n align-items: center;\n flex-shrink: 0;\n border-radius: 50%;\n background-color: tokens.$ifxColorOcean500;\n position: relative;\n top: -11px;\n }\n\n & .navbar__container-right-content-navigation-item-icon-wrapper {\n position: relative;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding: 0px;\n gap: 8px;\n flex: none;\n order: 0;\n flex-grow: 0;\n\n \n & .username__tooltip { \n display: none;\n position: absolute;\n top: 35px;\n right: 0;\n text-wrap: nowrap;\n padding: 1px 5px;\n font-size: 13px;\n font-family: \"Source Sans 3\";\n background-color: black;\n color: #fff;\n z-index: 99;\n }\n\n &:hover { \n & .username__tooltip { \n display: block;\n }\n }\n\n & .initials__wrapper { \n display: flex;\n width: 24px;\n height: 24px;\n justify-content: center;\n align-items: center;\n border-radius: 100%;\n background-color: tokens.$ifxColorOcean500;\n\n & .initials { \n color: #FFF;\n text-align: center;\n font-family: \"Source Sans 3\";\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: 20px; \n\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n \n }\n }\n\n & img { \n width: 24px; \n height: 24px;\n border-radius: 100%;\n }\n\n &.removeWrapper {\n display: none;\n }\n\n &.hide {\n display: none;\n }\n }\n}\n\n.container { \n position: relative;\n\n & .sub__layer-back-button { \n display: none;\n &.show { \n display: flex;\n justify-content: flex-start;\n\n & .back__button-wrapper { \n display: flex;\n align-items: center;\n gap: tokens.$ifxSpace100;\n padding: tokens.$ifxSpace100 0 tokens.$ifxSpace200 0;\n color: tokens.$ifxColorOcean500;\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: 24px;\n\n & span, & ifx-icon { \n &:hover { \n cursor: pointer;\n }\n }\n\n }\n }\n }\n\n &.hide { \n display: none;\n }\n\n & .inner__content-wrapper { \n position: relative;\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n &.no-gap { \n gap: 0px;\n }\n\n & .navbar__container-right-content-navigation-item-icon-wrapper {\n &.no-gap { \n gap: 0px;\n }\n }\n\n & .number__indicator-wrapper { \n position: relative;\n top: -11px;\n }\n\n }\n}\n\n.navbar-menu {\n position: absolute;\n display: none;\n list-style-type: none;\n visibility: visible;\n flex-direction: column;\n width: 224px;\n min-width: 224px;\n background: tokens.$ifxColorBaseWhite;\n box-shadow: 0px 6px 9px 0px #1d1d1d1a;\n border: 1px solid tokens.$ifxColorEngineering200;\n padding: 8px 0px;\n font-family: var(--ifx-font-family, #{tokens.$ifxFontFamilyBody});\n\n &.open:not(.itemInMobileMenu) {\n display: flex;\n }\n\n &.itemInMobileMenu { \n display: none;\n }\n\n &.right { \n left: 100%;\n top: -40%;\n }\n\n &.left { \n top: -40%;\n right: 100%;\n }\n\n &.rightSideItemMenu { \n left: initial;\n right: 0px;\n }\n}\n\n.navbar__item { \n &.layer__item-parent { \n color: tokens.$ifxColorBaseBlack;\n font-size: 24px;\n font-style: normal;\n font-weight: 600;\n line-height: 32px; \n letter-spacing: -0.24px;\n cursor: initial;\n\n & .navbar__container-right-content-navigation-item-icon-wrapper { \n & ifx-icon { \n & svg { \n width: 24px;\n height: 24px;\n }\n }\n }\n }\n\n\n &.sidebarMenuItem { \n justify-content: space-between;\n padding: 0;\n }\n\n\n &.menuItem {\n text-decoration: none;\n color: tokens.$ifxColorBaseBlack;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 8px 16px;\n gap: 8px;\n font-family: var(--ifx-font-family, #{tokens.$ifxFontFamilyBody});\n \n &.hide {\n display: none;\n }\n \n & .label__wrapper {\n color: tokens.$ifxColorBaseBlack;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 24px;\n }\n \n &:hover {\n cursor: pointer;\n background-color: tokens.$ifxColorEngineering200;\n }\n \n &:active {\n background-color: tokens.$ifxColorEngineering300;\n }\n }\n}\n\n.sub__layer-menu { \n padding: 5px;\n display: none;\n\n &.remove__margin { \n margin: 0;\n padding: 0;\n }\n \n &.open { \n display: block;\n }\n}\n\n.navbar__item { \n &.hide { \n display: none;\n }\n}\n\n.menuItemRightIconWrapper { \n &.hide { \n display: none;\n }\n}\n\n.navItemIconWrapper { \n &.hide { \n display: none;\n }\n}\n\n","import { Component, h, Element, Prop, State, Listen, Method } from \"@stencil/core\";\n\n@Component({\n tag: 'ifx-navbar-profile',\n styleUrl: 'navbar-item.scss',\n shadow: true,\n assetsDirs: ['assets']\n})\n\nexport class NavbarProfile {\n\n @Element() el;\n @Prop() showLabel: boolean = true;\n @Prop() href: string = \"\"\n @Prop() imageUrl: string = \"\"\n @Prop() target: string = \"_self\";\n @Prop() alt: string = \"\"\n @Prop() userName: string = \"\";\n @State() internalHref: string = \"\"\n @State() isMenuItem: boolean = false;\n @State() hasChildNavItems: boolean = false;\n @State() internalImageUrl: any = {type: \"\", value: \"\"}\n \n private defaultProfileImage = `<svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect width=\"48\" height=\"48\" fill=\"#0A8276\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 14C21.7909 14 20 15.7909 20 18C20 20.2091 21.7909 22 24 22C26.2091 22 28 20.2091 28 18C28 15.7909 26.2091 14 24 14ZM18 18C18 14.6863 20.6863 12 24 12C27.3137 12 30 14.6863 30 18C30 21.3137 27.3137 24 24 24C20.6863 24 18 21.3137 18 18ZM16.5869 28.3984C18.2683 27.0179 20.7466 26 24 26C27.2541 26 29.7324 27.0209 31.4134 28.4024C33.0562 29.7526 34 31.5119 34 33V35C34 35.5523 33.5523 36 33 36H15C14.4477 36 14 35.5523 14 35V33C14 31.5074 14.9433 29.7479 16.5869 28.3984ZM17.8561 29.9441C16.5187 31.0421 16 32.2826 16 33V34H32V33C32 32.2881 31.4818 31.0474 30.1436 29.9476C28.8436 28.8791 26.8219 28 24 28C21.1774 28 19.1557 28.8771 17.8561 29.9441Z\" fill=\"white\"/>\n</svg>`\n\n @Listen('mousedown', { target: 'document' })\n handleOutsideClick(event: MouseEvent) {\n const path = event.composedPath();\n const itemMenu = this.getItemMenu()\n if(itemMenu) { \n if(itemMenu.classList.contains('open')) { \n if (!path.includes(this.el)) {\n this.closeItemMenu();\n }\n }\n }\n }\n\n componentWillLoad() {\n this.setHref()\n this.setImage()\n const sidebarItems = this.getNavbarItems();\n if (sidebarItems.length !== 0) {\n this.hasChildNavItems = true;\n } else {\n this.hasChildNavItems = false;\n }\n }\n\n componentDidLoad() { \n this.setProfileGap()\n if(this.hasChildNavItems) { \n const navItems = this.getNavbarItems();\n this.appendNavItemToMenu(navItems)\n }\n }\n\n @Method()\n async hideComponent() { \n this.el.style.display = 'none';\n }\n\n @Method()\n async showComponent() { \n this.el.style.display = '';\n }\n\n handleClassList(el, type, className) {\n el.classList[type](className)\n if (type === 'contains') {\n return el.classList.contains(className)\n }\n }\n\n getNavbarItems() {\n const navItems = this.el.querySelectorAll('ifx-navbar-item')\n return navItems;\n }\n \n getNavBarItem() { \n const navItem = this.el.shadowRoot.querySelector('.navbar__item')\n return navItem;\n }\n\n relocateUsingSlot(navItems) { \n navItems.forEach(item => {\n item.setAttribute('slot', 'first__layer')\n })\n }\n\n appendNavItemToMenu(navItems) { \n this.relocateUsingSlot(navItems)\n }\n\n isValidHttpUrl(string) {\n let url;\n \n try {\n url = new URL(string);\n } catch (_) {\n return false; \n }\n \n return url.protocol === \"http:\" || url.protocol === \"https:\";\n }\n\n setImage() { \n if (this.imageUrl.toLowerCase().trim() === \"\") {\n this.internalImageUrl = {type: undefined, value: \"\"}\n } else if(this.isValidHttpUrl(this.imageUrl)) {\n this.internalImageUrl = { type: 'url', value: this.imageUrl}\n } else { \n this.internalImageUrl = { type: 'initials', value: this.imageUrl}\n }\n }\n\n setHref() {\n if (this.href.toLowerCase().trim() === \"\") {\n this.internalHref = undefined;\n } else this.internalHref = this.href;\n }\n\n setProfileGap() { \n const innerContentWrapper = this.el.shadowRoot.querySelector('.inner__content-wrapper')\n const labelWrapper = this.el.shadowRoot.querySelector('.label__wrapper')\n const labelSlot = labelWrapper.querySelector('slot')\n const nodes = labelSlot.assignedNodes();\n if(!nodes.length) { \n this.handleClassList(innerContentWrapper, 'add', 'no-gap')\n } else { \n this.handleClassList(innerContentWrapper, 'remove', 'no-gap')\n }\n }\n\n getItemMenu() { \n const menu = this.el.shadowRoot.querySelector('.navbar-menu');\n return menu;\n }\n\n closeItemMenu() { \n const itemMenu = this.getItemMenu()\n const menuItem = this.getNavBarItem()\n if(itemMenu) { \n this.handleClassList(itemMenu, 'remove', 'open')\n this.handleClassList(menuItem, 'remove', 'open')\n }\n }\n\n toggleItemMenu() {\n if(!this.internalHref) { \n if(this.isMenuItem && this.hasChildNavItems) { \n const itemMenu = this.getItemMenu()\n this.handleClassList(itemMenu, 'add', 'right')\n }\n \n if(this.hasChildNavItems) { \n const itemMenu = this.getItemMenu();\n const menuItem = this.getNavBarItem()\n this.handleClassList(itemMenu, 'toggle', 'open');\n this.handleClassList(menuItem, 'toggle', 'open');\n } \n }\n }\n\n itemHasNestedItems() { \n const childNavItem = this.el.shadowRoot.querySelector('ifx-navbar-item')\n if(childNavItem) { \n return true;\n } else {\n return false;\n }\n }\n\n\n render() {\n return (\n <div class=\"container\">\n <a href={this.internalHref} target={this.target} onClick={() => this.toggleItemMenu()} class= {`navbar__item ${!this.showLabel ? 'removeLabel' : \"\"} ${this.hasChildNavItems ? 'isParent' : \"\"}`}>\n <div class=\"inner__content-wrapper\">\n <div class={`navbar__container-right-content-navigation-item-icon-wrapper`}>\n {this.userName.trim() !== \"\" && <div class='username__tooltip'>{this.userName}</div>}\n\n {this.internalImageUrl.type !== 'initials' && \n <img src={ this.internalImageUrl.type === 'url' ? this.internalImageUrl.value : `data:image/svg+xml,${encodeURIComponent(this.defaultProfileImage)}`} alt={this.alt} />}\n\n {this.internalImageUrl.type === 'initials' && \n <div class=\"initials__wrapper\">\n <span class=\"initials\">{this.internalImageUrl.value}</span>\n </div>}\n \n </div>\n <span class=\"label__wrapper\">\n <slot onSlotchange={() => this.setProfileGap()} />\n </span>\n </div>\n {/* {this.userName.trim() !== \"\" && <div class='username__tooltip'>{this.userName}</div>} */}\n </a>\n \n {this.hasChildNavItems && <ul class='navbar-menu rightSideItemMenu'> <slot name=\"first__layer\" /> </ul>}\n </div>\n )\n }\n}"],"mappings":"kDAAA,MAAMA,EAAgB,2+JACtB,MAAAC,EAAeD,E,MCQFE,EAAa,MAP1B,WAAAC,CAAAC,G,UAUUC,KAAAC,UAAqB,KACrBD,KAAAE,KAAe,GACfF,KAAAG,SAAmB,GACnBH,KAAAI,OAAiB,QACjBJ,KAAAK,IAAc,GACdL,KAAAM,SAAmB,GAClBN,KAAAO,aAAuB,GACvBP,KAAAQ,WAAsB,MACtBR,KAAAS,iBAA4B,MAC5BT,KAAAU,iBAAwB,CAACC,KAAM,GAAIC,MAAO,IAE3CZ,KAAAa,oBAAsB,q2B,CAM9B,kBAAAC,CAAmBC,GACjB,MAAM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kBAAAE,GACE,MAAMC,EAAepE,KAAKuB,GAAGqB,WAAWC,cAAc,mBACtD,GAAGuB,EAAc,CACf,OAAO,I,KACF,CACL,OAAO,K,EAKX,MAAAC,GACE,OACEC,EAAA,OAAAC,IAAA,2CAAKC,MAAM,aACTF,EAAA,KAAAC,IAAA,2CAAGrE,KAAMF,KAAKO,aAAcH,OAAQJ,KAAKI,OAAQqE,QAAS,IAAMzE,KAAKkE,iBAAkBM,MAAU,iBAAiBxE,KAAKC,UAAY,cAAgB,MAAMD,KAAKS,iBAAmB,WAAa,MAC5L6D,EAAA,OAAAC,IAAA,2CAAKC,MAAM,0BACTF,EAAA,OAAAC,IAAA,2CAAKC,MAAO,gEACVxE,KAAKM,SAASmD,SAAW,IAAMa,EAAA,OAAAC,IAAA,2CAAKC,MAAM,qBAAqBxE,KAAKM,UAEpEN,KAAKU,iBAAiBC,OAAS,YAC/B2D,EAAA,OAAAC,IAAA,2CAAKG,IAAM1E,KAAKU,iBAAiBC,OAAS,MAAQX,KAAKU,iBAAiBE,MAAQ,sBAAsB+D,mBAAmB3E,KAAKa,uBAAwBR,IAAKL,KAAKK,MAE/JL,KAAKU,iBAAiBC,OAAS,YAChC2D,EAAA,OAAAC,IAAA,2CAAKC,MAAM,qBACTF,EAAA,QAAAC,IAAA,2CAAMC,MAAM,YAAYxE,KAAKU,iBAAiBE,SAIlD0D,EAAA,QAAAC,IAAA,2CAAMC,MAAM,kBACVF,EAAA,QAAAC,IAAA,2CAAMK,aAAc,IAAM5E,KAAKgC,qBAMpChC,KAAKS,kBAAoB6D,EAAA,MAAAC,IAAA,2CAAIC,MAAM,iCAA+B,IAAEF,EAAA,QAAAC,IAAA,2CAAMM,KAAK,iBAAiB,K","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as i,c as e,h as t,g as o}from"./p-e6edf72d.js";const s=":host{position:relative;z-index:1000}.dropdown-menu{display:none;visibility:hidden;flex-direction:column;width:224px;max-height:289px;min-width:224px;overflow-y:auto;background:#FFFFFF;box-shadow:0px 6px 9px 0px rgba(29, 29, 29, 0.1019607843);border:1px solid #EEEDED;padding:8px 0px;font-family:var(--ifx-font-family, Source Sans 3)}.dropdown-menu.small{max-height:266px;max-width:186px;overflow-y:auto}.dropdown-menu.hideTopPadding{padding-top:0px}.dropdown-menu.show{display:flex;visibility:visible}";const d=s;const n=class{constructor(t){i(this,t);this.menuSize=e(this,"menuSize",7);this.ifxDropdownMenuItem=e(this,"ifxDropdownMenuItem",7);this.isOpen=false;this.size="l";this.hideTopPadding=false;this.filteredItems=[]}handleMenuFilter(i){const e=i.detail;this.filterDropdownItems(e)}handleDropdownItemValueEmission(i){this.ifxDropdownMenuItem.emit(i.detail)}filterDropdownItems(i){const e=Array.from(this.el.querySelectorAll("ifx-dropdown-item"));let t,o;let s=i.toUpperCase();for(let i=0;i<e.length;i++){t=e[i];o=t.textContent||t.innerText;if(o.toUpperCase().indexOf(s)>-1){t.setAttribute("hide",false)}else{t.setAttribute("hide",true)}}}componentWillUpdate(){this.menuSize.emit(this.size)}componentWillLoad(){this.filteredItems=Array.from(this.el.querySelectorAll("ifx-dropdown-item"));const i=this.el.querySelector("ifx-search-field");const e=this.el.querySelector("ifx-dropdown-header");if(i||e){this.hideTopPadding=true}else this.hideTopPadding=false}render(){return t("div",{key:"547c4475f18600340e579143237073be8e7050ac",class:`dropdown-menu \n ${this.isOpen?"show":""} \n ${this.hideTopPadding?"hideTopPadding":""}\n ${this.size==="s"?"small":""}`},t("slot",{key:"eab87d9be479a0123afb56699a86dcc7114e6fcd"}))}get el(){return o(this)}};n.style=d;export{n as ifx_dropdown_menu};
2
+ //# sourceMappingURL=p-fbd1163b.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["dropdownMenuCss","IfxDropdownMenuStyle0","DropdownMenu","constructor","hostRef","this","isOpen","size","hideTopPadding","filteredItems","handleMenuFilter","event","searchValue","detail","filterDropdownItems","handleDropdownItemValueEmission","ifxDropdownMenuItem","emit","allItems","Array","from","el","querySelectorAll","dropdownItem","txtValue","query","toUpperCase","i","length","textContent","innerText","indexOf","setAttribute","componentWillUpdate","menuSize","componentWillLoad","searchField","querySelector","dropdownHeader","render","h","key","class"],"sources":["src/components/dropdown/dropdown-menu/dropdown-menu.scss?tag=ifx-dropdown-menu&encapsulation=shadow","src/components/dropdown/dropdown-menu/dropdown-menu.tsx"],"sourcesContent":["@use \"~@infineon/design-system-tokens/dist/tokens\";\n\n:host {\n position: relative;\n z-index: 1000;\n}\n\n.dropdown-menu {\n display: none;\n visibility: hidden;\n flex-direction: column;\n width: 224px;\n max-height: 289px;\n min-width: 224px;\n overflow-y: auto;\n background: tokens.$ifxColorBaseWhite;\n box-shadow: 0px 6px 9px 0px #1d1d1d1a;\n border: 1px solid tokens.$ifxColorEngineering200;\n padding: 8px 0px;\n font-family: var(--ifx-font-family, #{tokens.$ifxFontFamilyBody});\n\n &.small {\n max-height: 266px;\n max-width: 186px;\n overflow-y: auto;\n }\n\n &.hideTopPadding {\n padding-top: 0px;\n }\n}\n\n.dropdown-menu.show {\n display: flex;\n visibility: visible;\n}","// dropdown-menu.tsx\nimport { Component, h, Prop, Element, State, Event, EventEmitter, Listen } from \"@stencil/core\";\n\n@Component({\n tag: 'ifx-dropdown-menu',\n styleUrl: 'dropdown-menu.scss',\n shadow: true\n})\n\nexport class DropdownMenu {\n @Prop() isOpen: boolean = false;\n @Prop() size: string = 'l'\n @State() hideTopPadding: boolean = false;\n @Element() el;\n\n @Event() menuSize: EventEmitter;\n @State() filteredItems: HTMLIfxDropdownItemElement[] = [];\n @Event() ifxDropdownMenuItem: EventEmitter<CustomEvent>;\n\n @Listen('ifxInput')\n handleMenuFilter(event: CustomEvent) {\n const searchValue = event.detail;\n this.filterDropdownItems(searchValue)\n }\n\n @Listen('ifxDropdownItem')\n handleDropdownItemValueEmission(event: CustomEvent) {\n this.ifxDropdownMenuItem.emit(event.detail)\n }\n\n filterDropdownItems(searchValue: string) {\n const allItems = Array.from(this.el.querySelectorAll('ifx-dropdown-item'));\n let dropdownItem, txtValue;\n let query = searchValue.toUpperCase()\n\n for (let i = 0; i < allItems.length; i++) {\n dropdownItem = allItems[i];\n txtValue = dropdownItem.textContent || dropdownItem.innerText;\n\n if (txtValue.toUpperCase().indexOf(query) > -1) {\n dropdownItem.setAttribute('hide', false)\n } else {\n dropdownItem.setAttribute('hide', true)\n }\n }\n }\n\n componentWillUpdate() {\n this.menuSize.emit(this.size)\n }\n\n componentWillLoad() {\n this.filteredItems = Array.from(this.el.querySelectorAll('ifx-dropdown-item')) as HTMLIfxDropdownItemElement[];\n const searchField = this.el.querySelector('ifx-search-field')\n const dropdownHeader = this.el.querySelector('ifx-dropdown-header')\n\n if (searchField || dropdownHeader) {\n this.hideTopPadding = true;\n } else this.hideTopPadding = false;\n }\n\n\n render() {\n return (\n <div class={`dropdown-menu \n ${this.isOpen ? 'show' : ''} \n ${this.hideTopPadding ? 'hideTopPadding' : \"\"}\n ${this.size === 's' ? 'small' : \"\"}`\n } >\n <slot />\n </div >\n );\n }\n}"],"mappings":"yDAAA,MAAMA,EAAkB,yfACxB,MAAAC,EAAeD,E,MCQFE,EAAY,MANzB,WAAAC,CAAAC,G,sGAOUC,KAAAC,OAAkB,MAClBD,KAAAE,KAAe,IACdF,KAAAG,eAA0B,MAI1BH,KAAAI,cAA8C,E,CAIvD,gBAAAC,CAAiBC,GACf,MAAMC,EAAcD,EAAME,OAC1BR,KAAKS,oBAAoBF,E,CAI3B,+BAAAG,CAAgCJ,GAC9BN,KAAKW,oBAAoBC,KAAKN,EAAME,O,CAGtC,mBAAAC,CAAoBF,GAClB,MAAMM,EAAWC,MAAMC,KAAKf,KAAKgB,GAAGC,iBAAiB,sBACrD,IAAIC,EAAcC,EAClB,IAAIC,EAAQb,EAAYc,cAExB,IAAK,IAAIC,EAAI,EAAGA,EAAIT,EAASU,OAAQD,IAAK,CACxCJ,EAAeL,EAASS,GACxBH,EAAWD,EAAaM,aAAeN,EAAaO,UAEpD,GAAIN,EAASE,cAAcK,QAAQN,IAAU,EAAG,CAC9CF,EAAaS,aAAa,OAAQ,M,KAC7B,CACLT,EAAaS,aAAa,OAAQ,K,GAKxC,mBAAAC,GACE5B,KAAK6B,SAASjB,KAAKZ,KAAKE,K,CAG1B,iBAAA4B,GACE9B,KAAKI,cAAgBU,MAAMC,KAAKf,KAAKgB,GAAGC,iBAAiB,sBACzD,MAAMc,EAAc/B,KAAKgB,GAAGgB,cAAc,oBAC1C,MAAMC,EAAiBjC,KAAKgB,GAAGgB,cAAc,uBAE7C,GAAID,GAAeE,EAAgB,CACjCjC,KAAKG,eAAiB,I,MACjBH,KAAKG,eAAiB,K,CAI/B,MAAA+B,GACE,OACEC,EAAA,OAAAC,IAAA,2CAAKC,MAAO,yBACVrC,KAAKC,OAAS,OAAS,cACvBD,KAAKG,eAAiB,iBAAmB,aACzCH,KAAKE,OAAS,IAAM,QAAU,MAE9BiC,EAAA,QAAAC,IAAA,6C","ignoreList":[]}
@@ -178,19 +178,6 @@ export namespace Components {
178
178
  }
179
179
  interface IfxFaq {
180
180
  }
181
- interface IfxFileUpload {
182
- "allowedFileTypes": string | string[];
183
- "dragAndDrop": boolean;
184
- "injectDemoState": () => Promise<void>;
185
- "labelBrowseFiles": string;
186
- "labelDragAndDrop": string;
187
- "labelFileTooLarge": string;
188
- "labelSupportedFormatsTemplate": string;
189
- "labelUnsupportedFileType": string;
190
- "labelUploaded": string;
191
- "maxFileSizeMB": number;
192
- "uploadHandler"?: (file: File) => Promise<void>;
193
- }
194
181
  interface IfxFilterAccordion {
195
182
  "filterGroupName": string;
196
183
  "maxVisibleItems": number;
@@ -652,10 +639,6 @@ export interface IfxDropdownMenuCustomEvent<T> extends CustomEvent<T> {
652
639
  detail: T;
653
640
  target: HTMLIfxDropdownMenuElement;
654
641
  }
655
- export interface IfxFileUploadCustomEvent<T> extends CustomEvent<T> {
656
- detail: T;
657
- target: HTMLIfxFileUploadElement;
658
- }
659
642
  export interface IfxFilterAccordionCustomEvent<T> extends CustomEvent<T> {
660
643
  detail: T;
661
644
  target: HTMLIfxFilterAccordionElement;
@@ -1092,32 +1075,6 @@ declare global {
1092
1075
  prototype: HTMLIfxFaqElement;
1093
1076
  new (): HTMLIfxFaqElement;
1094
1077
  };
1095
- interface HTMLIfxFileUploadElementEventMap {
1096
- "ifxFileUploadAdd": { addedFiles: File[]; files: File[] };
1097
- "ifxFileUploadRemove": { removedFile: File; files: File[] };
1098
- "ifxFileUploadChange": { files: File[] };
1099
- "ifxFileUploadError": { errorType: string; file: File; message: string };
1100
- "ifxFileUploadInvalid": { file: File; reason: string };
1101
- "ifxFileUploadStart": { file: File };
1102
- "ifxFileUploadComplete": { file: File };
1103
- "ifxFileUploadAbort": { file: File };
1104
- "ifxFileUploadDrop": { droppedFiles: File[]; acceptedFiles: File[]; rejectedFiles: File[] };
1105
- "ifxFileUploadClick": void;
1106
- }
1107
- interface HTMLIfxFileUploadElement extends Components.IfxFileUpload, HTMLStencilElement {
1108
- addEventListener<K extends keyof HTMLIfxFileUploadElementEventMap>(type: K, listener: (this: HTMLIfxFileUploadElement, ev: IfxFileUploadCustomEvent<HTMLIfxFileUploadElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1109
- addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1110
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1111
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1112
- removeEventListener<K extends keyof HTMLIfxFileUploadElementEventMap>(type: K, listener: (this: HTMLIfxFileUploadElement, ev: IfxFileUploadCustomEvent<HTMLIfxFileUploadElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1113
- removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1114
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1115
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1116
- }
1117
- var HTMLIfxFileUploadElement: {
1118
- prototype: HTMLIfxFileUploadElement;
1119
- new (): HTMLIfxFileUploadElement;
1120
- };
1121
1078
  interface HTMLIfxFilterAccordionElementEventMap {
1122
1079
  "ifxFilterAccordionChange": any;
1123
1080
  }
@@ -1754,7 +1711,6 @@ declare global {
1754
1711
  "ifx-dropdown-trigger": HTMLIfxDropdownTriggerElement;
1755
1712
  "ifx-dropdown-trigger-button": HTMLIfxDropdownTriggerButtonElement;
1756
1713
  "ifx-faq": HTMLIfxFaqElement;
1757
- "ifx-file-upload": HTMLIfxFileUploadElement;
1758
1714
  "ifx-filter-accordion": HTMLIfxFilterAccordionElement;
1759
1715
  "ifx-filter-bar": HTMLIfxFilterBarElement;
1760
1716
  "ifx-filter-search": HTMLIfxFilterSearchElement;
@@ -1974,28 +1930,6 @@ declare namespace LocalJSX {
1974
1930
  }
1975
1931
  interface IfxFaq {
1976
1932
  }
1977
- interface IfxFileUpload {
1978
- "allowedFileTypes"?: string | string[];
1979
- "dragAndDrop"?: boolean;
1980
- "labelBrowseFiles"?: string;
1981
- "labelDragAndDrop"?: string;
1982
- "labelFileTooLarge"?: string;
1983
- "labelSupportedFormatsTemplate"?: string;
1984
- "labelUnsupportedFileType"?: string;
1985
- "labelUploaded"?: string;
1986
- "maxFileSizeMB"?: number;
1987
- "onIfxFileUploadAbort"?: (event: IfxFileUploadCustomEvent<{ file: File }>) => void;
1988
- "onIfxFileUploadAdd"?: (event: IfxFileUploadCustomEvent<{ addedFiles: File[]; files: File[] }>) => void;
1989
- "onIfxFileUploadChange"?: (event: IfxFileUploadCustomEvent<{ files: File[] }>) => void;
1990
- "onIfxFileUploadClick"?: (event: IfxFileUploadCustomEvent<void>) => void;
1991
- "onIfxFileUploadComplete"?: (event: IfxFileUploadCustomEvent<{ file: File }>) => void;
1992
- "onIfxFileUploadDrop"?: (event: IfxFileUploadCustomEvent<{ droppedFiles: File[]; acceptedFiles: File[]; rejectedFiles: File[] }>) => void;
1993
- "onIfxFileUploadError"?: (event: IfxFileUploadCustomEvent<{ errorType: string; file: File; message: string }>) => void;
1994
- "onIfxFileUploadInvalid"?: (event: IfxFileUploadCustomEvent<{ file: File; reason: string }>) => void;
1995
- "onIfxFileUploadRemove"?: (event: IfxFileUploadCustomEvent<{ removedFile: File; files: File[] }>) => void;
1996
- "onIfxFileUploadStart"?: (event: IfxFileUploadCustomEvent<{ file: File }>) => void;
1997
- "uploadHandler"?: (file: File) => Promise<void>;
1998
- }
1999
1933
  interface IfxFilterAccordion {
2000
1934
  "filterGroupName"?: string;
2001
1935
  "maxVisibleItems"?: number;
@@ -2434,7 +2368,6 @@ declare namespace LocalJSX {
2434
2368
  "ifx-dropdown-trigger": IfxDropdownTrigger;
2435
2369
  "ifx-dropdown-trigger-button": IfxDropdownTriggerButton;
2436
2370
  "ifx-faq": IfxFaq;
2437
- "ifx-file-upload": IfxFileUpload;
2438
2371
  "ifx-filter-accordion": IfxFilterAccordion;
2439
2372
  "ifx-filter-bar": IfxFilterBar;
2440
2373
  "ifx-filter-search": IfxFilterSearch;
@@ -2520,7 +2453,6 @@ declare module "@stencil/core" {
2520
2453
  "ifx-dropdown-trigger": LocalJSX.IfxDropdownTrigger & JSXBase.HTMLAttributes<HTMLIfxDropdownTriggerElement>;
2521
2454
  "ifx-dropdown-trigger-button": LocalJSX.IfxDropdownTriggerButton & JSXBase.HTMLAttributes<HTMLIfxDropdownTriggerButtonElement>;
2522
2455
  "ifx-faq": LocalJSX.IfxFaq & JSXBase.HTMLAttributes<HTMLIfxFaqElement>;
2523
- "ifx-file-upload": LocalJSX.IfxFileUpload & JSXBase.HTMLAttributes<HTMLIfxFileUploadElement>;
2524
2456
  "ifx-filter-accordion": LocalJSX.IfxFilterAccordion & JSXBase.HTMLAttributes<HTMLIfxFilterAccordionElement>;
2525
2457
  "ifx-filter-bar": LocalJSX.IfxFilterBar & JSXBase.HTMLAttributes<HTMLIfxFilterBarElement>;
2526
2458
  "ifx-filter-search": LocalJSX.IfxFilterSearch & JSXBase.HTMLAttributes<HTMLIfxFilterSearchElement>;
@@ -0,0 +1 @@
1
+ import '@infineon/design-system-tokens/dist/fonts/ifx-fonts.css';
@@ -1 +1,2 @@
1
+ import './global/font-import';
1
2
  export * from './components';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infineon/infineon-design-system-stencil",
3
- "version": "33.1.1--canary.1824.75b5030250f4474f2c947b6e8dc7055bdc915c43.0",
3
+ "version": "33.1.1--canary.1818.40b59d3e7e35c19c1cd5c4976a5aecca37653bcd.0",
4
4
  "private": false,
5
5
  "description": "Infineon design system Stencil web components",
6
6
  "homepage": "https://infineon.github.io/infineon-design-system-stencil",
@@ -1,322 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-c9480f70.js');
6
-
7
- const fileUploadCss = ":root{--ifx-font-family:\"Source Sans 3\";font-family:var(--ifx-font-family, sans-serif)}:host{font-family:var(--ifx-font-family, sans-serif)}.file-upload-wrapper{display:flex;flex-direction:column}.upload-dropzone{border:1px dashed #BFBBBB;padding:40px;text-align:center;cursor:pointer;color:#1D1D1D;transition:border-color 0.3s ease;border-radius:1px;background:#FFFFFF}.upload-dropzone ifx-icon{color:#0A8276}.upload-dropzone:hover{border:1px dashed #8D8786}.upload-dropzone.drag-over{border:1px solid #0A8276;background:#F7F7F7}.upload-dropzone input{display:none}.file-upload-info{font-style:normal;font-weight:400;font-size:0.75rem;line-height:1rem;letter-spacing:0em;color:#1D1D1D;margin:0;margin-top:4px}.file-list{list-style:none;padding:0;margin:0;margin-top:16px;display:flex;flex-direction:column;gap:16px}.file-item{border:1px solid #BFBBBB;padding:16px;display:flex;gap:16px}.file-info{width:100%;min-width:0}.file-top-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:-8px}.file-top-row ifx-icon{flex-shrink:0}.file-name-wrapper{display:flex;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;font-weight:400;font-size:0.875rem}.file-name-base{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1;min-width:0}.file-name-ext{flex-shrink:0;margin-left:0}.file-middle-row{display:flex;align-items:center;font-size:0.75rem;line-height:1rem;flex-wrap:wrap;color:#575352}.file-middle-row .file-status{margin-left:16px}.file-progress-row{margin-top:16px}.file-progress-row ifx-progress-bar{width:100%}.upload-success{border-color:#0A8276}.upload-success .file-status ifx-icon{position:relative;top:2px;color:#4CA460}.upload-failed{border-color:#CD002F}.upload-failed .file-status{color:#CD002F;margin-left:0}";
8
- const IfxFileUploadStyle0 = fileUploadCss;
9
-
10
- const IfxFileUpload = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.ifxFileUploadAdd = index.createEvent(this, "ifxFileUploadAdd", 7);
14
- this.ifxFileUploadRemove = index.createEvent(this, "ifxFileUploadRemove", 7);
15
- this.ifxFileUploadChange = index.createEvent(this, "ifxFileUploadChange", 7);
16
- this.ifxFileUploadError = index.createEvent(this, "ifxFileUploadError", 7);
17
- this.ifxFileUploadInvalid = index.createEvent(this, "ifxFileUploadInvalid", 7);
18
- this.ifxFileUploadStart = index.createEvent(this, "ifxFileUploadStart", 7);
19
- this.ifxFileUploadComplete = index.createEvent(this, "ifxFileUploadComplete", 7);
20
- this.ifxFileUploadAbort = index.createEvent(this, "ifxFileUploadAbort", 7);
21
- this.ifxFileUploadDrop = index.createEvent(this, "ifxFileUploadDrop", 7);
22
- this.ifxFileUploadClick = index.createEvent(this, "ifxFileUploadClick", 7);
23
- this.dragAndDrop = false;
24
- this.maxFileSizeMB = 7;
25
- this.allowedFileTypes = ['jpg', 'jpeg', 'png', 'pdf', 'mov', 'mp3', 'mp4'];
26
- this.labelBrowseFiles = 'Browse files';
27
- this.labelDragAndDrop = 'Drag & Drop or browse files to upload';
28
- this.labelFileTooLarge = 'Upload failed. Max file size: {{size}}MB.';
29
- this.labelUnsupportedFileType = 'Unsupported file type.';
30
- this.labelUploaded = 'Successfully uploaded';
31
- this.labelSupportedFormatsTemplate = 'Supported file formats: {{types}}. Max file size: {{size}}MB.';
32
- this.isDragOver = false;
33
- this.files = [];
34
- this.uploadTasks = [];
35
- this.rejectedSizeFiles = [];
36
- this.rejectedTypeFiles = [];
37
- this.fileInputEl = null;
38
- this.extensionToMimeMap = {
39
- jpg: 'image/jpeg',
40
- jpeg: 'image/jpeg',
41
- png: 'image/png',
42
- pdf: 'application/pdf',
43
- mov: 'video/quicktime',
44
- mp3: 'audio/mpeg',
45
- mp4: 'video/mp4'
46
- };
47
- }
48
- getNormalizedFileTypes() {
49
- if (Array.isArray(this.allowedFileTypes)) {
50
- return this.allowedFileTypes;
51
- }
52
- try {
53
- return JSON.parse(this.allowedFileTypes);
54
- }
55
- catch (_a) {
56
- return this.allowedFileTypes.split(',').map(t => t.trim());
57
- }
58
- }
59
- handleFileChange(event) {
60
- const input = event.target;
61
- if (!input.files)
62
- return;
63
- this.processFiles(input.files);
64
- }
65
- handleDrop(event) {
66
- var _a;
67
- event.preventDefault();
68
- event.stopPropagation();
69
- this.isDragOver = false;
70
- if ((_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.files) {
71
- const droppedFiles = Array.from(event.dataTransfer.files);
72
- const allowedMimes = this.getNormalizedFileTypes()
73
- .map(ext => this.extensionToMimeMap[ext.toLowerCase()])
74
- .filter(Boolean);
75
- const acceptedFiles = [];
76
- const rejectedFiles = [];
77
- droppedFiles.forEach(file => {
78
- const isValidType = allowedMimes.includes(file.type);
79
- const isValidSize = file.size <= this.maxFileSizeMB * 1024 * 1024;
80
- if (isValidType && isValidSize)
81
- acceptedFiles.push(file);
82
- else
83
- rejectedFiles.push(file);
84
- });
85
- this.ifxFileUploadDrop.emit({
86
- droppedFiles,
87
- acceptedFiles,
88
- rejectedFiles
89
- });
90
- this.processFiles(event.dataTransfer.files);
91
- }
92
- }
93
- handleDragOver(event) {
94
- event.preventDefault();
95
- this.isDragOver = true;
96
- }
97
- handleDragLeave(event) {
98
- event.preventDefault();
99
- this.isDragOver = false;
100
- }
101
- processFiles(fileList) {
102
- const selectedFiles = Array.from(fileList);
103
- const allowedMimes = this.getNormalizedFileTypes()
104
- .map(ext => this.extensionToMimeMap[ext.toLowerCase()])
105
- .filter(Boolean);
106
- const validFiles = [];
107
- const rejectedSize = [];
108
- const rejectedType = [];
109
- selectedFiles.forEach(file => {
110
- const isValidType = allowedMimes.includes(file.type);
111
- const isValidSize = file.size <= this.maxFileSizeMB * 1024 * 1024;
112
- if (isValidType && isValidSize) {
113
- validFiles.push(file);
114
- }
115
- else {
116
- if (!isValidType) {
117
- rejectedType.push(file.name);
118
- this.ifxFileUploadInvalid.emit({ file, reason: 'invalid-type' });
119
- }
120
- if (!isValidSize) {
121
- rejectedSize.push(file.name);
122
- this.ifxFileUploadInvalid.emit({ file, reason: 'invalid-size' });
123
- }
124
- this.ifxFileUploadError.emit({ file, errorType: !isValidType ? 'invalid-type' : 'file-too-large', message: 'Invalid file rejected' });
125
- }
126
- });
127
- this.rejectedSizeFiles = [...this.rejectedSizeFiles, ...rejectedSize];
128
- this.rejectedTypeFiles = [...this.rejectedTypeFiles, ...rejectedType];
129
- validFiles.forEach(file => this.startUpload(file));
130
- this.files = [...this.files, ...validFiles];
131
- if (validFiles.length > 0) {
132
- this.ifxFileUploadAdd.emit({ addedFiles: validFiles, files: this.files });
133
- this.ifxFileUploadChange.emit({ files: this.files });
134
- }
135
- }
136
- startUpload(file) {
137
- this.ifxFileUploadStart.emit({ file });
138
- const task = {
139
- file,
140
- progress: 0,
141
- intervalId: null,
142
- completed: false
143
- };
144
- if (this.uploadHandler) {
145
- // Real Upload
146
- // <ifx-file-upload
147
- // uploadHandler={(file) => {
148
- // const formData = new FormData();
149
- // formData.append('file', file);
150
- // return fetch('/api/upload', {
151
- // method: 'POST',
152
- // body: formData
153
- // }).then(res => {
154
- // if (!res.ok) throw new Error('Upload failed');
155
- // });
156
- // }}
157
- // ></ifx-file-upload>
158
- this.uploadHandler(file).then(() => {
159
- task.progress = 100;
160
- task.completed = true;
161
- this.uploadTasks = [...this.uploadTasks];
162
- this.ifxFileUploadComplete.emit({ file });
163
- this.ifxFileUploadChange.emit({ files: this.files });
164
- }).catch(() => {
165
- console.error('Upload failed');
166
- this.ifxFileUploadError.emit({ file, errorType: 'upload-failed', message: 'Upload handler rejected file' });
167
- });
168
- }
169
- else {
170
- const totalSize = file.size;
171
- const fakeUploadSpeed = 500000;
172
- let uploaded = 0;
173
- task.intervalId = window.setInterval(() => {
174
- uploaded += fakeUploadSpeed / 5;
175
- const progress = Math.min(100, Math.round((uploaded / totalSize) * 100));
176
- task.progress = progress;
177
- this.uploadTasks = [...this.uploadTasks];
178
- if (progress >= 100) {
179
- clearInterval(task.intervalId);
180
- task.completed = true;
181
- task.intervalId = null;
182
- this.uploadTasks = [...this.uploadTasks];
183
- this.ifxFileUploadComplete.emit({ file });
184
- this.ifxFileUploadChange.emit({ files: this.files });
185
- }
186
- }, 200);
187
- }
188
- this.uploadTasks = [...this.uploadTasks, task];
189
- }
190
- cancelUpload(file) {
191
- const taskIndex = this.uploadTasks.findIndex(t => t.file.name === file.name);
192
- if (taskIndex !== -1) {
193
- const task = this.uploadTasks[taskIndex];
194
- if ((task === null || task === void 0 ? void 0 : task.intervalId) !== null) {
195
- clearInterval(task.intervalId);
196
- }
197
- this.uploadTasks = this.uploadTasks.filter((_, i) => i !== taskIndex);
198
- }
199
- this.files = this.files.filter(f => f.name !== file.name);
200
- this.ifxFileUploadAbort.emit({ file });
201
- this.ifxFileUploadChange.emit({ files: this.files });
202
- if (this.fileInputEl) {
203
- this.fileInputEl.value = '';
204
- }
205
- }
206
- removeFile(file) {
207
- this.uploadTasks = this.uploadTasks.filter(task => task.file.name !== file.name);
208
- this.files = this.files.filter(f => f.name !== file.name);
209
- this.ifxFileUploadRemove.emit({ removedFile: file, files: this.files });
210
- this.ifxFileUploadChange.emit({ files: this.files });
211
- if (this.fileInputEl) {
212
- this.fileInputEl.value = '';
213
- }
214
- }
215
- clearRejectedFile(fileName, type) {
216
- if (type === 'size') {
217
- this.rejectedSizeFiles = this.rejectedSizeFiles.filter(f => f !== fileName);
218
- }
219
- else {
220
- this.rejectedTypeFiles = this.rejectedTypeFiles.filter(f => f !== fileName);
221
- }
222
- if (this.fileInputEl) {
223
- this.fileInputEl.value = '';
224
- }
225
- }
226
- splitFileNameParts(file) {
227
- const name = file.name;
228
- const dotIndex = name.lastIndexOf('.');
229
- if (dotIndex === -1)
230
- return { base: name, ext: '' };
231
- return {
232
- base: name.substring(0, dotIndex),
233
- ext: name.substring(dotIndex)
234
- };
235
- }
236
- getFileIcon(file) {
237
- var _a;
238
- const extension = (_a = file.name.split('.').pop()) === null || _a === void 0 ? void 0 : _a.toLowerCase();
239
- switch (extension) {
240
- case 'pdf': return 'file-pdf-16';
241
- case 'jpg':
242
- case 'jpeg': return 'file-jpg-16';
243
- case 'png': return 'file-png-16';
244
- case 'mov': return 'file-mov-16';
245
- case 'mp3': return 'file-mp3-16';
246
- case 'mp4': return 'file-mp4-16';
247
- default: return 'file';
248
- }
249
- }
250
- getFormattedSize(file) {
251
- const sizeInKB = file.size / 1024;
252
- return sizeInKB > 1024
253
- ? `${(sizeInKB / 1024).toFixed(1)} MB`
254
- : `${sizeInKB.toFixed(0)} KB`;
255
- }
256
- getAcceptAttribute() {
257
- return this.getNormalizedFileTypes().map(ext => '.' + ext.toLowerCase()).join(',');
258
- }
259
- getSupportedFileText() {
260
- return this.labelSupportedFormatsTemplate
261
- .replace('{{types}}', this.getNormalizedFileTypes().map(ext => ext.toUpperCase()).join(', '))
262
- .replace('{{size}}', this.maxFileSizeMB.toString());
263
- }
264
- getFormattedFileTooLargeText() {
265
- return this.labelFileTooLarge.replace('{{size}}', this.maxFileSizeMB.toString());
266
- }
267
- componentDidLoad() {
268
- if (this.hostElement.hasAttribute('show-demo-states')) {
269
- this.showDemoStates = true;
270
- }
271
- if (this.showDemoStates) {
272
- this.injectDemoState();
273
- }
274
- }
275
- async injectDemoState() {
276
- const uploading = new File(['demo'], 'Image.jpg', { type: 'image/jpeg' });
277
- const uploaded = new File(['demo'], 'File.pdf', { type: 'application/pdf' });
278
- const tooLarge = new File(['demo'], 'Video.mp4', { type: 'video/mp4' });
279
- const unsupported = new File(['demo'], 'Script.exe', { type: 'application/x-msdownload' });
280
- this.files = [uploaded, uploading];
281
- this.uploadTasks = [
282
- { file: uploaded, progress: 100, intervalId: null, completed: true },
283
- { file: uploading, progress: 35, intervalId: null, completed: false }
284
- ];
285
- this.rejectedSizeFiles = [tooLarge.name];
286
- this.rejectedTypeFiles = [unsupported.name];
287
- }
288
- render() {
289
- return (index.h("div", { key: '9ebbf4de0d20c25b5c0167dd48b6ab4d538ca736', class: "file-upload-wrapper" }, this.dragAndDrop ? this.renderDragAndDropArea() : this.renderUploadArea(), index.h("ul", { key: 'ad545c35ebfaf6016b4cebe0d11d0f4798816718', class: "file-list" }, this.rejectedSizeFiles.map(fileName => (index.h("li", { class: "file-item upload-failed" }, index.h("div", { class: "file-icon" }, index.h("ifx-icon", { icon: "file-16" })), index.h("div", { class: "file-info" }, index.h("div", { class: "file-top-row" }, index.h("span", { class: "file-name-wrapper" }, index.h("span", { class: "file-name-base" }, this.splitFileNameParts({ name: fileName }).base), index.h("span", { class: "file-name-ext" }, this.splitFileNameParts({ name: fileName }).ext)), index.h("div", { class: "file-actions" }, index.h("ifx-icon-button", { shape: "square", variant: "tertiary", icon: "delete-forever-16", size: "s", "aria-label": "Remove file", onClick: () => this.clearRejectedFile(fileName, 'size') }))), index.h("div", { class: "file-middle-row" }, index.h("span", { class: "file-status" }, this.getFormattedFileTooLargeText())))))), this.rejectedTypeFiles.map(fileName => (index.h("li", { class: "file-item upload-failed" }, index.h("div", { class: "file-icon" }, index.h("ifx-icon", { icon: "file-16" })), index.h("div", { class: "file-info" }, index.h("div", { class: "file-top-row" }, index.h("span", { class: "file-name-wrapper" }, index.h("span", { class: "file-name-base" }, this.splitFileNameParts({ name: fileName }).base), index.h("span", { class: "file-name-ext" }, this.splitFileNameParts({ name: fileName }).ext)), index.h("div", { class: "file-actions" }, index.h("ifx-icon-button", { shape: "square", variant: "tertiary", icon: "delete-forever-16", size: "s", "aria-label": "Remove file", onClick: () => this.clearRejectedFile(fileName, 'type') }))), index.h("div", { class: "file-middle-row" }, index.h("span", { class: "file-status" }, this.labelUnsupportedFileType)))))), this.files.map((file) => {
290
- var _a;
291
- const task = this.uploadTasks.find(t => t.file.name === file.name);
292
- const progress = (_a = task === null || task === void 0 ? void 0 : task.progress) !== null && _a !== void 0 ? _a : 100;
293
- const isUploading = task && !task.completed;
294
- const itemClass = isUploading ? 'file-item uploading' : 'file-item upload-success';
295
- const { base, ext } = this.splitFileNameParts(file);
296
- return (index.h("li", { class: itemClass }, index.h("div", { class: "file-icon" }, index.h("ifx-icon", { icon: this.getFileIcon(file) })), index.h("div", { class: "file-info" }, index.h("div", { class: "file-top-row" }, index.h("span", { class: "file-name-wrapper" }, index.h("span", { class: "file-name-base" }, base), index.h("span", { class: "file-name-ext" }, ext)), index.h("div", { class: "file-actions" }, index.h("ifx-icon-button", { shape: "square", variant: "tertiary", icon: "cross-16", size: "s", "aria-label": "Cancel upload", onClick: () => this.cancelUpload(file), style: { display: isUploading ? 'inline-flex' : 'none' } }), index.h("ifx-icon-button", { shape: "square", variant: "tertiary", icon: "delete-forever-16", size: "s", "aria-label": "Remove file", onClick: () => this.removeFile(file), style: { display: !isUploading ? 'inline-flex' : 'none' } }))), index.h("div", { class: "file-middle-row" }, index.h("span", { class: "file-size" }, this.getFormattedSize(file)), isUploading && (index.h("span", { class: "file-uploading" }, "\u00A0\u2013\u00A0Uploading \u2026")), index.h("span", { class: "file-status" }, !isUploading && (index.h("span", null, index.h("ifx-icon", { icon: "check-12" }), "\u00A0", this.labelUploaded)))), isUploading && (index.h("div", { class: "file-progress-row" }, index.h("ifx-progress-bar", { size: "s", value: progress, "show-label": "true" }))))));
297
- }))));
298
- }
299
- renderUploadArea() {
300
- const handleInputRef = (el) => {
301
- this.fileInputEl = el;
302
- };
303
- return (index.h("div", { class: { 'upload-button': true } }, index.h("label", null, index.h("ifx-button", { variant: "secondary" }, index.h("ifx-icon", { icon: "upload-16" }), this.labelBrowseFiles), index.h("input", { ref: handleInputRef, type: "file", accept: this.getAcceptAttribute(), multiple: true, onChange: (e) => this.handleFileChange(e), style: { display: 'none' } })), index.h("p", { class: "file-upload-info" }, this.getSupportedFileText())));
304
- }
305
- renderDragAndDropArea() {
306
- const handleInputRef = (el) => {
307
- this.fileInputEl = el;
308
- };
309
- const triggerInputClick = () => {
310
- if (this.fileInputEl) {
311
- this.fileInputEl.click();
312
- }
313
- };
314
- return (index.h("div", { class: { 'upload-dropzone': true, 'drag-over': this.isDragOver }, onClick: triggerInputClick, onDragOver: (e) => this.handleDragOver(e), onDragLeave: (e) => this.handleDragLeave(e), onDrop: (e) => this.handleDrop(e) }, index.h("ifx-icon", { icon: "upload-24", class: "custom-icon" }), index.h("p", null, this.labelDragAndDrop), index.h("p", { class: "file-upload-info" }, this.getSupportedFileText()), index.h("div", { style: { height: '0px', overflow: 'hidden' } }, index.h("input", { ref: handleInputRef, type: "file", accept: this.getAcceptAttribute(), multiple: true, onChange: (e) => this.handleFileChange(e) }))));
315
- }
316
- get hostElement() { return index.getElement(this); }
317
- };
318
- IfxFileUpload.style = IfxFileUploadStyle0;
319
-
320
- exports.ifx_file_upload = IfxFileUpload;
321
-
322
- //# sourceMappingURL=ifx-file-upload.cjs.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"ifx-file-upload.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,aAAa,GAAG,wvDAAwvD,CAAC;AAC/wD,4BAAe,aAAa;;MCaf,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Ac,GAAG,CAAC,EAA2B;YACjD,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;SACvB,CAAC;QAEF,MAAM,iBAAiB,GAAG;YACxB,IAAI,IAAI,CAAC,WAAW,EAAE;gBACpB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;aAC1B;SACF,CAAC;QAEF,QACEA,iBACE,KAAK,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,UAAU,EAAE,EAChE,OAAO,EAAE,iBAAiB,EAC1B,UAAU,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EACzC,WAAW,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAC3C,MAAM,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAEjCA,sBAAU,IAAI,EAAC,WAAW,EAAC,KAAK,EAAC,aAAa,GAAY,EAC1DA,mBAAI,IAAI,CAAC,gBAAgB,CAAK,EAC9BA,eAAG,KAAK,EAAC,kBAAkB,IACxB,IAAI,CAAC,oBAAoB,EAAE,CAC1B,EACJA,iBAAK,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAC/CA,mBACE,GAAG,EAAE,cAAc,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,IAAI,CAAC,kBAAkB,EAAE,EACjC,QAAQ,QACR,QAAQ,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,GACzC,CACE,CACF,EACN;KACH;;;;;;;","names":["h"],"sources":["src/components/file-upload/file-upload.scss?tag=ifx-file-upload&encapsulation=shadow","src/components/file-upload/file-upload.tsx"],"sourcesContent":["@use \"~@infineon/design-system-tokens/dist/tokens\";\n@use \"../../global/font.scss\";\n\n:host {\n font-family: var(--ifx-font-family, sans-serif);\n}\n\n.file-upload-wrapper {\n display: flex;\n flex-direction: column;\n}\n\n.upload-dropzone {\n border: 1px dashed tokens.$ifxColorEngineering300;\n padding: tokens.$ifxSpace500;\n text-align: center;\n cursor: pointer;\n color: tokens.$ifxColorBaseBlack;\n transition: border-color 0.3s ease;\n border-radius: tokens.$ifxBorderRadius12;\n background: tokens.$ifxColorBaseWhite;\n\n ifx-icon {\n color: tokens.$ifxColorOcean500;\n }\n\n &:hover {\n border: 1px dashed tokens.$ifxColorEngineering400;\n }\n}\n\n.upload-dropzone.drag-over {\n border: 1px solid tokens.$ifxColorOcean500;\n background: tokens.$ifxColorEngineering100;\n}\n\n.upload-dropzone input {\n display: none;\n}\n\n.file-upload-info {\n font-style: normal;\n font-weight: tokens.$ifxFontWeightRegular;\n font-size: tokens.$ifxFontSizeXs;\n line-height: tokens.$ifxLineHeightXs;\n letter-spacing: tokens.$ifxLetterSpacingDefault;\n color: tokens.$ifxColorBaseBlack;\n margin: 0;\n margin-top: tokens.$ifxSpace50;\n}\n\n.file-list {\n list-style: none;\n padding: 0;\n margin: 0;\n margin-top: tokens.$ifxSpace200;\n display: flex;\n flex-direction: column;\n gap: tokens.$ifxSpace200;\n}\n\n.file-item {\n border: 1px solid tokens.$ifxColorEngineering300;\n padding: tokens.$ifxSpace200;\n display: flex;\n gap: tokens.$ifxSpace200;\n}\n\n.file-info {\n width: 100%;\n min-width: 0;\n}\n\n.file-top-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: tokens.$ifxSpace200;\n margin-top: - tokens.$ifxSpace100;\n}\n\n.file-top-row ifx-icon {\n flex-shrink: 0;\n}\n\n.file-name-wrapper {\n display: flex;\n min-width: 0;\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n font-weight: tokens.$ifxFontWeightRegular;\n font-size: tokens.$ifxFontSizeS;\n}\n\n.file-name-base {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n flex-shrink: 1;\n min-width: 0;\n}\n\n.file-name-ext {\n flex-shrink: 0;\n margin-left: 0;\n}\n\n.file-middle-row {\n display: flex;\n align-items: center;\n font-size: tokens.$ifxFontSizeXs;\n line-height: tokens.$ifxLineHeightXs;\n flex-wrap: wrap;\n color: tokens.$ifxColorEngineering500;\n\n .file-status {\n margin-left: tokens.$ifxSpace200;\n }\n}\n\n.file-progress-row {\n margin-top: tokens.$ifxSpace200;\n}\n\n.file-progress-row ifx-progress-bar {\n width: 100%;\n}\n\n.upload-success {\n border-color: tokens.$ifxColorOcean500;\n\n .file-status {\n ifx-icon {\n position: relative;\n top: tokens.$ifxSpace25;\n color: tokens.$ifxColorGreen500;\n }\n }\n}\n\n.upload-failed {\n border-color: tokens.$ifxColorRed500;\n\n .file-status {\n color: tokens.$ifxColorRed500;\n margin-left: 0;\n }\n}\n","import { Component, h, State, Event, EventEmitter, Prop, Method, Element } from '@stencil/core';\n\ninterface UploadTask {\n file: File;\n progress: number;\n intervalId: number | null;\n completed: boolean;\n}\n\n@Component({\n tag: 'ifx-file-upload',\n styleUrl: 'file-upload.scss',\n shadow: true\n})\nexport class IfxFileUpload {\n @Element() hostElement: HTMLElement;\n\n @Prop() dragAndDrop: boolean = false;\n @Prop() maxFileSizeMB: number = 7;\n @Prop() allowedFileTypes: string | string[] = ['jpg', 'jpeg', 'png', 'pdf', 'mov', 'mp3', 'mp4'];\n @Prop() uploadHandler?: (file: File) => Promise<void>;\n\n @Prop() labelBrowseFiles: string = 'Browse files';\n @Prop() labelDragAndDrop: string = 'Drag & Drop or browse files to upload';\n @Prop() labelFileTooLarge: string = 'Upload failed. Max file size: {{size}}MB.';\n @Prop() labelUnsupportedFileType: string = 'Unsupported file type.';\n @Prop() labelUploaded: string = 'Successfully uploaded';\n @Prop() labelSupportedFormatsTemplate: string = 'Supported file formats: {{types}}. Max file size: {{size}}MB.';\n\n private showDemoStates?: boolean;\n\n @State() isDragOver: boolean = false;\n @State() files: File[] = [];\n @State() uploadTasks: UploadTask[] = [];\n @State() rejectedSizeFiles: string[] = [];\n @State() rejectedTypeFiles: string[] = [];\n\n @Event() ifxFileUploadAdd: EventEmitter<{ addedFiles: File[]; files: File[] }>;\n @Event() ifxFileUploadRemove: EventEmitter<{ removedFile: File; files: File[] }>;\n @Event() ifxFileUploadChange: EventEmitter<{ files: File[] }>;\n @Event() ifxFileUploadError: EventEmitter<{ errorType: string; file: File; message: string }>;\n @Event() ifxFileUploadInvalid: EventEmitter<{ file: File; reason: string }>;\n @Event() ifxFileUploadStart: EventEmitter<{ file: File }>;\n @Event() ifxFileUploadComplete: EventEmitter<{ file: File }>;\n @Event() ifxFileUploadAbort: EventEmitter<{ file: File }>;\n @Event() ifxFileUploadDrop: EventEmitter<{ droppedFiles: File[]; acceptedFiles: File[]; rejectedFiles: File[] }>;\n @Event() ifxFileUploadClick: EventEmitter<void>;\n\n private fileInputEl: HTMLInputElement | null = null;\n\n private extensionToMimeMap: Record<string, string> = {\n jpg: 'image/jpeg',\n jpeg: 'image/jpeg',\n png: 'image/png',\n pdf: 'application/pdf',\n mov: 'video/quicktime',\n mp3: 'audio/mpeg',\n mp4: 'video/mp4'\n };\n\n private getNormalizedFileTypes(): string[] {\n if (Array.isArray(this.allowedFileTypes)) {\n return this.allowedFileTypes;\n }\n try {\n return JSON.parse(this.allowedFileTypes);\n } catch {\n return this.allowedFileTypes.split(',').map(t => t.trim());\n }\n }\n\n handleFileChange(event: Event) {\n const input = event.target as HTMLInputElement;\n if (!input.files) return;\n this.processFiles(input.files);\n }\n\n handleDrop(event: DragEvent) {\n event.preventDefault();\n event.stopPropagation();\n this.isDragOver = false;\n if (event.dataTransfer?.files) {\n const droppedFiles = Array.from(event.dataTransfer.files);\n const allowedMimes = this.getNormalizedFileTypes()\n .map(ext => this.extensionToMimeMap[ext.toLowerCase()])\n .filter(Boolean);\n\n const acceptedFiles: File[] = [];\n const rejectedFiles: File[] = [];\n\n droppedFiles.forEach(file => {\n const isValidType = allowedMimes.includes(file.type);\n const isValidSize = file.size <= this.maxFileSizeMB * 1024 * 1024;\n if (isValidType && isValidSize) acceptedFiles.push(file);\n else rejectedFiles.push(file);\n });\n\n this.ifxFileUploadDrop.emit({\n droppedFiles,\n acceptedFiles,\n rejectedFiles\n });\n\n this.processFiles(event.dataTransfer.files);\n }\n }\n\n handleDragOver(event: DragEvent) {\n event.preventDefault();\n this.isDragOver = true;\n }\n\n handleDragLeave(event: DragEvent) {\n event.preventDefault();\n this.isDragOver = false;\n }\n\n processFiles(fileList: FileList) {\n const selectedFiles = Array.from(fileList);\n const allowedMimes = this.getNormalizedFileTypes()\n .map(ext => this.extensionToMimeMap[ext.toLowerCase()])\n .filter(Boolean);\n\n const validFiles: File[] = [];\n const rejectedSize: string[] = [];\n const rejectedType: string[] = [];\n\n selectedFiles.forEach(file => {\n const isValidType = allowedMimes.includes(file.type);\n const isValidSize = file.size <= this.maxFileSizeMB * 1024 * 1024;\n\n if (isValidType && isValidSize) {\n validFiles.push(file);\n } else {\n if (!isValidType) {\n rejectedType.push(file.name);\n this.ifxFileUploadInvalid.emit({ file, reason: 'invalid-type' });\n }\n if (!isValidSize) {\n rejectedSize.push(file.name);\n this.ifxFileUploadInvalid.emit({ file, reason: 'invalid-size' });\n }\n this.ifxFileUploadError.emit({ file, errorType: !isValidType ? 'invalid-type' : 'file-too-large', message: 'Invalid file rejected' });\n }\n });\n\n this.rejectedSizeFiles = [...this.rejectedSizeFiles, ...rejectedSize];\n this.rejectedTypeFiles = [...this.rejectedTypeFiles, ...rejectedType];\n\n validFiles.forEach(file => this.startUpload(file));\n this.files = [...this.files, ...validFiles];\n\n if (validFiles.length > 0) {\n this.ifxFileUploadAdd.emit({ addedFiles: validFiles, files: this.files });\n this.ifxFileUploadChange.emit({ files: this.files });\n }\n }\n\n startUpload(file: File) {\n this.ifxFileUploadStart.emit({ file });\n\n const task: UploadTask = {\n file,\n progress: 0,\n intervalId: null,\n completed: false\n };\n\n if (this.uploadHandler) {\n // Real Upload\n\n // <ifx-file-upload\n // uploadHandler={(file) => {\n // const formData = new FormData();\n // formData.append('file', file);\n // return fetch('/api/upload', {\n // method: 'POST',\n // body: formData\n // }).then(res => {\n // if (!res.ok) throw new Error('Upload failed');\n // });\n // }}\n // ></ifx-file-upload>\n\n this.uploadHandler(file).then(() => {\n task.progress = 100;\n task.completed = true;\n this.uploadTasks = [...this.uploadTasks];\n this.ifxFileUploadComplete.emit({ file });\n this.ifxFileUploadChange.emit({ files: this.files });\n }).catch(() => {\n console.error('Upload failed');\n this.ifxFileUploadError.emit({ file, errorType: 'upload-failed', message: 'Upload handler rejected file' });\n });\n } else {\n const totalSize = file.size;\n const fakeUploadSpeed = 500000;\n let uploaded = 0;\n\n task.intervalId = window.setInterval(() => {\n uploaded += fakeUploadSpeed / 5;\n const progress = Math.min(100, Math.round((uploaded / totalSize) * 100));\n task.progress = progress;\n this.uploadTasks = [...this.uploadTasks];\n\n if (progress >= 100) {\n clearInterval(task.intervalId!);\n task.completed = true;\n task.intervalId = null;\n this.uploadTasks = [...this.uploadTasks];\n this.ifxFileUploadComplete.emit({ file });\n this.ifxFileUploadChange.emit({ files: this.files });\n }\n }, 200);\n }\n\n this.uploadTasks = [...this.uploadTasks, task];\n }\n\n cancelUpload(file: File) {\n const taskIndex = this.uploadTasks.findIndex(t => t.file.name === file.name);\n if (taskIndex !== -1) {\n const task = this.uploadTasks[taskIndex];\n if (task?.intervalId !== null) {\n clearInterval(task.intervalId);\n }\n this.uploadTasks = this.uploadTasks.filter((_, i) => i !== taskIndex);\n }\n this.files = this.files.filter(f => f.name !== file.name);\n this.ifxFileUploadAbort.emit({ file });\n this.ifxFileUploadChange.emit({ files: this.files });\n if (this.fileInputEl) {\n this.fileInputEl.value = '';\n }\n }\n\n removeFile(file: File) {\n this.uploadTasks = this.uploadTasks.filter(task => task.file.name !== file.name);\n this.files = this.files.filter(f => f.name !== file.name);\n this.ifxFileUploadRemove.emit({ removedFile: file, files: this.files });\n this.ifxFileUploadChange.emit({ files: this.files });\n if (this.fileInputEl) {\n this.fileInputEl.value = '';\n }\n }\n\n clearRejectedFile(fileName: string, type: 'size' | 'type') {\n if (type === 'size') {\n this.rejectedSizeFiles = this.rejectedSizeFiles.filter(f => f !== fileName);\n } else {\n this.rejectedTypeFiles = this.rejectedTypeFiles.filter(f => f !== fileName);\n }\n\n if (this.fileInputEl) {\n this.fileInputEl.value = '';\n }\n }\n\n splitFileNameParts(file: File): { base: string; ext: string } {\n const name = file.name;\n const dotIndex = name.lastIndexOf('.');\n if (dotIndex === -1) return { base: name, ext: '' };\n return {\n base: name.substring(0, dotIndex),\n ext: name.substring(dotIndex)\n };\n }\n\n getFileIcon(file: File): string {\n const extension = file.name.split('.').pop()?.toLowerCase();\n switch (extension) {\n case 'pdf': return 'file-pdf-16';\n case 'jpg':\n case 'jpeg': return 'file-jpg-16';\n case 'png': return 'file-png-16';\n case 'mov': return 'file-mov-16';\n case 'mp3': return 'file-mp3-16';\n case 'mp4': return 'file-mp4-16';\n default: return 'file';\n }\n }\n\n getFormattedSize(file: File): string {\n const sizeInKB = file.size / 1024;\n return sizeInKB > 1024\n ? `${(sizeInKB / 1024).toFixed(1)} MB`\n : `${sizeInKB.toFixed(0)} KB`;\n }\n\n getAcceptAttribute(): string {\n return this.getNormalizedFileTypes().map(ext => '.' + ext.toLowerCase()).join(',');\n }\n\n private getSupportedFileText(): string {\n return this.labelSupportedFormatsTemplate\n .replace('{{types}}', this.getNormalizedFileTypes().map(ext => ext.toUpperCase()).join(', '))\n .replace('{{size}}', this.maxFileSizeMB.toString());\n }\n\n private getFormattedFileTooLargeText(): string {\n return this.labelFileTooLarge.replace('{{size}}', this.maxFileSizeMB.toString());\n }\n\n componentDidLoad() {\n if (this.hostElement.hasAttribute('show-demo-states')) {\n this.showDemoStates = true;\n }\n\n if (this.showDemoStates) {\n this.injectDemoState();\n }\n }\n\n @Method()\n async injectDemoState() {\n const uploading = new File(['demo'], 'Image.jpg', { type: 'image/jpeg' });\n const uploaded = new File(['demo'], 'File.pdf', { type: 'application/pdf' });\n const tooLarge = new File(['demo'], 'Video.mp4', { type: 'video/mp4' });\n const unsupported = new File(['demo'], 'Script.exe', { type: 'application/x-msdownload' });\n\n this.files = [uploaded, uploading];\n this.uploadTasks = [\n { file: uploaded, progress: 100, intervalId: null, completed: true },\n { file: uploading, progress: 35, intervalId: null, completed: false }\n ];\n this.rejectedSizeFiles = [tooLarge.name];\n this.rejectedTypeFiles = [unsupported.name];\n }\n\n render() {\n return (\n <div class=\"file-upload-wrapper\">\n {this.dragAndDrop ? this.renderDragAndDropArea() : this.renderUploadArea()}\n\n <ul class=\"file-list\">\n {this.rejectedSizeFiles.map(fileName => (\n <li class=\"file-item upload-failed\">\n <div class=\"file-icon\">\n <ifx-icon icon=\"file-16\"></ifx-icon>\n </div>\n <div class=\"file-info\">\n <div class=\"file-top-row\">\n <span class=\"file-name-wrapper\">\n <span class=\"file-name-base\">{this.splitFileNameParts({ name: fileName } as File).base}</span>\n <span class=\"file-name-ext\">{this.splitFileNameParts({ name: fileName } as File).ext}</span>\n </span>\n <div class=\"file-actions\">\n <ifx-icon-button\n shape=\"square\"\n variant=\"tertiary\"\n icon=\"delete-forever-16\"\n size=\"s\"\n aria-label=\"Remove file\"\n onClick={() => this.clearRejectedFile(fileName, 'size')}>\n </ifx-icon-button>\n </div>\n </div>\n <div class=\"file-middle-row\">\n <span class=\"file-status\">\n {this.getFormattedFileTooLargeText()}\n </span>\n </div>\n </div>\n </li>\n ))}\n\n {this.rejectedTypeFiles.map(fileName => (\n <li class=\"file-item upload-failed\">\n <div class=\"file-icon\">\n <ifx-icon icon=\"file-16\"></ifx-icon>\n </div>\n <div class=\"file-info\">\n <div class=\"file-top-row\">\n <span class=\"file-name-wrapper\">\n <span class=\"file-name-base\">{this.splitFileNameParts({ name: fileName } as File).base}</span>\n <span class=\"file-name-ext\">{this.splitFileNameParts({ name: fileName } as File).ext}</span>\n </span>\n <div class=\"file-actions\">\n <ifx-icon-button\n shape=\"square\"\n variant=\"tertiary\"\n icon=\"delete-forever-16\"\n size=\"s\"\n aria-label=\"Remove file\"\n onClick={() => this.clearRejectedFile(fileName, 'type')}>\n </ifx-icon-button>\n </div>\n </div>\n <div class=\"file-middle-row\">\n <span class=\"file-status\">\n {this.labelUnsupportedFileType}\n </span>\n </div>\n </div>\n </li>\n ))}\n\n {this.files.map((file) => {\n const task = this.uploadTasks.find(t => t.file.name === file.name);\n const progress = task?.progress ?? 100;\n const isUploading = task && !task.completed;\n const itemClass = isUploading ? 'file-item uploading' : 'file-item upload-success';\n\n const { base, ext } = this.splitFileNameParts(file);\n\n return (\n <li class={itemClass}>\n <div class=\"file-icon\">\n <ifx-icon icon={this.getFileIcon(file)}></ifx-icon>\n </div>\n <div class=\"file-info\">\n <div class=\"file-top-row\">\n <span class=\"file-name-wrapper\">\n <span class=\"file-name-base\">{base}</span>\n <span class=\"file-name-ext\">{ext}</span>\n </span>\n <div class=\"file-actions\">\n <ifx-icon-button\n shape=\"square\"\n variant=\"tertiary\"\n icon=\"cross-16\"\n size=\"s\"\n aria-label=\"Cancel upload\"\n onClick={() => this.cancelUpload(file)}\n style={{ display: isUploading ? 'inline-flex' : 'none' }}>\n </ifx-icon-button>\n <ifx-icon-button\n shape=\"square\"\n variant=\"tertiary\"\n icon=\"delete-forever-16\"\n size=\"s\"\n aria-label=\"Remove file\"\n onClick={() => this.removeFile(file)}\n style={{ display: !isUploading ? 'inline-flex' : 'none' }}>\n </ifx-icon-button>\n </div>\n </div>\n\n <div class=\"file-middle-row\">\n <span class=\"file-size\">{this.getFormattedSize(file)}</span>\n {isUploading && (\n <span class=\"file-uploading\">&nbsp;–&nbsp;Uploading …</span>\n )}\n <span class=\"file-status\">\n {!isUploading && (\n <span>\n <ifx-icon icon=\"check-12\"></ifx-icon>&nbsp;\n {this.labelUploaded}\n </span>\n )}\n </span>\n </div>\n\n {isUploading && (\n <div class=\"file-progress-row\">\n <ifx-progress-bar size=\"s\" value={progress} show-label=\"true\"></ifx-progress-bar>\n </div>\n )}\n </div>\n </li>\n );\n })}\n </ul>\n </div>\n );\n }\n\n renderUploadArea() {\n const handleInputRef = (el: HTMLInputElement | null) => {\n this.fileInputEl = el;\n };\n\n return (\n <div class={{ 'upload-button': true }}>\n <label>\n <ifx-button variant=\"secondary\">\n <ifx-icon icon=\"upload-16\"></ifx-icon>\n {this.labelBrowseFiles}\n </ifx-button>\n <input\n ref={handleInputRef}\n type=\"file\"\n accept={this.getAcceptAttribute()}\n multiple\n onChange={(e) => this.handleFileChange(e)}\n style={{ display: 'none' }}\n />\n </label>\n <p class=\"file-upload-info\">\n {this.getSupportedFileText()}\n </p>\n </div>\n );\n }\n\n renderDragAndDropArea() {\n const handleInputRef = (el: HTMLInputElement | null) => {\n this.fileInputEl = el;\n };\n\n const triggerInputClick = () => {\n if (this.fileInputEl) {\n this.fileInputEl.click();\n }\n };\n\n return (\n <div\n class={{ 'upload-dropzone': true, 'drag-over': this.isDragOver }}\n onClick={triggerInputClick}\n onDragOver={(e) => this.handleDragOver(e)}\n onDragLeave={(e) => this.handleDragLeave(e)}\n onDrop={(e) => this.handleDrop(e)}\n >\n <ifx-icon icon=\"upload-24\" class=\"custom-icon\"></ifx-icon>\n <p>{this.labelDragAndDrop}</p>\n <p class=\"file-upload-info\">\n {this.getSupportedFileText()}\n </p>\n <div style={{ height: '0px', overflow: 'hidden' }}>\n <input\n ref={handleInputRef}\n type=\"file\"\n accept={this.getAcceptAttribute()}\n multiple\n onChange={(e) => this.handleFileChange(e)}\n />\n </div>\n </div>\n );\n }\n}\n"],"version":3}