@ukic/web-components 2.0.0-alpha.121
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -0
- package/dist/cjs/check-icon-999d9877.js +10 -0
- package/dist/cjs/check-icon-999d9877.js.map +1 -0
- package/dist/cjs/chevron-icon-d175fe66.js +10 -0
- package/dist/cjs/chevron-icon-d175fe66.js.map +1 -0
- package/dist/cjs/close-icon-8ccb0163.js +12 -0
- package/dist/cjs/close-icon-8ccb0163.js.map +1 -0
- package/dist/cjs/core.cjs.js +21 -0
- package/dist/cjs/core.cjs.js.map +1 -0
- package/dist/cjs/error-icon-99504103.js +18 -0
- package/dist/cjs/error-icon-99504103.js.map +1 -0
- package/dist/cjs/helpers-9d4961dc.js +430 -0
- package/dist/cjs/helpers-9d4961dc.js.map +1 -0
- package/dist/cjs/ic-alert.cjs.entry.js +91 -0
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-back-to-top.cjs.entry.js +132 -0
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +63 -0
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-breadcrumbs.cjs.entry.js +181 -0
- package/dist/cjs/ic-breadcrumbs.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-button_3.cjs.entry.js +432 -0
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-card.cjs.entry.js +87 -0
- package/dist/cjs/ic-card.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +66 -0
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-checkbox.cjs.entry.js +72 -0
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-classification-banner.cjs.entry.js +42 -0
- package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-data-entity.cjs.entry.js +31 -0
- package/dist/cjs/ic-data-entity.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-data-row.cjs.entry.js +74 -0
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-divider.cjs.entry.js +29 -0
- package/dist/cjs/ic-divider.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +69 -0
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-footer-link.cjs.entry.js +59 -0
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-footer.cjs.entry.js +87 -0
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-hero.cjs.entry.js +72 -0
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +485 -0
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-input-label_2.cjs.entry.js +86 -0
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-link.cjs.entry.js +69 -0
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-navigation-button.cjs.entry.js +86 -0
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-navigation-group.cjs.entry.js +240 -0
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-navigation-item.cjs.entry.js +146 -0
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +129 -0
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-page-header.cjs.entry.js +107 -0
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-radio-group.cjs.entry.js +103 -0
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-radio-option.cjs.entry.js +108 -0
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-search-bar.cjs.entry.js +393 -0
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-section-container.cjs.entry.js +29 -0
- package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-select.cjs.entry.js +166 -0
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-side-navigation.cjs.entry.js +384 -0
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-skeleton.cjs.entry.js +59 -0
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-status-tag.cjs.entry.js +34 -0
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-step.cjs.entry.js +59 -0
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-stepper.cjs.entry.js +96 -0
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-switch.cjs.entry.js +65 -0
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-tab-context.cjs.entry.js +226 -0
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-tab-list.cjs.entry.js +145 -0
- package/dist/cjs/ic-tab-list.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-tab-panel.cjs.entry.js +33 -0
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-tab.cjs.entry.js +73 -0
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-text-field.cjs.entry.js +203 -0
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-theme.cjs.entry.js +53 -0
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-top-navigation.cjs.entry.js +207 -0
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-typography.cjs.entry.js +28 -0
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -0
- package/dist/cjs/index-3ef30d9d.js +2459 -0
- package/dist/cjs/index-3ef30d9d.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +23 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/popper-11d5f714.js +1803 -0
- package/dist/cjs/popper-11d5f714.js.map +1 -0
- package/dist/cjs/success-icon-887b2097.js +11 -0
- package/dist/cjs/success-icon-887b2097.js.map +1 -0
- package/dist/collection/assets/back-icon.svg +3 -0
- package/dist/collection/assets/check-icon.svg +3 -0
- package/dist/collection/assets/chevron-icon.svg +3 -0
- package/dist/collection/assets/clear-icon.svg +3 -0
- package/dist/collection/assets/close-icon.svg +5 -0
- package/dist/collection/assets/error-icon.svg +5 -0
- package/dist/collection/assets/hamburger-menu-icon.svg +5 -0
- package/dist/collection/assets/info-icon.svg +5 -0
- package/dist/collection/assets/neutral-icon.svg +5 -0
- package/dist/collection/assets/search-icon.svg +3 -0
- package/dist/collection/assets/success-icon.svg +5 -0
- package/dist/collection/assets/warning-icon.svg +5 -0
- package/dist/collection/collection-manifest.json +59 -0
- package/dist/collection/components/ic-alert/ic-alert.css +615 -0
- package/dist/collection/components/ic-alert/ic-alert.js +235 -0
- package/dist/collection/components/ic-alert/ic-alert.js.map +1 -0
- package/dist/collection/components/ic-alert/ic-alert.test.a11y.js +11 -0
- package/dist/collection/components/ic-alert/ic-alert.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-alert/ic-alert.types.js +2 -0
- package/dist/collection/components/ic-alert/ic-alert.types.js.map +1 -0
- package/dist/collection/components/ic-back-to-top/assets/ArrowUpward.svg +3 -0
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.css +526 -0
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +160 -0
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js.map +1 -0
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.test.a11y.js +28 -0
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.css +80 -0
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +136 -0
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -0
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js +2 -0
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js.map +1 -0
- package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs-test-examples.js +35 -0
- package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs-test-examples.js.map +1 -0
- package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs.css +35 -0
- package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs.js +228 -0
- package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs.js.map +1 -0
- package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs.test.a11y.js +21 -0
- package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-button/ic-button.css +840 -0
- package/dist/collection/components/ic-button/ic-button.js +613 -0
- package/dist/collection/components/ic-button/ic-button.js.map +1 -0
- package/dist/collection/components/ic-button/ic-button.test.a11y.js +11 -0
- package/dist/collection/components/ic-button/ic-button.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-button/ic-button.types.js +2 -0
- package/dist/collection/components/ic-button/ic-button.types.js.map +1 -0
- package/dist/collection/components/ic-card/ic-card.css +546 -0
- package/dist/collection/components/ic-card/ic-card.js +291 -0
- package/dist/collection/components/ic-card/ic-card.js.map +1 -0
- package/dist/collection/components/ic-card/ic-card.test.a11y.js +21 -0
- package/dist/collection/components/ic-card/ic-card.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +597 -0
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +256 -0
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +466 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +271 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js +16 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.types.js +2 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.types.js.map +1 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.css +494 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +141 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js.map +1 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.test.a11y.js +11 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.types.js +2 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.types.js.map +1 -0
- package/dist/collection/components/ic-data-entity/ic-data-entity.css +468 -0
- package/dist/collection/components/ic-data-entity/ic-data-entity.js +70 -0
- package/dist/collection/components/ic-data-entity/ic-data-entity.js.map +1 -0
- package/dist/collection/components/ic-data-entity/ic-data-entity.test.a11y.js +11 -0
- package/dist/collection/components/ic-data-entity/ic-data-entity.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-data-row/ic-data-row.css +499 -0
- package/dist/collection/components/ic-data-row/ic-data-row.js +141 -0
- package/dist/collection/components/ic-data-row/ic-data-row.js.map +1 -0
- package/dist/collection/components/ic-data-row/ic-data-row.test.a11y.js +18 -0
- package/dist/collection/components/ic-data-row/ic-data-row.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-divider/ic-divider.css +11 -0
- package/dist/collection/components/ic-divider/ic-divider.js +44 -0
- package/dist/collection/components/ic-divider/ic-divider.js.map +1 -0
- package/dist/collection/components/ic-footer/ic-footer.css +537 -0
- package/dist/collection/components/ic-footer/ic-footer.js +247 -0
- package/dist/collection/components/ic-footer/ic-footer.js.map +1 -0
- package/dist/collection/components/ic-footer/ic-footer.test.a11y.js +21 -0
- package/dist/collection/components/ic-footer/ic-footer.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-footer/ic-footer.types.js +2 -0
- package/dist/collection/components/ic-footer/ic-footer.types.js.map +1 -0
- package/dist/collection/components/ic-footer-link/ic-footer-link.css +558 -0
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +103 -0
- package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -0
- package/dist/collection/components/ic-footer-link/ic-footer-link.test.a11y.js +21 -0
- package/dist/collection/components/ic-footer-link/ic-footer-link.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.css +522 -0
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +113 -0
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -0
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js +21 -0
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-hero/ic-hero.css +703 -0
- package/dist/collection/components/ic-hero/ic-hero.js +273 -0
- package/dist/collection/components/ic-hero/ic-hero.js.map +1 -0
- package/dist/collection/components/ic-hero/ic-hero.test.a11y.js +11 -0
- package/dist/collection/components/ic-hero/ic-hero.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-hero/ic-hero.types.js +2 -0
- package/dist/collection/components/ic-hero/ic-hero.types.js.map +1 -0
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +118 -0
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +208 -0
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +1 -0
- package/dist/collection/components/ic-input-container/ic-input-container.css +5 -0
- package/dist/collection/components/ic-input-container/ic-input-container.js +66 -0
- package/dist/collection/components/ic-input-container/ic-input-container.js.map +1 -0
- package/dist/collection/components/ic-input-label/ic-input-label.css +39 -0
- package/dist/collection/components/ic-input-label/ic-input-label.js +194 -0
- package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -0
- package/dist/collection/components/ic-input-validation/ic-input-validation.css +43 -0
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +152 -0
- package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -0
- package/dist/collection/components/ic-input-validation/ic-input-validation.types.js +2 -0
- package/dist/collection/components/ic-input-validation/ic-input-validation.types.js.map +1 -0
- package/dist/collection/components/ic-link/assets/OpenInNew.svg +1 -0
- package/dist/collection/components/ic-link/ic-link.css +545 -0
- package/dist/collection/components/ic-link/ic-link.js +231 -0
- package/dist/collection/components/ic-link/ic-link.js.map +1 -0
- package/dist/collection/components/ic-link/ic-link.test.a11y.js +11 -0
- package/dist/collection/components/ic-link/ic-link.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +672 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +334 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.test.a11y.js +11 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.types.js +2 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.types.js.map +1 -0
- package/dist/collection/components/ic-menu/ic-menu.css +579 -0
- package/dist/collection/components/ic-menu/ic-menu.js +806 -0
- package/dist/collection/components/ic-menu/ic-menu.js.map +1 -0
- package/dist/collection/components/ic-menu/ic-menu.types.js +2 -0
- package/dist/collection/components/ic-menu/ic-menu.types.js.map +1 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.css +452 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +266 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.types.js +2 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.types.js.map +1 -0
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +639 -0
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +331 -0
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -0
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.test.a11y.js +18 -0
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +967 -0
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +347 -0
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -0
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.test.a11y.js +18 -0
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.css +87 -0
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +208 -0
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -0
- package/dist/collection/components/ic-page-header/ic-page-header.css +561 -0
- package/dist/collection/components/ic-page-header/ic-page-header.js +275 -0
- package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -0
- package/dist/collection/components/ic-page-header/ic-page-header.test.a11y.js +13 -0
- package/dist/collection/components/ic-page-header/ic-page-header.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.css +454 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +308 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js +16 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +639 -0
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +305 -0
- package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.css +552 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +1127 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.test.a11y.js +11 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.types.js +2 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.types.js.map +1 -0
- package/dist/collection/components/ic-section-container/ic-section-container.css +513 -0
- package/dist/collection/components/ic-section-container/ic-section-container.js +74 -0
- package/dist/collection/components/ic-section-container/ic-section-container.js.map +1 -0
- package/dist/collection/components/ic-select/assets/Check.svg +3 -0
- package/dist/collection/components/ic-select/assets/Clear.svg +3 -0
- package/dist/collection/components/ic-select/assets/Expand.svg +3 -0
- package/dist/collection/components/ic-select/ic-select.css +592 -0
- package/dist/collection/components/ic-select/ic-select.js +516 -0
- package/dist/collection/components/ic-select/ic-select.js.map +1 -0
- package/dist/collection/components/ic-select/ic-select.test.a11y.js +28 -0
- package/dist/collection/components/ic-select/ic-select.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation-test-examples.js +321 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation-test-examples.js.map +1 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +607 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +566 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.test.a11y.js +14 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.types.js +2 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.types.js.map +1 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.css +495 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +112 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.test.a11y.js +11 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.types.js +2 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.types.js.map +1 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.css +499 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.js +119 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js +11 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.types.js +2 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.types.js.map +1 -0
- package/dist/collection/components/ic-step/ic-step.css +146 -0
- package/dist/collection/components/ic-step/ic-step.js +160 -0
- package/dist/collection/components/ic-step/ic-step.js.map +1 -0
- package/dist/collection/components/ic-step/ic-step.types.js +2 -0
- package/dist/collection/components/ic-step/ic-step.types.js.map +1 -0
- package/dist/collection/components/ic-stepper/ic-stepper.css +14 -0
- package/dist/collection/components/ic-stepper/ic-stepper.js +147 -0
- package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -0
- package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js +24 -0
- package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-stepper/ic-stepper.types.js +2 -0
- package/dist/collection/components/ic-stepper/ic-stepper.types.js.map +1 -0
- package/dist/collection/components/ic-switch/ic-switch.css +626 -0
- package/dist/collection/components/ic-switch/ic-switch.js +288 -0
- package/dist/collection/components/ic-switch/ic-switch.js.map +1 -0
- package/dist/collection/components/ic-switch/ic-switch.test.a11y.js +11 -0
- package/dist/collection/components/ic-switch/ic-switch.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-switch/ic-switch.types.js +2 -0
- package/dist/collection/components/ic-switch/ic-switch.types.js.map +1 -0
- package/dist/collection/components/ic-tab/ic-tab.css +511 -0
- package/dist/collection/components/ic-tab/ic-tab.js +245 -0
- package/dist/collection/components/ic-tab/ic-tab.js.map +1 -0
- package/dist/collection/components/ic-tab/ic-tab.types.js +2 -0
- package/dist/collection/components/ic-tab/ic-tab.types.js.map +1 -0
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +337 -0
- package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -0
- package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js +19 -0
- package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-tab-list/assets/left-arrow.svg +3 -0
- package/dist/collection/components/ic-tab-list/assets/right-arrow.svg +3 -0
- package/dist/collection/components/ic-tab-list/ic-tab-list.css +139 -0
- package/dist/collection/components/ic-tab-list/ic-tab-list.js +258 -0
- package/dist/collection/components/ic-tab-list/ic-tab-list.js.map +1 -0
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.css +3 -0
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +115 -0
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +1 -0
- package/dist/collection/components/ic-text-field/ic-text-field.css +556 -0
- package/dist/collection/components/ic-text-field/ic-text-field.js +1006 -0
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -0
- package/dist/collection/components/ic-text-field/ic-text-field.test.a11y.js +33 -0
- package/dist/collection/components/ic-text-field/ic-text-field.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-text-field/ic-text-field.types.js +2 -0
- package/dist/collection/components/ic-text-field/ic-text-field.types.js.map +1 -0
- package/dist/collection/components/ic-theme/ic-theme.js +93 -0
- package/dist/collection/components/ic-theme/ic-theme.js.map +1 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.css +538 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +192 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.test.a11y.js +15 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.types.js +2 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.types.js.map +1 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +736 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +411 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js +23 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-typography/ic-typography.css +543 -0
- package/dist/collection/components/ic-typography/ic-typography.js +73 -0
- package/dist/collection/components/ic-typography/ic-typography.js.map +1 -0
- package/dist/collection/components/ic-typography/ic-typography.test.a11y.js +11 -0
- package/dist/collection/components/ic-typography/ic-typography.test.a11y.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/testspec.setup.js +32 -0
- package/dist/collection/testspec.setup.js.map +1 -0
- package/dist/collection/utils/constants.js +44 -0
- package/dist/collection/utils/constants.js.map +1 -0
- package/dist/collection/utils/helpers.js +339 -0
- package/dist/collection/utils/helpers.js.map +1 -0
- package/dist/collection/utils/testa11y.helpers.js +8 -0
- package/dist/collection/utils/testa11y.helpers.js.map +1 -0
- package/dist/collection/utils/types.js +13 -0
- package/dist/collection/utils/types.js.map +1 -0
- package/dist/components/check-icon.js +8 -0
- package/dist/components/check-icon.js.map +1 -0
- package/dist/components/chevron-icon.js +8 -0
- package/dist/components/chevron-icon.js.map +1 -0
- package/dist/components/close-icon.js +10 -0
- package/dist/components/close-icon.js.map +1 -0
- package/dist/components/error-icon.js +15 -0
- package/dist/components/error-icon.js.map +1 -0
- package/dist/components/helpers.js +397 -0
- package/dist/components/helpers.js.map +1 -0
- package/dist/components/ic-alert.d.ts +11 -0
- package/dist/components/ic-alert.js +138 -0
- package/dist/components/ic-alert.js.map +1 -0
- package/dist/components/ic-back-to-top.d.ts +11 -0
- package/dist/components/ic-back-to-top.js +157 -0
- package/dist/components/ic-back-to-top.js.map +1 -0
- package/dist/components/ic-breadcrumb.d.ts +11 -0
- package/dist/components/ic-breadcrumb.js +8 -0
- package/dist/components/ic-breadcrumb.js.map +1 -0
- package/dist/components/ic-breadcrumb2.js +85 -0
- package/dist/components/ic-breadcrumb2.js.map +1 -0
- package/dist/components/ic-breadcrumbs.d.ts +11 -0
- package/dist/components/ic-breadcrumbs.js +212 -0
- package/dist/components/ic-breadcrumbs.js.map +1 -0
- package/dist/components/ic-button.d.ts +11 -0
- package/dist/components/ic-button.js +8 -0
- package/dist/components/ic-button.js.map +1 -0
- package/dist/components/ic-button2.js +243 -0
- package/dist/components/ic-button2.js.map +1 -0
- package/dist/components/ic-card.d.ts +11 -0
- package/dist/components/ic-card.js +121 -0
- package/dist/components/ic-card.js.map +1 -0
- package/dist/components/ic-checkbox-group.d.ts +11 -0
- package/dist/components/ic-checkbox-group.js +109 -0
- package/dist/components/ic-checkbox-group.js.map +1 -0
- package/dist/components/ic-checkbox.d.ts +11 -0
- package/dist/components/ic-checkbox.js +102 -0
- package/dist/components/ic-checkbox.js.map +1 -0
- package/dist/components/ic-classification-banner.d.ts +11 -0
- package/dist/components/ic-classification-banner.js +68 -0
- package/dist/components/ic-classification-banner.js.map +1 -0
- package/dist/components/ic-data-entity.d.ts +11 -0
- package/dist/components/ic-data-entity.js +54 -0
- package/dist/components/ic-data-entity.js.map +1 -0
- package/dist/components/ic-data-row.d.ts +11 -0
- package/dist/components/ic-data-row.js +100 -0
- package/dist/components/ic-data-row.js.map +1 -0
- package/dist/components/ic-divider.d.ts +11 -0
- package/dist/components/ic-divider.js +8 -0
- package/dist/components/ic-divider.js.map +1 -0
- package/dist/components/ic-divider2.js +41 -0
- package/dist/components/ic-divider2.js.map +1 -0
- package/dist/components/ic-footer-link-group.d.ts +11 -0
- package/dist/components/ic-footer-link-group.js +101 -0
- package/dist/components/ic-footer-link-group.js.map +1 -0
- package/dist/components/ic-footer-link.d.ts +11 -0
- package/dist/components/ic-footer-link.js +78 -0
- package/dist/components/ic-footer-link.js.map +1 -0
- package/dist/components/ic-footer.d.ts +11 -0
- package/dist/components/ic-footer.js +122 -0
- package/dist/components/ic-footer.js.map +1 -0
- package/dist/components/ic-hero.d.ts +11 -0
- package/dist/components/ic-hero.js +112 -0
- package/dist/components/ic-hero.js.map +1 -0
- package/dist/components/ic-input-component-container.d.ts +11 -0
- package/dist/components/ic-input-component-container.js +8 -0
- package/dist/components/ic-input-component-container.js.map +1 -0
- package/dist/components/ic-input-component-container2.js +71 -0
- package/dist/components/ic-input-component-container2.js.map +1 -0
- package/dist/components/ic-input-container.d.ts +11 -0
- package/dist/components/ic-input-container.js +8 -0
- package/dist/components/ic-input-container.js.map +1 -0
- package/dist/components/ic-input-container2.js +40 -0
- package/dist/components/ic-input-container2.js.map +1 -0
- package/dist/components/ic-input-label.d.ts +11 -0
- package/dist/components/ic-input-label.js +8 -0
- package/dist/components/ic-input-label.js.map +1 -0
- package/dist/components/ic-input-label2.js +74 -0
- package/dist/components/ic-input-label2.js.map +1 -0
- package/dist/components/ic-input-validation.d.ts +11 -0
- package/dist/components/ic-input-validation.js +8 -0
- package/dist/components/ic-input-validation.js.map +1 -0
- package/dist/components/ic-input-validation2.js +68 -0
- package/dist/components/ic-input-validation2.js.map +1 -0
- package/dist/components/ic-link.d.ts +11 -0
- package/dist/components/ic-link.js +8 -0
- package/dist/components/ic-link.js.map +1 -0
- package/dist/components/ic-link2.js +89 -0
- package/dist/components/ic-link2.js.map +1 -0
- package/dist/components/ic-loading-indicator.d.ts +11 -0
- package/dist/components/ic-loading-indicator.js +8 -0
- package/dist/components/ic-loading-indicator.js.map +1 -0
- package/dist/components/ic-loading-indicator2.js +158 -0
- package/dist/components/ic-loading-indicator2.js.map +1 -0
- package/dist/components/ic-menu.d.ts +11 -0
- package/dist/components/ic-menu.js +8 -0
- package/dist/components/ic-menu.js.map +1 -0
- package/dist/components/ic-menu2.js +461 -0
- package/dist/components/ic-menu2.js.map +1 -0
- package/dist/components/ic-navigation-button.d.ts +11 -0
- package/dist/components/ic-navigation-button.js +135 -0
- package/dist/components/ic-navigation-button.js.map +1 -0
- package/dist/components/ic-navigation-group.d.ts +11 -0
- package/dist/components/ic-navigation-group.js +271 -0
- package/dist/components/ic-navigation-group.js.map +1 -0
- package/dist/components/ic-navigation-item.d.ts +11 -0
- package/dist/components/ic-navigation-item.js +188 -0
- package/dist/components/ic-navigation-item.js.map +1 -0
- package/dist/components/ic-navigation-menu.d.ts +11 -0
- package/dist/components/ic-navigation-menu.js +8 -0
- package/dist/components/ic-navigation-menu.js.map +1 -0
- package/dist/components/ic-navigation-menu2.js +167 -0
- package/dist/components/ic-navigation-menu2.js.map +1 -0
- package/dist/components/ic-page-header.d.ts +11 -0
- package/dist/components/ic-page-header.js +145 -0
- package/dist/components/ic-page-header.js.map +1 -0
- package/dist/components/ic-radio-group.d.ts +11 -0
- package/dist/components/ic-radio-group.js +147 -0
- package/dist/components/ic-radio-group.js.map +1 -0
- package/dist/components/ic-radio-option.d.ts +11 -0
- package/dist/components/ic-radio-option.js +137 -0
- package/dist/components/ic-radio-option.js.map +1 -0
- package/dist/components/ic-search-bar.d.ts +11 -0
- package/dist/components/ic-search-bar.js +500 -0
- package/dist/components/ic-search-bar.js.map +1 -0
- package/dist/components/ic-section-container.d.ts +11 -0
- package/dist/components/ic-section-container.js +8 -0
- package/dist/components/ic-section-container.js.map +1 -0
- package/dist/components/ic-section-container2.js +43 -0
- package/dist/components/ic-section-container2.js.map +1 -0
- package/dist/components/ic-select.d.ts +11 -0
- package/dist/components/ic-select.js +253 -0
- package/dist/components/ic-select.js.map +1 -0
- package/dist/components/ic-side-navigation.d.ts +11 -0
- package/dist/components/ic-side-navigation.js +444 -0
- package/dist/components/ic-side-navigation.js.map +1 -0
- package/dist/components/ic-skeleton.d.ts +11 -0
- package/dist/components/ic-skeleton.js +80 -0
- package/dist/components/ic-skeleton.js.map +1 -0
- package/dist/components/ic-status-tag.d.ts +11 -0
- package/dist/components/ic-status-tag.js +59 -0
- package/dist/components/ic-status-tag.js.map +1 -0
- package/dist/components/ic-step.d.ts +11 -0
- package/dist/components/ic-step.js +85 -0
- package/dist/components/ic-step.js.map +1 -0
- package/dist/components/ic-stepper.d.ts +11 -0
- package/dist/components/ic-stepper.js +115 -0
- package/dist/components/ic-stepper.js.map +1 -0
- package/dist/components/ic-switch.d.ts +11 -0
- package/dist/components/ic-switch.js +102 -0
- package/dist/components/ic-switch.js.map +1 -0
- package/dist/components/ic-tab-context.d.ts +11 -0
- package/dist/components/ic-tab-context.js +245 -0
- package/dist/components/ic-tab-context.js.map +1 -0
- package/dist/components/ic-tab-list.d.ts +11 -0
- package/dist/components/ic-tab-list.js +180 -0
- package/dist/components/ic-tab-list.js.map +1 -0
- package/dist/components/ic-tab-panel.d.ts +11 -0
- package/dist/components/ic-tab-panel.js +52 -0
- package/dist/components/ic-tab-panel.js.map +1 -0
- package/dist/components/ic-tab.d.ts +11 -0
- package/dist/components/ic-tab.js +100 -0
- package/dist/components/ic-tab.js.map +1 -0
- package/dist/components/ic-text-field.d.ts +11 -0
- package/dist/components/ic-text-field.js +8 -0
- package/dist/components/ic-text-field.js.map +1 -0
- package/dist/components/ic-text-field2.js +282 -0
- package/dist/components/ic-text-field2.js.map +1 -0
- package/dist/components/ic-theme.d.ts +11 -0
- package/dist/components/ic-theme.js +69 -0
- package/dist/components/ic-theme.js.map +1 -0
- package/dist/components/ic-tooltip.d.ts +11 -0
- package/dist/components/ic-tooltip.js +8 -0
- package/dist/components/ic-tooltip.js.map +1 -0
- package/dist/components/ic-tooltip2.js +149 -0
- package/dist/components/ic-tooltip2.js.map +1 -0
- package/dist/components/ic-top-navigation.d.ts +11 -0
- package/dist/components/ic-top-navigation.js +273 -0
- package/dist/components/ic-top-navigation.js.map +1 -0
- package/dist/components/ic-typography.d.ts +11 -0
- package/dist/components/ic-typography.js +8 -0
- package/dist/components/ic-typography.js.map +1 -0
- package/dist/components/ic-typography2.js +42 -0
- package/dist/components/ic-typography2.js.map +1 -0
- package/dist/components/index.d.ts +69 -0
- package/dist/components/index.js +51 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/popper.js +1801 -0
- package/dist/components/popper.js.map +1 -0
- package/dist/components/success-icon.js +9 -0
- package/dist/components/success-icon.js.map +1 -0
- package/dist/core/core.css +57 -0
- package/dist/core/core.esm.js +2 -0
- package/dist/core/core.esm.js.map +1 -0
- package/dist/core/index.esm.js +2 -0
- package/dist/core/index.esm.js.map +1 -0
- package/dist/core/p-012dc33c.entry.js +2 -0
- package/dist/core/p-012dc33c.entry.js.map +1 -0
- package/dist/core/p-0d4ac3c9.entry.js +2 -0
- package/dist/core/p-0d4ac3c9.entry.js.map +1 -0
- package/dist/core/p-0ebbf9e7.entry.js +2 -0
- package/dist/core/p-0ebbf9e7.entry.js.map +1 -0
- package/dist/core/p-13854b65.entry.js +2 -0
- package/dist/core/p-13854b65.entry.js.map +1 -0
- package/dist/core/p-17420c90.entry.js +2 -0
- package/dist/core/p-17420c90.entry.js.map +1 -0
- package/dist/core/p-1e7b4310.js +2 -0
- package/dist/core/p-1e7b4310.js.map +1 -0
- package/dist/core/p-263018da.entry.js +2 -0
- package/dist/core/p-263018da.entry.js.map +1 -0
- package/dist/core/p-28ef3fe0.entry.js +2 -0
- package/dist/core/p-28ef3fe0.entry.js.map +1 -0
- package/dist/core/p-3b9d4007.entry.js +2 -0
- package/dist/core/p-3b9d4007.entry.js.map +1 -0
- package/dist/core/p-43e646c6.entry.js +2 -0
- package/dist/core/p-43e646c6.entry.js.map +1 -0
- package/dist/core/p-44355e34.entry.js +2 -0
- package/dist/core/p-44355e34.entry.js.map +1 -0
- package/dist/core/p-44512ebe.js +2 -0
- package/dist/core/p-44512ebe.js.map +1 -0
- package/dist/core/p-44af91df.entry.js +2 -0
- package/dist/core/p-44af91df.entry.js.map +1 -0
- package/dist/core/p-4b1b46f5.entry.js +2 -0
- package/dist/core/p-4b1b46f5.entry.js.map +1 -0
- package/dist/core/p-4b692529.entry.js +2 -0
- package/dist/core/p-4b692529.entry.js.map +1 -0
- package/dist/core/p-4cf60a22.entry.js +2 -0
- package/dist/core/p-4cf60a22.entry.js.map +1 -0
- package/dist/core/p-4fba6cae.entry.js +2 -0
- package/dist/core/p-4fba6cae.entry.js.map +1 -0
- package/dist/core/p-5316e421.entry.js +2 -0
- package/dist/core/p-5316e421.entry.js.map +1 -0
- package/dist/core/p-5d3dd182.entry.js +2 -0
- package/dist/core/p-5d3dd182.entry.js.map +1 -0
- package/dist/core/p-5e0b88fa.entry.js +2 -0
- package/dist/core/p-5e0b88fa.entry.js.map +1 -0
- package/dist/core/p-6be5e06b.entry.js +2 -0
- package/dist/core/p-6be5e06b.entry.js.map +1 -0
- package/dist/core/p-7152788d.entry.js +2 -0
- package/dist/core/p-7152788d.entry.js.map +1 -0
- package/dist/core/p-79905074.entry.js +2 -0
- package/dist/core/p-79905074.entry.js.map +1 -0
- package/dist/core/p-7ed79493.entry.js +2 -0
- package/dist/core/p-7ed79493.entry.js.map +1 -0
- package/dist/core/p-7f6ba60a.entry.js +2 -0
- package/dist/core/p-7f6ba60a.entry.js.map +1 -0
- package/dist/core/p-836c93b1.entry.js +2 -0
- package/dist/core/p-836c93b1.entry.js.map +1 -0
- package/dist/core/p-85436343.entry.js +2 -0
- package/dist/core/p-85436343.entry.js.map +1 -0
- package/dist/core/p-85dc9100.entry.js +2 -0
- package/dist/core/p-85dc9100.entry.js.map +1 -0
- package/dist/core/p-8a677ff1.entry.js +2 -0
- package/dist/core/p-8a677ff1.entry.js.map +1 -0
- package/dist/core/p-8af2a343.entry.js +2 -0
- package/dist/core/p-8af2a343.entry.js.map +1 -0
- package/dist/core/p-a3df537f.entry.js +2 -0
- package/dist/core/p-a3df537f.entry.js.map +1 -0
- package/dist/core/p-a968ff18.entry.js +2 -0
- package/dist/core/p-a968ff18.entry.js.map +1 -0
- package/dist/core/p-ae6aa67f.js +2 -0
- package/dist/core/p-ae6aa67f.js.map +1 -0
- package/dist/core/p-b1d83eb6.entry.js +2 -0
- package/dist/core/p-b1d83eb6.entry.js.map +1 -0
- package/dist/core/p-b858dc5a.entry.js +2 -0
- package/dist/core/p-b858dc5a.entry.js.map +1 -0
- package/dist/core/p-b9253509.entry.js +2 -0
- package/dist/core/p-b9253509.entry.js.map +1 -0
- package/dist/core/p-bbe0b521.entry.js +2 -0
- package/dist/core/p-bbe0b521.entry.js.map +1 -0
- package/dist/core/p-bdd2f166.entry.js +2 -0
- package/dist/core/p-bdd2f166.entry.js.map +1 -0
- package/dist/core/p-bddb885a.entry.js +2 -0
- package/dist/core/p-bddb885a.entry.js.map +1 -0
- package/dist/core/p-bf5717ca.js +2 -0
- package/dist/core/p-bf5717ca.js.map +1 -0
- package/dist/core/p-c09e9589.entry.js +2 -0
- package/dist/core/p-c09e9589.entry.js.map +1 -0
- package/dist/core/p-d10ce0a7.entry.js +2 -0
- package/dist/core/p-d10ce0a7.entry.js.map +1 -0
- package/dist/core/p-d198ae1f.entry.js +2 -0
- package/dist/core/p-d198ae1f.entry.js.map +1 -0
- package/dist/core/p-dc79694a.entry.js +2 -0
- package/dist/core/p-dc79694a.entry.js.map +1 -0
- package/dist/core/p-e28af65b.js +2 -0
- package/dist/core/p-e28af65b.js.map +1 -0
- package/dist/core/p-e5a09372.js +2 -0
- package/dist/core/p-e5a09372.js.map +1 -0
- package/dist/core/p-ec26fc38.js +2 -0
- package/dist/core/p-ec26fc38.js.map +1 -0
- package/dist/core/p-ed1d8712.entry.js +2 -0
- package/dist/core/p-ed1d8712.entry.js.map +1 -0
- package/dist/core/p-f7828fde.entry.js +2 -0
- package/dist/core/p-f7828fde.entry.js.map +1 -0
- package/dist/core/p-f9370be6.js +3 -0
- package/dist/core/p-f9370be6.js.map +1 -0
- package/dist/core/p-fba2f052.entry.js +2 -0
- package/dist/core/p-fba2f052.entry.js.map +1 -0
- package/dist/esm/check-icon-53f1d9e5.js +8 -0
- package/dist/esm/check-icon-53f1d9e5.js.map +1 -0
- package/dist/esm/chevron-icon-5b38c60a.js +8 -0
- package/dist/esm/chevron-icon-5b38c60a.js.map +1 -0
- package/dist/esm/close-icon-2f02b42a.js +10 -0
- package/dist/esm/close-icon-2f02b42a.js.map +1 -0
- package/dist/esm/core.js +19 -0
- package/dist/esm/core.js.map +1 -0
- package/dist/esm/error-icon-6046a380.js +15 -0
- package/dist/esm/error-icon-6046a380.js.map +1 -0
- package/dist/esm/helpers-db00eae1.js +397 -0
- package/dist/esm/helpers-db00eae1.js.map +1 -0
- package/dist/esm/ic-alert.entry.js +87 -0
- package/dist/esm/ic-alert.entry.js.map +1 -0
- package/dist/esm/ic-back-to-top.entry.js +128 -0
- package/dist/esm/ic-back-to-top.entry.js.map +1 -0
- package/dist/esm/ic-breadcrumb.entry.js +59 -0
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -0
- package/dist/esm/ic-breadcrumbs.entry.js +177 -0
- package/dist/esm/ic-breadcrumbs.entry.js.map +1 -0
- package/dist/esm/ic-button_3.entry.js +426 -0
- package/dist/esm/ic-button_3.entry.js.map +1 -0
- package/dist/esm/ic-card.entry.js +83 -0
- package/dist/esm/ic-card.entry.js.map +1 -0
- package/dist/esm/ic-checkbox-group.entry.js +62 -0
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -0
- package/dist/esm/ic-checkbox.entry.js +68 -0
- package/dist/esm/ic-checkbox.entry.js.map +1 -0
- package/dist/esm/ic-classification-banner.entry.js +38 -0
- package/dist/esm/ic-classification-banner.entry.js.map +1 -0
- package/dist/esm/ic-data-entity.entry.js +27 -0
- package/dist/esm/ic-data-entity.entry.js.map +1 -0
- package/dist/esm/ic-data-row.entry.js +70 -0
- package/dist/esm/ic-data-row.entry.js.map +1 -0
- package/dist/esm/ic-divider.entry.js +25 -0
- package/dist/esm/ic-divider.entry.js.map +1 -0
- package/dist/esm/ic-footer-link-group.entry.js +65 -0
- package/dist/esm/ic-footer-link-group.entry.js.map +1 -0
- package/dist/esm/ic-footer-link.entry.js +55 -0
- package/dist/esm/ic-footer-link.entry.js.map +1 -0
- package/dist/esm/ic-footer.entry.js +83 -0
- package/dist/esm/ic-footer.entry.js.map +1 -0
- package/dist/esm/ic-hero.entry.js +68 -0
- package/dist/esm/ic-hero.entry.js.map +1 -0
- package/dist/esm/ic-input-component-container_3.entry.js +479 -0
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -0
- package/dist/esm/ic-input-label_2.entry.js +81 -0
- package/dist/esm/ic-input-label_2.entry.js.map +1 -0
- package/dist/esm/ic-link.entry.js +65 -0
- package/dist/esm/ic-link.entry.js.map +1 -0
- package/dist/esm/ic-navigation-button.entry.js +82 -0
- package/dist/esm/ic-navigation-button.entry.js.map +1 -0
- package/dist/esm/ic-navigation-group.entry.js +236 -0
- package/dist/esm/ic-navigation-group.entry.js.map +1 -0
- package/dist/esm/ic-navigation-item.entry.js +142 -0
- package/dist/esm/ic-navigation-item.entry.js.map +1 -0
- package/dist/esm/ic-navigation-menu.entry.js +125 -0
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -0
- package/dist/esm/ic-page-header.entry.js +103 -0
- package/dist/esm/ic-page-header.entry.js.map +1 -0
- package/dist/esm/ic-radio-group.entry.js +99 -0
- package/dist/esm/ic-radio-group.entry.js.map +1 -0
- package/dist/esm/ic-radio-option.entry.js +104 -0
- package/dist/esm/ic-radio-option.entry.js.map +1 -0
- package/dist/esm/ic-search-bar.entry.js +389 -0
- package/dist/esm/ic-search-bar.entry.js.map +1 -0
- package/dist/esm/ic-section-container.entry.js +25 -0
- package/dist/esm/ic-section-container.entry.js.map +1 -0
- package/dist/esm/ic-select.entry.js +162 -0
- package/dist/esm/ic-select.entry.js.map +1 -0
- package/dist/esm/ic-side-navigation.entry.js +380 -0
- package/dist/esm/ic-side-navigation.entry.js.map +1 -0
- package/dist/esm/ic-skeleton.entry.js +55 -0
- package/dist/esm/ic-skeleton.entry.js.map +1 -0
- package/dist/esm/ic-status-tag.entry.js +30 -0
- package/dist/esm/ic-status-tag.entry.js.map +1 -0
- package/dist/esm/ic-step.entry.js +55 -0
- package/dist/esm/ic-step.entry.js.map +1 -0
- package/dist/esm/ic-stepper.entry.js +92 -0
- package/dist/esm/ic-stepper.entry.js.map +1 -0
- package/dist/esm/ic-switch.entry.js +61 -0
- package/dist/esm/ic-switch.entry.js.map +1 -0
- package/dist/esm/ic-tab-context.entry.js +222 -0
- package/dist/esm/ic-tab-context.entry.js.map +1 -0
- package/dist/esm/ic-tab-list.entry.js +141 -0
- package/dist/esm/ic-tab-list.entry.js.map +1 -0
- package/dist/esm/ic-tab-panel.entry.js +29 -0
- package/dist/esm/ic-tab-panel.entry.js.map +1 -0
- package/dist/esm/ic-tab.entry.js +69 -0
- package/dist/esm/ic-tab.entry.js.map +1 -0
- package/dist/esm/ic-text-field.entry.js +199 -0
- package/dist/esm/ic-text-field.entry.js.map +1 -0
- package/dist/esm/ic-theme.entry.js +49 -0
- package/dist/esm/ic-theme.entry.js.map +1 -0
- package/dist/esm/ic-top-navigation.entry.js +203 -0
- package/dist/esm/ic-top-navigation.entry.js.map +1 -0
- package/dist/esm/ic-typography.entry.js +24 -0
- package/dist/esm/ic-typography.entry.js.map +1 -0
- package/dist/esm/index-1500de1f.js +2431 -0
- package/dist/esm/index-1500de1f.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +19 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/popper-f860750c.js +1801 -0
- package/dist/esm/popper-f860750c.js.map +1 -0
- package/dist/esm/success-icon-2f71b115.js +9 -0
- package/dist/esm/success-icon-2f71b115.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/ic-alert/ic-alert.d.ts +44 -0
- package/dist/types/components/ic-alert/ic-alert.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-alert/ic-alert.types.d.ts +1 -0
- package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +24 -0
- package/dist/types/components/ic-back-to-top/ic-back-to-top.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +26 -0
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.types.d.ts +1 -0
- package/dist/types/components/ic-breadcrumbs/ic-breadcrumbs-test-examples.d.ts +2 -0
- package/dist/types/components/ic-breadcrumbs/ic-breadcrumbs.d.ts +33 -0
- package/dist/types/components/ic-breadcrumbs/ic-breadcrumbs.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-button/ic-button.d.ts +111 -0
- package/dist/types/components/ic-button/ic-button.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-button/ic-button.types.d.ts +5 -0
- package/dist/types/components/ic-card/ic-card.d.ts +58 -0
- package/dist/types/components/ic-card/ic-card.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +50 -0
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +51 -0
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.types.d.ts +3 -0
- package/dist/types/components/ic-classification-banner/ic-classification-banner.d.ts +24 -0
- package/dist/types/components/ic-classification-banner/ic-classification-banner.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-classification-banner/ic-classification-banner.types.d.ts +1 -0
- package/dist/types/components/ic-data-entity/ic-data-entity.d.ts +12 -0
- package/dist/types/components/ic-data-entity/ic-data-entity.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-data-row/ic-data-row.d.ts +31 -0
- package/dist/types/components/ic-data-row/ic-data-row.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-divider/ic-divider.d.ts +6 -0
- package/dist/types/components/ic-footer/ic-footer.d.ts +52 -0
- package/dist/types/components/ic-footer/ic-footer.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-footer/ic-footer.types.d.ts +1 -0
- package/dist/types/components/ic-footer-link/ic-footer-link.d.ts +21 -0
- package/dist/types/components/ic-footer-link/ic-footer-link.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +19 -0
- package/dist/types/components/ic-footer-link-group/ic-footer-link-group.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-hero/ic-hero.d.ts +57 -0
- package/dist/types/components/ic-hero/ic-hero.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-hero/ic-hero.types.d.ts +1 -0
- package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +40 -0
- package/dist/types/components/ic-input-container/ic-input-container.d.ts +11 -0
- package/dist/types/components/ic-input-label/ic-input-label.d.ts +36 -0
- package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +30 -0
- package/dist/types/components/ic-input-validation/ic-input-validation.types.d.ts +1 -0
- package/dist/types/components/ic-link/ic-link.d.ts +44 -0
- package/dist/types/components/ic-link/ic-link.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +66 -0
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.types.d.ts +3 -0
- package/dist/types/components/ic-menu/ic-menu.d.ts +116 -0
- package/dist/types/components/ic-menu/ic-menu.types.d.ts +11 -0
- package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +53 -0
- package/dist/types/components/ic-navigation-button/ic-navigation-button.types.d.ts +1 -0
- package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +56 -0
- package/dist/types/components/ic-navigation-group/ic-navigation-group.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +65 -0
- package/dist/types/components/ic-navigation-item/ic-navigation-item.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-navigation-menu/ic-navigation-menu.d.ts +36 -0
- package/dist/types/components/ic-page-header/ic-page-header.d.ts +55 -0
- package/dist/types/components/ic-page-header/ic-page-header.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +57 -0
- package/dist/types/components/ic-radio-group/ic-radio-group.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +57 -0
- package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +211 -0
- package/dist/types/components/ic-search-bar/ic-search-bar.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-search-bar/ic-search-bar.types.d.ts +4 -0
- package/dist/types/components/ic-section-container/ic-section-container.d.ts +12 -0
- package/dist/types/components/ic-select/ic-select.d.ts +108 -0
- package/dist/types/components/ic-select/ic-select.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-side-navigation/ic-side-navigation-test-examples.d.ts +5 -0
- package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +89 -0
- package/dist/types/components/ic-side-navigation/ic-side-navigation.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-side-navigation/ic-side-navigation.types.d.ts +9 -0
- package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +18 -0
- package/dist/types/components/ic-skeleton/ic-skeleton.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-skeleton/ic-skeleton.types.d.ts +1 -0
- package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +21 -0
- package/dist/types/components/ic-status-tag/ic-status-tag.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-status-tag/ic-status-tag.types.d.ts +2 -0
- package/dist/types/components/ic-step/ic-step.d.ts +26 -0
- package/dist/types/components/ic-step/ic-step.types.d.ts +1 -0
- package/dist/types/components/ic-stepper/ic-stepper.d.ts +26 -0
- package/dist/types/components/ic-stepper/ic-stepper.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-stepper/ic-stepper.types.d.ts +1 -0
- package/dist/types/components/ic-switch/ic-switch.d.ts +67 -0
- package/dist/types/components/ic-switch/ic-switch.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-switch/ic-switch.types.d.ts +4 -0
- package/dist/types/components/ic-tab/ic-tab.d.ts +38 -0
- package/dist/types/components/ic-tab/ic-tab.types.d.ts +8 -0
- package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +51 -0
- package/dist/types/components/ic-tab-context/ic-tab-context.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-tab-list/ic-tab-list.d.ts +49 -0
- package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +15 -0
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +199 -0
- package/dist/types/components/ic-text-field/ic-text-field.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-text-field/ic-text-field.types.d.ts +3 -0
- package/dist/types/components/ic-theme/ic-theme.d.ts +17 -0
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +35 -0
- package/dist/types/components/ic-tooltip/ic-tooltip.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-tooltip/ic-tooltip.types.d.ts +1 -0
- package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +79 -0
- package/dist/types/components/ic-top-navigation/ic-top-navigation.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-typography/ic-typography.d.ts +13 -0
- package/dist/types/components/ic-typography/ic-typography.test.a11y.d.ts +1 -0
- package/dist/types/components.d.ts +3276 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/interface.d.ts +15 -0
- package/dist/types/stencil-public-runtime.d.ts +1581 -0
- package/dist/types/testspec.setup.d.ts +3 -0
- package/dist/types/utils/constants.d.ts +14 -0
- package/dist/types/utils/helpers.d.ts +95 -0
- package/dist/types/utils/testa11y.helpers.d.ts +2 -0
- package/dist/types/utils/types.d.ts +53 -0
- package/hydrate/index.d.ts +217 -0
- package/hydrate/index.js +14702 -0
- package/hydrate/package.json +6 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +74 -0
@@ -0,0 +1,806 @@
|
|
1
|
+
import { h, Host, } from "@stencil/core";
|
2
|
+
import { createPopper } from "@popperjs/core";
|
3
|
+
import Check from "../../assets/check-icon.svg";
|
4
|
+
import { onComponentRequiredPropUndefined } from "../../utils/helpers";
|
5
|
+
export class Menu {
|
6
|
+
constructor() {
|
7
|
+
this.ungroupedOptions = [];
|
8
|
+
// Prevents menu re-opening immediately after it is closed on blur when clicking input
|
9
|
+
this.preventClickOpen = false;
|
10
|
+
this.handleMenuChange = (open, focusInput) => {
|
11
|
+
if (!open)
|
12
|
+
this.popperInstance.destroy();
|
13
|
+
this.menuChange.emit({ open, focusInput });
|
14
|
+
if (!open && focusInput !== false) {
|
15
|
+
this.inputEl.focus();
|
16
|
+
this.preventClickOpen = false;
|
17
|
+
}
|
18
|
+
};
|
19
|
+
this.setNextOptionValue = (selectedOptionIndex) => {
|
20
|
+
if (this.ungroupedOptions[selectedOptionIndex + 1]) {
|
21
|
+
this.optionSelect.emit({
|
22
|
+
value: this.ungroupedOptions[selectedOptionIndex + 1].value,
|
23
|
+
});
|
24
|
+
}
|
25
|
+
else {
|
26
|
+
this.optionSelect.emit({ value: this.ungroupedOptions[0].value });
|
27
|
+
}
|
28
|
+
};
|
29
|
+
this.setPreviousOptionValue = (selectedOptionIndex) => {
|
30
|
+
if (this.ungroupedOptions[selectedOptionIndex - 1]) {
|
31
|
+
this.optionSelect.emit({
|
32
|
+
value: this.ungroupedOptions[selectedOptionIndex - 1].value,
|
33
|
+
});
|
34
|
+
}
|
35
|
+
else {
|
36
|
+
this.optionSelect.emit({
|
37
|
+
value: this.ungroupedOptions[this.ungroupedOptions.length - 1].value,
|
38
|
+
});
|
39
|
+
}
|
40
|
+
};
|
41
|
+
this.arrowBehaviour = (event) => {
|
42
|
+
event.preventDefault();
|
43
|
+
this.handleMenuChange(true);
|
44
|
+
};
|
45
|
+
this.setHighlightedOption = (highlightedIndex) => {
|
46
|
+
this.optionHighlighted = this.options[highlightedIndex].value || undefined;
|
47
|
+
};
|
48
|
+
this.autoSetInputValueKeyboardOpen = (event) => {
|
49
|
+
const selectedOptionIndex = this.ungroupedOptions.findIndex((option) => option.value === this.value);
|
50
|
+
switch (event.key) {
|
51
|
+
case "ArrowDown":
|
52
|
+
this.arrowBehaviour(event);
|
53
|
+
this.setNextOptionValue(selectedOptionIndex);
|
54
|
+
break;
|
55
|
+
case "ArrowUp":
|
56
|
+
this.arrowBehaviour(event);
|
57
|
+
this.setPreviousOptionValue(selectedOptionIndex);
|
58
|
+
break;
|
59
|
+
case " ":
|
60
|
+
case "Enter":
|
61
|
+
if (event.target.id !== "clear-button") {
|
62
|
+
if (this.value == null || this.value === "") {
|
63
|
+
this.optionSelect.emit({ value: this.ungroupedOptions[0].value });
|
64
|
+
}
|
65
|
+
this.handleMenuChange(true);
|
66
|
+
}
|
67
|
+
break;
|
68
|
+
}
|
69
|
+
};
|
70
|
+
this.manSetInputValueKeyboardOpen = (event) => {
|
71
|
+
const highlightedOptionIndex = this.options.findIndex((option) => option.value === this.optionHighlighted);
|
72
|
+
this.menuOptionId.emit({ optionId: undefined });
|
73
|
+
const getOptionId = (index) => Array.from(this.host.shadowRoot.querySelectorAll("li"))[index].id;
|
74
|
+
const isSearchBar = this.parentEl.tagName === "IC-SEARCH-BAR";
|
75
|
+
switch (event.key) {
|
76
|
+
case "ArrowDown":
|
77
|
+
this.arrowBehaviour(event);
|
78
|
+
if (highlightedOptionIndex < this.options.length - 1) {
|
79
|
+
this.setHighlightedOption(highlightedOptionIndex + 1);
|
80
|
+
this.menuOptionId.emit({
|
81
|
+
optionId: getOptionId(highlightedOptionIndex + 1),
|
82
|
+
});
|
83
|
+
}
|
84
|
+
else {
|
85
|
+
this.setHighlightedOption(0);
|
86
|
+
}
|
87
|
+
this.preventIncorrectTabOrder = false;
|
88
|
+
this.focusFromSearchKeypress = false;
|
89
|
+
break;
|
90
|
+
case "ArrowUp":
|
91
|
+
this.arrowBehaviour(event);
|
92
|
+
if (highlightedOptionIndex <= 0 ||
|
93
|
+
highlightedOptionIndex > this.options.length + 1) {
|
94
|
+
this.setHighlightedOption(this.options.length - 1);
|
95
|
+
this.menuOptionId.emit({
|
96
|
+
optionId: getOptionId(this.options.length - 1),
|
97
|
+
});
|
98
|
+
}
|
99
|
+
else {
|
100
|
+
this.setHighlightedOption(highlightedOptionIndex - 1);
|
101
|
+
this.menuOptionId.emit({
|
102
|
+
optionId: getOptionId(highlightedOptionIndex - 1),
|
103
|
+
});
|
104
|
+
}
|
105
|
+
this.preventIncorrectTabOrder = false;
|
106
|
+
this.focusFromSearchKeypress = false;
|
107
|
+
break;
|
108
|
+
case " ":
|
109
|
+
case "Enter":
|
110
|
+
event.preventDefault();
|
111
|
+
this.setInputValue(highlightedOptionIndex);
|
112
|
+
break;
|
113
|
+
case "Escape":
|
114
|
+
this.handleMenuChange(false);
|
115
|
+
this.menuOptionId.emit({ optionId: undefined });
|
116
|
+
break;
|
117
|
+
case "Shift":
|
118
|
+
case "Tab":
|
119
|
+
this.preventIncorrectTabOrder = true;
|
120
|
+
break;
|
121
|
+
case "Backspace":
|
122
|
+
if (isSearchBar) {
|
123
|
+
this.parentEl.setFocus();
|
124
|
+
this.focusFromSearchKeypress = true;
|
125
|
+
this.setHighlightedOption(0);
|
126
|
+
}
|
127
|
+
break;
|
128
|
+
default:
|
129
|
+
if (isSearchBar && event.key !== "Tab") {
|
130
|
+
this.parentEl.setFocus();
|
131
|
+
this.focusFromSearchKeypress = true;
|
132
|
+
this.setHighlightedOption(0);
|
133
|
+
}
|
134
|
+
break;
|
135
|
+
}
|
136
|
+
};
|
137
|
+
this.setInputValue = (highlightedOptionIndex) => {
|
138
|
+
var _a;
|
139
|
+
if (this.options[highlightedOptionIndex]) {
|
140
|
+
this.optionSelect.emit({
|
141
|
+
value: (_a = this.options[highlightedOptionIndex]) === null || _a === void 0 ? void 0 : _a.value,
|
142
|
+
});
|
143
|
+
this.optionHighlighted = undefined;
|
144
|
+
this.menuOptionId.emit({ optionId: undefined });
|
145
|
+
}
|
146
|
+
this.handleMenuChange(false);
|
147
|
+
};
|
148
|
+
this.handleOptionClick = (event) => {
|
149
|
+
const { value, label } = event.target.dataset;
|
150
|
+
this.optionSelect.emit({ value, label });
|
151
|
+
this.handleMenuChange(false);
|
152
|
+
};
|
153
|
+
this.handleBlur = (event) => {
|
154
|
+
if (event.relatedTarget !== this.inputEl) {
|
155
|
+
if (!this.menu.contains(event.relatedTarget)) {
|
156
|
+
this.handleMenuChange(false, false);
|
157
|
+
}
|
158
|
+
}
|
159
|
+
else {
|
160
|
+
this.handleMenuChange(false);
|
161
|
+
this.preventClickOpen = true;
|
162
|
+
}
|
163
|
+
};
|
164
|
+
this.handleMenuKeyDown = (event) => {
|
165
|
+
if (this.activationType === "automatic") {
|
166
|
+
this.autoSetValueOnMenuKeyDown(event);
|
167
|
+
}
|
168
|
+
};
|
169
|
+
this.autoSetValueOnMenuKeyDown = (event) => {
|
170
|
+
const selectedOptionIndex = this.ungroupedOptions.findIndex((option) => option.value === this.value);
|
171
|
+
switch (event.key) {
|
172
|
+
case "ArrowUp":
|
173
|
+
event.preventDefault();
|
174
|
+
this.setPreviousOptionValue(selectedOptionIndex);
|
175
|
+
this.keyboardNav = true;
|
176
|
+
break;
|
177
|
+
case "ArrowDown":
|
178
|
+
event.preventDefault();
|
179
|
+
this.setNextOptionValue(selectedOptionIndex);
|
180
|
+
this.keyboardNav = true;
|
181
|
+
break;
|
182
|
+
case "Home":
|
183
|
+
this.optionSelect.emit({
|
184
|
+
value: this.ungroupedOptions[0].value,
|
185
|
+
});
|
186
|
+
this.keyboardNav = true;
|
187
|
+
break;
|
188
|
+
case "End":
|
189
|
+
this.optionSelect.emit({
|
190
|
+
value: this.ungroupedOptions[this.ungroupedOptions.length - 1].value,
|
191
|
+
});
|
192
|
+
this.keyboardNav = true;
|
193
|
+
break;
|
194
|
+
case " ":
|
195
|
+
case "Enter":
|
196
|
+
case "Escape":
|
197
|
+
this.handleMenuChange(false);
|
198
|
+
break;
|
199
|
+
}
|
200
|
+
};
|
201
|
+
this.handleMenuKeyUp = (event) => {
|
202
|
+
if (event.key === "Tab" && event.shiftKey) {
|
203
|
+
this.preventClickOpen = false;
|
204
|
+
}
|
205
|
+
};
|
206
|
+
this.getOptionId = (value) => {
|
207
|
+
return `${this.menuId}-${value}`;
|
208
|
+
};
|
209
|
+
this.getOptionAriaLabel = (option, parentOption) => {
|
210
|
+
let ariaLabel = option.label;
|
211
|
+
if (option.description) {
|
212
|
+
ariaLabel = `${ariaLabel}, ${option.description}`;
|
213
|
+
}
|
214
|
+
if (parentOption) {
|
215
|
+
return `${ariaLabel}, ${parentOption.label} group`;
|
216
|
+
}
|
217
|
+
else {
|
218
|
+
return ariaLabel;
|
219
|
+
}
|
220
|
+
};
|
221
|
+
this.getSortedOptions = (options) => {
|
222
|
+
return options.sort((optionA, optionB) => optionA.recommended && !optionB.recommended ? -1 : 0);
|
223
|
+
};
|
224
|
+
this.isManualMode = this.activationType === "manual";
|
225
|
+
this.scrollToSelected = (menu) => {
|
226
|
+
const selectedOption = menu.querySelector(".option[aria-selected]");
|
227
|
+
if (selectedOption) {
|
228
|
+
const elTop = selectedOption.offsetTop + selectedOption.offsetHeight;
|
229
|
+
if (elTop > menu.scrollTop + menu.offsetHeight ||
|
230
|
+
elTop < menu.scrollTop + menu.offsetHeight) {
|
231
|
+
menu.scrollTop = selectedOption.offsetTop;
|
232
|
+
}
|
233
|
+
selectedOption.focus();
|
234
|
+
}
|
235
|
+
};
|
236
|
+
this.displayOption = (option, index, parentOption) => {
|
237
|
+
const { open, value } = this;
|
238
|
+
return (h("li", { id: this.getOptionId(option.value), class: {
|
239
|
+
option: true,
|
240
|
+
"focused-option": this.isManualMode
|
241
|
+
? (this.keyboardNav || this.initialOptionsListRender) &&
|
242
|
+
option.value === this.optionHighlighted
|
243
|
+
: this.keyboardNav && option.value === value,
|
244
|
+
"last-recommended-option": option.recommended && !this.options[index + 1].recommended,
|
245
|
+
"disabled-option": option.disabled,
|
246
|
+
}, role: "option", tabindex: open &&
|
247
|
+
(option.value === value || option.value === this.optionHighlighted) &&
|
248
|
+
this.keyboardNav
|
249
|
+
? "0"
|
250
|
+
: "-1", "aria-label": this.getOptionAriaLabel(option, parentOption), "aria-selected": option.value === value, "aria-disabled": option.disabled ? "true" : "false", onClick: this.handleOptionClick, onBlur: this.handleBlur, "data-value": option.value, "data-label": option.label }, h("div", { class: "option-text-container" }, h("ic-typography", { variant: "body", "aria-hidden": "true" }, h("p", null, option.label)), option.description && (h("ic-typography", { id: "description", class: "option-description", variant: "caption", "aria-hidden": "true" }, h("p", null, option.description)))), option.value === value &&
|
251
|
+
this.parentEl.tagName !== "IC-SEARCH-BAR" && (h("span", { class: "check-icon", innerHTML: Check }))));
|
252
|
+
};
|
253
|
+
this.open = undefined;
|
254
|
+
this.options = undefined;
|
255
|
+
this.dense = false;
|
256
|
+
this.menuId = undefined;
|
257
|
+
this.value = undefined;
|
258
|
+
this.activationType = "automatic";
|
259
|
+
this.inputEl = undefined;
|
260
|
+
this.parentEl = undefined;
|
261
|
+
this.inputLabel = undefined;
|
262
|
+
this.anchorEl = undefined;
|
263
|
+
this.fullWidth = false;
|
264
|
+
this.autoFocusOnSelected = true;
|
265
|
+
this.keyboardNav = false;
|
266
|
+
this.optionHighlighted = undefined;
|
267
|
+
this.focusFromSearchKeypress = false;
|
268
|
+
this.initialOptionsListRender = false;
|
269
|
+
this.preventIncorrectTabOrder = false;
|
270
|
+
}
|
271
|
+
handleClearListener() {
|
272
|
+
this.optionHighlighted = "";
|
273
|
+
}
|
274
|
+
handleSubmitSearch() {
|
275
|
+
const highlightedOptionIndex = this.options.findIndex((option) => option.value === this.optionHighlighted);
|
276
|
+
this.setInputValue(highlightedOptionIndex);
|
277
|
+
}
|
278
|
+
/**
|
279
|
+
* If menu is opened with the mouse, emit menuChange custom event.
|
280
|
+
*/
|
281
|
+
async handleClickOpen() {
|
282
|
+
if (!this.preventClickOpen) {
|
283
|
+
this.menuChange.emit({ open: !this.open });
|
284
|
+
this.keyboardNav = false;
|
285
|
+
}
|
286
|
+
this.preventClickOpen = false;
|
287
|
+
}
|
288
|
+
/**
|
289
|
+
* Used alongside activationType
|
290
|
+
* If menu is opened via keyboard navigation (i.e. Enter, ArrowUp or ArrowDown), emit optionSelect custom event.
|
291
|
+
* @param {KeyboardEvent} event - keyboard event
|
292
|
+
*/
|
293
|
+
async handleKeyboardOpen(event) {
|
294
|
+
this.keyboardNav = true;
|
295
|
+
if (this.activationType === "automatic") {
|
296
|
+
this.autoSetInputValueKeyboardOpen(event);
|
297
|
+
}
|
298
|
+
else {
|
299
|
+
this.manSetInputValueKeyboardOpen(event);
|
300
|
+
}
|
301
|
+
}
|
302
|
+
/**
|
303
|
+
* @internal Used to highlight the first option in the menu.
|
304
|
+
*/
|
305
|
+
async handleSetFirstOption() {
|
306
|
+
this.setHighlightedOption(0);
|
307
|
+
}
|
308
|
+
connectedCallback() {
|
309
|
+
var _a;
|
310
|
+
if (((_a = this.parentEl) === null || _a === void 0 ? void 0 : _a.tagName) === "IC-SEARCH-BAR") {
|
311
|
+
this.setHighlightedOption(0);
|
312
|
+
this.initialOptionsListRender = true;
|
313
|
+
}
|
314
|
+
}
|
315
|
+
componentWillLoad() {
|
316
|
+
if (this.options.length > 0) {
|
317
|
+
this.options.map((option) => {
|
318
|
+
if (option.children) {
|
319
|
+
option.children.map((option) => !option.disabled && this.ungroupedOptions.push(option));
|
320
|
+
}
|
321
|
+
else if (!option.disabled) {
|
322
|
+
this.ungroupedOptions.push(option);
|
323
|
+
}
|
324
|
+
});
|
325
|
+
}
|
326
|
+
this.ungroupedOptions = this.getSortedOptions(this.ungroupedOptions);
|
327
|
+
}
|
328
|
+
componentDidLoad() {
|
329
|
+
let optionsHeight = 0;
|
330
|
+
this.host.shadowRoot
|
331
|
+
.querySelectorAll(".option")
|
332
|
+
.forEach((option) => (optionsHeight += option.clientHeight));
|
333
|
+
if (optionsHeight > 320) {
|
334
|
+
this.menu.classList.add("menu-scroll");
|
335
|
+
}
|
336
|
+
onComponentRequiredPropUndefined([
|
337
|
+
{ prop: this.open, propName: "open" },
|
338
|
+
{ prop: this.options, propName: "options" },
|
339
|
+
{ prop: this.menuId, propName: "menu-id" },
|
340
|
+
{ prop: this.value, propName: "value" },
|
341
|
+
{ prop: this.inputEl, propName: "input-el" },
|
342
|
+
{ prop: this.inputLabel, propName: "input-label" },
|
343
|
+
{ prop: this.anchorEl, propName: "anchor-el" },
|
344
|
+
], "Menu");
|
345
|
+
}
|
346
|
+
componentDidRender() {
|
347
|
+
if (this.open) {
|
348
|
+
this.popperInstance = createPopper(this.anchorEl, this.host, {
|
349
|
+
placement: "auto",
|
350
|
+
modifiers: [
|
351
|
+
{
|
352
|
+
name: "offset",
|
353
|
+
options: {
|
354
|
+
offset: [0, 7],
|
355
|
+
},
|
356
|
+
},
|
357
|
+
{
|
358
|
+
name: "flip",
|
359
|
+
options: {
|
360
|
+
allowedAutoPlacements: ["top", "bottom"],
|
361
|
+
rootBoundary: "viewport",
|
362
|
+
},
|
363
|
+
},
|
364
|
+
],
|
365
|
+
});
|
366
|
+
}
|
367
|
+
}
|
368
|
+
componentDidUpdate() {
|
369
|
+
const inputValueInOptions = this.options.some((option) => option.value === this.value);
|
370
|
+
const optionHighlightedIsSet = this.optionHighlighted !== null &&
|
371
|
+
this.optionHighlighted !== undefined &&
|
372
|
+
this.optionHighlighted !== "";
|
373
|
+
if (this.open && this.options.length !== 0) {
|
374
|
+
if (this.value &&
|
375
|
+
this.keyboardNav &&
|
376
|
+
inputValueInOptions &&
|
377
|
+
this.autoFocusOnSelected) {
|
378
|
+
this.scrollToSelected(this.menu);
|
379
|
+
}
|
380
|
+
else if (this.inputEl.tagName !== "IC-TEXT-FIELD") {
|
381
|
+
this.menu.focus();
|
382
|
+
}
|
383
|
+
else if (optionHighlightedIsSet &&
|
384
|
+
!this.focusFromSearchKeypress &&
|
385
|
+
!this.preventIncorrectTabOrder) {
|
386
|
+
const highlightedEl = this.host.shadowRoot.querySelector(`li[data-value="${this.optionHighlighted}"]`);
|
387
|
+
if (highlightedEl) {
|
388
|
+
highlightedEl.focus();
|
389
|
+
}
|
390
|
+
}
|
391
|
+
}
|
392
|
+
}
|
393
|
+
render() {
|
394
|
+
const { inputLabel, options, menuId, value, fullWidth } = this;
|
395
|
+
return (h(Host, { class: {
|
396
|
+
"full-width": fullWidth,
|
397
|
+
} }, options.length !== 0 && (h("ul", { id: menuId, class: "menu", role: "listbox", "aria-label": inputLabel, "aria-activedescendant": value != null && value !== "" ? this.getOptionId(value) : "", tabindex: open && !this.keyboardNav ? "0" : "-1", ref: (el) => (this.menu = el), onKeyDown: this.handleMenuKeyDown, onKeyUp: this.handleMenuKeyUp, onBlur: this.handleBlur }, this.getSortedOptions(options).map((option, index) => {
|
398
|
+
if (option.children) {
|
399
|
+
return (h("div", null, h("ic-typography", { class: "option-group-title", role: "presentation", variant: "subtitle-small" }, h("p", null, option.label)), option.children.map((childOption) => this.displayOption(childOption, index, option))));
|
400
|
+
}
|
401
|
+
else {
|
402
|
+
return this.displayOption(option, index);
|
403
|
+
}
|
404
|
+
})))));
|
405
|
+
}
|
406
|
+
static get is() { return "ic-menu"; }
|
407
|
+
static get encapsulation() { return "shadow"; }
|
408
|
+
static get originalStyleUrls() {
|
409
|
+
return {
|
410
|
+
"$": ["ic-menu.css"]
|
411
|
+
};
|
412
|
+
}
|
413
|
+
static get styleUrls() {
|
414
|
+
return {
|
415
|
+
"$": ["ic-menu.css"]
|
416
|
+
};
|
417
|
+
}
|
418
|
+
static get properties() {
|
419
|
+
return {
|
420
|
+
"open": {
|
421
|
+
"type": "boolean",
|
422
|
+
"mutable": false,
|
423
|
+
"complexType": {
|
424
|
+
"original": "boolean",
|
425
|
+
"resolved": "boolean",
|
426
|
+
"references": {}
|
427
|
+
},
|
428
|
+
"required": true,
|
429
|
+
"optional": false,
|
430
|
+
"docs": {
|
431
|
+
"tags": [],
|
432
|
+
"text": "Specify whether the menu is open."
|
433
|
+
},
|
434
|
+
"attribute": "open",
|
435
|
+
"reflect": true
|
436
|
+
},
|
437
|
+
"options": {
|
438
|
+
"type": "unknown",
|
439
|
+
"mutable": false,
|
440
|
+
"complexType": {
|
441
|
+
"original": "IcMenuOption[]",
|
442
|
+
"resolved": "IcMenuOption[]",
|
443
|
+
"references": {
|
444
|
+
"IcMenuOption": {
|
445
|
+
"location": "import",
|
446
|
+
"path": "../../utils/types"
|
447
|
+
}
|
448
|
+
}
|
449
|
+
},
|
450
|
+
"required": true,
|
451
|
+
"optional": false,
|
452
|
+
"docs": {
|
453
|
+
"tags": [],
|
454
|
+
"text": "Provide the possible selection options."
|
455
|
+
}
|
456
|
+
},
|
457
|
+
"dense": {
|
458
|
+
"type": "boolean",
|
459
|
+
"mutable": false,
|
460
|
+
"complexType": {
|
461
|
+
"original": "boolean",
|
462
|
+
"resolved": "boolean",
|
463
|
+
"references": {}
|
464
|
+
},
|
465
|
+
"required": false,
|
466
|
+
"optional": true,
|
467
|
+
"docs": {
|
468
|
+
"tags": [],
|
469
|
+
"text": "Specify whether dense styling is to be applied to the element."
|
470
|
+
},
|
471
|
+
"attribute": "dense",
|
472
|
+
"reflect": true,
|
473
|
+
"defaultValue": "false"
|
474
|
+
},
|
475
|
+
"menuId": {
|
476
|
+
"type": "string",
|
477
|
+
"mutable": false,
|
478
|
+
"complexType": {
|
479
|
+
"original": "string",
|
480
|
+
"resolved": "string",
|
481
|
+
"references": {}
|
482
|
+
},
|
483
|
+
"required": true,
|
484
|
+
"optional": false,
|
485
|
+
"docs": {
|
486
|
+
"tags": [],
|
487
|
+
"text": "Id of the menu."
|
488
|
+
},
|
489
|
+
"attribute": "menu-id",
|
490
|
+
"reflect": false
|
491
|
+
},
|
492
|
+
"value": {
|
493
|
+
"type": "string",
|
494
|
+
"mutable": false,
|
495
|
+
"complexType": {
|
496
|
+
"original": "string",
|
497
|
+
"resolved": "string",
|
498
|
+
"references": {}
|
499
|
+
},
|
500
|
+
"required": true,
|
501
|
+
"optional": false,
|
502
|
+
"docs": {
|
503
|
+
"tags": [],
|
504
|
+
"text": "The value of the currently selected option."
|
505
|
+
},
|
506
|
+
"attribute": "value",
|
507
|
+
"reflect": false
|
508
|
+
},
|
509
|
+
"activationType": {
|
510
|
+
"type": "string",
|
511
|
+
"mutable": false,
|
512
|
+
"complexType": {
|
513
|
+
"original": "IcActivationTypes",
|
514
|
+
"resolved": "\"automatic\" | \"manual\"",
|
515
|
+
"references": {
|
516
|
+
"IcActivationTypes": {
|
517
|
+
"location": "import",
|
518
|
+
"path": "../../utils/types"
|
519
|
+
}
|
520
|
+
}
|
521
|
+
},
|
522
|
+
"required": false,
|
523
|
+
"optional": true,
|
524
|
+
"docs": {
|
525
|
+
"tags": [],
|
526
|
+
"text": "Determines whether options manually set as values (by pressing 'Enter') when they receive focus using keyboard navigation."
|
527
|
+
},
|
528
|
+
"attribute": "activation-type",
|
529
|
+
"reflect": false,
|
530
|
+
"defaultValue": "\"automatic\""
|
531
|
+
},
|
532
|
+
"inputEl": {
|
533
|
+
"type": "unknown",
|
534
|
+
"mutable": false,
|
535
|
+
"complexType": {
|
536
|
+
"original": "HTMLElement",
|
537
|
+
"resolved": "HTMLElement",
|
538
|
+
"references": {
|
539
|
+
"HTMLElement": {
|
540
|
+
"location": "global"
|
541
|
+
}
|
542
|
+
}
|
543
|
+
},
|
544
|
+
"required": true,
|
545
|
+
"optional": false,
|
546
|
+
"docs": {
|
547
|
+
"tags": [],
|
548
|
+
"text": "Reference to the input element."
|
549
|
+
}
|
550
|
+
},
|
551
|
+
"parentEl": {
|
552
|
+
"type": "unknown",
|
553
|
+
"mutable": false,
|
554
|
+
"complexType": {
|
555
|
+
"original": "HTMLElement",
|
556
|
+
"resolved": "HTMLElement",
|
557
|
+
"references": {
|
558
|
+
"HTMLElement": {
|
559
|
+
"location": "global"
|
560
|
+
}
|
561
|
+
}
|
562
|
+
},
|
563
|
+
"required": false,
|
564
|
+
"optional": true,
|
565
|
+
"docs": {
|
566
|
+
"tags": [{
|
567
|
+
"name": "internal",
|
568
|
+
"text": "- set if ic-menu is nested inside another component"
|
569
|
+
}],
|
570
|
+
"text": ""
|
571
|
+
}
|
572
|
+
},
|
573
|
+
"inputLabel": {
|
574
|
+
"type": "string",
|
575
|
+
"mutable": false,
|
576
|
+
"complexType": {
|
577
|
+
"original": "string",
|
578
|
+
"resolved": "string",
|
579
|
+
"references": {}
|
580
|
+
},
|
581
|
+
"required": true,
|
582
|
+
"optional": false,
|
583
|
+
"docs": {
|
584
|
+
"tags": [],
|
585
|
+
"text": "Label for the input element."
|
586
|
+
},
|
587
|
+
"attribute": "input-label",
|
588
|
+
"reflect": false
|
589
|
+
},
|
590
|
+
"anchorEl": {
|
591
|
+
"type": "unknown",
|
592
|
+
"mutable": false,
|
593
|
+
"complexType": {
|
594
|
+
"original": "HTMLElement",
|
595
|
+
"resolved": "HTMLElement",
|
596
|
+
"references": {
|
597
|
+
"HTMLElement": {
|
598
|
+
"location": "global"
|
599
|
+
}
|
600
|
+
}
|
601
|
+
},
|
602
|
+
"required": true,
|
603
|
+
"optional": false,
|
604
|
+
"docs": {
|
605
|
+
"tags": [],
|
606
|
+
"text": "Reference to an anchor element the menu will position itself from when rendered."
|
607
|
+
}
|
608
|
+
},
|
609
|
+
"fullWidth": {
|
610
|
+
"type": "boolean",
|
611
|
+
"mutable": false,
|
612
|
+
"complexType": {
|
613
|
+
"original": "boolean",
|
614
|
+
"resolved": "boolean",
|
615
|
+
"references": {}
|
616
|
+
},
|
617
|
+
"required": false,
|
618
|
+
"optional": false,
|
619
|
+
"docs": {
|
620
|
+
"tags": [],
|
621
|
+
"text": "If true then fill width of container"
|
622
|
+
},
|
623
|
+
"attribute": "full-width",
|
624
|
+
"reflect": false,
|
625
|
+
"defaultValue": "false"
|
626
|
+
},
|
627
|
+
"autoFocusOnSelected": {
|
628
|
+
"type": "boolean",
|
629
|
+
"mutable": false,
|
630
|
+
"complexType": {
|
631
|
+
"original": "boolean",
|
632
|
+
"resolved": "boolean",
|
633
|
+
"references": {}
|
634
|
+
},
|
635
|
+
"required": false,
|
636
|
+
"optional": false,
|
637
|
+
"docs": {
|
638
|
+
"tags": [{
|
639
|
+
"name": "internal",
|
640
|
+
"text": "If true, autofocus on selected item when menu is open"
|
641
|
+
}],
|
642
|
+
"text": ""
|
643
|
+
},
|
644
|
+
"attribute": "auto-focus-on-selected",
|
645
|
+
"reflect": false,
|
646
|
+
"defaultValue": "true"
|
647
|
+
}
|
648
|
+
};
|
649
|
+
}
|
650
|
+
static get states() {
|
651
|
+
return {
|
652
|
+
"keyboardNav": {},
|
653
|
+
"optionHighlighted": {},
|
654
|
+
"focusFromSearchKeypress": {},
|
655
|
+
"initialOptionsListRender": {},
|
656
|
+
"preventIncorrectTabOrder": {}
|
657
|
+
};
|
658
|
+
}
|
659
|
+
static get events() {
|
660
|
+
return [{
|
661
|
+
"method": "optionSelect",
|
662
|
+
"name": "optionSelect",
|
663
|
+
"bubbles": true,
|
664
|
+
"cancelable": true,
|
665
|
+
"composed": true,
|
666
|
+
"docs": {
|
667
|
+
"tags": [],
|
668
|
+
"text": "Emitted when an option is selected."
|
669
|
+
},
|
670
|
+
"complexType": {
|
671
|
+
"original": "IcOptionSelectEventDetail",
|
672
|
+
"resolved": "IcOptionSelectEventDetail",
|
673
|
+
"references": {
|
674
|
+
"IcOptionSelectEventDetail": {
|
675
|
+
"location": "import",
|
676
|
+
"path": "./ic-menu.types"
|
677
|
+
}
|
678
|
+
}
|
679
|
+
}
|
680
|
+
}, {
|
681
|
+
"method": "menuChange",
|
682
|
+
"name": "menuChange",
|
683
|
+
"bubbles": true,
|
684
|
+
"cancelable": true,
|
685
|
+
"composed": true,
|
686
|
+
"docs": {
|
687
|
+
"tags": [],
|
688
|
+
"text": "Emitted when state of menu changes (i.e. open or close)."
|
689
|
+
},
|
690
|
+
"complexType": {
|
691
|
+
"original": "IcMenuChangeEventDetail",
|
692
|
+
"resolved": "IcMenuChangeEventDetail",
|
693
|
+
"references": {
|
694
|
+
"IcMenuChangeEventDetail": {
|
695
|
+
"location": "import",
|
696
|
+
"path": "./ic-menu.types"
|
697
|
+
}
|
698
|
+
}
|
699
|
+
}
|
700
|
+
}, {
|
701
|
+
"method": "menuOptionId",
|
702
|
+
"name": "menuOptionId",
|
703
|
+
"bubbles": true,
|
704
|
+
"cancelable": true,
|
705
|
+
"composed": true,
|
706
|
+
"docs": {
|
707
|
+
"tags": [],
|
708
|
+
"text": "Emitted when an option has been highlighted"
|
709
|
+
},
|
710
|
+
"complexType": {
|
711
|
+
"original": "IcMenuOptionIdEventDetail",
|
712
|
+
"resolved": "IcMenuOptionIdEventDetail",
|
713
|
+
"references": {
|
714
|
+
"IcMenuOptionIdEventDetail": {
|
715
|
+
"location": "import",
|
716
|
+
"path": "./ic-menu.types"
|
717
|
+
}
|
718
|
+
}
|
719
|
+
}
|
720
|
+
}];
|
721
|
+
}
|
722
|
+
static get methods() {
|
723
|
+
return {
|
724
|
+
"handleClickOpen": {
|
725
|
+
"complexType": {
|
726
|
+
"signature": "() => Promise<void>",
|
727
|
+
"parameters": [],
|
728
|
+
"references": {
|
729
|
+
"Promise": {
|
730
|
+
"location": "global"
|
731
|
+
}
|
732
|
+
},
|
733
|
+
"return": "Promise<void>"
|
734
|
+
},
|
735
|
+
"docs": {
|
736
|
+
"text": "If menu is opened with the mouse, emit menuChange custom event.",
|
737
|
+
"tags": []
|
738
|
+
}
|
739
|
+
},
|
740
|
+
"handleKeyboardOpen": {
|
741
|
+
"complexType": {
|
742
|
+
"signature": "(event: KeyboardEvent) => Promise<void>",
|
743
|
+
"parameters": [{
|
744
|
+
"tags": [{
|
745
|
+
"name": "param",
|
746
|
+
"text": "event - keyboard event"
|
747
|
+
}],
|
748
|
+
"text": "- keyboard event"
|
749
|
+
}],
|
750
|
+
"references": {
|
751
|
+
"Promise": {
|
752
|
+
"location": "global"
|
753
|
+
},
|
754
|
+
"KeyboardEvent": {
|
755
|
+
"location": "global"
|
756
|
+
}
|
757
|
+
},
|
758
|
+
"return": "Promise<void>"
|
759
|
+
},
|
760
|
+
"docs": {
|
761
|
+
"text": "Used alongside activationType\nIf menu is opened via keyboard navigation (i.e. Enter, ArrowUp or ArrowDown), emit optionSelect custom event.",
|
762
|
+
"tags": [{
|
763
|
+
"name": "param",
|
764
|
+
"text": "event - keyboard event"
|
765
|
+
}]
|
766
|
+
}
|
767
|
+
},
|
768
|
+
"handleSetFirstOption": {
|
769
|
+
"complexType": {
|
770
|
+
"signature": "() => Promise<void>",
|
771
|
+
"parameters": [],
|
772
|
+
"references": {
|
773
|
+
"Promise": {
|
774
|
+
"location": "global"
|
775
|
+
}
|
776
|
+
},
|
777
|
+
"return": "Promise<void>"
|
778
|
+
},
|
779
|
+
"docs": {
|
780
|
+
"text": "",
|
781
|
+
"tags": [{
|
782
|
+
"name": "internal",
|
783
|
+
"text": "Used to highlight the first option in the menu."
|
784
|
+
}]
|
785
|
+
}
|
786
|
+
}
|
787
|
+
};
|
788
|
+
}
|
789
|
+
static get elementRef() { return "host"; }
|
790
|
+
static get listeners() {
|
791
|
+
return [{
|
792
|
+
"name": "icClear",
|
793
|
+
"method": "handleClearListener",
|
794
|
+
"target": "document",
|
795
|
+
"capture": false,
|
796
|
+
"passive": false
|
797
|
+
}, {
|
798
|
+
"name": "icSubmitSearch",
|
799
|
+
"method": "handleSubmitSearch",
|
800
|
+
"target": "document",
|
801
|
+
"capture": false,
|
802
|
+
"passive": false
|
803
|
+
}];
|
804
|
+
}
|
805
|
+
}
|
806
|
+
//# sourceMappingURL=ic-menu.js.map
|