@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,703 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-CY4s4b6R.js';
|
|
2
|
+
import { d as detectFramework, t as trackComponent } from './tracking-DNHOWgWh.js';
|
|
3
|
+
import { s as sanitizeHref } from './url-utils-QgsB_-OM.js';
|
|
4
|
+
|
|
5
|
+
const navbarCss = () => `:host{display:block;width:100%}.navbar{--navbar-height:64px;--navbar-inline-padding:16px;position:relative;z-index:1030;display:block;width:100%;height:var(--navbar-height);font-family:var(--ifx-font-family)}.navbar--fixed .navbar__wrapper{position:fixed}.navbar--open .navbar__wrapper{height:100vh;background-color:rgba(29, 29, 29, 0.2)}.navbar--open .navbar__sidebar{right:0}.navbar__wrapper{position:absolute;top:0;z-index:1020;width:100%;border-bottom:1px solid #eeeded;transition:background-color 1s}.navbar__container{display:flex;align-items:center;gap:16px;height:var(--navbar-height);padding:0 var(--navbar-inline-padding);background-color:#ffffff}.navbar__container--expanded{justify-content:initial}.navbar__logo{display:flex;align-items:center;gap:16px;flex:none}.navbar__logo--hidden{display:none}.navbar__logo--divided{padding-right:16px;border-right:1px solid #eeeded}.navbar__logo-link{display:flex;align-items:center;text-decoration:none}.navbar__logo-image{display:block;width:91px;height:40px}.navbar__application-name{color:#1d1d1d;font-size:1rem;font-weight:600;line-height:1.5rem;white-space:nowrap}.navbar__left,.navbar__right{display:flex;align-items:center}.navbar__left{gap:4px;flex:1;min-width:0}.navbar__right{gap:8px;flex:none;justify-content:flex-end}.navbar__left--hidden,.navbar__right--hidden,.navbar__left--empty{display:none}.navbar__left--expanded,.navbar__right--expanded{flex:1;min-width:0;justify-content:initial}.navbar__left--expanded .navbar__search,.navbar__right--expanded .navbar__search{flex:1;width:auto}.navbar__search{display:flex;align-items:center;flex:none;min-width:0;padding:0 8px}.navbar__search--empty{display:none}.navbar__search--left{flex:0 1 240px;width:240px}.navbar__search--right{justify-content:center;width:auto}::slotted([slot=left-item]),::slotted([slot=right-item]){flex:none;white-space:nowrap}::slotted([slot=search-bar-left]),::slotted([slot=search-bar-right]){min-width:0;max-width:100%}::slotted([slot=search-bar-left]){width:100%}.navbar__burger{appearance:none;display:flex;align-items:center;justify-content:center;flex:none;width:41px;height:40px;padding:4px 0 4px 16px;border:0;border-left:1px solid #bfbbbb;background:transparent;color:inherit;cursor:pointer}.navbar__burger--hidden{display:none}.navbar__menu-icon,.navbar__close-icon{display:flex;align-items:center}.navbar__menu-icon--hidden,.navbar__close-icon{display:none}.navbar__close-icon--visible{display:flex}.navbar__sidebar{box-sizing:border-box;position:fixed;top:var(--navbar-height);right:-100%;z-index:1030;display:flex;flex-direction:column;align-items:flex-start;width:375px;height:calc(100vh - var(--navbar-height));overflow:hidden;background-color:#ffffff;transition:right 1s, width 1s}.navbar__mobile-nav{display:flex;flex:1 0 0;flex-direction:column;align-items:flex-start;align-self:stretch;gap:16px;padding:0 24px 30px;overflow-y:auto}.navbar__mobile-list{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch;gap:16px;padding-top:16px}.navbar__mobile-list.expand{align-items:initial}.navbar__mobile-bottom{display:none;flex-direction:column;align-items:flex-start;align-self:stretch;gap:12px;max-height:160px;padding:12px 24px 12px 16px;overflow-y:auto;background:#f7f7f7;border-top:1px solid #eeeded}.navbar__mobile-bottom.show{display:flex}.navbar__sidebar-top-row-item,.navbar__sidebar-bottom-row-item{display:flex;align-items:center;gap:8px}.navbar__sidebar-top-row-item{justify-content:space-between;align-self:stretch;padding:16px 4px 16px 0;cursor:pointer}.navbar__sidebar-bottom-row-item{flex:1 0 0;height:40px;padding-right:4px}.navbar__sidebar-top-row-item-label,.navbar__sidebar-bottom-row-item-label{color:#1d1d1d;font-family:var(--ifx-font-family);font-size:1rem;font-weight:400;font-style:normal;line-height:1.5rem}.navbar__sidebar-top-row-item-icon-wrapper,.navbar__sidebar-bottom-row-item-icon-wrapper{display:flex;align-items:center}.navbar__sidebar-content-products,.navbar__sidebar-content-main{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch;gap:24px;padding:0}.navbar__sidebar-content-products-header,.navbar__sidebar-content-about-header{display:flex;align-items:center;align-self:stretch;gap:16px;padding:0;color:#bfbbbb}.navbar__sidebar-content-products-header span,.navbar__sidebar-content-about-header span{display:flex;align-items:center;color:#1d1d1d;font-size:1.125rem;font-weight:600;line-height:1.625rem}.navbar__sidebar-content-products-menu,.navbar__sidebar-content-main-menu{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:100%;padding:0}.navbar__sidebar-content-main-menu{align-items:normal}.navbar__sidebar-content-products-menu-item,.navbar__sidebar-content-main-menu-item{display:flex;align-items:center;padding:0}.navbar__sidebar-content-products-menu-item a,.navbar__sidebar-content-main-menu-item a{display:flex;align-items:center;color:#1d1d1d;font-size:1rem;font-weight:400;line-height:1.5rem;text-decoration:none}.navbar__sidebar-content-main-menu-item{color:#bfbbbb}.navbar__sidebar-content-main-menu-item a{flex:1;font-size:1.125rem;font-weight:600;line-height:1.625rem}@media screen and (max-width: 992px){.navbar__logo-image{width:72.8px;height:32px}}@media screen and (max-width: 800px){.navbar__container{gap:0}.navbar__container--expanded .navbar__burger{display:none}.navbar__left{display:none}.navbar__right{flex:1}.navbar__logo--divided{border-right:0}.navbar__sidebar{width:0}}@media screen and (max-width: 500px){.navbar__application-name{display:none}.navbar--open .navbar__sidebar{width:100%}}@media screen and (min-width: 500px) and (max-width: 800px){.navbar--open .navbar__sidebar{width:50%}}@media screen and (min-width: 800px){.navbar__sidebar{display:none}.navbar__burger{display:none}.navbar--open .navbar__wrapper{height:var(--navbar-height);background-color:transparent;transition:none}.navbar--open .navbar__sidebar{right:-100%}}@media screen and (min-width: 768px){.navbar{--navbar-height:72px;--navbar-inline-padding:32px}.navbar__left{gap:12px}}@media screen and (min-width: 992px){.navbar{--navbar-height:80px;--navbar-inline-padding:56px}}`;
|
|
6
|
+
|
|
7
|
+
const Navbar = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.ifxNavbarMobileMenuIsOpen = createEvent(this, "ifxNavbarMobileMenuIsOpen", 7);
|
|
11
|
+
}
|
|
12
|
+
get el() { return getElement(this); }
|
|
13
|
+
/** Name of the application shown in the navbar. */
|
|
14
|
+
applicationName = "";
|
|
15
|
+
hasLeftMenuItems = true;
|
|
16
|
+
/** If true, the navbar is fixed (e.g. sticks to the top). */
|
|
17
|
+
fixed = true;
|
|
18
|
+
/** If true, shows the logo and application name in the navbar. */
|
|
19
|
+
showLogoAndAppname = true;
|
|
20
|
+
searchBarIsOpen;
|
|
21
|
+
isMobileMenuOpen = false;
|
|
22
|
+
hasLeftSearchBar = false;
|
|
23
|
+
hasRightSearchBar = false;
|
|
24
|
+
hasLeftItems = false;
|
|
25
|
+
hasRightItems = false;
|
|
26
|
+
/** Link URL for the logo click action. */
|
|
27
|
+
logoHref = "";
|
|
28
|
+
internalLogoHref;
|
|
29
|
+
/** Where to open the logo link (same tab, new tab, etc.). */
|
|
30
|
+
logoHrefTarget = "_self";
|
|
31
|
+
internalLogoHrefTarget = "_self";
|
|
32
|
+
/** Fired when the mobile navbar menu is opened or closed. */
|
|
33
|
+
ifxNavbarMobileMenuIsOpen;
|
|
34
|
+
initialSearchBarOpen = false;
|
|
35
|
+
isResizing = false;
|
|
36
|
+
mobileSlotObserver;
|
|
37
|
+
addEventListenersToHandleCustomFocusState() {
|
|
38
|
+
const element = this.el.shadowRoot.firstChild;
|
|
39
|
+
if (!element) {
|
|
40
|
+
console.error("element not found");
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
element.tabIndex = -1;
|
|
44
|
+
// Select all a elements in the navbar and set their tabIndex to -1 to make them non-focusable
|
|
45
|
+
const aElements = element.querySelectorAll("a");
|
|
46
|
+
for (let i = 0; i < aElements.length; i++) {
|
|
47
|
+
aElements[i].tabIndex = -1;
|
|
48
|
+
}
|
|
49
|
+
const slot = element.querySelector("slot");
|
|
50
|
+
if (slot) {
|
|
51
|
+
const assignedNodes = slot.assignedNodes();
|
|
52
|
+
for (let i = 0; i < assignedNodes.length; i++) {
|
|
53
|
+
const node = assignedNodes[i];
|
|
54
|
+
if (node.nodeName === "IFX-NAVBAR-ITEM") {
|
|
55
|
+
const navbarItem = node;
|
|
56
|
+
const aElements = navbarItem?.shadowRoot.querySelectorAll("a");
|
|
57
|
+
for (let i = 0; i < aElements.length; i++) {
|
|
58
|
+
aElements[i].tabIndex = -1;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
clearFirstLayerMenu(event) {
|
|
65
|
+
if (event.detail.action === "hideFirstLayer") {
|
|
66
|
+
const leftMenuItems = this.getMobileMenuTop();
|
|
67
|
+
for (let i = 0; i < leftMenuItems.length; i++) {
|
|
68
|
+
const item = leftMenuItems[i];
|
|
69
|
+
if (!item.isSameNode(event.detail.component) &&
|
|
70
|
+
this.isNavbarItem(item)) {
|
|
71
|
+
item.hideComponent();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
if (event.detail.action === "hideSecondLayer") {
|
|
76
|
+
const parent = event.detail.parent;
|
|
77
|
+
const children = parent.children;
|
|
78
|
+
if (this.isNavbarItem(parent)) {
|
|
79
|
+
parent.toggleFirstLayerItem("remove", "add");
|
|
80
|
+
}
|
|
81
|
+
for (let i = 0; i < children.length; i++) {
|
|
82
|
+
const child = children[i];
|
|
83
|
+
if (!child.isSameNode(event.detail.component) &&
|
|
84
|
+
this.isNavbarItem(child)) {
|
|
85
|
+
child.hideComponent();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
if (event.detail.action === "returnToSecondLayer") {
|
|
90
|
+
const parent = event.detail.parent;
|
|
91
|
+
const children = parent.children;
|
|
92
|
+
if (this.isNavbarItem(parent)) {
|
|
93
|
+
parent.toggleFirstLayerItem("add", "remove");
|
|
94
|
+
}
|
|
95
|
+
for (let i = 0; i < children.length; i++) {
|
|
96
|
+
const child = children[i];
|
|
97
|
+
if (!child.isSameNode(event.detail.component) &&
|
|
98
|
+
this.isNavbarItem(child)) {
|
|
99
|
+
child.showComponent();
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
if (event.detail.action === "show") {
|
|
104
|
+
const leftMenuItems = this.el.querySelectorAll('[slot="left-item"]');
|
|
105
|
+
for (let i = 0; i < leftMenuItems.length; i++) {
|
|
106
|
+
const item = leftMenuItems[i];
|
|
107
|
+
if (!item.isSameNode(event.detail.component) &&
|
|
108
|
+
this.isNavbarItem(item)) {
|
|
109
|
+
item.showComponent();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
if (event.detail.action === "return") {
|
|
114
|
+
const leftMenuItems = this.getMobileMenuTop();
|
|
115
|
+
for (let i = 0; i < leftMenuItems.length; i++) {
|
|
116
|
+
const item = leftMenuItems[i];
|
|
117
|
+
if (!item.isSameNode(event.detail.component) &&
|
|
118
|
+
this.isNavbarItem(item)) {
|
|
119
|
+
item.showComponent();
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
isNavbarItem(element) {
|
|
125
|
+
return (typeof element.hideComponent === "function");
|
|
126
|
+
}
|
|
127
|
+
isNavbarSearchBar(element) {
|
|
128
|
+
return (!!element &&
|
|
129
|
+
typeof element.close === "function" &&
|
|
130
|
+
typeof element.open === "function" &&
|
|
131
|
+
typeof element.close === "function");
|
|
132
|
+
}
|
|
133
|
+
hasShowLabel(element) {
|
|
134
|
+
return "showLabel" in element;
|
|
135
|
+
}
|
|
136
|
+
storeShowLabel(element) {
|
|
137
|
+
if (element.hasAttribute("data-navbar-original-show-label"))
|
|
138
|
+
return;
|
|
139
|
+
element.setAttribute("data-navbar-original-show-label", element.getAttribute("show-label") ?? "");
|
|
140
|
+
}
|
|
141
|
+
hideLabelOnMobile(element) {
|
|
142
|
+
this.storeShowLabel(element);
|
|
143
|
+
element.removeAttribute("show-label");
|
|
144
|
+
if (this.hasShowLabel(element)) {
|
|
145
|
+
element.showLabel = false;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
restoreLabelAfterMobile(element) {
|
|
149
|
+
if (!element)
|
|
150
|
+
return;
|
|
151
|
+
const originalShowLabel = element.getAttribute("data-navbar-original-show-label");
|
|
152
|
+
if (originalShowLabel === null)
|
|
153
|
+
return;
|
|
154
|
+
if (originalShowLabel === "") {
|
|
155
|
+
element.removeAttribute("show-label");
|
|
156
|
+
if (this.hasShowLabel(element)) {
|
|
157
|
+
element.showLabel = false;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
element.setAttribute("show-label", originalShowLabel);
|
|
162
|
+
if (this.hasShowLabel(element)) {
|
|
163
|
+
element.showLabel = originalShowLabel === "true";
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
element.removeAttribute("data-navbar-original-show-label");
|
|
167
|
+
}
|
|
168
|
+
getWrappers() {
|
|
169
|
+
const rightSideItemSlot = this.el.shadowRoot.querySelector('slot[name="right-item"]');
|
|
170
|
+
const rightSideSlot = this.el.shadowRoot.querySelector(".navbar__search--right slot");
|
|
171
|
+
const leftSideSlot = this.el.shadowRoot.querySelector(".navbar__search--left slot");
|
|
172
|
+
const navbarProfile = this.el.querySelector("ifx-navbar-profile");
|
|
173
|
+
const leftMenuItems = this.el.querySelectorAll('[slot="left-item"]');
|
|
174
|
+
const rightMenuItems = this.el.querySelectorAll('[slot="right-item"]');
|
|
175
|
+
const topRowWrapper = this.el.shadowRoot.querySelector(".navbar__mobile-list");
|
|
176
|
+
return {
|
|
177
|
+
rightSideItemSlot,
|
|
178
|
+
rightSideSlot,
|
|
179
|
+
leftSideSlot,
|
|
180
|
+
rightAssignedNodes: rightSideSlot?.assignedNodes() ?? [],
|
|
181
|
+
leftAssignedNodes: leftSideSlot?.assignedNodes() ?? [],
|
|
182
|
+
navbarProfile,
|
|
183
|
+
leftMenuItems,
|
|
184
|
+
rightMenuItems,
|
|
185
|
+
topRowWrapper,
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
hideNavItems() {
|
|
189
|
+
const { rightAssignedNodes, leftAssignedNodes, navbarProfile, leftMenuItems, rightMenuItems, topRowWrapper, } = this.getWrappers();
|
|
190
|
+
if (rightAssignedNodes.length !== 0) {
|
|
191
|
+
this.searchBarIsOpen = "right";
|
|
192
|
+
}
|
|
193
|
+
else if (leftAssignedNodes.length !== 0) {
|
|
194
|
+
this.searchBarIsOpen = "left";
|
|
195
|
+
}
|
|
196
|
+
if (navbarProfile) {
|
|
197
|
+
navbarProfile.hideComponent();
|
|
198
|
+
}
|
|
199
|
+
for (let l = 0; l < leftMenuItems.length; l++) {
|
|
200
|
+
if (!topRowWrapper.classList.contains("expand")) {
|
|
201
|
+
const item = leftMenuItems[l];
|
|
202
|
+
if (this.isNavbarItem(item)) {
|
|
203
|
+
item.hideComponent();
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
for (let r = 0; r < rightMenuItems.length; r++) {
|
|
208
|
+
if (topRowWrapper.classList.contains("expand")) {
|
|
209
|
+
const item = rightMenuItems[r];
|
|
210
|
+
if (this.isNavbarItem(item) && !item.hideOnMobile) {
|
|
211
|
+
item.hideComponent();
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
const item = rightMenuItems[r];
|
|
216
|
+
if (this.isNavbarItem(item)) {
|
|
217
|
+
item.hideComponent();
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
showNavItems() {
|
|
223
|
+
const { navbarProfile, leftMenuItems, rightMenuItems, topRowWrapper } = this.getWrappers();
|
|
224
|
+
this.searchBarIsOpen = undefined;
|
|
225
|
+
if (navbarProfile) {
|
|
226
|
+
navbarProfile.showComponent();
|
|
227
|
+
}
|
|
228
|
+
for (let l = 0; l < leftMenuItems.length; l++) {
|
|
229
|
+
if (!topRowWrapper.classList.contains("expand")) {
|
|
230
|
+
const item = leftMenuItems[l];
|
|
231
|
+
if (this.isNavbarItem(item)) {
|
|
232
|
+
item.showComponent();
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
for (let r = 0; r < rightMenuItems.length; r++) {
|
|
237
|
+
if (topRowWrapper.classList.contains("expand")) {
|
|
238
|
+
const item = rightMenuItems[r];
|
|
239
|
+
if (this.isNavbarItem(item) && !item.hideOnMobile) {
|
|
240
|
+
item.showComponent();
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
const item = rightMenuItems[r];
|
|
245
|
+
if (this.isNavbarItem(item)) {
|
|
246
|
+
item.showComponent();
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
handleSearchBarToggle(event) {
|
|
252
|
+
if (this.isResizing)
|
|
253
|
+
return;
|
|
254
|
+
const leftSearchBar = this.getSearchBar("left");
|
|
255
|
+
const rightSearchBar = this.getSearchBar("right");
|
|
256
|
+
if (event.detail) {
|
|
257
|
+
this.hideNavItems();
|
|
258
|
+
if (this.isNavbarSearchBar(leftSearchBar)) {
|
|
259
|
+
leftSearchBar.setAttribute("show-close-button", "true");
|
|
260
|
+
}
|
|
261
|
+
if (this.isNavbarSearchBar(rightSearchBar)) {
|
|
262
|
+
rightSearchBar.setAttribute("show-close-button", "true");
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
this.showNavItems();
|
|
267
|
+
if (this.isNavbarSearchBar(leftSearchBar)) {
|
|
268
|
+
leftSearchBar.setAttribute("show-close-button", "false");
|
|
269
|
+
}
|
|
270
|
+
if (this.isNavbarSearchBar(rightSearchBar)) {
|
|
271
|
+
rightSearchBar.setAttribute("show-close-button", "false");
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
handleSidebar() {
|
|
276
|
+
const isOpen = !this.isMobileMenuOpen;
|
|
277
|
+
this.isMobileMenuOpen = isOpen;
|
|
278
|
+
this.handleBodyScroll(isOpen ? "hide" : "show");
|
|
279
|
+
this.ifxNavbarMobileMenuIsOpen?.emit(isOpen);
|
|
280
|
+
}
|
|
281
|
+
handleBodyScroll(action) {
|
|
282
|
+
const body = this.el.closest("body");
|
|
283
|
+
if (!body)
|
|
284
|
+
return;
|
|
285
|
+
if (!this.fixed && action === "hide") {
|
|
286
|
+
body.style.overflow = "hidden";
|
|
287
|
+
}
|
|
288
|
+
else if (action === "show") {
|
|
289
|
+
body.style.overflow = "visible";
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
async setItemMenuPosition() {
|
|
293
|
+
const navbarItems = this.el.querySelectorAll("ifx-navbar-item");
|
|
294
|
+
const navbarProfile = this.el.querySelector("ifx-navbar-profile");
|
|
295
|
+
if (navbarProfile) {
|
|
296
|
+
const itemChildren = navbarProfile.querySelectorAll("ifx-navbar-item");
|
|
297
|
+
if (itemChildren.length !== 0) {
|
|
298
|
+
itemChildren.forEach((item) => {
|
|
299
|
+
if (this.isNavbarItem(item)) {
|
|
300
|
+
item.setMenuItemPosition();
|
|
301
|
+
this.setMenuItemChildrenPosition(item);
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
if (navbarItems.length !== 0) {
|
|
307
|
+
for (let i = 0; i < navbarItems.length; i++) {
|
|
308
|
+
const item = navbarItems[i];
|
|
309
|
+
if (!this.isNavbarItem(item)) {
|
|
310
|
+
continue;
|
|
311
|
+
}
|
|
312
|
+
const itemChildren = item.querySelectorAll("ifx-navbar-item");
|
|
313
|
+
if (itemChildren.length !== 0) {
|
|
314
|
+
const hasNestedItems = await item.setItemSideSpecifications();
|
|
315
|
+
if (hasNestedItems) {
|
|
316
|
+
itemChildren.forEach((item) => {
|
|
317
|
+
if (this.isNavbarItem(item)) {
|
|
318
|
+
item.setMenuItemPosition();
|
|
319
|
+
this.setMenuItemChildrenPosition(item);
|
|
320
|
+
}
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
setMenuItemChildrenPosition(item) {
|
|
328
|
+
const itemChildren = item.querySelectorAll("ifx-navbar-item");
|
|
329
|
+
itemChildren.forEach((subItem) => {
|
|
330
|
+
if (this.isNavbarItem(subItem)) {
|
|
331
|
+
subItem.setMenuItemPosition();
|
|
332
|
+
this.setMenuItemChildrenPosition(subItem);
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
getMediaQueryList() {
|
|
337
|
+
return window.matchMedia("(max-width: 800px)");
|
|
338
|
+
}
|
|
339
|
+
async componentDidLoad() {
|
|
340
|
+
const framework = detectFramework();
|
|
341
|
+
trackComponent("ifx-navbar", await framework);
|
|
342
|
+
this.setItemMenuPosition();
|
|
343
|
+
this.addEventListenersToHandleCustomFocusState();
|
|
344
|
+
const mediaQueryList = this.getMediaQueryList();
|
|
345
|
+
if (mediaQueryList.matches) {
|
|
346
|
+
this.moveNavItemsToSidebar();
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
const searchBarRight = this.getSearchBar("right");
|
|
350
|
+
if (this.isNavbarSearchBar(searchBarRight)) {
|
|
351
|
+
// ALWAYS closed on desktop initially
|
|
352
|
+
await searchBarRight.close();
|
|
353
|
+
searchBarRight.setAttribute("show-close-button", "false");
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
syncSearchBarSlots() {
|
|
358
|
+
this.hasLeftSearchBar = !!this.el.querySelector('[slot="search-bar-left"]');
|
|
359
|
+
this.hasRightSearchBar = !!this.el.querySelector('[slot="search-bar-right"]');
|
|
360
|
+
}
|
|
361
|
+
syncNavigationSlots() {
|
|
362
|
+
this.hasLeftItems = !!this.el.querySelector('[slot="left-item"]');
|
|
363
|
+
this.hasRightItems = !!this.el.querySelector('[slot="right-item"]');
|
|
364
|
+
}
|
|
365
|
+
handleNavigationSlotChange(event, position) {
|
|
366
|
+
const slot = event.target;
|
|
367
|
+
const hasAssignedContent = slot.assignedElements({ flatten: true }).length > 0;
|
|
368
|
+
if (position === "left") {
|
|
369
|
+
this.hasLeftItems = hasAssignedContent;
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
this.hasRightItems = hasAssignedContent;
|
|
373
|
+
}
|
|
374
|
+
handleSearchSlotChange(event, position) {
|
|
375
|
+
const slot = event.target;
|
|
376
|
+
const hasAssignedContent = slot.assignedElements({ flatten: true }).length > 0;
|
|
377
|
+
if (position === "left") {
|
|
378
|
+
this.hasLeftSearchBar = hasAssignedContent;
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
this.hasRightSearchBar = hasAssignedContent;
|
|
382
|
+
}
|
|
383
|
+
handleMobileMenuBottom(event) {
|
|
384
|
+
const mobileMenuBottomWrapper = this.el.shadowRoot.querySelector(".navbar__mobile-bottom");
|
|
385
|
+
const slotElement = event.target;
|
|
386
|
+
const hasItems = slotElement.assignedNodes().length > 0;
|
|
387
|
+
mobileMenuBottomWrapper?.classList.toggle("show", hasItems);
|
|
388
|
+
}
|
|
389
|
+
handleLogoHrefAndTarget() {
|
|
390
|
+
if (this.logoHref.trim() === "") {
|
|
391
|
+
this.internalLogoHref = undefined;
|
|
392
|
+
}
|
|
393
|
+
else {
|
|
394
|
+
this.internalLogoHref = this.logoHref;
|
|
395
|
+
}
|
|
396
|
+
if (["_self", "_blank", "_parent"].includes(this.logoHrefTarget.trim())) {
|
|
397
|
+
this.internalLogoHrefTarget = this.logoHrefTarget;
|
|
398
|
+
}
|
|
399
|
+
else {
|
|
400
|
+
this.internalLogoHrefTarget = "_self";
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
componentWillLoad() {
|
|
404
|
+
this.RemoveSpaceOnStorybookSnippet();
|
|
405
|
+
const dropdownMenu = this.el.querySelector("ifx-navbar-menu");
|
|
406
|
+
const leftMenuItems = this.el.querySelectorAll('[slot="left-item"]');
|
|
407
|
+
if (!leftMenuItems.length && !dropdownMenu) {
|
|
408
|
+
this.hasLeftMenuItems = false;
|
|
409
|
+
}
|
|
410
|
+
this.handleLogoHrefAndTarget();
|
|
411
|
+
this.syncSearchBarSlots();
|
|
412
|
+
this.syncNavigationSlots();
|
|
413
|
+
const mediaQueryList = window.matchMedia("(max-width: 800px)");
|
|
414
|
+
mediaQueryList.addEventListener("change", (e) => this.moveNavItemsToSidebar(e));
|
|
415
|
+
this.setInitialStateOnSearchBar();
|
|
416
|
+
}
|
|
417
|
+
setInitialStateOnSearchBar() {
|
|
418
|
+
const searchBar = this.el.querySelector('[slot="search-bar-left"], [slot="search-bar-right"]');
|
|
419
|
+
if (searchBar) {
|
|
420
|
+
const isRight = searchBar.getAttribute("slot") === "search-bar-right";
|
|
421
|
+
if (!isRight) {
|
|
422
|
+
const isOpenAttr = searchBar.getAttribute("is-open");
|
|
423
|
+
this.initialSearchBarOpen =
|
|
424
|
+
isOpenAttr === "true" || isOpenAttr === "open";
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
this.initialSearchBarOpen = false;
|
|
428
|
+
}
|
|
429
|
+
const mediaQueryList = this.getMediaQueryList();
|
|
430
|
+
if (!mediaQueryList.matches) {
|
|
431
|
+
searchBar.setAttribute("show-close-button", "false");
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
getSearchBarLeftWrapper() {
|
|
436
|
+
return this.el.shadowRoot.querySelector(".navbar__search--left");
|
|
437
|
+
}
|
|
438
|
+
getMobileMenuTop() {
|
|
439
|
+
const leftMenuItems = this.el.querySelectorAll('[slot="mobile-menu-top"]');
|
|
440
|
+
return leftMenuItems;
|
|
441
|
+
}
|
|
442
|
+
getMobileMenuBottom() {
|
|
443
|
+
const rightMenuItems = this.el.querySelectorAll('[slot="mobile-menu-bottom"]');
|
|
444
|
+
return rightMenuItems;
|
|
445
|
+
}
|
|
446
|
+
handleBurgerIcon() {
|
|
447
|
+
const hasMobileItems = this.getMobileMenuTop().length > 0 ||
|
|
448
|
+
this.getMobileMenuBottom().length > 0;
|
|
449
|
+
const burgerIcon = this.el.shadowRoot.querySelector(".navbar__burger");
|
|
450
|
+
burgerIcon?.classList.toggle("navbar__burger--hidden", !hasMobileItems);
|
|
451
|
+
}
|
|
452
|
+
getSearchBar(position) {
|
|
453
|
+
return this.el.querySelector(`[slot="search-bar-${position}"]`);
|
|
454
|
+
}
|
|
455
|
+
async moveNavItemsToSidebar(e) {
|
|
456
|
+
const topRowWrapper = this.el.shadowRoot.querySelector(".navbar__mobile-list");
|
|
457
|
+
const mediaQueryList = this.getMediaQueryList();
|
|
458
|
+
const matches = e ? e.matches : mediaQueryList.matches;
|
|
459
|
+
if (matches) {
|
|
460
|
+
/* The viewport is 800px wide or less */
|
|
461
|
+
topRowWrapper.classList.add("expand");
|
|
462
|
+
const allNavbarItems = this.el.querySelectorAll("ifx-navbar-item");
|
|
463
|
+
for (let i = 0; i < allNavbarItems.length; i++) {
|
|
464
|
+
const item = allNavbarItems[i];
|
|
465
|
+
if (this.isNavbarItem(item)) {
|
|
466
|
+
item.showComponent();
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
if (this.isMobileMenuOpen) {
|
|
470
|
+
this.handleBodyScroll("hide");
|
|
471
|
+
}
|
|
472
|
+
const searchBarLeft = this.getSearchBar("left");
|
|
473
|
+
if (searchBarLeft) {
|
|
474
|
+
if (this.searchBarIsOpen) {
|
|
475
|
+
if (this.isNavbarSearchBar(searchBarLeft)) {
|
|
476
|
+
searchBarLeft.close();
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
const searchBarLeftWrapper = this.getSearchBarLeftWrapper();
|
|
480
|
+
searchBarLeftWrapper.classList.add("initial");
|
|
481
|
+
searchBarLeft.setAttribute("slot", "search-bar-right");
|
|
482
|
+
searchBarLeft.setAttribute("show-close-button", "true");
|
|
483
|
+
this.hasLeftSearchBar = false;
|
|
484
|
+
this.hasRightSearchBar = true;
|
|
485
|
+
}
|
|
486
|
+
//left-side
|
|
487
|
+
const leftMenuItems = this.el.querySelectorAll('[slot="left-item"]');
|
|
488
|
+
for (let i = 0; i < leftMenuItems.length; i++) {
|
|
489
|
+
const item = leftMenuItems[i];
|
|
490
|
+
item.setAttribute("slot", "mobile-menu-top");
|
|
491
|
+
if (this.isNavbarItem(item)) {
|
|
492
|
+
item.moveChildComponentsIntoSubLayerMenu();
|
|
493
|
+
}
|
|
494
|
+
const searchBar = this.getSearchBar("right");
|
|
495
|
+
if (this.isNavbarSearchBar(searchBar)) {
|
|
496
|
+
await searchBar.close();
|
|
497
|
+
}
|
|
498
|
+
if (this.searchBarIsOpen) {
|
|
499
|
+
if (this.isNavbarItem(item)) {
|
|
500
|
+
item.showComponent();
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
//right-side
|
|
505
|
+
const rightMenuItems = this.el.querySelectorAll('[slot="right-item"]');
|
|
506
|
+
for (let i = 0; i < rightMenuItems.length; i++) {
|
|
507
|
+
const item = rightMenuItems[i];
|
|
508
|
+
if (item.tagName.toUpperCase() === "IFX-NAVBAR-PROFILE") {
|
|
509
|
+
this.hideLabelOnMobile(item);
|
|
510
|
+
}
|
|
511
|
+
else {
|
|
512
|
+
if (this.isNavbarItem(item) && item.hideOnMobile) {
|
|
513
|
+
item.setAttribute("slot", "mobile-menu-bottom");
|
|
514
|
+
item.toggleChildren("add");
|
|
515
|
+
this.hideLabelOnMobile(item);
|
|
516
|
+
if (this.hasShowLabel(item)) {
|
|
517
|
+
item.showLabel = true;
|
|
518
|
+
}
|
|
519
|
+
if (this.searchBarIsOpen) {
|
|
520
|
+
item.showComponent();
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
this.handleBurgerIcon();
|
|
526
|
+
this.watchForSlotReset();
|
|
527
|
+
}
|
|
528
|
+
else {
|
|
529
|
+
/* The viewport is more than 800px wide */
|
|
530
|
+
this.mobileSlotObserver?.disconnect();
|
|
531
|
+
topRowWrapper.classList.remove("expand");
|
|
532
|
+
this.handleBodyScroll("show");
|
|
533
|
+
const searchBarLeftWrapper = this.getSearchBarLeftWrapper();
|
|
534
|
+
const leftIsInitial = searchBarLeftWrapper.classList.contains("initial");
|
|
535
|
+
const searchBarRight = this.getSearchBar("right");
|
|
536
|
+
if (leftIsInitial && searchBarRight) {
|
|
537
|
+
if (this.searchBarIsOpen) {
|
|
538
|
+
if (this.isNavbarSearchBar(searchBarRight)) {
|
|
539
|
+
await searchBarRight.close();
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
searchBarRight.setAttribute("slot", "search-bar-left");
|
|
543
|
+
searchBarRight.setAttribute("show-close-button", "false");
|
|
544
|
+
this.hasLeftSearchBar = true;
|
|
545
|
+
this.hasRightSearchBar = false;
|
|
546
|
+
searchBarLeftWrapper.classList.remove("initial");
|
|
547
|
+
}
|
|
548
|
+
const searchBarLeft = this.getSearchBar("left");
|
|
549
|
+
const searchBar = searchBarLeft || this.getSearchBar("right");
|
|
550
|
+
if (this.isNavbarSearchBar(searchBar)) {
|
|
551
|
+
this.isResizing = true;
|
|
552
|
+
const isRight = searchBar.getAttribute("slot") === "search-bar-right";
|
|
553
|
+
if (isRight) {
|
|
554
|
+
await searchBar.close();
|
|
555
|
+
searchBar.setAttribute("show-close-button", "false");
|
|
556
|
+
}
|
|
557
|
+
else {
|
|
558
|
+
if (this.initialSearchBarOpen) {
|
|
559
|
+
await searchBar.open();
|
|
560
|
+
}
|
|
561
|
+
else {
|
|
562
|
+
await searchBar.close();
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
this.isResizing = false;
|
|
566
|
+
}
|
|
567
|
+
//left-side
|
|
568
|
+
const leftMenuItems = this.getMobileMenuTop();
|
|
569
|
+
for (let i = 0; i < leftMenuItems.length; i++) {
|
|
570
|
+
const item = leftMenuItems[i];
|
|
571
|
+
item.setAttribute("slot", "left-item");
|
|
572
|
+
if (this.isNavbarItem(item)) {
|
|
573
|
+
item.moveChildComponentsBackIntoNavbar();
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
//right-side
|
|
577
|
+
const rightMenuItems = this.getMobileMenuBottom();
|
|
578
|
+
const navbarProfileItem = this.el.querySelector("ifx-navbar-profile");
|
|
579
|
+
this.restoreLabelAfterMobile(navbarProfileItem);
|
|
580
|
+
for (let i = 0; i < rightMenuItems.length; i++) {
|
|
581
|
+
const item = rightMenuItems[i];
|
|
582
|
+
item.setAttribute("slot", "right-item");
|
|
583
|
+
if (this.isNavbarItem(item)) {
|
|
584
|
+
item.toggleChildren("remove");
|
|
585
|
+
}
|
|
586
|
+
this.restoreLabelAfterMobile(item);
|
|
587
|
+
if (this.searchBarIsOpen) {
|
|
588
|
+
if (this.isNavbarItem(item)) {
|
|
589
|
+
item.hideComponent();
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
this.searchBarIsOpen = undefined;
|
|
594
|
+
this.showNavItems();
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
watchForSlotReset() {
|
|
598
|
+
this.mobileSlotObserver?.disconnect();
|
|
599
|
+
this.mobileSlotObserver = new MutationObserver((mutations) => {
|
|
600
|
+
for (const mutation of mutations) {
|
|
601
|
+
if (mutation.type === "attributes" &&
|
|
602
|
+
mutation.attributeName === "slot" &&
|
|
603
|
+
mutation.target.getAttribute("slot") === "left-item") {
|
|
604
|
+
this.mobileSlotObserver?.disconnect();
|
|
605
|
+
this.moveNavItemsToSidebar();
|
|
606
|
+
return;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
this.mobileSlotObserver.observe(this.el, {
|
|
611
|
+
attributes: true,
|
|
612
|
+
attributeFilter: ["slot"],
|
|
613
|
+
subtree: true,
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
disconnectedCallback() {
|
|
617
|
+
this.mobileSlotObserver?.disconnect();
|
|
618
|
+
}
|
|
619
|
+
RemoveSpaceOnStorybookSnippet() {
|
|
620
|
+
const parent = this.el.parentElement;
|
|
621
|
+
if (parent) {
|
|
622
|
+
const storybookWrapper = parent.closest(".css-xzp052");
|
|
623
|
+
if (storybookWrapper instanceof HTMLElement) {
|
|
624
|
+
storybookWrapper.style.overflow = "visible";
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
getPaneClass(position) {
|
|
629
|
+
const opposite = position === "left" ? "right" : "left";
|
|
630
|
+
const state = this.searchBarIsOpen === position
|
|
631
|
+
? `navbar__${position}--expanded`
|
|
632
|
+
: this.searchBarIsOpen === opposite
|
|
633
|
+
? `navbar__${position}--hidden`
|
|
634
|
+
: "";
|
|
635
|
+
return [`navbar__${position}`, state].filter(Boolean).join(" ");
|
|
636
|
+
}
|
|
637
|
+
renderLogo() {
|
|
638
|
+
if (!this.showLogoAndAppname)
|
|
639
|
+
return null;
|
|
640
|
+
const logoClasses = [
|
|
641
|
+
"navbar__logo",
|
|
642
|
+
this.searchBarIsOpen === "left" ? "navbar__logo--hidden" : "",
|
|
643
|
+
this.applicationName && this.hasLeftMenuItems
|
|
644
|
+
? "navbar__logo--divided"
|
|
645
|
+
: "",
|
|
646
|
+
]
|
|
647
|
+
.filter(Boolean)
|
|
648
|
+
.join(" ");
|
|
649
|
+
return (h("div", { class: logoClasses, "aria-label": "Brand" }, h("a", { class: "navbar__logo-link", href: sanitizeHref(this.internalLogoHref), target: this.internalLogoHrefTarget, "aria-label": "Go to application home" }, h("svg", { class: "navbar__logo-image", width: "91", height: "40", viewBox: "0 0 91 40", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { "clip-path": "url(#clip0_2396_2480)" }, h("path", { d: "M67.691 26.7766C71.0884 26.7766 72.1461 23.1841 72.1461 19.8802C72.1461 15.4536 70.2871 13.1441 67.691 13.1441C64.4219 13.1441 63.2681 16.7367 63.3001 19.9443C63.3322 23.1199 64.2296 26.7766 67.691 26.7766ZM66.0244 19.8481C66.0244 18.533 66.0244 15.4536 67.691 15.4536C69.4859 15.4536 69.4218 18.5009 69.4218 19.9123C69.4218 21.2595 69.4218 24.5313 67.7551 24.5313C65.9603 24.4992 66.0244 21.2274 66.0244 19.8481ZM57.8195 26.7766C59.1976 26.7766 60.3835 26.2313 61.5053 25.0445L60.5117 23.1841C59.7425 24.018 58.9733 24.4671 58.0438 24.4671C57.2746 24.4671 56.6336 24.018 56.249 23.2482C55.9285 22.5746 55.8644 21.8048 55.8644 20.9708V20.7142H61.6335V20.1368C61.6335 17.282 61.2809 15.7102 60.3835 14.5234C59.7104 13.6253 58.7169 13.1441 57.499 13.1441C56.2169 13.1441 55.1593 13.7215 54.39 14.8442C53.5567 16.0631 53.2042 17.699 53.2042 19.9443C53.1721 24.2426 54.8708 26.7766 57.8195 26.7766ZM57.531 15.2612C58.172 15.2612 58.5566 15.614 58.813 16.1914C59.0053 16.7046 59.1015 17.5707 59.1015 18.5971H55.8644C55.8964 16.3197 56.3772 15.2612 57.531 15.2612ZM74.2614 26.4559H76.7614V16.8329C77.3703 16.0952 78.0754 15.6782 78.5882 15.6782C78.9087 15.6782 79.2292 15.7423 79.4215 15.9989C79.6138 16.2876 79.71 16.7046 79.71 17.699V26.4559H82.21V16.5442C82.21 15.6782 82.1138 14.8121 81.601 14.1706C81.1523 13.5932 80.4472 13.2404 79.5497 13.2404C78.3959 13.2404 77.2101 13.914 76.569 14.6838C76.537 14.0102 76.3126 13.3687 76.2485 13.1441L73.9089 13.7536C74.0371 14.4593 74.2294 15.3253 74.2294 16.8971V26.4559H74.2614ZM45.2236 14.6838C45.1915 14.0102 44.9672 13.3687 44.9031 13.1441L42.5634 13.7536C42.6916 14.4593 42.8839 15.3253 42.8839 16.8971V26.4238H45.3838V16.8008C45.9928 16.0631 46.6979 15.6461 47.2107 15.6461C47.5312 15.6461 47.8517 15.7102 48.044 15.9669C48.2363 16.2555 48.3325 16.6725 48.3325 17.6669V26.4238H50.8324V16.5442C50.8324 15.6782 50.7363 14.8121 50.2235 14.1706C49.7748 13.5932 49.0696 13.2404 48.1722 13.2404C47.0505 13.2404 45.8646 13.914 45.2236 14.6838ZM14.6473 9.07042C16.1216 9.07042 17.3075 7.88359 17.3075 6.40807C17.3075 4.93256 16.1216 3.74573 14.6473 3.74573C13.173 3.74573 11.9871 4.93256 11.9871 6.40807C11.9871 7.88359 13.173 9.07042 14.6473 9.07042ZM26.9227 26.4559V16.5442C26.9227 15.6782 26.8265 14.8121 26.3137 14.1706C25.865 13.5932 25.1599 13.2404 24.2625 13.2404C23.1087 13.2404 21.9228 13.914 21.2818 14.6838C21.2497 14.0102 21.0254 13.3687 20.9613 13.1441L18.6536 13.7857C18.7818 14.4913 18.9741 15.3574 18.9741 16.9291V26.4559H21.4741V16.8329C22.0831 16.0952 22.7882 15.6782 23.301 15.6782C23.6215 15.6782 23.942 15.7423 24.1343 15.9989C24.3266 16.2876 24.4227 16.7046 24.4227 17.699V26.4559H26.9227ZM38.4289 8.36474C37.4994 8.36474 36.7622 9.10249 36.7622 10.0327C36.7622 10.9629 37.4994 11.7007 38.3968 11.7007C39.3263 11.7007 40.0634 10.9629 40.0634 10.0327C40.0634 9.10249 39.3263 8.36474 38.4289 8.36474ZM13.4614 26.4559H15.9614V10.8346L13.4614 11.1554V26.4559ZM33.8777 9.90441C34.3264 9.90441 34.7751 10.0648 35.0635 10.2893L35.7687 8.33266C35.0956 7.85151 34.3584 7.62698 33.429 7.62698C32.788 7.62698 32.1149 7.78736 31.5059 8.26851C30.897 8.78173 30.256 9.80818 30.256 11.7328C30.256 12.5667 30.288 13.4328 30.288 13.4328H29.4226V15.6461H30.288V26.4238H32.8521V15.6782H34.743L35.2238 13.4649H32.8841V11.4762C32.8841 10.5139 33.2687 9.90441 33.8777 9.90441ZM37.1468 26.4559H39.6788V13.2404L37.1468 13.5611V26.4559Z", fill: "#005DA9" }), h("path", { d: "M77.0816 33.5126C68.6203 36.0146 58.3321 37.1052 48.2682 37.1052C22.7239 37.1052 6.24986 29.5993 5.09604 19.6877C4.67938 15.9668 7.59599 12.3422 12.4677 9.26285C11.6023 8.62132 11.0575 7.59488 11.0254 6.44012C3.97427 10.161 0 15.0366 0 19.9764C0 30.9145 19.5188 40.1525 48.5246 39.7676C58.6205 39.6393 67.0498 38.1958 74.6778 35.6939C83.7482 32.7428 89.4532 28.5087 90.8313 26.6483C89.1968 28.1238 85.3186 31.0748 77.0816 33.5126ZM23.2687 4.38723C24.9674 3.80985 27.3712 3.0721 27.3712 3.0721C34.1339 1.21166 41.6017 0.121063 48.5566 0.185215C40.544 -0.295931 33.2365 0.185215 26.8584 1.33997C26.8584 1.33997 24.743 1.69281 22.4675 2.27018C22.4675 2.27018 21.3777 2.55887 20.7047 2.75133C20.0316 2.94379 19.1021 3.2004 19.1021 3.2004C18.4611 3.39286 17.8201 3.6174 17.1791 3.84193C17.8201 4.48346 18.2047 5.31745 18.2368 6.27974C19.3586 5.76652 21.5059 4.99668 23.2687 4.38723Z", fill: "#E30034" })), h("defs", null, h("clipPath", { id: "clip0_2396_2480" }, h("rect", { width: "91", height: "40", fill: "white" }))))), this.applicationName && (h("span", { class: "navbar__application-name" }, this.applicationName))));
|
|
650
|
+
}
|
|
651
|
+
renderLeftNavigation() {
|
|
652
|
+
const isEmpty = !this.hasLeftItems && !this.hasLeftSearchBar;
|
|
653
|
+
const paneClasses = [
|
|
654
|
+
this.getPaneClass("left"),
|
|
655
|
+
isEmpty ? "navbar__left--empty" : "",
|
|
656
|
+
]
|
|
657
|
+
.filter(Boolean)
|
|
658
|
+
.join(" ");
|
|
659
|
+
const searchClasses = [
|
|
660
|
+
"navbar__search",
|
|
661
|
+
"navbar__search--left",
|
|
662
|
+
!this.hasLeftSearchBar ? "navbar__search--empty" : "",
|
|
663
|
+
]
|
|
664
|
+
.filter(Boolean)
|
|
665
|
+
.join(" ");
|
|
666
|
+
return (h("div", { class: paneClasses }, h("slot", { name: "left-item", onSlotchange: (event) => this.handleNavigationSlotChange(event, "left") }), h("div", { class: searchClasses }, h("slot", { name: "search-bar-left", onSlotchange: (event) => this.handleSearchSlotChange(event, "left") }))));
|
|
667
|
+
}
|
|
668
|
+
renderRightNavigation() {
|
|
669
|
+
const searchClasses = [
|
|
670
|
+
"navbar__search",
|
|
671
|
+
"navbar__search--right",
|
|
672
|
+
!this.hasRightSearchBar ? "navbar__search--empty" : "",
|
|
673
|
+
]
|
|
674
|
+
.filter(Boolean)
|
|
675
|
+
.join(" ");
|
|
676
|
+
return (h("div", { class: this.getPaneClass("right") }, h("div", { class: searchClasses }, h("slot", { name: "search-bar-right", onSlotchange: (event) => this.handleSearchSlotChange(event, "right") })), h("slot", { name: "right-item", onSlotchange: (event) => this.handleNavigationSlotChange(event, "right") }), this.renderMobileMenuButton()));
|
|
677
|
+
}
|
|
678
|
+
renderMobileMenuButton() {
|
|
679
|
+
return (h("button", { type: "button", class: "navbar__burger", "aria-label": "Toggle mobile navigation menu", "aria-controls": "ifx-navbar-mobile-menu", "aria-expanded": String(this.isMobileMenuOpen), onClick: this.handleSidebar.bind(this) }, h("span", { class: `navbar__menu-icon ${this.isMobileMenuOpen ? "navbar__menu-icon--hidden" : ""}`.trim(), "aria-hidden": "true" }, h("ifx-icon", { icon: "menu-right-16" })), h("span", { class: `navbar__close-icon ${this.isMobileMenuOpen ? "navbar__close-icon--visible" : ""}`.trim(), "aria-hidden": "true" }, h("ifx-icon", { icon: "cross-16" }))));
|
|
680
|
+
}
|
|
681
|
+
renderMobileSidebar() {
|
|
682
|
+
return (h("aside", { id: "ifx-navbar-mobile-menu", class: "navbar__sidebar", "aria-label": "Mobile navigation" }, h("nav", { class: "navbar__mobile-nav", "aria-label": "Mobile primary navigation" }, h("div", { class: "navbar__mobile-list" }, h("slot", { name: "mobile-menu-top" }))), h("nav", { class: "navbar__mobile-bottom", "aria-label": "Mobile secondary navigation" }, h("slot", { name: "mobile-menu-bottom", onSlotchange: (event) => this.handleMobileMenuBottom(event) }))));
|
|
683
|
+
}
|
|
684
|
+
render() {
|
|
685
|
+
const navbarClasses = [
|
|
686
|
+
"navbar",
|
|
687
|
+
this.fixed ? "navbar--fixed" : "",
|
|
688
|
+
this.isMobileMenuOpen ? "navbar--open" : "",
|
|
689
|
+
]
|
|
690
|
+
.filter(Boolean)
|
|
691
|
+
.join(" ");
|
|
692
|
+
const containerClasses = [
|
|
693
|
+
"navbar__container",
|
|
694
|
+
this.searchBarIsOpen ? "navbar__container--expanded" : "",
|
|
695
|
+
]
|
|
696
|
+
.filter(Boolean)
|
|
697
|
+
.join(" ");
|
|
698
|
+
return (h("header", { key: '3d5b76cdb0ffd43f0603e0882ec5c15c710c36d7', class: navbarClasses }, h("div", { key: '5f35673f4ec6e38eaacbf78c3923c5c9e8957715', class: "navbar__wrapper" }, h("nav", { key: '948a1a405bd8acb4b0abb0a9d40098cabc0f86c7', class: containerClasses, "aria-label": "Main navigation" }, this.renderLogo(), this.renderLeftNavigation(), this.renderRightNavigation())), this.renderMobileSidebar()));
|
|
699
|
+
}
|
|
700
|
+
};
|
|
701
|
+
Navbar.style = navbarCss();
|
|
702
|
+
|
|
703
|
+
export { Navbar as ifx_navbar };
|