@infineon/infineon-design-system-stencil 33.1.1--canary.1824.75b5030250f4474f2c947b6e8dc7055bdc915c43.0 → 33.1.1--canary.1818.94e54a71935d0367c21fd257850df436af269985.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.
- package/dist/cjs/ifx-accordion_2.cjs.entry.js +2 -2
- package/dist/cjs/ifx-accordion_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-alert_2.cjs.entry.js +2 -2
- package/dist/cjs/ifx-alert_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-badge.cjs.entry.js +1 -1
- package/dist/cjs/ifx-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-basic-table.cjs.entry.js +2 -2
- package/dist/cjs/ifx-basic-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/ifx-breadcrumb-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ifx-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-button.cjs.entry.js +1 -1
- package/dist/cjs/ifx-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-card-headline.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card-headline.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-card.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/ifx-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ifx-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-chip_3.cjs.entry.js +2 -2
- package/dist/cjs/ifx-chip_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-dropdown-header.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-dropdown-menu.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-faq.cjs.entry.js +1 -1
- package/dist/cjs/ifx-filter-accordion.cjs.entry.js +2 -2
- package/dist/cjs/ifx-filter-bar.cjs.entry.js +1 -1
- package/dist/cjs/ifx-filter-search.cjs.entry.js +2 -2
- package/dist/cjs/ifx-filter-search.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-filter-type-group.cjs.entry.js +1 -1
- package/dist/cjs/ifx-footer-column.cjs.entry.js +2 -2
- package/dist/cjs/ifx-footer-column.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-footer.cjs.entry.js +5 -5
- package/dist/cjs/ifx-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-icon-button.cjs.entry.js +2 -2
- package/dist/cjs/ifx-icon-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-icon.cjs.entry.js +1 -1
- package/dist/cjs/ifx-icons-preview.cjs.entry.js +1 -1
- package/dist/cjs/ifx-link.cjs.entry.js +2 -2
- package/dist/cjs/ifx-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-list-entry.cjs.entry.js +1 -1
- package/dist/cjs/ifx-modal.cjs.entry.js +3 -3
- package/dist/cjs/ifx-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-multiselect.cjs.entry.js +1 -1
- package/dist/cjs/ifx-multiselect.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-navbar-item.cjs.entry.js +6 -6
- package/dist/cjs/ifx-navbar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-navbar-profile.cjs.entry.js +4 -4
- package/dist/cjs/ifx-navbar-profile.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-navbar.cjs.entry.js +4 -4
- package/dist/cjs/ifx-navbar.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-notification.cjs.entry.js +3 -3
- package/dist/cjs/ifx-notification.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-number-indicator.cjs.entry.js +1 -1
- package/dist/cjs/ifx-overview-table.cjs.entry.js +1 -1
- package/dist/cjs/ifx-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/ifx-progress-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-radio-button-group.cjs.entry.js +2 -2
- package/dist/cjs/ifx-radio-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/ifx-radio-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-search-bar.cjs.entry.js +2 -2
- package/dist/cjs/ifx-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-search-field.cjs.entry.js +2 -2
- package/dist/cjs/ifx-search-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-segment.cjs.entry.js +1 -1
- package/dist/cjs/ifx-segmented-control.cjs.entry.js +2 -2
- package/dist/cjs/ifx-select.cjs.entry.js +3 -3
- package/dist/cjs/ifx-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-sidebar-item.cjs.entry.js +6 -6
- package/dist/cjs/ifx-sidebar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-sidebar-title.cjs.entry.js +1 -1
- package/dist/cjs/ifx-sidebar.cjs.entry.js +6 -6
- package/dist/cjs/ifx-sidebar.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-slider.cjs.entry.js +2 -2
- package/dist/cjs/ifx-spinner_2.cjs.entry.js +7 -7
- package/dist/cjs/ifx-spinner_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-status.cjs.entry.js +2 -2
- package/dist/cjs/ifx-status.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-step.cjs.entry.js +4 -4
- package/dist/cjs/ifx-stepper.cjs.entry.js +2 -2
- package/dist/cjs/ifx-switch.cjs.entry.js +1 -1
- package/dist/cjs/ifx-tab.cjs.entry.js +1 -1
- package/dist/cjs/ifx-table.cjs.entry.js +3 -3
- package/dist/cjs/ifx-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-tabs.cjs.entry.js +3 -3
- package/dist/cjs/ifx-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-tag.cjs.entry.js +2 -2
- package/dist/cjs/ifx-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-templates-ui.cjs.entry.js +1 -1
- package/dist/cjs/ifx-textarea.cjs.entry.js +1 -1
- package/dist/cjs/ifx-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/ifx-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/index-c9480f70.js +8 -12
- package/dist/cjs/infineon-design-system-stencil.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/accordion/accordion.css +1 -1
- package/dist/collection/components/accordion/accordionItem.css +1 -1
- package/dist/collection/components/alert/alert.css +2 -2
- package/dist/collection/components/badge/badge.css +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb-item.css +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.css +1 -1
- package/dist/collection/components/button/button.css +1 -1
- package/dist/collection/components/card/card-headline/card-headline.css +1 -1
- package/dist/collection/components/card/card.css +1 -1
- package/dist/collection/components/checkbox/checkbox.css +1 -1
- package/dist/collection/components/checkbox-group/checkbox-group.css +1 -1
- package/dist/collection/components/dropdown/dropdown-header/dropdown-header.css +2 -2
- package/dist/collection/components/dropdown/dropdown-item/dropdown-item.css +1 -1
- package/dist/collection/components/dropdown/dropdown-menu/dropdown-menu.css +1 -1
- package/dist/collection/components/footer/footer-column.css +1 -1
- package/dist/collection/components/footer/footer-column.js +1 -1
- package/dist/collection/components/footer/footer.css +1 -1
- package/dist/collection/components/footer/footer.js +4 -4
- package/dist/collection/components/icon/infineonIconStencil.js +1 -1
- package/dist/collection/components/icon-button/icon-button.css +1 -1
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/icons-preview/icons-preview.js +1 -1
- package/dist/collection/components/link/link.css +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/modal/modal.css +1 -1
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/navigation/navbar/navbar-item.css +3 -3
- package/dist/collection/components/navigation/navbar/navbar-item.js +5 -5
- package/dist/collection/components/navigation/navbar/navbar-profile.js +3 -3
- package/dist/collection/components/navigation/navbar/navbar.css +2 -2
- package/dist/collection/components/navigation/navbar/navbar.js +3 -3
- package/dist/collection/components/navigation/sidebar/sidebar-item.css +1 -1
- package/dist/collection/components/navigation/sidebar/sidebar-item.js +5 -5
- package/dist/collection/components/navigation/sidebar/sidebar-title.js +1 -1
- package/dist/collection/components/navigation/sidebar/sidebar.css +1 -1
- package/dist/collection/components/navigation/sidebar/sidebar.js +5 -5
- package/dist/collection/components/notification/notification.css +1 -1
- package/dist/collection/components/notification/notification.js +2 -2
- package/dist/collection/components/number-indicator/number-indicator.js +1 -1
- package/dist/collection/components/overview-table/overview-table.js +1 -1
- package/dist/collection/components/pagination/pagination.css +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/progress-bar/progress-bar.css +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio-button/radio-button.css +1 -1
- package/dist/collection/components/radio-button/radio-button.js +2 -2
- package/dist/collection/components/radio-button-group/radio-button-group.css +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/search-bar/search-bar.css +1 -1
- package/dist/collection/components/search-bar/search-bar.js +1 -1
- package/dist/collection/components/search-field/search-field.css +1 -1
- package/dist/collection/components/search-field/search-field.js +1 -1
- package/dist/collection/components/segmented-control/segment/segment.js +1 -1
- package/dist/collection/components/segmented-control/segmented-control.js +2 -2
- package/dist/collection/components/select/multi-select/multiselect.css +1 -1
- package/dist/collection/components/select/single-select/select.css +1 -1
- package/dist/collection/components/select/single-select/select.js +2 -2
- package/dist/collection/components/slider/slider.js +2 -2
- package/dist/collection/components/spinner/spinner.js +2 -2
- package/dist/collection/components/status/status.css +1 -1
- package/dist/collection/components/status/status.js +1 -1
- package/dist/collection/components/stepper/step/step.js +4 -4
- package/dist/collection/components/stepper/stepper.js +2 -2
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/table-advanced-version/filter-bar/filter-bar.js +1 -1
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-accordion/filter-accordion.js +2 -2
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-search/filter-search.css +2 -2
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-search/filter-search.js +1 -1
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-type-group.js +1 -1
- package/dist/collection/components/table-advanced-version/list/list-entry/list-entry.js +1 -1
- package/dist/collection/components/table-advanced-version/table.css +1 -1
- package/dist/collection/components/table-advanced-version/table.js +2 -2
- package/dist/collection/components/table-basic-version/table.css +1 -1
- package/dist/collection/components/table-basic-version/table.js +1 -1
- package/dist/collection/components/tabs/tab.js +1 -1
- package/dist/collection/components/tabs/tabs.css +1 -1
- package/dist/collection/components/tabs/tabs.js +2 -2
- package/dist/collection/components/tag/tag.css +1 -1
- package/dist/collection/components/tag/tag.js +1 -1
- package/dist/collection/components/templates/template/template.js +1 -1
- package/dist/collection/components/templates/templates-ui/templates-ui.js +1 -1
- package/dist/collection/components/text-field/text-field.css +1 -1
- package/dist/collection/components/text-field/text-field.js +4 -4
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/collection/components/tooltip/tooltip.js +4 -4
- package/dist/collection/global/font-import.js +2 -0
- package/dist/collection/global/font-import.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/stories/setup-and-installation/faq/faq.js +1 -1
- package/dist/components/ifx-accordion-item.js +1 -1
- package/dist/components/ifx-accordion.js +1 -1
- package/dist/components/ifx-alert.js +1 -1
- package/dist/components/ifx-badge.js +1 -1
- package/dist/components/ifx-badge.js.map +1 -1
- package/dist/components/ifx-basic-table.js +2 -2
- package/dist/components/ifx-basic-table.js.map +1 -1
- package/dist/components/ifx-breadcrumb-item-label.js +1 -1
- package/dist/components/ifx-breadcrumb-item.js +1 -1
- package/dist/components/ifx-breadcrumb-item.js.map +1 -1
- package/dist/components/ifx-breadcrumb.js +1 -1
- package/dist/components/ifx-breadcrumb.js.map +1 -1
- package/dist/components/ifx-button.js +1 -1
- package/dist/components/ifx-card-headline.js +1 -1
- package/dist/components/ifx-card-headline.js.map +1 -1
- package/dist/components/ifx-card.js +1 -1
- package/dist/components/ifx-card.js.map +1 -1
- package/dist/components/ifx-checkbox-group.js +2 -2
- package/dist/components/ifx-checkbox-group.js.map +1 -1
- package/dist/components/ifx-checkbox.js +1 -1
- package/dist/components/ifx-chip-item.js +1 -1
- package/dist/components/ifx-chip.js +1 -1
- package/dist/components/ifx-date-picker.js +1 -1
- package/dist/components/ifx-download.js +1 -1
- package/dist/components/ifx-dropdown-header.js +1 -1
- package/dist/components/ifx-dropdown-header.js.map +1 -1
- package/dist/components/ifx-dropdown-item.js +2 -2
- package/dist/components/ifx-dropdown-item.js.map +1 -1
- package/dist/components/ifx-dropdown-menu.js +1 -1
- package/dist/components/ifx-dropdown-menu.js.map +1 -1
- package/dist/components/ifx-dropdown-trigger-button.js +2 -2
- package/dist/components/ifx-faq.js +4 -4
- package/dist/components/ifx-filter-accordion.js +4 -4
- package/dist/components/ifx-filter-bar.js +3 -3
- package/dist/components/ifx-filter-search.js +4 -4
- package/dist/components/ifx-filter-search.js.map +1 -1
- package/dist/components/ifx-filter-type-group.js +1 -1
- package/dist/components/ifx-footer-column.js +2 -2
- package/dist/components/ifx-footer-column.js.map +1 -1
- package/dist/components/ifx-footer.js +5 -5
- package/dist/components/ifx-footer.js.map +1 -1
- package/dist/components/ifx-icon-button.js +1 -1
- package/dist/components/ifx-icon.js +1 -1
- package/dist/components/ifx-icons-preview.js +4 -4
- package/dist/components/ifx-link.js +1 -1
- package/dist/components/ifx-list-entry.js +4 -4
- package/dist/components/ifx-list.js +2 -2
- package/dist/components/ifx-modal.js +5 -5
- package/dist/components/ifx-modal.js.map +1 -1
- package/dist/components/ifx-multiselect.js +1 -1
- package/dist/components/ifx-navbar-item.js +8 -8
- package/dist/components/ifx-navbar-item.js.map +1 -1
- package/dist/components/ifx-navbar-profile.js +4 -4
- package/dist/components/ifx-navbar-profile.js.map +1 -1
- package/dist/components/ifx-navbar.js +5 -5
- package/dist/components/ifx-navbar.js.map +1 -1
- package/dist/components/ifx-notification.js +1 -1
- package/dist/components/ifx-number-indicator.js +1 -1
- package/dist/components/ifx-overview-table.js +4 -4
- package/dist/components/ifx-pagination.js +1 -1
- package/dist/components/ifx-progress-bar.js +49 -1
- package/dist/components/ifx-progress-bar.js.map +1 -1
- package/dist/components/ifx-radio-button-group.js +3 -3
- package/dist/components/ifx-radio-button-group.js.map +1 -1
- package/dist/components/ifx-radio-button.js +1 -1
- package/dist/components/ifx-search-bar.js +4 -4
- package/dist/components/ifx-search-bar.js.map +1 -1
- package/dist/components/ifx-search-field.js +1 -1
- package/dist/components/ifx-segment.js +2 -2
- package/dist/components/ifx-segmented-control.js +3 -3
- package/dist/components/ifx-select.js +1 -1
- package/dist/components/ifx-set-filter.js +5 -5
- package/dist/components/ifx-sidebar-item.js +8 -8
- package/dist/components/ifx-sidebar-item.js.map +1 -1
- package/dist/components/ifx-sidebar-title.js +1 -1
- package/dist/components/ifx-sidebar.js +6 -6
- package/dist/components/ifx-sidebar.js.map +1 -1
- package/dist/components/ifx-slider.js +3 -3
- package/dist/components/ifx-spinner.js +1 -1
- package/dist/components/ifx-status.js +2 -2
- package/dist/components/ifx-status.js.map +1 -1
- package/dist/components/ifx-step.js +5 -5
- package/dist/components/ifx-stepper.js +2 -2
- package/dist/components/ifx-switch.js +1 -1
- package/dist/components/ifx-tab.js +1 -1
- package/dist/components/ifx-table.js +12 -12
- package/dist/components/ifx-table.js.map +1 -1
- package/dist/components/ifx-tabs.js +4 -4
- package/dist/components/ifx-tabs.js.map +1 -1
- package/dist/components/ifx-tag.js +3 -3
- package/dist/components/ifx-tag.js.map +1 -1
- package/dist/components/ifx-template.js +1 -1
- package/dist/components/ifx-templates-ui.js +9 -9
- package/dist/components/ifx-text-field.js +1 -1
- package/dist/components/ifx-textarea.js +1 -1
- package/dist/components/ifx-tooltip.js +6 -6
- package/dist/components/ifx-tooltip.js.map +1 -1
- package/dist/components/{p-9306088d.js → p-03acdbd0.js} +2 -2
- package/dist/components/{p-9306088d.js.map → p-03acdbd0.js.map} +1 -1
- package/dist/components/{p-905fb988.js → p-097c39fc.js} +2 -2
- package/dist/components/p-097c39fc.js.map +1 -0
- package/dist/components/{p-2bc9826e.js → p-0bdd8c1f.js} +3 -3
- package/dist/components/p-0bdd8c1f.js.map +1 -0
- package/dist/components/{p-fc183f8e.js → p-159bab57.js} +4 -4
- package/dist/components/p-159bab57.js.map +1 -0
- package/dist/components/{p-48f52e18.js → p-1961c269.js} +4 -4
- package/dist/components/p-1961c269.js.map +1 -0
- package/dist/components/{p-cd9e4789.js → p-1d22dfb4.js} +4 -4
- package/dist/components/p-1d22dfb4.js.map +1 -0
- package/dist/components/{p-ccc83a43.js → p-2eee9126.js} +3 -3
- package/dist/components/p-2eee9126.js.map +1 -0
- package/dist/components/p-4213a3a9.js +68 -0
- package/dist/components/p-4213a3a9.js.map +1 -0
- package/dist/components/{p-846923e6.js → p-48300c0e.js} +3 -3
- package/dist/components/p-48300c0e.js.map +1 -0
- package/dist/components/{p-bef5241a.js → p-4db82ee0.js} +5 -5
- package/dist/components/{p-bef5241a.js.map → p-4db82ee0.js.map} +1 -1
- package/dist/components/{p-0e277223.js → p-519cb249.js} +3 -3
- package/dist/components/{p-0e277223.js.map → p-519cb249.js.map} +1 -1
- package/dist/components/{p-c2b0bf22.js → p-5e8d7598.js} +2 -2
- package/dist/components/p-5e8d7598.js.map +1 -0
- package/dist/components/p-68f93ba6.js +116 -0
- package/dist/components/p-68f93ba6.js.map +1 -0
- package/dist/components/{p-461cf021.js → p-6974ad0b.js} +4 -4
- package/dist/components/p-6974ad0b.js.map +1 -0
- package/dist/components/{p-ab514a04.js → p-adfc43f2.js} +6 -6
- package/dist/components/p-adfc43f2.js.map +1 -0
- package/dist/components/{p-d1985f77.js → p-b024aa08.js} +3 -3
- package/dist/components/{p-d1985f77.js.map → p-b024aa08.js.map} +1 -1
- package/dist/components/{p-05c79468.js → p-c2c8b055.js} +7 -7
- package/dist/components/{p-05c79468.js.map → p-c2c8b055.js.map} +1 -1
- package/dist/components/{p-1678fee6.js → p-c9e59d0f.js} +3 -3
- package/dist/components/{p-1678fee6.js.map → p-c9e59d0f.js.map} +1 -1
- package/dist/components/{p-35d83f23.js → p-e7551b24.js} +2 -2
- package/dist/components/{p-35d83f23.js.map → p-e7551b24.js.map} +1 -1
- package/dist/components/{p-18b340af.js → p-f9e92fd3.js} +3 -3
- package/dist/components/p-f9e92fd3.js.map +1 -0
- package/dist/esm/ifx-accordion_2.entry.js +2 -2
- package/dist/esm/ifx-accordion_2.entry.js.map +1 -1
- package/dist/esm/ifx-alert_2.entry.js +2 -2
- package/dist/esm/ifx-alert_2.entry.js.map +1 -1
- package/dist/esm/ifx-badge.entry.js +1 -1
- package/dist/esm/ifx-badge.entry.js.map +1 -1
- package/dist/esm/ifx-basic-table.entry.js +2 -2
- package/dist/esm/ifx-basic-table.entry.js.map +1 -1
- package/dist/esm/ifx-breadcrumb-item.entry.js +1 -1
- package/dist/esm/ifx-breadcrumb-item.entry.js.map +1 -1
- package/dist/esm/ifx-breadcrumb.entry.js +1 -1
- package/dist/esm/ifx-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ifx-button.entry.js +1 -1
- package/dist/esm/ifx-button.entry.js.map +1 -1
- package/dist/esm/ifx-card-headline.entry.js +1 -1
- package/dist/esm/ifx-card-headline.entry.js.map +1 -1
- package/dist/esm/ifx-card.entry.js +1 -1
- package/dist/esm/ifx-card.entry.js.map +1 -1
- package/dist/esm/ifx-checkbox-group.entry.js +1 -1
- package/dist/esm/ifx-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ifx-checkbox.entry.js +1 -1
- package/dist/esm/ifx-checkbox.entry.js.map +1 -1
- package/dist/esm/ifx-chip_3.entry.js +2 -2
- package/dist/esm/ifx-chip_3.entry.js.map +1 -1
- package/dist/esm/ifx-dropdown-header.entry.js +1 -1
- package/dist/esm/ifx-dropdown-header.entry.js.map +1 -1
- package/dist/esm/ifx-dropdown-item.entry.js +1 -1
- package/dist/esm/ifx-dropdown-item.entry.js.map +1 -1
- package/dist/esm/ifx-dropdown-menu.entry.js +1 -1
- package/dist/esm/ifx-dropdown-menu.entry.js.map +1 -1
- package/dist/esm/ifx-faq.entry.js +1 -1
- package/dist/esm/ifx-filter-accordion.entry.js +2 -2
- package/dist/esm/ifx-filter-bar.entry.js +1 -1
- package/dist/esm/ifx-filter-search.entry.js +2 -2
- package/dist/esm/ifx-filter-search.entry.js.map +1 -1
- package/dist/esm/ifx-filter-type-group.entry.js +1 -1
- package/dist/esm/ifx-footer-column.entry.js +2 -2
- package/dist/esm/ifx-footer-column.entry.js.map +1 -1
- package/dist/esm/ifx-footer.entry.js +5 -5
- package/dist/esm/ifx-footer.entry.js.map +1 -1
- package/dist/esm/ifx-icon-button.entry.js +2 -2
- package/dist/esm/ifx-icon-button.entry.js.map +1 -1
- package/dist/esm/ifx-icon.entry.js +1 -1
- package/dist/esm/ifx-icons-preview.entry.js +1 -1
- package/dist/esm/ifx-link.entry.js +2 -2
- package/dist/esm/ifx-link.entry.js.map +1 -1
- package/dist/esm/ifx-list-entry.entry.js +1 -1
- package/dist/esm/ifx-modal.entry.js +3 -3
- package/dist/esm/ifx-modal.entry.js.map +1 -1
- package/dist/esm/ifx-multiselect.entry.js +1 -1
- package/dist/esm/ifx-multiselect.entry.js.map +1 -1
- package/dist/esm/ifx-navbar-item.entry.js +6 -6
- package/dist/esm/ifx-navbar-item.entry.js.map +1 -1
- package/dist/esm/ifx-navbar-profile.entry.js +4 -4
- package/dist/esm/ifx-navbar-profile.entry.js.map +1 -1
- package/dist/esm/ifx-navbar.entry.js +4 -4
- package/dist/esm/ifx-navbar.entry.js.map +1 -1
- package/dist/esm/ifx-notification.entry.js +3 -3
- package/dist/esm/ifx-notification.entry.js.map +1 -1
- package/dist/esm/ifx-number-indicator.entry.js +1 -1
- package/dist/esm/ifx-overview-table.entry.js +1 -1
- package/dist/esm/ifx-progress-bar.entry.js +2 -2
- package/dist/esm/ifx-progress-bar.entry.js.map +1 -1
- package/dist/esm/ifx-radio-button-group.entry.js +2 -2
- package/dist/esm/ifx-radio-button-group.entry.js.map +1 -1
- package/dist/esm/ifx-radio-button.entry.js +3 -3
- package/dist/esm/ifx-radio-button.entry.js.map +1 -1
- package/dist/esm/ifx-search-bar.entry.js +2 -2
- package/dist/esm/ifx-search-bar.entry.js.map +1 -1
- package/dist/esm/ifx-search-field.entry.js +2 -2
- package/dist/esm/ifx-search-field.entry.js.map +1 -1
- package/dist/esm/ifx-segment.entry.js +1 -1
- package/dist/esm/ifx-segmented-control.entry.js +2 -2
- package/dist/esm/ifx-select.entry.js +3 -3
- package/dist/esm/ifx-select.entry.js.map +1 -1
- package/dist/esm/ifx-sidebar-item.entry.js +6 -6
- package/dist/esm/ifx-sidebar-item.entry.js.map +1 -1
- package/dist/esm/ifx-sidebar-title.entry.js +1 -1
- package/dist/esm/ifx-sidebar.entry.js +6 -6
- package/dist/esm/ifx-sidebar.entry.js.map +1 -1
- package/dist/esm/ifx-slider.entry.js +2 -2
- package/dist/esm/ifx-spinner_2.entry.js +7 -7
- package/dist/esm/ifx-spinner_2.entry.js.map +1 -1
- package/dist/esm/ifx-status.entry.js +2 -2
- package/dist/esm/ifx-status.entry.js.map +1 -1
- package/dist/esm/ifx-step.entry.js +4 -4
- package/dist/esm/ifx-stepper.entry.js +2 -2
- package/dist/esm/ifx-switch.entry.js +1 -1
- package/dist/esm/ifx-tab.entry.js +1 -1
- package/dist/esm/ifx-table.entry.js +3 -3
- package/dist/esm/ifx-table.entry.js.map +1 -1
- package/dist/esm/ifx-tabs.entry.js +3 -3
- package/dist/esm/ifx-tabs.entry.js.map +1 -1
- package/dist/esm/ifx-tag.entry.js +2 -2
- package/dist/esm/ifx-tag.entry.js.map +1 -1
- package/dist/esm/ifx-templates-ui.entry.js +1 -1
- package/dist/esm/ifx-textarea.entry.js +1 -1
- package/dist/esm/ifx-tooltip.entry.js +5 -5
- package/dist/esm/ifx-tooltip.entry.js.map +1 -1
- package/dist/esm/index-c77e25a0.js +8 -12
- package/dist/esm/infineon-design-system-stencil.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/infineon-design-system-stencil/infineon-design-system-stencil.css +1 -1
- package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -1
- package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js.map +1 -1
- package/dist/infineon-design-system-stencil/p-0009a396.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-0009a396.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-00c52c84.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-0fbc70db.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-0fbc70db.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-127120bc.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-127120bc.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-12a8b8d9.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-12a8b8d9.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-1a882a37.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-1a882a37.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-5bc7c9cc.entry.js → p-1abbcdbc.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-1b59a7f9.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-1b870109.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-1b870109.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-31f3dba0.entry.js → p-1de4f93c.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-20c1967d.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-20c1967d.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-21dee1b7.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-21dee1b7.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-32d311b7.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-32d311b7.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-3303a29d.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-3303a29d.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-051f1f75.entry.js → p-37e75e7c.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-4218b47a.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-4218b47a.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-46d704f4.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-46d704f4.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-4c031d6e.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-4c031d6e.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-99a53e43.entry.js → p-4c2ce98e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-4c2ce98e.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-3f5e136b.entry.js → p-4fa1f905.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-4fa1f905.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-81391688.entry.js → p-506dc67f.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-81391688.entry.js.map → p-506dc67f.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/p-50ce73a9.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-50ce73a9.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-474b0bda.entry.js → p-5ba50092.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-635c7fca.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-635c7fca.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-65d9faca.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-66b1eeab.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-7a977f98.entry.js.map → p-66b1eeab.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/p-66c03f4e.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-66c03f4e.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-0be5bec9.entry.js → p-67c63b48.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-6a1ff5df.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-6a1ff5df.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-af1d9944.entry.js → p-6b9ecace.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-89f8f8c7.entry.js → p-6ee1b4e7.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-711c9832.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-711c9832.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-73388693.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-73388693.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-75c2484b.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-75c2484b.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-796766bb.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-796766bb.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-38fd172b.entry.js → p-7abdbf1f.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-2170ccf1.entry.js → p-7c142528.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-7c142528.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-8dbe0add.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-13e47c02.entry.js → p-95b48437.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-98f8a17b.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-98f8a17b.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-99493a11.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-99493a11.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-d4a4c134.entry.js → p-9e413f66.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-38a17a09.entry.js → p-9feda3ff.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-a2450ed1.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-a2450ed1.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-b12bfbf9.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-b12bfbf9.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-ce55b323.entry.js → p-b7057914.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-bdf85a8a.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-bdf85a8a.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-c14d824b.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-c14d824b.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-c175ac96.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-c175ac96.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-c5b9e748.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-c5b9e748.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-ce80fe1a.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-ce80fe1a.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-e2106ed0.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-e2106ed0.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-be9c2a02.entry.js → p-e2d0ad64.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-e4de8215.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-0306ed65.entry.js → p-e57f8890.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-f99197dd.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-f99197dd.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-fa3a3a00.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-fa3a3a00.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-fbd1163b.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-fbd1163b.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-fc9c81fa.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-fc9c81fa.entry.js.map +1 -0
- package/dist/types/components.d.ts +0 -68
- package/dist/types/global/font-import.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/ifx-file-upload.cjs.entry.js +0 -322
- package/dist/cjs/ifx-file-upload.cjs.entry.js.map +0 -1
- package/dist/collection/components/file-upload/file-upload.css +0 -144
- package/dist/collection/components/file-upload/file-upload.js +0 -749
- package/dist/collection/components/file-upload/file-upload.js.map +0 -1
- package/dist/collection/components/file-upload/file-upload.stories.js +0 -144
- package/dist/collection/components/file-upload/file-upload.stories.js.map +0 -1
- package/dist/components/ifx-file-upload.d.ts +0 -11
- package/dist/components/ifx-file-upload.js +0 -377
- package/dist/components/ifx-file-upload.js.map +0 -1
- package/dist/components/p-18b340af.js.map +0 -1
- package/dist/components/p-2bc9826e.js.map +0 -1
- package/dist/components/p-2c77bbe2.js +0 -116
- package/dist/components/p-2c77bbe2.js.map +0 -1
- package/dist/components/p-461cf021.js.map +0 -1
- package/dist/components/p-48f52e18.js.map +0 -1
- package/dist/components/p-846923e6.js.map +0 -1
- package/dist/components/p-905fb988.js.map +0 -1
- package/dist/components/p-ab514a04.js.map +0 -1
- package/dist/components/p-c2b0bf22.js.map +0 -1
- package/dist/components/p-ccc83a43.js.map +0 -1
- package/dist/components/p-cd9e4789.js.map +0 -1
- package/dist/components/p-cf1e2d94.js +0 -53
- package/dist/components/p-cf1e2d94.js.map +0 -1
- package/dist/components/p-fa58a72c.js +0 -68
- package/dist/components/p-fa58a72c.js.map +0 -1
- package/dist/components/p-fc183f8e.js.map +0 -1
- package/dist/esm/ifx-file-upload.entry.js +0 -318
- package/dist/esm/ifx-file-upload.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-021719f5.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-02bf3e6a.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-02bf3e6a.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-08ded326.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-08ded326.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-18145ed5.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-18145ed5.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-1c80700d.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-1c80700d.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-1dbd5a8f.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-1fc608a3.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-1fc608a3.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-2170ccf1.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-3d4c474f.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-3d4c474f.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-3f5e136b.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-42234c99.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-42964c5d.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-42964c5d.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-44ffa393.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-44ffa393.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-4679e8ea.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-4679e8ea.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-51c067b1.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-51c067b1.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-534ef91b.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-534ef91b.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-54d98fa9.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-54d98fa9.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-582970ed.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-5bef967e.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-5bef967e.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-5e300ee5.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-5e300ee5.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-63679e7a.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-63679e7a.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-68f13949.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-68f13949.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-7103bb15.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-7103bb15.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-7a977f98.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-7f777885.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-7f777885.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-81b2a882.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-81b2a882.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-8319c8c5.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-8319c8c5.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-97100c2f.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-97100c2f.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-99a53e43.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-a26382ae.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-a26382ae.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-acf32338.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-acf32338.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-ad24c623.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-ad24c623.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-b2995f20.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-b2995f20.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-b4f0ce88.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-b4f0ce88.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-bbc83759.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-bbc83759.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-bdb0e937.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-c950abaf.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-c950abaf.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-ca42aecb.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-ca42aecb.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-cf96a19e.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-cf96a19e.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-d097a48f.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-d097a48f.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-d66fc7fa.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-d66fc7fa.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-e54766be.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-e54766be.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-e6f4865a.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-e6f4865a.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-ea24eca0.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-ea24eca0.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-edf98dc3.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-edf98dc3.entry.js.map +0 -1
- package/dist/types/components/file-upload/file-upload.d.ts +0 -88
- package/dist/types/components/file-upload/file-upload.stories.d.ts +0 -7
- /package/dist/infineon-design-system-stencil/{p-1dbd5a8f.entry.js.map → p-00c52c84.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-5bc7c9cc.entry.js.map → p-1abbcdbc.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-021719f5.entry.js.map → p-1b59a7f9.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-31f3dba0.entry.js.map → p-1de4f93c.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-051f1f75.entry.js.map → p-37e75e7c.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-474b0bda.entry.js.map → p-5ba50092.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-bdb0e937.entry.js.map → p-65d9faca.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-0be5bec9.entry.js.map → p-67c63b48.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-af1d9944.entry.js.map → p-6b9ecace.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-89f8f8c7.entry.js.map → p-6ee1b4e7.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-38fd172b.entry.js.map → p-7abdbf1f.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-42234c99.entry.js.map → p-8dbe0add.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-13e47c02.entry.js.map → p-95b48437.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-d4a4c134.entry.js.map → p-9e413f66.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-38a17a09.entry.js.map → p-9feda3ff.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-ce55b323.entry.js.map → p-b7057914.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-be9c2a02.entry.js.map → p-e2d0ad64.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-582970ed.entry.js.map → p-e4de8215.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-0306ed65.entry.js.map → p-e57f8890.entry.js.map} +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["dropdownHeaderCss","IfxDropdownHeaderStyle0","DropdownHeader","render","h","key","class"],"sources":["src/components/dropdown/dropdown-header/dropdown-header.scss?tag=ifx-dropdown-header&encapsulation=shadow","src/components/dropdown/dropdown-header/dropdown-header.tsx"],"sourcesContent":["@use \"~@infineon/design-system-tokens/dist/tokens\";\n@use \"../../../global/font.scss\";\n\n.dropdown-header {\n display: flex;\n padding: 8px 16px;\n align-items: center;\n gap: 8px;\n align-self: stretch;\n border-bottom: 1px solid tokens.$ifxColorEngineering200;\n font-family: var(--ifx-font-family, #{tokens.$ifxFontFamilyBody});\n\n\n & span {\n color: tokens.$ifxColorEngineering500;\n font-family: var(--ifx-font-family, #{tokens.$ifxFontFamilyBody});\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n /* 142.857% */\n }\n}","// dropdown-separator.tsx\nimport { Component, h } from \"@stencil/core\";\n\n@Component({\n tag: 'ifx-dropdown-header',\n styleUrl: 'dropdown-header.scss',\n shadow: true\n})\n\nexport class DropdownHeader {\n render() {\n return (\n <div class='dropdown-header'>\n <span>\n <slot />\n </span>\n </div>\n )\n }\n}"],"mappings":"2CAAA,MAAMA,EAAoB,kaAC1B,MAAAC,EAAeD,E,MCQFE,EAAc,M,yBACzB,MAAAC,GACE,OACEC,EAAA,OAAAC,IAAA,2CAAKC,MAAM,mBACTF,EAAA,QAAAC,IAAA,4CACED,EAAA,QAAAC,IAAA,8C","ignoreList":[]}
|
@@ -178,19 +178,6 @@ export namespace Components {
|
|
178
178
|
}
|
179
179
|
interface IfxFaq {
|
180
180
|
}
|
181
|
-
interface IfxFileUpload {
|
182
|
-
"allowedFileTypes": string | string[];
|
183
|
-
"dragAndDrop": boolean;
|
184
|
-
"injectDemoState": () => Promise<void>;
|
185
|
-
"labelBrowseFiles": string;
|
186
|
-
"labelDragAndDrop": string;
|
187
|
-
"labelFileTooLarge": string;
|
188
|
-
"labelSupportedFormatsTemplate": string;
|
189
|
-
"labelUnsupportedFileType": string;
|
190
|
-
"labelUploaded": string;
|
191
|
-
"maxFileSizeMB": number;
|
192
|
-
"uploadHandler"?: (file: File) => Promise<void>;
|
193
|
-
}
|
194
181
|
interface IfxFilterAccordion {
|
195
182
|
"filterGroupName": string;
|
196
183
|
"maxVisibleItems": number;
|
@@ -652,10 +639,6 @@ export interface IfxDropdownMenuCustomEvent<T> extends CustomEvent<T> {
|
|
652
639
|
detail: T;
|
653
640
|
target: HTMLIfxDropdownMenuElement;
|
654
641
|
}
|
655
|
-
export interface IfxFileUploadCustomEvent<T> extends CustomEvent<T> {
|
656
|
-
detail: T;
|
657
|
-
target: HTMLIfxFileUploadElement;
|
658
|
-
}
|
659
642
|
export interface IfxFilterAccordionCustomEvent<T> extends CustomEvent<T> {
|
660
643
|
detail: T;
|
661
644
|
target: HTMLIfxFilterAccordionElement;
|
@@ -1092,32 +1075,6 @@ declare global {
|
|
1092
1075
|
prototype: HTMLIfxFaqElement;
|
1093
1076
|
new (): HTMLIfxFaqElement;
|
1094
1077
|
};
|
1095
|
-
interface HTMLIfxFileUploadElementEventMap {
|
1096
|
-
"ifxFileUploadAdd": { addedFiles: File[]; files: File[] };
|
1097
|
-
"ifxFileUploadRemove": { removedFile: File; files: File[] };
|
1098
|
-
"ifxFileUploadChange": { files: File[] };
|
1099
|
-
"ifxFileUploadError": { errorType: string; file: File; message: string };
|
1100
|
-
"ifxFileUploadInvalid": { file: File; reason: string };
|
1101
|
-
"ifxFileUploadStart": { file: File };
|
1102
|
-
"ifxFileUploadComplete": { file: File };
|
1103
|
-
"ifxFileUploadAbort": { file: File };
|
1104
|
-
"ifxFileUploadDrop": { droppedFiles: File[]; acceptedFiles: File[]; rejectedFiles: File[] };
|
1105
|
-
"ifxFileUploadClick": void;
|
1106
|
-
}
|
1107
|
-
interface HTMLIfxFileUploadElement extends Components.IfxFileUpload, HTMLStencilElement {
|
1108
|
-
addEventListener<K extends keyof HTMLIfxFileUploadElementEventMap>(type: K, listener: (this: HTMLIfxFileUploadElement, ev: IfxFileUploadCustomEvent<HTMLIfxFileUploadElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
1109
|
-
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
1110
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
1111
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
1112
|
-
removeEventListener<K extends keyof HTMLIfxFileUploadElementEventMap>(type: K, listener: (this: HTMLIfxFileUploadElement, ev: IfxFileUploadCustomEvent<HTMLIfxFileUploadElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
1113
|
-
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
1114
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
1115
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
1116
|
-
}
|
1117
|
-
var HTMLIfxFileUploadElement: {
|
1118
|
-
prototype: HTMLIfxFileUploadElement;
|
1119
|
-
new (): HTMLIfxFileUploadElement;
|
1120
|
-
};
|
1121
1078
|
interface HTMLIfxFilterAccordionElementEventMap {
|
1122
1079
|
"ifxFilterAccordionChange": any;
|
1123
1080
|
}
|
@@ -1754,7 +1711,6 @@ declare global {
|
|
1754
1711
|
"ifx-dropdown-trigger": HTMLIfxDropdownTriggerElement;
|
1755
1712
|
"ifx-dropdown-trigger-button": HTMLIfxDropdownTriggerButtonElement;
|
1756
1713
|
"ifx-faq": HTMLIfxFaqElement;
|
1757
|
-
"ifx-file-upload": HTMLIfxFileUploadElement;
|
1758
1714
|
"ifx-filter-accordion": HTMLIfxFilterAccordionElement;
|
1759
1715
|
"ifx-filter-bar": HTMLIfxFilterBarElement;
|
1760
1716
|
"ifx-filter-search": HTMLIfxFilterSearchElement;
|
@@ -1974,28 +1930,6 @@ declare namespace LocalJSX {
|
|
1974
1930
|
}
|
1975
1931
|
interface IfxFaq {
|
1976
1932
|
}
|
1977
|
-
interface IfxFileUpload {
|
1978
|
-
"allowedFileTypes"?: string | string[];
|
1979
|
-
"dragAndDrop"?: boolean;
|
1980
|
-
"labelBrowseFiles"?: string;
|
1981
|
-
"labelDragAndDrop"?: string;
|
1982
|
-
"labelFileTooLarge"?: string;
|
1983
|
-
"labelSupportedFormatsTemplate"?: string;
|
1984
|
-
"labelUnsupportedFileType"?: string;
|
1985
|
-
"labelUploaded"?: string;
|
1986
|
-
"maxFileSizeMB"?: number;
|
1987
|
-
"onIfxFileUploadAbort"?: (event: IfxFileUploadCustomEvent<{ file: File }>) => void;
|
1988
|
-
"onIfxFileUploadAdd"?: (event: IfxFileUploadCustomEvent<{ addedFiles: File[]; files: File[] }>) => void;
|
1989
|
-
"onIfxFileUploadChange"?: (event: IfxFileUploadCustomEvent<{ files: File[] }>) => void;
|
1990
|
-
"onIfxFileUploadClick"?: (event: IfxFileUploadCustomEvent<void>) => void;
|
1991
|
-
"onIfxFileUploadComplete"?: (event: IfxFileUploadCustomEvent<{ file: File }>) => void;
|
1992
|
-
"onIfxFileUploadDrop"?: (event: IfxFileUploadCustomEvent<{ droppedFiles: File[]; acceptedFiles: File[]; rejectedFiles: File[] }>) => void;
|
1993
|
-
"onIfxFileUploadError"?: (event: IfxFileUploadCustomEvent<{ errorType: string; file: File; message: string }>) => void;
|
1994
|
-
"onIfxFileUploadInvalid"?: (event: IfxFileUploadCustomEvent<{ file: File; reason: string }>) => void;
|
1995
|
-
"onIfxFileUploadRemove"?: (event: IfxFileUploadCustomEvent<{ removedFile: File; files: File[] }>) => void;
|
1996
|
-
"onIfxFileUploadStart"?: (event: IfxFileUploadCustomEvent<{ file: File }>) => void;
|
1997
|
-
"uploadHandler"?: (file: File) => Promise<void>;
|
1998
|
-
}
|
1999
1933
|
interface IfxFilterAccordion {
|
2000
1934
|
"filterGroupName"?: string;
|
2001
1935
|
"maxVisibleItems"?: number;
|
@@ -2434,7 +2368,6 @@ declare namespace LocalJSX {
|
|
2434
2368
|
"ifx-dropdown-trigger": IfxDropdownTrigger;
|
2435
2369
|
"ifx-dropdown-trigger-button": IfxDropdownTriggerButton;
|
2436
2370
|
"ifx-faq": IfxFaq;
|
2437
|
-
"ifx-file-upload": IfxFileUpload;
|
2438
2371
|
"ifx-filter-accordion": IfxFilterAccordion;
|
2439
2372
|
"ifx-filter-bar": IfxFilterBar;
|
2440
2373
|
"ifx-filter-search": IfxFilterSearch;
|
@@ -2520,7 +2453,6 @@ declare module "@stencil/core" {
|
|
2520
2453
|
"ifx-dropdown-trigger": LocalJSX.IfxDropdownTrigger & JSXBase.HTMLAttributes<HTMLIfxDropdownTriggerElement>;
|
2521
2454
|
"ifx-dropdown-trigger-button": LocalJSX.IfxDropdownTriggerButton & JSXBase.HTMLAttributes<HTMLIfxDropdownTriggerButtonElement>;
|
2522
2455
|
"ifx-faq": LocalJSX.IfxFaq & JSXBase.HTMLAttributes<HTMLIfxFaqElement>;
|
2523
|
-
"ifx-file-upload": LocalJSX.IfxFileUpload & JSXBase.HTMLAttributes<HTMLIfxFileUploadElement>;
|
2524
2456
|
"ifx-filter-accordion": LocalJSX.IfxFilterAccordion & JSXBase.HTMLAttributes<HTMLIfxFilterAccordionElement>;
|
2525
2457
|
"ifx-filter-bar": LocalJSX.IfxFilterBar & JSXBase.HTMLAttributes<HTMLIfxFilterBarElement>;
|
2526
2458
|
"ifx-filter-search": LocalJSX.IfxFilterSearch & JSXBase.HTMLAttributes<HTMLIfxFilterSearchElement>;
|
@@ -0,0 +1 @@
|
|
1
|
+
import '@infineon/design-system-tokens/dist/fonts/ifx-fonts.css';
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@infineon/infineon-design-system-stencil",
|
3
|
-
"version": "33.1.1--canary.
|
3
|
+
"version": "33.1.1--canary.1818.94e54a71935d0367c21fd257850df436af269985.0",
|
4
4
|
"private": false,
|
5
5
|
"description": "Infineon design system Stencil web components",
|
6
6
|
"homepage": "https://infineon.github.io/infineon-design-system-stencil",
|
@@ -1,322 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
const index = require('./index-c9480f70.js');
|
6
|
-
|
7
|
-
const fileUploadCss = ":root{--ifx-font-family:\"Source Sans 3\";font-family:var(--ifx-font-family, sans-serif)}:host{font-family:var(--ifx-font-family, sans-serif)}.file-upload-wrapper{display:flex;flex-direction:column}.upload-dropzone{border:1px dashed #BFBBBB;padding:40px;text-align:center;cursor:pointer;color:#1D1D1D;transition:border-color 0.3s ease;border-radius:1px;background:#FFFFFF}.upload-dropzone ifx-icon{color:#0A8276}.upload-dropzone:hover{border:1px dashed #8D8786}.upload-dropzone.drag-over{border:1px solid #0A8276;background:#F7F7F7}.upload-dropzone input{display:none}.file-upload-info{font-style:normal;font-weight:400;font-size:0.75rem;line-height:1rem;letter-spacing:0em;color:#1D1D1D;margin:0;margin-top:4px}.file-list{list-style:none;padding:0;margin:0;margin-top:16px;display:flex;flex-direction:column;gap:16px}.file-item{border:1px solid #BFBBBB;padding:16px;display:flex;gap:16px}.file-info{width:100%;min-width:0}.file-top-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:-8px}.file-top-row ifx-icon{flex-shrink:0}.file-name-wrapper{display:flex;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;font-weight:400;font-size:0.875rem}.file-name-base{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1;min-width:0}.file-name-ext{flex-shrink:0;margin-left:0}.file-middle-row{display:flex;align-items:center;font-size:0.75rem;line-height:1rem;flex-wrap:wrap;color:#575352}.file-middle-row .file-status{margin-left:16px}.file-progress-row{margin-top:16px}.file-progress-row ifx-progress-bar{width:100%}.upload-success{border-color:#0A8276}.upload-success .file-status ifx-icon{position:relative;top:2px;color:#4CA460}.upload-failed{border-color:#CD002F}.upload-failed .file-status{color:#CD002F;margin-left:0}";
|
8
|
-
const IfxFileUploadStyle0 = fileUploadCss;
|
9
|
-
|
10
|
-
const IfxFileUpload = class {
|
11
|
-
constructor(hostRef) {
|
12
|
-
index.registerInstance(this, hostRef);
|
13
|
-
this.ifxFileUploadAdd = index.createEvent(this, "ifxFileUploadAdd", 7);
|
14
|
-
this.ifxFileUploadRemove = index.createEvent(this, "ifxFileUploadRemove", 7);
|
15
|
-
this.ifxFileUploadChange = index.createEvent(this, "ifxFileUploadChange", 7);
|
16
|
-
this.ifxFileUploadError = index.createEvent(this, "ifxFileUploadError", 7);
|
17
|
-
this.ifxFileUploadInvalid = index.createEvent(this, "ifxFileUploadInvalid", 7);
|
18
|
-
this.ifxFileUploadStart = index.createEvent(this, "ifxFileUploadStart", 7);
|
19
|
-
this.ifxFileUploadComplete = index.createEvent(this, "ifxFileUploadComplete", 7);
|
20
|
-
this.ifxFileUploadAbort = index.createEvent(this, "ifxFileUploadAbort", 7);
|
21
|
-
this.ifxFileUploadDrop = index.createEvent(this, "ifxFileUploadDrop", 7);
|
22
|
-
this.ifxFileUploadClick = index.createEvent(this, "ifxFileUploadClick", 7);
|
23
|
-
this.dragAndDrop = false;
|
24
|
-
this.maxFileSizeMB = 7;
|
25
|
-
this.allowedFileTypes = ['jpg', 'jpeg', 'png', 'pdf', 'mov', 'mp3', 'mp4'];
|
26
|
-
this.labelBrowseFiles = 'Browse files';
|
27
|
-
this.labelDragAndDrop = 'Drag & Drop or browse files to upload';
|
28
|
-
this.labelFileTooLarge = 'Upload failed. Max file size: {{size}}MB.';
|
29
|
-
this.labelUnsupportedFileType = 'Unsupported file type.';
|
30
|
-
this.labelUploaded = 'Successfully uploaded';
|
31
|
-
this.labelSupportedFormatsTemplate = 'Supported file formats: {{types}}. Max file size: {{size}}MB.';
|
32
|
-
this.isDragOver = false;
|
33
|
-
this.files = [];
|
34
|
-
this.uploadTasks = [];
|
35
|
-
this.rejectedSizeFiles = [];
|
36
|
-
this.rejectedTypeFiles = [];
|
37
|
-
this.fileInputEl = null;
|
38
|
-
this.extensionToMimeMap = {
|
39
|
-
jpg: 'image/jpeg',
|
40
|
-
jpeg: 'image/jpeg',
|
41
|
-
png: 'image/png',
|
42
|
-
pdf: 'application/pdf',
|
43
|
-
mov: 'video/quicktime',
|
44
|
-
mp3: 'audio/mpeg',
|
45
|
-
mp4: 'video/mp4'
|
46
|
-
};
|
47
|
-
}
|
48
|
-
getNormalizedFileTypes() {
|
49
|
-
if (Array.isArray(this.allowedFileTypes)) {
|
50
|
-
return this.allowedFileTypes;
|
51
|
-
}
|
52
|
-
try {
|
53
|
-
return JSON.parse(this.allowedFileTypes);
|
54
|
-
}
|
55
|
-
catch (_a) {
|
56
|
-
return this.allowedFileTypes.split(',').map(t => t.trim());
|
57
|
-
}
|
58
|
-
}
|
59
|
-
handleFileChange(event) {
|
60
|
-
const input = event.target;
|
61
|
-
if (!input.files)
|
62
|
-
return;
|
63
|
-
this.processFiles(input.files);
|
64
|
-
}
|
65
|
-
handleDrop(event) {
|
66
|
-
var _a;
|
67
|
-
event.preventDefault();
|
68
|
-
event.stopPropagation();
|
69
|
-
this.isDragOver = false;
|
70
|
-
if ((_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.files) {
|
71
|
-
const droppedFiles = Array.from(event.dataTransfer.files);
|
72
|
-
const allowedMimes = this.getNormalizedFileTypes()
|
73
|
-
.map(ext => this.extensionToMimeMap[ext.toLowerCase()])
|
74
|
-
.filter(Boolean);
|
75
|
-
const acceptedFiles = [];
|
76
|
-
const rejectedFiles = [];
|
77
|
-
droppedFiles.forEach(file => {
|
78
|
-
const isValidType = allowedMimes.includes(file.type);
|
79
|
-
const isValidSize = file.size <= this.maxFileSizeMB * 1024 * 1024;
|
80
|
-
if (isValidType && isValidSize)
|
81
|
-
acceptedFiles.push(file);
|
82
|
-
else
|
83
|
-
rejectedFiles.push(file);
|
84
|
-
});
|
85
|
-
this.ifxFileUploadDrop.emit({
|
86
|
-
droppedFiles,
|
87
|
-
acceptedFiles,
|
88
|
-
rejectedFiles
|
89
|
-
});
|
90
|
-
this.processFiles(event.dataTransfer.files);
|
91
|
-
}
|
92
|
-
}
|
93
|
-
handleDragOver(event) {
|
94
|
-
event.preventDefault();
|
95
|
-
this.isDragOver = true;
|
96
|
-
}
|
97
|
-
handleDragLeave(event) {
|
98
|
-
event.preventDefault();
|
99
|
-
this.isDragOver = false;
|
100
|
-
}
|
101
|
-
processFiles(fileList) {
|
102
|
-
const selectedFiles = Array.from(fileList);
|
103
|
-
const allowedMimes = this.getNormalizedFileTypes()
|
104
|
-
.map(ext => this.extensionToMimeMap[ext.toLowerCase()])
|
105
|
-
.filter(Boolean);
|
106
|
-
const validFiles = [];
|
107
|
-
const rejectedSize = [];
|
108
|
-
const rejectedType = [];
|
109
|
-
selectedFiles.forEach(file => {
|
110
|
-
const isValidType = allowedMimes.includes(file.type);
|
111
|
-
const isValidSize = file.size <= this.maxFileSizeMB * 1024 * 1024;
|
112
|
-
if (isValidType && isValidSize) {
|
113
|
-
validFiles.push(file);
|
114
|
-
}
|
115
|
-
else {
|
116
|
-
if (!isValidType) {
|
117
|
-
rejectedType.push(file.name);
|
118
|
-
this.ifxFileUploadInvalid.emit({ file, reason: 'invalid-type' });
|
119
|
-
}
|
120
|
-
if (!isValidSize) {
|
121
|
-
rejectedSize.push(file.name);
|
122
|
-
this.ifxFileUploadInvalid.emit({ file, reason: 'invalid-size' });
|
123
|
-
}
|
124
|
-
this.ifxFileUploadError.emit({ file, errorType: !isValidType ? 'invalid-type' : 'file-too-large', message: 'Invalid file rejected' });
|
125
|
-
}
|
126
|
-
});
|
127
|
-
this.rejectedSizeFiles = [...this.rejectedSizeFiles, ...rejectedSize];
|
128
|
-
this.rejectedTypeFiles = [...this.rejectedTypeFiles, ...rejectedType];
|
129
|
-
validFiles.forEach(file => this.startUpload(file));
|
130
|
-
this.files = [...this.files, ...validFiles];
|
131
|
-
if (validFiles.length > 0) {
|
132
|
-
this.ifxFileUploadAdd.emit({ addedFiles: validFiles, files: this.files });
|
133
|
-
this.ifxFileUploadChange.emit({ files: this.files });
|
134
|
-
}
|
135
|
-
}
|
136
|
-
startUpload(file) {
|
137
|
-
this.ifxFileUploadStart.emit({ file });
|
138
|
-
const task = {
|
139
|
-
file,
|
140
|
-
progress: 0,
|
141
|
-
intervalId: null,
|
142
|
-
completed: false
|
143
|
-
};
|
144
|
-
if (this.uploadHandler) {
|
145
|
-
// Real Upload
|
146
|
-
// <ifx-file-upload
|
147
|
-
// uploadHandler={(file) => {
|
148
|
-
// const formData = new FormData();
|
149
|
-
// formData.append('file', file);
|
150
|
-
// return fetch('/api/upload', {
|
151
|
-
// method: 'POST',
|
152
|
-
// body: formData
|
153
|
-
// }).then(res => {
|
154
|
-
// if (!res.ok) throw new Error('Upload failed');
|
155
|
-
// });
|
156
|
-
// }}
|
157
|
-
// ></ifx-file-upload>
|
158
|
-
this.uploadHandler(file).then(() => {
|
159
|
-
task.progress = 100;
|
160
|
-
task.completed = true;
|
161
|
-
this.uploadTasks = [...this.uploadTasks];
|
162
|
-
this.ifxFileUploadComplete.emit({ file });
|
163
|
-
this.ifxFileUploadChange.emit({ files: this.files });
|
164
|
-
}).catch(() => {
|
165
|
-
console.error('Upload failed');
|
166
|
-
this.ifxFileUploadError.emit({ file, errorType: 'upload-failed', message: 'Upload handler rejected file' });
|
167
|
-
});
|
168
|
-
}
|
169
|
-
else {
|
170
|
-
const totalSize = file.size;
|
171
|
-
const fakeUploadSpeed = 500000;
|
172
|
-
let uploaded = 0;
|
173
|
-
task.intervalId = window.setInterval(() => {
|
174
|
-
uploaded += fakeUploadSpeed / 5;
|
175
|
-
const progress = Math.min(100, Math.round((uploaded / totalSize) * 100));
|
176
|
-
task.progress = progress;
|
177
|
-
this.uploadTasks = [...this.uploadTasks];
|
178
|
-
if (progress >= 100) {
|
179
|
-
clearInterval(task.intervalId);
|
180
|
-
task.completed = true;
|
181
|
-
task.intervalId = null;
|
182
|
-
this.uploadTasks = [...this.uploadTasks];
|
183
|
-
this.ifxFileUploadComplete.emit({ file });
|
184
|
-
this.ifxFileUploadChange.emit({ files: this.files });
|
185
|
-
}
|
186
|
-
}, 200);
|
187
|
-
}
|
188
|
-
this.uploadTasks = [...this.uploadTasks, task];
|
189
|
-
}
|
190
|
-
cancelUpload(file) {
|
191
|
-
const taskIndex = this.uploadTasks.findIndex(t => t.file.name === file.name);
|
192
|
-
if (taskIndex !== -1) {
|
193
|
-
const task = this.uploadTasks[taskIndex];
|
194
|
-
if ((task === null || task === void 0 ? void 0 : task.intervalId) !== null) {
|
195
|
-
clearInterval(task.intervalId);
|
196
|
-
}
|
197
|
-
this.uploadTasks = this.uploadTasks.filter((_, i) => i !== taskIndex);
|
198
|
-
}
|
199
|
-
this.files = this.files.filter(f => f.name !== file.name);
|
200
|
-
this.ifxFileUploadAbort.emit({ file });
|
201
|
-
this.ifxFileUploadChange.emit({ files: this.files });
|
202
|
-
if (this.fileInputEl) {
|
203
|
-
this.fileInputEl.value = '';
|
204
|
-
}
|
205
|
-
}
|
206
|
-
removeFile(file) {
|
207
|
-
this.uploadTasks = this.uploadTasks.filter(task => task.file.name !== file.name);
|
208
|
-
this.files = this.files.filter(f => f.name !== file.name);
|
209
|
-
this.ifxFileUploadRemove.emit({ removedFile: file, files: this.files });
|
210
|
-
this.ifxFileUploadChange.emit({ files: this.files });
|
211
|
-
if (this.fileInputEl) {
|
212
|
-
this.fileInputEl.value = '';
|
213
|
-
}
|
214
|
-
}
|
215
|
-
clearRejectedFile(fileName, type) {
|
216
|
-
if (type === 'size') {
|
217
|
-
this.rejectedSizeFiles = this.rejectedSizeFiles.filter(f => f !== fileName);
|
218
|
-
}
|
219
|
-
else {
|
220
|
-
this.rejectedTypeFiles = this.rejectedTypeFiles.filter(f => f !== fileName);
|
221
|
-
}
|
222
|
-
if (this.fileInputEl) {
|
223
|
-
this.fileInputEl.value = '';
|
224
|
-
}
|
225
|
-
}
|
226
|
-
splitFileNameParts(file) {
|
227
|
-
const name = file.name;
|
228
|
-
const dotIndex = name.lastIndexOf('.');
|
229
|
-
if (dotIndex === -1)
|
230
|
-
return { base: name, ext: '' };
|
231
|
-
return {
|
232
|
-
base: name.substring(0, dotIndex),
|
233
|
-
ext: name.substring(dotIndex)
|
234
|
-
};
|
235
|
-
}
|
236
|
-
getFileIcon(file) {
|
237
|
-
var _a;
|
238
|
-
const extension = (_a = file.name.split('.').pop()) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
239
|
-
switch (extension) {
|
240
|
-
case 'pdf': return 'file-pdf-16';
|
241
|
-
case 'jpg':
|
242
|
-
case 'jpeg': return 'file-jpg-16';
|
243
|
-
case 'png': return 'file-png-16';
|
244
|
-
case 'mov': return 'file-mov-16';
|
245
|
-
case 'mp3': return 'file-mp3-16';
|
246
|
-
case 'mp4': return 'file-mp4-16';
|
247
|
-
default: return 'file';
|
248
|
-
}
|
249
|
-
}
|
250
|
-
getFormattedSize(file) {
|
251
|
-
const sizeInKB = file.size / 1024;
|
252
|
-
return sizeInKB > 1024
|
253
|
-
? `${(sizeInKB / 1024).toFixed(1)} MB`
|
254
|
-
: `${sizeInKB.toFixed(0)} KB`;
|
255
|
-
}
|
256
|
-
getAcceptAttribute() {
|
257
|
-
return this.getNormalizedFileTypes().map(ext => '.' + ext.toLowerCase()).join(',');
|
258
|
-
}
|
259
|
-
getSupportedFileText() {
|
260
|
-
return this.labelSupportedFormatsTemplate
|
261
|
-
.replace('{{types}}', this.getNormalizedFileTypes().map(ext => ext.toUpperCase()).join(', '))
|
262
|
-
.replace('{{size}}', this.maxFileSizeMB.toString());
|
263
|
-
}
|
264
|
-
getFormattedFileTooLargeText() {
|
265
|
-
return this.labelFileTooLarge.replace('{{size}}', this.maxFileSizeMB.toString());
|
266
|
-
}
|
267
|
-
componentDidLoad() {
|
268
|
-
if (this.hostElement.hasAttribute('show-demo-states')) {
|
269
|
-
this.showDemoStates = true;
|
270
|
-
}
|
271
|
-
if (this.showDemoStates) {
|
272
|
-
this.injectDemoState();
|
273
|
-
}
|
274
|
-
}
|
275
|
-
async injectDemoState() {
|
276
|
-
const uploading = new File(['demo'], 'Image.jpg', { type: 'image/jpeg' });
|
277
|
-
const uploaded = new File(['demo'], 'File.pdf', { type: 'application/pdf' });
|
278
|
-
const tooLarge = new File(['demo'], 'Video.mp4', { type: 'video/mp4' });
|
279
|
-
const unsupported = new File(['demo'], 'Script.exe', { type: 'application/x-msdownload' });
|
280
|
-
this.files = [uploaded, uploading];
|
281
|
-
this.uploadTasks = [
|
282
|
-
{ file: uploaded, progress: 100, intervalId: null, completed: true },
|
283
|
-
{ file: uploading, progress: 35, intervalId: null, completed: false }
|
284
|
-
];
|
285
|
-
this.rejectedSizeFiles = [tooLarge.name];
|
286
|
-
this.rejectedTypeFiles = [unsupported.name];
|
287
|
-
}
|
288
|
-
render() {
|
289
|
-
return (index.h("div", { key: '9ebbf4de0d20c25b5c0167dd48b6ab4d538ca736', class: "file-upload-wrapper" }, this.dragAndDrop ? this.renderDragAndDropArea() : this.renderUploadArea(), index.h("ul", { key: 'ad545c35ebfaf6016b4cebe0d11d0f4798816718', class: "file-list" }, this.rejectedSizeFiles.map(fileName => (index.h("li", { class: "file-item upload-failed" }, index.h("div", { class: "file-icon" }, index.h("ifx-icon", { icon: "file-16" })), index.h("div", { class: "file-info" }, index.h("div", { class: "file-top-row" }, index.h("span", { class: "file-name-wrapper" }, index.h("span", { class: "file-name-base" }, this.splitFileNameParts({ name: fileName }).base), index.h("span", { class: "file-name-ext" }, this.splitFileNameParts({ name: fileName }).ext)), index.h("div", { class: "file-actions" }, index.h("ifx-icon-button", { shape: "square", variant: "tertiary", icon: "delete-forever-16", size: "s", "aria-label": "Remove file", onClick: () => this.clearRejectedFile(fileName, 'size') }))), index.h("div", { class: "file-middle-row" }, index.h("span", { class: "file-status" }, this.getFormattedFileTooLargeText())))))), this.rejectedTypeFiles.map(fileName => (index.h("li", { class: "file-item upload-failed" }, index.h("div", { class: "file-icon" }, index.h("ifx-icon", { icon: "file-16" })), index.h("div", { class: "file-info" }, index.h("div", { class: "file-top-row" }, index.h("span", { class: "file-name-wrapper" }, index.h("span", { class: "file-name-base" }, this.splitFileNameParts({ name: fileName }).base), index.h("span", { class: "file-name-ext" }, this.splitFileNameParts({ name: fileName }).ext)), index.h("div", { class: "file-actions" }, index.h("ifx-icon-button", { shape: "square", variant: "tertiary", icon: "delete-forever-16", size: "s", "aria-label": "Remove file", onClick: () => this.clearRejectedFile(fileName, 'type') }))), index.h("div", { class: "file-middle-row" }, index.h("span", { class: "file-status" }, this.labelUnsupportedFileType)))))), this.files.map((file) => {
|
290
|
-
var _a;
|
291
|
-
const task = this.uploadTasks.find(t => t.file.name === file.name);
|
292
|
-
const progress = (_a = task === null || task === void 0 ? void 0 : task.progress) !== null && _a !== void 0 ? _a : 100;
|
293
|
-
const isUploading = task && !task.completed;
|
294
|
-
const itemClass = isUploading ? 'file-item uploading' : 'file-item upload-success';
|
295
|
-
const { base, ext } = this.splitFileNameParts(file);
|
296
|
-
return (index.h("li", { class: itemClass }, index.h("div", { class: "file-icon" }, index.h("ifx-icon", { icon: this.getFileIcon(file) })), index.h("div", { class: "file-info" }, index.h("div", { class: "file-top-row" }, index.h("span", { class: "file-name-wrapper" }, index.h("span", { class: "file-name-base" }, base), index.h("span", { class: "file-name-ext" }, ext)), index.h("div", { class: "file-actions" }, index.h("ifx-icon-button", { shape: "square", variant: "tertiary", icon: "cross-16", size: "s", "aria-label": "Cancel upload", onClick: () => this.cancelUpload(file), style: { display: isUploading ? 'inline-flex' : 'none' } }), index.h("ifx-icon-button", { shape: "square", variant: "tertiary", icon: "delete-forever-16", size: "s", "aria-label": "Remove file", onClick: () => this.removeFile(file), style: { display: !isUploading ? 'inline-flex' : 'none' } }))), index.h("div", { class: "file-middle-row" }, index.h("span", { class: "file-size" }, this.getFormattedSize(file)), isUploading && (index.h("span", { class: "file-uploading" }, "\u00A0\u2013\u00A0Uploading \u2026")), index.h("span", { class: "file-status" }, !isUploading && (index.h("span", null, index.h("ifx-icon", { icon: "check-12" }), "\u00A0", this.labelUploaded)))), isUploading && (index.h("div", { class: "file-progress-row" }, index.h("ifx-progress-bar", { size: "s", value: progress, "show-label": "true" }))))));
|
297
|
-
}))));
|
298
|
-
}
|
299
|
-
renderUploadArea() {
|
300
|
-
const handleInputRef = (el) => {
|
301
|
-
this.fileInputEl = el;
|
302
|
-
};
|
303
|
-
return (index.h("div", { class: { 'upload-button': true } }, index.h("label", null, index.h("ifx-button", { variant: "secondary" }, index.h("ifx-icon", { icon: "upload-16" }), this.labelBrowseFiles), index.h("input", { ref: handleInputRef, type: "file", accept: this.getAcceptAttribute(), multiple: true, onChange: (e) => this.handleFileChange(e), style: { display: 'none' } })), index.h("p", { class: "file-upload-info" }, this.getSupportedFileText())));
|
304
|
-
}
|
305
|
-
renderDragAndDropArea() {
|
306
|
-
const handleInputRef = (el) => {
|
307
|
-
this.fileInputEl = el;
|
308
|
-
};
|
309
|
-
const triggerInputClick = () => {
|
310
|
-
if (this.fileInputEl) {
|
311
|
-
this.fileInputEl.click();
|
312
|
-
}
|
313
|
-
};
|
314
|
-
return (index.h("div", { class: { 'upload-dropzone': true, 'drag-over': this.isDragOver }, onClick: triggerInputClick, onDragOver: (e) => this.handleDragOver(e), onDragLeave: (e) => this.handleDragLeave(e), onDrop: (e) => this.handleDrop(e) }, index.h("ifx-icon", { icon: "upload-24", class: "custom-icon" }), index.h("p", null, this.labelDragAndDrop), index.h("p", { class: "file-upload-info" }, this.getSupportedFileText()), index.h("div", { style: { height: '0px', overflow: 'hidden' } }, index.h("input", { ref: handleInputRef, type: "file", accept: this.getAcceptAttribute(), multiple: true, onChange: (e) => this.handleFileChange(e) }))));
|
315
|
-
}
|
316
|
-
get hostElement() { return index.getElement(this); }
|
317
|
-
};
|
318
|
-
IfxFileUpload.style = IfxFileUploadStyle0;
|
319
|
-
|
320
|
-
exports.ifx_file_upload = IfxFileUpload;
|
321
|
-
|
322
|
-
//# sourceMappingURL=ifx-file-upload.cjs.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"ifx-file-upload.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,aAAa,GAAG,wvDAAwvD,CAAC;AAC/wD,4BAAe,aAAa;;MCaf,aAAa;IAL1B;;;;;;;;;;;;QAQU,gBAAW,GAAY,KAAK,CAAC;QAC7B,kBAAa,GAAW,CAAC,CAAC;QAC1B,qBAAgB,GAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QAGzF,qBAAgB,GAAW,cAAc,CAAC;QAC1C,qBAAgB,GAAW,uCAAuC,CAAC;QACnE,sBAAiB,GAAW,2CAA2C,CAAC;QACxE,6BAAwB,GAAW,wBA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,UAAU,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EACzC,WAAW,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAC3C,MAAM,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAEjCA,sBAAU,IAAI,EAAC,WAAW,EAAC,KAAK,EAAC,aAAa,GAAY,EAC1DA,mBAAI,IAAI,CAAC,gBAAgB,CAAK,EAC9BA,eAAG,KAAK,EAAC,kBAAkB,IACxB,IAAI,CAAC,oBAAoB,EAAE,CAC1B,EACJA,iBAAK,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAC/CA,mBACE,GAAG,EAAE,cAAc,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,IAAI,CAAC,kBAAkB,EAAE,EACjC,QAAQ,QACR,QAAQ,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,GACzC,CACE,CACF,EACN;KACH;;;;;;;","names":["h"],"sources":["src/components/file-upload/file-upload.scss?tag=ifx-file-upload&encapsulation=shadow","src/components/file-upload/file-upload.tsx"],"sourcesContent":["@use \"~@infineon/design-system-tokens/dist/tokens\";\n@use \"../../global/font.scss\";\n\n:host {\n font-family: var(--ifx-font-family, sans-serif);\n}\n\n.file-upload-wrapper {\n display: flex;\n flex-direction: column;\n}\n\n.upload-dropzone {\n border: 1px dashed tokens.$ifxColorEngineering300;\n padding: tokens.$ifxSpace500;\n text-align: center;\n cursor: pointer;\n color: tokens.$ifxColorBaseBlack;\n transition: border-color 0.3s ease;\n border-radius: tokens.$ifxBorderRadius12;\n background: tokens.$ifxColorBaseWhite;\n\n ifx-icon {\n color: tokens.$ifxColorOcean500;\n }\n\n &:hover {\n border: 1px dashed tokens.$ifxColorEngineering400;\n }\n}\n\n.upload-dropzone.drag-over {\n border: 1px solid tokens.$ifxColorOcean500;\n background: tokens.$ifxColorEngineering100;\n}\n\n.upload-dropzone input {\n display: none;\n}\n\n.file-upload-info {\n font-style: normal;\n font-weight: tokens.$ifxFontWeightRegular;\n font-size: tokens.$ifxFontSizeXs;\n line-height: tokens.$ifxLineHeightXs;\n letter-spacing: tokens.$ifxLetterSpacingDefault;\n color: tokens.$ifxColorBaseBlack;\n margin: 0;\n margin-top: tokens.$ifxSpace50;\n}\n\n.file-list {\n list-style: none;\n padding: 0;\n margin: 0;\n margin-top: tokens.$ifxSpace200;\n display: flex;\n flex-direction: column;\n gap: tokens.$ifxSpace200;\n}\n\n.file-item {\n border: 1px solid tokens.$ifxColorEngineering300;\n padding: tokens.$ifxSpace200;\n display: flex;\n gap: tokens.$ifxSpace200;\n}\n\n.file-info {\n width: 100%;\n min-width: 0;\n}\n\n.file-top-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: tokens.$ifxSpace200;\n margin-top: - tokens.$ifxSpace100;\n}\n\n.file-top-row ifx-icon {\n flex-shrink: 0;\n}\n\n.file-name-wrapper {\n display: flex;\n min-width: 0;\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n font-weight: tokens.$ifxFontWeightRegular;\n font-size: tokens.$ifxFontSizeS;\n}\n\n.file-name-base {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n flex-shrink: 1;\n min-width: 0;\n}\n\n.file-name-ext {\n flex-shrink: 0;\n margin-left: 0;\n}\n\n.file-middle-row {\n display: flex;\n align-items: center;\n font-size: tokens.$ifxFontSizeXs;\n line-height: tokens.$ifxLineHeightXs;\n flex-wrap: wrap;\n color: tokens.$ifxColorEngineering500;\n\n .file-status {\n margin-left: tokens.$ifxSpace200;\n }\n}\n\n.file-progress-row {\n margin-top: tokens.$ifxSpace200;\n}\n\n.file-progress-row ifx-progress-bar {\n width: 100%;\n}\n\n.upload-success {\n border-color: tokens.$ifxColorOcean500;\n\n .file-status {\n ifx-icon {\n position: relative;\n top: tokens.$ifxSpace25;\n color: tokens.$ifxColorGreen500;\n }\n }\n}\n\n.upload-failed {\n border-color: tokens.$ifxColorRed500;\n\n .file-status {\n color: tokens.$ifxColorRed500;\n margin-left: 0;\n }\n}\n","import { Component, h, State, Event, EventEmitter, Prop, Method, Element } from '@stencil/core';\n\ninterface UploadTask {\n file: File;\n progress: number;\n intervalId: number | null;\n completed: boolean;\n}\n\n@Component({\n tag: 'ifx-file-upload',\n styleUrl: 'file-upload.scss',\n shadow: true\n})\nexport class IfxFileUpload {\n @Element() hostElement: HTMLElement;\n\n @Prop() dragAndDrop: boolean = false;\n @Prop() maxFileSizeMB: number = 7;\n @Prop() allowedFileTypes: string | string[] = ['jpg', 'jpeg', 'png', 'pdf', 'mov', 'mp3', 'mp4'];\n @Prop() uploadHandler?: (file: File) => Promise<void>;\n\n @Prop() labelBrowseFiles: string = 'Browse files';\n @Prop() labelDragAndDrop: string = 'Drag & Drop or browse files to upload';\n @Prop() labelFileTooLarge: string = 'Upload failed. Max file size: {{size}}MB.';\n @Prop() labelUnsupportedFileType: string = 'Unsupported file type.';\n @Prop() labelUploaded: string = 'Successfully uploaded';\n @Prop() labelSupportedFormatsTemplate: string = 'Supported file formats: {{types}}. Max file size: {{size}}MB.';\n\n private showDemoStates?: boolean;\n\n @State() isDragOver: boolean = false;\n @State() files: File[] = [];\n @State() uploadTasks: UploadTask[] = [];\n @State() rejectedSizeFiles: string[] = [];\n @State() rejectedTypeFiles: string[] = [];\n\n @Event() ifxFileUploadAdd: EventEmitter<{ addedFiles: File[]; files: File[] }>;\n @Event() ifxFileUploadRemove: EventEmitter<{ removedFile: File; files: File[] }>;\n @Event() ifxFileUploadChange: EventEmitter<{ files: File[] }>;\n @Event() ifxFileUploadError: EventEmitter<{ errorType: string; file: File; message: string }>;\n @Event() ifxFileUploadInvalid: EventEmitter<{ file: File; reason: string }>;\n @Event() ifxFileUploadStart: EventEmitter<{ file: File }>;\n @Event() ifxFileUploadComplete: EventEmitter<{ file: File }>;\n @Event() ifxFileUploadAbort: EventEmitter<{ file: File }>;\n @Event() ifxFileUploadDrop: EventEmitter<{ droppedFiles: File[]; acceptedFiles: File[]; rejectedFiles: File[] }>;\n @Event() ifxFileUploadClick: EventEmitter<void>;\n\n private fileInputEl: HTMLInputElement | null = null;\n\n private extensionToMimeMap: Record<string, string> = {\n jpg: 'image/jpeg',\n jpeg: 'image/jpeg',\n png: 'image/png',\n pdf: 'application/pdf',\n mov: 'video/quicktime',\n mp3: 'audio/mpeg',\n mp4: 'video/mp4'\n };\n\n private getNormalizedFileTypes(): string[] {\n if (Array.isArray(this.allowedFileTypes)) {\n return this.allowedFileTypes;\n }\n try {\n return JSON.parse(this.allowedFileTypes);\n } catch {\n return this.allowedFileTypes.split(',').map(t => t.trim());\n }\n }\n\n handleFileChange(event: Event) {\n const input = event.target as HTMLInputElement;\n if (!input.files) return;\n this.processFiles(input.files);\n }\n\n handleDrop(event: DragEvent) {\n event.preventDefault();\n event.stopPropagation();\n this.isDragOver = false;\n if (event.dataTransfer?.files) {\n const droppedFiles = Array.from(event.dataTransfer.files);\n const allowedMimes = this.getNormalizedFileTypes()\n .map(ext => this.extensionToMimeMap[ext.toLowerCase()])\n .filter(Boolean);\n\n const acceptedFiles: File[] = [];\n const rejectedFiles: File[] = [];\n\n droppedFiles.forEach(file => {\n const isValidType = allowedMimes.includes(file.type);\n const isValidSize = file.size <= this.maxFileSizeMB * 1024 * 1024;\n if (isValidType && isValidSize) acceptedFiles.push(file);\n else rejectedFiles.push(file);\n });\n\n this.ifxFileUploadDrop.emit({\n droppedFiles,\n acceptedFiles,\n rejectedFiles\n });\n\n this.processFiles(event.dataTransfer.files);\n }\n }\n\n handleDragOver(event: DragEvent) {\n event.preventDefault();\n this.isDragOver = true;\n }\n\n handleDragLeave(event: DragEvent) {\n event.preventDefault();\n this.isDragOver = false;\n }\n\n processFiles(fileList: FileList) {\n const selectedFiles = Array.from(fileList);\n const allowedMimes = this.getNormalizedFileTypes()\n .map(ext => this.extensionToMimeMap[ext.toLowerCase()])\n .filter(Boolean);\n\n const validFiles: File[] = [];\n const rejectedSize: string[] = [];\n const rejectedType: string[] = [];\n\n selectedFiles.forEach(file => {\n const isValidType = allowedMimes.includes(file.type);\n const isValidSize = file.size <= this.maxFileSizeMB * 1024 * 1024;\n\n if (isValidType && isValidSize) {\n validFiles.push(file);\n } else {\n if (!isValidType) {\n rejectedType.push(file.name);\n this.ifxFileUploadInvalid.emit({ file, reason: 'invalid-type' });\n }\n if (!isValidSize) {\n rejectedSize.push(file.name);\n this.ifxFileUploadInvalid.emit({ file, reason: 'invalid-size' });\n }\n this.ifxFileUploadError.emit({ file, errorType: !isValidType ? 'invalid-type' : 'file-too-large', message: 'Invalid file rejected' });\n }\n });\n\n this.rejectedSizeFiles = [...this.rejectedSizeFiles, ...rejectedSize];\n this.rejectedTypeFiles = [...this.rejectedTypeFiles, ...rejectedType];\n\n validFiles.forEach(file => this.startUpload(file));\n this.files = [...this.files, ...validFiles];\n\n if (validFiles.length > 0) {\n this.ifxFileUploadAdd.emit({ addedFiles: validFiles, files: this.files });\n this.ifxFileUploadChange.emit({ files: this.files });\n }\n }\n\n startUpload(file: File) {\n this.ifxFileUploadStart.emit({ file });\n\n const task: UploadTask = {\n file,\n progress: 0,\n intervalId: null,\n completed: false\n };\n\n if (this.uploadHandler) {\n // Real Upload\n\n // <ifx-file-upload\n // uploadHandler={(file) => {\n // const formData = new FormData();\n // formData.append('file', file);\n // return fetch('/api/upload', {\n // method: 'POST',\n // body: formData\n // }).then(res => {\n // if (!res.ok) throw new Error('Upload failed');\n // });\n // }}\n // ></ifx-file-upload>\n\n this.uploadHandler(file).then(() => {\n task.progress = 100;\n task.completed = true;\n this.uploadTasks = [...this.uploadTasks];\n this.ifxFileUploadComplete.emit({ file });\n this.ifxFileUploadChange.emit({ files: this.files });\n }).catch(() => {\n console.error('Upload failed');\n this.ifxFileUploadError.emit({ file, errorType: 'upload-failed', message: 'Upload handler rejected file' });\n });\n } else {\n const totalSize = file.size;\n const fakeUploadSpeed = 500000;\n let uploaded = 0;\n\n task.intervalId = window.setInterval(() => {\n uploaded += fakeUploadSpeed / 5;\n const progress = Math.min(100, Math.round((uploaded / totalSize) * 100));\n task.progress = progress;\n this.uploadTasks = [...this.uploadTasks];\n\n if (progress >= 100) {\n clearInterval(task.intervalId!);\n task.completed = true;\n task.intervalId = null;\n this.uploadTasks = [...this.uploadTasks];\n this.ifxFileUploadComplete.emit({ file });\n this.ifxFileUploadChange.emit({ files: this.files });\n }\n }, 200);\n }\n\n this.uploadTasks = [...this.uploadTasks, task];\n }\n\n cancelUpload(file: File) {\n const taskIndex = this.uploadTasks.findIndex(t => t.file.name === file.name);\n if (taskIndex !== -1) {\n const task = this.uploadTasks[taskIndex];\n if (task?.intervalId !== null) {\n clearInterval(task.intervalId);\n }\n this.uploadTasks = this.uploadTasks.filter((_, i) => i !== taskIndex);\n }\n this.files = this.files.filter(f => f.name !== file.name);\n this.ifxFileUploadAbort.emit({ file });\n this.ifxFileUploadChange.emit({ files: this.files });\n if (this.fileInputEl) {\n this.fileInputEl.value = '';\n }\n }\n\n removeFile(file: File) {\n this.uploadTasks = this.uploadTasks.filter(task => task.file.name !== file.name);\n this.files = this.files.filter(f => f.name !== file.name);\n this.ifxFileUploadRemove.emit({ removedFile: file, files: this.files });\n this.ifxFileUploadChange.emit({ files: this.files });\n if (this.fileInputEl) {\n this.fileInputEl.value = '';\n }\n }\n\n clearRejectedFile(fileName: string, type: 'size' | 'type') {\n if (type === 'size') {\n this.rejectedSizeFiles = this.rejectedSizeFiles.filter(f => f !== fileName);\n } else {\n this.rejectedTypeFiles = this.rejectedTypeFiles.filter(f => f !== fileName);\n }\n\n if (this.fileInputEl) {\n this.fileInputEl.value = '';\n }\n }\n\n splitFileNameParts(file: File): { base: string; ext: string } {\n const name = file.name;\n const dotIndex = name.lastIndexOf('.');\n if (dotIndex === -1) return { base: name, ext: '' };\n return {\n base: name.substring(0, dotIndex),\n ext: name.substring(dotIndex)\n };\n }\n\n getFileIcon(file: File): string {\n const extension = file.name.split('.').pop()?.toLowerCase();\n switch (extension) {\n case 'pdf': return 'file-pdf-16';\n case 'jpg':\n case 'jpeg': return 'file-jpg-16';\n case 'png': return 'file-png-16';\n case 'mov': return 'file-mov-16';\n case 'mp3': return 'file-mp3-16';\n case 'mp4': return 'file-mp4-16';\n default: return 'file';\n }\n }\n\n getFormattedSize(file: File): string {\n const sizeInKB = file.size / 1024;\n return sizeInKB > 1024\n ? `${(sizeInKB / 1024).toFixed(1)} MB`\n : `${sizeInKB.toFixed(0)} KB`;\n }\n\n getAcceptAttribute(): string {\n return this.getNormalizedFileTypes().map(ext => '.' + ext.toLowerCase()).join(',');\n }\n\n private getSupportedFileText(): string {\n return this.labelSupportedFormatsTemplate\n .replace('{{types}}', this.getNormalizedFileTypes().map(ext => ext.toUpperCase()).join(', '))\n .replace('{{size}}', this.maxFileSizeMB.toString());\n }\n\n private getFormattedFileTooLargeText(): string {\n return this.labelFileTooLarge.replace('{{size}}', this.maxFileSizeMB.toString());\n }\n\n componentDidLoad() {\n if (this.hostElement.hasAttribute('show-demo-states')) {\n this.showDemoStates = true;\n }\n\n if (this.showDemoStates) {\n this.injectDemoState();\n }\n }\n\n @Method()\n async injectDemoState() {\n const uploading = new File(['demo'], 'Image.jpg', { type: 'image/jpeg' });\n const uploaded = new File(['demo'], 'File.pdf', { type: 'application/pdf' });\n const tooLarge = new File(['demo'], 'Video.mp4', { type: 'video/mp4' });\n const unsupported = new File(['demo'], 'Script.exe', { type: 'application/x-msdownload' });\n\n this.files = [uploaded, uploading];\n this.uploadTasks = [\n { file: uploaded, progress: 100, intervalId: null, completed: true },\n { file: uploading, progress: 35, intervalId: null, completed: false }\n ];\n this.rejectedSizeFiles = [tooLarge.name];\n this.rejectedTypeFiles = [unsupported.name];\n }\n\n render() {\n return (\n <div class=\"file-upload-wrapper\">\n {this.dragAndDrop ? this.renderDragAndDropArea() : this.renderUploadArea()}\n\n <ul class=\"file-list\">\n {this.rejectedSizeFiles.map(fileName => (\n <li class=\"file-item upload-failed\">\n <div class=\"file-icon\">\n <ifx-icon icon=\"file-16\"></ifx-icon>\n </div>\n <div class=\"file-info\">\n <div class=\"file-top-row\">\n <span class=\"file-name-wrapper\">\n <span class=\"file-name-base\">{this.splitFileNameParts({ name: fileName } as File).base}</span>\n <span class=\"file-name-ext\">{this.splitFileNameParts({ name: fileName } as File).ext}</span>\n </span>\n <div class=\"file-actions\">\n <ifx-icon-button\n shape=\"square\"\n variant=\"tertiary\"\n icon=\"delete-forever-16\"\n size=\"s\"\n aria-label=\"Remove file\"\n onClick={() => this.clearRejectedFile(fileName, 'size')}>\n </ifx-icon-button>\n </div>\n </div>\n <div class=\"file-middle-row\">\n <span class=\"file-status\">\n {this.getFormattedFileTooLargeText()}\n </span>\n </div>\n </div>\n </li>\n ))}\n\n {this.rejectedTypeFiles.map(fileName => (\n <li class=\"file-item upload-failed\">\n <div class=\"file-icon\">\n <ifx-icon icon=\"file-16\"></ifx-icon>\n </div>\n <div class=\"file-info\">\n <div class=\"file-top-row\">\n <span class=\"file-name-wrapper\">\n <span class=\"file-name-base\">{this.splitFileNameParts({ name: fileName } as File).base}</span>\n <span class=\"file-name-ext\">{this.splitFileNameParts({ name: fileName } as File).ext}</span>\n </span>\n <div class=\"file-actions\">\n <ifx-icon-button\n shape=\"square\"\n variant=\"tertiary\"\n icon=\"delete-forever-16\"\n size=\"s\"\n aria-label=\"Remove file\"\n onClick={() => this.clearRejectedFile(fileName, 'type')}>\n </ifx-icon-button>\n </div>\n </div>\n <div class=\"file-middle-row\">\n <span class=\"file-status\">\n {this.labelUnsupportedFileType}\n </span>\n </div>\n </div>\n </li>\n ))}\n\n {this.files.map((file) => {\n const task = this.uploadTasks.find(t => t.file.name === file.name);\n const progress = task?.progress ?? 100;\n const isUploading = task && !task.completed;\n const itemClass = isUploading ? 'file-item uploading' : 'file-item upload-success';\n\n const { base, ext } = this.splitFileNameParts(file);\n\n return (\n <li class={itemClass}>\n <div class=\"file-icon\">\n <ifx-icon icon={this.getFileIcon(file)}></ifx-icon>\n </div>\n <div class=\"file-info\">\n <div class=\"file-top-row\">\n <span class=\"file-name-wrapper\">\n <span class=\"file-name-base\">{base}</span>\n <span class=\"file-name-ext\">{ext}</span>\n </span>\n <div class=\"file-actions\">\n <ifx-icon-button\n shape=\"square\"\n variant=\"tertiary\"\n icon=\"cross-16\"\n size=\"s\"\n aria-label=\"Cancel upload\"\n onClick={() => this.cancelUpload(file)}\n style={{ display: isUploading ? 'inline-flex' : 'none' }}>\n </ifx-icon-button>\n <ifx-icon-button\n shape=\"square\"\n variant=\"tertiary\"\n icon=\"delete-forever-16\"\n size=\"s\"\n aria-label=\"Remove file\"\n onClick={() => this.removeFile(file)}\n style={{ display: !isUploading ? 'inline-flex' : 'none' }}>\n </ifx-icon-button>\n </div>\n </div>\n\n <div class=\"file-middle-row\">\n <span class=\"file-size\">{this.getFormattedSize(file)}</span>\n {isUploading && (\n <span class=\"file-uploading\"> – Uploading …</span>\n )}\n <span class=\"file-status\">\n {!isUploading && (\n <span>\n <ifx-icon icon=\"check-12\"></ifx-icon> \n {this.labelUploaded}\n </span>\n )}\n </span>\n </div>\n\n {isUploading && (\n <div class=\"file-progress-row\">\n <ifx-progress-bar size=\"s\" value={progress} show-label=\"true\"></ifx-progress-bar>\n </div>\n )}\n </div>\n </li>\n );\n })}\n </ul>\n </div>\n );\n }\n\n renderUploadArea() {\n const handleInputRef = (el: HTMLInputElement | null) => {\n this.fileInputEl = el;\n };\n\n return (\n <div class={{ 'upload-button': true }}>\n <label>\n <ifx-button variant=\"secondary\">\n <ifx-icon icon=\"upload-16\"></ifx-icon>\n {this.labelBrowseFiles}\n </ifx-button>\n <input\n ref={handleInputRef}\n type=\"file\"\n accept={this.getAcceptAttribute()}\n multiple\n onChange={(e) => this.handleFileChange(e)}\n style={{ display: 'none' }}\n />\n </label>\n <p class=\"file-upload-info\">\n {this.getSupportedFileText()}\n </p>\n </div>\n );\n }\n\n renderDragAndDropArea() {\n const handleInputRef = (el: HTMLInputElement | null) => {\n this.fileInputEl = el;\n };\n\n const triggerInputClick = () => {\n if (this.fileInputEl) {\n this.fileInputEl.click();\n }\n };\n\n return (\n <div\n class={{ 'upload-dropzone': true, 'drag-over': this.isDragOver }}\n onClick={triggerInputClick}\n onDragOver={(e) => this.handleDragOver(e)}\n onDragLeave={(e) => this.handleDragLeave(e)}\n onDrop={(e) => this.handleDrop(e)}\n >\n <ifx-icon icon=\"upload-24\" class=\"custom-icon\"></ifx-icon>\n <p>{this.labelDragAndDrop}</p>\n <p class=\"file-upload-info\">\n {this.getSupportedFileText()}\n </p>\n <div style={{ height: '0px', overflow: 'hidden' }}>\n <input\n ref={handleInputRef}\n type=\"file\"\n accept={this.getAcceptAttribute()}\n multiple\n onChange={(e) => this.handleFileChange(e)}\n />\n </div>\n </div>\n );\n }\n}\n"],"version":3}
|