@infineon/infineon-design-system-stencil 30.15.1--canary.1711.b5c99171f0bb790008b4be6d84bdd707db7ded63.0 → 30.15.1--canary.1496.4741be44434b993b13772e55b00c5ca5137b4242.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 (473) hide show
  1. package/dist/cjs/ifx-accordion_2.cjs.entry.js +1 -1
  2. package/dist/cjs/ifx-alert_2.cjs.entry.js +195 -0
  3. package/dist/cjs/ifx-alert_2.cjs.entry.js.map +1 -0
  4. package/dist/cjs/ifx-badge.cjs.entry.js +1 -1
  5. package/dist/cjs/ifx-basic-table.cjs.entry.js +1 -1
  6. package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js +1 -1
  7. package/dist/cjs/ifx-breadcrumb-item.cjs.entry.js +1 -1
  8. package/dist/cjs/ifx-breadcrumb.cjs.entry.js +1 -1
  9. package/dist/cjs/ifx-button.cjs.entry.js +1 -1
  10. package/dist/cjs/ifx-card-headline.cjs.entry.js +1 -1
  11. package/dist/cjs/ifx-card-image.cjs.entry.js +1 -1
  12. package/dist/cjs/ifx-card-links.cjs.entry.js +1 -1
  13. package/dist/cjs/ifx-card-overline.cjs.entry.js +1 -1
  14. package/dist/cjs/ifx-card-text.cjs.entry.js +1 -1
  15. package/dist/cjs/ifx-card.cjs.entry.js +1 -1
  16. package/dist/cjs/ifx-checkbox.cjs.entry.js +1 -1
  17. package/dist/cjs/ifx-chip_3.cjs.entry.js +1 -1
  18. package/dist/cjs/ifx-content-switcher-item.cjs.entry.js +1 -1
  19. package/dist/cjs/ifx-content-switcher.cjs.entry.js +1 -1
  20. package/dist/cjs/ifx-date-picker.cjs.entry.js +1 -1
  21. package/dist/cjs/ifx-dropdown-header.cjs.entry.js +1 -1
  22. package/dist/cjs/ifx-dropdown-item.cjs.entry.js +1 -1
  23. package/dist/cjs/ifx-dropdown-menu.cjs.entry.js +1 -1
  24. package/dist/cjs/ifx-dropdown-separator.cjs.entry.js +1 -1
  25. package/dist/cjs/ifx-dropdown-trigger-button.cjs.entry.js +1 -1
  26. package/dist/cjs/ifx-dropdown-trigger.cjs.entry.js +1 -1
  27. package/dist/cjs/ifx-dropdown.cjs.entry.js +1 -1
  28. package/dist/cjs/ifx-faq.cjs.entry.js +2 -2
  29. package/dist/cjs/ifx-filter-accordion.cjs.entry.js +1 -1
  30. package/dist/cjs/ifx-filter-bar.cjs.entry.js +1 -1
  31. package/dist/cjs/ifx-filter-search.cjs.entry.js +1 -1
  32. package/dist/cjs/ifx-filter-type-group.cjs.entry.js +1 -1
  33. package/dist/cjs/ifx-footer-column.cjs.entry.js +1 -1
  34. package/dist/cjs/ifx-footer.cjs.entry.js +1 -1
  35. package/dist/cjs/ifx-icon-button.cjs.entry.js +1 -1
  36. package/dist/cjs/ifx-icon.cjs.entry.js +1 -1
  37. package/dist/cjs/ifx-icons-preview.cjs.entry.js +1 -1
  38. package/dist/cjs/ifx-link.cjs.entry.js +1 -1
  39. package/dist/cjs/ifx-list-entry.cjs.entry.js +1 -1
  40. package/dist/cjs/ifx-list.cjs.entry.js +1 -1
  41. package/dist/cjs/ifx-modal.cjs.entry.js +1 -1
  42. package/dist/cjs/{ifx-multiselect_2.cjs.entry.js → ifx-multiselect.cjs.entry.js} +2 -69
  43. package/dist/cjs/ifx-multiselect.cjs.entry.js.map +1 -0
  44. package/dist/cjs/ifx-navbar-item.cjs.entry.js +1 -1
  45. package/dist/cjs/ifx-navbar-profile.cjs.entry.js +1 -1
  46. package/dist/cjs/ifx-navbar.cjs.entry.js +1 -1
  47. package/dist/cjs/ifx-notification.cjs.entry.js +1 -1
  48. package/dist/cjs/ifx-number-indicator.cjs.entry.js +1 -1
  49. package/dist/cjs/ifx-overview-table.cjs.entry.js +1 -1
  50. package/dist/cjs/ifx-progress-bar.cjs.entry.js +1 -1
  51. package/dist/cjs/ifx-radio-button.cjs.entry.js +1 -1
  52. package/dist/cjs/ifx-search-bar.cjs.entry.js +1 -1
  53. package/dist/cjs/ifx-search-field.cjs.entry.js +1 -1
  54. package/dist/cjs/ifx-segment.cjs.entry.js +1 -1
  55. package/dist/cjs/ifx-segmented-control.cjs.entry.js +1 -1
  56. package/dist/cjs/ifx-select.cjs.entry.js +1 -1
  57. package/dist/cjs/ifx-set-filter.cjs.entry.js +1 -1
  58. package/dist/cjs/ifx-sidebar-item.cjs.entry.js +1 -1
  59. package/dist/cjs/ifx-sidebar-title.cjs.entry.js +1 -1
  60. package/dist/cjs/ifx-sidebar.cjs.entry.js +1 -1
  61. package/dist/cjs/ifx-slider.cjs.entry.js +1 -1
  62. package/dist/cjs/ifx-spinner_2.cjs.entry.js +100 -0
  63. package/dist/cjs/ifx-spinner_2.cjs.entry.js.map +1 -0
  64. package/dist/cjs/ifx-status.cjs.entry.js +1 -1
  65. package/dist/cjs/ifx-step.cjs.entry.js +1 -1
  66. package/dist/cjs/ifx-stepper.cjs.entry.js +1 -1
  67. package/dist/cjs/ifx-switch.cjs.entry.js +1 -1
  68. package/dist/cjs/ifx-tab.cjs.entry.js +1 -1
  69. package/dist/cjs/ifx-table.cjs.entry.js +1 -1
  70. package/dist/cjs/ifx-tabs.cjs.entry.js +1 -1
  71. package/dist/cjs/ifx-tag.cjs.entry.js +1 -1
  72. package/dist/cjs/ifx-templates-ui.cjs.entry.js +61 -0
  73. package/dist/cjs/ifx-templates-ui.cjs.entry.js.map +1 -0
  74. package/dist/cjs/ifx-textarea.cjs.entry.js +3 -3
  75. package/dist/cjs/ifx-tooltip.cjs.entry.js +5 -5
  76. package/dist/cjs/{index-68ed35ac.js → index-5a25fafd.js} +35 -23
  77. package/dist/cjs/index-5a25fafd.js.map +1 -0
  78. package/dist/cjs/infineon-design-system-stencil.cjs.js +3 -3
  79. package/dist/cjs/infineon-design-system-stencil.cjs.js.map +1 -1
  80. package/dist/cjs/loader.cjs.js +2 -2
  81. package/dist/collection/collection-manifest.json +3 -1
  82. package/dist/collection/components/templates/template/template.css +76 -0
  83. package/dist/collection/components/templates/template/template.js +263 -0
  84. package/dist/collection/components/templates/template/template.js.map +1 -0
  85. package/dist/collection/components/templates/templates-ui/templates-ui.css +33 -0
  86. package/dist/collection/components/templates/templates-ui/templates-ui.js +75 -0
  87. package/dist/collection/components/templates/templates-ui/templates-ui.js.map +1 -0
  88. package/dist/collection/components/text-field/text-field.js +4 -4
  89. package/dist/collection/components/textarea/textarea.js +2 -2
  90. package/dist/collection/components/tooltip/tooltip.js +4 -4
  91. package/dist/collection/index.js.map +1 -1
  92. package/dist/collection/stories/setup-and-installation/faq/faq.js +1 -1
  93. package/dist/components/ifx-accordion-item.js +1 -1
  94. package/dist/components/ifx-accordion.js +1 -1
  95. package/dist/components/ifx-alert.js +1 -66
  96. package/dist/components/ifx-alert.js.map +1 -1
  97. package/dist/components/ifx-badge.js +1 -1
  98. package/dist/components/ifx-basic-table.js +1 -1
  99. package/dist/components/ifx-breadcrumb-item-label.js +2 -2
  100. package/dist/components/ifx-breadcrumb-item.js +1 -1
  101. package/dist/components/ifx-breadcrumb.js +1 -1
  102. package/dist/components/ifx-button.js +1 -1
  103. package/dist/components/ifx-card-headline.js +1 -1
  104. package/dist/components/ifx-card-image.js +1 -1
  105. package/dist/components/ifx-card-links.js +1 -1
  106. package/dist/components/ifx-card-overline.js +1 -1
  107. package/dist/components/ifx-card-text.js +1 -1
  108. package/dist/components/ifx-card.js +1 -1
  109. package/dist/components/ifx-checkbox.js +1 -1
  110. package/dist/components/ifx-chip-item.js +1 -1
  111. package/dist/components/ifx-chip.js +1 -1
  112. package/dist/components/ifx-content-switcher-item.js +1 -1
  113. package/dist/components/ifx-content-switcher.js +1 -1
  114. package/dist/components/ifx-date-picker.js +2 -2
  115. package/dist/components/ifx-dropdown-header.js +1 -1
  116. package/dist/components/ifx-dropdown-item.js +2 -2
  117. package/dist/components/ifx-dropdown-menu.js +1 -1
  118. package/dist/components/ifx-dropdown-separator.js +1 -1
  119. package/dist/components/ifx-dropdown-trigger-button.js +3 -3
  120. package/dist/components/ifx-dropdown-trigger.js +1 -1
  121. package/dist/components/ifx-dropdown.js +1 -1
  122. package/dist/components/ifx-faq.js +5 -5
  123. package/dist/components/ifx-filter-accordion.js +3 -3
  124. package/dist/components/ifx-filter-bar.js +3 -3
  125. package/dist/components/ifx-filter-search.js +3 -3
  126. package/dist/components/ifx-filter-type-group.js +1 -1
  127. package/dist/components/ifx-footer-column.js +1 -1
  128. package/dist/components/ifx-footer.js +1 -1
  129. package/dist/components/ifx-icon-button.js +1 -1
  130. package/dist/components/ifx-icon.js +1 -1
  131. package/dist/components/ifx-icons-preview.js +4 -4
  132. package/dist/components/ifx-link.js +1 -1
  133. package/dist/components/ifx-list-entry.js +4 -4
  134. package/dist/components/ifx-list.js +3 -3
  135. package/dist/components/ifx-modal.js +3 -3
  136. package/dist/components/ifx-multiselect.js +1 -1
  137. package/dist/components/ifx-navbar-item.js +2 -2
  138. package/dist/components/ifx-navbar-profile.js +1 -1
  139. package/dist/components/ifx-navbar.js +2 -2
  140. package/dist/components/ifx-notification.js +1 -1
  141. package/dist/components/ifx-number-indicator.js +1 -1
  142. package/dist/components/ifx-overview-table.js +4 -4
  143. package/dist/components/ifx-pagination.js +1 -1
  144. package/dist/components/ifx-progress-bar.js +1 -1
  145. package/dist/components/ifx-radio-button.js +1 -1
  146. package/dist/components/ifx-search-bar.js +3 -3
  147. package/dist/components/ifx-search-field.js +1 -1
  148. package/dist/components/ifx-segment.js +2 -2
  149. package/dist/components/ifx-segmented-control.js +2 -2
  150. package/dist/components/ifx-select.js +1 -1
  151. package/dist/components/ifx-set-filter.js +7 -7
  152. package/dist/components/ifx-sidebar-item.js +3 -3
  153. package/dist/components/ifx-sidebar-title.js +1 -1
  154. package/dist/components/ifx-sidebar.js +1 -1
  155. package/dist/components/ifx-slider.js +2 -2
  156. package/dist/components/ifx-spinner.js +1 -44
  157. package/dist/components/ifx-spinner.js.map +1 -1
  158. package/dist/components/ifx-status.js +1 -1
  159. package/dist/components/ifx-step.js +2 -2
  160. package/dist/components/ifx-stepper.js +1 -1
  161. package/dist/components/ifx-switch.js +1 -1
  162. package/dist/components/ifx-tab.js +1 -1
  163. package/dist/components/ifx-table.js +10 -10
  164. package/dist/components/ifx-tabs.js +2 -2
  165. package/dist/components/ifx-tag.js +2 -2
  166. package/dist/components/ifx-template.d.ts +11 -0
  167. package/dist/components/ifx-template.js +8 -0
  168. package/dist/components/ifx-template.js.map +1 -0
  169. package/dist/components/ifx-templates-ui.d.ts +11 -0
  170. package/dist/components/ifx-templates-ui.js +123 -0
  171. package/dist/components/ifx-templates-ui.js.map +1 -0
  172. package/dist/components/ifx-text-field.js +1 -1
  173. package/dist/components/ifx-textarea.js +3 -3
  174. package/dist/components/ifx-tooltip.js +6 -6
  175. package/dist/components/index.js +1 -1
  176. package/dist/components/{p-a0ee8035.js → p-11291285.js} +2 -2
  177. package/dist/components/{p-a0ee8035.js.map → p-11291285.js.map} +1 -1
  178. package/dist/components/p-11a4d62b.js +207 -0
  179. package/dist/components/p-11a4d62b.js.map +1 -0
  180. package/dist/{esm/ifx-spinner.entry.js → components/p-17b4fe6f.js} +28 -9
  181. package/dist/components/p-17b4fe6f.js.map +1 -0
  182. package/dist/components/{p-af26dfa2.js → p-1fa945d9.js} +5 -5
  183. package/dist/components/{p-af26dfa2.js.map → p-1fa945d9.js.map} +1 -1
  184. package/dist/components/{p-e74c8dfd.js → p-31544335.js} +3 -3
  185. package/dist/components/{p-e74c8dfd.js.map → p-31544335.js.map} +1 -1
  186. package/dist/components/{p-1bb86196.js → p-331a7185.js} +3 -3
  187. package/dist/components/{p-1bb86196.js.map → p-331a7185.js.map} +1 -1
  188. package/dist/components/{p-654ff7d8.js → p-414b675f.js} +2 -2
  189. package/dist/components/{p-654ff7d8.js.map → p-414b675f.js.map} +1 -1
  190. package/dist/components/{p-d3904b2f.js → p-5d3f02e1.js} +5 -5
  191. package/dist/components/{p-d3904b2f.js.map → p-5d3f02e1.js.map} +1 -1
  192. package/dist/components/{p-e57d6c00.js → p-689fc3d9.js} +4 -4
  193. package/dist/components/{p-e57d6c00.js.map → p-689fc3d9.js.map} +1 -1
  194. package/dist/components/{p-9c024a54.js → p-68b8cbe3.js} +3 -3
  195. package/dist/components/{p-9c024a54.js.map → p-68b8cbe3.js.map} +1 -1
  196. package/dist/components/{p-ff48962a.js → p-6edcc608.js} +3 -3
  197. package/dist/components/{p-ff48962a.js.map → p-6edcc608.js.map} +1 -1
  198. package/dist/components/{p-73a1df17.js → p-7edd8486.js} +2 -2
  199. package/dist/components/{p-73a1df17.js.map → p-7edd8486.js.map} +1 -1
  200. package/dist/components/{p-5bc6d67d.js → p-86d520f9.js} +2 -2
  201. package/dist/components/{p-5bc6d67d.js.map → p-86d520f9.js.map} +1 -1
  202. package/dist/components/{p-e8836259.js → p-8f05517c.js} +2 -2
  203. package/dist/components/{p-e8836259.js.map → p-8f05517c.js.map} +1 -1
  204. package/dist/components/{p-ec9d64bf.js → p-974badc3.js} +2 -2
  205. package/dist/components/{p-ec9d64bf.js.map → p-974badc3.js.map} +1 -1
  206. package/dist/components/{p-f4d50678.js → p-98a0d141.js} +7 -7
  207. package/dist/components/{p-f4d50678.js.map → p-98a0d141.js.map} +1 -1
  208. package/dist/components/{p-828bbb25.js → p-9af6ec8b.js} +2 -2
  209. package/dist/components/{p-828bbb25.js.map → p-9af6ec8b.js.map} +1 -1
  210. package/dist/{esm/ifx-alert.entry.js → components/p-a366d76b.js} +35 -8
  211. package/dist/components/p-a366d76b.js.map +1 -0
  212. package/dist/components/{p-0fce434b.js → p-af2ffe85.js} +4 -4
  213. package/dist/components/{p-0fce434b.js.map → p-af2ffe85.js.map} +1 -1
  214. package/dist/components/{p-232d5fcd.js → p-c7cf24d4.js} +4 -4
  215. package/dist/components/{p-232d5fcd.js.map → p-c7cf24d4.js.map} +1 -1
  216. package/dist/components/{p-3ee20ed5.js → p-d421a059.js} +2 -5
  217. package/dist/components/p-d421a059.js.map +1 -0
  218. package/dist/components/{p-6fd6d1a9.js → p-e398627a.js} +3 -3
  219. package/dist/components/{p-6fd6d1a9.js.map → p-e398627a.js.map} +1 -1
  220. package/dist/esm/ifx-accordion_2.entry.js +1 -1
  221. package/dist/esm/ifx-alert_2.entry.js +190 -0
  222. package/dist/esm/ifx-alert_2.entry.js.map +1 -0
  223. package/dist/esm/ifx-badge.entry.js +1 -1
  224. package/dist/esm/ifx-basic-table.entry.js +1 -1
  225. package/dist/esm/ifx-breadcrumb-item-label.entry.js +1 -1
  226. package/dist/esm/ifx-breadcrumb-item.entry.js +1 -1
  227. package/dist/esm/ifx-breadcrumb.entry.js +1 -1
  228. package/dist/esm/ifx-button.entry.js +1 -1
  229. package/dist/esm/ifx-card-headline.entry.js +1 -1
  230. package/dist/esm/ifx-card-image.entry.js +1 -1
  231. package/dist/esm/ifx-card-links.entry.js +1 -1
  232. package/dist/esm/ifx-card-overline.entry.js +1 -1
  233. package/dist/esm/ifx-card-text.entry.js +1 -1
  234. package/dist/esm/ifx-card.entry.js +1 -1
  235. package/dist/esm/ifx-checkbox.entry.js +1 -1
  236. package/dist/esm/ifx-chip_3.entry.js +1 -1
  237. package/dist/esm/ifx-content-switcher-item.entry.js +1 -1
  238. package/dist/esm/ifx-content-switcher.entry.js +1 -1
  239. package/dist/esm/ifx-date-picker.entry.js +1 -1
  240. package/dist/esm/ifx-dropdown-header.entry.js +1 -1
  241. package/dist/esm/ifx-dropdown-item.entry.js +1 -1
  242. package/dist/esm/ifx-dropdown-menu.entry.js +1 -1
  243. package/dist/esm/ifx-dropdown-separator.entry.js +1 -1
  244. package/dist/esm/ifx-dropdown-trigger-button.entry.js +1 -1
  245. package/dist/esm/ifx-dropdown-trigger.entry.js +1 -1
  246. package/dist/esm/ifx-dropdown.entry.js +1 -1
  247. package/dist/esm/ifx-faq.entry.js +2 -2
  248. package/dist/esm/ifx-filter-accordion.entry.js +1 -1
  249. package/dist/esm/ifx-filter-bar.entry.js +1 -1
  250. package/dist/esm/ifx-filter-search.entry.js +1 -1
  251. package/dist/esm/ifx-filter-type-group.entry.js +1 -1
  252. package/dist/esm/ifx-footer-column.entry.js +1 -1
  253. package/dist/esm/ifx-footer.entry.js +1 -1
  254. package/dist/esm/ifx-icon-button.entry.js +1 -1
  255. package/dist/esm/ifx-icon.entry.js +1 -1
  256. package/dist/esm/ifx-icons-preview.entry.js +1 -1
  257. package/dist/esm/ifx-link.entry.js +1 -1
  258. package/dist/esm/ifx-list-entry.entry.js +1 -1
  259. package/dist/esm/ifx-list.entry.js +1 -1
  260. package/dist/esm/ifx-modal.entry.js +1 -1
  261. package/dist/esm/{ifx-multiselect_2.entry.js → ifx-multiselect.entry.js} +3 -69
  262. package/dist/esm/ifx-multiselect.entry.js.map +1 -0
  263. package/dist/esm/ifx-navbar-item.entry.js +1 -1
  264. package/dist/esm/ifx-navbar-profile.entry.js +1 -1
  265. package/dist/esm/ifx-navbar.entry.js +1 -1
  266. package/dist/esm/ifx-notification.entry.js +1 -1
  267. package/dist/esm/ifx-number-indicator.entry.js +1 -1
  268. package/dist/esm/ifx-overview-table.entry.js +1 -1
  269. package/dist/esm/ifx-progress-bar.entry.js +1 -1
  270. package/dist/esm/ifx-radio-button.entry.js +1 -1
  271. package/dist/esm/ifx-search-bar.entry.js +1 -1
  272. package/dist/esm/ifx-search-field.entry.js +1 -1
  273. package/dist/esm/ifx-segment.entry.js +1 -1
  274. package/dist/esm/ifx-segmented-control.entry.js +1 -1
  275. package/dist/esm/ifx-select.entry.js +1 -1
  276. package/dist/esm/ifx-set-filter.entry.js +1 -1
  277. package/dist/esm/ifx-sidebar-item.entry.js +1 -1
  278. package/dist/esm/ifx-sidebar-title.entry.js +1 -1
  279. package/dist/esm/ifx-sidebar.entry.js +1 -1
  280. package/dist/esm/ifx-slider.entry.js +1 -1
  281. package/dist/esm/ifx-spinner_2.entry.js +95 -0
  282. package/dist/esm/ifx-spinner_2.entry.js.map +1 -0
  283. package/dist/esm/ifx-status.entry.js +1 -1
  284. package/dist/esm/ifx-step.entry.js +1 -1
  285. package/dist/esm/ifx-stepper.entry.js +1 -1
  286. package/dist/esm/ifx-switch.entry.js +1 -1
  287. package/dist/esm/ifx-tab.entry.js +1 -1
  288. package/dist/esm/ifx-table.entry.js +1 -1
  289. package/dist/esm/ifx-tabs.entry.js +1 -1
  290. package/dist/esm/ifx-tag.entry.js +1 -1
  291. package/dist/esm/ifx-templates-ui.entry.js +57 -0
  292. package/dist/esm/ifx-templates-ui.entry.js.map +1 -0
  293. package/dist/esm/ifx-textarea.entry.js +3 -3
  294. package/dist/esm/ifx-tooltip.entry.js +5 -5
  295. package/dist/esm/{index-f6e95f3d.js → index-5f8d7dd1.js} +35 -24
  296. package/dist/esm/index-5f8d7dd1.js.map +1 -0
  297. package/dist/esm/infineon-design-system-stencil.js +4 -4
  298. package/dist/esm/infineon-design-system-stencil.js.map +1 -1
  299. package/dist/esm/loader.js +3 -3
  300. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -1
  301. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js.map +1 -1
  302. package/dist/infineon-design-system-stencil/{p-c6ff49d7.entry.js → p-0026b1ed.entry.js} +2 -2
  303. package/dist/infineon-design-system-stencil/{p-6c18926e.entry.js → p-0985bbf7.entry.js} +2 -2
  304. package/dist/infineon-design-system-stencil/{p-d57b5e31.entry.js → p-0fb6f01c.entry.js} +2 -2
  305. package/dist/infineon-design-system-stencil/{p-7a0b2fd1.entry.js → p-145ac8c3.entry.js} +2 -2
  306. package/dist/infineon-design-system-stencil/{p-96e3c31e.entry.js → p-1562681b.entry.js} +2 -2
  307. package/dist/infineon-design-system-stencil/{p-b120a552.entry.js → p-19eb1d31.entry.js} +2 -2
  308. package/dist/infineon-design-system-stencil/{p-eeccb158.entry.js → p-1e83fe61.entry.js} +2 -2
  309. package/dist/infineon-design-system-stencil/p-20fe9306.js +3 -0
  310. package/dist/infineon-design-system-stencil/p-20fe9306.js.map +1 -0
  311. package/dist/infineon-design-system-stencil/{p-407c4329.entry.js → p-219191e4.entry.js} +2 -2
  312. package/dist/infineon-design-system-stencil/p-23cf6993.entry.js +2 -0
  313. package/dist/infineon-design-system-stencil/p-23cf6993.entry.js.map +1 -0
  314. package/dist/infineon-design-system-stencil/{p-33f5c7b8.entry.js → p-26a24c5e.entry.js} +2 -2
  315. package/dist/infineon-design-system-stencil/{p-82f9da03.entry.js → p-29a9ad56.entry.js} +2 -2
  316. package/dist/infineon-design-system-stencil/{p-1ad03102.entry.js → p-2c6aea8a.entry.js} +2 -2
  317. package/dist/infineon-design-system-stencil/p-2c7718b1.entry.js +2 -0
  318. package/dist/infineon-design-system-stencil/{p-fb455026.entry.js.map → p-2c7718b1.entry.js.map} +1 -1
  319. package/dist/infineon-design-system-stencil/p-30708a33.entry.js +2 -0
  320. package/dist/infineon-design-system-stencil/{p-22496889.entry.js.map → p-30708a33.entry.js.map} +1 -1
  321. package/dist/infineon-design-system-stencil/{p-347a1e85.entry.js → p-30826daf.entry.js} +2 -2
  322. package/dist/infineon-design-system-stencil/{p-03f5d7d6.entry.js → p-34c05073.entry.js} +2 -2
  323. package/dist/infineon-design-system-stencil/{p-d2630254.entry.js → p-363aa55b.entry.js} +2 -2
  324. package/dist/infineon-design-system-stencil/p-36918b0d.entry.js +2 -0
  325. package/dist/infineon-design-system-stencil/p-36918b0d.entry.js.map +1 -0
  326. package/dist/infineon-design-system-stencil/{p-4bf95d5b.entry.js → p-36957004.entry.js} +2 -2
  327. package/dist/infineon-design-system-stencil/{p-3b02b076.entry.js → p-3ac39cc4.entry.js} +2 -2
  328. package/dist/infineon-design-system-stencil/{p-d8cc865a.entry.js → p-44636777.entry.js} +2 -2
  329. package/dist/infineon-design-system-stencil/{p-f63ce1bc.entry.js → p-459d293b.entry.js} +2 -2
  330. package/dist/infineon-design-system-stencil/{p-e7b63ab1.entry.js → p-49d803a4.entry.js} +2 -2
  331. package/dist/infineon-design-system-stencil/p-4cf4458c.entry.js +2 -0
  332. package/dist/infineon-design-system-stencil/{p-1fad8ea5.entry.js → p-56523df9.entry.js} +2 -2
  333. package/dist/infineon-design-system-stencil/{p-672bcd0b.entry.js → p-61ed3444.entry.js} +2 -2
  334. package/dist/infineon-design-system-stencil/{p-21c07ef9.entry.js → p-624609c2.entry.js} +2 -2
  335. package/dist/infineon-design-system-stencil/{p-3f5c3424.entry.js → p-6ca8f694.entry.js} +2 -2
  336. package/dist/infineon-design-system-stencil/p-70fa0226.entry.js +2 -0
  337. package/dist/infineon-design-system-stencil/p-70fa0226.entry.js.map +1 -0
  338. package/dist/infineon-design-system-stencil/{p-f20951d0.entry.js → p-790da64b.entry.js} +2 -2
  339. package/dist/infineon-design-system-stencil/p-79422118.entry.js +2 -0
  340. package/dist/infineon-design-system-stencil/{p-85468723.entry.js → p-7b7f46c4.entry.js} +2 -2
  341. package/dist/infineon-design-system-stencil/{p-c7607cbd.entry.js → p-8071b4dc.entry.js} +2 -2
  342. package/dist/infineon-design-system-stencil/p-813ca02a.entry.js +2 -0
  343. package/dist/infineon-design-system-stencil/p-813ca02a.entry.js.map +1 -0
  344. package/dist/infineon-design-system-stencil/{p-814da9fd.entry.js → p-8423184f.entry.js} +2 -2
  345. package/dist/infineon-design-system-stencil/{p-500bc0ed.entry.js → p-8b0ac001.entry.js} +2 -2
  346. package/dist/infineon-design-system-stencil/{p-f9bf9346.entry.js → p-8c9771b2.entry.js} +2 -2
  347. package/dist/infineon-design-system-stencil/{p-0b79cb38.entry.js → p-8caaeef9.entry.js} +2 -2
  348. package/dist/infineon-design-system-stencil/{p-62c705f1.entry.js → p-990f7b35.entry.js} +2 -2
  349. package/dist/infineon-design-system-stencil/{p-d61ab729.entry.js → p-99994d90.entry.js} +2 -2
  350. package/dist/infineon-design-system-stencil/{p-e2ad853d.entry.js → p-9d37bb10.entry.js} +2 -2
  351. package/dist/infineon-design-system-stencil/{p-c646ffcc.entry.js → p-9d78c93a.entry.js} +2 -2
  352. package/dist/infineon-design-system-stencil/{p-b37f692b.entry.js → p-aaf74f1a.entry.js} +2 -2
  353. package/dist/infineon-design-system-stencil/{p-1f0bc888.entry.js → p-aef8c59a.entry.js} +2 -2
  354. package/dist/infineon-design-system-stencil/{p-598ec153.entry.js → p-b11a2646.entry.js} +2 -2
  355. package/dist/infineon-design-system-stencil/{p-a2f7459e.entry.js → p-b3a85c71.entry.js} +2 -2
  356. package/dist/infineon-design-system-stencil/{p-258c4e35.entry.js → p-b75a1eea.entry.js} +2 -2
  357. package/dist/infineon-design-system-stencil/{p-01a1f6d0.entry.js → p-b78558a6.entry.js} +2 -2
  358. package/dist/infineon-design-system-stencil/{p-88bd6a1e.entry.js → p-ba6932e0.entry.js} +2 -2
  359. package/dist/infineon-design-system-stencil/{p-1f004047.entry.js → p-be81a9d2.entry.js} +2 -2
  360. package/dist/infineon-design-system-stencil/{p-5a3c5cce.entry.js → p-be9c5b8a.entry.js} +2 -2
  361. package/dist/infineon-design-system-stencil/{p-2f12adbc.entry.js → p-c02bea07.entry.js} +2 -2
  362. package/dist/infineon-design-system-stencil/{p-cb3a70ad.entry.js → p-c03cebcc.entry.js} +2 -2
  363. package/dist/infineon-design-system-stencil/{p-8df0dd12.entry.js → p-c08d968d.entry.js} +2 -2
  364. package/dist/infineon-design-system-stencil/{p-12db6350.entry.js → p-c0b6ccaa.entry.js} +2 -2
  365. package/dist/infineon-design-system-stencil/{p-4349f994.entry.js → p-c1b8395e.entry.js} +2 -2
  366. package/dist/infineon-design-system-stencil/{p-3af201db.entry.js → p-c606c26a.entry.js} +2 -2
  367. package/dist/infineon-design-system-stencil/{p-234d0bed.entry.js → p-c9154166.entry.js} +2 -2
  368. package/dist/infineon-design-system-stencil/{p-c2ff66ea.entry.js → p-d11e34f4.entry.js} +2 -2
  369. package/dist/infineon-design-system-stencil/{p-0fdd8cca.entry.js → p-d1c32120.entry.js} +2 -2
  370. package/dist/infineon-design-system-stencil/{p-6f3d22bb.entry.js → p-d518535a.entry.js} +2 -2
  371. package/dist/infineon-design-system-stencil/{p-b3882dc0.entry.js → p-dc6ad67b.entry.js} +2 -2
  372. package/dist/infineon-design-system-stencil/{p-934704d9.entry.js → p-e4d50231.entry.js} +2 -2
  373. package/dist/infineon-design-system-stencil/{p-392f1655.entry.js → p-e76e1aa6.entry.js} +2 -2
  374. package/dist/infineon-design-system-stencil/p-e8cc6b61.entry.js +2 -0
  375. package/dist/infineon-design-system-stencil/{p-39fb5fb9.entry.js → p-ea81f982.entry.js} +2 -2
  376. package/dist/infineon-design-system-stencil/{p-f42bc9c8.entry.js → p-ea8e705e.entry.js} +2 -2
  377. package/dist/infineon-design-system-stencil/{p-aa5f89b6.entry.js → p-eae80c6f.entry.js} +2 -2
  378. package/dist/infineon-design-system-stencil/{p-3384179d.entry.js → p-ecc93499.entry.js} +2 -2
  379. package/dist/infineon-design-system-stencil/{p-98c50956.entry.js → p-f5c8c49b.entry.js} +2 -2
  380. package/dist/infineon-design-system-stencil/{p-53e75622.entry.js → p-ff858900.entry.js} +2 -2
  381. package/dist/types/components/templates/template/template.d.ts +33 -0
  382. package/dist/types/components/templates/templates-ui/templates-ui.d.ts +10 -0
  383. package/dist/types/components.d.ts +49 -0
  384. package/package.json +1 -1
  385. package/dist/cjs/ifx-alert.cjs.entry.js +0 -47
  386. package/dist/cjs/ifx-alert.cjs.entry.js.map +0 -1
  387. package/dist/cjs/ifx-multiselect_2.cjs.entry.js.map +0 -1
  388. package/dist/cjs/ifx-spinner.cjs.entry.js +0 -33
  389. package/dist/cjs/ifx-spinner.cjs.entry.js.map +0 -1
  390. package/dist/cjs/index-68ed35ac.js.map +0 -1
  391. package/dist/components/p-3ee20ed5.js.map +0 -1
  392. package/dist/esm/ifx-alert.entry.js.map +0 -1
  393. package/dist/esm/ifx-multiselect_2.entry.js.map +0 -1
  394. package/dist/esm/ifx-spinner.entry.js.map +0 -1
  395. package/dist/esm/index-f6e95f3d.js.map +0 -1
  396. package/dist/infineon-design-system-stencil/p-22496889.entry.js +0 -2
  397. package/dist/infineon-design-system-stencil/p-4faad7d7.entry.js +0 -2
  398. package/dist/infineon-design-system-stencil/p-4faad7d7.entry.js.map +0 -1
  399. package/dist/infineon-design-system-stencil/p-5acdecf6.entry.js +0 -2
  400. package/dist/infineon-design-system-stencil/p-5acdecf6.entry.js.map +0 -1
  401. package/dist/infineon-design-system-stencil/p-6c89883f.entry.js +0 -2
  402. package/dist/infineon-design-system-stencil/p-abba423a.entry.js +0 -2
  403. package/dist/infineon-design-system-stencil/p-c85d7577.entry.js +0 -2
  404. package/dist/infineon-design-system-stencil/p-c85d7577.entry.js.map +0 -1
  405. package/dist/infineon-design-system-stencil/p-e07ca773.entry.js +0 -2
  406. package/dist/infineon-design-system-stencil/p-e244bae4.js +0 -3
  407. package/dist/infineon-design-system-stencil/p-e244bae4.js.map +0 -1
  408. package/dist/infineon-design-system-stencil/p-fb455026.entry.js +0 -2
  409. /package/dist/infineon-design-system-stencil/{p-c6ff49d7.entry.js.map → p-0026b1ed.entry.js.map} +0 -0
  410. /package/dist/infineon-design-system-stencil/{p-6c18926e.entry.js.map → p-0985bbf7.entry.js.map} +0 -0
  411. /package/dist/infineon-design-system-stencil/{p-d57b5e31.entry.js.map → p-0fb6f01c.entry.js.map} +0 -0
  412. /package/dist/infineon-design-system-stencil/{p-7a0b2fd1.entry.js.map → p-145ac8c3.entry.js.map} +0 -0
  413. /package/dist/infineon-design-system-stencil/{p-96e3c31e.entry.js.map → p-1562681b.entry.js.map} +0 -0
  414. /package/dist/infineon-design-system-stencil/{p-b120a552.entry.js.map → p-19eb1d31.entry.js.map} +0 -0
  415. /package/dist/infineon-design-system-stencil/{p-eeccb158.entry.js.map → p-1e83fe61.entry.js.map} +0 -0
  416. /package/dist/infineon-design-system-stencil/{p-407c4329.entry.js.map → p-219191e4.entry.js.map} +0 -0
  417. /package/dist/infineon-design-system-stencil/{p-33f5c7b8.entry.js.map → p-26a24c5e.entry.js.map} +0 -0
  418. /package/dist/infineon-design-system-stencil/{p-82f9da03.entry.js.map → p-29a9ad56.entry.js.map} +0 -0
  419. /package/dist/infineon-design-system-stencil/{p-1ad03102.entry.js.map → p-2c6aea8a.entry.js.map} +0 -0
  420. /package/dist/infineon-design-system-stencil/{p-347a1e85.entry.js.map → p-30826daf.entry.js.map} +0 -0
  421. /package/dist/infineon-design-system-stencil/{p-03f5d7d6.entry.js.map → p-34c05073.entry.js.map} +0 -0
  422. /package/dist/infineon-design-system-stencil/{p-d2630254.entry.js.map → p-363aa55b.entry.js.map} +0 -0
  423. /package/dist/infineon-design-system-stencil/{p-4bf95d5b.entry.js.map → p-36957004.entry.js.map} +0 -0
  424. /package/dist/infineon-design-system-stencil/{p-3b02b076.entry.js.map → p-3ac39cc4.entry.js.map} +0 -0
  425. /package/dist/infineon-design-system-stencil/{p-d8cc865a.entry.js.map → p-44636777.entry.js.map} +0 -0
  426. /package/dist/infineon-design-system-stencil/{p-f63ce1bc.entry.js.map → p-459d293b.entry.js.map} +0 -0
  427. /package/dist/infineon-design-system-stencil/{p-e7b63ab1.entry.js.map → p-49d803a4.entry.js.map} +0 -0
  428. /package/dist/infineon-design-system-stencil/{p-abba423a.entry.js.map → p-4cf4458c.entry.js.map} +0 -0
  429. /package/dist/infineon-design-system-stencil/{p-1fad8ea5.entry.js.map → p-56523df9.entry.js.map} +0 -0
  430. /package/dist/infineon-design-system-stencil/{p-672bcd0b.entry.js.map → p-61ed3444.entry.js.map} +0 -0
  431. /package/dist/infineon-design-system-stencil/{p-21c07ef9.entry.js.map → p-624609c2.entry.js.map} +0 -0
  432. /package/dist/infineon-design-system-stencil/{p-3f5c3424.entry.js.map → p-6ca8f694.entry.js.map} +0 -0
  433. /package/dist/infineon-design-system-stencil/{p-f20951d0.entry.js.map → p-790da64b.entry.js.map} +0 -0
  434. /package/dist/infineon-design-system-stencil/{p-6c89883f.entry.js.map → p-79422118.entry.js.map} +0 -0
  435. /package/dist/infineon-design-system-stencil/{p-85468723.entry.js.map → p-7b7f46c4.entry.js.map} +0 -0
  436. /package/dist/infineon-design-system-stencil/{p-c7607cbd.entry.js.map → p-8071b4dc.entry.js.map} +0 -0
  437. /package/dist/infineon-design-system-stencil/{p-814da9fd.entry.js.map → p-8423184f.entry.js.map} +0 -0
  438. /package/dist/infineon-design-system-stencil/{p-500bc0ed.entry.js.map → p-8b0ac001.entry.js.map} +0 -0
  439. /package/dist/infineon-design-system-stencil/{p-f9bf9346.entry.js.map → p-8c9771b2.entry.js.map} +0 -0
  440. /package/dist/infineon-design-system-stencil/{p-0b79cb38.entry.js.map → p-8caaeef9.entry.js.map} +0 -0
  441. /package/dist/infineon-design-system-stencil/{p-62c705f1.entry.js.map → p-990f7b35.entry.js.map} +0 -0
  442. /package/dist/infineon-design-system-stencil/{p-d61ab729.entry.js.map → p-99994d90.entry.js.map} +0 -0
  443. /package/dist/infineon-design-system-stencil/{p-e2ad853d.entry.js.map → p-9d37bb10.entry.js.map} +0 -0
  444. /package/dist/infineon-design-system-stencil/{p-c646ffcc.entry.js.map → p-9d78c93a.entry.js.map} +0 -0
  445. /package/dist/infineon-design-system-stencil/{p-b37f692b.entry.js.map → p-aaf74f1a.entry.js.map} +0 -0
  446. /package/dist/infineon-design-system-stencil/{p-1f0bc888.entry.js.map → p-aef8c59a.entry.js.map} +0 -0
  447. /package/dist/infineon-design-system-stencil/{p-598ec153.entry.js.map → p-b11a2646.entry.js.map} +0 -0
  448. /package/dist/infineon-design-system-stencil/{p-a2f7459e.entry.js.map → p-b3a85c71.entry.js.map} +0 -0
  449. /package/dist/infineon-design-system-stencil/{p-258c4e35.entry.js.map → p-b75a1eea.entry.js.map} +0 -0
  450. /package/dist/infineon-design-system-stencil/{p-01a1f6d0.entry.js.map → p-b78558a6.entry.js.map} +0 -0
  451. /package/dist/infineon-design-system-stencil/{p-88bd6a1e.entry.js.map → p-ba6932e0.entry.js.map} +0 -0
  452. /package/dist/infineon-design-system-stencil/{p-1f004047.entry.js.map → p-be81a9d2.entry.js.map} +0 -0
  453. /package/dist/infineon-design-system-stencil/{p-5a3c5cce.entry.js.map → p-be9c5b8a.entry.js.map} +0 -0
  454. /package/dist/infineon-design-system-stencil/{p-2f12adbc.entry.js.map → p-c02bea07.entry.js.map} +0 -0
  455. /package/dist/infineon-design-system-stencil/{p-cb3a70ad.entry.js.map → p-c03cebcc.entry.js.map} +0 -0
  456. /package/dist/infineon-design-system-stencil/{p-8df0dd12.entry.js.map → p-c08d968d.entry.js.map} +0 -0
  457. /package/dist/infineon-design-system-stencil/{p-12db6350.entry.js.map → p-c0b6ccaa.entry.js.map} +0 -0
  458. /package/dist/infineon-design-system-stencil/{p-4349f994.entry.js.map → p-c1b8395e.entry.js.map} +0 -0
  459. /package/dist/infineon-design-system-stencil/{p-3af201db.entry.js.map → p-c606c26a.entry.js.map} +0 -0
  460. /package/dist/infineon-design-system-stencil/{p-234d0bed.entry.js.map → p-c9154166.entry.js.map} +0 -0
  461. /package/dist/infineon-design-system-stencil/{p-c2ff66ea.entry.js.map → p-d11e34f4.entry.js.map} +0 -0
  462. /package/dist/infineon-design-system-stencil/{p-0fdd8cca.entry.js.map → p-d1c32120.entry.js.map} +0 -0
  463. /package/dist/infineon-design-system-stencil/{p-6f3d22bb.entry.js.map → p-d518535a.entry.js.map} +0 -0
  464. /package/dist/infineon-design-system-stencil/{p-b3882dc0.entry.js.map → p-dc6ad67b.entry.js.map} +0 -0
  465. /package/dist/infineon-design-system-stencil/{p-934704d9.entry.js.map → p-e4d50231.entry.js.map} +0 -0
  466. /package/dist/infineon-design-system-stencil/{p-392f1655.entry.js.map → p-e76e1aa6.entry.js.map} +0 -0
  467. /package/dist/infineon-design-system-stencil/{p-e07ca773.entry.js.map → p-e8cc6b61.entry.js.map} +0 -0
  468. /package/dist/infineon-design-system-stencil/{p-39fb5fb9.entry.js.map → p-ea81f982.entry.js.map} +0 -0
  469. /package/dist/infineon-design-system-stencil/{p-f42bc9c8.entry.js.map → p-ea8e705e.entry.js.map} +0 -0
  470. /package/dist/infineon-design-system-stencil/{p-aa5f89b6.entry.js.map → p-eae80c6f.entry.js.map} +0 -0
  471. /package/dist/infineon-design-system-stencil/{p-3384179d.entry.js.map → p-ecc93499.entry.js.map} +0 -0
  472. /package/dist/infineon-design-system-stencil/{p-98c50956.entry.js.map → p-f5c8c49b.entry.js.map} +0 -0
  473. /package/dist/infineon-design-system-stencil/{p-53e75622.entry.js.map → p-ff858900.entry.js.map} +0 -0
@@ -0,0 +1,263 @@
1
+ import { h } from "@stencil/core";
2
+ export class Template {
3
+ constructor() {
4
+ this.repoDetails = { name: "", desc: "", framework: "" };
5
+ this.showDetails = false;
6
+ this.isTemplatePage = false;
7
+ this.isLoading = true;
8
+ }
9
+ authUser() {
10
+ const clientId = process.env.CLIENT_ID;
11
+ const redirectUri = 'http://localhost:6262/?path=/docs/dds-templates--development';
12
+ const scope = process.env.SCOPE;
13
+ const state = process.env.STATE;
14
+ const authorizationUrl = `https://github.com/login/oauth/authorize?` +
15
+ `client_id=${clientId}&` +
16
+ `redirect_uri=${redirectUri}&` +
17
+ `scope=${scope}&` +
18
+ `state=${state}`;
19
+ window.open(authorizationUrl, '_blank');
20
+ }
21
+ componentDidLoad() {
22
+ const url = new URL(window.location.href);
23
+ const code = url.searchParams.get('code');
24
+ const { templateName } = this.getLocalStorageValues();
25
+ if (code && this.name === templateName) {
26
+ this.isTemplatePage = true;
27
+ this.toggleTemplates.emit('details');
28
+ this.getUserToken(code);
29
+ }
30
+ }
31
+ getLocalStorageValues() {
32
+ const repoName = localStorage.getItem('repo_name');
33
+ const repoDesc = localStorage.getItem('repo_desc');
34
+ const repoFramework = localStorage.getItem('repo_framework');
35
+ const templateName = localStorage.getItem('selectedTemplate');
36
+ return { repoName, repoDesc, repoFramework, templateName };
37
+ }
38
+ async getUserToken(authCode) {
39
+ const { repoName, repoDesc, repoFramework, templateName } = this.getLocalStorageValues();
40
+ fetch(`http://localhost:5000/token/${authCode}/${repoName}/${repoDesc}/${repoFramework}/${templateName}`)
41
+ .then(response => {
42
+ if (response.ok) {
43
+ return response.text();
44
+ }
45
+ else {
46
+ return response.text().then(errorMessage => {
47
+ throw new Error(errorMessage);
48
+ });
49
+ }
50
+ })
51
+ .then(data => {
52
+ if (data) {
53
+ this.isLoading = false;
54
+ this.repoUrl = data;
55
+ localStorage.clear();
56
+ }
57
+ })
58
+ .catch(error => {
59
+ this.repoError = error.message;
60
+ console.error('Error:', error.message);
61
+ });
62
+ }
63
+ handleUserInput(e, type) {
64
+ if (type === 'name') {
65
+ this.repoDetails = Object.assign(Object.assign({}, this.repoDetails), { name: e.target.value });
66
+ }
67
+ else if (type === 'desc') {
68
+ this.repoDetails = Object.assign(Object.assign({}, this.repoDetails), { desc: e.target.value });
69
+ }
70
+ else if (type === 'framework') {
71
+ this.repoDetails = Object.assign(Object.assign({}, this.repoDetails), { framework: e.target.value });
72
+ }
73
+ }
74
+ submitUserData() {
75
+ if (this.repoDetails.name && this.repoDetails.desc && this.repoDetails.framework) {
76
+ localStorage.setItem('repo_name', this.repoDetails.name);
77
+ localStorage.setItem('repo_desc', this.repoDetails.desc);
78
+ localStorage.setItem('repo_framework', this.repoDetails.framework);
79
+ localStorage.setItem('selectedTemplate', this.name);
80
+ this.fieldError.emit(false);
81
+ this.authUser();
82
+ }
83
+ else {
84
+ this.fieldError.emit('All fields are mandatory');
85
+ }
86
+ }
87
+ togglePadding(action) {
88
+ let parent = this.el.parentElement;
89
+ if (parent) {
90
+ const rootNode = parent.getRootNode();
91
+ if (rootNode instanceof ShadowRoot) {
92
+ parent = rootNode.host.parentElement;
93
+ }
94
+ else {
95
+ parent = parent.parentElement;
96
+ }
97
+ if (action === 'remove') {
98
+ parent.parentElement.style.padding = '0px';
99
+ }
100
+ else if (action === 'add') {
101
+ parent.parentElement.style.padding = '4rem 20px';
102
+ }
103
+ }
104
+ }
105
+ handleCurrentTemplate(e) {
106
+ if (e && !this.showDetails) {
107
+ this.togglePadding('remove');
108
+ const targetTemplate = e.currentTarget;
109
+ this.toggleTemplates.emit(targetTemplate);
110
+ this.showDetails = true;
111
+ }
112
+ }
113
+ async toggleTemplate(currTemp) {
114
+ const templateWrapper = this.el.shadowRoot.querySelector('.react__template-wrapper');
115
+ if (templateWrapper) {
116
+ if (!templateWrapper.classList.contains('hide') && currTemp) {
117
+ if (templateWrapper !== currTemp) {
118
+ templateWrapper.classList.add('hide');
119
+ }
120
+ }
121
+ else {
122
+ if (this.showDetails) {
123
+ this.showDetails = false;
124
+ }
125
+ this.togglePadding('add');
126
+ templateWrapper.classList.remove('hide');
127
+ }
128
+ }
129
+ }
130
+ render() {
131
+ return (h("div", { key: '6d5f7e56dc61f95a1eba83e38ff25f2b0bf8103a' }, this.isTemplatePage
132
+ ?
133
+ h("div", { class: "template__page-wrapper" }, !this.repoUrl && !this.repoError &&
134
+ h("div", null, h("h3", null, "Your repository is getting ready.."), h("p", null, "This will only take a minute.")), this.isLoading && !this.repoError && h("div", null, h("ifx-spinner", { variant: 'default', size: 's' })), this.repoUrl && h("ifx-link", { href: this.repoUrl, target: "_parent", size: "m", variant: "underlined" }, "Your repository"), this.repoError && h("div", null, this.repoError))
135
+ :
136
+ h("div", { class: "react__template-container" }, h("div", { class: "react__template-wrapper", onClick: (e) => this.handleCurrentTemplate(e) }, h("div", { class: "image__wrapper" }, h("img", { src: this.thumbnail }))), this.showDetails &&
137
+ h("div", { class: "details__wrapper" }, h("div", { class: "selection__buttons-wrapper" }, h("div", { class: "selection__input" }, h("input", { type: "radio", id: "react", name: "chosen_framework", value: "react", onInput: (e) => this.handleUserInput(e, 'framework') }), h("label", { htmlFor: "react" }, "React")), h("div", { class: "selection__input vue" }, h("input", { class: "vue__input", disabled: true, type: "radio", id: "vue", name: "chosen_framework", value: "vue", onInput: (e) => this.handleUserInput(e, 'framework') }), h("label", { class: "vue__label", htmlFor: "vue" }, "Vue"), " (Soon)")), h("div", { class: "input__fields-wrapper" }, h("ifx-text-field", { required: true, onInput: (e) => this.handleUserInput(e, 'name'), size: "m", icon: "c-info-16", placeholder: "Your repository name" }, "Repository Name"), h("ifx-text-field", { required: true, size: "m", icon: "c-info-16", onInput: (e) => this.handleUserInput(e, 'desc'), placeholder: "Your repository description" }, "Repository Description"), h("ifx-button", { fullWidth: true, onClick: () => this.submitUserData(), variant: 'primary' }, "Generate template"))))));
138
+ }
139
+ static get is() { return "ifx-template"; }
140
+ static get encapsulation() { return "shadow"; }
141
+ static get originalStyleUrls() {
142
+ return {
143
+ "$": ["template.scss"]
144
+ };
145
+ }
146
+ static get styleUrls() {
147
+ return {
148
+ "$": ["template.css"]
149
+ };
150
+ }
151
+ static get properties() {
152
+ return {
153
+ "name": {
154
+ "type": "string",
155
+ "mutable": false,
156
+ "complexType": {
157
+ "original": "string",
158
+ "resolved": "string",
159
+ "references": {}
160
+ },
161
+ "required": false,
162
+ "optional": false,
163
+ "docs": {
164
+ "tags": [],
165
+ "text": ""
166
+ },
167
+ "getter": false,
168
+ "setter": false,
169
+ "attribute": "name",
170
+ "reflect": false
171
+ },
172
+ "thumbnail": {
173
+ "type": "string",
174
+ "mutable": false,
175
+ "complexType": {
176
+ "original": "string",
177
+ "resolved": "string",
178
+ "references": {}
179
+ },
180
+ "required": false,
181
+ "optional": false,
182
+ "docs": {
183
+ "tags": [],
184
+ "text": ""
185
+ },
186
+ "getter": false,
187
+ "setter": false,
188
+ "attribute": "thumbnail",
189
+ "reflect": false
190
+ }
191
+ };
192
+ }
193
+ static get states() {
194
+ return {
195
+ "repoDetails": {},
196
+ "repoUrl": {},
197
+ "showDetails": {},
198
+ "isTemplatePage": {},
199
+ "isLoading": {},
200
+ "repoError": {}
201
+ };
202
+ }
203
+ static get events() {
204
+ return [{
205
+ "method": "toggleTemplates",
206
+ "name": "toggleTemplates",
207
+ "bubbles": true,
208
+ "cancelable": true,
209
+ "composed": true,
210
+ "docs": {
211
+ "tags": [],
212
+ "text": ""
213
+ },
214
+ "complexType": {
215
+ "original": "any",
216
+ "resolved": "any",
217
+ "references": {}
218
+ }
219
+ }, {
220
+ "method": "fieldError",
221
+ "name": "fieldError",
222
+ "bubbles": true,
223
+ "cancelable": true,
224
+ "composed": true,
225
+ "docs": {
226
+ "tags": [],
227
+ "text": ""
228
+ },
229
+ "complexType": {
230
+ "original": "any",
231
+ "resolved": "any",
232
+ "references": {}
233
+ }
234
+ }];
235
+ }
236
+ static get methods() {
237
+ return {
238
+ "toggleTemplate": {
239
+ "complexType": {
240
+ "signature": "(currTemp: any) => Promise<void>",
241
+ "parameters": [{
242
+ "name": "currTemp",
243
+ "type": "any",
244
+ "docs": ""
245
+ }],
246
+ "references": {
247
+ "Promise": {
248
+ "location": "global",
249
+ "id": "global::Promise"
250
+ }
251
+ },
252
+ "return": "Promise<void>"
253
+ },
254
+ "docs": {
255
+ "text": "",
256
+ "tags": []
257
+ }
258
+ }
259
+ };
260
+ }
261
+ static get elementRef() { return "el"; }
262
+ }
263
+ //# sourceMappingURL=template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/components/templates/template/template.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,EAAE,MAAM,eAAe,CAAC;AAOhG,MAAM,OAAO,QAAQ;IALrB;QAOW,gBAAW,GAAsD,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;QAEvG,gBAAW,GAAY,KAAK,CAAC;QAC7B,mBAAc,GAAY,KAAK,CAAC;QAChC,cAAS,GAAY,IAAI,CAAC;KAwLpC;IAjLC,QAAQ;QACN,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;QACvC,MAAM,WAAW,GAAG,8DAA8D,CAAC;QACnF,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;QAChC,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;QAEhC,MAAM,gBAAgB,GAAG,2CAA2C;YAClE,aAAa,QAAQ,GAAG;YACxB,gBAAgB,WAAW,GAAG;YAC9B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CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,WAAW,CAAC,GAAG;oCACpJ,aAAO,KAAK,EAAC,YAAY,EAAC,OAAO,EAAC,KAAK,UAAY;8CAC/C,CACF;4BAGN,WAAK,KAAK,EAAC,uBAAuB;gCAChC,sBAAgB,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,WAAW,EAAC,WAAW,EAAC,sBAAsB,sBAAiC;gCAE9K,sBAAgB,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,WAAW,EAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,WAAW,EAAC,6BAA6B,6BAAwC;gCAE5L,kBAAY,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,OAAO,EAAC,SAAS,wBAA+B,CAC/G,CAEF,CACF,CACF,CACP,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Element, State, Prop, Event, EventEmitter, Method } from '@stencil/core';\n\n@Component({\n tag: 'ifx-template',\n styleUrl: 'template.scss',\n shadow: true,\n})\nexport class Template {\n @Element() el: HTMLElement;\n @State() repoDetails: { name: string, desc: string, framework: string } = { name: \"\", desc: \"\", framework: \"\" };\n @State() repoUrl: string;\n @State() showDetails: boolean = false;\n @State() isTemplatePage: boolean = false;\n @State() isLoading: boolean = true;\n @State() repoError: string;\n @Prop() name: string;\n @Event() toggleTemplates: EventEmitter;\n @Event() fieldError: EventEmitter;\n @Prop() thumbnail: string;\n\n authUser() { \n const clientId = process.env.CLIENT_ID;\n const redirectUri = 'http://localhost:6262/?path=/docs/dds-templates--development';\n const scope = process.env.SCOPE;\n const state = process.env.STATE;\n\n const authorizationUrl = `https://github.com/login/oauth/authorize?` +\n `client_id=${clientId}&` +\n `redirect_uri=${redirectUri}&` +\n `scope=${scope}&` +\n `state=${state}`;\n \n window.open(authorizationUrl, '_blank'); \n }\n\n componentDidLoad() { \n const url = new URL(window.location.href);\n const code = url.searchParams.get('code');\n const { templateName } = this.getLocalStorageValues()\n if(code && this.name === templateName) { \n this.isTemplatePage = true;\n this.toggleTemplates.emit('details')\n this.getUserToken(code)\n } \n }\n\n getLocalStorageValues() { \n const repoName = localStorage.getItem('repo_name');\n const repoDesc = localStorage.getItem('repo_desc');\n const repoFramework = localStorage.getItem('repo_framework');\n const templateName = localStorage.getItem('selectedTemplate');\n return { repoName, repoDesc, repoFramework, templateName }\n }\n\n async getUserToken(authCode) {\n const { repoName, repoDesc, repoFramework, templateName } = this.getLocalStorageValues();\n\n fetch(`http://localhost:5000/token/${authCode}/${repoName}/${repoDesc}/${repoFramework}/${templateName}`)\n .then(response => {\n if (response.ok) {\n return response.text();\n } else {\n return response.text().then(errorMessage => {\n throw new Error(errorMessage);\n });\n }\n })\n .then(data => { \n if(data) { \n this.isLoading = false;\n this.repoUrl = data;\n localStorage.clear();\n } \n })\n .catch(error => {\n this.repoError = error.message;\n console.error('Error:', error.message)\n });\n }\n\n handleUserInput(e, type) { \n if (type === 'name') {\n this.repoDetails = { ...this.repoDetails, name: e.target.value };\n } else if (type === 'desc') {\n this.repoDetails = { ...this.repoDetails, desc: e.target.value };\n } else if(type === 'framework') { \n this.repoDetails = { ...this.repoDetails, framework: e.target.value };\n }\n }\n\n submitUserData() { \n if(this.repoDetails.name && this.repoDetails.desc && this.repoDetails.framework) { \n localStorage.setItem('repo_name', this.repoDetails.name);\n localStorage.setItem('repo_desc', this.repoDetails.desc);\n localStorage.setItem('repo_framework', this.repoDetails.framework);\n localStorage.setItem('selectedTemplate', this.name);\n this.fieldError.emit(false)\n this.authUser()\n } else { \n this.fieldError.emit('All fields are mandatory')\n }\n }\n\n togglePadding(action) { \n let parent = this.el.parentElement;\n if (parent) {\n const rootNode = parent.getRootNode();\n if (rootNode instanceof ShadowRoot) {\n parent = rootNode.host.parentElement;\n } else {\n parent = parent.parentElement;\n }\n if(action === 'remove') { \n parent.parentElement.style.padding = '0px';\n } else if(action === 'add') { \n parent.parentElement.style.padding = '4rem 20px';\n }\n }\n }\n\n handleCurrentTemplate(e) { \n if(e && !this.showDetails) { \n this.togglePadding('remove')\n const targetTemplate = e.currentTarget;\n this.toggleTemplates.emit(targetTemplate)\n this.showDetails = true;\n } \n }\n\n @Method()\n async toggleTemplate(currTemp) { \n const templateWrapper = this.el.shadowRoot.querySelector('.react__template-wrapper');\n if(templateWrapper) { \n if(!templateWrapper.classList.contains('hide') && currTemp ) { \n if(templateWrapper !== currTemp) {\n templateWrapper.classList.add('hide')\n }\n } else { \n if(this.showDetails) { \n this.showDetails = false;\n }\n this.togglePadding('add')\n templateWrapper.classList.remove('hide')\n }\n }\n }\n\n \n render() {\n return (\n <div>\n {this.isTemplatePage \n ? \n <div class=\"template__page-wrapper\">\n {!this.repoUrl && !this.repoError && \n <div>\n <h3>Your repository is getting ready..</h3>\n <p>This will only take a minute.</p>\n </div>}\n {this.isLoading && !this.repoError && <div><ifx-spinner variant='default' size='s' /></div>}\n {this.repoUrl && <ifx-link href={this.repoUrl} target=\"_parent\" size=\"m\" variant=\"underlined\">Your repository</ifx-link>}\n {this.repoError && <div>{this.repoError}</div>}\n </div> \n : \n <div class=\"react__template-container\">\n <div class=\"react__template-wrapper\" onClick={(e) => this.handleCurrentTemplate(e)}>\n <div class=\"image__wrapper\">\n <img src={this.thumbnail} />\n </div>\n </div>\n {this.showDetails && \n <div class=\"details__wrapper\">\n <div class=\"selection__buttons-wrapper\">\n <div class=\"selection__input\">\n <input type=\"radio\" id=\"react\" name=\"chosen_framework\" value=\"react\" onInput={(e) => this.handleUserInput(e, 'framework')} />\n <label htmlFor=\"react\">React</label>\n </div>\n <div class=\"selection__input vue\">\n <input class=\"vue__input\" disabled type=\"radio\" id=\"vue\" name=\"chosen_framework\" value=\"vue\" onInput={(e) => this.handleUserInput(e, 'framework')}/>\n <label class=\"vue__label\" htmlFor=\"vue\">Vue</label> (Soon)\n </div>\n </div>\n \n\n <div class=\"input__fields-wrapper\">\n <ifx-text-field required={true} onInput={(e) => this.handleUserInput(e, 'name')} size=\"m\" icon=\"c-info-16\" placeholder=\"Your repository name\">Repository Name</ifx-text-field>\n\n <ifx-text-field required={true} size=\"m\" icon=\"c-info-16\" onInput={(e) => this.handleUserInput(e, 'desc')} placeholder=\"Your repository description\">Repository Description</ifx-text-field>\n\n <ifx-button fullWidth={true} onClick={() => this.submitUserData()} variant='primary'>Generate template</ifx-button>\n </div>\n \n </div>}\n </div>}\n </div>\n );\n }\n}"]}
@@ -0,0 +1,33 @@
1
+ * {
2
+ padding: 0;
3
+ margin: 0;
4
+ }
5
+
6
+ .templates__container {
7
+ display: flex;
8
+ flex-direction: column;
9
+ align-items: center;
10
+ }
11
+ .templates__container .back__btn-wrapper {
12
+ display: none;
13
+ }
14
+ .templates__container .back__btn-wrapper.show {
15
+ display: flex;
16
+ justify-content: space-between;
17
+ width: 100%;
18
+ }
19
+ .templates__container .back__btn-wrapper .alert__wrapper {
20
+ display: none;
21
+ }
22
+ .templates__container .back__btn-wrapper .alert__wrapper.show {
23
+ display: block;
24
+ }
25
+ .templates__container .templates__wrapper {
26
+ display: flex;
27
+ padding: 20px 0px;
28
+ gap: 20px;
29
+ flex-wrap: wrap;
30
+ }
31
+ .templates__container .templates__title.hide {
32
+ display: none;
33
+ }
@@ -0,0 +1,75 @@
1
+ import { h, getAssetPath } from "@stencil/core";
2
+ export class TemplatesUI {
3
+ constructor() {
4
+ this.tableTemplate = getAssetPath(`https://raw.githubusercontent.com/Infineon/public-assets/refs/heads/main/table_template.png`);
5
+ this.wizardTemplate = getAssetPath(`https://raw.githubusercontent.com/Infineon/public-assets/refs/heads/main/wizard_template.png`);
6
+ }
7
+ toggleTemplate(currTemp) {
8
+ const templates = this.el.shadowRoot.querySelector('.templates__wrapper').querySelectorAll('ifx-template');
9
+ templates.forEach((template) => {
10
+ template.toggleTemplate(currTemp);
11
+ });
12
+ }
13
+ handleError(e) {
14
+ const alertWrapper = this.el.shadowRoot.querySelector('.alert__wrapper');
15
+ if (e.detail) {
16
+ alertWrapper.classList.add('show');
17
+ }
18
+ else {
19
+ alertWrapper.classList.remove('show');
20
+ }
21
+ }
22
+ filterTemplates(e) {
23
+ const title = this.el.shadowRoot.querySelector('.templates__title');
24
+ const backBtn = this.el.shadowRoot.querySelector('.back__btn-wrapper');
25
+ if (e.detail) {
26
+ title.classList.add('hide');
27
+ if (e.detail !== 'details') {
28
+ backBtn.classList.add('show');
29
+ }
30
+ this.toggleTemplate(e.detail);
31
+ }
32
+ else {
33
+ title.classList.remove('hide');
34
+ backBtn.classList.remove('show');
35
+ this.toggleTemplate(null);
36
+ }
37
+ }
38
+ closeAlert() {
39
+ const alertWrapper = this.el.shadowRoot.querySelector('.alert__wrapper');
40
+ alertWrapper.classList.remove('show');
41
+ }
42
+ render() {
43
+ return (h("div", { key: '0836cefbd6e9760badefacd6fcdc5dec7e3bc5fb', class: 'templates__container' }, h("div", { key: '3cddf53fe880bafa5d41e296530810ea26a9bc88', class: "back__btn-wrapper" }, h("ifx-icon-button", { key: '756b35df3419e8d92363307866047818c271f868', onClick: () => this.filterTemplates(false), shape: "round", variant: "tertiary", icon: "arrow-left-16", target: "_blank", size: "m" }), h("div", { key: 'f990f29dac2c7ca78f2f652894fc2fe994ae759c', class: "alert__wrapper" }, h("ifx-alert", { key: '2553f88d9af2fbcdd29bf796a76acee7da3cf74c', onClick: () => this.closeAlert(), "aria-live": "assertive", variant: "danger", icon: "c-info-24" }, "All fields are mandatory"))), h("h2", { key: '7dc3b09d76864c415446b6fed4ca46dcb0f216cb', class: "templates__title" }, "Choose your template"), h("div", { key: '6bbd867fbc390f0cfbd8fb823046adff02d25239', class: "templates__wrapper" }, h("ifx-template", { key: 'b7afc320afed39824056ca067c4366264c2095eb', name: 'template-01', thumbnail: this.tableTemplate }), h("ifx-template", { key: 'eabb40da6e08a54d40f50d81350d8dad0041b40f', name: 'template-02', thumbnail: this.wizardTemplate }))));
44
+ }
45
+ static get is() { return "ifx-templates-ui"; }
46
+ static get encapsulation() { return "shadow"; }
47
+ static get originalStyleUrls() {
48
+ return {
49
+ "$": ["templates-ui.scss"]
50
+ };
51
+ }
52
+ static get styleUrls() {
53
+ return {
54
+ "$": ["templates-ui.css"]
55
+ };
56
+ }
57
+ static get assetsDirs() { return ["assets"]; }
58
+ static get elementRef() { return "el"; }
59
+ static get listeners() {
60
+ return [{
61
+ "name": "fieldError",
62
+ "method": "handleError",
63
+ "target": undefined,
64
+ "capture": false,
65
+ "passive": false
66
+ }, {
67
+ "name": "toggleTemplates",
68
+ "method": "filterTemplates",
69
+ "target": undefined,
70
+ "capture": false,
71
+ "passive": false
72
+ }];
73
+ }
74
+ }
75
+ //# sourceMappingURL=templates-ui.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates-ui.js","sourceRoot":"","sources":["../../../../src/components/templates/templates-ui/templates-ui.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAS5E,MAAM,OAAO,WAAW;IAPxB;QAUU,kBAAa,GAAG,YAAY,CAAC,6FAA6F,CAAC,CAAC;QAC5H,mBAAc,GAAG,YAAY,CAAC,8FAA8F,CAAC,CAAC;KA2DvI;IAxDC,cAAc,CAAC,QAAQ;QACrB,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC,gBAAg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AAY,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;QACzE,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;IAED,MAAM;QACJ,OAAO,CACL,4DAAK,KAAK,EAAC,sBAAsB;YAC/B,4DAAK,KAAK,EAAC,mBAAmB;gBAC5B,wEAAiB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,KAAK,EAAC,OAAO,EAAC,OAAO,EAAC,UAAU,EAAC,IAAI,EAAC,eAAe,EAAC,MAAM,EAAC,QAAQ,EAAC,IAAI,EAAC,GAAG,GAAG;gBAC9I,4DAAK,KAAK,EAAC,gBAAgB;oBACzB,kEAAW,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE,eAAY,WAAW,EAAC,OAAO,EAAC,QAAQ,EAAC,IAAI,EAAC,WAAW,+BAAqC,CACrI,CACF;YACN,2DAAI,KAAK,EAAC,kBAAkB,2BAA0B;YACtD,4DAAK,KAAK,EAAC,oBAAoB;gBAC7B,qEAAc,IAAI,EAAC,aAAa,EAAC,SAAS,EAAE,IAAI,CAAC,aAAa,GAAI;gBAClE,qEAAc,IAAI,EAAC,aAAa,EAAC,SAAS,EAAE,IAAI,CAAC,cAAc,GAAI,CAC/D,CACF,CACP,CAAA;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Listen, Element, getAssetPath } from '@stencil/core';\n\n@Component({\n tag: 'ifx-templates-ui',\n styleUrl: 'templates-ui.scss',\n shadow: true,\n assetsDirs: ['assets']\n})\n\nexport class TemplatesUI {\n @Element() el: HTMLElement;\n\n private tableTemplate = getAssetPath(`https://raw.githubusercontent.com/Infineon/public-assets/refs/heads/main/table_template.png`);\n private wizardTemplate = getAssetPath(`https://raw.githubusercontent.com/Infineon/public-assets/refs/heads/main/wizard_template.png`);\n\n\n toggleTemplate(currTemp) { \n const templates = this.el.shadowRoot.querySelector('.templates__wrapper').querySelectorAll('ifx-template');\n templates.forEach((template) => { \n template.toggleTemplate(currTemp)\n })\n }\n\n @Listen('fieldError')\n handleError(e) { \n const alertWrapper = this.el.shadowRoot.querySelector('.alert__wrapper');\n if(e.detail) { \n alertWrapper.classList.add('show');\n } else { \n alertWrapper.classList.remove('show');\n }\n }\n\n @Listen('toggleTemplates')\n filterTemplates(e) {\n const title = this.el.shadowRoot.querySelector('.templates__title');\n const backBtn = this.el.shadowRoot.querySelector('.back__btn-wrapper');\n if(e.detail) { \n title.classList.add('hide');\n if(e.detail !== 'details') { \n backBtn.classList.add('show');\n }\n this.toggleTemplate(e.detail)\n } else { \n title.classList.remove('hide');\n backBtn.classList.remove('show');\n this.toggleTemplate(null)\n }\n }\n\n closeAlert() { \n const alertWrapper = this.el.shadowRoot.querySelector('.alert__wrapper');\n alertWrapper.classList.remove('show');\n }\n\n render() {\n return (\n <div class='templates__container'>\n <div class=\"back__btn-wrapper\">\n <ifx-icon-button onClick={() => this.filterTemplates(false)} shape=\"round\" variant=\"tertiary\" icon=\"arrow-left-16\" target=\"_blank\" size=\"m\" />\n <div class=\"alert__wrapper\">\n <ifx-alert onClick={() => this.closeAlert()} aria-live=\"assertive\" variant=\"danger\" icon=\"c-info-24\">All fields are mandatory</ifx-alert>\n </div>\n </div>\n <h2 class=\"templates__title\">Choose your template</h2>\n <div class=\"templates__wrapper\">\n <ifx-template name='template-01' thumbnail={this.tableTemplate} />\n <ifx-template name='template-02' thumbnail={this.wizardTemplate} />\n </div>\n </div>\n )\n }\n}\n"]}
@@ -38,12 +38,12 @@ export class TextField {
38
38
  this.internals.setFormValue("");
39
39
  }
40
40
  render() {
41
- return (h("div", { key: '344fcdc99073aa39a1c7f5e8754e5d1ab6601d51', "aria-label": "a text field for user input", "aria-value": this.value, "aria-disabled": this.disabled, class: `textInput__container ${this.disabled ? 'disabled' : ""}` }, h("div", { key: '19f3475dd13f9c60dfbf6e05ca46c6ba1763787a', class: "textInput__top-wrapper" }, h("label", { key: '491557a610d0f960208e777584ae7890007de72b', htmlFor: "text-field" }, h("slot", { key: 'b5383e076e18434c8b1ea4c6f7e34dd2a159ccc3' }), this.optional && this.required ? (h("span", { class: "optional-required" }, "(optional) *")) : this.optional ? (h("span", { class: "optional" }, "(optional)")) : this.required ? (h("span", { class: `required ${this.error ? 'error' : ""}` }, "*")) : null)), h("div", { key: '0d0425e3de92c73a73f0226805dfffa166c232d7', class: "textInput__bottom-wrapper" }, h("div", { key: '211fb12acdd71c4bbe51abad547ed849f6d50d32', class: "input-container" }, this.icon && (h("ifx-icon", { key: 'a9db8e91ca48bf5b03f1a6140c1455e83ae5ecac', class: 'input-icon', icon: this.icon })), h("input", { key: 'a674019c9b4a2fb8166687e1da2b68a3cb751b4a', ref: (el) => (this.inputElement = el), disabled: this.disabled, type: "text", id: 'text-field', value: this.value, onInput: () => this.handleInput(), placeholder: this.placeholder, maxlength: this.maxlength, class: `${this.icon ? 'icon' : ""}
41
+ return (h("div", { key: '6c1d37820601366febde1472171e21643616f0a2', "aria-label": "a text field for user input", "aria-value": this.value, "aria-disabled": this.disabled, class: `textInput__container ${this.disabled ? 'disabled' : ""}` }, h("div", { key: 'b447456a1f37fc2721240d255c8ed0a5152d4a4c', class: "textInput__top-wrapper" }, h("label", { key: '88368a2a8a6c981950698c4b2735d7c1be8f865d', htmlFor: "text-field" }, h("slot", { key: 'd022625c2476227a398f518dac47dbf41b4e965c' }), this.optional && this.required ? (h("span", { class: "optional-required" }, "(optional) *")) : this.optional ? (h("span", { class: "optional" }, "(optional)")) : this.required ? (h("span", { class: `required ${this.error ? 'error' : ""}` }, "*")) : null)), h("div", { key: '85830b03ae0476ef5082086a65d4d679cd719b29', class: "textInput__bottom-wrapper" }, h("div", { key: '7572d87e0e2d023332f1c44ba26f6754960fc7fa', class: "input-container" }, this.icon && (h("ifx-icon", { key: '60dab8ca9db0462b4bb96d3029bfcd50c3189df3', class: 'input-icon', icon: this.icon })), h("input", { key: '57d7f5afd1839f8d8e680b178a3a5a4de14e55b2', ref: (el) => (this.inputElement = el), disabled: this.disabled, type: "text", id: 'text-field', value: this.value, onInput: () => this.handleInput(), placeholder: this.placeholder, maxlength: this.maxlength, class: `${this.icon ? 'icon' : ""}
42
42
  ${this.error ? 'error' : ""}
43
43
  ${this.size === "s" ? "input-s" : ""}
44
- ${this.success ? "success" : ""}` }), (this.showDeleteIcon && this.value) && (h("ifx-icon", { key: 'a6f33a57e0a1afa7cfbd979ab04639a024c186fc', class: "delete-icon", icon: "cremove16", onClick: () => this.handleDeleteContent() }))), this.caption && !this.error &&
45
- h("div", { key: 'e2e28f6efe952e9b48db2d48bfdbe9d35240c41a', class: `textInput__bottom-wrapper-caption ${this.disabled} ? disabled : ""` }, this.caption), this.error &&
46
- h("div", { key: '38531a94862030b6e64f0551a8182f49be8cca97', class: "textInput__bottom-wrapper-caption error" }, this.caption))));
44
+ ${this.success ? "success" : ""}` }), (this.showDeleteIcon && this.value) && (h("ifx-icon", { key: '1b1828c2ef25fd5a8010a78484efb7783c445a45', class: "delete-icon", icon: "cremove16", onClick: () => this.handleDeleteContent() }))), this.caption && !this.error &&
45
+ h("div", { key: 'ab245df20620f9b9dd3a2f1a38ffa77109277b23', class: `textInput__bottom-wrapper-caption ${this.disabled} ? disabled : ""` }, this.caption), this.error &&
46
+ h("div", { key: '70b3e872ad79ac6868f25f7a1e2acf2a5737c375', class: "textInput__bottom-wrapper-caption error" }, this.caption))));
47
47
  }
48
48
  static get is() { return "ifx-text-field"; }
49
49
  static get encapsulation() { return "shadow"; }
@@ -30,9 +30,9 @@ export class TextArea {
30
30
  }
31
31
  render() {
32
32
  var _a, _b;
33
- return (h(Host, { key: 'c70752e015f3ddc9e5e482a6fd173e23435a2f41', class: `wrapper
33
+ return (h(Host, { key: '401cb9024b441980ccdce08e319f28d5b891c874', class: `wrapper
34
34
  wrapper--${this.error ? 'error' : ''}
35
- wrapper--${this.disabled ? 'disabled' : ''}` }, h("label", { key: '4b3765e6c32598376b55c316dfc9c34157c72fe0', class: 'wrapper__label', htmlFor: this.inputId }, (_a = this.label) === null || _a === void 0 ? void 0 : _a.trim()), h("div", { key: 'e0e66b29ef2185d87f5b757cc5af1b7fb7d77261', class: 'wrapper__textarea' }, h("textarea", { key: '82d15056d4adf7d435e3e1c284ca7e3d77f0ad0e', "aria-label": 'a textarea', "aria-value": this.value, "aria-disabled": this.disabled, id: this.inputId, style: { resize: this.resize }, name: this.name ? this.name : this.inputId, cols: this.cols, rows: this.rows, maxlength: this.maxlength, wrap: this.wrap, disabled: this.disabled, readonly: this.readOnly, placeholder: this.placeholder, value: this.value, onInput: (e) => this.handleOnInput(e) })), ((_b = this.caption) === null || _b === void 0 ? void 0 : _b.trim()) && (h("div", { key: '21296971b22cb11ed30f5acb106db45a5e4a814c', class: 'wrapper__caption' }, this.caption.trim()))));
35
+ wrapper--${this.disabled ? 'disabled' : ''}` }, h("label", { key: '8589ede50ccabbf46fbdcec9573760ca2ea38d7e', class: 'wrapper__label', htmlFor: this.inputId }, (_a = this.label) === null || _a === void 0 ? void 0 : _a.trim()), h("div", { key: '7b3bdf9679b604664970e7e3252d19ceeea33b12', class: 'wrapper__textarea' }, h("textarea", { key: 'f6db6a3d01b4d622387e53a90574ccd3551d63cf', "aria-label": 'a textarea', "aria-value": this.value, "aria-disabled": this.disabled, id: this.inputId, style: { resize: this.resize }, name: this.name ? this.name : this.inputId, cols: this.cols, rows: this.rows, maxlength: this.maxlength, wrap: this.wrap, disabled: this.disabled, readonly: this.readOnly, placeholder: this.placeholder, value: this.value, onInput: (e) => this.handleOnInput(e) })), ((_b = this.caption) === null || _b === void 0 ? void 0 : _b.trim()) && (h("div", { key: '141f946dcf2a9de0155e7b5b7045eaf836d84f0d', class: 'wrapper__caption' }, this.caption.trim()))));
36
36
  }
37
37
  static get is() { return "ifx-textarea"; }
38
38
  static get encapsulation() { return "shadow"; }
@@ -148,10 +148,10 @@ export class Tooltip {
148
148
  'tooltip-extended': true,
149
149
  'visible': this.tooltipVisible,
150
150
  };
151
- return (h("div", { key: 'a3e94d257de47ee109910623728c2ec10c701f76', "aria-label": "a tooltip showing important information", "aria-value": this.header, class: "tooltip__container" }, h("slot", { key: '2340b9ae6bb7466f82fa38c19e80e65182d437d9' }), this.variant.toLowerCase() === 'dismissible' && h("div", { key: 'd8e9985a0c3ee94b7acaee7ba202b6952f3c4eed', class: tooltipDismissible }, h("button", { key: 'eeace3daf76321639c1d68fb4fd5a69db27f7a7b', "aria-label": "Close Tooltip", class: "close-button", onClick: this.onDismissClick }, h("ifx-icon", { key: '1026280d20c6a5c0773324183fadbc48ae9239db', icon: "cross16" })), h("div", { key: '986894f35601527bf123437751c84030e98eb2fe', class: "tooltip-dismissible-content" }, this.header && h("div", { key: 'ba7119a72e546b453644d844782f7ec3afe7fe62', class: "tooltip-dismissible-header" }, this.header), h("div", { key: '5e37e44fe509229dc0bc0d671251e949768409f6', class: "tooltip-dismissible-body" }, this.text)), h("svg", { key: '4f400210024fde9a324d24ba65bbcbb73af86e87', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '3d3a715cc208e3dfe58f311e209fd516ae890c61', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" }))), this.variant.toLowerCase() === 'compact' &&
152
- h("div", { key: '1a38865c9a119aa9b6b8d143746cb5d12ce86df6', class: tooltipCompact }, this.text, h("svg", { key: '67c94e68b883178e6c2fd29b7dbcba4af763d118', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '55cfd16d85d1166dbe05191c5f5add91db676e5b', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" }))), this.variant.toLowerCase() === 'extended' &&
153
- h("div", { key: '5cd9004e80bd01e438e9757b9e4ee67b852981e6', class: tooltipExtended }, h("slot", { key: '8eb4828515afe31d978d68fb469c5b6d96d94fc1', name: "icon" }, this.icon ? h("div", { class: "extended_icon" }, h("ifx-icon", { icon: this.icon })) :
154
- h("svg", { class: "extended_icon", xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24" }, h("path", { stroke: "#fff", "stroke-linecap": "round", "stroke-linejoin": "round", d: "M20.5 2.5h-16a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-16a2 2 0 0 0-2-2Z" }), h("path", { stroke: "#fff", d: "M19 17H6l2.5-4 2.097 2.516.405.486.379-.506 4.118-5.49.003-.002L19 17Z" }), h("path", { fill: "#fff", d: "M10 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" }))), h("div", { key: '174077b59caa0f1a58ec8bc2892a2453a2314fa5', class: "tooltip-extended-content" }, this.header && h("div", { key: 'c83634d2f261972dc9b721828e2a97417b19a6fb', class: "tooltip-extended-header" }, this.header), h("div", { key: '66aa44d89bd608c2322e6984cfe165167ccaad0e', class: "tooltip-extended-body" }, this.text)), h("svg", { key: '402ad198485da5a0d0f72f8e2836a85909c7f354', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'efcc0439d745aac61e6a4834dacd9f21627d230f', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" })))));
151
+ return (h("div", { key: '67592390577cafdb6ad45d27f47eea035999d640', "aria-label": "a tooltip showing important information", "aria-value": this.header, class: "tooltip__container" }, h("slot", { key: 'a0ae8a96706f3db0574ce812ffccd1f49c36220b' }), this.variant.toLowerCase() === 'dismissible' && h("div", { key: 'e17202aa1972d9fd34e0c77787ecb4fbbaea98b4', class: tooltipDismissible }, h("button", { key: '0615905578854fac3883150b1fcf152197309590', "aria-label": "Close Tooltip", class: "close-button", onClick: this.onDismissClick }, h("ifx-icon", { key: 'bd666d2c194e43332ea9e88665270a7c93cafd2c', icon: "cross16" })), h("div", { key: '644a0eb26e5cf2079583833781ac7edc5a81c03c', class: "tooltip-dismissible-content" }, this.header && h("div", { key: 'df5187e7dc01f3b80bf16d63405007cc8682f4a4', class: "tooltip-dismissible-header" }, this.header), h("div", { key: 'b6ad47a684c9dee2a742858344978cb58122d463', class: "tooltip-dismissible-body" }, this.text)), h("svg", { key: '0b48983abeafd2752f17dfec7d95630d4dd77fbb', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'e215933b3946f9edea6650dbe33197f85f22acc4', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" }))), this.variant.toLowerCase() === 'compact' &&
152
+ h("div", { key: 'c00bb7bdedf396716823c2871723cfa4f77c2790', class: tooltipCompact }, this.text, h("svg", { key: '435578db71002abaf36b1f9de0e4f1b6716d51b3', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '0ed8848c93eb71aeaf982137f649927fd30133ce', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" }))), this.variant.toLowerCase() === 'extended' &&
153
+ h("div", { key: '5609d977720fb9c4802389a2e95c452c5663cb70', class: tooltipExtended }, h("slot", { key: '9efb3039dff747a056d5fc71cae614f13406f6a8', name: "icon" }, this.icon ? h("div", { class: "extended_icon" }, h("ifx-icon", { icon: this.icon })) :
154
+ h("svg", { class: "extended_icon", xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24" }, h("path", { stroke: "#fff", "stroke-linecap": "round", "stroke-linejoin": "round", d: "M20.5 2.5h-16a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-16a2 2 0 0 0-2-2Z" }), h("path", { stroke: "#fff", d: "M19 17H6l2.5-4 2.097 2.516.405.486.379-.506 4.118-5.49.003-.002L19 17Z" }), h("path", { fill: "#fff", d: "M10 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" }))), h("div", { key: 'abdaf70a8f20e56fbd5bfe24822eb3a271216232', class: "tooltip-extended-content" }, this.header && h("div", { key: '8e679ad36c77ac682fcc5cadcb7a405c06c0bf1b', class: "tooltip-extended-header" }, this.header), h("div", { key: 'ea718a8f5918c74bf5718c3c0662415f4392b667', class: "tooltip-extended-body" }, this.text)), h("svg", { key: 'eb0b3075f9eab3f30f2ba011e08730233fd257cd', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '67a2226d192146ff087ffaa7aa3aafe091d72035', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" })))));
155
155
  }
156
156
  static get is() { return "ifx-tooltip"; }
157
157
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC","sourcesContent":["export * from './components';"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC","sourcesContent":["export * from './components';\n"]}
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
2
  export class Faq {
3
3
  render() {
4
- return (h("div", { key: '5e21d2a8efa4c445f14d2c05aeb1193b81f989d4', class: 'container' }, h("ifx-accordion", { key: '202328fd274a10fc357fc3e374752c40913d97f5' }, h("ifx-accordion-item", { key: 'b675f3b0175e028bd9ede06a8a3fee09c109ae67', caption: "What is the Infineon DDS?" }, "The Infineon Digital Design System consists of code components, design principles, tools and guidelines as well as a dedicated interdisciplinary team. Its purpose is to support internal and external colleagues create digital user interfaces with a high level of usability as well as a consistent expression of the Infineon brand. The DDS does not focus on the content of a web application but it describes how the design of the application\u2019s structure should be."), h("ifx-accordion-item", { key: '4e6f206911903cd393cb9ecbf59b838f73a7f7fb', caption: "How do I get access to the DDS?" }, "You can use the provided Figma file as a foundation for mockups and prototypes, use Storybook to view what UI components and variants are available and use code components provided via Storybook or Github."), h("ifx-accordion-item", { key: 'f37fc2774efbf63fe67bebdc6c670e07bbb3106a', caption: "Can I integrate the Infineon DDS into my project?" }, "Yes, you can. We are happy to discuss with you which point in time and which scope of integration is bestsuited for updating your interface to the Infineon DDS. (To avoid that users get confused by a mixture of UI components, we recommend choosing larger updates or technology changes as opportunity to integrate the Infineon DDS.)"), h("ifx-accordion-item", { key: '9e887ac9d6d47d0dac511d929cfc58367a9756a2', caption: "Are Infineon DDS components accessable?" }, "We have taken WCAG 2.0 Level AA as baseline level for all design decisions inside the Infineon Digital Design System. To make an online experience truly accessible you have to implement the specific code, content, and visual design according to the accessibility standard. Find an introduction to this topic here."), h("ifx-accordion-item", { key: '53ed6fbc867d17773765d46481a4f3e41c04802c', caption: "How to request a new component?" }, "Please contact us like described in the contribution section! We are planning to expand the number of components continually. If your component is also usable for multiple other projects, there is a good chance we might work together with you."))));
4
+ return (h("div", { key: 'acaf20b84efcde976ffc00a357f4d8c959dbb340', class: 'container' }, h("ifx-accordion", { key: '4db43607c7d6dee1be9e5f0ee6b0990001a28a82' }, h("ifx-accordion-item", { key: 'd2130688217d7c5834889dc8c1fc58f13646a93f', caption: "What is the Infineon DDS?" }, "The Infineon Digital Design System consists of code components, design principles, tools and guidelines as well as a dedicated interdisciplinary team. Its purpose is to support internal and external colleagues create digital user interfaces with a high level of usability as well as a consistent expression of the Infineon brand. The DDS does not focus on the content of a web application but it describes how the design of the application\u2019s structure should be."), h("ifx-accordion-item", { key: 'af27a0f821df405ca31c5e86367f22b763401fc8', caption: "How do I get access to the DDS?" }, "You can use the provided Figma file as a foundation for mockups and prototypes, use Storybook to view what UI components and variants are available and use code components provided via Storybook or Github."), h("ifx-accordion-item", { key: '57ca0aad426d840018e0088e49e5193540a80208', caption: "Can I integrate the Infineon DDS into my project?" }, "Yes, you can. We are happy to discuss with you which point in time and which scope of integration is bestsuited for updating your interface to the Infineon DDS. (To avoid that users get confused by a mixture of UI components, we recommend choosing larger updates or technology changes as opportunity to integrate the Infineon DDS.)"), h("ifx-accordion-item", { key: 'cdbf0709aa82f614518c0b645712c42f665c0dc4', caption: "Are Infineon DDS components accessable?" }, "We have taken WCAG 2.0 Level AA as baseline level for all design decisions inside the Infineon Digital Design System. To make an online experience truly accessible you have to implement the specific code, content, and visual design according to the accessibility standard. Find an introduction to this topic here."), h("ifx-accordion-item", { key: '49d1949339d51007bf24358decfc08eb8f24e80f', caption: "How to request a new component?" }, "Please contact us like described in the contribution section! We are planning to expand the number of components continually. If your component is also usable for multiple other projects, there is a good chance we might work together with you."))));
5
5
  }
6
6
  static get is() { return "ifx-faq"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -1,4 +1,4 @@
1
- import { I as IfxAccordionItem$1, d as defineCustomElement$1 } from './p-ff48962a.js';
1
+ import { I as IfxAccordionItem$1, d as defineCustomElement$1 } from './p-6edcc608.js';
2
2
 
3
3
  const IfxAccordionItem = IfxAccordionItem$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { A as Accordion, d as defineCustomElement$1 } from './p-654ff7d8.js';
1
+ import { A as Accordion, d as defineCustomElement$1 } from './p-414b675f.js';
2
2
 
3
3
  const IfxAccordion = Accordion;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,69 +1,4 @@
1
- import { p as proxyCustomElement, H, c as createEvent, h } from './p-3ee20ed5.js';
2
- import { d as defineCustomElement$2 } from './p-828bbb25.js';
3
-
4
- const alertCss = ":root{--ifx-font-family:\"Source Sans 3\";font-family:var(--ifx-font-family, sans-serif)}:host{display:block}.alert__info-wrapper{display:flex;padding:16px 24px;font-family:var(--ifx-font-family);box-shadow:0px 6px 9px 0px rgba(29, 29, 29, 0.1019607843)}.alert__info-wrapper .info__text-wrapper{display:flex;flex-direction:column;gap:8px;width:100%}.alert__info-wrapper .info__text-wrapper .info__headline-wrapper{display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.alert__info-wrapper .info__text-wrapper .info__headline-wrapper,.alert__info-wrapper .info__text-wrapper .info__description-wrapper{color:#1D1D1D;font-size:16px;font-style:normal;font-weight:600;line-height:24px}.alert__info-wrapper .info__text-wrapper .info__headline-wrapper ::slotted(p),.alert__info-wrapper .info__text-wrapper .info__description-wrapper ::slotted(p){padding:0;margin:0}.alert__info-wrapper .info__text-wrapper .info__description-wrapper{font-weight:400}.alert__info-wrapper .close-icon-wrapper{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}.alert__info-wrapper .close-icon-wrapper button{all:unset;display:flex;align-items:center;justify-content:center;line-height:0;color:#1D1D1D;height:24px;width:24px}.alert__info-wrapper .close-icon-wrapper button:focus{outline:2px solid #0A8276;outline-offset:2px}.alert{display:flex;border:1px solid #0A8276;border-radius:1px;color:#1D1D1D;background-color:#FFFFFF;font-family:var(--ifx-font-family);box-shadow:0px 6px 9px 0px rgba(29, 29, 29, 0.1019607843)}.alert .close-icon-wrapper{display:flex;align-items:center;justify-content:center;min-width:40px}.alert .close-icon-wrapper button{all:unset;display:flex;align-items:center;justify-content:center;line-height:0;color:#1D1D1D;height:24px;width:24px}.alert .close-icon-wrapper button:focus{outline:2px solid #0A8276;outline-offset:2px}.alert .icon-wrapper{position:relative;min-width:48px;display:flex;justify-content:center;align-items:center;background-color:#0A8276}.alert .alert-text{font-size:16px;width:100%;padding:12px 0px 12px 12px;color:#1D1D1D;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;}.alert.primary{border:1px solid #0A8276}.alert.primary .icon-wrapper{background-color:#0A8276;color:#FFFFFF}.alert.success{border:1px solid #4CA460}.alert.success .icon-wrapper{background-color:#4CA460;color:#FFFFFF}.alert.danger{border:1px solid #CD002F}.alert.danger .icon-wrapper{background-color:#CD002F;color:#FFFFFF}.alert.warning{border:1px solid #E16B25}.alert.warning .icon-wrapper{background-color:#E16B25;color:#FFFFFF}.close-icon-wrapper ifx-icon:hover{cursor:pointer}";
5
- const IfxAlertStyle0 = alertCss;
6
-
7
- const Alert = /*@__PURE__*/ proxyCustomElement(class Alert extends H {
8
- constructor() {
9
- super();
10
- this.__registerHost();
11
- this.__attachShadow();
12
- this.ifxClose = createEvent(this, "ifxClose", 7);
13
- this.variant = 'primary';
14
- this.closable = true;
15
- this.AriaLive = 'assertive';
16
- this.alertTypeDescription = {
17
- "primary": 'Neutral alert',
18
- "success": 'Success Alert',
19
- "danger": 'Error Alert',
20
- "warning": 'Warning Alert',
21
- "info": 'Neutral alert',
22
- };
23
- }
24
- handleClose() {
25
- this.ifxClose.emit();
26
- }
27
- renderCloseButton() {
28
- return (h("div", { class: "close-icon-wrapper" }, h("button", { onClick: this.handleClose.bind(this), "aria-label": "Dismiss alert" }, h("ifx-icon", { icon: "cross-16" }))));
29
- }
30
- generateUniqueId(prefix = 'id') {
31
- return `${prefix}-${Math.random().toString(36).substring(2, 9)}`;
32
- }
33
- componentWillLoad() {
34
- if (!this.uniqueId) {
35
- this.uniqueId = this.generateUniqueId('alert');
36
- }
37
- }
38
- render() {
39
- return this.variant === 'info' ? (h("div", { class: "alert__info-wrapper", role: "alert", "aria-live": this.AriaLive, "aria-describedby": this.alertTypeDescription[this.variant], "aria-labelledby": "alert-text alert-description" }, h("div", { class: "info__text-wrapper" }, h("div", { class: "info__headline-wrapper" }, h("slot", { name: "headline" })), h("div", { id: `alert-description-${this.uniqueId}`, class: "info__description-wrapper" }, h("slot", { name: "desc" }))), this.closable ? this.renderCloseButton() : null)) : (h("div", { class: `alert ${this.variant}`, role: "alert" }, this.icon && (h("div", { class: "icon-wrapper" }, h("ifx-icon", { icon: this.icon }))), h("div", { class: "alert-text", id: `alert-text-${this.uniqueId}` }, h("slot", null)), this.closable ? this.renderCloseButton() : null));
40
- }
41
- static get style() { return IfxAlertStyle0; }
42
- }, [1, "ifx-alert", {
43
- "variant": [1],
44
- "icon": [1],
45
- "closable": [4],
46
- "AriaLive": [1, "aria-live"],
47
- "uniqueId": [32]
48
- }]);
49
- function defineCustomElement$1() {
50
- if (typeof customElements === "undefined") {
51
- return;
52
- }
53
- const components = ["ifx-alert", "ifx-icon"];
54
- components.forEach(tagName => { switch (tagName) {
55
- case "ifx-alert":
56
- if (!customElements.get(tagName)) {
57
- customElements.define(tagName, Alert);
58
- }
59
- break;
60
- case "ifx-icon":
61
- if (!customElements.get(tagName)) {
62
- defineCustomElement$2();
63
- }
64
- break;
65
- } });
66
- }
1
+ import { A as Alert, d as defineCustomElement$1 } from './p-a366d76b.js';
67
2
 
68
3
  const IfxAlert = Alert;
69
4
  const defineCustomElement = defineCustomElement$1;