@infineon/infineon-design-system-stencil 33.3.0 → 33.3.1--canary.1824.9e747abc2c6c3dcc35abd2895ce37d503bd1f141.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 +570 -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 +211 -0
- package/dist/collection/components/file-upload/file-upload.js +1501 -0
- package/dist/collection/components/file-upload/file-upload.js.map +1 -0
- package/dist/collection/components/file-upload/file-upload.stories.js +517 -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 +649 -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-eedb3b58.js → p-008afd49.js} +6 -6
- package/dist/components/{p-eedb3b58.js.map → p-008afd49.js.map} +1 -1
- package/dist/components/{p-f36effad.js → p-0b2bb8ad.js} +2 -2
- package/dist/components/{p-f36effad.js.map → p-0b2bb8ad.js.map} +1 -1
- package/dist/components/{p-85ce5a1e.js → p-118c5b21.js} +3 -3
- package/dist/components/{p-85ce5a1e.js.map → p-118c5b21.js.map} +1 -1
- package/dist/components/{p-88691420.js → p-1d0b8ace.js} +5 -5
- package/dist/components/{p-88691420.js.map → p-1d0b8ace.js.map} +1 -1
- package/dist/components/{p-23757cfd.js → p-2ba2b196.js} +3 -3
- package/dist/components/{p-23757cfd.js.map → p-2ba2b196.js.map} +1 -1
- package/dist/components/{p-8d115124.js → p-2e096da7.js} +5 -5
- package/dist/components/{p-8d115124.js.map → p-2e096da7.js.map} +1 -1
- package/dist/components/{p-4d64e776.js → p-45c75348.js} +2 -2
- package/dist/components/{p-4d64e776.js.map → p-45c75348.js.map} +1 -1
- package/dist/components/{p-ee5532fd.js → p-4882084d.js} +3 -3
- package/dist/components/{p-ee5532fd.js.map → p-4882084d.js.map} +1 -1
- package/dist/components/{p-b4e91450.js → p-49f70934.js} +3 -3
- package/dist/components/{p-b4e91450.js.map → p-49f70934.js.map} +1 -1
- package/dist/components/{p-04a697ad.js → p-524a6949.js} +2 -2
- package/dist/components/{p-04a697ad.js.map → p-524a6949.js.map} +1 -1
- package/dist/components/{p-7c7a5393.js → p-5d0763d9.js} +2 -2
- package/dist/components/{p-7c7a5393.js.map → p-5d0763d9.js.map} +1 -1
- package/dist/components/{p-327af560.js → p-6ddcb06b.js} +2 -2
- package/dist/components/{p-327af560.js.map → p-6ddcb06b.js.map} +1 -1
- package/dist/components/{p-803887ee.js → p-7ba45e8a.js} +3 -3
- package/dist/components/{p-803887ee.js.map → p-7ba45e8a.js.map} +1 -1
- package/dist/components/{p-e7551b24.js → p-7f0af813.js} +2 -2
- package/dist/components/{p-e7551b24.js.map → p-7f0af813.js.map} +1 -1
- package/dist/components/{p-f824645f.js → p-c4b939c0.js} +6 -6
- package/dist/components/{p-f824645f.js.map → p-c4b939c0.js.map} +1 -1
- package/dist/components/{p-77e746ee.js → p-cd01352d.js} +3 -3
- package/dist/components/{p-77e746ee.js.map → p-cd01352d.js.map} +1 -1
- package/dist/components/{p-1266857d.js → p-d4b2d98f.js} +4 -4
- package/dist/components/{p-1266857d.js.map → p-d4b2d98f.js.map} +1 -1
- package/dist/components/p-e56942b3.js +53 -0
- package/dist/components/p-e56942b3.js.map +1 -0
- package/dist/components/{p-dccd1c1c.js → p-ef6730e0.js} +3 -3
- package/dist/components/{p-dccd1c1c.js.map → p-ef6730e0.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 +566 -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-66c73a3d.entry.js → p-02f83605.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-fbdd611c.entry.js → p-0512a705.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-fb3737ae.entry.js → p-07f2abf0.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-0b6db901.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-a045ee93.entry.js → p-0e9145f8.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-b77e56fd.entry.js → p-1038a1a1.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-42964318.entry.js → p-14fa6261.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-6ee1b4e7.entry.js → p-17df9778.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-00b3d9bf.entry.js → p-27e25f78.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-e4319c48.entry.js → p-294c7bab.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-32e8759a.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-f12c2743.entry.js → p-3796fda7.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-72bbedad.entry.js → p-3ad9c66a.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-6d936400.entry.js → p-47953778.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-7564f328.entry.js → p-4a239abe.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-4d544302.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-66d04b9e.entry.js → p-505aa612.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-8215490a.entry.js → p-563c4e58.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-cab23e90.entry.js → p-571635d2.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-5ce016ad.entry.js → p-5f3a20a2.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-e62df6c3.entry.js → p-685f1e5d.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-c183f92b.entry.js → p-69272ea3.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-6b8deb4a.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-6b8deb4a.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/p-78039fa0.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-5ba50092.entry.js → p-7a1327e5.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-96ba5e8c.entry.js → p-7d66ee28.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-dd27040f.entry.js → p-7feaadc5.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-760b9305.entry.js → p-91beff89.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-91ffb683.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-f2932f07.entry.js → p-997901f4.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-61010cd5.entry.js → p-9fbd4a42.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-64930d03.entry.js → p-a0f432cc.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-ad50d807.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-d1a97fd5.entry.js → p-b1538bfa.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-3e6ddbf5.entry.js → p-b900e8d0.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-ec7a9e00.entry.js → p-bb624976.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-9414543f.entry.js → p-c101a974.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-d9b49071.entry.js → p-cf27e139.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-aac226ce.entry.js → p-d0c21d65.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-de1a042f.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-41316712.entry.js → p-df86b421.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-6012a317.entry.js → p-eaf5dc4b.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-eb510174.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-080456bc.entry.js → p-f3a3242b.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-43ab7b53.entry.js → p-f5bc6488.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-7d761140.entry.js → p-f926dc7d.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-2ed9a934.entry.js → p-fa9610c3.entry.js} +2 -2
- package/dist/types/components/file-upload/file-upload.d.ts +143 -0
- package/dist/types/components/file-upload/file-upload.stories.d.ts +8 -0
- package/dist/types/components.d.ts +125 -0
- package/package.json +1 -1
- package/dist/infineon-design-system-stencil/p-11fa8bcb.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-1b59a7f9.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-2f87fada.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-56f6da95.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-afe7fdf8.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-b84588f9.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-cf3122b2.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-dc5ff11a.entry.js +0 -2
- /package/dist/infineon-design-system-stencil/{p-66c73a3d.entry.js.map → p-02f83605.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-fbdd611c.entry.js.map → p-0512a705.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-fb3737ae.entry.js.map → p-07f2abf0.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-afe7fdf8.entry.js.map → p-0b6db901.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-a045ee93.entry.js.map → p-0e9145f8.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b77e56fd.entry.js.map → p-1038a1a1.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-42964318.entry.js.map → p-14fa6261.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-6ee1b4e7.entry.js.map → p-17df9778.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-00b3d9bf.entry.js.map → p-27e25f78.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-e4319c48.entry.js.map → p-294c7bab.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-cf3122b2.entry.js.map → p-32e8759a.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-f12c2743.entry.js.map → p-3796fda7.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-72bbedad.entry.js.map → p-3ad9c66a.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-6d936400.entry.js.map → p-47953778.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-7564f328.entry.js.map → p-4a239abe.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-56f6da95.entry.js.map → p-4d544302.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-66d04b9e.entry.js.map → p-505aa612.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-8215490a.entry.js.map → p-563c4e58.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-cab23e90.entry.js.map → p-571635d2.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-5ce016ad.entry.js.map → p-5f3a20a2.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-e62df6c3.entry.js.map → p-685f1e5d.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-c183f92b.entry.js.map → p-69272ea3.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-2f87fada.entry.js.map → p-78039fa0.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-5ba50092.entry.js.map → p-7a1327e5.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-96ba5e8c.entry.js.map → p-7d66ee28.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-dd27040f.entry.js.map → p-7feaadc5.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-760b9305.entry.js.map → p-91beff89.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-11fa8bcb.entry.js.map → p-91ffb683.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-f2932f07.entry.js.map → p-997901f4.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-61010cd5.entry.js.map → p-9fbd4a42.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-64930d03.entry.js.map → p-a0f432cc.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-dc5ff11a.entry.js.map → p-ad50d807.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-d1a97fd5.entry.js.map → p-b1538bfa.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-3e6ddbf5.entry.js.map → p-b900e8d0.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-ec7a9e00.entry.js.map → p-bb624976.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-9414543f.entry.js.map → p-c101a974.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-d9b49071.entry.js.map → p-cf27e139.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-aac226ce.entry.js.map → p-d0c21d65.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b84588f9.entry.js.map → p-de1a042f.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-41316712.entry.js.map → p-df86b421.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-6012a317.entry.js.map → p-eaf5dc4b.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-1b59a7f9.entry.js.map → p-eb510174.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-080456bc.entry.js.map → p-f3a3242b.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-43ab7b53.entry.js.map → p-f5bc6488.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-7d761140.entry.js.map → p-f926dc7d.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-2ed9a934.entry.js.map → p-fa9610c3.entry.js.map} +0 -0
@@ -0,0 +1,649 @@
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h } from './p-2cc378b8.js';
|
2
|
+
import { d as defineCustomElement$5 } from './p-cc9cb040.js';
|
3
|
+
import { d as defineCustomElement$4 } from './p-7f0af813.js';
|
4
|
+
import { d as defineCustomElement$3 } from './p-7ba45e8a.js';
|
5
|
+
import { d as defineCustomElement$2 } from './p-e56942b3.js';
|
6
|
+
|
7
|
+
const fileUploadCss = ":root{font-family:\"Source Sans 3\", sans-serif}:host{font-family:var(--ifx-font-family, sans-serif)}.file-upload-wrapper{display:flex;flex-direction:column}.file-upload-wrapper.disabled{pointer-events:none}.file-upload-wrapper.disabled label,.file-upload-wrapper.disabled .file-upload-info{color:#575352}.file-upload-label{font-style:normal;font-weight:400;font-size:1rem;line-height:1.5rem;color:#1D1D1D}.file-upload-label .required{display:inline-block;margin-left:4px}.file-upload-label .required.error{color:#CD002F}.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{background:#F7F7F7}.upload-dropzone.drag-over,.upload-dropzone.drag-over.error{border:1px solid #0A8276}.upload-dropzone.error{border-color:#CD002F}.disabled .upload-dropzone{pointer-events:none;border-color:#BFBBBB;color:#BFBBBB}.disabled .upload-dropzone ifx-icon{color:#BFBBBB}.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-upload-status{font-style:normal;font-weight:400;font-size:0.75rem;line-height:1rem;letter-spacing:0.2px;margin-top:8px}.file-upload-status.file-upload-status__error{display:flex;align-items:center;color:#CD002F}.file-upload-status.file-upload-status__error ifx-icon{position:relative;top:-1px;color:#CD002F;margin-right:8px}.upload-heading{font:600 1.125rem/1.625rem \"Source Sans 3\";margin-bottom:8px}.file-list-wrapper{margin-top:16px}.file-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:16px}.file-item{border:1px solid #BFBBBB;padding-top:12px;padding-right:16px;padding-bottom:8px;padding-left:16px;display:flex;gap:8px}.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:12px}.file-middle-row .file-status ifx-icon{margin-right:8px}.file-progress-row{margin-top:4px}.file-progress-row ifx-progress-bar{width:100%}.upload-success{border-color:#0A8276}.upload-success .file-status ifx-icon{position:relative;top:1px;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.ifxFileUploadAllComplete = createEvent(this, "ifxFileUploadAllComplete", 7);
|
23
|
+
this.ifxFileUploadAbort = createEvent(this, "ifxFileUploadAbort", 7);
|
24
|
+
this.ifxFileUploadDrop = createEvent(this, "ifxFileUploadDrop", 7);
|
25
|
+
this.ifxFileUploadClick = createEvent(this, "ifxFileUploadClick", 7);
|
26
|
+
this.ifxFileUploadMaxFilesExceeded = createEvent(this, "ifxFileUploadMaxFilesExceeded", 7);
|
27
|
+
this.ifxFileUploadValidation = createEvent(this, "ifxFileUploadValidation", 7);
|
28
|
+
this.ifxFileUploadRetry = createEvent(this, "ifxFileUploadRetry", 7);
|
29
|
+
this.dragAndDrop = false;
|
30
|
+
this.required = false;
|
31
|
+
this.disabled = false;
|
32
|
+
this.maxFileSizeMB = 7;
|
33
|
+
/** Default set of allowed file extensions (used internally). Can be extended using `additionalAllowedFileTypes`. */
|
34
|
+
this.allowedFileTypes = ['jpg', 'jpeg', 'png', 'pdf', 'mov', 'mp3', 'mp4'];
|
35
|
+
this.additionalAllowedFileTypes = [];
|
36
|
+
this.label = 'Label';
|
37
|
+
this.labelRequiredError = 'At least one file must be uploaded';
|
38
|
+
this.labelBrowseFiles = 'Browse files';
|
39
|
+
this.labelDragAndDrop = 'Drag & Drop or browse files to upload';
|
40
|
+
this.labelUploadedFilesHeading = 'Uploaded files';
|
41
|
+
this.labelFileTooLarge = 'Upload failed. Max file size: {{size}}MB.';
|
42
|
+
this.labelUnsupportedFileType = 'Unsupported file type.';
|
43
|
+
this.labelUploaded = 'Successfully uploaded';
|
44
|
+
this.labelUploadFailed = 'Upload failed. Please try again.';
|
45
|
+
this.labelSupportedFormatsTemplate = 'Supported file formats: {{types}}. Max file size: {{size}}MB.';
|
46
|
+
this.labelFileSingular = 'file';
|
47
|
+
this.labelFilePlural = 'files';
|
48
|
+
this.labelMaxFilesInfo = 'Up to {{count}} {{files}}.';
|
49
|
+
this.labelMaxFilesExceeded = 'Upload limit exceeded. Only {{count}} {{files}} allowed.';
|
50
|
+
this.ariaLabelBrowseFiles = 'Browse files';
|
51
|
+
this.ariaLabelDropzone = 'Upload area. Click to browse or drag and drop files.';
|
52
|
+
this.ariaLabelFileInput = 'Upload file';
|
53
|
+
this.ariaLabelRemoveFile = 'Remove file';
|
54
|
+
this.ariaLabelCancelUpload = 'Cancel upload';
|
55
|
+
this.ariaLabelRetryUpload = 'Retry upload';
|
56
|
+
this.ariaLabelUploadingStatus = 'Upload in progress';
|
57
|
+
this.ariaLabelUploadedStatus = 'Upload completed';
|
58
|
+
this.ariaLabelUploadFailedStatus = 'Upload failed';
|
59
|
+
this.internalId = `ifx-file-upload-${Math.random().toString(36).substr(2, 9)}`;
|
60
|
+
this.isDragOver = false;
|
61
|
+
this.files = [];
|
62
|
+
this.uploadTasks = [];
|
63
|
+
this.rejectedSizeFiles = [];
|
64
|
+
this.rejectedTypeFiles = [];
|
65
|
+
this.requiredError = false;
|
66
|
+
this.statusMessage = null;
|
67
|
+
this.fileInputEl = null;
|
68
|
+
this.extensionToMimeMap = {
|
69
|
+
/**
|
70
|
+
* Maps file extensions to MIME types.
|
71
|
+
* This is only used for translating `allowedFileTypes` (extensions) into MIME types,
|
72
|
+
* and for labeling in the UI. It does NOT define which files are globally allowed.
|
73
|
+
*/
|
74
|
+
// Images
|
75
|
+
jpg: 'image/jpeg',
|
76
|
+
jpeg: 'image/jpeg',
|
77
|
+
png: 'image/png',
|
78
|
+
gif: 'image/gif',
|
79
|
+
svg: 'image/svg+xml',
|
80
|
+
webp: 'image/webp',
|
81
|
+
// Documents
|
82
|
+
pdf: 'application/pdf',
|
83
|
+
doc: 'application/msword',
|
84
|
+
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
85
|
+
xls: 'application/vnd.ms-excel',
|
86
|
+
xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
87
|
+
ppt: 'application/vnd.ms-powerpoint',
|
88
|
+
pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
89
|
+
txt: 'text/plain',
|
90
|
+
csv: 'text/csv',
|
91
|
+
json: 'application/json',
|
92
|
+
// Audio/Video
|
93
|
+
mp3: 'audio/mpeg',
|
94
|
+
wav: 'audio/wav',
|
95
|
+
mp4: 'video/mp4',
|
96
|
+
mov: 'video/quicktime',
|
97
|
+
webm: 'video/webm',
|
98
|
+
// Archive / Code
|
99
|
+
zip: 'application/zip',
|
100
|
+
rar: 'application/vnd.rar',
|
101
|
+
tar: 'application/x-tar',
|
102
|
+
gz: 'application/gzip',
|
103
|
+
// Sonstiges
|
104
|
+
xml: 'application/xml',
|
105
|
+
html: 'text/html',
|
106
|
+
css: 'text/css',
|
107
|
+
js: 'application/javascript'
|
108
|
+
};
|
109
|
+
}
|
110
|
+
get maxFiles() {
|
111
|
+
return this._maxFiles;
|
112
|
+
}
|
113
|
+
set maxFiles(value) {
|
114
|
+
if (typeof value === 'number' && value < 1) {
|
115
|
+
console.warn('Invalid `maxFiles` value. Must be >= 1. Value ignored.');
|
116
|
+
this._maxFiles = undefined;
|
117
|
+
}
|
118
|
+
else {
|
119
|
+
this._maxFiles = value;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
validateRequired() {
|
123
|
+
var _a, _b;
|
124
|
+
if (this.required && this.files.length === 0) {
|
125
|
+
this.requiredError = true;
|
126
|
+
if (((_a = this.statusMessage) === null || _a === void 0 ? void 0 : _a.text) !== this.labelRequiredError) {
|
127
|
+
this.statusMessage = {
|
128
|
+
type: 'error',
|
129
|
+
text: this.labelRequiredError
|
130
|
+
};
|
131
|
+
}
|
132
|
+
this.ifxFileUploadValidation.emit({ valid: false });
|
133
|
+
}
|
134
|
+
else {
|
135
|
+
this.requiredError = false;
|
136
|
+
if (((_b = this.statusMessage) === null || _b === void 0 ? void 0 : _b.text) === this.labelRequiredError) {
|
137
|
+
this.statusMessage = null;
|
138
|
+
}
|
139
|
+
this.ifxFileUploadValidation.emit({ valid: true });
|
140
|
+
}
|
141
|
+
}
|
142
|
+
pluralize(count) {
|
143
|
+
return count === 1 ? this.labelFileSingular : this.labelFilePlural;
|
144
|
+
}
|
145
|
+
getNormalizedFileTypes() {
|
146
|
+
if (Array.isArray(this.allowedFileTypes)) {
|
147
|
+
return this.allowedFileTypes;
|
148
|
+
}
|
149
|
+
try {
|
150
|
+
return JSON.parse(this.allowedFileTypes);
|
151
|
+
}
|
152
|
+
catch (_a) {
|
153
|
+
return this.allowedFileTypes.split(',').map(t => t.trim());
|
154
|
+
}
|
155
|
+
}
|
156
|
+
getLabelFromMimeType(mime) {
|
157
|
+
for (const [ext, knownMime] of Object.entries(this.extensionToMimeMap)) {
|
158
|
+
if (knownMime === mime) {
|
159
|
+
return ext.toUpperCase();
|
160
|
+
}
|
161
|
+
}
|
162
|
+
return mime; // fallback: show raw MIME
|
163
|
+
}
|
164
|
+
handleFileChange(event) {
|
165
|
+
const input = event.target;
|
166
|
+
if (!input.files)
|
167
|
+
return;
|
168
|
+
this.processFiles(input.files);
|
169
|
+
}
|
170
|
+
handleDrop(event) {
|
171
|
+
var _a;
|
172
|
+
if (this.disabled)
|
173
|
+
return;
|
174
|
+
event.preventDefault();
|
175
|
+
event.stopPropagation();
|
176
|
+
this.isDragOver = false;
|
177
|
+
if ((_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.files) {
|
178
|
+
const droppedFiles = Array.from(event.dataTransfer.files);
|
179
|
+
const allowedMimes = [
|
180
|
+
...this.getNormalizedFileTypes()
|
181
|
+
.map(ext => this.extensionToMimeMap[ext.toLowerCase()])
|
182
|
+
.filter(Boolean),
|
183
|
+
...this.getAdditionalMimeTypes()
|
184
|
+
];
|
185
|
+
const acceptedFiles = [];
|
186
|
+
const rejectedFiles = [];
|
187
|
+
droppedFiles.forEach(file => {
|
188
|
+
const isValidType = allowedMimes.includes(file.type);
|
189
|
+
const isValidSize = file.size <= this.maxFileSizeMB * 1024 * 1024;
|
190
|
+
if (isValidType && isValidSize)
|
191
|
+
acceptedFiles.push(file);
|
192
|
+
else
|
193
|
+
rejectedFiles.push(file);
|
194
|
+
});
|
195
|
+
this.ifxFileUploadDrop.emit({
|
196
|
+
droppedFiles,
|
197
|
+
acceptedFiles,
|
198
|
+
rejectedFiles
|
199
|
+
});
|
200
|
+
this.processFiles(event.dataTransfer.files);
|
201
|
+
}
|
202
|
+
}
|
203
|
+
handleDragOver(event) {
|
204
|
+
if (this.disabled)
|
205
|
+
return;
|
206
|
+
event.preventDefault();
|
207
|
+
this.isDragOver = true;
|
208
|
+
}
|
209
|
+
handleDragLeave(event) {
|
210
|
+
if (this.disabled)
|
211
|
+
return;
|
212
|
+
event.preventDefault();
|
213
|
+
this.isDragOver = false;
|
214
|
+
}
|
215
|
+
processFiles(fileList) {
|
216
|
+
const selectedFiles = Array.from(fileList);
|
217
|
+
const allowedMimes = [
|
218
|
+
...this.getNormalizedFileTypes()
|
219
|
+
.map(ext => this.extensionToMimeMap[ext.toLowerCase()])
|
220
|
+
.filter(Boolean),
|
221
|
+
...this.getAdditionalMimeTypes()
|
222
|
+
];
|
223
|
+
const validFiles = [];
|
224
|
+
const rejectedSize = [];
|
225
|
+
const rejectedType = [];
|
226
|
+
selectedFiles.forEach(file => {
|
227
|
+
const isValidType = allowedMimes.includes(file.type);
|
228
|
+
const isValidSize = file.size <= this.maxFileSizeMB * 1024 * 1024;
|
229
|
+
const isDuplicate = this.files.some(existing => existing.name === file.name && existing.size === file.size);
|
230
|
+
if (isDuplicate) {
|
231
|
+
this.ifxFileUploadInvalid.emit({ file, reason: 'duplicate' });
|
232
|
+
this.ifxFileUploadError.emit({
|
233
|
+
file,
|
234
|
+
errorType: 'duplicate',
|
235
|
+
message: `File "${file.name}" is already added`,
|
236
|
+
reason: 'duplicate'
|
237
|
+
});
|
238
|
+
return;
|
239
|
+
}
|
240
|
+
if (isValidType && isValidSize) {
|
241
|
+
validFiles.push(file);
|
242
|
+
}
|
243
|
+
else {
|
244
|
+
if (!isValidType) {
|
245
|
+
rejectedType.push(file.name);
|
246
|
+
this.ifxFileUploadInvalid.emit({ file, reason: 'invalid-type' });
|
247
|
+
}
|
248
|
+
if (!isValidSize) {
|
249
|
+
rejectedSize.push(file.name);
|
250
|
+
this.ifxFileUploadInvalid.emit({ file, reason: 'invalid-size' });
|
251
|
+
}
|
252
|
+
this.ifxFileUploadError.emit({
|
253
|
+
file,
|
254
|
+
errorType: !isValidType ? 'invalid-type' : 'file-too-large',
|
255
|
+
message: 'Invalid file rejected',
|
256
|
+
reason: !isValidType ? 'unsupported-type' : 'file-too-large'
|
257
|
+
});
|
258
|
+
}
|
259
|
+
});
|
260
|
+
this.rejectedSizeFiles = [...this.rejectedSizeFiles, ...rejectedSize];
|
261
|
+
this.rejectedTypeFiles = [...this.rejectedTypeFiles, ...rejectedType];
|
262
|
+
if (this.maxFiles && this.files.length + validFiles.length > this.maxFiles) {
|
263
|
+
const availableSlots = this.maxFiles - this.files.length;
|
264
|
+
const limitedFiles = validFiles.slice(0, Math.max(availableSlots, 0));
|
265
|
+
const overflowFiles = validFiles.slice(availableSlots);
|
266
|
+
this.files = [...this.files, ...limitedFiles];
|
267
|
+
limitedFiles.forEach(file => this.startUpload(file));
|
268
|
+
if (limitedFiles.length > 0) {
|
269
|
+
this.ifxFileUploadAdd.emit({ addedFiles: limitedFiles, files: this.files });
|
270
|
+
this.ifxFileUploadChange.emit({ files: this.files });
|
271
|
+
}
|
272
|
+
overflowFiles.forEach(file => {
|
273
|
+
this.ifxFileUploadInvalid.emit({ file, reason: 'too-many-files' });
|
274
|
+
this.ifxFileUploadError.emit({
|
275
|
+
file,
|
276
|
+
errorType: 'too-many-files',
|
277
|
+
message: `Upload limit exceeded. Max ${this.maxFiles} files allowed.`,
|
278
|
+
reason: 'too-many-files'
|
279
|
+
});
|
280
|
+
});
|
281
|
+
if (overflowFiles.length > 0) {
|
282
|
+
this.statusMessage = {
|
283
|
+
type: 'error',
|
284
|
+
text: this.labelMaxFilesExceeded
|
285
|
+
.replace('{{count}}', this.maxFiles.toString())
|
286
|
+
.replace('{{files}}', this.pluralize(this.maxFiles))
|
287
|
+
};
|
288
|
+
this.ifxFileUploadMaxFilesExceeded.emit({
|
289
|
+
maxFiles: this.maxFiles,
|
290
|
+
attempted: this.files.length + validFiles.length
|
291
|
+
});
|
292
|
+
}
|
293
|
+
return;
|
294
|
+
}
|
295
|
+
validFiles.forEach(file => this.startUpload(file));
|
296
|
+
this.files = [...this.files, ...validFiles];
|
297
|
+
if (validFiles.length > 0) {
|
298
|
+
this.ifxFileUploadAdd.emit({ addedFiles: validFiles, files: this.files });
|
299
|
+
this.ifxFileUploadChange.emit({ files: this.files });
|
300
|
+
}
|
301
|
+
this.validateRequired();
|
302
|
+
}
|
303
|
+
retryUpload(file) {
|
304
|
+
const taskIndex = this.uploadTasks.findIndex(t => t.file.name === file.name);
|
305
|
+
if (taskIndex !== -1) {
|
306
|
+
this.uploadTasks.splice(taskIndex, 1);
|
307
|
+
this.uploadTasks = [...this.uploadTasks];
|
308
|
+
}
|
309
|
+
this.ifxFileUploadRetry.emit({ file });
|
310
|
+
this.startUpload(file);
|
311
|
+
}
|
312
|
+
startUpload(file) {
|
313
|
+
this.ifxFileUploadStart.emit({ file });
|
314
|
+
const task = {
|
315
|
+
file,
|
316
|
+
progress: 3, // Start with initial progress for better UX
|
317
|
+
intervalId: null,
|
318
|
+
completed: false,
|
319
|
+
};
|
320
|
+
this.uploadTasks = [...this.uploadTasks, task];
|
321
|
+
if (this.uploadHandler) {
|
322
|
+
this.uploadHandler(file, (percent) => {
|
323
|
+
if (percent > task.progress) {
|
324
|
+
task.progress = Math.min(100, percent);
|
325
|
+
this.uploadTasks = [...this.uploadTasks];
|
326
|
+
}
|
327
|
+
}).then(() => {
|
328
|
+
task.progress = 100;
|
329
|
+
task.completed = true;
|
330
|
+
this.uploadTasks = [...this.uploadTasks];
|
331
|
+
this.ifxFileUploadComplete.emit({ file });
|
332
|
+
this.ifxFileUploadChange.emit({ files: this.files });
|
333
|
+
if (this.uploadTasks.every(t => t.completed)) {
|
334
|
+
this.ifxFileUploadAllComplete.emit({ files: this.files });
|
335
|
+
}
|
336
|
+
}).catch(() => {
|
337
|
+
task.error = true;
|
338
|
+
this.uploadTasks = [...this.uploadTasks];
|
339
|
+
this.ifxFileUploadError.emit({
|
340
|
+
file,
|
341
|
+
errorType: 'upload-failed',
|
342
|
+
message: 'Upload handler rejected file',
|
343
|
+
reason: 'custom'
|
344
|
+
});
|
345
|
+
});
|
346
|
+
}
|
347
|
+
else {
|
348
|
+
const totalSize = file.size;
|
349
|
+
const fakeUploadSpeed = 100000;
|
350
|
+
let uploaded = 0;
|
351
|
+
task.intervalId = window.setInterval(() => {
|
352
|
+
uploaded += fakeUploadSpeed / 5;
|
353
|
+
const progress = Math.min(100, Math.round((uploaded / totalSize) * 100));
|
354
|
+
task.progress = progress;
|
355
|
+
this.uploadTasks = [...this.uploadTasks];
|
356
|
+
if (progress >= 100) {
|
357
|
+
clearInterval(task.intervalId);
|
358
|
+
task.completed = true;
|
359
|
+
task.intervalId = null;
|
360
|
+
this.uploadTasks = [...this.uploadTasks];
|
361
|
+
this.ifxFileUploadComplete.emit({ file });
|
362
|
+
this.ifxFileUploadChange.emit({ files: this.files });
|
363
|
+
if (this.uploadTasks.every(t => t.completed)) {
|
364
|
+
this.ifxFileUploadAllComplete.emit({ files: this.files });
|
365
|
+
}
|
366
|
+
}
|
367
|
+
}, 200);
|
368
|
+
}
|
369
|
+
this.uploadTasks = [...this.uploadTasks, task];
|
370
|
+
}
|
371
|
+
cancelUpload(file) {
|
372
|
+
const taskIndex = this.uploadTasks.findIndex(t => t.file.name === file.name);
|
373
|
+
if (taskIndex !== -1) {
|
374
|
+
const task = this.uploadTasks[taskIndex];
|
375
|
+
if ((task === null || task === void 0 ? void 0 : task.intervalId) !== null) {
|
376
|
+
clearInterval(task.intervalId);
|
377
|
+
}
|
378
|
+
this.uploadTasks = this.uploadTasks.filter((_, i) => i !== taskIndex);
|
379
|
+
}
|
380
|
+
this.files = this.files.filter(f => f.name !== file.name);
|
381
|
+
this.ifxFileUploadAbort.emit({ file });
|
382
|
+
this.ifxFileUploadChange.emit({ files: this.files });
|
383
|
+
if (this.fileInputEl) {
|
384
|
+
this.fileInputEl.value = '';
|
385
|
+
}
|
386
|
+
this.validateRequired();
|
387
|
+
}
|
388
|
+
removeFile(file) {
|
389
|
+
var _a;
|
390
|
+
this.uploadTasks = this.uploadTasks.filter(task => task.file.name !== file.name);
|
391
|
+
this.files = this.files.filter(f => f.name !== file.name);
|
392
|
+
this.ifxFileUploadRemove.emit({ removedFile: file, files: this.files });
|
393
|
+
this.ifxFileUploadChange.emit({ files: this.files });
|
394
|
+
this.validateRequired();
|
395
|
+
if (this.fileInputEl) {
|
396
|
+
this.fileInputEl.value = '';
|
397
|
+
}
|
398
|
+
if (this.maxFiles &&
|
399
|
+
this.files.length < this.maxFiles &&
|
400
|
+
((_a = this.statusMessage) === null || _a === void 0 ? void 0 : _a.text) !== this.labelRequiredError) {
|
401
|
+
this.statusMessage = null;
|
402
|
+
}
|
403
|
+
}
|
404
|
+
clearRejectedFile(fileName, type) {
|
405
|
+
if (type === 'size') {
|
406
|
+
this.rejectedSizeFiles = this.rejectedSizeFiles.filter(f => f !== fileName);
|
407
|
+
}
|
408
|
+
else {
|
409
|
+
this.rejectedTypeFiles = this.rejectedTypeFiles.filter(f => f !== fileName);
|
410
|
+
}
|
411
|
+
if (this.fileInputEl) {
|
412
|
+
this.fileInputEl.value = '';
|
413
|
+
}
|
414
|
+
if (this.maxFiles && this.files.length < this.maxFiles) {
|
415
|
+
this.statusMessage = null;
|
416
|
+
}
|
417
|
+
this.validateRequired();
|
418
|
+
}
|
419
|
+
splitFileNameParts(file) {
|
420
|
+
const name = file.name;
|
421
|
+
const dotIndex = name.lastIndexOf('.');
|
422
|
+
if (dotIndex === -1)
|
423
|
+
return { base: name, ext: '' };
|
424
|
+
return {
|
425
|
+
base: name.substring(0, dotIndex),
|
426
|
+
ext: name.substring(dotIndex)
|
427
|
+
};
|
428
|
+
}
|
429
|
+
getFileIcon(file) {
|
430
|
+
var _a;
|
431
|
+
const extension = (_a = file.name.split('.').pop()) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
432
|
+
switch (extension) {
|
433
|
+
case 'pdf': return 'file-pdf-16';
|
434
|
+
case 'jpg':
|
435
|
+
case 'jpeg': return 'file-jpg-16';
|
436
|
+
case 'png': return 'file-png-16';
|
437
|
+
case 'mov': return 'file-mov-16';
|
438
|
+
case 'mp3': return 'file-mp3-16';
|
439
|
+
case 'mp4': return 'file-mp4-16';
|
440
|
+
default: return 'file-16';
|
441
|
+
}
|
442
|
+
}
|
443
|
+
formatSize(bytes) {
|
444
|
+
if (bytes >= 1024 * 1024 * 1024) {
|
445
|
+
return `${(bytes / (1024 * 1024 * 1024)).toFixed(1)} GB`;
|
446
|
+
}
|
447
|
+
else if (bytes >= 1024 * 1024) {
|
448
|
+
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
|
449
|
+
}
|
450
|
+
else if (bytes >= 1024) {
|
451
|
+
return `${(bytes / 1024).toFixed(0)} KB`;
|
452
|
+
}
|
453
|
+
else {
|
454
|
+
return `${bytes} B`;
|
455
|
+
}
|
456
|
+
}
|
457
|
+
getAcceptAttribute() {
|
458
|
+
const extensionTypes = this.getNormalizedFileTypes().map(ext => '.' + ext.toLowerCase());
|
459
|
+
const mimeTypes = this.getAdditionalMimeTypes();
|
460
|
+
return [...extensionTypes, ...mimeTypes].join(',');
|
461
|
+
}
|
462
|
+
getFormattedProgressText(task) {
|
463
|
+
const uploadedSize = Math.round((task.progress / 100) * task.file.size);
|
464
|
+
const uploadedText = this.formatSize(uploadedSize);
|
465
|
+
const totalText = this.formatSize(task.file.size);
|
466
|
+
return `${uploadedText} / ${totalText} uploaded`;
|
467
|
+
}
|
468
|
+
getAdditionalMimeTypes() {
|
469
|
+
if (!this.additionalAllowedFileTypes)
|
470
|
+
return [];
|
471
|
+
if (Array.isArray(this.additionalAllowedFileTypes))
|
472
|
+
return this.additionalAllowedFileTypes;
|
473
|
+
return this.additionalAllowedFileTypes.split(',').map(t => t.trim());
|
474
|
+
}
|
475
|
+
getSupportedFileText() {
|
476
|
+
const extensions = this.getNormalizedFileTypes().map(ext => ext.toUpperCase());
|
477
|
+
const mimeTypes = this.getAdditionalMimeTypes().map(mime => this.getLabelFromMimeType(mime));
|
478
|
+
const allTypes = [...extensions, ...mimeTypes];
|
479
|
+
const typesLabel = allTypes.join(', ');
|
480
|
+
let text = this.labelSupportedFormatsTemplate
|
481
|
+
.replace('{{types}}', typesLabel)
|
482
|
+
.replace('{{size}}', this.maxFileSizeMB.toString());
|
483
|
+
if (this.labelMaxFilesInfo && this.maxFiles) {
|
484
|
+
const fileWord = this.pluralize(this.maxFiles);
|
485
|
+
const maxFilesText = this.labelMaxFilesInfo
|
486
|
+
.replace('{{count}}', this.maxFiles.toString())
|
487
|
+
.replace('{{files}}', fileWord);
|
488
|
+
text += ` ${maxFilesText}`;
|
489
|
+
}
|
490
|
+
return text;
|
491
|
+
}
|
492
|
+
getFormattedFileTooLargeText() {
|
493
|
+
return this.labelFileTooLarge.replace('{{size}}', this.maxFileSizeMB.toString());
|
494
|
+
}
|
495
|
+
renderStatusMessage() {
|
496
|
+
if (!this.statusMessage)
|
497
|
+
return null;
|
498
|
+
return (h("div", { class: `file-upload-status file-upload-status__${this.statusMessage.type}` }, this.statusMessage.type === 'error' && (h("ifx-icon", { icon: "c-warning-16" })), this.statusMessage.text));
|
499
|
+
}
|
500
|
+
isInputDisabled() {
|
501
|
+
return this.disabled || (this.maxFiles !== undefined && this.files.length >= this.maxFiles);
|
502
|
+
}
|
503
|
+
componentDidLoad() {
|
504
|
+
if (this.hostElement.hasAttribute('show-demo-states')) {
|
505
|
+
this.showDemoStates = true;
|
506
|
+
}
|
507
|
+
if (this.showDemoStates) {
|
508
|
+
this.injectDemoState();
|
509
|
+
}
|
510
|
+
}
|
511
|
+
// Storybook Demo
|
512
|
+
async injectDemoState() {
|
513
|
+
const dummyContent = new Array(50000).fill('a').join(''); // ~50 KB
|
514
|
+
const bigContent = dummyContent + dummyContent; // ~100 KB
|
515
|
+
const uploading = new File([dummyContent], 'Image.jpg', { type: 'image/jpeg' }); // ~50 KB
|
516
|
+
const uploaded = new File([bigContent], 'File.pdf', { type: 'application/pdf' }); // ~100 KB
|
517
|
+
const failed = new File([dummyContent], 'Text.docx', { type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' }); // ~50 KB
|
518
|
+
const tooLarge = new File([bigContent + bigContent + bigContent], 'Video.mp4', { type: 'video/mp4' }); // ~300 KB
|
519
|
+
const unsupported = new File(['demo'], 'Script.exe', { type: 'application/x-msdownload' }); // very small
|
520
|
+
this.files = [uploaded, uploading, failed];
|
521
|
+
this.uploadTasks = [
|
522
|
+
{ file: uploaded, progress: 100, intervalId: null, completed: true },
|
523
|
+
{ file: uploading, progress: 40, intervalId: null, completed: false },
|
524
|
+
{ file: failed, progress: 80, intervalId: null, completed: false, error: true }
|
525
|
+
];
|
526
|
+
this.rejectedSizeFiles = [tooLarge.name];
|
527
|
+
this.rejectedTypeFiles = [unsupported.name];
|
528
|
+
}
|
529
|
+
// Storybook Demo
|
530
|
+
async triggerDemoValidation() {
|
531
|
+
this.validateRequired();
|
532
|
+
}
|
533
|
+
render() {
|
534
|
+
return (h("div", { key: 'a80f89cee43ccff778f59842bb62e64e4b425753', class: {
|
535
|
+
'file-upload-wrapper': true,
|
536
|
+
'disabled': this.disabled
|
537
|
+
} }, this.label && (h("label", { key: 'b7de45f36b57f21185fc43173a90dd8fbda0b690', class: "file-upload-label", htmlFor: this.internalId }, this.label, this.required && (h("span", { key: 'd72b7c08c54f8fad7ea298df762b815eb565f648', class: `required ${this.requiredError ? 'error' : ''}` }, "*")))), this.dragAndDrop ? this.renderDragAndDropArea() : this.renderUploadArea(), (this.files.length > 0 || this.rejectedSizeFiles.length > 0 || this.rejectedTypeFiles.length > 0) && (h("div", { key: 'f0553b7a7f45764c416d5daa594aa9b1232f6399', class: "file-list-wrapper" }, h("div", { key: '56a0a3004b16ecb9bb348a274c2c2a286ca745e1', class: "upload-heading" }, this.labelUploadedFilesHeading), h("ul", { key: 'f0076761dab5015e5dd02f5ae8f8e4d65f5e9eef', class: "file-list" }, this.rejectedSizeFiles.map(fileName => (h("li", { class: "file-item upload-failed", key: `rejected-size-${fileName}` }, 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": this.ariaLabelRemoveFile, onClick: () => this.clearRejectedFile(fileName, 'size') }))), h("div", { class: "file-middle-row" }, h("span", { class: "file-status", "aria-label": this.labelFileTooLarge.replace('{{size}}', this.maxFileSizeMB.toString()) }, this.getFormattedFileTooLargeText())))))), this.rejectedTypeFiles.map(fileName => (h("li", { class: "file-item upload-failed", key: `rejected-type-${fileName}` }, 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": this.ariaLabelRemoveFile, onClick: () => this.clearRejectedFile(fileName, 'type') }))), h("div", { class: "file-middle-row" }, h("span", { class: "file-status", "aria-label": this.labelUnsupportedFileType }, this.labelUnsupportedFileType)))))), this.files.map((file) => {
|
538
|
+
var _a;
|
539
|
+
const task = this.uploadTasks.find(t => t.file.name === file.name);
|
540
|
+
const progress = (_a = task === null || task === void 0 ? void 0 : task.progress) !== null && _a !== void 0 ? _a : 100;
|
541
|
+
const isUploading = task && !task.completed;
|
542
|
+
const isError = (task === null || task === void 0 ? void 0 : task.error) === true;
|
543
|
+
const itemClass = isError ? 'file-item upload-failed' : isUploading ? 'file-item uploading' : 'file-item upload-success';
|
544
|
+
const uniqueKey = `${file.name}-${file.size}`;
|
545
|
+
const { base, ext } = this.splitFileNameParts(file);
|
546
|
+
return (h("li", { class: itemClass, key: uniqueKey }, 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: "refresh-16", size: "s", "aria-label": this.ariaLabelRetryUpload, onClick: () => this.retryUpload(file), style: { display: isError ? 'inline-flex' : 'none' } }), h("ifx-icon-button", { shape: "square", variant: "tertiary", icon: "cross-16", size: "s", "aria-label": this.ariaLabelCancelUpload, 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": this.ariaLabelRemoveFile, onClick: () => this.removeFile(file), style: { display: !isUploading ? 'inline-flex' : 'none' } }))), h("div", { class: "file-middle-row" }, isUploading && task && !task.error && (h("span", { class: "file-uploading", "aria-label": this.ariaLabelUploadingStatus }, this.getFormattedProgressText(task))), !isUploading && !isError && (h("span", null, h("span", { class: "file-size" }, this.formatSize(file.size)), h("span", { class: "file-status", "aria-label": this.ariaLabelUploadedStatus }, h("ifx-icon", { icon: "check-12" }), this.labelUploaded))), isError && (h("span", { class: "file-status", "aria-label": this.ariaLabelUploadFailedStatus }, this.labelUploadFailed))), isUploading && task && !task.error && (h("div", { class: "file-progress-row" }, h("ifx-progress-bar", { size: "s", value: progress, "show-label": "true" }))))));
|
547
|
+
}))))));
|
548
|
+
}
|
549
|
+
renderUploadArea() {
|
550
|
+
const handleInputRef = (el) => {
|
551
|
+
this.fileInputEl = el;
|
552
|
+
};
|
553
|
+
return (h("div", { class: { 'upload-button': true } }, h("ifx-button", { variant: "secondary", onClick: () => { var _a; return (_a = this.fileInputEl) === null || _a === void 0 ? void 0 : _a.click(); }, disabled: this.isInputDisabled(), "aria-label": this.ariaLabelBrowseFiles }, h("ifx-icon", { icon: "upload-16" }), this.labelBrowseFiles), h("input", { id: this.internalId, ref: handleInputRef, type: "file", accept: this.getAcceptAttribute(), multiple: true, onChange: (e) => this.handleFileChange(e), style: { display: 'none' }, disabled: this.isInputDisabled(), "aria-label": this.ariaLabelFileInput }), h("p", { class: "file-upload-info" }, this.getSupportedFileText()), this.renderStatusMessage()));
|
554
|
+
}
|
555
|
+
renderDragAndDropArea() {
|
556
|
+
const handleInputRef = (el) => {
|
557
|
+
this.fileInputEl = el;
|
558
|
+
};
|
559
|
+
const triggerInputClick = () => {
|
560
|
+
if (this.fileInputEl) {
|
561
|
+
this.fileInputEl.click();
|
562
|
+
}
|
563
|
+
};
|
564
|
+
return (h("div", { class: { 'disabled': this.isInputDisabled() } }, h("div", { class: { 'upload-dropzone': true, 'drag-over': this.isDragOver, 'error': this.requiredError }, onClick: triggerInputClick, onDragOver: (e) => this.handleDragOver(e), onDragLeave: (e) => this.handleDragLeave(e), onDrop: (e) => this.handleDrop(e), role: "button", tabIndex: 0, "aria-label": this.ariaLabelDropzone }, 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", { id: this.internalId, ref: handleInputRef, type: "file", accept: this.getAcceptAttribute(), multiple: true, onChange: (e) => this.handleFileChange(e), disabled: this.isInputDisabled(), "aria-label": this.ariaLabelFileInput }))), this.renderStatusMessage()));
|
565
|
+
}
|
566
|
+
get hostElement() { return this; }
|
567
|
+
static get style() { return IfxFileUploadStyle0; }
|
568
|
+
}, [1, "ifx-file-upload", {
|
569
|
+
"dragAndDrop": [4, "drag-and-drop"],
|
570
|
+
"required": [4],
|
571
|
+
"disabled": [4],
|
572
|
+
"maxFileSizeMB": [2, "max-file-size-m-b"],
|
573
|
+
"allowedFileTypes": [1, "allowed-file-types"],
|
574
|
+
"additionalAllowedFileTypes": [1, "additional-allowed-file-types"],
|
575
|
+
"uploadHandler": [16],
|
576
|
+
"maxFiles": [6146, "max-files"],
|
577
|
+
"label": [1],
|
578
|
+
"labelRequiredError": [1, "label-required-error"],
|
579
|
+
"labelBrowseFiles": [1, "label-browse-files"],
|
580
|
+
"labelDragAndDrop": [1, "label-drag-and-drop"],
|
581
|
+
"labelUploadedFilesHeading": [1, "label-uploaded-files-heading"],
|
582
|
+
"labelFileTooLarge": [1, "label-file-too-large"],
|
583
|
+
"labelUnsupportedFileType": [1, "label-unsupported-file-type"],
|
584
|
+
"labelUploaded": [1, "label-uploaded"],
|
585
|
+
"labelUploadFailed": [1, "label-upload-failed"],
|
586
|
+
"labelSupportedFormatsTemplate": [1, "label-supported-formats-template"],
|
587
|
+
"labelFileSingular": [1, "label-file-singular"],
|
588
|
+
"labelFilePlural": [1, "label-file-plural"],
|
589
|
+
"labelMaxFilesInfo": [1, "label-max-files-info"],
|
590
|
+
"labelMaxFilesExceeded": [1, "label-max-files-exceeded"],
|
591
|
+
"ariaLabelBrowseFiles": [1, "aria-label-browse-files"],
|
592
|
+
"ariaLabelDropzone": [1, "aria-label-dropzone"],
|
593
|
+
"ariaLabelFileInput": [1, "aria-label-file-input"],
|
594
|
+
"ariaLabelRemoveFile": [1, "aria-label-remove-file"],
|
595
|
+
"ariaLabelCancelUpload": [1, "aria-label-cancel-upload"],
|
596
|
+
"ariaLabelRetryUpload": [1, "aria-label-retry-upload"],
|
597
|
+
"ariaLabelUploadingStatus": [1, "aria-label-uploading-status"],
|
598
|
+
"ariaLabelUploadedStatus": [1, "aria-label-uploaded-status"],
|
599
|
+
"ariaLabelUploadFailedStatus": [1, "aria-label-upload-failed-status"],
|
600
|
+
"isDragOver": [32],
|
601
|
+
"files": [32],
|
602
|
+
"uploadTasks": [32],
|
603
|
+
"rejectedSizeFiles": [32],
|
604
|
+
"rejectedTypeFiles": [32],
|
605
|
+
"requiredError": [32],
|
606
|
+
"statusMessage": [32],
|
607
|
+
"injectDemoState": [64],
|
608
|
+
"triggerDemoValidation": [64]
|
609
|
+
}]);
|
610
|
+
function defineCustomElement$1() {
|
611
|
+
if (typeof customElements === "undefined") {
|
612
|
+
return;
|
613
|
+
}
|
614
|
+
const components = ["ifx-file-upload", "ifx-button", "ifx-icon", "ifx-icon-button", "ifx-progress-bar"];
|
615
|
+
components.forEach(tagName => { switch (tagName) {
|
616
|
+
case "ifx-file-upload":
|
617
|
+
if (!customElements.get(tagName)) {
|
618
|
+
customElements.define(tagName, IfxFileUpload$1);
|
619
|
+
}
|
620
|
+
break;
|
621
|
+
case "ifx-button":
|
622
|
+
if (!customElements.get(tagName)) {
|
623
|
+
defineCustomElement$5();
|
624
|
+
}
|
625
|
+
break;
|
626
|
+
case "ifx-icon":
|
627
|
+
if (!customElements.get(tagName)) {
|
628
|
+
defineCustomElement$4();
|
629
|
+
}
|
630
|
+
break;
|
631
|
+
case "ifx-icon-button":
|
632
|
+
if (!customElements.get(tagName)) {
|
633
|
+
defineCustomElement$3();
|
634
|
+
}
|
635
|
+
break;
|
636
|
+
case "ifx-progress-bar":
|
637
|
+
if (!customElements.get(tagName)) {
|
638
|
+
defineCustomElement$2();
|
639
|
+
}
|
640
|
+
break;
|
641
|
+
} });
|
642
|
+
}
|
643
|
+
|
644
|
+
const IfxFileUpload = IfxFileUpload$1;
|
645
|
+
const defineCustomElement = defineCustomElement$1;
|
646
|
+
|
647
|
+
export { IfxFileUpload, defineCustomElement };
|
648
|
+
|
649
|
+
//# sourceMappingURL=ifx-file-upload.js.map
|