@infineon/infineon-design-system-stencil 35.0.0--canary.1896.5e3c0f0ec2f461ac1cddbfc154df175c0737d94c.0 → 35.0.0--canary.1896.a0fde65a56b2511818a95f80cc4c83352aa3cfc3.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 (86) hide show
  1. package/dist/cjs/ifx-icon.cjs.entry.js +3 -8
  2. package/dist/cjs/ifx-icon.cjs.entry.js.map +1 -1
  3. package/dist/collection/components/icon/infineonIconStencil.js +3 -8
  4. package/dist/collection/components/icon/infineonIconStencil.js.map +1 -1
  5. package/dist/components/ifx-accordion-item.js +1 -1
  6. package/dist/components/ifx-alert.js +1 -1
  7. package/dist/components/ifx-breadcrumb-item-label.js +1 -1
  8. package/dist/components/ifx-checkbox-group.js +1 -1
  9. package/dist/components/ifx-checkbox.js +1 -1
  10. package/dist/components/ifx-chip-item.js +1 -1
  11. package/dist/components/ifx-chip.js +1 -1
  12. package/dist/components/ifx-date-picker.js +1 -1
  13. package/dist/components/ifx-dropdown-item.js +1 -1
  14. package/dist/components/ifx-dropdown-trigger-button.js +1 -1
  15. package/dist/components/ifx-faq.js +2 -2
  16. package/dist/components/ifx-file-upload.js +2 -2
  17. package/dist/components/ifx-filter-accordion.js +1 -1
  18. package/dist/components/ifx-filter-bar.js +1 -1
  19. package/dist/components/ifx-filter-search.js +2 -2
  20. package/dist/components/ifx-icon-button.js +1 -1
  21. package/dist/components/ifx-icon.js +1 -1
  22. package/dist/components/ifx-icons-preview.js +3 -3
  23. package/dist/components/ifx-list-entry.js +2 -2
  24. package/dist/components/ifx-list.js +1 -1
  25. package/dist/components/ifx-modal.js +2 -2
  26. package/dist/components/ifx-multiselect.js +1 -1
  27. package/dist/components/ifx-navbar-item.js +1 -1
  28. package/dist/components/ifx-navbar.js +1 -1
  29. package/dist/components/ifx-notification.js +1 -1
  30. package/dist/components/ifx-overview-table.js +1 -1
  31. package/dist/components/ifx-pagination.js +1 -1
  32. package/dist/components/ifx-radio-button-group.js +1 -1
  33. package/dist/components/ifx-search-bar.js +2 -2
  34. package/dist/components/ifx-search-field.js +1 -1
  35. package/dist/components/ifx-segment.js +1 -1
  36. package/dist/components/ifx-segmented-control.js +1 -1
  37. package/dist/components/ifx-select.js +1 -1
  38. package/dist/components/ifx-set-filter.js +5 -5
  39. package/dist/components/ifx-sidebar-item.js +1 -1
  40. package/dist/components/ifx-slider.js +1 -1
  41. package/dist/components/ifx-step.js +1 -1
  42. package/dist/components/ifx-table.js +7 -7
  43. package/dist/components/ifx-tabs.js +1 -1
  44. package/dist/components/ifx-tag.js +1 -1
  45. package/dist/components/ifx-template.js +1 -1
  46. package/dist/components/ifx-templates-ui.js +5 -5
  47. package/dist/components/ifx-text-field.js +1 -1
  48. package/dist/components/ifx-tooltip.js +1 -1
  49. package/dist/components/ifx-tree-view-item.js +2 -2
  50. package/dist/components/{p-47544912.js → p-046895f8.js} +2 -2
  51. package/dist/components/{p-47544912.js.map → p-046895f8.js.map} +1 -1
  52. package/dist/components/{p-bde5bd73.js → p-078e9c76.js} +2 -2
  53. package/dist/components/{p-bde5bd73.js.map → p-078e9c76.js.map} +1 -1
  54. package/dist/components/{p-468cd13e.js → p-0f7cb0c7.js} +2 -2
  55. package/dist/components/{p-468cd13e.js.map → p-0f7cb0c7.js.map} +1 -1
  56. package/dist/components/{p-508bb93f.js → p-367b840b.js} +3 -3
  57. package/dist/components/{p-508bb93f.js.map → p-367b840b.js.map} +1 -1
  58. package/dist/components/{p-d4b96419.js → p-4a26513a.js} +2 -2
  59. package/dist/components/{p-d4b96419.js.map → p-4a26513a.js.map} +1 -1
  60. package/dist/components/{p-1233e88f.js → p-6085f742.js} +4 -4
  61. package/dist/components/{p-1233e88f.js.map → p-6085f742.js.map} +1 -1
  62. package/dist/components/{p-bceac2ab.js → p-658f16f9.js} +2 -2
  63. package/dist/components/{p-bceac2ab.js.map → p-658f16f9.js.map} +1 -1
  64. package/dist/components/{p-8fe694c7.js → p-a7202d3b.js} +2 -2
  65. package/dist/components/{p-8fe694c7.js.map → p-a7202d3b.js.map} +1 -1
  66. package/dist/components/{p-99a6b7fb.js → p-b4bfd8c5.js} +3 -3
  67. package/dist/components/{p-99a6b7fb.js.map → p-b4bfd8c5.js.map} +1 -1
  68. package/dist/components/{p-814c54f0.js → p-c7ea7b19.js} +3 -3
  69. package/dist/components/{p-814c54f0.js.map → p-c7ea7b19.js.map} +1 -1
  70. package/dist/components/{p-bacfbd70.js → p-d3594393.js} +2 -2
  71. package/dist/components/{p-bacfbd70.js.map → p-d3594393.js.map} +1 -1
  72. package/dist/components/{p-3f3bff46.js → p-d829ac98.js} +2 -2
  73. package/dist/components/{p-3f3bff46.js.map → p-d829ac98.js.map} +1 -1
  74. package/dist/components/{p-e25cf775.js → p-d8afbc9e.js} +2 -2
  75. package/dist/components/{p-e25cf775.js.map → p-d8afbc9e.js.map} +1 -1
  76. package/dist/components/{p-67213226.js → p-eb6ca49a.js} +4 -9
  77. package/dist/components/p-eb6ca49a.js.map +1 -0
  78. package/dist/esm/ifx-icon.entry.js +3 -8
  79. package/dist/esm/ifx-icon.entry.js.map +1 -1
  80. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -1
  81. package/dist/infineon-design-system-stencil/p-aef44361.entry.js +2 -0
  82. package/dist/infineon-design-system-stencil/p-aef44361.entry.js.map +1 -0
  83. package/package.json +1 -1
  84. package/dist/components/p-67213226.js.map +0 -1
  85. package/dist/infineon-design-system-stencil/p-84ec2ff5.entry.js +0 -2
  86. package/dist/infineon-design-system-stencil/p-84ec2ff5.entry.js.map +0 -1
@@ -1,2 +0,0 @@
1
- import{r as t,c as s,h as n,a as e}from"./p-b7a462e5.js";import{g as o}from"./p-1e2705c8.js";const i="ifx-icon{display:inline-flex;justify-content:center}ifx-icon:empty{display:none}";const c=i;const r=class{constructor(n){t(this,n);this.consoleError=s(this,"consoleError",7);this.icon=""}convertStringToHtml(t){const s=document.createElement("div");s.innerHTML=t;return s.firstChild}convertHtmlToObject(t){let s=Array.from(t.attributes,(({name:t,value:s})=>({name:t,value:s}))).reduce(((t,s)=>{t[s.name]=s.value;return t}),{});return s}convertPathsToVnode(t){let s=[];const e=this.convertHtmlToObject(t);const o=n("path",e);s.push(o);if(t.firstChild){const e=t.querySelectorAll("path");const o=t.querySelectorAll("path").length;for(let t=0;t<o;t++){let o=this.convertHtmlToObject(e[t]);let i=n("path",o);s.push(i)}}return s}getSVG(t){const s=this.convertStringToHtml(this.ifxIcon);const e=s.getAttribute("width");const o=s.getAttribute("height");const i=s.getAttribute("fill");const c=s.getAttribute("viewBox");return n("svg",{class:"inline-svg",width:e,height:o,xmlns:"http://www.w3.org/2000/svg",fill:i,viewBox:c},...t)}constructIcon(){if(this.ifxIcon){const t=this.convertStringToHtml(this.ifxIcon);const s=this.convertPathsToVnode(t);const n=this.getSVG(s);return n}else if(this.icon!==""){console.error("Icon not found!");this.consoleError.emit(true);return}else{return}}componentWillLoad(){const t=t=>t.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,((t,s)=>s));this.ifxIcon=o(t(this.icon))}render(){return n(e,{key:"c1a8037e96f84eb87d1e111039c34885b7452d85"},this.constructIcon())}};r.style=c;export{r as ifx_icon};
2
- //# sourceMappingURL=p-84ec2ff5.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["infineonIconStencilCss","IfxIconStyle0","InfineonIconStencil","constructor","hostRef","this","icon","convertStringToHtml","htmlString","div","document","createElement","innerHTML","firstChild","convertHtmlToObject","htmlElement","pathToObject","Array","from","attributes","name","value","reduce","acc","current","convertPathsToVnode","htmlPath","svgPaths","parentPath","parentPathToVnode","h","push","paths","querySelectorAll","pathLength","length","i","objToVnode","getSVG","svgPath","ifxIcon","width","getAttribute","height","fill","viewBox","class","xmlns","constructIcon","SVG","console","error","consoleError","emit","componentWillLoad","removeHyphen","str","toLowerCase","replace","_m","chr","getIcon","render","Host","key"],"sources":["src/components/icon/infineonIconStencil.scss?tag=ifx-icon","src/components/icon/infineonIconStencil.tsx"],"sourcesContent":["ifx-icon {\n display: inline-flex;\n justify-content: center;\n\n &:empty {\n display: none;\n }\n}","import { Component, Prop, h, Host, Event, EventEmitter } from '@stencil/core';\nimport { getIcon } from '@infineon/infineon-icons'\n \n\n\n@Component({\n tag: 'ifx-icon',\n styleUrl: './infineonIconStencil.scss'\n})\n\nexport class InfineonIconStencil {\n @Prop({ mutable: true }) icon: string = \"\"\n @Prop({ mutable: true }) ifxIcon: any;\n @Event() consoleError: EventEmitter<boolean>;\n \n convertStringToHtml(htmlString) { \n const div = document.createElement('div')\n div.innerHTML = htmlString\n return div.firstChild\n }\n\n convertHtmlToObject(htmlElement) { \n \n let pathToObject = Array\n .from(htmlElement.attributes, ({ name, value }) => ({ name, value }))\n .reduce((acc, current) => {\n acc[current.name] = current.value\n return acc\n }, {})\n\n return pathToObject\n }\n\n convertPathsToVnode(htmlPath) { \n let svgPaths = []\n const parentPath = this.convertHtmlToObject(htmlPath);\n const parentPathToVnode = h(\"path\", parentPath);\n svgPaths.push(parentPathToVnode)\n if(htmlPath.firstChild) { \n const paths = htmlPath.querySelectorAll('path');\n const pathLength = htmlPath.querySelectorAll('path').length;\n for(let i = 0; i < pathLength; i++) { \n let pathToObject = this.convertHtmlToObject(paths[i])\n let objToVnode = h(\"path\", pathToObject)\n svgPaths.push(objToVnode)\n } \n }\n return svgPaths\n }\n\n getSVG(svgPath) {\n const htmlPath = this.convertStringToHtml(this.ifxIcon) as SVGElement;\n const width = htmlPath.getAttribute('width');\n const height = htmlPath.getAttribute('height');\n const fill = htmlPath.getAttribute('fill');\n const viewBox = htmlPath.getAttribute('viewBox');\n \n return <svg class=\"inline-svg\" width={width} height={height} xmlns=\"http://www.w3.org/2000/svg\" fill={fill} viewBox={viewBox}>{...svgPath}</svg>\n }\n\n constructIcon() {\n if(this.ifxIcon) {\n const htmlPath = this.convertStringToHtml(this.ifxIcon)\n const svgPath = this.convertPathsToVnode(htmlPath)\n const SVG = this.getSVG(svgPath)\n return SVG;\n } else if(this.icon !== \"\") {\n console.error('Icon not found!')\n this.consoleError.emit(true)\n return;\n } else { \n return;\n }\n }\n\n componentWillLoad() {\n const removeHyphen = (str) => str.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g, (_m, chr) => chr);\n this.ifxIcon = getIcon(removeHyphen(this.icon));\n }\n\n render() {\n return (\n <Host>\n {this.constructIcon()}\n </Host>\n );\n }\n}"],"mappings":"6FAAA,MAAMA,EAAyB,mFAC/B,MAAAC,EAAeD,E,MCSFE,EAAmB,MALhC,WAAAC,CAAAC,G,qDAM2BC,KAAAC,KAAe,E,CAIxC,mBAAAC,CAAoBC,GAClB,MAAMC,EAAMC,SAASC,cAAc,OACnCF,EAAIG,UAAYJ,EAChB,OAAOC,EAAII,U,CAGb,mBAAAC,CAAoBC,GAElB,IAAIC,EAAeC,MAChBC,KAAKH,EAAYI,YAAY,EAAGC,OAAMC,YAAO,CAAQD,OAAMC,YAC3DC,QAAO,CAACC,EAAKC,KACZD,EAAIC,EAAQJ,MAAQI,EAAQH,MAC5B,OAAOE,CAAG,GACT,IAEL,OAAOP,C,CAGT,mBAAAS,CAAoBC,GAClB,IAAIC,EAAW,GACf,MAAMC,EAAavB,KAAKS,oBAAoBY,GAC5C,MAAMG,EAAoBC,EAAE,OAAQF,GACpCD,EAASI,KAAKF,GACd,GAAGH,EAASb,WAAY,CACtB,MAAMmB,EAAQN,EAASO,iBAAiB,QACxC,MAAMC,EAAaR,EAASO,iBAAiB,QAAQE,OACrD,IAAI,IAAIC,EAAI,EAAGA,EAAIF,EAAYE,IAAK,CAClC,IAAIpB,EAAeX,KAAKS,oBAAoBkB,EAAMI,IAClD,IAAIC,EAAaP,EAAE,OAAQd,GAC3BW,EAASI,KAAKM,E,EAGlB,OAAOV,C,CAGT,MAAAW,CAAOC,GACL,MAAMb,EAAWrB,KAAKE,oBAAoBF,KAAKmC,SAC/C,MAAMC,EAAQf,EAASgB,aAAa,SACpC,MAAMC,EAASjB,EAASgB,aAAa,UACrC,MAAME,EAAOlB,EAASgB,aAAa,QACnC,MAAMG,EAAUnB,EAASgB,aAAa,WAEtC,OAAOZ,EAAA,OAAKgB,MAAM,aAAaL,MAAOA,EAAOE,OAAQA,EAAQI,MAAM,6BAA6BH,KAAMA,EAAMC,QAASA,MAAaN,E,CAGpI,aAAAS,GACE,GAAG3C,KAAKmC,QAAS,CACf,MAAMd,EAAWrB,KAAKE,oBAAoBF,KAAKmC,SAC/C,MAAMD,EAAUlC,KAAKoB,oBAAoBC,GACzC,MAAMuB,EAAM5C,KAAKiC,OAAOC,GACxB,OAAOU,C,MACF,GAAG5C,KAAKC,OAAS,GAAI,CAC1B4C,QAAQC,MAAM,mBACd9C,KAAK+C,aAAaC,KAAK,MACvB,M,KACM,CACN,M,EAIJ,iBAAAC,GACE,MAAMC,EAAgBC,GAAQA,EAAIC,cAAcC,QAAQ,qBAAqB,CAACC,EAAIC,IAAQA,IAC1FvD,KAAKmC,QAAUqB,EAAQN,EAAalD,KAAKC,M,CAG3C,MAAAwD,GACE,OACEhC,EAACiC,EAAI,CAAAC,IAAA,4CACJ3D,KAAK2C,gB","ignoreList":[]}