@infineon/design-system 0.0.0-stage → 41.11.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/LICENSE +21 -0
- package/dist/cem.json +15580 -0
- package/dist/cjs/animation-DvEMST7j.js +42 -0
- package/dist/cjs/dom-utils-BdvOgC2b.js +19 -0
- package/dist/cjs/icons-oFc1Jyfp.js +1334 -0
- package/dist/cjs/ifx-accordion-item.cjs.entry.js +118 -0
- package/dist/cjs/ifx-accordion.cjs.entry.js +40 -0
- package/dist/cjs/ifx-action-list-item.cjs.entry.js +238 -0
- package/dist/cjs/ifx-action-list.cjs.entry.js +30 -0
- package/dist/cjs/ifx-ai-label.cjs.entry.js +23 -0
- package/dist/cjs/ifx-alert_2.cjs.entry.js +217 -0
- package/dist/cjs/ifx-basic-table.cjs.entry.js +218 -0
- package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js +35 -0
- package/dist/cjs/ifx-breadcrumb-item.cjs.entry.js +116 -0
- package/dist/cjs/ifx-breadcrumb.cjs.entry.js +51 -0
- package/dist/cjs/ifx-button.cjs.entry.js +156 -0
- package/dist/cjs/ifx-card-headline.cjs.entry.js +33 -0
- package/dist/cjs/ifx-card-image.cjs.entry.js +37 -0
- package/dist/cjs/ifx-card-links.cjs.entry.js +18 -0
- package/dist/cjs/ifx-card-overline.cjs.entry.js +17 -0
- package/dist/cjs/ifx-card-text.cjs.entry.js +26 -0
- package/dist/cjs/ifx-card.cjs.entry.js +77 -0
- package/dist/cjs/ifx-checkbox-group.cjs.entry.js +77 -0
- package/dist/cjs/ifx-checkbox.cjs.entry.js +255 -0
- package/dist/cjs/ifx-chip-item_2.cjs.entry.js +392 -0
- package/dist/cjs/ifx-chip.cjs.entry.js +340 -0
- package/dist/cjs/ifx-content-switcher-item.cjs.entry.js +21 -0
- package/dist/cjs/ifx-content-switcher.cjs.entry.js +188 -0
- package/dist/cjs/ifx-counter.cjs.entry.js +74 -0
- package/dist/cjs/ifx-date-picker.cjs.entry.js +203 -0
- package/dist/cjs/ifx-download.cjs.entry.js +40 -0
- package/dist/cjs/ifx-dropdown-header.cjs.entry.js +17 -0
- package/dist/cjs/ifx-dropdown-item.cjs.entry.js +68 -0
- package/dist/cjs/ifx-dropdown-menu.cjs.entry.js +71 -0
- package/dist/cjs/ifx-dropdown-separator.cjs.entry.js +17 -0
- package/dist/cjs/ifx-dropdown-trigger-button.cjs.entry.js +29 -0
- package/dist/cjs/ifx-dropdown-trigger.cjs.entry.js +19 -0
- package/dist/cjs/ifx-dropdown.cjs.entry.js +257 -0
- package/dist/cjs/ifx-error-page.cjs.entry.js +54 -0
- package/dist/cjs/ifx-file-upload.cjs.entry.js +821 -0
- package/dist/cjs/ifx-filter-accordion.cjs.entry.js +67 -0
- package/dist/cjs/ifx-filter-bar.cjs.entry.js +119 -0
- package/dist/cjs/ifx-filter-search.cjs.entry.js +62 -0
- package/dist/cjs/ifx-filter-type-group.cjs.entry.js +168 -0
- package/dist/cjs/ifx-footer-column.cjs.entry.js +18 -0
- package/dist/cjs/ifx-footer.cjs.entry.js +35 -0
- package/dist/cjs/ifx-icon-button.cjs.entry.js +106 -0
- package/dist/cjs/ifx-icon.cjs.entry.js +134 -0
- package/dist/cjs/ifx-icons-preview.cjs.entry.js +15499 -0
- package/dist/cjs/ifx-indicator.cjs.entry.js +46 -0
- package/dist/cjs/ifx-link.cjs.entry.js +125 -0
- package/dist/cjs/ifx-list-entry.cjs.entry.js +44 -0
- package/dist/cjs/ifx-list.cjs.entry.js +143 -0
- package/dist/cjs/ifx-modal.cjs.entry.js +403 -0
- package/dist/cjs/ifx-multiselect-group.cjs.entry.js +42 -0
- package/dist/cjs/ifx-multiselect_2.cjs.entry.js +1151 -0
- package/dist/cjs/ifx-navbar-item.cjs.entry.js +438 -0
- package/dist/cjs/ifx-navbar-profile.cjs.entry.js +173 -0
- package/dist/cjs/ifx-navbar.cjs.entry.js +705 -0
- package/dist/cjs/ifx-notification.cjs.entry.js +58 -0
- package/dist/cjs/ifx-overview-table.cjs.entry.js +59 -0
- package/dist/cjs/ifx-popover.cjs.entry.js +340 -0
- package/dist/cjs/ifx-progress-bar.cjs.entry.js +46 -0
- package/dist/cjs/ifx-radio-button-group.cjs.entry.js +77 -0
- package/dist/cjs/ifx-radio-button.cjs.entry.js +148 -0
- package/dist/cjs/ifx-search-bar.cjs.entry.js +123 -0
- package/dist/cjs/ifx-search-field.cjs.entry.js +562 -0
- package/dist/cjs/ifx-segment.cjs.entry.js +46 -0
- package/dist/cjs/ifx-segmented-control.cjs.entry.js +151 -0
- package/dist/cjs/ifx-select-group.cjs.entry.js +43 -0
- package/dist/cjs/ifx-select_2.cjs.entry.js +574 -0
- package/dist/cjs/ifx-set-filter.cjs.entry.js +83 -0
- package/dist/cjs/ifx-sidebar-item.cjs.entry.js +290 -0
- package/dist/cjs/ifx-sidebar-separator.cjs.entry.js +17 -0
- package/dist/cjs/ifx-sidebar-title.cjs.entry.js +24 -0
- package/dist/cjs/ifx-sidebar.cjs.entry.js +454 -0
- package/dist/cjs/ifx-slider.cjs.entry.js +364 -0
- package/dist/cjs/ifx-spinner.cjs.entry.js +53 -0
- package/dist/cjs/ifx-status.cjs.entry.js +36 -0
- package/dist/cjs/ifx-step.cjs.entry.js +104 -0
- package/dist/cjs/ifx-stepper.cjs.entry.js +168 -0
- package/dist/cjs/ifx-switch.cjs.entry.js +190 -0
- package/dist/cjs/ifx-tab.cjs.entry.js +42 -0
- package/dist/cjs/ifx-table.cjs.entry.js +1466 -0
- package/dist/cjs/ifx-tabs.cjs.entry.js +380 -0
- package/dist/cjs/ifx-templates-ui.cjs.entry.js +58 -0
- package/dist/cjs/ifx-text-field.cjs.entry.js +131 -0
- package/dist/cjs/ifx-textarea.cjs.entry.js +132 -0
- package/dist/cjs/ifx-toast-container.cjs.entry.js +114 -0
- package/dist/cjs/ifx-toast.cjs.entry.js +193 -0
- package/dist/cjs/ifx-tooltip.cjs.entry.js +228 -0
- package/dist/cjs/ifx-tree-view-item.cjs.entry.js +404 -0
- package/dist/cjs/ifx-tree-view.cjs.entry.js +70 -0
- package/dist/cjs/index-BiOrxEib.js +3361 -0
- package/dist/cjs/index-Bp6Dd2i1.js +94 -0
- package/dist/cjs/index.cjs.js +121 -0
- package/dist/cjs/infineon-design-system-stencil.cjs.js +45 -0
- package/dist/cjs/loader.cjs.js +12 -0
- package/dist/cjs/main.esm-Y2lKtAqX.js +56050 -0
- package/dist/cjs/popper-Dmp8OTYh.js +1792 -0
- package/dist/cjs/toast-config-D0RjnbKw.js +21 -0
- package/dist/cjs/tracking-BPjaTlNR.js +144 -0
- package/dist/cjs/url-utils-CPE59br4.js +18 -0
- package/dist/collection/collection-manifest.json +105 -0
- package/dist/collection/components/accordion/accordion.css +10 -0
- package/dist/collection/components/accordion/accordion.js +76 -0
- package/dist/collection/components/accordion/accordionItem.css +128 -0
- package/dist/collection/components/accordion/accordionItem.js +250 -0
- package/dist/collection/components/action-list/action-list-item.css +71 -0
- package/dist/collection/components/action-list/action-list-item.js +409 -0
- package/dist/collection/components/action-list/action-list.css +8 -0
- package/dist/collection/components/action-list/action-list.js +56 -0
- package/dist/collection/components/ai-label/ai-label.css +55 -0
- package/dist/collection/components/ai-label/ai-label.js +68 -0
- package/dist/collection/components/alert/alert.css +142 -0
- package/dist/collection/components/alert/alert.js +167 -0
- package/dist/collection/components/breadcrumb/breadcrumb-item-label.css +33 -0
- package/dist/collection/components/breadcrumb/breadcrumb-item-label.js +121 -0
- package/dist/collection/components/breadcrumb/breadcrumb-item.css +52 -0
- package/dist/collection/components/breadcrumb/breadcrumb-item.js +146 -0
- package/dist/collection/components/breadcrumb/breadcrumb.css +14 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +54 -0
- package/dist/collection/components/button/button.css +247 -0
- package/dist/collection/components/button/button.js +383 -0
- package/dist/collection/components/card/card-headline/card-headline.css +36 -0
- package/dist/collection/components/card/card-headline/card-headline.js +41 -0
- package/dist/collection/components/card/card-image/card-image.css +24 -0
- package/dist/collection/components/card/card-image/card-image.js +136 -0
- package/dist/collection/components/card/card-links/card-links.css +18 -0
- package/dist/collection/components/card/card-links/card-links.js +20 -0
- package/dist/collection/components/card/card-overline/card-overline.css +25 -0
- package/dist/collection/components/card/card-overline/card-overline.js +18 -0
- package/dist/collection/components/card/card-text/card-text.css +30 -0
- package/dist/collection/components/card/card-text/card-text.js +33 -0
- package/dist/collection/components/card/card.css +187 -0
- package/dist/collection/components/card/card.js +221 -0
- package/dist/collection/components/checkbox/checkbox.css +154 -0
- package/dist/collection/components/checkbox/checkbox.js +546 -0
- package/dist/collection/components/checkbox-group/checkbox-group.css +70 -0
- package/dist/collection/components/checkbox-group/checkbox-group.js +278 -0
- package/dist/collection/components/chip/chip-item/chip-item.css +39 -0
- package/dist/collection/components/chip/chip-item/chip-item.js +199 -0
- package/dist/collection/components/chip/chip.css +180 -0
- package/dist/collection/components/chip/chip.js +581 -0
- package/dist/collection/components/chip/interfaces.js +1 -0
- package/dist/collection/components/content-switcher/content-switcher-item.css +38 -0
- package/dist/collection/components/content-switcher/content-switcher-item.js +65 -0
- package/dist/collection/components/content-switcher/content-switcher.css +32 -0
- package/dist/collection/components/content-switcher/content-switcher.js +223 -0
- package/dist/collection/components/counter/counter.css +69 -0
- package/dist/collection/components/counter/counter.js +131 -0
- package/dist/collection/components/date-picker/date-picker.css +206 -0
- package/dist/collection/components/date-picker/date-picker.js +522 -0
- package/dist/collection/components/download/download.css +0 -0
- package/dist/collection/components/download/download.js +65 -0
- package/dist/collection/components/dropdown/IOpenable.js +1 -0
- package/dist/collection/components/dropdown/dropdown-header/dropdown-header.css +18 -0
- package/dist/collection/components/dropdown/dropdown-header/dropdown-header.js +19 -0
- package/dist/collection/components/dropdown/dropdown-item/dropdown-item.css +58 -0
- package/dist/collection/components/dropdown/dropdown-item/dropdown-item.js +231 -0
- package/dist/collection/components/dropdown/dropdown-menu/dropdown-menu.css +32 -0
- package/dist/collection/components/dropdown/dropdown-menu/dropdown-menu.js +177 -0
- package/dist/collection/components/dropdown/dropdown-seperator/dropdown-separator.css +5 -0
- package/dist/collection/components/dropdown/dropdown-seperator/dropdown-separator.js +19 -0
- package/dist/collection/components/dropdown/dropdown-trigger/dropdown-trigger.css +4 -0
- package/dist/collection/components/dropdown/dropdown-trigger/dropdown-trigger.js +45 -0
- package/dist/collection/components/dropdown/dropdown-trigger-button/dropdown-trigger-button.css +14 -0
- package/dist/collection/components/dropdown/dropdown-trigger-button/dropdown-trigger-button.js +155 -0
- package/dist/collection/components/dropdown/dropdown.css +3 -0
- package/dist/collection/components/dropdown/dropdown.js +519 -0
- package/dist/collection/components/error-page/error-page.css +118 -0
- package/dist/collection/components/error-page/error-page.js +155 -0
- package/dist/collection/components/file-upload/file-upload.css +209 -0
- package/dist/collection/components/file-upload/file-upload.js +1796 -0
- package/dist/collection/components/footer/footer-column.css +28 -0
- package/dist/collection/components/footer/footer-column.js +20 -0
- package/dist/collection/components/footer/footer.css +137 -0
- package/dist/collection/components/footer/footer.js +67 -0
- package/dist/collection/components/icon/figma_code_connect_icons.js +34 -0
- package/dist/collection/components/icon/icon.css +10 -0
- package/dist/collection/components/icon/icon.js +183 -0
- package/dist/collection/components/icon-button/icon-button.css +131 -0
- package/dist/collection/components/icon-button/icon-button.js +321 -0
- package/dist/collection/components/icons-preview/icons-preview.css +93 -0
- package/dist/collection/components/icons-preview/icons-preview.js +78 -0
- package/dist/collection/components/indicator/indicator.css +45 -0
- package/dist/collection/components/indicator/indicator.js +137 -0
- package/dist/collection/components/link/link.css +107 -0
- package/dist/collection/components/link/link.js +298 -0
- package/dist/collection/components/modal/modal.css +196 -0
- package/dist/collection/components/modal/modal.js +560 -0
- package/dist/collection/components/navigation/navbar/navbar-item.css +278 -0
- package/dist/collection/components/navigation/navbar/navbar-item.js +812 -0
- package/dist/collection/components/navigation/navbar/navbar-profile.js +354 -0
- package/dist/collection/components/navigation/navbar/navbar.css +417 -0
- package/dist/collection/components/navigation/navbar/navbar.js +857 -0
- package/dist/collection/components/navigation/sidebar/sidebar-item.css +201 -0
- package/dist/collection/components/navigation/sidebar/sidebar-item.js +583 -0
- package/dist/collection/components/navigation/sidebar/sidebar-seperator/sidebar-separator.css +5 -0
- package/dist/collection/components/navigation/sidebar/sidebar-seperator/sidebar-separator.js +19 -0
- package/dist/collection/components/navigation/sidebar/sidebar-title.css +25 -0
- package/dist/collection/components/navigation/sidebar/sidebar-title.js +50 -0
- package/dist/collection/components/navigation/sidebar/sidebar.css +254 -0
- package/dist/collection/components/navigation/sidebar/sidebar.js +896 -0
- package/dist/collection/components/notification/notification.css +80 -0
- package/dist/collection/components/notification/notification.js +205 -0
- package/dist/collection/components/overview-table/overview-table.css +152 -0
- package/dist/collection/components/overview-table/overview-table.js +61 -0
- package/dist/collection/components/pagination/pagination.css +190 -0
- package/dist/collection/components/pagination/pagination.js +459 -0
- package/dist/collection/components/popover/popover.css +95 -0
- package/dist/collection/components/popover/popover.js +565 -0
- package/dist/collection/components/progress-bar/progress-bar.css +38 -0
- package/dist/collection/components/progress-bar/progress-bar.js +118 -0
- package/dist/collection/components/radio-button/radio-button.css +157 -0
- package/dist/collection/components/radio-button/radio-button.js +334 -0
- package/dist/collection/components/radio-button-group/radio-button-group.css +69 -0
- package/dist/collection/components/radio-button-group/radio-button-group.js +278 -0
- package/dist/collection/components/search-bar/search-bar.css +60 -0
- package/dist/collection/components/search-bar/search-bar.js +323 -0
- package/dist/collection/components/search-field/search-field.css +235 -0
- package/dist/collection/components/search-field/search-field.js +1156 -0
- package/dist/collection/components/segmented-control/segment/segment.css +46 -0
- package/dist/collection/components/segmented-control/segment/segment.js +145 -0
- package/dist/collection/components/segmented-control/segmented-control.css +47 -0
- package/dist/collection/components/segmented-control/segmented-control.js +319 -0
- package/dist/collection/components/select/multi-select/interfaces.js +1 -0
- package/dist/collection/components/select/multi-select/multiselect-group.css +18 -0
- package/dist/collection/components/select/multi-select/multiselect-group.js +92 -0
- package/dist/collection/components/select/multi-select/multiselect-option.css +113 -0
- package/dist/collection/components/select/multi-select/multiselect-option.js +530 -0
- package/dist/collection/components/select/multi-select/multiselect.css +337 -0
- package/dist/collection/components/select/multi-select/multiselect.js +1353 -0
- package/dist/collection/components/select/single-select/select-group.css +24 -0
- package/dist/collection/components/select/single-select/select-group.js +94 -0
- package/dist/collection/components/select/single-select/select-option.css +65 -0
- package/dist/collection/components/select/single-select/select-option.js +241 -0
- package/dist/collection/components/select/single-select/select.css +213 -0
- package/dist/collection/components/select/single-select/select.js +1030 -0
- package/dist/collection/components/slider/slider.css +157 -0
- package/dist/collection/components/slider/slider.js +703 -0
- package/dist/collection/components/spinner/spinner.css +66 -0
- package/dist/collection/components/spinner/spinner.js +151 -0
- package/dist/collection/components/status/status.css +196 -0
- package/dist/collection/components/status/status.js +102 -0
- package/dist/collection/components/stepper/interfaces.js +1 -0
- package/dist/collection/components/stepper/step/step.css +189 -0
- package/dist/collection/components/stepper/step/step.js +250 -0
- package/dist/collection/components/stepper/stepper.css +58 -0
- package/dist/collection/components/stepper/stepper.js +327 -0
- package/dist/collection/components/switch/switch.css +116 -0
- package/dist/collection/components/switch/switch.js +419 -0
- package/dist/collection/components/table-advanced-version/buttonCellRenderer.js +72 -0
- package/dist/collection/components/table-advanced-version/checkboxCellRenderer.js +67 -0
- package/dist/collection/components/table-advanced-version/checkboxHeaderRenderer.js +32 -0
- package/dist/collection/components/table-advanced-version/customLoadingOverlay.js +15 -0
- package/dist/collection/components/table-advanced-version/customNoRowsOverlay.js +17 -0
- package/dist/collection/components/table-advanced-version/filter-bar/filter-bar.css +64 -0
- package/dist/collection/components/table-advanced-version/filter-bar/filter-bar.js +195 -0
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-accordion/filter-accordion.css +70 -0
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-accordion/filter-accordion.js +124 -0
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-search/filter-search.css +30 -0
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-search/filter-search.js +216 -0
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-type-group.css +14 -0
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-type-group.js +231 -0
- package/dist/collection/components/table-advanced-version/filter-type-group/utils.js +12 -0
- package/dist/collection/components/table-advanced-version/iconButtonCellRenderer.js +69 -0
- package/dist/collection/components/table-advanced-version/interfaces.js +17 -0
- package/dist/collection/components/table-advanced-version/linkCellRenderer.js +50 -0
- package/dist/collection/components/table-advanced-version/list/list-entry/list-entry.css +7 -0
- package/dist/collection/components/table-advanced-version/list/list-entry/list-entry.js +134 -0
- package/dist/collection/components/table-advanced-version/list/list.css +8 -0
- package/dist/collection/components/table-advanced-version/list/list.js +255 -0
- package/dist/collection/components/table-advanced-version/set-filter/set-filter.css +1 -0
- package/dist/collection/components/table-advanced-version/set-filter/setFilter.js +207 -0
- package/dist/collection/components/table-advanced-version/statusCellRenderer.js +30 -0
- package/dist/collection/components/table-advanced-version/table.css +7362 -0
- package/dist/collection/components/table-advanced-version/table.js +1598 -0
- package/dist/collection/components/table-advanced-version/tooltipCellRenderer.js +59 -0
- package/dist/collection/components/table-basic-version/customLoadingOverlay.js +15 -0
- package/dist/collection/components/table-basic-version/customNoRowsOverlay.js +17 -0
- package/dist/collection/components/table-basic-version/interfaces.js +8 -0
- package/dist/collection/components/table-basic-version/table.css +7211 -0
- package/dist/collection/components/table-basic-version/table.js +318 -0
- package/dist/collection/components/tabs/tab.css +3 -0
- package/dist/collection/components/tabs/tab.js +240 -0
- package/dist/collection/components/tabs/tabs.css +341 -0
- package/dist/collection/components/tabs/tabs.js +606 -0
- package/dist/collection/components/templates/template/template.css +76 -0
- package/dist/collection/components/templates/template/template.js +272 -0
- package/dist/collection/components/templates/templates-ui/templates-ui.css +33 -0
- package/dist/collection/components/templates/templates-ui/templates-ui.js +75 -0
- package/dist/collection/components/text-field/text-field.css +193 -0
- package/dist/collection/components/text-field/text-field.js +514 -0
- package/dist/collection/components/textarea/textarea.css +97 -0
- package/dist/collection/components/textarea/textarea.js +485 -0
- package/dist/collection/components/toast/toast-config.js +17 -0
- package/dist/collection/components/toast/toast-container/toast-container.css +58 -0
- package/dist/collection/components/toast/toast-container/toast-container.js +280 -0
- package/dist/collection/components/toast/toast-controller.js +116 -0
- package/dist/collection/components/toast/toast.css +68 -0
- package/dist/collection/components/toast/toast.js +397 -0
- package/dist/collection/components/tooltip/tooltip.css +164 -0
- package/dist/collection/components/tooltip/tooltip.js +380 -0
- package/dist/collection/components/tree-view/tree-view-item.css +112 -0
- package/dist/collection/components/tree-view/tree-view-item.js +603 -0
- package/dist/collection/components/tree-view/tree-view.css +19 -0
- package/dist/collection/components/tree-view/tree-view.js +187 -0
- package/dist/collection/global/setup.js +5 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/shared/utils/animation.js +37 -0
- package/dist/collection/shared/utils/colorNames.js +1 -0
- package/dist/collection/shared/utils/dom-ready.js +15 -0
- package/dist/collection/shared/utils/dom-utils.js +15 -0
- package/dist/collection/shared/utils/focus-trap.js +120 -0
- package/dist/collection/shared/utils/framework-detection.js +74 -0
- package/dist/collection/shared/utils/tracking.js +60 -0
- package/dist/collection/shared/utils/url-utils.js +14 -0
- package/dist/collection/storybook/public/favicon.svg +5 -0
- package/dist/components/ifx-accordion-item.d.ts +11 -0
- package/dist/components/ifx-accordion-item.js +1 -0
- package/dist/components/ifx-accordion.d.ts +11 -0
- package/dist/components/ifx-accordion.js +1 -0
- package/dist/components/ifx-action-list-item.d.ts +11 -0
- package/dist/components/ifx-action-list-item.js +1 -0
- package/dist/components/ifx-action-list.d.ts +11 -0
- package/dist/components/ifx-action-list.js +1 -0
- package/dist/components/ifx-ai-label.d.ts +11 -0
- package/dist/components/ifx-ai-label.js +1 -0
- package/dist/components/ifx-alert.d.ts +11 -0
- package/dist/components/ifx-alert.js +1 -0
- package/dist/components/ifx-basic-table.d.ts +11 -0
- package/dist/components/ifx-basic-table.js +1 -0
- package/dist/components/ifx-breadcrumb-item-label.d.ts +11 -0
- package/dist/components/ifx-breadcrumb-item-label.js +1 -0
- package/dist/components/ifx-breadcrumb-item.d.ts +11 -0
- package/dist/components/ifx-breadcrumb-item.js +1 -0
- package/dist/components/ifx-breadcrumb.d.ts +11 -0
- package/dist/components/ifx-breadcrumb.js +1 -0
- package/dist/components/ifx-button.d.ts +11 -0
- package/dist/components/ifx-button.js +1 -0
- package/dist/components/ifx-card-headline.d.ts +11 -0
- package/dist/components/ifx-card-headline.js +1 -0
- package/dist/components/ifx-card-image.d.ts +11 -0
- package/dist/components/ifx-card-image.js +1 -0
- package/dist/components/ifx-card-links.d.ts +11 -0
- package/dist/components/ifx-card-links.js +1 -0
- package/dist/components/ifx-card-overline.d.ts +11 -0
- package/dist/components/ifx-card-overline.js +1 -0
- package/dist/components/ifx-card-text.d.ts +11 -0
- package/dist/components/ifx-card-text.js +1 -0
- package/dist/components/ifx-card.d.ts +11 -0
- package/dist/components/ifx-card.js +1 -0
- package/dist/components/ifx-checkbox-group.d.ts +11 -0
- package/dist/components/ifx-checkbox-group.js +1 -0
- package/dist/components/ifx-checkbox.d.ts +11 -0
- package/dist/components/ifx-checkbox.js +1 -0
- package/dist/components/ifx-chip-item.d.ts +11 -0
- package/dist/components/ifx-chip-item.js +1 -0
- package/dist/components/ifx-chip.d.ts +11 -0
- package/dist/components/ifx-chip.js +1 -0
- package/dist/components/ifx-content-switcher-item.d.ts +11 -0
- package/dist/components/ifx-content-switcher-item.js +1 -0
- package/dist/components/ifx-content-switcher.d.ts +11 -0
- package/dist/components/ifx-content-switcher.js +1 -0
- package/dist/components/ifx-counter.d.ts +11 -0
- package/dist/components/ifx-counter.js +1 -0
- package/dist/components/ifx-date-picker.d.ts +11 -0
- package/dist/components/ifx-date-picker.js +1 -0
- package/dist/components/ifx-download.d.ts +11 -0
- package/dist/components/ifx-download.js +1 -0
- package/dist/components/ifx-dropdown-header.d.ts +11 -0
- package/dist/components/ifx-dropdown-header.js +1 -0
- package/dist/components/ifx-dropdown-item.d.ts +11 -0
- package/dist/components/ifx-dropdown-item.js +1 -0
- package/dist/components/ifx-dropdown-menu.d.ts +11 -0
- package/dist/components/ifx-dropdown-menu.js +1 -0
- package/dist/components/ifx-dropdown-separator.d.ts +11 -0
- package/dist/components/ifx-dropdown-separator.js +1 -0
- package/dist/components/ifx-dropdown-trigger-button.d.ts +11 -0
- package/dist/components/ifx-dropdown-trigger-button.js +1 -0
- package/dist/components/ifx-dropdown-trigger.d.ts +11 -0
- package/dist/components/ifx-dropdown-trigger.js +1 -0
- package/dist/components/ifx-dropdown.d.ts +11 -0
- package/dist/components/ifx-dropdown.js +1 -0
- package/dist/components/ifx-error-page.d.ts +11 -0
- package/dist/components/ifx-error-page.js +1 -0
- package/dist/components/ifx-file-upload.d.ts +11 -0
- package/dist/components/ifx-file-upload.js +1 -0
- package/dist/components/ifx-filter-accordion.d.ts +11 -0
- package/dist/components/ifx-filter-accordion.js +1 -0
- package/dist/components/ifx-filter-bar.d.ts +11 -0
- package/dist/components/ifx-filter-bar.js +1 -0
- package/dist/components/ifx-filter-search.d.ts +11 -0
- package/dist/components/ifx-filter-search.js +1 -0
- package/dist/components/ifx-filter-type-group.d.ts +11 -0
- package/dist/components/ifx-filter-type-group.js +1 -0
- package/dist/components/ifx-footer-column.d.ts +11 -0
- package/dist/components/ifx-footer-column.js +1 -0
- package/dist/components/ifx-footer.d.ts +11 -0
- package/dist/components/ifx-footer.js +1 -0
- package/dist/components/ifx-icon-button.d.ts +11 -0
- package/dist/components/ifx-icon-button.js +1 -0
- package/dist/components/ifx-icon.d.ts +11 -0
- package/dist/components/ifx-icon.js +1 -0
- package/dist/components/ifx-icons-preview.d.ts +11 -0
- package/dist/components/ifx-icons-preview.js +1 -0
- package/dist/components/ifx-indicator.d.ts +11 -0
- package/dist/components/ifx-indicator.js +1 -0
- package/dist/components/ifx-link.d.ts +11 -0
- package/dist/components/ifx-link.js +1 -0
- package/dist/components/ifx-list-entry.d.ts +11 -0
- package/dist/components/ifx-list-entry.js +1 -0
- package/dist/components/ifx-list.d.ts +11 -0
- package/dist/components/ifx-list.js +1 -0
- package/dist/components/ifx-modal.d.ts +11 -0
- package/dist/components/ifx-modal.js +1 -0
- package/dist/components/ifx-multiselect-group.d.ts +11 -0
- package/dist/components/ifx-multiselect-group.js +1 -0
- package/dist/components/ifx-multiselect-option.d.ts +11 -0
- package/dist/components/ifx-multiselect-option.js +1 -0
- package/dist/components/ifx-multiselect.d.ts +11 -0
- package/dist/components/ifx-multiselect.js +1 -0
- package/dist/components/ifx-navbar-item.d.ts +11 -0
- package/dist/components/ifx-navbar-item.js +1 -0
- package/dist/components/ifx-navbar-profile.d.ts +11 -0
- package/dist/components/ifx-navbar-profile.js +1 -0
- package/dist/components/ifx-navbar.d.ts +11 -0
- package/dist/components/ifx-navbar.js +1 -0
- package/dist/components/ifx-notification.d.ts +11 -0
- package/dist/components/ifx-notification.js +1 -0
- package/dist/components/ifx-overview-table.d.ts +11 -0
- package/dist/components/ifx-overview-table.js +1 -0
- package/dist/components/ifx-pagination.d.ts +11 -0
- package/dist/components/ifx-pagination.js +1 -0
- package/dist/components/ifx-popover.d.ts +11 -0
- package/dist/components/ifx-popover.js +1 -0
- package/dist/components/ifx-progress-bar.d.ts +11 -0
- package/dist/components/ifx-progress-bar.js +1 -0
- package/dist/components/ifx-radio-button-group.d.ts +11 -0
- package/dist/components/ifx-radio-button-group.js +1 -0
- package/dist/components/ifx-radio-button.d.ts +11 -0
- package/dist/components/ifx-radio-button.js +1 -0
- package/dist/components/ifx-search-bar.d.ts +11 -0
- package/dist/components/ifx-search-bar.js +1 -0
- package/dist/components/ifx-search-field.d.ts +11 -0
- package/dist/components/ifx-search-field.js +1 -0
- package/dist/components/ifx-segment.d.ts +11 -0
- package/dist/components/ifx-segment.js +1 -0
- package/dist/components/ifx-segmented-control.d.ts +11 -0
- package/dist/components/ifx-segmented-control.js +1 -0
- package/dist/components/ifx-select-group.d.ts +11 -0
- package/dist/components/ifx-select-group.js +1 -0
- package/dist/components/ifx-select-option.d.ts +11 -0
- package/dist/components/ifx-select-option.js +1 -0
- package/dist/components/ifx-select.d.ts +11 -0
- package/dist/components/ifx-select.js +1 -0
- package/dist/components/ifx-set-filter.d.ts +11 -0
- package/dist/components/ifx-set-filter.js +1 -0
- package/dist/components/ifx-sidebar-item.d.ts +11 -0
- package/dist/components/ifx-sidebar-item.js +1 -0
- package/dist/components/ifx-sidebar-separator.d.ts +11 -0
- package/dist/components/ifx-sidebar-separator.js +1 -0
- package/dist/components/ifx-sidebar-title.d.ts +11 -0
- package/dist/components/ifx-sidebar-title.js +1 -0
- package/dist/components/ifx-sidebar.d.ts +11 -0
- package/dist/components/ifx-sidebar.js +1 -0
- package/dist/components/ifx-slider.d.ts +11 -0
- package/dist/components/ifx-slider.js +1 -0
- package/dist/components/ifx-spinner.d.ts +11 -0
- package/dist/components/ifx-spinner.js +1 -0
- package/dist/components/ifx-status.d.ts +11 -0
- package/dist/components/ifx-status.js +1 -0
- package/dist/components/ifx-step.d.ts +11 -0
- package/dist/components/ifx-step.js +1 -0
- package/dist/components/ifx-stepper.d.ts +11 -0
- package/dist/components/ifx-stepper.js +1 -0
- package/dist/components/ifx-switch.d.ts +11 -0
- package/dist/components/ifx-switch.js +1 -0
- package/dist/components/ifx-tab.d.ts +11 -0
- package/dist/components/ifx-tab.js +1 -0
- package/dist/components/ifx-table.d.ts +11 -0
- package/dist/components/ifx-table.js +1 -0
- package/dist/components/ifx-tabs.d.ts +11 -0
- package/dist/components/ifx-tabs.js +1 -0
- package/dist/components/ifx-template.d.ts +11 -0
- package/dist/components/ifx-template.js +1 -0
- package/dist/components/ifx-templates-ui.d.ts +11 -0
- package/dist/components/ifx-templates-ui.js +1 -0
- package/dist/components/ifx-text-field.d.ts +11 -0
- package/dist/components/ifx-text-field.js +1 -0
- package/dist/components/ifx-textarea.d.ts +11 -0
- package/dist/components/ifx-textarea.js +1 -0
- package/dist/components/ifx-toast-container.d.ts +11 -0
- package/dist/components/ifx-toast-container.js +1 -0
- package/dist/components/ifx-toast.d.ts +11 -0
- package/dist/components/ifx-toast.js +1 -0
- package/dist/components/ifx-tooltip.d.ts +11 -0
- package/dist/components/ifx-tooltip.js +1 -0
- package/dist/components/ifx-tree-view-item.d.ts +11 -0
- package/dist/components/ifx-tree-view-item.js +1 -0
- package/dist/components/ifx-tree-view.d.ts +11 -0
- package/dist/components/ifx-tree-view.js +1 -0
- package/dist/components/index.d.ts +221 -0
- package/dist/components/index.js +1 -0
- package/dist/components/p-6rWkhPoz.js +1 -0
- package/dist/components/p-94ZtGp9D.js +1 -0
- package/dist/components/p-B2BXeRbX.js +1 -0
- package/dist/components/p-B9Se0P8X.js +1 -0
- package/dist/components/p-BQusv3OP.js +1 -0
- package/dist/components/p-BT3Wl1wi.js +1 -0
- package/dist/components/p-BT_2CyMS.js +1 -0
- package/dist/components/p-BfP9ezJQ.js +1 -0
- package/dist/components/p-BfTCfPZ1.js +6 -0
- package/dist/components/p-BsM3UmwT.js +1 -0
- package/dist/components/p-BwNZsorZ.js +1 -0
- package/dist/components/p-ByHlxOiP.js +1 -0
- package/dist/components/p-By_rGGZ6.js +1 -0
- package/dist/components/p-C0ZpAymO.js +1 -0
- package/dist/components/p-C2NpYb5B.js +1 -0
- package/dist/components/p-CFIxSP2i.js +1 -0
- package/dist/components/p-CHllTWC_.js +1 -0
- package/dist/components/p-CKEkzlHL.js +1 -0
- package/dist/components/p-COoPXL_o.js +1 -0
- package/dist/components/p-CZkp3I3Z.js +1 -0
- package/dist/components/p-Cof8Iu4T.js +1 -0
- package/dist/components/p-D8rBTzjL.js +1 -0
- package/dist/components/p-DMAv4MDG.js +1 -0
- package/dist/components/p-DqacDHEO.js +1 -0
- package/dist/components/p-M9y7mTsF.js +1 -0
- package/dist/components/p-OJkXkXZS.js +1 -0
- package/dist/components/p-QgsB_-OM.js +1 -0
- package/dist/components/p-tjdx4F2u.js +1 -0
- package/dist/components/p-uQx-50k_.js +1 -0
- package/dist/docs.d.ts +480 -0
- package/dist/docs.json +21723 -0
- package/dist/esm/animation-BT3Wl1wi.js +39 -0
- package/dist/esm/dom-utils-CtINY9El.js +17 -0
- package/dist/esm/icons-ZeLzvI0y.js +1331 -0
- package/dist/esm/ifx-accordion-item.entry.js +116 -0
- package/dist/esm/ifx-accordion.entry.js +38 -0
- package/dist/esm/ifx-action-list-item.entry.js +236 -0
- package/dist/esm/ifx-action-list.entry.js +28 -0
- package/dist/esm/ifx-ai-label.entry.js +21 -0
- package/dist/esm/ifx-alert_2.entry.js +214 -0
- package/dist/esm/ifx-basic-table.entry.js +216 -0
- package/dist/esm/ifx-breadcrumb-item-label.entry.js +33 -0
- package/dist/esm/ifx-breadcrumb-item.entry.js +114 -0
- package/dist/esm/ifx-breadcrumb.entry.js +49 -0
- package/dist/esm/ifx-button.entry.js +154 -0
- package/dist/esm/ifx-card-headline.entry.js +31 -0
- package/dist/esm/ifx-card-image.entry.js +35 -0
- package/dist/esm/ifx-card-links.entry.js +16 -0
- package/dist/esm/ifx-card-overline.entry.js +15 -0
- package/dist/esm/ifx-card-text.entry.js +24 -0
- package/dist/esm/ifx-card.entry.js +75 -0
- package/dist/esm/ifx-checkbox-group.entry.js +75 -0
- package/dist/esm/ifx-checkbox.entry.js +253 -0
- package/dist/esm/ifx-chip-item_2.entry.js +389 -0
- package/dist/esm/ifx-chip.entry.js +338 -0
- package/dist/esm/ifx-content-switcher-item.entry.js +19 -0
- package/dist/esm/ifx-content-switcher.entry.js +186 -0
- package/dist/esm/ifx-counter.entry.js +72 -0
- package/dist/esm/ifx-date-picker.entry.js +201 -0
- package/dist/esm/ifx-download.entry.js +38 -0
- package/dist/esm/ifx-dropdown-header.entry.js +15 -0
- package/dist/esm/ifx-dropdown-item.entry.js +66 -0
- package/dist/esm/ifx-dropdown-menu.entry.js +69 -0
- package/dist/esm/ifx-dropdown-separator.entry.js +15 -0
- package/dist/esm/ifx-dropdown-trigger-button.entry.js +27 -0
- package/dist/esm/ifx-dropdown-trigger.entry.js +17 -0
- package/dist/esm/ifx-dropdown.entry.js +255 -0
- package/dist/esm/ifx-error-page.entry.js +52 -0
- package/dist/esm/ifx-file-upload.entry.js +819 -0
- package/dist/esm/ifx-filter-accordion.entry.js +65 -0
- package/dist/esm/ifx-filter-bar.entry.js +117 -0
- package/dist/esm/ifx-filter-search.entry.js +60 -0
- package/dist/esm/ifx-filter-type-group.entry.js +166 -0
- package/dist/esm/ifx-footer-column.entry.js +16 -0
- package/dist/esm/ifx-footer.entry.js +33 -0
- package/dist/esm/ifx-icon-button.entry.js +104 -0
- package/dist/esm/ifx-icon.entry.js +132 -0
- package/dist/esm/ifx-icons-preview.entry.js +15497 -0
- package/dist/esm/ifx-indicator.entry.js +44 -0
- package/dist/esm/ifx-link.entry.js +123 -0
- package/dist/esm/ifx-list-entry.entry.js +42 -0
- package/dist/esm/ifx-list.entry.js +141 -0
- package/dist/esm/ifx-modal.entry.js +401 -0
- package/dist/esm/ifx-multiselect-group.entry.js +40 -0
- package/dist/esm/ifx-multiselect_2.entry.js +1148 -0
- package/dist/esm/ifx-navbar-item.entry.js +436 -0
- package/dist/esm/ifx-navbar-profile.entry.js +171 -0
- package/dist/esm/ifx-navbar.entry.js +703 -0
- package/dist/esm/ifx-notification.entry.js +56 -0
- package/dist/esm/ifx-overview-table.entry.js +57 -0
- package/dist/esm/ifx-popover.entry.js +338 -0
- package/dist/esm/ifx-progress-bar.entry.js +44 -0
- package/dist/esm/ifx-radio-button-group.entry.js +75 -0
- package/dist/esm/ifx-radio-button.entry.js +146 -0
- package/dist/esm/ifx-search-bar.entry.js +121 -0
- package/dist/esm/ifx-search-field.entry.js +560 -0
- package/dist/esm/ifx-segment.entry.js +44 -0
- package/dist/esm/ifx-segmented-control.entry.js +149 -0
- package/dist/esm/ifx-select-group.entry.js +41 -0
- package/dist/esm/ifx-select_2.entry.js +571 -0
- package/dist/esm/ifx-set-filter.entry.js +81 -0
- package/dist/esm/ifx-sidebar-item.entry.js +288 -0
- package/dist/esm/ifx-sidebar-separator.entry.js +15 -0
- package/dist/esm/ifx-sidebar-title.entry.js +22 -0
- package/dist/esm/ifx-sidebar.entry.js +452 -0
- package/dist/esm/ifx-slider.entry.js +362 -0
- package/dist/esm/ifx-spinner.entry.js +51 -0
- package/dist/esm/ifx-status.entry.js +34 -0
- package/dist/esm/ifx-step.entry.js +102 -0
- package/dist/esm/ifx-stepper.entry.js +166 -0
- package/dist/esm/ifx-switch.entry.js +188 -0
- package/dist/esm/ifx-tab.entry.js +40 -0
- package/dist/esm/ifx-table.entry.js +1464 -0
- package/dist/esm/ifx-tabs.entry.js +378 -0
- package/dist/esm/ifx-templates-ui.entry.js +56 -0
- package/dist/esm/ifx-text-field.entry.js +129 -0
- package/dist/esm/ifx-textarea.entry.js +130 -0
- package/dist/esm/ifx-toast-container.entry.js +112 -0
- package/dist/esm/ifx-toast.entry.js +191 -0
- package/dist/esm/ifx-tooltip.entry.js +226 -0
- package/dist/esm/ifx-tree-view-item.entry.js +402 -0
- package/dist/esm/ifx-tree-view.entry.js +68 -0
- package/dist/esm/index-BfTCfPZ1.js +92 -0
- package/dist/esm/index-CY4s4b6R.js +3330 -0
- package/dist/esm/index.js +119 -0
- package/dist/esm/infineon-design-system-stencil.js +41 -0
- package/dist/esm/loader.js +10 -0
- package/dist/esm/main.esm-ByHlxOiP.js +56045 -0
- package/dist/esm/popper-BfP9ezJQ.js +1790 -0
- package/dist/esm/toast-config-CvlFl4bk.js +19 -0
- package/dist/esm/tracking-DNHOWgWh.js +141 -0
- package/dist/esm/url-utils-QgsB_-OM.js +16 -0
- package/dist/hydrate/index.d.ts +287 -0
- package/dist/hydrate/index.js +115426 -0
- package/dist/hydrate/index.mjs +115416 -0
- package/dist/hydrate/package.json +12 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/infineon-design-system-stencil/index.esm.js +1 -0
- package/dist/infineon-design-system-stencil/infineon-design-system-stencil.css +1 -0
- package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -0
- package/dist/infineon-design-system-stencil/p-00e44b86.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-04b2ca48.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-056c97d1.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-068f8d94.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-080482d5.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-0824da97.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-0eb80b01.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-1bde9db6.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-1c5cdf00.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-1d282105.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-1dba3e82.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-1ee2ae36.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-200b5cf4.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-25b276e7.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-27d6189d.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-33cee615.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-387628c3.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-3d79452f.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-3d99137a.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-46025b1d.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-49abd04b.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-4b0cfd87.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-507c06f6.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-58d3465b.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-5ca1e5f9.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-5e787c60.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-622b768a.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-62c217d9.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-633f7103.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-6ad38b43.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-6bc72aa7.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-6d5608f3.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-6dbe3565.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-6feba4bd.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-7637f1a9.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-767d1120.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-7a632c59.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-7cd30e96.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-7cfaf0b0.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-7d1bce96.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-7e39ffb5.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-83ac00d0.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-83ed07c5.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-85699507.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-85cab510.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-86f8257b.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-8712ed7c.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-89ca7297.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-8a9c392b.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-8d6f90ce.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-8f7f4367.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-90055cc1.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-91f93a99.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-981a5d47.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-982379c6.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-98b1d319.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-9ed59a1b.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-BT3Wl1wi.js +1 -0
- package/dist/infineon-design-system-stencil/p-BfP9ezJQ.js +1 -0
- package/dist/infineon-design-system-stencil/p-BfTCfPZ1.js +6 -0
- package/dist/infineon-design-system-stencil/p-ByHlxOiP.js +1 -0
- package/dist/infineon-design-system-stencil/p-CY4s4b6R.js +3 -0
- package/dist/infineon-design-system-stencil/p-CtINY9El.js +1 -0
- package/dist/infineon-design-system-stencil/p-CvlFl4bk.js +1 -0
- package/dist/infineon-design-system-stencil/p-DNHOWgWh.js +1 -0
- package/dist/infineon-design-system-stencil/p-QgsB_-OM.js +1 -0
- package/dist/infineon-design-system-stencil/p-ZeLzvI0y.js +1 -0
- package/dist/infineon-design-system-stencil/p-a64b4893.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-a749b6af.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-adee38e7.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-b024ca63.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-b0db38b1.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-b52e98b3.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-b8027aac.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-bc74a63e.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-bdc53480.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-bfd5c624.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-c2955de7.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-c436d915.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-c8de164f.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-d3194d57.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-d7614c74.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-d96c1ee9.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-db3f7660.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-e3fc01c1.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-e616abd0.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-e97262eb.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-ea5f0a88.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-ec37b6a4.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-ec538561.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-ee84f6e7.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-f290a76e.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-f4e8f76a.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-f4f3916e.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-f5b65911.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-f740a48b.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-f9273ee7.entry.js +1 -0
- package/dist/infineon-design-system-stencil/p-fbdef7ac.entry.js +1 -0
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +2 -0
- package/dist/types/components/accordion/accordion.d.ts +8 -0
- package/dist/types/components/accordion/accordionItem.d.ts +31 -0
- package/dist/types/components/action-list/action-list-item.d.ts +59 -0
- package/dist/types/components/action-list/action-list.d.ts +9 -0
- package/dist/types/components/ai-label/ai-label.d.ts +7 -0
- package/dist/types/components/alert/alert.d.ts +22 -0
- package/dist/types/components/breadcrumb/breadcrumb-item-label.d.ts +14 -0
- package/dist/types/components/breadcrumb/breadcrumb-item.d.ts +25 -0
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +6 -0
- package/dist/types/components/button/button.d.ts +41 -0
- package/dist/types/components/card/card-headline/card-headline.d.ts +7 -0
- package/dist/types/components/card/card-image/card-image.d.ts +17 -0
- package/dist/types/components/card/card-links/card-links.d.ts +4 -0
- package/dist/types/components/card/card-overline/card-overline.d.ts +3 -0
- package/dist/types/components/card/card-text/card-text.d.ts +6 -0
- package/dist/types/components/card/card.d.ts +28 -0
- package/dist/types/components/checkbox/checkbox.d.ts +88 -0
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +30 -0
- package/dist/types/components/chip/chip-item/chip-item.d.ts +23 -0
- package/dist/types/components/chip/chip.d.ts +54 -0
- package/dist/types/components/chip/interfaces.d.ts +13 -0
- package/dist/types/components/content-switcher/content-switcher-item.d.ts +7 -0
- package/dist/types/components/content-switcher/content-switcher.d.ts +74 -0
- package/dist/types/components/counter/counter.d.ts +19 -0
- package/dist/types/components/date-picker/date-picker.d.ts +83 -0
- package/dist/types/components/download/download.d.ts +5 -0
- package/dist/types/components/dropdown/IOpenable.d.ts +3 -0
- package/dist/types/components/dropdown/dropdown-header/dropdown-header.d.ts +3 -0
- package/dist/types/components/dropdown/dropdown-item/dropdown-item.d.ts +23 -0
- package/dist/types/components/dropdown/dropdown-menu/dropdown-menu.d.ts +23 -0
- package/dist/types/components/dropdown/dropdown-seperator/dropdown-separator.d.ts +3 -0
- package/dist/types/components/dropdown/dropdown-trigger/dropdown-trigger.d.ts +6 -0
- package/dist/types/components/dropdown/dropdown-trigger-button/dropdown-trigger-button.d.ts +16 -0
- package/dist/types/components/dropdown/dropdown.d.ts +55 -0
- package/dist/types/components/error-page/error-page.d.ts +15 -0
- package/dist/types/components/file-upload/file-upload.d.ts +205 -0
- package/dist/types/components/footer/footer-column.d.ts +4 -0
- package/dist/types/components/footer/footer.d.ts +11 -0
- package/dist/types/components/icon/figma_code_connect_icons.d.ts +1 -0
- package/dist/types/components/icon/icon.d.ts +31 -0
- package/dist/types/components/icon-button/icon-button.d.ts +57 -0
- package/dist/types/components/icons-preview/icons-preview.d.ts +18 -0
- package/dist/types/components/indicator/indicator.d.ts +17 -0
- package/dist/types/components/link/link.d.ts +48 -0
- package/dist/types/components/modal/modal.d.ts +97 -0
- package/dist/types/components/navigation/navbar/navbar-item.d.ts +73 -0
- package/dist/types/components/navigation/navbar/navbar-profile.d.ts +41 -0
- package/dist/types/components/navigation/navbar/navbar.d.ts +70 -0
- package/dist/types/components/navigation/sidebar/sidebar-item.d.ts +65 -0
- package/dist/types/components/navigation/sidebar/sidebar-seperator/sidebar-separator.d.ts +3 -0
- package/dist/types/components/navigation/sidebar/sidebar-title.d.ts +7 -0
- package/dist/types/components/navigation/sidebar/sidebar.d.ts +87 -0
- package/dist/types/components/notification/notification.d.ts +23 -0
- package/dist/types/components/overview-table/overview-table.d.ts +11 -0
- package/dist/types/components/pagination/pagination.d.ts +45 -0
- package/dist/types/components/popover/popover.d.ts +55 -0
- package/dist/types/components/progress-bar/progress-bar.d.ts +14 -0
- package/dist/types/components/radio-button/radio-button.d.ts +37 -0
- package/dist/types/components/radio-button-group/radio-button-group.d.ts +30 -0
- package/dist/types/components/search-bar/search-bar.d.ts +60 -0
- package/dist/types/components/search-field/search-field.d.ts +178 -0
- package/dist/types/components/segmented-control/segment/segment.d.ts +16 -0
- package/dist/types/components/segmented-control/segmented-control.d.ts +40 -0
- package/dist/types/components/select/multi-select/interfaces.d.ts +9 -0
- package/dist/types/components/select/multi-select/multiselect-group.d.ts +15 -0
- package/dist/types/components/select/multi-select/multiselect-option.d.ts +43 -0
- package/dist/types/components/select/multi-select/multiselect.d.ts +123 -0
- package/dist/types/components/select/single-select/select-group.d.ts +17 -0
- package/dist/types/components/select/single-select/select-option.d.ts +31 -0
- package/dist/types/components/select/single-select/select.d.ts +129 -0
- package/dist/types/components/slider/slider.d.ts +76 -0
- package/dist/types/components/spinner/spinner.d.ts +27 -0
- package/dist/types/components/status/status.d.ts +11 -0
- package/dist/types/components/stepper/interfaces.d.ts +7 -0
- package/dist/types/components/stepper/step/step.d.ts +24 -0
- package/dist/types/components/stepper/stepper.d.ts +35 -0
- package/dist/types/components/switch/switch.d.ts +112 -0
- package/dist/types/components/table-advanced-version/buttonCellRenderer.d.ts +15 -0
- package/dist/types/components/table-advanced-version/checkboxCellRenderer.d.ts +15 -0
- package/dist/types/components/table-advanced-version/checkboxHeaderRenderer.d.ts +14 -0
- package/dist/types/components/table-advanced-version/customLoadingOverlay.d.ts +9 -0
- package/dist/types/components/table-advanced-version/customNoRowsOverlay.d.ts +9 -0
- package/dist/types/components/table-advanced-version/filter-bar/filter-bar.d.ts +26 -0
- package/dist/types/components/table-advanced-version/filter-type-group/filter-accordion/filter-accordion.d.ts +20 -0
- package/dist/types/components/table-advanced-version/filter-type-group/filter-search/filter-search.d.ts +22 -0
- package/dist/types/components/table-advanced-version/filter-type-group/filter-type-group.d.ts +29 -0
- package/dist/types/components/table-advanced-version/filter-type-group/utils.d.ts +5 -0
- package/dist/types/components/table-advanced-version/iconButtonCellRenderer.d.ts +15 -0
- package/dist/types/components/table-advanced-version/interfaces.d.ts +53 -0
- package/dist/types/components/table-advanced-version/linkCellRenderer.d.ts +12 -0
- package/dist/types/components/table-advanced-version/list/list-entry/list-entry.d.ts +11 -0
- package/dist/types/components/table-advanced-version/list/list.d.ts +38 -0
- package/dist/types/components/table-advanced-version/set-filter/setFilter.d.ts +20 -0
- package/dist/types/components/table-advanced-version/statusCellRenderer.d.ts +8 -0
- package/dist/types/components/table-advanced-version/table.d.ts +146 -0
- package/dist/types/components/table-advanced-version/tooltipCellRenderer.d.ts +12 -0
- package/dist/types/components/table-basic-version/customLoadingOverlay.d.ts +9 -0
- package/dist/types/components/table-basic-version/customNoRowsOverlay.d.ts +9 -0
- package/dist/types/components/table-basic-version/interfaces.d.ts +9 -0
- package/dist/types/components/table-basic-version/table.d.ts +34 -0
- package/dist/types/components/tabs/tab.d.ts +26 -0
- package/dist/types/components/tabs/tabs.d.ts +64 -0
- package/dist/types/components/templates/template/template.d.ts +37 -0
- package/dist/types/components/templates/templates-ui/templates-ui.d.ts +10 -0
- package/dist/types/components/text-field/text-field.d.ts +55 -0
- package/dist/types/components/textarea/textarea.d.ts +54 -0
- package/dist/types/components/toast/toast-config.d.ts +7 -0
- package/dist/types/components/toast/toast-container/toast-container.d.ts +43 -0
- package/dist/types/components/toast/toast-controller.d.ts +51 -0
- package/dist/types/components/toast/toast.d.ts +58 -0
- package/dist/types/components/tooltip/tooltip.d.ts +34 -0
- package/dist/types/components/tree-view/tree-view-item.d.ts +79 -0
- package/dist/types/components/tree-view/tree-view.d.ts +21 -0
- package/dist/types/components.d.ts +8540 -0
- package/dist/types/global/setup.d.ts +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/shared/utils/animation.d.ts +13 -0
- package/dist/types/shared/utils/colorNames.d.ts +1 -0
- package/dist/types/shared/utils/dom-ready.d.ts +1 -0
- package/dist/types/shared/utils/dom-utils.d.ts +1 -0
- package/dist/types/shared/utils/focus-trap.d.ts +33 -0
- package/dist/types/shared/utils/framework-detection.d.ts +1 -0
- package/dist/types/shared/utils/tracking.d.ts +10 -0
- package/dist/types/shared/utils/url-utils.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1879 -0
- package/package.json +193 -3
- package/readme.md +229 -0
- package/README.md +0 -3
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-CY4s4b6R.js';
|
|
2
|
+
import { i as isNestedInIfxComponent } from './dom-utils-CtINY9El.js';
|
|
3
|
+
import { d as detectFramework, t as trackComponent } from './tracking-DNHOWgWh.js';
|
|
4
|
+
|
|
5
|
+
const tabsCss = () => `:host{display:flex}.tabs{display:flex;font-family:var(--ifx-font-family);width:100%}.tabs.horizontal{flex-direction:column}.tabs-container{display:flex;align-items:center;position:relative;width:fit-content;max-width:100%;min-width:0;gap:8px}.tabs-container.position-sticky{width:100%}.scroll-button{flex-shrink:0;z-index:10;transition:all 0.3s ease-in-out}.scroll-button.hidden{display:none;pointer-events:none}.scroll-button.scroll-left.hidden{width:0;min-width:0;max-width:0;margin:0;padding:0;border:0;opacity:0;overflow:hidden}.scroll-button.scroll-right.hidden{visibility:hidden;pointer-events:none}.tabs.vertical{flex-direction:row}.tabs-list{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;width:fit-content;max-width:100%;min-width:0;list-style:none;padding:0;margin:0;position:relative;font-weight:600}.tabs-list.scrollable{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;white-space:nowrap;scrollbar-width:none;-ms-overflow-style:none}.tabs-list.scrollable::-webkit-scrollbar{display:none}.tabs-list:focus-within .active-border{display:none}.active-border{position:absolute;left:0;width:0;transition:left 0.3s ease-in-out, width 0.3s ease-in-out, top 0.3s ease-in-out, height 0.3s ease-in-out}.tabs.horizontal .active-border{bottom:0;left:0;height:2px;background-color:#0a8276}.tabs.vertical .tabs-list{border-bottom:none;width:auto;align-items:start;height:fit-content;grid-auto-flow:row;grid-auto-rows:auto;grid-auto-columns:initial}.tabs.vertical .tab-content{padding-top:0px;padding-left:32px;flex:3 1 0;min-width:0}.tabs .tabs-list.position-sticky,.tabs .tabs-container.position-sticky{position:sticky;top:0;background-color:#ffffff;z-index:1000;box-shadow:0 1px 1px 0 rgba(29, 29, 29, 0.12), 0 0 1px 0 rgba(29, 29, 29, 0.12);transition:ease all 0.5s}.tabs .tabs-list.position-sticky.at-top .tab-item .subline,.tabs .tabs-list.position-sticky.at-top .tab-item .subline-wrapper,.tabs .tabs-container.position-sticky.at-top .tab-item .subline,.tabs .tabs-container.position-sticky.at-top .tab-item .subline-wrapper{display:none}.tabs .tabs-list.position-sticky{align-self:flex-start}.tabs:not(.vertical) .tab-item.full-width{flex:1}.tabs:not(.vertical).full-width-enabled .scroll-button{display:none}.tabs:not(.vertical).full-width-enabled .tabs-list{flex:1}.tabs:not(.vertical).full-width-enabled .tabs-list.scrollable{overflow-x:visible}.tabs:not(.vertical).full-width-enabled .tabs-container{width:100%}.tab-item{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;max-width:100%;padding:12px 16px;gap:4px;flex-shrink:0;cursor:pointer}@media (max-width: 768px){.tab-item{font-size:0.875rem;padding:8px 8px}}.tab-item.icon__right .top{flex-direction:row-reverse;justify-content:center}.tab-item.icon__right .top:has(.label),.tab-item.icon__right .top:has(.number){flex-direction:row;justify-content:center}.tab-item:hover{color:#0a8276}.tab-item:hover .label{color:#1d1d1d}.tab-item:active,.tab-item.active{color:#0a8276}.tab-item:active .label,.tab-item.active .label{color:#1d1d1d}.tab-item:focus,.tab-item.focus{outline:2px solid #0a8276;outline-offset:-2px;border-radius:2px}.tab-item:focus+.active-border,.tab-item.focus+.active-border{display:none}.tab-item:focus .label,.tab-item.focus .label{color:#1d1d1d}.tab-item.disabled{color:#bfbbbb;pointer-events:none}.tab-item .top{display:flex;justify-content:center;flex-direction:row;align-items:center;gap:4px;width:100%;max-width:100%;min-width:0;overflow:hidden}.tab-item .chip{min-width:0;overflow:hidden}.tab-item .chip ifx-chip{min-width:0;max-width:100%}.tab-item .header-wrapper{display:flex;overflow:hidden;max-width:100%;flex:0 1 auto;min-width:0}.tab-item .header{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;width:100%}.tab-item .subline-wrapper{display:flex;width:100%}.tab-item .subline-wrapper.left{justify-content:flex-start}.tab-item .subline-wrapper.center{justify-content:center}.tab-item .subline{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;color:#575352;font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem}.tab-item:hover .subline,.tab-item[aria-selected=true] .subline,.tab-item.active .subline{color:#0a8276}.tab-item.disabled .subline{color:#bfbbbb}.tabs.vertical .tab-item{border-right:2px solid transparent;justify-content:flex-start;align-items:flex-start;flex:none;max-width:100%;width:100%;text-align:left;align-self:start}.tabs.vertical .tab-item .top,.tabs.vertical .tab-item .subline-wrapper{justify-content:flex-start}.number-wrapper{position:relative;display:inline-flex;border-radius:9999px;overflow:hidden;vertical-align:middle;align-items:center;justify-content:center;flex-shrink:0}.tab-item.disabled .number-wrapper::after{content:"";position:absolute;inset:0;background:#bfbbbb;mix-blend-mode:lighten}ifx-chip::part(chip){display:flex}ifx-chip::part(label-wrapper),ifx-chip::part(label){max-width:25ch;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}ifx-chip::part(label){display:block;text-align:center}.tabs.vertical .active-border{left:0;top:0;width:2px;background-color:#0a8276}.tab-content{padding-top:24px;padding-left:0px;flex-grow:1}.tabs.small .tab-item{font-size:0.875rem}`;
|
|
6
|
+
|
|
7
|
+
const IfxTabs = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.ifxChange = createEvent(this, "ifxChange", 1);
|
|
11
|
+
}
|
|
12
|
+
get el() { return getElement(this); }
|
|
13
|
+
/** Orientation of tab list, either horizontal or vertical. */
|
|
14
|
+
orientation = "horizontal";
|
|
15
|
+
/** Index of the currently active tab. */
|
|
16
|
+
activeTabIndex = 0;
|
|
17
|
+
/** Stretches tabs to evenly fill the available horizontal space. */
|
|
18
|
+
fullWidth = false;
|
|
19
|
+
/** Text of the Advanced-Tab-Label */
|
|
20
|
+
label;
|
|
21
|
+
/** Number of the Advanced-Tab-Number */
|
|
22
|
+
number = 0;
|
|
23
|
+
/** Subline under the header, only for advanced variant. */
|
|
24
|
+
subline;
|
|
25
|
+
/** Subline position, either left or center. */
|
|
26
|
+
sublinePosition = "left";
|
|
27
|
+
/** Makes the tab header stick to the top of its scrolling oontainer */
|
|
28
|
+
positionSticky = false;
|
|
29
|
+
internalOrientation;
|
|
30
|
+
internalActiveTabIndex = 0;
|
|
31
|
+
tabObjects = [];
|
|
32
|
+
canScrollLeft = false;
|
|
33
|
+
canScrollRight = false;
|
|
34
|
+
atTop = false;
|
|
35
|
+
internalFocusedTabIndex = 0;
|
|
36
|
+
tabRefs = [];
|
|
37
|
+
tabHeaderRefs = [];
|
|
38
|
+
tabsListElement;
|
|
39
|
+
tabFocusHandlers = new Map();
|
|
40
|
+
/** Emitted when the active tab changes (e.g., user selects a different tab). */
|
|
41
|
+
ifxChange;
|
|
42
|
+
updateBorderOnWindowResize() {
|
|
43
|
+
this.updateBorderAndFocus();
|
|
44
|
+
this.updateScrollButtons();
|
|
45
|
+
}
|
|
46
|
+
setActiveAndFocusedTab(index) {
|
|
47
|
+
if (index >= this.tabObjects.length) {
|
|
48
|
+
index = this.tabObjects.length - 1;
|
|
49
|
+
}
|
|
50
|
+
if (index < 0) {
|
|
51
|
+
index = 0;
|
|
52
|
+
}
|
|
53
|
+
if (!this.tabObjects[index]?.disabled) {
|
|
54
|
+
this.internalActiveTabIndex = index;
|
|
55
|
+
this.internalFocusedTabIndex = index;
|
|
56
|
+
// Scroll the active tab into view
|
|
57
|
+
setTimeout(() => this.scrollTabIntoView(index), 0);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
handleTabHeaderChange(e) {
|
|
61
|
+
const tabIndex = parseInt(e.target.getAttribute("slot").replace("tab-", ""), 10);
|
|
62
|
+
const tab = e.target;
|
|
63
|
+
this.tabObjects[tabIndex] = {
|
|
64
|
+
...this.tabObjects[tabIndex],
|
|
65
|
+
header: tab.header,
|
|
66
|
+
disabled: tab.disabled === true,
|
|
67
|
+
icon: tab.icon,
|
|
68
|
+
iconPosition: tab.iconPosition,
|
|
69
|
+
subline: tab.subline,
|
|
70
|
+
sublinePosition: tab.sublinePosition,
|
|
71
|
+
label: tab.label,
|
|
72
|
+
number: tab.number,
|
|
73
|
+
};
|
|
74
|
+
this.tabObjects = [...this.tabObjects];
|
|
75
|
+
}
|
|
76
|
+
handleScroll() {
|
|
77
|
+
const container = this.el.shadowRoot.querySelector(".tabs-container") ||
|
|
78
|
+
this.el.shadowRoot.querySelector(".tabs-list");
|
|
79
|
+
if (container) {
|
|
80
|
+
const removeSubline = container.getBoundingClientRect().top;
|
|
81
|
+
this.atTop = removeSubline <= 0;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
activeTabIndexChanged(newValue, oldValue) {
|
|
85
|
+
if (newValue !== oldValue) {
|
|
86
|
+
this.setActiveAndFocusedTab(newValue);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
componentWillLoad() {
|
|
90
|
+
this.internalOrientation =
|
|
91
|
+
this.orientation.toLowerCase() === "vertical" ? "vertical" : "horizontal";
|
|
92
|
+
this.onSlotChange();
|
|
93
|
+
this.setActiveAndFocusedTab(this.activeTabIndex);
|
|
94
|
+
this.updateTabStyles();
|
|
95
|
+
this.handleScroll();
|
|
96
|
+
}
|
|
97
|
+
updateTabStyles() {
|
|
98
|
+
this.tabHeaderRefs.forEach((tab, index) => {
|
|
99
|
+
tab.classList.toggle("active", index === this.internalActiveTabIndex);
|
|
100
|
+
tab.setAttribute("aria-selected", index === this.internalActiveTabIndex ? "true" : "false");
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
// needed for smooth border transition
|
|
104
|
+
reRenderBorder() {
|
|
105
|
+
const borderElement = this.el.shadowRoot.querySelector(".active-border");
|
|
106
|
+
if (borderElement && this.tabHeaderRefs[this.internalActiveTabIndex]) {
|
|
107
|
+
if (this.orientation === "horizontal") {
|
|
108
|
+
borderElement.style.left = `${this.tabHeaderRefs[this.internalActiveTabIndex].offsetLeft}px`;
|
|
109
|
+
borderElement.style.width = `${this.tabHeaderRefs[this.internalActiveTabIndex].offsetWidth}px`;
|
|
110
|
+
borderElement.style.top = "";
|
|
111
|
+
borderElement.style.height = "";
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
borderElement.style.top = `${this.tabHeaderRefs[this.internalActiveTabIndex].offsetTop}px`;
|
|
115
|
+
borderElement.style.height = `${this.tabHeaderRefs[this.internalActiveTabIndex].offsetHeight}px`;
|
|
116
|
+
borderElement.style.left = "";
|
|
117
|
+
borderElement.style.width = "";
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
// when a slot is removed / added
|
|
122
|
+
onSlotChange() {
|
|
123
|
+
const tabs = Array.from(this.el.children).filter((child) => child.matches("ifx-tab"));
|
|
124
|
+
this.tabObjects = Array.from(tabs).map((tab) => {
|
|
125
|
+
return {
|
|
126
|
+
header: tab?.header,
|
|
127
|
+
disabled: tab?.disabled === true,
|
|
128
|
+
icon: tab?.icon,
|
|
129
|
+
iconPosition: tab?.iconPosition,
|
|
130
|
+
subline: tab?.subline,
|
|
131
|
+
sublinePosition: tab?.sublinePosition,
|
|
132
|
+
label: tab?.label,
|
|
133
|
+
number: tab?.number,
|
|
134
|
+
};
|
|
135
|
+
});
|
|
136
|
+
this.tabRefs = Array.from(tabs);
|
|
137
|
+
this.tabRefs.forEach((tab, index) => {
|
|
138
|
+
tab.setAttribute("slot", `tab-${index}`);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
async componentDidLoad() {
|
|
142
|
+
if (!isNestedInIfxComponent(this.el)) {
|
|
143
|
+
const framework = detectFramework();
|
|
144
|
+
trackComponent("ifx-tabs", await framework);
|
|
145
|
+
}
|
|
146
|
+
this.updateBorderAndFocus();
|
|
147
|
+
this.updateScrollButtons();
|
|
148
|
+
// Add keyboard event listeners for each tab header
|
|
149
|
+
this.setupTabFocusListeners();
|
|
150
|
+
this.handleScroll();
|
|
151
|
+
}
|
|
152
|
+
setupTabFocusListeners() {
|
|
153
|
+
// Clear any existing handlers
|
|
154
|
+
this.tabFocusHandlers.clear();
|
|
155
|
+
this.tabHeaderRefs.forEach((tab, index) => {
|
|
156
|
+
const handler = () => {
|
|
157
|
+
this.internalFocusedTabIndex = index;
|
|
158
|
+
};
|
|
159
|
+
// Store the handler so we can remove it later
|
|
160
|
+
this.tabFocusHandlers.set(tab, handler);
|
|
161
|
+
tab.addEventListener("focus", handler);
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
disconnectedCallback() {
|
|
165
|
+
// Remove keyboard event listeners when component is unmounted
|
|
166
|
+
this.tabFocusHandlers.forEach((handler, tab) => {
|
|
167
|
+
tab.removeEventListener("focus", handler);
|
|
168
|
+
});
|
|
169
|
+
this.tabFocusHandlers.clear();
|
|
170
|
+
}
|
|
171
|
+
componentDidUpdate() {
|
|
172
|
+
this.updateBorderAndFocus();
|
|
173
|
+
requestAnimationFrame(() => {
|
|
174
|
+
this.updateScrollButtons();
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
updateBorderAndFocus() {
|
|
178
|
+
this.reRenderBorder();
|
|
179
|
+
this.updateTabFocusability();
|
|
180
|
+
}
|
|
181
|
+
updateTabFocusability() {
|
|
182
|
+
this.tabHeaderRefs.forEach((tab, index) => {
|
|
183
|
+
tab.tabIndex = index === this.internalActiveTabIndex ? 0 : -1;
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
focusNextTab() {
|
|
187
|
+
let nextIndex = this.internalFocusedTabIndex + 1;
|
|
188
|
+
while (nextIndex < this.tabHeaderRefs.length &&
|
|
189
|
+
this.tabObjects[nextIndex].disabled) {
|
|
190
|
+
nextIndex++;
|
|
191
|
+
}
|
|
192
|
+
if (nextIndex >= 0 && nextIndex < this.tabHeaderRefs.length) {
|
|
193
|
+
this.internalFocusedTabIndex = nextIndex;
|
|
194
|
+
this.tabHeaderRefs[nextIndex].focus();
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
focusPreviousTab() {
|
|
198
|
+
let prevIndex = this.internalFocusedTabIndex - 1;
|
|
199
|
+
while (prevIndex >= 0 && this.tabObjects[prevIndex].disabled) {
|
|
200
|
+
prevIndex--;
|
|
201
|
+
}
|
|
202
|
+
if (prevIndex >= 0 && prevIndex < this.tabHeaderRefs.length) {
|
|
203
|
+
this.internalFocusedTabIndex = prevIndex;
|
|
204
|
+
this.tabHeaderRefs[prevIndex].focus();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
getSublineAlignment(tab) {
|
|
208
|
+
const value = (tab?.sublinePosition ??
|
|
209
|
+
this.sublinePosition ??
|
|
210
|
+
"left").trim();
|
|
211
|
+
return value === "center" ? "center" : "left";
|
|
212
|
+
}
|
|
213
|
+
getTabItemClass(index) {
|
|
214
|
+
const isActive = index === this.internalActiveTabIndex && !this.tabObjects[index].disabled;
|
|
215
|
+
const isDisabled = this.tabObjects[index].disabled;
|
|
216
|
+
const iconPosition = this.tabObjects[index].iconPosition;
|
|
217
|
+
const subline = this.tabObjects[index].subline;
|
|
218
|
+
const sublinePosition = this.tabObjects[index].sublinePosition;
|
|
219
|
+
const label = this.tabObjects[index].label;
|
|
220
|
+
const number = this.tabObjects[index].number;
|
|
221
|
+
return `tab-item ${this.fullWidth ? "full-width" : ""} ${isActive ? "active" : ""} ${isDisabled ? "disabled" : ""} ${"icon__" + iconPosition} ${subline ? "subline" : ""} ${sublinePosition ? "sublinePosition" : ""} ${label ? "label" : ""} ${number ? "number" : ""}`;
|
|
222
|
+
}
|
|
223
|
+
handleClick(tab, index) {
|
|
224
|
+
if (!tab.disabled) {
|
|
225
|
+
const previousTabIndex = this.internalActiveTabIndex;
|
|
226
|
+
this.internalActiveTabIndex = index;
|
|
227
|
+
this.ifxChange.emit({ previousTab: previousTabIndex, currentTab: index });
|
|
228
|
+
// Center the clicked tab
|
|
229
|
+
setTimeout(() => this.scrollTabIntoView(index), 0);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
handleKeyDown(ev) {
|
|
233
|
+
if (ev.key === "Tab") {
|
|
234
|
+
if (ev.shiftKey) {
|
|
235
|
+
// Shift + Tab
|
|
236
|
+
if (this.internalFocusedTabIndex === 0) {
|
|
237
|
+
// Allow default behavior to move focus out of component
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
ev.preventDefault();
|
|
242
|
+
this.focusPreviousTab();
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
// Tab
|
|
247
|
+
if (this.internalFocusedTabIndex === this.tabHeaderRefs.length - 1) {
|
|
248
|
+
// Allow default behavior to move focus out of component
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
ev.preventDefault();
|
|
253
|
+
this.focusNextTab();
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
else if (ev.key === "Enter") {
|
|
258
|
+
const path = ev.composedPath();
|
|
259
|
+
const isTabHeader = path.some((el) => this.tabHeaderRefs.includes(el));
|
|
260
|
+
if (!isTabHeader) {
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
if (this.internalFocusedTabIndex !== -1 &&
|
|
264
|
+
!this.tabObjects[this.internalFocusedTabIndex].disabled) {
|
|
265
|
+
const previousTabIndex = this.internalActiveTabIndex;
|
|
266
|
+
this.internalActiveTabIndex = this.internalFocusedTabIndex;
|
|
267
|
+
this.ifxChange.emit({
|
|
268
|
+
previousTab: previousTabIndex,
|
|
269
|
+
currentTab: this.internalFocusedTabIndex,
|
|
270
|
+
});
|
|
271
|
+
// Center the activated tab
|
|
272
|
+
setTimeout(() => this.scrollTabIntoView(this.internalFocusedTabIndex), 0);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
updateScrollButtons() {
|
|
277
|
+
if (this.shouldDisableScrolling()) {
|
|
278
|
+
this.canScrollLeft = false;
|
|
279
|
+
this.canScrollRight = false;
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
const container = this.tabsListElement;
|
|
283
|
+
if (!container) {
|
|
284
|
+
this.canScrollLeft = false;
|
|
285
|
+
this.canScrollRight = false;
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
const maxScroll = container.scrollWidth - container.clientWidth;
|
|
289
|
+
// No real overflow
|
|
290
|
+
if (maxScroll <= 1) {
|
|
291
|
+
this.canScrollLeft = false;
|
|
292
|
+
this.canScrollRight = false;
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
const currentScroll = container.scrollLeft;
|
|
296
|
+
this.canScrollLeft = currentScroll > 1;
|
|
297
|
+
this.canScrollRight = currentScroll < maxScroll - 1;
|
|
298
|
+
}
|
|
299
|
+
shouldDisableScrolling() {
|
|
300
|
+
return (!this.tabsListElement ||
|
|
301
|
+
this.internalOrientation === "vertical" ||
|
|
302
|
+
this.fullWidth);
|
|
303
|
+
}
|
|
304
|
+
scrollLeft() {
|
|
305
|
+
if (!this.canScrollLeft || !this.tabsListElement)
|
|
306
|
+
return;
|
|
307
|
+
const scrollAmount = Math.min(200, this.tabsListElement.scrollLeft);
|
|
308
|
+
this.tabsListElement.scrollBy({ left: -scrollAmount, behavior: "smooth" });
|
|
309
|
+
}
|
|
310
|
+
scrollRight() {
|
|
311
|
+
if (!this.canScrollRight || !this.tabsListElement)
|
|
312
|
+
return;
|
|
313
|
+
const maxScroll = this.tabsListElement.scrollWidth - this.tabsListElement.clientWidth;
|
|
314
|
+
const currentScroll = this.tabsListElement.scrollLeft;
|
|
315
|
+
const scrollAmount = Math.min(200, maxScroll - currentScroll);
|
|
316
|
+
this.tabsListElement.scrollBy({ left: scrollAmount, behavior: "smooth" });
|
|
317
|
+
}
|
|
318
|
+
onTabsListScroll() {
|
|
319
|
+
this.updateScrollButtons();
|
|
320
|
+
}
|
|
321
|
+
scrollTabIntoView(index) {
|
|
322
|
+
if (this.shouldDisableScrolling() || !this.tabHeaderRefs[index]) {
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
const tabElement = this.tabHeaderRefs[index];
|
|
326
|
+
const container = this.tabsListElement;
|
|
327
|
+
const tabRect = this.getTabCenterInfo(tabElement);
|
|
328
|
+
const containerRect = this.getContainerCenterInfo(container);
|
|
329
|
+
if (Math.abs(tabRect.center - containerRect.center) > 50) {
|
|
330
|
+
let desiredScrollLeft = this.calculateCenteredScrollPosition(tabRect, containerRect);
|
|
331
|
+
// 🔥 clamp tiny values
|
|
332
|
+
if (desiredScrollLeft < 1) {
|
|
333
|
+
desiredScrollLeft = 0;
|
|
334
|
+
}
|
|
335
|
+
const maxScroll = container.scrollWidth - container.clientWidth;
|
|
336
|
+
if (maxScroll - desiredScrollLeft < 1) {
|
|
337
|
+
desiredScrollLeft = maxScroll;
|
|
338
|
+
}
|
|
339
|
+
container.scrollTo({ left: desiredScrollLeft });
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
getTabCenterInfo(tabElement) {
|
|
343
|
+
const left = tabElement.offsetLeft;
|
|
344
|
+
const width = tabElement.offsetWidth;
|
|
345
|
+
return {
|
|
346
|
+
left,
|
|
347
|
+
width,
|
|
348
|
+
center: left + width / 2,
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
getContainerCenterInfo(container) {
|
|
352
|
+
const scrollLeft = container.scrollLeft;
|
|
353
|
+
const width = container.clientWidth;
|
|
354
|
+
return {
|
|
355
|
+
scrollLeft,
|
|
356
|
+
width,
|
|
357
|
+
center: scrollLeft + width / 2,
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
calculateCenteredScrollPosition(tabRect, containerRect) {
|
|
361
|
+
const desiredScrollLeft = tabRect.center - containerRect.width / 2;
|
|
362
|
+
const maxScrollLeft = this.tabsListElement.scrollWidth - containerRect.width;
|
|
363
|
+
return Math.max(0, Math.min(desiredScrollLeft, maxScrollLeft));
|
|
364
|
+
}
|
|
365
|
+
render() {
|
|
366
|
+
return (h("div", { key: '5691a9fe2958ed309b4f66c967d543b16a09ccaf', "aria-label": "navigation tabs", class: `tabs ${this.internalOrientation} ${this.fullWidth ? "full-width-enabled" : ""}` }, this.internalOrientation === "horizontal" ? (h("div", { class: `tabs-container ${this.positionSticky ? "position-sticky" : ""} ${this.atTop ? "at-top" : ""}` }, h("ifx-icon-button", { shape: "round", variant: "tertiary", icon: "chevronLeft16", size: "s", disabled: false, "aria-label": "Scroll tabs left", onClick: () => this.scrollLeft(), class: `scroll-button scroll-left ${!this.canScrollLeft ? "hidden" : ""}` }), h("ul", { role: "tablist", class: "tabs-list scrollable", ref: (el) => (this.tabsListElement = el), onScroll: () => this.onTabsListScroll() }, this.tabObjects?.map((tab, index) => (h("li", { class: this.getTabItemClass(index), ref: (el) => (this.tabHeaderRefs[index] = el), onMouseDown: (event) => event.preventDefault(), onClick: () => this.handleClick(tab, index), "aria-selected": index === this.internalActiveTabIndex ? "true" : "false", "aria-disabled": tab.disabled ? "true" : "false", role: "tab" }, h("div", { class: "top" }, tab?.icon ? h("ifx-icon", { icon: tab.icon }) : "", tab?.header ? (h("div", { class: "header-wrapper" }, h("p", { class: "header" }, tab.header))) : (""), tab?.number ? (h("div", { class: "number-wrapper" }, h("ifx-indicator", { class: "number", variant: "number", number: tab.number, inverted: false }))) : (""), tab?.label ? (h("div", { class: "chip" }, h("span", { class: "label-wrapper" }, h("ifx-chip", { class: "label", placeholder: tab.label, size: "small", variant: "single", theme: "outlined", icon: "", "read-only": "true", "aria-label": "Chip", disabled: tab.disabled, tabindex: "-1" })))) : ("")), (tab?.subline || this.subline) && (h("span", { class: `subline-wrapper ${this.getSublineAlignment(tab)}` }, h("p", { class: "subline" }, tab?.subline ?? this.subline)))))), h("div", { class: "active-border" })), h("ifx-icon-button", { shape: "round", variant: "tertiary", icon: "chevronRight16", size: "s", disabled: false, "aria-label": "Scroll tabs right", onClick: () => this.scrollRight(), class: `scroll-button scroll-right ${!this.canScrollRight ? "hidden" : ""}` }))) : (h("ul", { role: "tablist", class: `tabs-list ${this.positionSticky ? "position-sticky" : ""} ${this.atTop ? "at-top" : ""}` }, this.tabObjects?.map((tab, index) => (h("li", { class: this.getTabItemClass(index), ref: (el) => (this.tabHeaderRefs[index] = el), onMouseDown: (event) => event.preventDefault(), onClick: () => this.handleClick(tab, index), "aria-selected": index === this.internalActiveTabIndex ? "true" : "false", "aria-disabled": tab.disabled ? "true" : "false", role: "tab" }, h("div", { class: "top" }, tab?.icon ? h("ifx-icon", { icon: tab.icon }) : "", tab?.header ? (h("div", { class: "header-wrapper" }, h("p", { class: "header" }, tab.header))) : (""), tab?.number ? (h("div", { class: "number-wrapper" }, h("ifx-indicator", { class: "number", variant: "number", number: tab.number, inverted: false }))) : (""), tab?.label ? (h("div", { class: "chip" }, h("span", { class: "label-wrapper" }, h("ifx-chip", { class: "label", placeholder: tab.label, size: "small", variant: "single", theme: "outlined", icon: "", "read-only": "true", "aria-label": "Chip", disabled: tab.disabled, tabindex: "-1" })))) : ("")), (tab?.subline || this.subline) && (h("span", { class: `subline-wrapper ${this.getSublineAlignment(tab)}` }, h("p", { class: "subline" }, tab?.subline ?? this.subline)))))), h("div", { class: "active-border" }))), h("div", { key: 'fe72e4dd9de7d2a0a490235a3bb18a5d61a8fdbe', class: "tab-content" }, Array.from(this.tabObjects).map((_, index) => (h("div", { style: {
|
|
367
|
+
display: index === this.internalActiveTabIndex ? "block" : "none",
|
|
368
|
+
} }, h("slot", { name: `tab-${index}` })))))));
|
|
369
|
+
}
|
|
370
|
+
static get watchers() { return {
|
|
371
|
+
"activeTabIndex": [{
|
|
372
|
+
"activeTabIndexChanged": 0
|
|
373
|
+
}]
|
|
374
|
+
}; }
|
|
375
|
+
};
|
|
376
|
+
IfxTabs.style = tabsCss();
|
|
377
|
+
|
|
378
|
+
export { IfxTabs as ifx_tabs };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { r as registerInstance, a as getElement, e as getAssetPath, h } from './index-CY4s4b6R.js';
|
|
2
|
+
|
|
3
|
+
const templatesUiCss = () => `*{padding:0;margin:0}.templates__container{display:flex;flex-direction:column;align-items:center}.templates__container .back__btn-wrapper{display:none}.templates__container .back__btn-wrapper.show{display:flex;justify-content:space-between;width:100%}.templates__container .back__btn-wrapper .alert__wrapper{display:none}.templates__container .back__btn-wrapper .alert__wrapper.show{display:block}.templates__container .templates__wrapper{display:flex;padding:20px 0px;gap:20px;flex-wrap:wrap}.templates__container .templates__title.hide{display:none}`;
|
|
4
|
+
|
|
5
|
+
const TemplatesUI = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
get el() { return getElement(this); }
|
|
10
|
+
tableTemplate = getAssetPath(`https://raw.githubusercontent.com/Infineon/public-assets/refs/heads/main/table_template.png`);
|
|
11
|
+
wizardTemplate = getAssetPath(`https://raw.githubusercontent.com/Infineon/public-assets/refs/heads/main/wizard_template.png`);
|
|
12
|
+
toggleTemplate(currTemp) {
|
|
13
|
+
const templates = this.el.shadowRoot
|
|
14
|
+
.querySelector(".templates__wrapper")
|
|
15
|
+
.querySelectorAll("ifx-template");
|
|
16
|
+
templates.forEach((template) => {
|
|
17
|
+
template.toggleTemplate(currTemp);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
handleError(e) {
|
|
21
|
+
const alertWrapper = this.el.shadowRoot.querySelector(".alert__wrapper");
|
|
22
|
+
if (e.detail) {
|
|
23
|
+
alertWrapper.classList.add("show");
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
alertWrapper.classList.remove("show");
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
filterTemplates(e) {
|
|
30
|
+
const title = this.el.shadowRoot.querySelector(".templates__title");
|
|
31
|
+
const backBtn = this.el.shadowRoot.querySelector(".back__btn-wrapper");
|
|
32
|
+
if (e.detail) {
|
|
33
|
+
title.classList.add("hide");
|
|
34
|
+
if (e.detail !== "details") {
|
|
35
|
+
backBtn.classList.add("show");
|
|
36
|
+
}
|
|
37
|
+
this.toggleTemplate(e.detail);
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
title.classList.remove("hide");
|
|
41
|
+
backBtn.classList.remove("show");
|
|
42
|
+
this.toggleTemplate(null);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
closeAlert() {
|
|
46
|
+
const alertWrapper = this.el.shadowRoot.querySelector(".alert__wrapper");
|
|
47
|
+
alertWrapper.classList.remove("show");
|
|
48
|
+
}
|
|
49
|
+
render() {
|
|
50
|
+
return (h("div", { key: 'f30661dd835f27ed2a53867b5035653a6e13d06e', class: "templates__container" }, h("div", { key: 'c62f94398ea8aa2023297a5cfb7863cb7cb82b5f', class: "back__btn-wrapper" }, h("ifx-icon-button", { key: 'c43a1e3a405afdd7f2bc417b9877d5833d3cba75', onClick: () => this.filterTemplates(false), shape: "round", variant: "tertiary", icon: "arrow-left-16", target: "_blank", size: "m" }), h("div", { key: '3bb40c0e4143f96c293be948ed1c92e8d8d0290c', class: "alert__wrapper" }, h("ifx-alert", { key: '15fb2f5f2bb6c03d72ca6e8e82f8f82127ee7b40', onClick: () => this.closeAlert(), "aria-live": "assertive", variant: "danger", icon: "c-info-16" }, "All fields are mandatory"))), h("h2", { key: '2b24399234e8b18fb43515851221922ded2c26e2', class: "templates__title" }, "Choose your template"), h("div", { key: '2f5e132ad3a82c7ee4a57eb2d34f3eb814b071c2', class: "templates__wrapper" }, h("ifx-template", { key: 'b30f5715c2da6a94bb87b5266e4aab3e7afb0628', name: "template-01", thumbnail: this.tableTemplate }), h("ifx-template", { key: '518920d3551319d985fbfe523d834cfb917eb007', name: "template-02", thumbnail: this.wizardTemplate }))));
|
|
51
|
+
}
|
|
52
|
+
static get assetsDirs() { return ["assets"]; }
|
|
53
|
+
};
|
|
54
|
+
TemplatesUI.style = templatesUiCss();
|
|
55
|
+
|
|
56
|
+
export { TemplatesUI as ifx_templates_ui };
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-CY4s4b6R.js';
|
|
2
|
+
import { i as isNestedInIfxComponent } from './dom-utils-CtINY9El.js';
|
|
3
|
+
import { d as detectFramework, t as trackComponent } from './tracking-DNHOWgWh.js';
|
|
4
|
+
|
|
5
|
+
const textFieldCss = () => `:host{display:flex}.textInput__container{display:flex;flex-direction:column;align-items:flex-start;padding:0px;width:100%;flex:none;order:0;align-self:stretch;flex-grow:0;font-family:var(--ifx-font-family)}.textInput__container .delete-icon{position:absolute;right:16px}.textInput__container:not(.readOnly,.disabled) .delete-icon:hover{cursor:pointer}.textInput__container.disabled:not(.readOnly) #text-field{color:#ffffff}.textInput__container.disabled:not(.readOnly) .delete-icon{color:#ffffff}.textInput__container.disabled:not(.readOnly) .textInput__top-wrapper label{color:#bfbbbb}.textInput__container.disabled:not(.readOnly) .textInput__top-wrapper .required{color:#bfbbbb}.textInput__container.disabled:not(.readOnly) .textInput__bottom-wrapper input{border:1px solid #bfbbbb;background-color:#bfbbbb}.textInput__container.disabled:not(.readOnly) .textInput__bottom-wrapper input::placeholder{font-size:1rem;color:#ffffff}.textInput__container .textInput__top-wrapper{display:flex;flex-direction:row;align-items:flex-start;padding:0px;gap:4px;flex:none;order:0;align-self:stretch;flex-grow:0}.textInput__container .textInput__top-wrapper label{font-style:normal;font-weight:400;font-size:1rem;line-height:1.5rem;display:flex;align-items:center;color:#1d1d1d;flex:none;order:0;flex-grow:0}.textInput__container .textInput__top-wrapper label .optional-required{margin-left:4px}.textInput__container .textInput__top-wrapper label .optional{margin-left:4px}.textInput__container .textInput__top-wrapper label .required{color:#575352;margin-left:4px}.textInput__container .textInput__top-wrapper label .required.error{color:#cd002f}.textInput__container .input-container{position:relative;display:flex;align-items:center;width:100%}.textInput__container .textInput__bottom-wrapper{flex-grow:1;position:relative;display:flex;flex-direction:column;align-items:flex-start;padding:0px;gap:4px;flex:none;order:1;align-self:stretch;flex-grow:0}.textInput__container .textInput__bottom-wrapper input{width:100%;box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:8px 16px;gap:8px;height:40px;background-color:#ffffff;color:#1d1d1d;font-family:var(--ifx-font-family);font-size:1rem;line-height:1.5rem;border:1px solid #8d8786;border-radius:1px;flex:none;order:0;align-self:stretch;flex-grow:0;text-overflow:ellipsis}.textInput__container .textInput__bottom-wrapper input.input-s{height:36px;font-size:0.875rem;line-height:1.25rem}.textInput__container .textInput__bottom-wrapper input.input-s::placeholder{font-size:1rem;line-height:1.25rem}.textInput__container .textInput__bottom-wrapper input.icon{padding-left:40px}.textInput__container .textInput__bottom-wrapper input.error{border:1px solid #cd002f}.textInput__container .textInput__bottom-wrapper input.error:focus{outline:none}.textInput__container .textInput__bottom-wrapper input.readOnly{border:none;border-radius:var(--borderRadius-12, 1px);border-bottom:1px solid var(--color-engineering-300, #bfbbbb);background:var(--color-base-white, #fff);padding-left:0}.textInput__container .textInput__bottom-wrapper input.readOnly::placeholder{color:#1d1d1d}.textInput__container .textInput__bottom-wrapper input.success{border:1px solid #4ca460}.textInput__container .textInput__bottom-wrapper input.success:focus{outline:none}.textInput__container .textInput__bottom-wrapper input:focus:not(.error,.success):not(.readOnly){outline:none;border:1px solid #0a8276}.textInput__container .textInput__bottom-wrapper input.readOnly:focus,.textInput__container .textInput__bottom-wrapper input[readonly]:focus{outline:none;box-shadow:none;border:none;border-bottom:1px solid var(--color-engineering-300, #bfbbbb)}.textInput__container .textInput__bottom-wrapper input:hover:not(:disabled,:focus,.error,.success):not(.readOnly){border:1px solid #575352}.textInput__container .textInput__bottom-wrapper .input-icon{position:absolute;top:50%;transform:translateY(-50%);left:16px;transition:0.3s;color:#8d8786}.textInput__container .textInput__bottom-wrapper .textInput__bottom-wrapper-caption{font-style:normal;font-weight:400;font-size:0.75rem;line-height:1rem;color:#1d1d1d;flex:none;order:1;align-self:stretch;flex-grow:0}.textInput__container .textInput__bottom-wrapper .textInput__bottom-wrapper-caption.error{color:#cd002f}.textInput__container .textInput__bottom-wrapper .textInput__bottom-wrapper-caption.disabled{color:#bfbbbb}`;
|
|
6
|
+
|
|
7
|
+
const TextField = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.ifxInput = createEvent(this, "ifxInput", 7);
|
|
11
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
12
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
16
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
inputElement;
|
|
20
|
+
initialValue = "";
|
|
21
|
+
get el() { return getElement(this); }
|
|
22
|
+
/** Placeholder text shown when the field is empty. */
|
|
23
|
+
placeholder = "Placeholder";
|
|
24
|
+
/** Name attribute used when submitting the text field in a form. */
|
|
25
|
+
name;
|
|
26
|
+
/** Current value of the text field (can be updated programmatically). */
|
|
27
|
+
value = "";
|
|
28
|
+
/** If true, shows the text field in an error state. */
|
|
29
|
+
error = false;
|
|
30
|
+
/** Label text shown above the text field. */
|
|
31
|
+
label = "";
|
|
32
|
+
/** Optional icon shown inside or next to the text field. */
|
|
33
|
+
icon = "";
|
|
34
|
+
/** Helper text shown below the text field. */
|
|
35
|
+
caption = "";
|
|
36
|
+
/** Size of the text field (e.g. s, m, l). */
|
|
37
|
+
size = "m";
|
|
38
|
+
/** Whether a value is required (used for validation). */
|
|
39
|
+
required = false;
|
|
40
|
+
/** If true, shows the text field in a success/valid state. */
|
|
41
|
+
success = false;
|
|
42
|
+
/** If true, the text field is disabled and not interactive. */
|
|
43
|
+
disabled = false;
|
|
44
|
+
/** If true, the text field is read-only but focusable. */
|
|
45
|
+
readOnly = false;
|
|
46
|
+
/** Maximum number of characters allowed. */
|
|
47
|
+
maxlength;
|
|
48
|
+
/** If true, shows a delete/clear icon to remove the current value. */
|
|
49
|
+
showDeleteIcon = false;
|
|
50
|
+
/** Native autocomplete attribute value. */
|
|
51
|
+
autocomplete = "on";
|
|
52
|
+
/** Input type for the field (text or password). */
|
|
53
|
+
type = "text";
|
|
54
|
+
/** Internal ID used to link label and input elements. */
|
|
55
|
+
internalId = "text-field";
|
|
56
|
+
internalType;
|
|
57
|
+
/** Fired when the user types or the value changes. */
|
|
58
|
+
ifxInput;
|
|
59
|
+
// @Prop({ reflect: true })
|
|
60
|
+
// resetOnSubmit: boolean = false;
|
|
61
|
+
internals;
|
|
62
|
+
valueWatcher(newValue) {
|
|
63
|
+
const normalizedValue = newValue ?? "";
|
|
64
|
+
if (this.inputElement && normalizedValue !== this.inputElement.value) {
|
|
65
|
+
this.inputElement.value = normalizedValue;
|
|
66
|
+
}
|
|
67
|
+
this.syncFormValue(normalizedValue);
|
|
68
|
+
}
|
|
69
|
+
syncFormValue(value = this.value ?? "") {
|
|
70
|
+
this.internals.setFormValue(value);
|
|
71
|
+
}
|
|
72
|
+
/** Resets the text field value and clears the underlying input element. */
|
|
73
|
+
async reset() {
|
|
74
|
+
this.value = "";
|
|
75
|
+
if (this.inputElement) {
|
|
76
|
+
this.inputElement.value = "";
|
|
77
|
+
}
|
|
78
|
+
this.syncFormValue("");
|
|
79
|
+
}
|
|
80
|
+
formResetCallback() {
|
|
81
|
+
this.value = this.initialValue;
|
|
82
|
+
if (this.inputElement) {
|
|
83
|
+
this.inputElement.value = this.initialValue;
|
|
84
|
+
}
|
|
85
|
+
this.syncFormValue(this.initialValue);
|
|
86
|
+
}
|
|
87
|
+
handleDeleteContent() {
|
|
88
|
+
if (!this.disabled && !this.readOnly) {
|
|
89
|
+
this.reset();
|
|
90
|
+
this.ifxInput.emit(this.value);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
handleInput() {
|
|
94
|
+
const query = this.inputElement.value;
|
|
95
|
+
this.value = query;
|
|
96
|
+
this.ifxInput.emit(this.value);
|
|
97
|
+
}
|
|
98
|
+
handleTypeProp() {
|
|
99
|
+
this.internalType =
|
|
100
|
+
this.type === "text" || this.type === "password" ? this.type : "text";
|
|
101
|
+
}
|
|
102
|
+
componentWillLoad() {
|
|
103
|
+
this.handleTypeProp();
|
|
104
|
+
this.initialValue = this.value ?? "";
|
|
105
|
+
this.syncFormValue(this.initialValue);
|
|
106
|
+
}
|
|
107
|
+
async componentDidLoad() {
|
|
108
|
+
if (!isNestedInIfxComponent(this.el)) {
|
|
109
|
+
const framework = detectFramework();
|
|
110
|
+
trackComponent("ifx-text-field", await framework);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
render() {
|
|
114
|
+
return (h("div", { key: 'e036d5d5ae2432cfab635503a23f4c7602e11413', "aria-label": "a text field for user input", "aria-value": this.value, "aria-disabled": this.disabled, class: `textInput__container ${this.readOnly ? "readOnly" : ""} ${this.disabled && !this.error ? "disabled" : ""}` }, h("div", { key: '55c06b14b80e2be6d04f3a13beabe09de9653a1a', class: "textInput__top-wrapper" }, this.label && (h("label", { key: 'a86b27abe030413baebbf7661eb0eca81678ac65', htmlFor: this.internalId }, h("span", { key: '95ae82198df9bf88085eef21dd890aacbc9690a0' }, this.label), this.required && (h("span", { key: '093fae8e12942b09dc11272538963b1865d827d7', class: `required ${this.error && !this.readOnly ? "error" : ""}` }, "*"))))), h("div", { key: '4127821b00f0561df74b22aca8fd7018929f71e3', class: "textInput__bottom-wrapper" }, h("div", { key: '803c3309e58f2ea6be0422b221c9dcdd405d058b', class: "input-container" }, this.icon && h("ifx-icon", { key: 'bcaf9640edafbd1a06030580bb7acd47ee6e35dc', class: "input-icon", icon: this.icon }), h("input", { key: 'd60901bed92b149d062115c874ece8ab00618e73', ref: (el) => (this.inputElement = el), disabled: this.disabled && !this.error, autocomplete: this.autocomplete, type: this.internalType, id: this.internalId, value: this.value, onInput: () => this.handleInput(), placeholder: this.placeholder, readonly: this.readOnly, maxlength: this.maxlength, class: `${this.icon ? "icon" : ""}
|
|
115
|
+
${this.error ? "error" : ""}
|
|
116
|
+
${this.readOnly ? "readOnly" : ""}
|
|
117
|
+
${this.size === "s" ? "input-s" : ""}
|
|
118
|
+
${this.success ? "success" : ""}` }), this.showDeleteIcon && this.value && (h("ifx-icon", { key: 'aec05d3c8c4bc167891570bc642f11b410947c97', class: "delete-icon", icon: "cRemove16", onClick: () => this.handleDeleteContent() }))), this.caption && (h("div", { key: 'bc4721ea2a96a58da3f5da91a52b9feb84b3ce64', class: `textInput__bottom-wrapper-caption ${this.error && !this.readOnly ? "error" : ""} ${this.disabled && !this.readOnly && !this.error ? "disabled" : ""}` }, this.caption)))));
|
|
119
|
+
}
|
|
120
|
+
static get formAssociated() { return true; }
|
|
121
|
+
static get watchers() { return {
|
|
122
|
+
"value": [{
|
|
123
|
+
"valueWatcher": 0
|
|
124
|
+
}]
|
|
125
|
+
}; }
|
|
126
|
+
};
|
|
127
|
+
TextField.style = textFieldCss();
|
|
128
|
+
|
|
129
|
+
export { TextField as ifx_text_field };
|