@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
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"file-upload.js","sourceRoot":"","sources":["../../../src/components/file-upload/file-upload.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAchG,MAAM,OAAO,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,wBAAwB,CAAC;QAC5D,kBAAa,GAAW,uBAAuB,CAAC;QAChD,kCAA6B,GAAW,+DAA+D,CAAC;QAIvG,eAAU,GAAY,KAAK,CAAC;QAC5B,UAAK,GAAW,EAAE,CAAC;QACnB,gBAAW,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,CAAC,EAC3C,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;YAEjC,gBAAU,IAAI,EAAC,WAAW,EAAC,KAAK,EAAC,aAAa,GAAY;YAC1D,aAAI,IAAI,CAAC,gBAAgB,CAAK;YAC9B,SAAG,KAAK,EAAC,kBAAkB,IACxB,IAAI,CAAC,oBAAoB,EAAE,CAC1B;YACJ,WAAK,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE;gBAC/C,aACE,GAAG,EAAE,cAAc,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,IAAI,CAAC,kBAAkB,EAAE,EACjC,QAAQ,QACR,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,GACzC,CACE,CACF,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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"]}
|
@@ -1,144 +0,0 @@
|
|
1
|
-
import { action } from "@storybook/addon-actions";
|
2
|
-
const meta = {
|
3
|
-
title: 'Components/File Upload',
|
4
|
-
tags: ['autodocs'],
|
5
|
-
parameters: {
|
6
|
-
controls: { expanded: true },
|
7
|
-
docs: {
|
8
|
-
description: {
|
9
|
-
component: 'Upload component with different interaction styles: button or drag-and-drop area.'
|
10
|
-
}
|
11
|
-
}
|
12
|
-
},
|
13
|
-
argTypes: {
|
14
|
-
dragAndDrop: {
|
15
|
-
control: 'boolean',
|
16
|
-
description: 'Enables drag-and-drop area. If false, a button-based upload is shown instead.'
|
17
|
-
},
|
18
|
-
maxFileSizeMB: {
|
19
|
-
control: 'number',
|
20
|
-
description: 'Maximum file size allowed per file (in MB). Files larger than this will be rejected.'
|
21
|
-
},
|
22
|
-
allowedFileTypes: {
|
23
|
-
control: { type: 'check' },
|
24
|
-
options: ['jpg', 'png', 'pdf', 'mov', 'mp3', 'mp4'],
|
25
|
-
description: 'Select one or more allowed file extensions. Internally mapped to MIME types.'
|
26
|
-
},
|
27
|
-
labelBrowseFiles: {
|
28
|
-
control: 'text',
|
29
|
-
description: 'Text for the file selection button (e.g., “Browse files”).'
|
30
|
-
},
|
31
|
-
labelDragAndDrop: {
|
32
|
-
control: 'text',
|
33
|
-
description: 'Text shown inside the drag-and-drop area.'
|
34
|
-
},
|
35
|
-
labelFileTooLarge: {
|
36
|
-
control: 'text',
|
37
|
-
description: 'Shown when a file exceeds the allowed size. Use {{size}} for substitution.'
|
38
|
-
},
|
39
|
-
labelUnsupportedFileType: {
|
40
|
-
control: 'text',
|
41
|
-
description: 'Shown when an unsupported file type is uploaded.'
|
42
|
-
},
|
43
|
-
labelUploaded: {
|
44
|
-
control: 'text',
|
45
|
-
description: 'Label shown after successful upload.'
|
46
|
-
},
|
47
|
-
labelSupportedFormatsTemplate: {
|
48
|
-
control: 'text',
|
49
|
-
description: 'Template showing supported file formats. Use {{types}} and {{size}}.'
|
50
|
-
}
|
51
|
-
}
|
52
|
-
};
|
53
|
-
export default meta;
|
54
|
-
const renderFileUpload = (args) => {
|
55
|
-
const el = document.createElement('ifx-file-upload');
|
56
|
-
if (args.dragAndDrop)
|
57
|
-
el.setAttribute('drag-and-drop', '');
|
58
|
-
el.setAttribute('max-file-size-m-b', args.maxFileSizeMB);
|
59
|
-
const rawTypes = Array.isArray(args.allowedFileTypes)
|
60
|
-
? args.allowedFileTypes
|
61
|
-
: args.allowedFileTypes.split(',');
|
62
|
-
// Map 'jpg' ➜ ['jpg', 'jpeg']
|
63
|
-
const mappedTypes = rawTypes.flatMap(type => {
|
64
|
-
if (type === 'jpg')
|
65
|
-
return ['jpg', 'jpeg'];
|
66
|
-
return [type];
|
67
|
-
});
|
68
|
-
const uniqueTypes = Array.from(new Set(mappedTypes));
|
69
|
-
el.setAttribute('allowed-file-types', uniqueTypes.join(','));
|
70
|
-
el.setAttribute('label-browse-files', args.labelBrowseFiles);
|
71
|
-
el.setAttribute('label-drag-and-drop', args.labelDragAndDrop);
|
72
|
-
el.setAttribute('label-file-too-large', args.labelFileTooLarge);
|
73
|
-
el.setAttribute('label-unsupported-file-type', args.labelUnsupportedFileType);
|
74
|
-
el.setAttribute('label-uploaded', args.labelUploaded);
|
75
|
-
el.setAttribute('label-supported-formats-template', args.labelSupportedFormatsTemplate);
|
76
|
-
el.addEventListener('ifxFileUploadAdd', action('ifxFileUploadAdd'));
|
77
|
-
el.addEventListener('ifxFileUploadRemove', action('ifxFileUploadRemove'));
|
78
|
-
el.addEventListener('ifxFileUploadChange', action('ifxFileUploadChange'));
|
79
|
-
el.addEventListener('ifxFileUploadError', action('ifxFileUploadError'));
|
80
|
-
el.addEventListener('ifxFileUploadInvalid', action('ifxFileUploadInvalid'));
|
81
|
-
el.addEventListener('ifxFileUploadStart', action('ifxFileUploadStart'));
|
82
|
-
el.addEventListener('ifxFileUploadComplete', action('ifxFileUploadComplete'));
|
83
|
-
el.addEventListener('ifxFileUploadAbort', action('ifxFileUploadAbort'));
|
84
|
-
el.addEventListener('ifxFileUploadDrop', action('ifxFileUploadDrop'));
|
85
|
-
el.addEventListener('ifxFileUploadClick', action('ifxFileUploadClick'));
|
86
|
-
return el;
|
87
|
-
};
|
88
|
-
export const UploadFileButton = {
|
89
|
-
name: 'Upload File (Button)',
|
90
|
-
args: {
|
91
|
-
dragAndDrop: false,
|
92
|
-
maxFileSizeMB: 7,
|
93
|
-
allowedFileTypes: ['jpg', 'png', 'pdf'],
|
94
|
-
labelBrowseFiles: 'Browse files',
|
95
|
-
labelDragAndDrop: 'Drag & Drop or browse files to upload',
|
96
|
-
labelFileTooLarge: 'Upload failed. Max file size: {{size}}MB.',
|
97
|
-
labelUnsupportedFileType: 'Unsupported file type.',
|
98
|
-
labelUploaded: 'Successfully uploaded',
|
99
|
-
labelSupportedFormatsTemplate: 'Supported file formats: {{types}}. Max file size: {{size}}MB.'
|
100
|
-
},
|
101
|
-
render: renderFileUpload
|
102
|
-
};
|
103
|
-
export const UploadAreaDragDrop = {
|
104
|
-
name: 'Upload Area (Drag&Drop)',
|
105
|
-
args: {
|
106
|
-
dragAndDrop: true,
|
107
|
-
maxFileSizeMB: 5,
|
108
|
-
allowedFileTypes: ['jpg', 'png', 'pdf'],
|
109
|
-
labelBrowseFiles: 'Browse files',
|
110
|
-
labelDragAndDrop: 'Drag & Drop or browse files to upload',
|
111
|
-
labelFileTooLarge: 'Upload failed. Max file size: {{size}}MB.',
|
112
|
-
labelUnsupportedFileType: 'Unsupported file type.',
|
113
|
-
labelUploaded: 'Successfully uploaded',
|
114
|
-
labelSupportedFormatsTemplate: 'Supported file formats: {{types}}. Max file size: {{size}}MB.'
|
115
|
-
},
|
116
|
-
render: renderFileUpload
|
117
|
-
};
|
118
|
-
export const UploadStatesDemo = {
|
119
|
-
name: 'Upload States Demo',
|
120
|
-
parameters: {
|
121
|
-
controls: { disable: true },
|
122
|
-
actions: { disable: true },
|
123
|
-
docs: {
|
124
|
-
description: {
|
125
|
-
story: 'Visual preview of all file states (success, upload in progress, rejected).'
|
126
|
-
}
|
127
|
-
},
|
128
|
-
previewTabs: {
|
129
|
-
'canvas': { hidden: false },
|
130
|
-
'storybook/docs/panel': { hidden: false },
|
131
|
-
'storybook/actions/panel': { hidden: true },
|
132
|
-
'storybook/interactions/panel': { hidden: true }
|
133
|
-
}
|
134
|
-
},
|
135
|
-
render: () => {
|
136
|
-
const el = document.createElement('ifx-file-upload');
|
137
|
-
setTimeout(() => {
|
138
|
-
var _a, _b;
|
139
|
-
(_b = (_a = el).injectDemoState) === null || _b === void 0 ? void 0 : _b.call(_a);
|
140
|
-
}, 0);
|
141
|
-
return el;
|
142
|
-
}
|
143
|
-
};
|
144
|
-
//# sourceMappingURL=file-upload.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"file-upload.stories.js","sourceRoot":"","sources":["../../../src/components/file-upload/file-upload.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAGlD,MAAM,IAAI,GAAS;IACjB,KAAK,EAAE,wBAAwB;IAC/B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC5B,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,SAAS,EAAE,mFAAmF;aAC/F;SACF;KACF;IACD,QAAQ,EAAE;QACR,WAAW,EAAE;YACX,OAAO,EAAE,SAAS;YAClB,WAAW,EAA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AAiB,EAAE,2CAA2C;QAC9D,wBAAwB,EAAE,wBAAwB;QAClD,aAAa,EAAE,uBAAuB;QACtC,6BAA6B,EAAE,+DAA+D;KAC/F;IACD,MAAM,EAAE,gBAAgB;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAU;IACrC,IAAI,EAAE,oBAAoB;IAC1B,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;QAC3B,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;QAC1B,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,KAAK,EAAE,4EAA4E;aACpF;SACF;QACD,WAAW,EAAE;YACX,QAAQ,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;YAC3B,sBAAsB,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;YACzC,yBAAyB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;YAC3C,8BAA8B,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;SACjD;KACF;IACD,MAAM,EAAE,GAAG,EAAE;QACX,MAAM,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;QACrD,UAAU,CAAC,GAAG,EAAE;;YACd,MAAA,MAAC,EAAU,EAAC,eAAe,kDAAI,CAAC;QAClC,CAAC,EAAE,CAAC,CAAC,CAAC;QACN,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\nimport type { Meta, StoryObj } from '@storybook/html';\n\nconst meta: Meta = {\n title: 'Components/File Upload',\n tags: ['autodocs'],\n parameters: {\n controls: { expanded: true },\n docs: {\n description: {\n component: 'Upload component with different interaction styles: button or drag-and-drop area.'\n }\n }\n },\n argTypes: {\n dragAndDrop: {\n control: 'boolean',\n description: 'Enables drag-and-drop area. If false, a button-based upload is shown instead.'\n },\n maxFileSizeMB: {\n control: 'number',\n description: 'Maximum file size allowed per file (in MB). Files larger than this will be rejected.'\n },\n allowedFileTypes: {\n control: { type: 'check' },\n options: ['jpg', 'png', 'pdf', 'mov', 'mp3', 'mp4'],\n description: 'Select one or more allowed file extensions. Internally mapped to MIME types.'\n },\n labelBrowseFiles: {\n control: 'text',\n description: 'Text for the file selection button (e.g., “Browse files”).'\n },\n labelDragAndDrop: {\n control: 'text',\n description: 'Text shown inside the drag-and-drop area.'\n },\n labelFileTooLarge: {\n control: 'text',\n description: 'Shown when a file exceeds the allowed size. Use {{size}} for substitution.'\n },\n labelUnsupportedFileType: {\n control: 'text',\n description: 'Shown when an unsupported file type is uploaded.'\n },\n labelUploaded: {\n control: 'text',\n description: 'Label shown after successful upload.'\n },\n labelSupportedFormatsTemplate: {\n control: 'text',\n description: 'Template showing supported file formats. Use {{types}} and {{size}}.'\n }\n }\n};\n\nexport default meta;\n\ntype Story = StoryObj;\n\nconst renderFileUpload = (args: any) => {\n const el = document.createElement('ifx-file-upload');\n\n if (args.dragAndDrop) el.setAttribute('drag-and-drop', '');\n el.setAttribute('max-file-size-m-b', args.maxFileSizeMB);\n\n const rawTypes = Array.isArray(args.allowedFileTypes)\n ? args.allowedFileTypes\n : args.allowedFileTypes.split(',');\n\n // Map 'jpg' ➜ ['jpg', 'jpeg']\n const mappedTypes = rawTypes.flatMap(type => {\n if (type === 'jpg') return ['jpg', 'jpeg'];\n return [type];\n });\n\n const uniqueTypes = Array.from(new Set(mappedTypes));\n el.setAttribute('allowed-file-types', uniqueTypes.join(','));\n\n el.setAttribute('label-browse-files', args.labelBrowseFiles);\n el.setAttribute('label-drag-and-drop', args.labelDragAndDrop);\n el.setAttribute('label-file-too-large', args.labelFileTooLarge);\n el.setAttribute('label-unsupported-file-type', args.labelUnsupportedFileType);\n el.setAttribute('label-uploaded', args.labelUploaded);\n el.setAttribute('label-supported-formats-template', args.labelSupportedFormatsTemplate);\n\n el.addEventListener('ifxFileUploadAdd', action('ifxFileUploadAdd'));\n el.addEventListener('ifxFileUploadRemove', action('ifxFileUploadRemove'));\n el.addEventListener('ifxFileUploadChange', action('ifxFileUploadChange'));\n el.addEventListener('ifxFileUploadError', action('ifxFileUploadError'));\n el.addEventListener('ifxFileUploadInvalid', action('ifxFileUploadInvalid'));\n el.addEventListener('ifxFileUploadStart', action('ifxFileUploadStart'));\n el.addEventListener('ifxFileUploadComplete', action('ifxFileUploadComplete'));\n el.addEventListener('ifxFileUploadAbort', action('ifxFileUploadAbort'));\n el.addEventListener('ifxFileUploadDrop', action('ifxFileUploadDrop'));\n el.addEventListener('ifxFileUploadClick', action('ifxFileUploadClick'));\n\n return el;\n};\n\nexport const UploadFileButton: Story = {\n name: 'Upload File (Button)',\n args: {\n dragAndDrop: false,\n maxFileSizeMB: 7,\n allowedFileTypes: ['jpg', 'png', 'pdf'],\n labelBrowseFiles: 'Browse files',\n labelDragAndDrop: 'Drag & Drop or browse files to upload',\n labelFileTooLarge: 'Upload failed. Max file size: {{size}}MB.',\n labelUnsupportedFileType: 'Unsupported file type.',\n labelUploaded: 'Successfully uploaded',\n labelSupportedFormatsTemplate: 'Supported file formats: {{types}}. Max file size: {{size}}MB.'\n },\n render: renderFileUpload\n};\n\nexport const UploadAreaDragDrop: Story = {\n name: 'Upload Area (Drag&Drop)',\n args: {\n dragAndDrop: true,\n maxFileSizeMB: 5,\n allowedFileTypes: ['jpg', 'png', 'pdf'],\n labelBrowseFiles: 'Browse files',\n labelDragAndDrop: 'Drag & Drop or browse files to upload',\n labelFileTooLarge: 'Upload failed. Max file size: {{size}}MB.',\n labelUnsupportedFileType: 'Unsupported file type.',\n labelUploaded: 'Successfully uploaded',\n labelSupportedFormatsTemplate: 'Supported file formats: {{types}}. Max file size: {{size}}MB.'\n },\n render: renderFileUpload\n};\n\nexport const UploadStatesDemo: Story = {\n name: 'Upload States Demo',\n parameters: {\n controls: { disable: true },\n actions: { disable: true },\n docs: {\n description: {\n story: 'Visual preview of all file states (success, upload in progress, rejected).'\n }\n },\n previewTabs: {\n 'canvas': { hidden: false },\n 'storybook/docs/panel': { hidden: false },\n 'storybook/actions/panel': { hidden: true },\n 'storybook/interactions/panel': { hidden: true }\n }\n },\n render: () => {\n const el = document.createElement('ifx-file-upload');\n setTimeout(() => {\n (el as any).injectDemoState?.();\n }, 0);\n return el;\n }\n};\n"]}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
2
|
-
|
3
|
-
interface IfxFileUpload extends Components.IfxFileUpload, HTMLElement {}
|
4
|
-
export const IfxFileUpload: {
|
5
|
-
prototype: IfxFileUpload;
|
6
|
-
new (): IfxFileUpload;
|
7
|
-
};
|
8
|
-
/**
|
9
|
-
* Used to define this component and all nested components recursively.
|
10
|
-
*/
|
11
|
-
export const defineCustomElement: () => void;
|
@@ -1,377 +0,0 @@
|
|
1
|
-
import { p as proxyCustomElement, H, c as createEvent, h } from './p-2cc378b8.js';
|
2
|
-
import { d as defineCustomElement$5 } from './p-c2b0bf22.js';
|
3
|
-
import { d as defineCustomElement$4 } from './p-35d83f23.js';
|
4
|
-
import { d as defineCustomElement$3 } from './p-fc183f8e.js';
|
5
|
-
import { d as defineCustomElement$2 } from './p-cf1e2d94.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$1 = /*@__PURE__*/ proxyCustomElement(class IfxFileUpload extends H {
|
11
|
-
constructor() {
|
12
|
-
super();
|
13
|
-
this.__registerHost();
|
14
|
-
this.__attachShadow();
|
15
|
-
this.ifxFileUploadAdd = createEvent(this, "ifxFileUploadAdd", 7);
|
16
|
-
this.ifxFileUploadRemove = createEvent(this, "ifxFileUploadRemove", 7);
|
17
|
-
this.ifxFileUploadChange = createEvent(this, "ifxFileUploadChange", 7);
|
18
|
-
this.ifxFileUploadError = createEvent(this, "ifxFileUploadError", 7);
|
19
|
-
this.ifxFileUploadInvalid = createEvent(this, "ifxFileUploadInvalid", 7);
|
20
|
-
this.ifxFileUploadStart = createEvent(this, "ifxFileUploadStart", 7);
|
21
|
-
this.ifxFileUploadComplete = createEvent(this, "ifxFileUploadComplete", 7);
|
22
|
-
this.ifxFileUploadAbort = createEvent(this, "ifxFileUploadAbort", 7);
|
23
|
-
this.ifxFileUploadDrop = createEvent(this, "ifxFileUploadDrop", 7);
|
24
|
-
this.ifxFileUploadClick = createEvent(this, "ifxFileUploadClick", 7);
|
25
|
-
this.dragAndDrop = false;
|
26
|
-
this.maxFileSizeMB = 7;
|
27
|
-
this.allowedFileTypes = ['jpg', 'jpeg', 'png', 'pdf', 'mov', 'mp3', 'mp4'];
|
28
|
-
this.labelBrowseFiles = 'Browse files';
|
29
|
-
this.labelDragAndDrop = 'Drag & Drop or browse files to upload';
|
30
|
-
this.labelFileTooLarge = 'Upload failed. Max file size: {{size}}MB.';
|
31
|
-
this.labelUnsupportedFileType = 'Unsupported file type.';
|
32
|
-
this.labelUploaded = 'Successfully uploaded';
|
33
|
-
this.labelSupportedFormatsTemplate = 'Supported file formats: {{types}}. Max file size: {{size}}MB.';
|
34
|
-
this.isDragOver = false;
|
35
|
-
this.files = [];
|
36
|
-
this.uploadTasks = [];
|
37
|
-
this.rejectedSizeFiles = [];
|
38
|
-
this.rejectedTypeFiles = [];
|
39
|
-
this.fileInputEl = null;
|
40
|
-
this.extensionToMimeMap = {
|
41
|
-
jpg: 'image/jpeg',
|
42
|
-
jpeg: 'image/jpeg',
|
43
|
-
png: 'image/png',
|
44
|
-
pdf: 'application/pdf',
|
45
|
-
mov: 'video/quicktime',
|
46
|
-
mp3: 'audio/mpeg',
|
47
|
-
mp4: 'video/mp4'
|
48
|
-
};
|
49
|
-
}
|
50
|
-
getNormalizedFileTypes() {
|
51
|
-
if (Array.isArray(this.allowedFileTypes)) {
|
52
|
-
return this.allowedFileTypes;
|
53
|
-
}
|
54
|
-
try {
|
55
|
-
return JSON.parse(this.allowedFileTypes);
|
56
|
-
}
|
57
|
-
catch (_a) {
|
58
|
-
return this.allowedFileTypes.split(',').map(t => t.trim());
|
59
|
-
}
|
60
|
-
}
|
61
|
-
handleFileChange(event) {
|
62
|
-
const input = event.target;
|
63
|
-
if (!input.files)
|
64
|
-
return;
|
65
|
-
this.processFiles(input.files);
|
66
|
-
}
|
67
|
-
handleDrop(event) {
|
68
|
-
var _a;
|
69
|
-
event.preventDefault();
|
70
|
-
event.stopPropagation();
|
71
|
-
this.isDragOver = false;
|
72
|
-
if ((_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.files) {
|
73
|
-
const droppedFiles = Array.from(event.dataTransfer.files);
|
74
|
-
const allowedMimes = this.getNormalizedFileTypes()
|
75
|
-
.map(ext => this.extensionToMimeMap[ext.toLowerCase()])
|
76
|
-
.filter(Boolean);
|
77
|
-
const acceptedFiles = [];
|
78
|
-
const rejectedFiles = [];
|
79
|
-
droppedFiles.forEach(file => {
|
80
|
-
const isValidType = allowedMimes.includes(file.type);
|
81
|
-
const isValidSize = file.size <= this.maxFileSizeMB * 1024 * 1024;
|
82
|
-
if (isValidType && isValidSize)
|
83
|
-
acceptedFiles.push(file);
|
84
|
-
else
|
85
|
-
rejectedFiles.push(file);
|
86
|
-
});
|
87
|
-
this.ifxFileUploadDrop.emit({
|
88
|
-
droppedFiles,
|
89
|
-
acceptedFiles,
|
90
|
-
rejectedFiles
|
91
|
-
});
|
92
|
-
this.processFiles(event.dataTransfer.files);
|
93
|
-
}
|
94
|
-
}
|
95
|
-
handleDragOver(event) {
|
96
|
-
event.preventDefault();
|
97
|
-
this.isDragOver = true;
|
98
|
-
}
|
99
|
-
handleDragLeave(event) {
|
100
|
-
event.preventDefault();
|
101
|
-
this.isDragOver = false;
|
102
|
-
}
|
103
|
-
processFiles(fileList) {
|
104
|
-
const selectedFiles = Array.from(fileList);
|
105
|
-
const allowedMimes = this.getNormalizedFileTypes()
|
106
|
-
.map(ext => this.extensionToMimeMap[ext.toLowerCase()])
|
107
|
-
.filter(Boolean);
|
108
|
-
const validFiles = [];
|
109
|
-
const rejectedSize = [];
|
110
|
-
const rejectedType = [];
|
111
|
-
selectedFiles.forEach(file => {
|
112
|
-
const isValidType = allowedMimes.includes(file.type);
|
113
|
-
const isValidSize = file.size <= this.maxFileSizeMB * 1024 * 1024;
|
114
|
-
if (isValidType && isValidSize) {
|
115
|
-
validFiles.push(file);
|
116
|
-
}
|
117
|
-
else {
|
118
|
-
if (!isValidType) {
|
119
|
-
rejectedType.push(file.name);
|
120
|
-
this.ifxFileUploadInvalid.emit({ file, reason: 'invalid-type' });
|
121
|
-
}
|
122
|
-
if (!isValidSize) {
|
123
|
-
rejectedSize.push(file.name);
|
124
|
-
this.ifxFileUploadInvalid.emit({ file, reason: 'invalid-size' });
|
125
|
-
}
|
126
|
-
this.ifxFileUploadError.emit({ file, errorType: !isValidType ? 'invalid-type' : 'file-too-large', message: 'Invalid file rejected' });
|
127
|
-
}
|
128
|
-
});
|
129
|
-
this.rejectedSizeFiles = [...this.rejectedSizeFiles, ...rejectedSize];
|
130
|
-
this.rejectedTypeFiles = [...this.rejectedTypeFiles, ...rejectedType];
|
131
|
-
validFiles.forEach(file => this.startUpload(file));
|
132
|
-
this.files = [...this.files, ...validFiles];
|
133
|
-
if (validFiles.length > 0) {
|
134
|
-
this.ifxFileUploadAdd.emit({ addedFiles: validFiles, files: this.files });
|
135
|
-
this.ifxFileUploadChange.emit({ files: this.files });
|
136
|
-
}
|
137
|
-
}
|
138
|
-
startUpload(file) {
|
139
|
-
this.ifxFileUploadStart.emit({ file });
|
140
|
-
const task = {
|
141
|
-
file,
|
142
|
-
progress: 0,
|
143
|
-
intervalId: null,
|
144
|
-
completed: false
|
145
|
-
};
|
146
|
-
if (this.uploadHandler) {
|
147
|
-
// Real Upload
|
148
|
-
// <ifx-file-upload
|
149
|
-
// uploadHandler={(file) => {
|
150
|
-
// const formData = new FormData();
|
151
|
-
// formData.append('file', file);
|
152
|
-
// return fetch('/api/upload', {
|
153
|
-
// method: 'POST',
|
154
|
-
// body: formData
|
155
|
-
// }).then(res => {
|
156
|
-
// if (!res.ok) throw new Error('Upload failed');
|
157
|
-
// });
|
158
|
-
// }}
|
159
|
-
// ></ifx-file-upload>
|
160
|
-
this.uploadHandler(file).then(() => {
|
161
|
-
task.progress = 100;
|
162
|
-
task.completed = true;
|
163
|
-
this.uploadTasks = [...this.uploadTasks];
|
164
|
-
this.ifxFileUploadComplete.emit({ file });
|
165
|
-
this.ifxFileUploadChange.emit({ files: this.files });
|
166
|
-
}).catch(() => {
|
167
|
-
console.error('Upload failed');
|
168
|
-
this.ifxFileUploadError.emit({ file, errorType: 'upload-failed', message: 'Upload handler rejected file' });
|
169
|
-
});
|
170
|
-
}
|
171
|
-
else {
|
172
|
-
const totalSize = file.size;
|
173
|
-
const fakeUploadSpeed = 500000;
|
174
|
-
let uploaded = 0;
|
175
|
-
task.intervalId = window.setInterval(() => {
|
176
|
-
uploaded += fakeUploadSpeed / 5;
|
177
|
-
const progress = Math.min(100, Math.round((uploaded / totalSize) * 100));
|
178
|
-
task.progress = progress;
|
179
|
-
this.uploadTasks = [...this.uploadTasks];
|
180
|
-
if (progress >= 100) {
|
181
|
-
clearInterval(task.intervalId);
|
182
|
-
task.completed = true;
|
183
|
-
task.intervalId = null;
|
184
|
-
this.uploadTasks = [...this.uploadTasks];
|
185
|
-
this.ifxFileUploadComplete.emit({ file });
|
186
|
-
this.ifxFileUploadChange.emit({ files: this.files });
|
187
|
-
}
|
188
|
-
}, 200);
|
189
|
-
}
|
190
|
-
this.uploadTasks = [...this.uploadTasks, task];
|
191
|
-
}
|
192
|
-
cancelUpload(file) {
|
193
|
-
const taskIndex = this.uploadTasks.findIndex(t => t.file.name === file.name);
|
194
|
-
if (taskIndex !== -1) {
|
195
|
-
const task = this.uploadTasks[taskIndex];
|
196
|
-
if ((task === null || task === void 0 ? void 0 : task.intervalId) !== null) {
|
197
|
-
clearInterval(task.intervalId);
|
198
|
-
}
|
199
|
-
this.uploadTasks = this.uploadTasks.filter((_, i) => i !== taskIndex);
|
200
|
-
}
|
201
|
-
this.files = this.files.filter(f => f.name !== file.name);
|
202
|
-
this.ifxFileUploadAbort.emit({ file });
|
203
|
-
this.ifxFileUploadChange.emit({ files: this.files });
|
204
|
-
if (this.fileInputEl) {
|
205
|
-
this.fileInputEl.value = '';
|
206
|
-
}
|
207
|
-
}
|
208
|
-
removeFile(file) {
|
209
|
-
this.uploadTasks = this.uploadTasks.filter(task => task.file.name !== file.name);
|
210
|
-
this.files = this.files.filter(f => f.name !== file.name);
|
211
|
-
this.ifxFileUploadRemove.emit({ removedFile: file, files: this.files });
|
212
|
-
this.ifxFileUploadChange.emit({ files: this.files });
|
213
|
-
if (this.fileInputEl) {
|
214
|
-
this.fileInputEl.value = '';
|
215
|
-
}
|
216
|
-
}
|
217
|
-
clearRejectedFile(fileName, type) {
|
218
|
-
if (type === 'size') {
|
219
|
-
this.rejectedSizeFiles = this.rejectedSizeFiles.filter(f => f !== fileName);
|
220
|
-
}
|
221
|
-
else {
|
222
|
-
this.rejectedTypeFiles = this.rejectedTypeFiles.filter(f => f !== fileName);
|
223
|
-
}
|
224
|
-
if (this.fileInputEl) {
|
225
|
-
this.fileInputEl.value = '';
|
226
|
-
}
|
227
|
-
}
|
228
|
-
splitFileNameParts(file) {
|
229
|
-
const name = file.name;
|
230
|
-
const dotIndex = name.lastIndexOf('.');
|
231
|
-
if (dotIndex === -1)
|
232
|
-
return { base: name, ext: '' };
|
233
|
-
return {
|
234
|
-
base: name.substring(0, dotIndex),
|
235
|
-
ext: name.substring(dotIndex)
|
236
|
-
};
|
237
|
-
}
|
238
|
-
getFileIcon(file) {
|
239
|
-
var _a;
|
240
|
-
const extension = (_a = file.name.split('.').pop()) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
241
|
-
switch (extension) {
|
242
|
-
case 'pdf': return 'file-pdf-16';
|
243
|
-
case 'jpg':
|
244
|
-
case 'jpeg': return 'file-jpg-16';
|
245
|
-
case 'png': return 'file-png-16';
|
246
|
-
case 'mov': return 'file-mov-16';
|
247
|
-
case 'mp3': return 'file-mp3-16';
|
248
|
-
case 'mp4': return 'file-mp4-16';
|
249
|
-
default: return 'file';
|
250
|
-
}
|
251
|
-
}
|
252
|
-
getFormattedSize(file) {
|
253
|
-
const sizeInKB = file.size / 1024;
|
254
|
-
return sizeInKB > 1024
|
255
|
-
? `${(sizeInKB / 1024).toFixed(1)} MB`
|
256
|
-
: `${sizeInKB.toFixed(0)} KB`;
|
257
|
-
}
|
258
|
-
getAcceptAttribute() {
|
259
|
-
return this.getNormalizedFileTypes().map(ext => '.' + ext.toLowerCase()).join(',');
|
260
|
-
}
|
261
|
-
getSupportedFileText() {
|
262
|
-
return this.labelSupportedFormatsTemplate
|
263
|
-
.replace('{{types}}', this.getNormalizedFileTypes().map(ext => ext.toUpperCase()).join(', '))
|
264
|
-
.replace('{{size}}', this.maxFileSizeMB.toString());
|
265
|
-
}
|
266
|
-
getFormattedFileTooLargeText() {
|
267
|
-
return this.labelFileTooLarge.replace('{{size}}', this.maxFileSizeMB.toString());
|
268
|
-
}
|
269
|
-
componentDidLoad() {
|
270
|
-
if (this.hostElement.hasAttribute('show-demo-states')) {
|
271
|
-
this.showDemoStates = true;
|
272
|
-
}
|
273
|
-
if (this.showDemoStates) {
|
274
|
-
this.injectDemoState();
|
275
|
-
}
|
276
|
-
}
|
277
|
-
async injectDemoState() {
|
278
|
-
const uploading = new File(['demo'], 'Image.jpg', { type: 'image/jpeg' });
|
279
|
-
const uploaded = new File(['demo'], 'File.pdf', { type: 'application/pdf' });
|
280
|
-
const tooLarge = new File(['demo'], 'Video.mp4', { type: 'video/mp4' });
|
281
|
-
const unsupported = new File(['demo'], 'Script.exe', { type: 'application/x-msdownload' });
|
282
|
-
this.files = [uploaded, uploading];
|
283
|
-
this.uploadTasks = [
|
284
|
-
{ file: uploaded, progress: 100, intervalId: null, completed: true },
|
285
|
-
{ file: uploading, progress: 35, intervalId: null, completed: false }
|
286
|
-
];
|
287
|
-
this.rejectedSizeFiles = [tooLarge.name];
|
288
|
-
this.rejectedTypeFiles = [unsupported.name];
|
289
|
-
}
|
290
|
-
render() {
|
291
|
-
return (h("div", { key: '9ebbf4de0d20c25b5c0167dd48b6ab4d538ca736', class: "file-upload-wrapper" }, this.dragAndDrop ? this.renderDragAndDropArea() : this.renderUploadArea(), h("ul", { key: 'ad545c35ebfaf6016b4cebe0d11d0f4798816718', class: "file-list" }, this.rejectedSizeFiles.map(fileName => (h("li", { class: "file-item upload-failed" }, h("div", { class: "file-icon" }, h("ifx-icon", { icon: "file-16" })), h("div", { class: "file-info" }, h("div", { class: "file-top-row" }, h("span", { class: "file-name-wrapper" }, h("span", { class: "file-name-base" }, this.splitFileNameParts({ name: fileName }).base), h("span", { class: "file-name-ext" }, this.splitFileNameParts({ name: fileName }).ext)), h("div", { class: "file-actions" }, h("ifx-icon-button", { shape: "square", variant: "tertiary", icon: "delete-forever-16", size: "s", "aria-label": "Remove file", onClick: () => this.clearRejectedFile(fileName, 'size') }))), h("div", { class: "file-middle-row" }, h("span", { class: "file-status" }, this.getFormattedFileTooLargeText())))))), this.rejectedTypeFiles.map(fileName => (h("li", { class: "file-item upload-failed" }, h("div", { class: "file-icon" }, h("ifx-icon", { icon: "file-16" })), h("div", { class: "file-info" }, h("div", { class: "file-top-row" }, h("span", { class: "file-name-wrapper" }, h("span", { class: "file-name-base" }, this.splitFileNameParts({ name: fileName }).base), h("span", { class: "file-name-ext" }, this.splitFileNameParts({ name: fileName }).ext)), h("div", { class: "file-actions" }, h("ifx-icon-button", { shape: "square", variant: "tertiary", icon: "delete-forever-16", size: "s", "aria-label": "Remove file", onClick: () => this.clearRejectedFile(fileName, 'type') }))), h("div", { class: "file-middle-row" }, h("span", { class: "file-status" }, this.labelUnsupportedFileType)))))), this.files.map((file) => {
|
292
|
-
var _a;
|
293
|
-
const task = this.uploadTasks.find(t => t.file.name === file.name);
|
294
|
-
const progress = (_a = task === null || task === void 0 ? void 0 : task.progress) !== null && _a !== void 0 ? _a : 100;
|
295
|
-
const isUploading = task && !task.completed;
|
296
|
-
const itemClass = isUploading ? 'file-item uploading' : 'file-item upload-success';
|
297
|
-
const { base, ext } = this.splitFileNameParts(file);
|
298
|
-
return (h("li", { class: itemClass }, h("div", { class: "file-icon" }, h("ifx-icon", { icon: this.getFileIcon(file) })), h("div", { class: "file-info" }, h("div", { class: "file-top-row" }, h("span", { class: "file-name-wrapper" }, h("span", { class: "file-name-base" }, base), h("span", { class: "file-name-ext" }, ext)), h("div", { class: "file-actions" }, 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' } }), 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' } }))), h("div", { class: "file-middle-row" }, h("span", { class: "file-size" }, this.getFormattedSize(file)), isUploading && (h("span", { class: "file-uploading" }, "\u00A0\u2013\u00A0Uploading \u2026")), h("span", { class: "file-status" }, !isUploading && (h("span", null, h("ifx-icon", { icon: "check-12" }), "\u00A0", this.labelUploaded)))), isUploading && (h("div", { class: "file-progress-row" }, h("ifx-progress-bar", { size: "s", value: progress, "show-label": "true" }))))));
|
299
|
-
}))));
|
300
|
-
}
|
301
|
-
renderUploadArea() {
|
302
|
-
const handleInputRef = (el) => {
|
303
|
-
this.fileInputEl = el;
|
304
|
-
};
|
305
|
-
return (h("div", { class: { 'upload-button': true } }, h("label", null, h("ifx-button", { variant: "secondary" }, h("ifx-icon", { icon: "upload-16" }), this.labelBrowseFiles), h("input", { ref: handleInputRef, type: "file", accept: this.getAcceptAttribute(), multiple: true, onChange: (e) => this.handleFileChange(e), style: { display: 'none' } })), h("p", { class: "file-upload-info" }, this.getSupportedFileText())));
|
306
|
-
}
|
307
|
-
renderDragAndDropArea() {
|
308
|
-
const handleInputRef = (el) => {
|
309
|
-
this.fileInputEl = el;
|
310
|
-
};
|
311
|
-
const triggerInputClick = () => {
|
312
|
-
if (this.fileInputEl) {
|
313
|
-
this.fileInputEl.click();
|
314
|
-
}
|
315
|
-
};
|
316
|
-
return (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) }, h("ifx-icon", { icon: "upload-24", class: "custom-icon" }), h("p", null, this.labelDragAndDrop), h("p", { class: "file-upload-info" }, this.getSupportedFileText()), h("div", { style: { height: '0px', overflow: 'hidden' } }, h("input", { ref: handleInputRef, type: "file", accept: this.getAcceptAttribute(), multiple: true, onChange: (e) => this.handleFileChange(e) }))));
|
317
|
-
}
|
318
|
-
get hostElement() { return this; }
|
319
|
-
static get style() { return IfxFileUploadStyle0; }
|
320
|
-
}, [1, "ifx-file-upload", {
|
321
|
-
"dragAndDrop": [4, "drag-and-drop"],
|
322
|
-
"maxFileSizeMB": [2, "max-file-size-m-b"],
|
323
|
-
"allowedFileTypes": [1, "allowed-file-types"],
|
324
|
-
"uploadHandler": [16],
|
325
|
-
"labelBrowseFiles": [1, "label-browse-files"],
|
326
|
-
"labelDragAndDrop": [1, "label-drag-and-drop"],
|
327
|
-
"labelFileTooLarge": [1, "label-file-too-large"],
|
328
|
-
"labelUnsupportedFileType": [1, "label-unsupported-file-type"],
|
329
|
-
"labelUploaded": [1, "label-uploaded"],
|
330
|
-
"labelSupportedFormatsTemplate": [1, "label-supported-formats-template"],
|
331
|
-
"isDragOver": [32],
|
332
|
-
"files": [32],
|
333
|
-
"uploadTasks": [32],
|
334
|
-
"rejectedSizeFiles": [32],
|
335
|
-
"rejectedTypeFiles": [32],
|
336
|
-
"injectDemoState": [64]
|
337
|
-
}]);
|
338
|
-
function defineCustomElement$1() {
|
339
|
-
if (typeof customElements === "undefined") {
|
340
|
-
return;
|
341
|
-
}
|
342
|
-
const components = ["ifx-file-upload", "ifx-button", "ifx-icon", "ifx-icon-button", "ifx-progress-bar"];
|
343
|
-
components.forEach(tagName => { switch (tagName) {
|
344
|
-
case "ifx-file-upload":
|
345
|
-
if (!customElements.get(tagName)) {
|
346
|
-
customElements.define(tagName, IfxFileUpload$1);
|
347
|
-
}
|
348
|
-
break;
|
349
|
-
case "ifx-button":
|
350
|
-
if (!customElements.get(tagName)) {
|
351
|
-
defineCustomElement$5();
|
352
|
-
}
|
353
|
-
break;
|
354
|
-
case "ifx-icon":
|
355
|
-
if (!customElements.get(tagName)) {
|
356
|
-
defineCustomElement$4();
|
357
|
-
}
|
358
|
-
break;
|
359
|
-
case "ifx-icon-button":
|
360
|
-
if (!customElements.get(tagName)) {
|
361
|
-
defineCustomElement$3();
|
362
|
-
}
|
363
|
-
break;
|
364
|
-
case "ifx-progress-bar":
|
365
|
-
if (!customElements.get(tagName)) {
|
366
|
-
defineCustomElement$2();
|
367
|
-
}
|
368
|
-
break;
|
369
|
-
} });
|
370
|
-
}
|
371
|
-
|
372
|
-
const IfxFileUpload = IfxFileUpload$1;
|
373
|
-
const defineCustomElement = defineCustomElement$1;
|
374
|
-
|
375
|
-
export { IfxFileUpload, defineCustomElement };
|
376
|
-
|
377
|
-
//# sourceMappingURL=ifx-file-upload.js.map
|