@infineon/infineon-design-system-stencil 33.1.1--canary.1804.4db5a203a5155eeaa530f6fcf69f064532731762.0 → 33.1.1--canary.1824.75b5030250f4474f2c947b6e8dc7055bdc915c43.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-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/ifx-basic-table.cjs.entry.js +1 -1
- package/dist/cjs/ifx-chip_3.cjs.entry.js +1 -1
- package/dist/cjs/ifx-faq.cjs.entry.js +1 -1
- package/dist/cjs/ifx-file-upload.cjs.entry.js +322 -0
- package/dist/cjs/ifx-file-upload.cjs.entry.js.map +1 -0
- 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 +1 -1
- package/dist/cjs/ifx-filter-type-group.cjs.entry.js +1 -1
- package/dist/cjs/ifx-footer-column.cjs.entry.js +1 -1
- package/dist/cjs/ifx-footer.cjs.entry.js +4 -4
- package/dist/cjs/ifx-icon-button.cjs.entry.js +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 +1 -1
- package/dist/cjs/ifx-list-entry.cjs.entry.js +1 -1
- package/dist/cjs/ifx-modal.cjs.entry.js +2 -2
- package/dist/cjs/ifx-navbar-item.cjs.entry.js +5 -5
- package/dist/cjs/ifx-navbar-profile.cjs.entry.js +3 -3
- package/dist/cjs/ifx-navbar.cjs.entry.js +3 -3
- package/dist/cjs/ifx-notification.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/ifx-radio-button-group.cjs.entry.js +1 -1
- package/dist/cjs/ifx-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/ifx-search-bar.cjs.entry.js +1 -1
- package/dist/cjs/ifx-search-field.cjs.entry.js +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 +2 -2
- package/dist/cjs/ifx-sidebar-item.cjs.entry.js +5 -5
- package/dist/cjs/ifx-sidebar-title.cjs.entry.js +1 -1
- package/dist/cjs/ifx-sidebar.cjs.entry.js +5 -5
- package/dist/cjs/ifx-slider.cjs.entry.js +2 -2
- package/dist/cjs/ifx-spinner_2.cjs.entry.js +6 -6
- package/dist/cjs/ifx-status.cjs.entry.js +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 +2 -2
- package/dist/cjs/ifx-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ifx-tag.cjs.entry.js +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 +4 -4
- package/dist/cjs/index-c9480f70.js +12 -8
- 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 +1 -0
- package/dist/collection/components/file-upload/file-upload.css +144 -0
- package/dist/collection/components/file-upload/file-upload.js +749 -0
- package/dist/collection/components/file-upload/file-upload.js.map +1 -0
- package/dist/collection/components/file-upload/file-upload.stories.js +144 -0
- package/dist/collection/components/file-upload/file-upload.stories.js.map +1 -0
- package/dist/collection/components/footer/footer-column.js +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.js +1 -1
- package/dist/collection/components/icons-preview/icons-preview.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/modal/modal.js +2 -2
- 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.js +3 -3
- 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.js +5 -5
- 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.js +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +2 -2
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/search-bar/search-bar.js +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/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.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.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.js +2 -2
- 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.js +2 -2
- 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.js +4 -4
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +4 -4
- 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-alert.js +1 -1
- package/dist/components/ifx-basic-table.js +1 -1
- package/dist/components/ifx-breadcrumb-item-label.js +1 -1
- package/dist/components/ifx-checkbox-group.js +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-item.js +1 -1
- package/dist/components/ifx-dropdown-trigger-button.js +1 -1
- package/dist/components/ifx-faq.js +3 -3
- package/dist/components/ifx-file-upload.d.ts +11 -0
- package/dist/components/ifx-file-upload.js +377 -0
- package/dist/components/ifx-file-upload.js.map +1 -0
- package/dist/components/ifx-filter-accordion.js +4 -4
- package/dist/components/ifx-filter-bar.js +2 -2
- package/dist/components/ifx-filter-search.js +3 -3
- package/dist/components/ifx-filter-type-group.js +1 -1
- package/dist/components/ifx-footer-column.js +1 -1
- package/dist/components/ifx-footer.js +4 -4
- 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 +4 -4
- package/dist/components/ifx-multiselect.js +1 -1
- package/dist/components/ifx-navbar-item.js +7 -7
- package/dist/components/ifx-navbar-profile.js +3 -3
- package/dist/components/ifx-navbar.js +4 -4
- 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 +1 -49
- package/dist/components/ifx-progress-bar.js.map +1 -1
- package/dist/components/ifx-radio-button-group.js +2 -2
- package/dist/components/ifx-radio-button.js +1 -1
- package/dist/components/ifx-search-bar.js +3 -3
- 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 +7 -7
- package/dist/components/ifx-sidebar-title.js +1 -1
- package/dist/components/ifx-sidebar.js +5 -5
- package/dist/components/ifx-slider.js +3 -3
- package/dist/components/ifx-spinner.js +1 -1
- package/dist/components/ifx-status.js +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 +10 -10
- package/dist/components/ifx-tabs.js +3 -3
- package/dist/components/ifx-tag.js +2 -2
- package/dist/components/ifx-template.js +1 -1
- package/dist/components/ifx-templates-ui.js +8 -8
- package/dist/components/ifx-text-field.js +1 -1
- package/dist/components/ifx-textarea.js +1 -1
- package/dist/components/ifx-tooltip.js +5 -5
- package/dist/components/{p-07bb50b8.js → p-05c79468.js} +6 -6
- package/dist/components/{p-07bb50b8.js.map → p-05c79468.js.map} +1 -1
- package/dist/components/{p-519cb249.js → p-0e277223.js} +3 -3
- package/dist/components/{p-519cb249.js.map → p-0e277223.js.map} +1 -1
- package/dist/components/{p-47b9635d.js → p-1678fee6.js} +3 -3
- package/dist/components/{p-47b9635d.js.map → p-1678fee6.js.map} +1 -1
- package/dist/components/{p-493b7a31.js → p-18b340af.js} +2 -2
- package/dist/components/{p-493b7a31.js.map → p-18b340af.js.map} +1 -1
- package/dist/components/{p-94e019a6.js → p-2bc9826e.js} +2 -2
- package/dist/components/{p-94e019a6.js.map → p-2bc9826e.js.map} +1 -1
- package/dist/components/{p-f579ea93.js → p-2c77bbe2.js} +6 -6
- package/dist/components/{p-f579ea93.js.map → p-2c77bbe2.js.map} +1 -1
- package/dist/components/{p-e7551b24.js → p-35d83f23.js} +2 -2
- package/dist/components/{p-e7551b24.js.map → p-35d83f23.js.map} +1 -1
- package/dist/components/{p-58a0ff65.js → p-461cf021.js} +3 -3
- package/dist/components/{p-58a0ff65.js.map → p-461cf021.js.map} +1 -1
- package/dist/components/{p-eadd0c22.js → p-48f52e18.js} +3 -3
- package/dist/components/{p-eadd0c22.js.map → p-48f52e18.js.map} +1 -1
- package/dist/components/{p-4ac265d2.js → p-846923e6.js} +2 -2
- package/dist/components/{p-4ac265d2.js.map → p-846923e6.js.map} +1 -1
- package/dist/components/{p-03acdbd0.js → p-9306088d.js} +2 -2
- package/dist/components/{p-03acdbd0.js.map → p-9306088d.js.map} +1 -1
- package/dist/components/{p-107fafa0.js → p-ab514a04.js} +5 -5
- package/dist/components/{p-107fafa0.js.map → p-ab514a04.js.map} +1 -1
- package/dist/components/{p-1718b5a9.js → p-bef5241a.js} +4 -4
- package/dist/components/{p-1718b5a9.js.map → p-bef5241a.js.map} +1 -1
- package/dist/components/{p-02830916.js → p-ccc83a43.js} +2 -2
- package/dist/components/{p-02830916.js.map → p-ccc83a43.js.map} +1 -1
- package/dist/components/{p-5853aeb8.js → p-cd9e4789.js} +3 -3
- package/dist/components/{p-5853aeb8.js.map → p-cd9e4789.js.map} +1 -1
- package/dist/components/p-cf1e2d94.js +53 -0
- package/dist/components/p-cf1e2d94.js.map +1 -0
- package/dist/components/{p-b024aa08.js → p-d1985f77.js} +3 -3
- package/dist/components/{p-b024aa08.js.map → p-d1985f77.js.map} +1 -1
- package/dist/components/{p-bf2666f8.js → p-fa58a72c.js} +5 -5
- package/dist/components/{p-bf2666f8.js.map → p-fa58a72c.js.map} +1 -1
- package/dist/components/{p-3954dc5f.js → p-fc183f8e.js} +3 -3
- package/dist/components/{p-3954dc5f.js.map → p-fc183f8e.js.map} +1 -1
- package/dist/esm/ifx-alert_2.entry.js +1 -1
- package/dist/esm/ifx-basic-table.entry.js +1 -1
- package/dist/esm/ifx-chip_3.entry.js +1 -1
- package/dist/esm/ifx-faq.entry.js +1 -1
- package/dist/esm/ifx-file-upload.entry.js +318 -0
- package/dist/esm/ifx-file-upload.entry.js.map +1 -0
- 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 +1 -1
- package/dist/esm/ifx-filter-type-group.entry.js +1 -1
- package/dist/esm/ifx-footer-column.entry.js +1 -1
- package/dist/esm/ifx-footer.entry.js +4 -4
- package/dist/esm/ifx-icon-button.entry.js +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 +1 -1
- package/dist/esm/ifx-list-entry.entry.js +1 -1
- package/dist/esm/ifx-modal.entry.js +2 -2
- package/dist/esm/ifx-navbar-item.entry.js +5 -5
- package/dist/esm/ifx-navbar-profile.entry.js +3 -3
- package/dist/esm/ifx-navbar.entry.js +3 -3
- package/dist/esm/ifx-notification.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/ifx-radio-button-group.entry.js +1 -1
- package/dist/esm/ifx-radio-button.entry.js +2 -2
- package/dist/esm/ifx-search-bar.entry.js +1 -1
- package/dist/esm/ifx-search-field.entry.js +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 +2 -2
- package/dist/esm/ifx-sidebar-item.entry.js +5 -5
- package/dist/esm/ifx-sidebar-title.entry.js +1 -1
- package/dist/esm/ifx-sidebar.entry.js +5 -5
- package/dist/esm/ifx-slider.entry.js +2 -2
- package/dist/esm/ifx-spinner_2.entry.js +6 -6
- package/dist/esm/ifx-status.entry.js +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 +2 -2
- package/dist/esm/ifx-tabs.entry.js +2 -2
- package/dist/esm/ifx-tag.entry.js +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 +4 -4
- package/dist/esm/index-c77e25a0.js +12 -8
- 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.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-021719f5.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-e57f8890.entry.js → p-0306ed65.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-37e75e7c.entry.js → p-051f1f75.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-711d5051.entry.js → p-08ded326.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-67c63b48.entry.js → p-0be5bec9.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-95b48437.entry.js → p-13e47c02.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-68b06d9b.entry.js → p-1c80700d.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-1dbd5a8f.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-8b21a331.entry.js → p-2170ccf1.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-1de4f93c.entry.js → p-31f3dba0.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-9feda3ff.entry.js → p-38a17a09.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-7abdbf1f.entry.js → p-38fd172b.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-a06f2543.entry.js → p-3d4c474f.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-a0d570a0.entry.js → p-3f5e136b.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-42234c99.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-33b93a7c.entry.js → p-42964c5d.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-ecc58519.entry.js → p-44ffa393.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-5ba50092.entry.js → p-474b0bda.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-14b4d7f0.entry.js → p-51c067b1.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-e447fb1f.entry.js → p-534ef91b.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-3c039adc.entry.js → p-54d98fa9.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-582970ed.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-1abbcdbc.entry.js → p-5bc7c9cc.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-5bef967e.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-5bef967e.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-d08d3dd7.entry.js → p-5e300ee5.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-5536a9c8.entry.js → p-63679e7a.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-f99f62ec.entry.js → p-68f13949.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-1fca1eb2.entry.js → p-7103bb15.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-86ba198c.entry.js → p-81391688.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-dc49f3c8.entry.js → p-8319c8c5.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-6ee1b4e7.entry.js → p-89f8f8c7.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-a8eb23b6.entry.js → p-99a53e43.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-48ea6a67.entry.js → p-acf32338.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-58af50fc.entry.js → p-ad24c623.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-6b9ecace.entry.js → p-af1d9944.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-500f71cc.entry.js → p-bbc83759.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-bdb0e937.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-e2d0ad64.entry.js → p-be9c2a02.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-59fb1317.entry.js → p-c950abaf.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-d30f4aed.entry.js → p-ca42aecb.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-b7057914.entry.js → p-ce55b323.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-b63754ff.entry.js → p-d097a48f.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-9e413f66.entry.js → p-d4a4c134.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-9fabb3bc.entry.js → p-d66fc7fa.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-e54766be.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-8a0b4540.entry.js → p-e6f4865a.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-edf98dc3.entry.js +2 -0
- package/dist/types/components/file-upload/file-upload.d.ts +88 -0
- package/dist/types/components/file-upload/file-upload.stories.d.ts +7 -0
- package/dist/types/components.d.ts +68 -0
- package/package.json +1 -1
- package/dist/infineon-design-system-stencil/p-00c52c84.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-1b59a7f9.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-1c19f8ce.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-65d9faca.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-6f590954.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-8dbe0add.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-e4de8215.entry.js +0 -2
- /package/dist/infineon-design-system-stencil/{p-1b59a7f9.entry.js.map → p-021719f5.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-e57f8890.entry.js.map → p-0306ed65.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-37e75e7c.entry.js.map → p-051f1f75.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-711d5051.entry.js.map → p-08ded326.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-67c63b48.entry.js.map → p-0be5bec9.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-95b48437.entry.js.map → p-13e47c02.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-68b06d9b.entry.js.map → p-1c80700d.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-00c52c84.entry.js.map → p-1dbd5a8f.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-8b21a331.entry.js.map → p-2170ccf1.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-1de4f93c.entry.js.map → p-31f3dba0.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-9feda3ff.entry.js.map → p-38a17a09.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-7abdbf1f.entry.js.map → p-38fd172b.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-a06f2543.entry.js.map → p-3d4c474f.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-a0d570a0.entry.js.map → p-3f5e136b.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-8dbe0add.entry.js.map → p-42234c99.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-33b93a7c.entry.js.map → p-42964c5d.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-ecc58519.entry.js.map → p-44ffa393.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-5ba50092.entry.js.map → p-474b0bda.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-14b4d7f0.entry.js.map → p-51c067b1.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-e447fb1f.entry.js.map → p-534ef91b.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-3c039adc.entry.js.map → p-54d98fa9.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-e4de8215.entry.js.map → p-582970ed.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-1abbcdbc.entry.js.map → p-5bc7c9cc.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-d08d3dd7.entry.js.map → p-5e300ee5.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-5536a9c8.entry.js.map → p-63679e7a.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-f99f62ec.entry.js.map → p-68f13949.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-1fca1eb2.entry.js.map → p-7103bb15.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-86ba198c.entry.js.map → p-81391688.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-dc49f3c8.entry.js.map → p-8319c8c5.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-6ee1b4e7.entry.js.map → p-89f8f8c7.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-a8eb23b6.entry.js.map → p-99a53e43.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-48ea6a67.entry.js.map → p-acf32338.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-58af50fc.entry.js.map → p-ad24c623.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-6b9ecace.entry.js.map → p-af1d9944.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-500f71cc.entry.js.map → p-bbc83759.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-65d9faca.entry.js.map → p-bdb0e937.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-e2d0ad64.entry.js.map → p-be9c2a02.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-59fb1317.entry.js.map → p-c950abaf.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-d30f4aed.entry.js.map → p-ca42aecb.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b7057914.entry.js.map → p-ce55b323.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b63754ff.entry.js.map → p-d097a48f.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-9e413f66.entry.js.map → p-d4a4c134.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-9fabb3bc.entry.js.map → p-d66fc7fa.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-1c19f8ce.entry.js.map → p-e54766be.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-8a0b4540.entry.js.map → p-e6f4865a.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-6f590954.entry.js.map → p-edf98dc3.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import { p as proxyCustomElement, H, h } from './p-2cc378b8.js';
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
2
|
+
import { d as defineCustomElement$2 } from './p-35d83f23.js';
|
3
3
|
|
4
4
|
const checkboxGroupCss = ":root{--ifx-font-family:\"Source Sans 3\";font-family:var(--ifx-font-family, sans-serif)}.checkbox-group-container{display:flex;flex-direction:column}.checkbox-group{display:flex;font-family:var(--ifx-font-family);gap:8px}.checkbox-group.horizontal{flex-direction:row;column-gap:12px}.checkbox-group.vertical{flex-direction:column;row-gap:12px}.group-label{font:400 0.75rem/1rem \"Source Sans 3\";margin-bottom:8px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none}.caption{margin-top:8px;align-self:flex-start;display:flex;width:100%;column-gap:8px;justify-content:space-between;align-items:center}.caption.default{color:#1D1D1D}.caption.error{color:#CD002F}.caption-text{font:400 0.75rem/1rem \"Source Sans 3\";flex:1;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none}.caption-icon{flex:0;display:flex}";
|
5
5
|
const IfxCheckboxGroupStyle0 = checkboxGroupCss;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h } from './p-2cc378b8.js';
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
2
|
+
import { d as defineCustomElement$2 } from './p-35d83f23.js';
|
3
3
|
|
4
4
|
const datePickerCss = ".date__picker-container{display:flex;flex-direction:column}.date__picker-container .label__wrapper{color:#1D1D1D;font:400 1rem/1.5rem \"Source Sans 3\"}.date__picker-container.disabled .label__wrapper{color:#575352}.date__picker-container.error .caption__wrapper{color:#CD002F}.date__picker-container.disabled .caption__wrapper{color:#575352}.date__picker-container .caption__wrapper{margin-top:4px;color:#1D1D1D;font:400 0.75rem/1rem \"Source Sans 3\"}.date__picker-input{font-family:\"Source Sans 3\";outline:none;width:100%;cursor:pointer;border-radius:1px;border:1px solid #8D8786;height:100%}.date__picker-input.firefox__classes{padding:8px 16px;color:#8D8786;font-size:16px;text-transform:uppercase;font-style:normal;font-weight:400;line-height:24px;cursor:pointer}.date__picker-input:focus:not(.error,.success){border-color:#0A8276}.date__picker-input:hover:not(:disabled,:focus,.error,.success){border-color:#575352}.date__picker-input:disabled{border-color:#575352;background-color:#EEEDED}.date__picker-input.error{border-color:#CD002F}.date__picker-input.success:not(.error){border-color:#4CA460}.date__picker-input::-webkit-datetime-edit-text{color:#8D8786;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.date__picker-input.has-value::-webkit-datetime-edit-text{color:#1D1D1D}.date__picker-input.has-value::-webkit-datetime-edit{color:#1D1D1D}::-webkit-datetime-edit{color:#8D8786;font-size:16px;text-transform:uppercase;font-style:normal;font-weight:400;line-height:24px}::-webkit-datetime-edit-fields-wrapper{padding:8px 16px;padding-bottom:9px;transform:translateY(1px)}::-webkit-inner-spin-button{display:none}::-webkit-calendar-picker-indicator{position:absolute;right:15px;font-size:19px;cursor:pointer;border-radius:1px}::-webkit-calendar-picker-indicator:focus-within{outline:2px solid #0A8276;outline-offset:2px}.input__wrapper{display:flex;justify-content:space-between;align-items:center;align-self:stretch;background:#FFFFFF;position:relative}.input__wrapper.large{height:40px}.input__wrapper.small{height:36px}.input__wrapper.disabled .icon__wrapper{background-color:#EEEDED}.icon__wrapper{position:absolute;right:17px;padding:2px;display:flex;justify-content:flex-end;align-items:center;pointer-events:none;z-index:100;background-color:#FFFFFF;line-height:16px}.icon__wrapper ifx-icon{vertical-align:middle}";
|
5
5
|
const IfxDatePickerStyle0 = datePickerCss;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h } from './p-2cc378b8.js';
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
2
|
+
import { d as defineCustomElement$2 } from './p-35d83f23.js';
|
3
3
|
|
4
4
|
const dropdownItemCss = ":root{--ifx-font-family:\"Source Sans 3\";font-family:var(--ifx-font-family, sans-serif)}.dropdown-item{text-decoration:none;color:#1D1D1D;display:flex;align-items:center;padding:8px 16px;gap:8px;font-family:var(--ifx-font-family)}.dropdown-item.hide{display:none}.dropdown-item span{color:#1D1D1D;font-size:16px;font-style:normal;font-weight:400;line-height:24px;}.dropdown-item.small span{font-size:14px}.dropdown-item:hover{cursor:pointer;background-color:#EEEDED}.dropdown-item:active{background-color:#BFBBBB}.icon{margin-right:4px}";
|
5
5
|
const IfxDropdownItemStyle0 = dropdownItemCss;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { p as proxyCustomElement, H, h } from './p-2cc378b8.js';
|
2
2
|
import { d as defineCustomElement$3 } from './p-c2b0bf22.js';
|
3
|
-
import { d as defineCustomElement$2 } from './p-
|
3
|
+
import { d as defineCustomElement$2 } from './p-35d83f23.js';
|
4
4
|
|
5
5
|
const dropdownTriggerButtonCss = ":host{display:inline-block}.rotate{transition:transform 0.2s ease-in-out;transform:rotate(-180deg);margin-top:0em}.icon{margin-top:0em;transition:transform 0.2s ease-in-out}";
|
6
6
|
const IfxDropdownTriggerButtonStyle0 = dropdownTriggerButtonCss;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { p as proxyCustomElement, H, h } from './p-2cc378b8.js';
|
2
2
|
import { d as defineCustomElement$4 } from './p-905fb988.js';
|
3
|
-
import { d as defineCustomElement$3 } from './p-
|
4
|
-
import { d as defineCustomElement$2 } from './p-
|
3
|
+
import { d as defineCustomElement$3 } from './p-2bc9826e.js';
|
4
|
+
import { d as defineCustomElement$2 } from './p-35d83f23.js';
|
5
5
|
|
6
6
|
const faqCss = ".container{padding-top:10px}";
|
7
7
|
const IfxFaqStyle0 = faqCss;
|
@@ -13,7 +13,7 @@ const Faq = /*@__PURE__*/ proxyCustomElement(class Faq extends H {
|
|
13
13
|
this.__attachShadow();
|
14
14
|
}
|
15
15
|
render() {
|
16
|
-
return (h("div", { key: '
|
16
|
+
return (h("div", { key: 'b928d2815cf245bb06c56c43640204f443f25cf0', class: 'container' }, h("ifx-accordion", { key: 'fda9c230bf25223999d8776d15b00b28a6f39cdf' }, h("ifx-accordion-item", { key: 'c36c4b6bc64457232e64d5e15234306d70e383ec', caption: "What is the Infineon DDS?" }, "The Infineon Digital Design System consists of code components, design principles, tools and guidelines as well as a dedicated interdisciplinary team. Its purpose is to support internal and external colleagues create digital user interfaces with a high level of usability as well as a consistent expression of the Infineon brand. The DDS does not focus on the content of a web application but it describes how the design of the application\u2019s structure should be."), h("ifx-accordion-item", { key: '703569935c7f5fc12adc3bb187d89dc6b2b55d6b', caption: "How do I get access to the DDS?" }, "You can use the provided Figma file as a foundation for mockups and prototypes, use Storybook to view what UI components and variants are available and use code components provided via Storybook or Github."), h("ifx-accordion-item", { key: '1c389e91f6c73984a9993fe44d5a76218018213e', caption: "Can I integrate the Infineon DDS into my project?" }, "Yes, you can. We are happy to discuss with you which point in time and which scope of integration is bestsuited for updating your interface to the Infineon DDS. (To avoid that users get confused by a mixture of UI components, we recommend choosing larger updates or technology changes as opportunity to integrate the Infineon DDS.)"), h("ifx-accordion-item", { key: '6300f9e81e7eb1187ee98ffdab5fc13b1f387156', caption: "Are Infineon DDS components accessable?" }, "We have taken WCAG 2.0 Level AA as baseline level for all design decisions inside the Infineon Digital Design System. To make an online experience truly accessible you have to implement the specific code, content, and visual design according to the accessibility standard. Find an introduction to this topic here."), h("ifx-accordion-item", { key: 'a87958c2ed73c8ce22bca5ee9a3e7b324671020a', caption: "How to request a new component?" }, "Please contact us like described in the contribution section! We are planning to expand the number of components continually. If your component is also usable for multiple other projects, there is a good chance we might work together with you."))));
|
17
17
|
}
|
18
18
|
static get style() { return IfxFaqStyle0; }
|
19
19
|
}, [1, "ifx-faq"]);
|
@@ -0,0 +1,11 @@
|
|
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;
|
@@ -0,0 +1,377 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"ifx-file-upload.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EAA2B;YACjD,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;SACvB,CAAC;QAEF,MAAM,iBAAiB,GAAG;YACxB,IAAI,IAAI,CAAC,WAAW,EAAE;gBACpB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;aAC1B;SACF,CAAC;QAEF,QACE,WACE,KAAK,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,UAAU,EAAE,EAChE,OAAO,EAAE,iBAAiB,EAC1B,UAAU,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EACzC,WAAW,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAC3C,MAAM,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAEjC,gBAAU,IAAI,EAAC,WAAW,EAAC,KAAK,EAAC,aAAa,GAAY,EAC1D,aAAI,IAAI,CAAC,gBAAgB,CAAK,EAC9B,SAAG,KAAK,EAAC,kBAAkB,IACxB,IAAI,CAAC,oBAAoB,EAAE,CAC1B,EACJ,WAAK,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAC/C,aACE,GAAG,EAAE,cAAc,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,IAAI,CAAC,kBAAkB,EAAE,EACjC,QAAQ,QACR,QAAQ,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,GACzC,CACE,CACF,EACN;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["IfxFileUpload"],"sources":["src/components/file-upload/file-upload.scss?tag=ifx-file-upload&encapsulation=shadow","src/components/file-upload/file-upload.tsx"],"sourcesContent":["@use \"~@infineon/design-system-tokens/dist/tokens\";\n@use \"../../global/font.scss\";\n\n:host {\n font-family: var(--ifx-font-family, sans-serif);\n}\n\n.file-upload-wrapper {\n display: flex;\n flex-direction: column;\n}\n\n.upload-dropzone {\n border: 1px dashed tokens.$ifxColorEngineering300;\n padding: tokens.$ifxSpace500;\n text-align: center;\n cursor: pointer;\n color: tokens.$ifxColorBaseBlack;\n transition: border-color 0.3s ease;\n border-radius: tokens.$ifxBorderRadius12;\n background: tokens.$ifxColorBaseWhite;\n\n ifx-icon {\n color: tokens.$ifxColorOcean500;\n }\n\n &:hover {\n border: 1px dashed tokens.$ifxColorEngineering400;\n }\n}\n\n.upload-dropzone.drag-over {\n border: 1px solid tokens.$ifxColorOcean500;\n background: tokens.$ifxColorEngineering100;\n}\n\n.upload-dropzone input {\n display: none;\n}\n\n.file-upload-info {\n font-style: normal;\n font-weight: tokens.$ifxFontWeightRegular;\n font-size: tokens.$ifxFontSizeXs;\n line-height: tokens.$ifxLineHeightXs;\n letter-spacing: tokens.$ifxLetterSpacingDefault;\n color: tokens.$ifxColorBaseBlack;\n margin: 0;\n margin-top: tokens.$ifxSpace50;\n}\n\n.file-list {\n list-style: none;\n padding: 0;\n margin: 0;\n margin-top: tokens.$ifxSpace200;\n display: flex;\n flex-direction: column;\n gap: tokens.$ifxSpace200;\n}\n\n.file-item {\n border: 1px solid tokens.$ifxColorEngineering300;\n padding: tokens.$ifxSpace200;\n display: flex;\n gap: tokens.$ifxSpace200;\n}\n\n.file-info {\n width: 100%;\n min-width: 0;\n}\n\n.file-top-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: tokens.$ifxSpace200;\n margin-top: - tokens.$ifxSpace100;\n}\n\n.file-top-row ifx-icon {\n flex-shrink: 0;\n}\n\n.file-name-wrapper {\n display: flex;\n min-width: 0;\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n font-weight: tokens.$ifxFontWeightRegular;\n font-size: tokens.$ifxFontSizeS;\n}\n\n.file-name-base {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n flex-shrink: 1;\n min-width: 0;\n}\n\n.file-name-ext {\n flex-shrink: 0;\n margin-left: 0;\n}\n\n.file-middle-row {\n display: flex;\n align-items: center;\n font-size: tokens.$ifxFontSizeXs;\n line-height: tokens.$ifxLineHeightXs;\n flex-wrap: wrap;\n color: tokens.$ifxColorEngineering500;\n\n .file-status {\n margin-left: tokens.$ifxSpace200;\n }\n}\n\n.file-progress-row {\n margin-top: tokens.$ifxSpace200;\n}\n\n.file-progress-row ifx-progress-bar {\n width: 100%;\n}\n\n.upload-success {\n border-color: tokens.$ifxColorOcean500;\n\n .file-status {\n ifx-icon {\n position: relative;\n top: tokens.$ifxSpace25;\n color: tokens.$ifxColorGreen500;\n }\n }\n}\n\n.upload-failed {\n border-color: tokens.$ifxColorRed500;\n\n .file-status {\n color: tokens.$ifxColorRed500;\n margin-left: 0;\n }\n}\n","import { Component, h, State, Event, EventEmitter, Prop, Method, Element } from '@stencil/core';\n\ninterface UploadTask {\n file: File;\n progress: number;\n intervalId: number | null;\n completed: boolean;\n}\n\n@Component({\n tag: 'ifx-file-upload',\n styleUrl: 'file-upload.scss',\n shadow: true\n})\nexport class IfxFileUpload {\n @Element() hostElement: HTMLElement;\n\n @Prop() dragAndDrop: boolean = false;\n @Prop() maxFileSizeMB: number = 7;\n @Prop() allowedFileTypes: string | string[] = ['jpg', 'jpeg', 'png', 'pdf', 'mov', 'mp3', 'mp4'];\n @Prop() uploadHandler?: (file: File) => Promise<void>;\n\n @Prop() labelBrowseFiles: string = 'Browse files';\n @Prop() labelDragAndDrop: string = 'Drag & Drop or browse files to upload';\n @Prop() labelFileTooLarge: string = 'Upload failed. Max file size: {{size}}MB.';\n @Prop() labelUnsupportedFileType: string = 'Unsupported file type.';\n @Prop() labelUploaded: string = 'Successfully uploaded';\n @Prop() labelSupportedFormatsTemplate: string = 'Supported file formats: {{types}}. Max file size: {{size}}MB.';\n\n private showDemoStates?: boolean;\n\n @State() isDragOver: boolean = false;\n @State() files: File[] = [];\n @State() uploadTasks: UploadTask[] = [];\n @State() rejectedSizeFiles: string[] = [];\n @State() rejectedTypeFiles: string[] = [];\n\n @Event() ifxFileUploadAdd: EventEmitter<{ addedFiles: File[]; files: File[] }>;\n @Event() ifxFileUploadRemove: EventEmitter<{ removedFile: File; files: File[] }>;\n @Event() ifxFileUploadChange: EventEmitter<{ files: File[] }>;\n @Event() ifxFileUploadError: EventEmitter<{ errorType: string; file: File; message: string }>;\n @Event() ifxFileUploadInvalid: EventEmitter<{ file: File; reason: string }>;\n @Event() ifxFileUploadStart: EventEmitter<{ file: File }>;\n @Event() ifxFileUploadComplete: EventEmitter<{ file: File }>;\n @Event() ifxFileUploadAbort: EventEmitter<{ file: File }>;\n @Event() ifxFileUploadDrop: EventEmitter<{ droppedFiles: File[]; acceptedFiles: File[]; rejectedFiles: File[] }>;\n @Event() ifxFileUploadClick: EventEmitter<void>;\n\n private fileInputEl: HTMLInputElement | null = null;\n\n private extensionToMimeMap: Record<string, string> = {\n jpg: 'image/jpeg',\n jpeg: 'image/jpeg',\n png: 'image/png',\n pdf: 'application/pdf',\n mov: 'video/quicktime',\n mp3: 'audio/mpeg',\n mp4: 'video/mp4'\n };\n\n private getNormalizedFileTypes(): string[] {\n if (Array.isArray(this.allowedFileTypes)) {\n return this.allowedFileTypes;\n }\n try {\n return JSON.parse(this.allowedFileTypes);\n } catch {\n return this.allowedFileTypes.split(',').map(t => t.trim());\n }\n }\n\n handleFileChange(event: Event) {\n const input = event.target as HTMLInputElement;\n if (!input.files) return;\n this.processFiles(input.files);\n }\n\n handleDrop(event: DragEvent) {\n event.preventDefault();\n event.stopPropagation();\n this.isDragOver = false;\n if (event.dataTransfer?.files) {\n const droppedFiles = Array.from(event.dataTransfer.files);\n const allowedMimes = this.getNormalizedFileTypes()\n .map(ext => this.extensionToMimeMap[ext.toLowerCase()])\n .filter(Boolean);\n\n const acceptedFiles: File[] = [];\n const rejectedFiles: File[] = [];\n\n droppedFiles.forEach(file => {\n const isValidType = allowedMimes.includes(file.type);\n const isValidSize = file.size <= this.maxFileSizeMB * 1024 * 1024;\n if (isValidType && isValidSize) acceptedFiles.push(file);\n else rejectedFiles.push(file);\n });\n\n this.ifxFileUploadDrop.emit({\n droppedFiles,\n acceptedFiles,\n rejectedFiles\n });\n\n this.processFiles(event.dataTransfer.files);\n }\n }\n\n handleDragOver(event: DragEvent) {\n event.preventDefault();\n this.isDragOver = true;\n }\n\n handleDragLeave(event: DragEvent) {\n event.preventDefault();\n this.isDragOver = false;\n }\n\n processFiles(fileList: FileList) {\n const selectedFiles = Array.from(fileList);\n const allowedMimes = this.getNormalizedFileTypes()\n .map(ext => this.extensionToMimeMap[ext.toLowerCase()])\n .filter(Boolean);\n\n const validFiles: File[] = [];\n const rejectedSize: string[] = [];\n const rejectedType: string[] = [];\n\n selectedFiles.forEach(file => {\n const isValidType = allowedMimes.includes(file.type);\n const isValidSize = file.size <= this.maxFileSizeMB * 1024 * 1024;\n\n if (isValidType && isValidSize) {\n validFiles.push(file);\n } else {\n if (!isValidType) {\n rejectedType.push(file.name);\n this.ifxFileUploadInvalid.emit({ file, reason: 'invalid-type' });\n }\n if (!isValidSize) {\n rejectedSize.push(file.name);\n this.ifxFileUploadInvalid.emit({ file, reason: 'invalid-size' });\n }\n this.ifxFileUploadError.emit({ file, errorType: !isValidType ? 'invalid-type' : 'file-too-large', message: 'Invalid file rejected' });\n }\n });\n\n this.rejectedSizeFiles = [...this.rejectedSizeFiles, ...rejectedSize];\n this.rejectedTypeFiles = [...this.rejectedTypeFiles, ...rejectedType];\n\n validFiles.forEach(file => this.startUpload(file));\n this.files = [...this.files, ...validFiles];\n\n if (validFiles.length > 0) {\n this.ifxFileUploadAdd.emit({ addedFiles: validFiles, files: this.files });\n this.ifxFileUploadChange.emit({ files: this.files });\n }\n }\n\n startUpload(file: File) {\n this.ifxFileUploadStart.emit({ file });\n\n const task: UploadTask = {\n file,\n progress: 0,\n intervalId: null,\n completed: false\n };\n\n if (this.uploadHandler) {\n // Real Upload\n\n // <ifx-file-upload\n // uploadHandler={(file) => {\n // const formData = new FormData();\n // formData.append('file', file);\n // return fetch('/api/upload', {\n // method: 'POST',\n // body: formData\n // }).then(res => {\n // if (!res.ok) throw new Error('Upload failed');\n // });\n // }}\n // ></ifx-file-upload>\n\n this.uploadHandler(file).then(() => {\n task.progress = 100;\n task.completed = true;\n this.uploadTasks = [...this.uploadTasks];\n this.ifxFileUploadComplete.emit({ file });\n this.ifxFileUploadChange.emit({ files: this.files });\n }).catch(() => {\n console.error('Upload failed');\n this.ifxFileUploadError.emit({ file, errorType: 'upload-failed', message: 'Upload handler rejected file' });\n });\n } else {\n const totalSize = file.size;\n const fakeUploadSpeed = 500000;\n let uploaded = 0;\n\n task.intervalId = window.setInterval(() => {\n uploaded += fakeUploadSpeed / 5;\n const progress = Math.min(100, Math.round((uploaded / totalSize) * 100));\n task.progress = progress;\n this.uploadTasks = [...this.uploadTasks];\n\n if (progress >= 100) {\n clearInterval(task.intervalId!);\n task.completed = true;\n task.intervalId = null;\n this.uploadTasks = [...this.uploadTasks];\n this.ifxFileUploadComplete.emit({ file });\n this.ifxFileUploadChange.emit({ files: this.files });\n }\n }, 200);\n }\n\n this.uploadTasks = [...this.uploadTasks, task];\n }\n\n cancelUpload(file: File) {\n const taskIndex = this.uploadTasks.findIndex(t => t.file.name === file.name);\n if (taskIndex !== -1) {\n const task = this.uploadTasks[taskIndex];\n if (task?.intervalId !== null) {\n clearInterval(task.intervalId);\n }\n this.uploadTasks = this.uploadTasks.filter((_, i) => i !== taskIndex);\n }\n this.files = this.files.filter(f => f.name !== file.name);\n this.ifxFileUploadAbort.emit({ file });\n this.ifxFileUploadChange.emit({ files: this.files });\n if (this.fileInputEl) {\n this.fileInputEl.value = '';\n }\n }\n\n removeFile(file: File) {\n this.uploadTasks = this.uploadTasks.filter(task => task.file.name !== file.name);\n this.files = this.files.filter(f => f.name !== file.name);\n this.ifxFileUploadRemove.emit({ removedFile: file, files: this.files });\n this.ifxFileUploadChange.emit({ files: this.files });\n if (this.fileInputEl) {\n this.fileInputEl.value = '';\n }\n }\n\n clearRejectedFile(fileName: string, type: 'size' | 'type') {\n if (type === 'size') {\n this.rejectedSizeFiles = this.rejectedSizeFiles.filter(f => f !== fileName);\n } else {\n this.rejectedTypeFiles = this.rejectedTypeFiles.filter(f => f !== fileName);\n }\n\n if (this.fileInputEl) {\n this.fileInputEl.value = '';\n }\n }\n\n splitFileNameParts(file: File): { base: string; ext: string } {\n const name = file.name;\n const dotIndex = name.lastIndexOf('.');\n if (dotIndex === -1) return { base: name, ext: '' };\n return {\n base: name.substring(0, dotIndex),\n ext: name.substring(dotIndex)\n };\n }\n\n getFileIcon(file: File): string {\n const extension = file.name.split('.').pop()?.toLowerCase();\n switch (extension) {\n case 'pdf': return 'file-pdf-16';\n case 'jpg':\n case 'jpeg': return 'file-jpg-16';\n case 'png': return 'file-png-16';\n case 'mov': return 'file-mov-16';\n case 'mp3': return 'file-mp3-16';\n case 'mp4': return 'file-mp4-16';\n default: return 'file';\n }\n }\n\n getFormattedSize(file: File): string {\n const sizeInKB = file.size / 1024;\n return sizeInKB > 1024\n ? `${(sizeInKB / 1024).toFixed(1)} MB`\n : `${sizeInKB.toFixed(0)} KB`;\n }\n\n getAcceptAttribute(): string {\n return this.getNormalizedFileTypes().map(ext => '.' + ext.toLowerCase()).join(',');\n }\n\n private getSupportedFileText(): string {\n return this.labelSupportedFormatsTemplate\n .replace('{{types}}', this.getNormalizedFileTypes().map(ext => ext.toUpperCase()).join(', '))\n .replace('{{size}}', this.maxFileSizeMB.toString());\n }\n\n private getFormattedFileTooLargeText(): string {\n return this.labelFileTooLarge.replace('{{size}}', this.maxFileSizeMB.toString());\n }\n\n componentDidLoad() {\n if (this.hostElement.hasAttribute('show-demo-states')) {\n this.showDemoStates = true;\n }\n\n if (this.showDemoStates) {\n this.injectDemoState();\n }\n }\n\n @Method()\n async injectDemoState() {\n const uploading = new File(['demo'], 'Image.jpg', { type: 'image/jpeg' });\n const uploaded = new File(['demo'], 'File.pdf', { type: 'application/pdf' });\n const tooLarge = new File(['demo'], 'Video.mp4', { type: 'video/mp4' });\n const unsupported = new File(['demo'], 'Script.exe', { type: 'application/x-msdownload' });\n\n this.files = [uploaded, uploading];\n this.uploadTasks = [\n { file: uploaded, progress: 100, intervalId: null, completed: true },\n { file: uploading, progress: 35, intervalId: null, completed: false }\n ];\n this.rejectedSizeFiles = [tooLarge.name];\n this.rejectedTypeFiles = [unsupported.name];\n }\n\n render() {\n return (\n <div class=\"file-upload-wrapper\">\n {this.dragAndDrop ? this.renderDragAndDropArea() : this.renderUploadArea()}\n\n <ul class=\"file-list\">\n {this.rejectedSizeFiles.map(fileName => (\n <li class=\"file-item upload-failed\">\n <div class=\"file-icon\">\n <ifx-icon icon=\"file-16\"></ifx-icon>\n </div>\n <div class=\"file-info\">\n <div class=\"file-top-row\">\n <span class=\"file-name-wrapper\">\n <span class=\"file-name-base\">{this.splitFileNameParts({ name: fileName } as File).base}</span>\n <span class=\"file-name-ext\">{this.splitFileNameParts({ name: fileName } as File).ext}</span>\n </span>\n <div class=\"file-actions\">\n <ifx-icon-button\n shape=\"square\"\n variant=\"tertiary\"\n icon=\"delete-forever-16\"\n size=\"s\"\n aria-label=\"Remove file\"\n onClick={() => this.clearRejectedFile(fileName, 'size')}>\n </ifx-icon-button>\n </div>\n </div>\n <div class=\"file-middle-row\">\n <span class=\"file-status\">\n {this.getFormattedFileTooLargeText()}\n </span>\n </div>\n </div>\n </li>\n ))}\n\n {this.rejectedTypeFiles.map(fileName => (\n <li class=\"file-item upload-failed\">\n <div class=\"file-icon\">\n <ifx-icon icon=\"file-16\"></ifx-icon>\n </div>\n <div class=\"file-info\">\n <div class=\"file-top-row\">\n <span class=\"file-name-wrapper\">\n <span class=\"file-name-base\">{this.splitFileNameParts({ name: fileName } as File).base}</span>\n <span class=\"file-name-ext\">{this.splitFileNameParts({ name: fileName } as File).ext}</span>\n </span>\n <div class=\"file-actions\">\n <ifx-icon-button\n shape=\"square\"\n variant=\"tertiary\"\n icon=\"delete-forever-16\"\n size=\"s\"\n aria-label=\"Remove file\"\n onClick={() => this.clearRejectedFile(fileName, 'type')}>\n </ifx-icon-button>\n </div>\n </div>\n <div class=\"file-middle-row\">\n <span class=\"file-status\">\n {this.labelUnsupportedFileType}\n </span>\n </div>\n </div>\n </li>\n ))}\n\n {this.files.map((file) => {\n const task = this.uploadTasks.find(t => t.file.name === file.name);\n const progress = task?.progress ?? 100;\n const isUploading = task && !task.completed;\n const itemClass = isUploading ? 'file-item uploading' : 'file-item upload-success';\n\n const { base, ext } = this.splitFileNameParts(file);\n\n return (\n <li class={itemClass}>\n <div class=\"file-icon\">\n <ifx-icon icon={this.getFileIcon(file)}></ifx-icon>\n </div>\n <div class=\"file-info\">\n <div class=\"file-top-row\">\n <span class=\"file-name-wrapper\">\n <span class=\"file-name-base\">{base}</span>\n <span class=\"file-name-ext\">{ext}</span>\n </span>\n <div class=\"file-actions\">\n <ifx-icon-button\n shape=\"square\"\n variant=\"tertiary\"\n icon=\"cross-16\"\n size=\"s\"\n aria-label=\"Cancel upload\"\n onClick={() => this.cancelUpload(file)}\n style={{ display: isUploading ? 'inline-flex' : 'none' }}>\n </ifx-icon-button>\n <ifx-icon-button\n shape=\"square\"\n variant=\"tertiary\"\n icon=\"delete-forever-16\"\n size=\"s\"\n aria-label=\"Remove file\"\n onClick={() => this.removeFile(file)}\n style={{ display: !isUploading ? 'inline-flex' : 'none' }}>\n </ifx-icon-button>\n </div>\n </div>\n\n <div class=\"file-middle-row\">\n <span class=\"file-size\">{this.getFormattedSize(file)}</span>\n {isUploading && (\n <span class=\"file-uploading\"> – Uploading …</span>\n )}\n <span class=\"file-status\">\n {!isUploading && (\n <span>\n <ifx-icon icon=\"check-12\"></ifx-icon> \n {this.labelUploaded}\n </span>\n )}\n </span>\n </div>\n\n {isUploading && (\n <div class=\"file-progress-row\">\n <ifx-progress-bar size=\"s\" value={progress} show-label=\"true\"></ifx-progress-bar>\n </div>\n )}\n </div>\n </li>\n );\n })}\n </ul>\n </div>\n );\n }\n\n renderUploadArea() {\n const handleInputRef = (el: HTMLInputElement | null) => {\n this.fileInputEl = el;\n };\n\n return (\n <div class={{ 'upload-button': true }}>\n <label>\n <ifx-button variant=\"secondary\">\n <ifx-icon icon=\"upload-16\"></ifx-icon>\n {this.labelBrowseFiles}\n </ifx-button>\n <input\n ref={handleInputRef}\n type=\"file\"\n accept={this.getAcceptAttribute()}\n multiple\n onChange={(e) => this.handleFileChange(e)}\n style={{ display: 'none' }}\n />\n </label>\n <p class=\"file-upload-info\">\n {this.getSupportedFileText()}\n </p>\n </div>\n );\n }\n\n renderDragAndDropArea() {\n const handleInputRef = (el: HTMLInputElement | null) => {\n this.fileInputEl = el;\n };\n\n const triggerInputClick = () => {\n if (this.fileInputEl) {\n this.fileInputEl.click();\n }\n };\n\n return (\n <div\n class={{ 'upload-dropzone': true, 'drag-over': this.isDragOver }}\n onClick={triggerInputClick}\n onDragOver={(e) => this.handleDragOver(e)}\n onDragLeave={(e) => this.handleDragLeave(e)}\n onDrop={(e) => this.handleDrop(e)}\n >\n <ifx-icon icon=\"upload-24\" class=\"custom-icon\"></ifx-icon>\n <p>{this.labelDragAndDrop}</p>\n <p class=\"file-upload-info\">\n {this.getSupportedFileText()}\n </p>\n <div style={{ height: '0px', overflow: 'hidden' }}>\n <input\n ref={handleInputRef}\n type=\"file\"\n accept={this.getAcceptAttribute()}\n multiple\n onChange={(e) => this.handleFileChange(e)}\n />\n </div>\n </div>\n );\n }\n}\n"],"version":3}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h } from './p-2cc378b8.js';
|
2
|
-
import { d as defineCustomElement$3 } from './p-
|
3
|
-
import { d as defineCustomElement$2 } from './p-
|
2
|
+
import { d as defineCustomElement$3 } from './p-35d83f23.js';
|
3
|
+
import { d as defineCustomElement$2 } from './p-9306088d.js';
|
4
4
|
|
5
5
|
// utils.ts
|
6
6
|
function getInitiallySelectedItems(el) {
|
@@ -53,8 +53,8 @@ const FilterAccordion = /*@__PURE__*/ proxyCustomElement(class FilterAccordion e
|
|
53
53
|
this.el.removeEventListener('ifxListUpdate', this.handleCheckedChange);
|
54
54
|
}
|
55
55
|
render() {
|
56
|
-
return (h("div", { key: '
|
57
|
-
h("div", { key: '
|
56
|
+
return (h("div", { key: '099f63d57e4c1fb4c14d228af3e9fdc20e7d7249', class: `accordion ${this.expanded ? 'expanded' : ''}` }, h("div", { key: 'de36ca16b253284129ef524e37194fd247742ce4', class: `header ${this.expanded ? 'expanded' : ''}`, onClick: this.toggleAccordion }, h("div", { key: 'bc5797a753df94bc421c6c91da3fab6698600d21', class: `text-and-icon ${this.expanded ? 'expanded' : ''}` }, h("div", { key: 'a97fe6a9f8f7569726d5c032eade4cb09a0e9a6a', class: "text" }, h("span", { key: 'eadfe0234c057ab7c1842a95fc8ae7e2b217f841' }, this.filterGroupName), h("ifx-number-indicator", { key: '764092da4893f0d3b1c151d5ef6c82b361ff9974' }, this.count)), h("ifx-icon", { key: '5588c2d8de2ba12f7feca1bd78a4ea60e24fd95d', class: this.expanded ? '' : 'hidden', icon: "minus-16", onClick: this.toggleAccordion }), h("ifx-icon", { key: 'ae0a733177800de32146eccf46454ee399193f74', class: this.expanded ? 'hidden' : '', icon: "plus-16", onClick: this.toggleAccordion }))), this.expanded &&
|
57
|
+
h("div", { key: '832ca96c1a581d458a6a84973a2067a824d16a3d', class: "filter-accordion-container" }, h("slot", { key: '84f321eb641add7f096e380fe69b61c1c49565e0', name: "list" }))));
|
58
58
|
}
|
59
59
|
get el() { return this; }
|
60
60
|
static get style() { return IfxFilterAccordionStyle0; }
|