@baloise/ds-core 0.0.5-nightly.e56f740
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 +201 -0
- package/README.md +45 -0
- package/components/_commonjsHelpers.js +3 -0
- package/components/attributes.js +40 -0
- package/components/bal-accordion-details.d.ts +11 -0
- package/components/bal-accordion-details.js +90 -0
- package/components/bal-accordion-summary.d.ts +11 -0
- package/components/bal-accordion-summary.js +116 -0
- package/components/bal-accordion-trigger.d.ts +11 -0
- package/components/bal-accordion-trigger.js +135 -0
- package/components/bal-accordion.d.ts +11 -0
- package/components/bal-accordion.js +350 -0
- package/components/bal-app.d.ts +11 -0
- package/components/bal-app.js +6 -0
- package/components/bal-app2.js +87 -0
- package/components/bal-badge.d.ts +11 -0
- package/components/bal-badge.js +6 -0
- package/components/bal-badge2.js +54 -0
- package/components/bal-button-group.d.ts +11 -0
- package/components/bal-button-group.js +6 -0
- package/components/bal-button-group2.js +40 -0
- package/components/bal-button.d.ts +11 -0
- package/components/bal-button.js +6 -0
- package/components/bal-button2.js +218 -0
- package/components/bal-card-actions.d.ts +11 -0
- package/components/bal-card-actions.js +38 -0
- package/components/bal-card-button.d.ts +11 -0
- package/components/bal-card-button.js +62 -0
- package/components/bal-card-content.d.ts +11 -0
- package/components/bal-card-content.js +6 -0
- package/components/bal-card-content2.js +26 -0
- package/components/bal-card-subtitle.d.ts +11 -0
- package/components/bal-card-subtitle.js +42 -0
- package/components/bal-card-title.d.ts +11 -0
- package/components/bal-card-title.js +38 -0
- package/components/bal-card.d.ts +11 -0
- package/components/bal-card.js +6 -0
- package/components/bal-card2.js +63 -0
- package/components/bal-carousel-item.d.ts +11 -0
- package/components/bal-carousel-item.js +6 -0
- package/components/bal-carousel-item2.js +94 -0
- package/components/bal-carousel.d.ts +11 -0
- package/components/bal-carousel.js +6 -0
- package/components/bal-carousel2.js +477 -0
- package/components/bal-checkbox-button.d.ts +11 -0
- package/components/bal-checkbox-button.js +236 -0
- package/components/bal-checkbox-group.d.ts +11 -0
- package/components/bal-checkbox-group.js +373 -0
- package/components/bal-checkbox.d.ts +11 -0
- package/components/bal-checkbox.js +6 -0
- package/components/bal-checkbox2.js +322 -0
- package/components/bal-close.d.ts +11 -0
- package/components/bal-close.i18n.js +34 -0
- package/components/bal-close.js +6 -0
- package/components/bal-close2.js +74 -0
- package/components/bal-content.d.ts +11 -0
- package/components/bal-content.js +74 -0
- package/components/bal-data-item.d.ts +11 -0
- package/components/bal-data-item.js +36 -0
- package/components/bal-data-label.d.ts +11 -0
- package/components/bal-data-label.js +33 -0
- package/components/bal-data-value.d.ts +11 -0
- package/components/bal-data-value.js +69 -0
- package/components/bal-data.d.ts +11 -0
- package/components/bal-data.js +63 -0
- package/components/bal-date-calendar-cell.d.ts +11 -0
- package/components/bal-date-calendar-cell.js +6 -0
- package/components/bal-date-calendar-cell2.js +63 -0
- package/components/bal-date-calendar.d.ts +11 -0
- package/components/bal-date-calendar.js +6 -0
- package/components/bal-date-calendar2.js +522 -0
- package/components/bal-date.d.ts +11 -0
- package/components/bal-date.i18n.js +64 -0
- package/components/bal-date.js +387 -0
- package/components/bal-datepicker.d.ts +11 -0
- package/components/bal-datepicker.i18n.js +74 -0
- package/components/bal-datepicker.js +1152 -0
- package/components/bal-divider.d.ts +11 -0
- package/components/bal-divider.js +60 -0
- package/components/bal-doc-app.d.ts +11 -0
- package/components/bal-doc-app.js +260 -0
- package/components/bal-field-control.d.ts +11 -0
- package/components/bal-field-control.js +63 -0
- package/components/bal-field-hint.d.ts +11 -0
- package/components/bal-field-hint.js +92 -0
- package/components/bal-field-label.d.ts +11 -0
- package/components/bal-field-label.js +74 -0
- package/components/bal-field-message.d.ts +11 -0
- package/components/bal-field-message.js +57 -0
- package/components/bal-field.d.ts +11 -0
- package/components/bal-field.js +222 -0
- package/components/bal-file-upload.d.ts +11 -0
- package/components/bal-file-upload.js +460 -0
- package/components/bal-file-upload.type.js +10 -0
- package/components/bal-footer.d.ts +11 -0
- package/components/bal-footer.js +209 -0
- package/components/bal-form-col.d.ts +11 -0
- package/components/bal-form-col.js +44 -0
- package/components/bal-form-grid.d.ts +11 -0
- package/components/bal-form-grid.js +33 -0
- package/components/bal-form.d.ts +11 -0
- package/components/bal-form.js +50 -0
- package/components/bal-heading.d.ts +11 -0
- package/components/bal-heading.js +6 -0
- package/components/bal-heading2.js +185 -0
- package/components/bal-hint-text.d.ts +11 -0
- package/components/bal-hint-text.js +6 -0
- package/components/bal-hint-text2.js +31 -0
- package/components/bal-hint-title.d.ts +11 -0
- package/components/bal-hint-title.js +6 -0
- package/components/bal-hint-title2.js +31 -0
- package/components/bal-hint.d.ts +11 -0
- package/components/bal-hint.js +6 -0
- package/components/bal-hint2.js +206 -0
- package/components/bal-icon.d.ts +11 -0
- package/components/bal-icon.js +6 -0
- package/components/bal-icon2.js +1056 -0
- package/components/bal-input-date.d.ts +11 -0
- package/components/bal-input-date.js +6 -0
- package/components/bal-input-date2.js +1048 -0
- package/components/bal-input-group.d.ts +11 -0
- package/components/bal-input-group.js +6 -0
- package/components/bal-input-group2.js +44 -0
- package/components/bal-input-slider.d.ts +11 -0
- package/components/bal-input-slider.js +211 -0
- package/components/bal-input-stepper.d.ts +11 -0
- package/components/bal-input-stepper.i18n.js +44 -0
- package/components/bal-input-stepper.js +1281 -0
- package/components/bal-input.d.ts +11 -0
- package/components/bal-input.js +522 -0
- package/components/bal-label.d.ts +11 -0
- package/components/bal-label.i18n.js +34 -0
- package/components/bal-label.js +6 -0
- package/components/bal-label2.js +126 -0
- package/components/bal-list-item-accordion-body.d.ts +11 -0
- package/components/bal-list-item-accordion-body.js +6 -0
- package/components/bal-list-item-accordion-body2.js +121 -0
- package/components/bal-list-item-accordion-head.d.ts +11 -0
- package/components/bal-list-item-accordion-head.js +6 -0
- package/components/bal-list-item-accordion-head2.js +83 -0
- package/components/bal-list-item-content.d.ts +11 -0
- package/components/bal-list-item-content.js +6 -0
- package/components/bal-list-item-content2.js +32 -0
- package/components/bal-list-item-icon.d.ts +11 -0
- package/components/bal-list-item-icon.js +6 -0
- package/components/bal-list-item-icon2.js +32 -0
- package/components/bal-list-item-subtitle.d.ts +11 -0
- package/components/bal-list-item-subtitle.js +6 -0
- package/components/bal-list-item-subtitle2.js +26 -0
- package/components/bal-list-item-title.d.ts +11 -0
- package/components/bal-list-item-title.js +6 -0
- package/components/bal-list-item-title2.js +37 -0
- package/components/bal-list-item.d.ts +11 -0
- package/components/bal-list-item.js +6 -0
- package/components/bal-list-item2.js +300 -0
- package/components/bal-list.d.ts +11 -0
- package/components/bal-list.js +6 -0
- package/components/bal-list2.js +60 -0
- package/components/bal-logo.animation.js +3462 -0
- package/components/bal-logo.d.ts +11 -0
- package/components/bal-logo.js +6 -0
- package/components/bal-logo2.js +169 -0
- package/components/bal-modal-body.d.ts +11 -0
- package/components/bal-modal-body.js +29 -0
- package/components/bal-modal-header.d.ts +11 -0
- package/components/bal-modal-header.js +57 -0
- package/components/bal-modal.d.ts +11 -0
- package/components/bal-modal.js +292 -0
- package/components/bal-nav-link-grid-col.d.ts +11 -0
- package/components/bal-nav-link-grid-col.js +6 -0
- package/components/bal-nav-link-grid-col2.js +52 -0
- package/components/bal-nav-link-grid.d.ts +11 -0
- package/components/bal-nav-link-grid.js +6 -0
- package/components/bal-nav-link-grid2.js +47 -0
- package/components/bal-nav-link-group.d.ts +11 -0
- package/components/bal-nav-link-group.js +54 -0
- package/components/bal-nav-link.d.ts +11 -0
- package/components/bal-nav-link.js +6 -0
- package/components/bal-nav-link2.js +69 -0
- package/components/bal-nav-menu-bar.d.ts +11 -0
- package/components/bal-nav-menu-bar.js +6 -0
- package/components/bal-nav-menu-bar2.js +65 -0
- package/components/bal-nav-menu-flyout.d.ts +11 -0
- package/components/bal-nav-menu-flyout.js +6 -0
- package/components/bal-nav-menu-flyout2.js +97 -0
- package/components/bal-nav-meta-bar.d.ts +11 -0
- package/components/bal-nav-meta-bar.js +6 -0
- package/components/bal-nav-meta-bar2.js +98 -0
- package/components/bal-nav.d.ts +11 -0
- package/components/bal-nav.js +919 -0
- package/components/bal-navbar-brand.d.ts +11 -0
- package/components/bal-navbar-brand.js +123 -0
- package/components/bal-navbar-menu-end.d.ts +11 -0
- package/components/bal-navbar-menu-end.js +34 -0
- package/components/bal-navbar-menu-start.d.ts +11 -0
- package/components/bal-navbar-menu-start.js +34 -0
- package/components/bal-navbar-menu.d.ts +11 -0
- package/components/bal-navbar-menu.js +71 -0
- package/components/bal-navbar.d.ts +11 -0
- package/components/bal-navbar.js +64 -0
- package/components/bal-notices.d.ts +11 -0
- package/components/bal-notices.js +40 -0
- package/components/bal-notification.d.ts +11 -0
- package/components/bal-notification.js +36 -0
- package/components/bal-number-input.d.ts +11 -0
- package/components/bal-number-input.js +519 -0
- package/components/bal-pagination.d.ts +11 -0
- package/components/bal-pagination.js +6 -0
- package/components/bal-pagination2.js +313 -0
- package/components/bal-popover-content.d.ts +11 -0
- package/components/bal-popover-content.js +6 -0
- package/components/bal-popover-content2.js +95 -0
- package/components/bal-popover.d.ts +11 -0
- package/components/bal-popover.js +6 -0
- package/components/bal-popover2.js +2106 -0
- package/components/bal-popup.d.ts +11 -0
- package/components/bal-popup.js +693 -0
- package/components/bal-progress-bar.d.ts +11 -0
- package/components/bal-progress-bar.js +93 -0
- package/components/bal-radio-button.d.ts +11 -0
- package/components/bal-radio-button.js +236 -0
- package/components/bal-radio-group.d.ts +11 -0
- package/components/bal-radio-group.js +389 -0
- package/components/bal-radio.d.ts +11 -0
- package/components/bal-radio.js +6 -0
- package/components/bal-radio2.js +309 -0
- package/components/bal-select-option.d.ts +11 -0
- package/components/bal-select-option.js +6 -0
- package/components/bal-select-option2.js +47 -0
- package/components/bal-select.d.ts +11 -0
- package/components/bal-select.js +6 -0
- package/components/bal-select2.js +848 -0
- package/components/bal-shape.d.ts +11 -0
- package/components/bal-shape.js +6 -0
- package/components/bal-shape2.js +78 -0
- package/components/bal-sheet.d.ts +11 -0
- package/components/bal-sheet.js +41 -0
- package/components/bal-snackbar.d.ts +11 -0
- package/components/bal-snackbar.js +133 -0
- package/components/bal-spinner.animation.js +4533 -0
- package/components/bal-spinner.d.ts +11 -0
- package/components/bal-spinner.js +6 -0
- package/components/bal-spinner2.js +140 -0
- package/components/bal-stack.d.ts +11 -0
- package/components/bal-stack.js +6 -0
- package/components/bal-stack2.js +89 -0
- package/components/bal-stage-back-link.d.ts +11 -0
- package/components/bal-stage-back-link.js +48 -0
- package/components/bal-stage-body.d.ts +11 -0
- package/components/bal-stage-body.js +32 -0
- package/components/bal-stage-foot.d.ts +11 -0
- package/components/bal-stage-foot.js +30 -0
- package/components/bal-stage-head.d.ts +11 -0
- package/components/bal-stage-head.js +30 -0
- package/components/bal-stage-image.d.ts +11 -0
- package/components/bal-stage-image.js +42 -0
- package/components/bal-stage.d.ts +11 -0
- package/components/bal-stage.js +84 -0
- package/components/bal-step-item.d.ts +11 -0
- package/components/bal-step-item.js +93 -0
- package/components/bal-step.util.js +5 -0
- package/components/bal-steps.d.ts +11 -0
- package/components/bal-steps.js +323 -0
- package/components/bal-tab-item.d.ts +11 -0
- package/components/bal-tab-item.js +96 -0
- package/components/bal-tab.util.js +5 -0
- package/components/bal-table.d.ts +11 -0
- package/components/bal-table.js +41 -0
- package/components/bal-tabs.d.ts +11 -0
- package/components/bal-tabs.js +6 -0
- package/components/bal-tabs2.js +756 -0
- package/components/bal-tag-group.d.ts +11 -0
- package/components/bal-tag-group.js +29 -0
- package/components/bal-tag.d.ts +11 -0
- package/components/bal-tag.js +6 -0
- package/components/bal-tag2.js +83 -0
- package/components/bal-text.d.ts +11 -0
- package/components/bal-text.js +6 -0
- package/components/bal-text2.js +94 -0
- package/components/bal-textarea.d.ts +11 -0
- package/components/bal-textarea.js +172 -0
- package/components/bal-time-input.d.ts +11 -0
- package/components/bal-time-input.i18n.js +44 -0
- package/components/bal-time-input.js +216 -0
- package/components/bal-toast.d.ts +11 -0
- package/components/bal-toast.js +86 -0
- package/components/bal-tooltip.d.ts +11 -0
- package/components/bal-tooltip.js +290 -0
- package/components/bem.js +10 -0
- package/components/breakpoints.decorator.js +17 -0
- package/components/breakpoints.subject.js +251 -0
- package/components/browser.js +62 -0
- package/components/config.decorator.js +17 -0
- package/components/config.default.js +44 -0
- package/components/config.utils.js +101 -0
- package/components/contact.js +1633 -0
- package/components/date.js +8419 -0
- package/components/device.js +51 -0
- package/components/element-states.decorator.js +95 -0
- package/components/floating-ui.dom.esm.js +1454 -0
- package/components/focus-visible.js +72 -0
- package/components/focus.decorator.js +86 -0
- package/components/form-input.js +77 -0
- package/components/form.js +21 -0
- package/components/helpers.js +245 -0
- package/components/index.d.ts +35 -0
- package/components/index.esm.js +7373 -0
- package/components/index.js +179 -0
- package/components/index2.js +35 -0
- package/components/index3.js +592 -0
- package/components/initialize.js +281 -0
- package/components/keys.constant.js +19 -0
- package/components/listener.js +85 -0
- package/components/log.js +77 -0
- package/components/lottie_light_html.js +11692 -0
- package/components/mutation.decorator.js +119 -0
- package/components/overlays.js +76 -0
- package/components/package.json +9 -0
- package/components/resize.decorator.js +78 -0
- package/components/scroll.js +78 -0
- package/components/swipe.decorator.js +23 -0
- package/components/swipe.subject.js +57 -0
- package/components/tokens.esm.js +20 -0
- package/components/tslib.es6.js +27 -0
- package/components/utils.js +76 -0
- package/dist/cjs/_commonjsHelpers-68cdf74f.js +5 -0
- package/dist/cjs/app-globals-96827f05.js +7 -0
- package/dist/cjs/attributes-9f366716.js +43 -0
- package/dist/cjs/bal-accordion_4.cjs.entry.js +538 -0
- package/dist/cjs/bal-app.cjs.entry.js +74 -0
- package/dist/cjs/bal-badge.cjs.entry.js +33 -0
- package/dist/cjs/bal-button_2.cjs.entry.js +191 -0
- package/dist/cjs/bal-card_6.cjs.entry.js +106 -0
- package/dist/cjs/bal-carousel_2.cjs.entry.js +457 -0
- package/dist/cjs/bal-checkbox-button.cjs.entry.js +211 -0
- package/dist/cjs/bal-checkbox_2.cjs.entry.js +600 -0
- package/dist/cjs/bal-close.cjs.entry.js +56 -0
- package/dist/cjs/bal-close.i18n-56dddd35.js +36 -0
- package/dist/cjs/bal-content.cjs.entry.js +56 -0
- package/dist/cjs/bal-data_4.cjs.entry.js +96 -0
- package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +48 -0
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +1478 -0
- package/dist/cjs/bal-date.cjs.entry.js +313 -0
- package/dist/cjs/bal-datepicker.cjs.entry.js +1071 -0
- package/dist/cjs/bal-datepicker.i18n-8c3dd510.js +76 -0
- package/dist/cjs/bal-divider.cjs.entry.js +44 -0
- package/dist/cjs/bal-doc-app.cjs.entry.js +231 -0
- package/dist/cjs/bal-field_5.cjs.entry.js +315 -0
- package/dist/cjs/bal-file-upload.cjs.entry.js +366 -0
- package/dist/cjs/bal-file-upload.type-616d69d9.js +10 -0
- package/dist/cjs/bal-footer.cjs.entry.js +130 -0
- package/dist/cjs/bal-form-col_2.cjs.entry.js +43 -0
- package/dist/cjs/bal-form.cjs.entry.js +33 -0
- package/dist/cjs/bal-heading_2.cjs.entry.js +223 -0
- package/dist/cjs/bal-hint_3.cjs.entry.js +186 -0
- package/dist/cjs/bal-icon.cjs.entry.js +1035 -0
- package/dist/cjs/bal-input-group.cjs.entry.js +30 -0
- package/dist/cjs/bal-input-slider.cjs.entry.js +180 -0
- package/dist/cjs/bal-input-stepper.cjs.entry.js +1228 -0
- package/dist/cjs/bal-input-stepper.i18n-dbcd32ab.js +46 -0
- package/dist/cjs/bal-input.cjs.entry.js +474 -0
- package/dist/cjs/bal-label.cjs.entry.js +101 -0
- package/dist/cjs/bal-label.i18n-a25878af.js +36 -0
- package/dist/cjs/bal-list_8.cjs.entry.js +513 -0
- package/dist/cjs/bal-logo.animation-9704970d.js +3464 -0
- package/dist/cjs/bal-logo.cjs.entry.js +157 -0
- package/dist/cjs/bal-modal_3.cjs.entry.js +291 -0
- package/dist/cjs/bal-nav_8.cjs.entry.js +1012 -0
- package/dist/cjs/bal-navbar_5.cjs.entry.js +190 -0
- package/dist/cjs/bal-notices.cjs.entry.js +25 -0
- package/dist/cjs/bal-notification.cjs.entry.js +21 -0
- package/dist/cjs/bal-number-input.cjs.entry.js +479 -0
- package/dist/cjs/bal-pagination.cjs.entry.js +268 -0
- package/dist/cjs/bal-popover_2.cjs.entry.js +2144 -0
- package/dist/cjs/bal-popup.cjs.entry.js +629 -0
- package/dist/cjs/bal-progress-bar.cjs.entry.js +83 -0
- package/dist/cjs/bal-radio-button.cjs.entry.js +211 -0
- package/dist/cjs/bal-radio_2.cjs.entry.js +608 -0
- package/dist/cjs/bal-select_2.cjs.entry.js +789 -0
- package/dist/cjs/bal-shape.cjs.entry.js +64 -0
- package/dist/cjs/bal-sheet.cjs.entry.js +26 -0
- package/dist/cjs/bal-snackbar.cjs.entry.js +76 -0
- package/dist/cjs/bal-spinner.animation-a81cf10f.js +4535 -0
- package/dist/cjs/bal-spinner.cjs.entry.js +126 -0
- package/dist/cjs/bal-stack.cjs.entry.js +68 -0
- package/dist/cjs/bal-stage_6.cjs.entry.js +129 -0
- package/dist/cjs/bal-step-item.cjs.entry.js +66 -0
- package/dist/cjs/bal-step.util-3c009db9.js +7 -0
- package/dist/cjs/bal-steps.cjs.entry.js +251 -0
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +678 -0
- package/dist/cjs/bal-tab.util-d0785ef4.js +7 -0
- package/dist/cjs/bal-table.cjs.entry.js +26 -0
- package/dist/cjs/bal-tag_2.cjs.entry.js +62 -0
- package/dist/cjs/bal-textarea.cjs.entry.js +135 -0
- package/dist/cjs/bal-time-input.cjs.entry.js +174 -0
- package/dist/cjs/bal-time-input.i18n-b2bb9182.js +46 -0
- package/dist/cjs/bal-toast.cjs.entry.js +54 -0
- package/dist/cjs/bal-tooltip.cjs.entry.js +258 -0
- package/dist/cjs/bem-81bc6a2d.js +12 -0
- package/dist/cjs/breakpoints.decorator-517effdd.js +19 -0
- package/dist/cjs/breakpoints.subject-0a1809a1.js +257 -0
- package/dist/cjs/browser-1d542d0f.js +64 -0
- package/dist/cjs/config.decorator-b393a72f.js +19 -0
- package/dist/cjs/config.default-32725178.js +47 -0
- package/dist/cjs/config.utils-e4cd49d6.js +84 -0
- package/dist/cjs/contact-61b41246.js +1644 -0
- package/dist/cjs/date-df1d61a8.js +8485 -0
- package/dist/cjs/design-system-components.cjs.js +31 -0
- package/dist/cjs/device-9f97a845.js +54 -0
- package/dist/cjs/element-states.decorator-9ce5ff3b.js +98 -0
- package/dist/cjs/floating-ui.dom.esm-5dbdcff9.js +1461 -0
- package/dist/cjs/focus-visible-264bd9b8.js +76 -0
- package/dist/cjs/focus.decorator-afaf9ac4.js +88 -0
- package/dist/cjs/form-2279fb2f.js +24 -0
- package/dist/cjs/form-input-134c5116.js +91 -0
- package/dist/cjs/global-e99d827b.js +9 -0
- package/dist/cjs/helpers-2a8c8333.js +267 -0
- package/dist/cjs/icons.constant-7c82086a.js +58 -0
- package/dist/cjs/index-24d802b4.js +594 -0
- package/dist/cjs/index-e6a233be.js +37 -0
- package/dist/cjs/index-f7def455.js +2521 -0
- package/dist/cjs/index.cjs.js +250 -0
- package/dist/cjs/index.esm-4587dbf0.js +7401 -0
- package/dist/cjs/initialize-9c752efa.js +288 -0
- package/dist/cjs/keys.constant-b53da545.js +23 -0
- package/dist/cjs/listener-52d2e5fd.js +89 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/log-33398c2a.js +80 -0
- package/dist/cjs/lottie_light_html-cbfdf82e.js +11694 -0
- package/dist/cjs/mutation.decorator-8877b940.js +121 -0
- package/dist/cjs/overlays-3e4cf786.js +82 -0
- package/dist/cjs/resize.decorator-ae91ead2.js +80 -0
- package/dist/cjs/scroll-b839ffe1.js +80 -0
- package/dist/cjs/style-799e9253.js +27 -0
- package/dist/cjs/swipe.decorator-5206d283.js +25 -0
- package/dist/cjs/swipe.subject-4ec94271.js +59 -0
- package/dist/cjs/tokens.esm-8d48a205.js +35 -0
- package/dist/cjs/tslib.es6-a680968e.js +30 -0
- package/dist/cjs/utils-9ea175af.js +87 -0
- package/dist/collection/collection-manifest.json +403 -0
- package/dist/collection/components/bal-accordion/bal-accordion-details/bal-accordion-details.css +1 -0
- package/dist/collection/components/bal-accordion/bal-accordion-details/bal-accordion-details.js +149 -0
- package/dist/collection/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.css +1 -0
- package/dist/collection/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.js +172 -0
- package/dist/collection/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.css +1 -0
- package/dist/collection/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.js +285 -0
- package/dist/collection/components/bal-accordion/bal-accordion.css +1 -0
- package/dist/collection/components/bal-accordion/bal-accordion.interfaces.js +4 -0
- package/dist/collection/components/bal-accordion/bal-accordion.js +626 -0
- package/dist/collection/components/bal-app/bal-app.css +1 -0
- package/dist/collection/components/bal-app/bal-app.interfaces.js +4 -0
- package/dist/collection/components/bal-app/bal-app.js +144 -0
- package/dist/collection/components/bal-badge/bal-badge.css +1 -0
- package/dist/collection/components/bal-badge/bal-badge.interfaces.js +4 -0
- package/dist/collection/components/bal-badge/bal-badge.js +122 -0
- package/dist/collection/components/bal-button/bal-button-group/bal-button-group.js +87 -0
- package/dist/collection/components/bal-button/bal-button.css +1 -0
- package/dist/collection/components/bal-button/bal-button.interfaces.js +4 -0
- package/dist/collection/components/bal-button/bal-button.js +714 -0
- package/dist/collection/components/bal-card/bal-card-actions/bal-card-actions.js +37 -0
- package/dist/collection/components/bal-card/bal-card-button/bal-card-button.js +155 -0
- package/dist/collection/components/bal-card/bal-card-content/bal-card-content.js +7 -0
- package/dist/collection/components/bal-card/bal-card-subtitle/bal-card-subtitle.js +75 -0
- package/dist/collection/components/bal-card/bal-card-title/bal-card-title.js +32 -0
- package/dist/collection/components/bal-card/bal-card.css +1 -0
- package/dist/collection/components/bal-card/bal-card.interfaces.js +4 -0
- package/dist/collection/components/bal-card/bal-card.js +218 -0
- package/dist/collection/components/bal-carousel/bal-carousel-item/bal-carousel-item.js +345 -0
- package/dist/collection/components/bal-carousel/bal-carousel.css +1 -0
- package/dist/collection/components/bal-carousel/bal-carousel.i18n.js +42 -0
- package/dist/collection/components/bal-carousel/bal-carousel.interfaces.js +4 -0
- package/dist/collection/components/bal-carousel/bal-carousel.js +634 -0
- package/dist/collection/components/bal-carousel/bal-carousel.type.js +1 -0
- package/dist/collection/components/bal-carousel/controls/dot-control.js +17 -0
- package/dist/collection/components/bal-carousel/controls/large-control.js +8 -0
- package/dist/collection/components/bal-carousel/controls/small-control.js +8 -0
- package/dist/collection/components/bal-carousel/controls/tab-control.js +7 -0
- package/dist/collection/components/bal-checkbox/bal-checkbox-button/bal-checkbox-button.css +1 -0
- package/dist/collection/components/bal-checkbox/bal-checkbox-button/bal-checkbox-button.js +470 -0
- package/dist/collection/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.js +805 -0
- package/dist/collection/components/bal-checkbox/bal-checkbox.interfaces.js +4 -0
- package/dist/collection/components/bal-checkbox/bal-checkbox.js +843 -0
- package/dist/collection/components/bal-checkbox/bal-checkbox.type.js +1 -0
- package/dist/collection/components/bal-checkbox/radio-checkbox.css +1 -0
- package/dist/collection/components/bal-checkbox/utils/bal-checkbox.util.js +3 -0
- package/dist/collection/components/bal-close/bal-close.css +1 -0
- package/dist/collection/components/bal-close/bal-close.i18n.js +32 -0
- package/dist/collection/components/bal-close/bal-close.interfaces.js +4 -0
- package/dist/collection/components/bal-close/bal-close.js +134 -0
- package/dist/collection/components/bal-content/bal-content.css +1 -0
- package/dist/collection/components/bal-content/bal-content.interfaces.js +4 -0
- package/dist/collection/components/bal-content/bal-content.js +179 -0
- package/dist/collection/components/bal-data/bal-data-item/bal-data-item.js +53 -0
- package/dist/collection/components/bal-data/bal-data-label/bal-data-label.js +33 -0
- package/dist/collection/components/bal-data/bal-data-value/bal-data-value.js +145 -0
- package/dist/collection/components/bal-data/bal-data.css +1 -0
- package/dist/collection/components/bal-data/bal-data.interfaces.js +4 -0
- package/dist/collection/components/bal-data/bal-data.js +87 -0
- package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.css +1 -0
- package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.interfaces.js +4 -0
- package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.js +494 -0
- package/dist/collection/components/bal-date/bal-date-calendar/components/bal-date-calendar__gird.js +8 -0
- package/dist/collection/components/bal-date/bal-date-calendar/components/bal-date-calendar__list.js +14 -0
- package/dist/collection/components/bal-date/bal-date-calendar/components/bal-date-calendar__nav.js +13 -0
- package/dist/collection/components/bal-date/bal-date-calendar-cell/bal-date-calendar-cell.js +202 -0
- package/dist/collection/components/bal-date/bal-date.css +1 -0
- package/dist/collection/components/bal-date/bal-date.i18n.js +62 -0
- package/dist/collection/components/bal-date/bal-date.interfaces.js +4 -0
- package/dist/collection/components/bal-date/bal-date.js +1036 -0
- package/dist/collection/components/bal-date/utils/calendar.js +154 -0
- package/dist/collection/components/bal-date/utils/calendar.spec.js +304 -0
- package/dist/collection/components/bal-datepicker/bal-datepicker.css +1 -0
- package/dist/collection/components/bal-datepicker/bal-datepicker.i18n.js +72 -0
- package/dist/collection/components/bal-datepicker/bal-datepicker.interfaces.js +4 -0
- package/dist/collection/components/bal-datepicker/bal-datepicker.js +1240 -0
- package/dist/collection/components/bal-datepicker/bal-datepicker.type.js +1 -0
- package/dist/collection/components/bal-divider/bal-divider.css +1 -0
- package/dist/collection/components/bal-divider/bal-divider.interfaces.js +4 -0
- package/dist/collection/components/bal-divider/bal-divider.js +115 -0
- package/dist/collection/components/bal-field/bal-field-control/bal-field-control.js +115 -0
- package/dist/collection/components/bal-field/bal-field-hint/bal-field-hint.js +73 -0
- package/dist/collection/components/bal-field/bal-field-label/bal-field-label.i18n.js +32 -0
- package/dist/collection/components/bal-field/bal-field-label/bal-field-label.js +198 -0
- package/dist/collection/components/bal-field/bal-field-message/bal-field-message.js +166 -0
- package/dist/collection/components/bal-field/bal-field.css +1 -0
- package/dist/collection/components/bal-field/bal-field.interfaces.js +4 -0
- package/dist/collection/components/bal-field/bal-field.js +358 -0
- package/dist/collection/components/bal-file-upload/bal-file-upload.css +1 -0
- package/dist/collection/components/bal-file-upload/bal-file-upload.interfaces.js +15 -0
- package/dist/collection/components/bal-file-upload/bal-file-upload.js +800 -0
- package/dist/collection/components/bal-file-upload/bal-file-upload.type.js +8 -0
- package/dist/collection/components/bal-file-upload/components/file-list.js +10 -0
- package/dist/collection/components/bal-file-upload/test/file-validation.util.spec.js +102 -0
- package/dist/collection/components/bal-file-upload/test/file.mock.js +16 -0
- package/dist/collection/components/bal-file-upload/utils/file-list.util.js +17 -0
- package/dist/collection/components/bal-file-upload/utils/file-validation.util.js +46 -0
- package/dist/collection/components/bal-footer/bal-footer.css +1 -0
- package/dist/collection/components/bal-footer/bal-footer.js +223 -0
- package/dist/collection/components/bal-form/bal-form.js +87 -0
- package/dist/collection/components/bal-form-grid/bal-form-col/bal-form-col.js +49 -0
- package/dist/collection/components/bal-form-grid/bal-form-gird.interfaces.js +4 -0
- package/dist/collection/components/bal-form-grid/bal-form-grid.css +1 -0
- package/dist/collection/components/bal-form-grid/bal-form-grid.js +17 -0
- package/dist/collection/components/bal-heading/bal-heading.const.js +57 -0
- package/dist/collection/components/bal-heading/bal-heading.css +1 -0
- package/dist/collection/components/bal-heading/bal-heading.interfaces.js +4 -0
- package/dist/collection/components/bal-heading/bal-heading.js +297 -0
- package/dist/collection/components/bal-hint/bal-hint-text/bal-hint-text.js +12 -0
- package/dist/collection/components/bal-hint/bal-hint-title/bal-hint-title.js +12 -0
- package/dist/collection/components/bal-hint/bal-hint.css +1 -0
- package/dist/collection/components/bal-hint/bal-hint.js +278 -0
- package/dist/collection/components/bal-icon/bal-icon.css +1 -0
- package/dist/collection/components/bal-icon/bal-icon.interfaces.js +4 -0
- package/dist/collection/components/bal-icon/bal-icon.js +400 -0
- package/dist/collection/components/bal-input/bal-input-date/bal-input-date.css +1 -0
- package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +637 -0
- package/dist/collection/components/bal-input/bal-input-util.js +125 -0
- package/dist/collection/components/bal-input/bal-input.css +1 -0
- package/dist/collection/components/bal-input/bal-input.interfaces.js +4 -0
- package/dist/collection/components/bal-input/bal-input.js +1101 -0
- package/dist/collection/components/bal-input/test/bal-input-util.spec.js +141 -0
- package/dist/collection/components/bal-input-group/bal-input-group.css +1 -0
- package/dist/collection/components/bal-input-group/bal-input-group.js +87 -0
- package/dist/collection/components/bal-input-slider/bal-input-slider.css +1 -0
- package/dist/collection/components/bal-input-slider/bal-input-slider.interfaces.js +4 -0
- package/dist/collection/components/bal-input-slider/bal-input-slider.js +608 -0
- package/dist/collection/components/bal-input-stepper/bal-input-stepper.css +1 -0
- package/dist/collection/components/bal-input-stepper/bal-input-stepper.i18n.js +42 -0
- package/dist/collection/components/bal-input-stepper/bal-input-stepper.interfaces.js +4 -0
- package/dist/collection/components/bal-input-stepper/bal-input-stepper.js +586 -0
- package/dist/collection/components/bal-label/bal-label.css +1 -0
- package/dist/collection/components/bal-label/bal-label.i18n.js +32 -0
- package/dist/collection/components/bal-label/bal-label.interfaces.js +4 -0
- package/dist/collection/components/bal-label/bal-label.js +401 -0
- package/dist/collection/components/bal-list/bal-list-item/bal-list-item.js +593 -0
- package/dist/collection/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.js +167 -0
- package/dist/collection/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.js +119 -0
- package/dist/collection/components/bal-list/bal-list-item-content/bal-list-item-content.js +34 -0
- package/dist/collection/components/bal-list/bal-list-item-icon/bal-list-item-icon.js +35 -0
- package/dist/collection/components/bal-list/bal-list-item-subtitle/bal-list-item-subtitle.js +7 -0
- package/dist/collection/components/bal-list/bal-list-item-title/bal-list-item-title.js +60 -0
- package/dist/collection/components/bal-list/bal-list.css +1 -0
- package/dist/collection/components/bal-list/bal-list.interfaces.js +4 -0
- package/dist/collection/components/bal-list/bal-list.js +148 -0
- package/dist/collection/components/bal-logo/bal-logo.animation.js +11 -0
- package/dist/collection/components/bal-logo/bal-logo.css +1 -0
- package/dist/collection/components/bal-logo/bal-logo.data.js +3448 -0
- package/dist/collection/components/bal-logo/bal-logo.interfaces.js +4 -0
- package/dist/collection/components/bal-logo/bal-logo.js +226 -0
- package/dist/collection/components/bal-modal/bal-modal-body/bal-modal-body.js +7 -0
- package/dist/collection/components/bal-modal/bal-modal-header/bal-modal-header.js +19 -0
- package/dist/collection/components/bal-modal/bal-modal.controller.js +48 -0
- package/dist/collection/components/bal-modal/bal-modal.css +1 -0
- package/dist/collection/components/bal-modal/bal-modal.interfaces.js +4 -0
- package/dist/collection/components/bal-modal/bal-modal.js +704 -0
- package/dist/collection/components/bal-modal/bal-modal.type.js +1 -0
- package/dist/collection/components/bal-nav/bal-nav-link/bal-nav-link.css +1 -0
- package/dist/collection/components/bal-nav/bal-nav-link/bal-nav-link.interfaces.js +4 -0
- package/dist/collection/components/bal-nav/bal-nav-link/bal-nav-link.js +155 -0
- package/dist/collection/components/bal-nav/bal-nav-link-grid/bal-nav-link-grid.css +1 -0
- package/dist/collection/components/bal-nav/bal-nav-link-grid/bal-nav-link-grid.js +34 -0
- package/dist/collection/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.css +1 -0
- package/dist/collection/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.interfaces.js +4 -0
- package/dist/collection/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.js +66 -0
- package/dist/collection/components/bal-nav/bal-nav-link-group/bal-nav-link-group.css +1 -0
- package/dist/collection/components/bal-nav/bal-nav-link-group/bal-nav-link-group.interfaces.js +4 -0
- package/dist/collection/components/bal-nav/bal-nav-link-group/bal-nav-link-group.js +65 -0
- package/dist/collection/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.css +1 -0
- package/dist/collection/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.interfaces.js +4 -0
- package/dist/collection/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.js +105 -0
- package/dist/collection/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.css +1 -0
- package/dist/collection/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.interfaces.js +4 -0
- package/dist/collection/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.js +89 -0
- package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.css +1 -0
- package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.interfaces.js +4 -0
- package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.js +191 -0
- package/dist/collection/components/bal-nav/bal-nav.css +1 -0
- package/dist/collection/components/bal-nav/bal-nav.i18n.js +42 -0
- package/dist/collection/components/bal-nav/bal-nav.interfaces.js +4 -0
- package/dist/collection/components/bal-nav/bal-nav.js +509 -0
- package/dist/collection/components/bal-nav/bal-nav.types.js +1 -0
- package/dist/collection/components/bal-nav/components/accordion-button.js +6 -0
- package/dist/collection/components/bal-nav/components/overview-link.js +9 -0
- package/dist/collection/components/bal-nav/components/section-list.js +15 -0
- package/dist/collection/components/bal-nav/components/service-list.js +15 -0
- package/dist/collection/components/bal-nav/models/bal-nav-link-item.js +53 -0
- package/dist/collection/components/bal-nav/models/bal-nav-menu-link-item.js +42 -0
- package/dist/collection/components/bal-nav/models/bal-nav-meta-button.js +81 -0
- package/dist/collection/components/bal-nav/models/bal-nav-meta-link-item.js +38 -0
- package/dist/collection/components/bal-nav/models/bal-nav-section-link-item.js +28 -0
- package/dist/collection/components/bal-nav/models/bal-nav-service-link-item.js +26 -0
- package/dist/collection/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.js +285 -0
- package/dist/collection/components/bal-navbar/bal-navbar-menu/bal-navbar-menu.js +109 -0
- package/dist/collection/components/bal-navbar/bal-navbar-menu-end/bal-navbar-menu-end.js +42 -0
- package/dist/collection/components/bal-navbar/bal-navbar-menu-start/bal-navbar-menu-start.js +42 -0
- package/dist/collection/components/bal-navbar/bal-navbar.css +1 -0
- package/dist/collection/components/bal-navbar/bal-navbar.interfaces.js +4 -0
- package/dist/collection/components/bal-navbar/bal-navbar.js +110 -0
- package/dist/collection/components/bal-notices/bal-notices.css +1 -0
- package/dist/collection/components/bal-notices/bal-notices.js +49 -0
- package/dist/collection/components/bal-notification/bal-notification.css +1 -0
- package/dist/collection/components/bal-notification/bal-notification.interfaces.js +4 -0
- package/dist/collection/components/bal-notification/bal-notification.js +47 -0
- package/dist/collection/components/bal-number-input/bal-number-input.css +1 -0
- package/dist/collection/components/bal-number-input/bal-number-input.interfaces.js +4 -0
- package/dist/collection/components/bal-number-input/bal-number-input.js +786 -0
- package/dist/collection/components/bal-number-input/bal-number-input.utils.js +80 -0
- package/dist/collection/components/bal-number-input/bal-number-input.utils.spec.js +320 -0
- package/dist/collection/components/bal-pagination/bal-pagination.css +1 -0
- package/dist/collection/components/bal-pagination/bal-pagination.i18n.js +42 -0
- package/dist/collection/components/bal-pagination/bal-pagination.interfaces.js +4 -0
- package/dist/collection/components/bal-pagination/bal-pagination.js +420 -0
- package/dist/collection/components/bal-pagination/bal-pagination.spec.js +349 -0
- package/dist/collection/components/bal-pagination/bal-pagination.util.js +77 -0
- package/dist/collection/components/bal-popover/bal-popover-content/bal-popover-content.js +247 -0
- package/dist/collection/components/bal-popover/bal-popover.css +1 -0
- package/dist/collection/components/bal-popover/bal-popover.interfaces.js +4 -0
- package/dist/collection/components/bal-popover/bal-popover.js +704 -0
- package/dist/collection/components/bal-popup/bal-popup.css +1 -0
- package/dist/collection/components/bal-popup/bal-popup.interfaces.js +4 -0
- package/dist/collection/components/bal-popup/bal-popup.js +827 -0
- package/dist/collection/components/bal-popup/variants/abstract-variant.renderer.js +49 -0
- package/dist/collection/components/bal-popup/variants/drawer-variant.renderer.js +36 -0
- package/dist/collection/components/bal-popup/variants/fullscreen-variant.renderer.js +35 -0
- package/dist/collection/components/bal-popup/variants/index.js +4 -0
- package/dist/collection/components/bal-popup/variants/popover-variant.renderer.js +132 -0
- package/dist/collection/components/bal-popup/variants/variant.interfaces.js +1 -0
- package/dist/collection/components/bal-popup/variants/variant.renderer.js +31 -0
- package/dist/collection/components/bal-progress-bar/bal-progress-bar.css +1 -0
- package/dist/collection/components/bal-progress-bar/bal-progress-bar.interfaces.js +4 -0
- package/dist/collection/components/bal-progress-bar/bal-progress-bar.js +149 -0
- package/dist/collection/components/bal-radio/bal-radio-button/bal-radio-button.css +1 -0
- package/dist/collection/components/bal-radio/bal-radio-button/bal-radio-button.js +467 -0
- package/dist/collection/components/bal-radio/bal-radio-group/bal-radio-group.js +828 -0
- package/dist/collection/components/bal-radio/bal-radio.interfaces.js +4 -0
- package/dist/collection/components/bal-radio/bal-radio.js +760 -0
- package/dist/collection/components/bal-radio/bal-radio.type.js +1 -0
- package/dist/collection/components/bal-radio/test/car.svg +15 -0
- package/dist/collection/components/bal-radio/utils/bal-radio.util.js +3 -0
- package/dist/collection/components/bal-select/bal-select-option/bal-select-option.js +102 -0
- package/dist/collection/components/bal-select/bal-select.css +1 -0
- package/dist/collection/components/bal-select/bal-select.interfaces.js +4 -0
- package/dist/collection/components/bal-select/bal-select.js +1462 -0
- package/dist/collection/components/bal-select/test/bal-select-utils.spec.js +99 -0
- package/dist/collection/components/bal-select/utils/bal-option.type.js +1 -0
- package/dist/collection/components/bal-select/utils/bal-option.util.js +11 -0
- package/dist/collection/components/bal-select/utils/utils.js +73 -0
- package/dist/collection/components/bal-select/utils/watch-options.js +19 -0
- package/dist/collection/components/bal-shape/bal-shape.css +1 -0
- package/dist/collection/components/bal-shape/bal-shape.interfaces.js +4 -0
- package/dist/collection/components/bal-shape/bal-shape.js +136 -0
- package/dist/collection/components/bal-sheet/bal-sheet.css +1 -0
- package/dist/collection/components/bal-sheet/bal-sheet.interfaces.js +4 -0
- package/dist/collection/components/bal-sheet/bal-sheet.js +52 -0
- package/dist/collection/components/bal-snackbar/bal-snackbar.controller.js +12 -0
- package/dist/collection/components/bal-snackbar/bal-snackbar.css +1 -0
- package/dist/collection/components/bal-snackbar/bal-snackbar.interfaces.js +4 -0
- package/dist/collection/components/bal-snackbar/bal-snackbar.js +358 -0
- package/dist/collection/components/bal-spinner/bal-spinner.animation.js +12 -0
- package/dist/collection/components/bal-spinner/bal-spinner.css +1 -0
- package/dist/collection/components/bal-spinner/bal-spinner.data.js +2585 -0
- package/dist/collection/components/bal-spinner/bal-spinner.js +202 -0
- package/dist/collection/components/bal-stack/bal-stack.css +1 -0
- package/dist/collection/components/bal-stack/bal-stack.interfaces.js +4 -0
- package/dist/collection/components/bal-stack/bal-stack.js +317 -0
- package/dist/collection/components/bal-stage/bal-stage-back-link/bal-stage-back-link.js +75 -0
- package/dist/collection/components/bal-stage/bal-stage-body/bal-stage-body.js +10 -0
- package/dist/collection/components/bal-stage/bal-stage-foot/bal-stage-foot.js +8 -0
- package/dist/collection/components/bal-stage/bal-stage-head/bal-stage-head.js +8 -0
- package/dist/collection/components/bal-stage/bal-stage-image/bal-stage-image.js +57 -0
- package/dist/collection/components/bal-stage/bal-stage.css +1 -0
- package/dist/collection/components/bal-stage/bal-stage.interfaces.js +4 -0
- package/dist/collection/components/bal-stage/bal-stage.js +192 -0
- package/dist/collection/components/bal-steps/bal-step-item/bal-step-item.js +322 -0
- package/dist/collection/components/bal-steps/bal-step.type.js +1 -0
- package/dist/collection/components/bal-steps/bal-step.util.js +3 -0
- package/dist/collection/components/bal-steps/bal-steps.css +1 -0
- package/dist/collection/components/bal-steps/bal-steps.interfaces.js +4 -0
- package/dist/collection/components/bal-steps/bal-steps.js +391 -0
- package/dist/collection/components/bal-steps/components/step-button.js +11 -0
- package/dist/collection/components/bal-steps/components/step-icon.js +6 -0
- package/dist/collection/components/bal-steps/components/step-label.js +6 -0
- package/dist/collection/components/bal-table/bal-table.css +1 -0
- package/dist/collection/components/bal-table/bal-table.js +47 -0
- package/dist/collection/components/bal-tabs/bal-tab-item/bal-tab-item.js +325 -0
- package/dist/collection/components/bal-tabs/bal-tab.type.js +1 -0
- package/dist/collection/components/bal-tabs/bal-tab.util.js +3 -0
- package/dist/collection/components/bal-tabs/bal-tabs.css +1 -0
- package/dist/collection/components/bal-tabs/bal-tabs.interfaces.js +4 -0
- package/dist/collection/components/bal-tabs/bal-tabs.js +1108 -0
- package/dist/collection/components/bal-tabs/components/tab-button.js +27 -0
- package/dist/collection/components/bal-tabs/components/tab-icon.js +10 -0
- package/dist/collection/components/bal-tabs/components/tab-label.js +6 -0
- package/dist/collection/components/bal-tabs/components/tab-nav.js +11 -0
- package/dist/collection/components/bal-tabs/components/tab-select.js +21 -0
- package/dist/collection/components/bal-tag/bal-tag-group/bal-tag-group.js +7 -0
- package/dist/collection/components/bal-tag/bal-tag.css +1 -0
- package/dist/collection/components/bal-tag/bal-tag.interfaces.js +4 -0
- package/dist/collection/components/bal-tag/bal-tag.js +239 -0
- package/dist/collection/components/bal-text/bal-text.css +1 -0
- package/dist/collection/components/bal-text/bal-text.interfaces.js +4 -0
- package/dist/collection/components/bal-text/bal-text.js +328 -0
- package/dist/collection/components/bal-textarea/bal-textarea.css +1 -0
- package/dist/collection/components/bal-textarea/bal-textarea.interfaces.js +4 -0
- package/dist/collection/components/bal-textarea/bal-textarea.js +675 -0
- package/dist/collection/components/bal-time-input/bal-time-input.css +1 -0
- package/dist/collection/components/bal-time-input/bal-time-input.i18n.js +42 -0
- package/dist/collection/components/bal-time-input/bal-time-input.interfaces.js +4 -0
- package/dist/collection/components/bal-time-input/bal-time-input.js +580 -0
- package/dist/collection/components/bal-time-input/bal-time-input.util.js +19 -0
- package/dist/collection/components/bal-time-input/test/bal-time-input.util.spec.js +27 -0
- package/dist/collection/components/bal-toast/bal-toast.controller.js +12 -0
- package/dist/collection/components/bal-toast/bal-toast.css +1 -0
- package/dist/collection/components/bal-toast/bal-toast.interfaces.js +4 -0
- package/dist/collection/components/bal-toast/bal-toast.js +199 -0
- package/dist/collection/components/bal-tooltip/bal-tooltip.css +1 -0
- package/dist/collection/components/bal-tooltip/bal-tooltip.interfaces.js +4 -0
- package/dist/collection/components/bal-tooltip/bal-tooltip.js +439 -0
- package/dist/collection/components/bal-tooltip/bal-tooltip.util.js +37 -0
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +229 -0
- package/dist/collection/global.js +4 -0
- package/dist/collection/index.js +53 -0
- package/dist/collection/initialize.js +20 -0
- package/dist/collection/utils/attributes.js +38 -0
- package/dist/collection/utils/bem.js +8 -0
- package/dist/collection/utils/breakpoints/breakpoints.const.js +9 -0
- package/dist/collection/utils/breakpoints/breakpoints.decorator.js +14 -0
- package/dist/collection/utils/breakpoints/breakpoints.interfaces.js +1 -0
- package/dist/collection/utils/breakpoints/breakpoints.js +92 -0
- package/dist/collection/utils/breakpoints/breakpoints.map.js +38 -0
- package/dist/collection/utils/breakpoints/breakpoints.subject.js +35 -0
- package/dist/collection/utils/breakpoints/index.js +4 -0
- package/dist/collection/utils/browser.js +60 -0
- package/dist/collection/utils/config/config.const.js +1 -0
- package/dist/collection/utils/config/config.decorator.js +14 -0
- package/dist/collection/utils/config/config.default.js +41 -0
- package/dist/collection/utils/config/config.js +134 -0
- package/dist/collection/utils/config/config.types.js +1 -0
- package/dist/collection/utils/config/config.utils.js +69 -0
- package/dist/collection/utils/config/index.js +7 -0
- package/dist/collection/utils/config/initialize.js +11 -0
- package/dist/collection/utils/config/observable/observer.js +1 -0
- package/dist/collection/utils/config/observable/subject.js +1 -0
- package/dist/collection/utils/constants/icons.constant.js +28 -0
- package/dist/collection/utils/constants/keys.constant.js +17 -0
- package/dist/collection/utils/constants/version.constant.js +2 -0
- package/dist/collection/utils/css-classes.js +15 -0
- package/dist/collection/utils/date/date.js +111 -0
- package/dist/collection/utils/date/date.spec.js +132 -0
- package/dist/collection/utils/date/index.js +1 -0
- package/dist/collection/utils/device.js +48 -0
- package/dist/collection/utils/element-states/element-states.decorator.js +20 -0
- package/dist/collection/utils/element-states/element-states.interfaces.js +1 -0
- package/dist/collection/utils/element-states/element-states.listener.js +52 -0
- package/dist/collection/utils/element-states/element-states.subject.js +21 -0
- package/dist/collection/utils/element-states/index.js +2 -0
- package/dist/collection/utils/focus/focus.decorator.js +20 -0
- package/dist/collection/utils/focus/focus.interfaces.js +1 -0
- package/dist/collection/utils/focus/focus.listener.js +34 -0
- package/dist/collection/utils/focus/focus.subject.js +30 -0
- package/dist/collection/utils/focus/index.js +2 -0
- package/dist/collection/utils/focus-visible.js +70 -0
- package/dist/collection/utils/form-input.js +74 -0
- package/dist/collection/utils/form.js +19 -0
- package/dist/collection/utils/framework-delegate.js +31 -0
- package/dist/collection/utils/helpers.js +252 -0
- package/dist/collection/utils/keyboard/index.js +2 -0
- package/dist/collection/utils/keyboard/keyboard.decorator.js +20 -0
- package/dist/collection/utils/keyboard/keyboard.interfaces.js +1 -0
- package/dist/collection/utils/keyboard/keyboard.listener.js +31 -0
- package/dist/collection/utils/keyboard/keyboard.subject.js +21 -0
- package/dist/collection/utils/legacy.js +32 -0
- package/dist/collection/utils/log.js +74 -0
- package/dist/collection/utils/mask/__test__/mask-component.mock.js +18 -0
- package/dist/collection/utils/mask/__test__/mask-context.mocks.js +6 -0
- package/dist/collection/utils/mask/__test__/mask.mock.js +16 -0
- package/dist/collection/utils/mask/blocks/index.js +3 -0
- package/dist/collection/utils/mask/blocks/mask-block-interfaces.js +1 -0
- package/dist/collection/utils/mask/blocks/mask-block-list.js +85 -0
- package/dist/collection/utils/mask/blocks/mask-block-list.spec.js +73 -0
- package/dist/collection/utils/mask/blocks/mask-block.js +59 -0
- package/dist/collection/utils/mask/blocks/mask-blocks.spec.js +48 -0
- package/dist/collection/utils/mask/component/index.js +2 -0
- package/dist/collection/utils/mask/component/mask-component-adapter.js +124 -0
- package/dist/collection/utils/mask/component/mask-component-adapter.spec.js +192 -0
- package/dist/collection/utils/mask/component/mask-component-interfaces.js +1 -0
- package/dist/collection/utils/mask/context/index.js +9 -0
- package/dist/collection/utils/mask/context/mask-clipboard-context.js +7 -0
- package/dist/collection/utils/mask/context/mask-context-interfaces.js +1 -0
- package/dist/collection/utils/mask/context/mask-context.js +60 -0
- package/dist/collection/utils/mask/context/mask-focus-context.js +3 -0
- package/dist/collection/utils/mask/context/mask-keyboard-context.js +58 -0
- package/dist/collection/utils/mask/context/mask-locale-context.js +6 -0
- package/dist/collection/utils/mask/context/mask-mouse-context.js +3 -0
- package/dist/collection/utils/mask/context/mask-position.js +65 -0
- package/dist/collection/utils/mask/context/mask-value-changed-context.js +12 -0
- package/dist/collection/utils/mask/index.js +5 -0
- package/dist/collection/utils/mask/mask-interfaces.js +1 -0
- package/dist/collection/utils/mask/mask.js +266 -0
- package/dist/collection/utils/mask/mask.spec.js +332 -0
- package/dist/collection/utils/mask/types/index.js +1 -0
- package/dist/collection/utils/mask/types/mask-date.js +120 -0
- package/dist/collection/utils/mask/types/mask-date.spec.js +48 -0
- package/dist/collection/utils/mutation/index.js +2 -0
- package/dist/collection/utils/mutation/mutation.decorator.js +20 -0
- package/dist/collection/utils/mutation/mutation.interfaces.js +1 -0
- package/dist/collection/utils/mutation/mutation.listener.js +64 -0
- package/dist/collection/utils/mutation/mutation.subject.js +34 -0
- package/dist/collection/utils/number.js +37 -0
- package/dist/collection/utils/orientation/index.js +3 -0
- package/dist/collection/utils/orientation/orientation.decorator.js +14 -0
- package/dist/collection/utils/orientation/orientation.interfaces.js +1 -0
- package/dist/collection/utils/orientation/orientation.subject.js +26 -0
- package/dist/collection/utils/overlays/notice.controller.js +91 -0
- package/dist/collection/utils/overlays/overlays.js +75 -0
- package/dist/collection/utils/resize/index.js +5 -0
- package/dist/collection/utils/resize/resize.decorator.js +20 -0
- package/dist/collection/utils/resize/resize.interfaces.js +1 -0
- package/dist/collection/utils/resize/resize.listener.js +37 -0
- package/dist/collection/utils/resize/resize.subject.js +19 -0
- package/dist/collection/utils/resize/window-resize.handler.js +50 -0
- package/dist/collection/utils/resize/window-resize.listener.js +27 -0
- package/dist/collection/utils/scroll.js +75 -0
- package/dist/collection/utils/style.js +22 -0
- package/dist/collection/utils/swipe/index.js +3 -0
- package/dist/collection/utils/swipe/swipe.decorator.js +20 -0
- package/dist/collection/utils/swipe/swipe.interfaces.js +1 -0
- package/dist/collection/utils/swipe/swipe.listener.js +30 -0
- package/dist/collection/utils/swipe/swipe.subject.js +25 -0
- package/dist/collection/utils/types/listener.js +27 -0
- package/dist/collection/utils/types/signal.js +55 -0
- package/dist/design-system-components/design-system-components.esm.js +1 -0
- package/dist/design-system-components/design-system-components.js +127 -0
- package/dist/design-system-components/index.esm.js +1 -0
- package/dist/design-system-components/p-00fb8b0ce4.entry.js +1 -0
- package/dist/design-system-components/p-014286df.system.js +1 -0
- package/dist/design-system-components/p-0177e3a0.system.js +1 -0
- package/dist/design-system-components/p-01ebb73de9.entry.js +1 -0
- package/dist/design-system-components/p-023dec1a0f.system.entry.js +1 -0
- package/dist/design-system-components/p-02582dc6c8.entry.js +1 -0
- package/dist/design-system-components/p-02efa13c5d.system.entry.js +1 -0
- package/dist/design-system-components/p-0503365a9d.system.entry.js +1 -0
- package/dist/design-system-components/p-051f8a1a.system.js +1 -0
- package/dist/design-system-components/p-056b22a7.system.js +1 -0
- package/dist/design-system-components/p-0619ca6d6e.system.entry.js +1 -0
- package/dist/design-system-components/p-06ecf846.js +1 -0
- package/dist/design-system-components/p-0905f644a5.entry.js +1 -0
- package/dist/design-system-components/p-09ab29d6.js +1 -0
- package/dist/design-system-components/p-0b1dc33bc5.entry.js +1 -0
- package/dist/design-system-components/p-0e361394.js +1 -0
- package/dist/design-system-components/p-10351b73.js +1 -0
- package/dist/design-system-components/p-116b65a6.system.js +1 -0
- package/dist/design-system-components/p-11f970ba.js +1 -0
- package/dist/design-system-components/p-12786937.js +1 -0
- package/dist/design-system-components/p-1331ad69af.system.entry.js +1 -0
- package/dist/design-system-components/p-140ad639.system.js +1 -0
- package/dist/design-system-components/p-1459724489.entry.js +1 -0
- package/dist/design-system-components/p-145d5c4e.system.js +1 -0
- package/dist/design-system-components/p-14d0c5f3.system.js +1 -0
- package/dist/design-system-components/p-1920d4af.js +1 -0
- package/dist/design-system-components/p-1965e3c55a.system.entry.js +1 -0
- package/dist/design-system-components/p-1b76afbf.js +1 -0
- package/dist/design-system-components/p-1c0c269e09.entry.js +1 -0
- package/dist/design-system-components/p-210cd438.system.js +9 -0
- package/dist/design-system-components/p-2229e98e.js +1 -0
- package/dist/design-system-components/p-222f9b7cad.entry.js +1 -0
- package/dist/design-system-components/p-23bdd8dc.system.js +1 -0
- package/dist/design-system-components/p-24f4f26ba8.entry.js +1 -0
- package/dist/design-system-components/p-2692caf4.js +1 -0
- package/dist/design-system-components/p-27dc8dc801.entry.js +1 -0
- package/dist/design-system-components/p-2880433e.system.js +1 -0
- package/dist/design-system-components/p-2a45560c35.system.entry.js +1 -0
- package/dist/design-system-components/p-2b08e144ad.entry.js +1 -0
- package/dist/design-system-components/p-2d25888851.system.entry.js +1 -0
- package/dist/design-system-components/p-2e8b4edc.system.js +1 -0
- package/dist/design-system-components/p-3214005a3e.system.entry.js +1 -0
- package/dist/design-system-components/p-333ef156.system.js +1 -0
- package/dist/design-system-components/p-3706ce477e.entry.js +1 -0
- package/dist/design-system-components/p-38c39be3d7.system.entry.js +1 -0
- package/dist/design-system-components/p-38c9284aca.system.entry.js +1 -0
- package/dist/design-system-components/p-39cbb5b4.system.js +1 -0
- package/dist/design-system-components/p-3c6eb5bf1c.system.entry.js +1 -0
- package/dist/design-system-components/p-3cb83cf9.system.js +1 -0
- package/dist/design-system-components/p-3ecc7d9a.system.js +1 -0
- package/dist/design-system-components/p-418049c807.entry.js +1 -0
- package/dist/design-system-components/p-432920d7.system.js +2 -0
- package/dist/design-system-components/p-432f31df29.system.entry.js +1 -0
- package/dist/design-system-components/p-43c9f5e9.js +15 -0
- package/dist/design-system-components/p-43e8bc5e.js +2 -0
- package/dist/design-system-components/p-4573c419.js +1 -0
- package/dist/design-system-components/p-45c70d860f.system.entry.js +1 -0
- package/dist/design-system-components/p-469767e905.system.entry.js +1 -0
- package/dist/design-system-components/p-47acd3cf3e.system.entry.js +1 -0
- package/dist/design-system-components/p-481050ba3f.entry.js +1 -0
- package/dist/design-system-components/p-49fe011f.js +1 -0
- package/dist/design-system-components/p-4c0bad70.system.js +1 -0
- package/dist/design-system-components/p-4c0bbb9b38.system.entry.js +1 -0
- package/dist/design-system-components/p-4cd4652f54.system.entry.js +1 -0
- package/dist/design-system-components/p-4f4df156.js +1 -0
- package/dist/design-system-components/p-4f9641493a.system.entry.js +1 -0
- package/dist/design-system-components/p-504651362c.entry.js +1 -0
- package/dist/design-system-components/p-50e9cf1f.system.js +1 -0
- package/dist/design-system-components/p-50f12cb1.system.js +1 -0
- package/dist/design-system-components/p-521dd66aee.entry.js +1 -0
- package/dist/design-system-components/p-53e09ecb.js +1 -0
- package/dist/design-system-components/p-54a0e0dffb.entry.js +1 -0
- package/dist/design-system-components/p-54a2103c69.system.entry.js +1 -0
- package/dist/design-system-components/p-571e54185d.system.entry.js +1 -0
- package/dist/design-system-components/p-5764e86651.entry.js +1 -0
- package/dist/design-system-components/p-58fc8247.js +1 -0
- package/dist/design-system-components/p-5ae8901747.system.entry.js +1 -0
- package/dist/design-system-components/p-5c50f2cef2.system.entry.js +1 -0
- package/dist/design-system-components/p-66904dc1.js +1 -0
- package/dist/design-system-components/p-6913b916.system.js +1 -0
- package/dist/design-system-components/p-69e7c8d6.js +1 -0
- package/dist/design-system-components/p-6b45db53.system.js +1 -0
- package/dist/design-system-components/p-6d9437ffbc.system.entry.js +1 -0
- package/dist/design-system-components/p-6dbef894.system.js +15 -0
- package/dist/design-system-components/p-6e5745c8.system.js +1 -0
- package/dist/design-system-components/p-6e85c17f48.entry.js +1 -0
- package/dist/design-system-components/p-73581cf8da.system.entry.js +1 -0
- package/dist/design-system-components/p-74b03e35ee.system.entry.js +1 -0
- package/dist/design-system-components/p-787f9258.system.js +1 -0
- package/dist/design-system-components/p-79c2985964.system.entry.js +1 -0
- package/dist/design-system-components/p-7ab0701894.entry.js +1 -0
- package/dist/design-system-components/p-7ae44c17.js +1 -0
- package/dist/design-system-components/p-7bbef605f6.entry.js +1 -0
- package/dist/design-system-components/p-7e81ca1e68.system.entry.js +1 -0
- package/dist/design-system-components/p-7fa291836e.entry.js +1 -0
- package/dist/design-system-components/p-8062fa02.js +1 -0
- package/dist/design-system-components/p-8190374d11.system.entry.js +1 -0
- package/dist/design-system-components/p-81c2b431.system.js +1 -0
- package/dist/design-system-components/p-85995e5f62.system.entry.js +1 -0
- package/dist/design-system-components/p-88f18fbc.js +1 -0
- package/dist/design-system-components/p-8949aa8b.system.js +1 -0
- package/dist/design-system-components/p-8954495d.system.js +1 -0
- package/dist/design-system-components/p-8a2bab70.system.js +1 -0
- package/dist/design-system-components/p-8dc7ee30.js +1 -0
- package/dist/design-system-components/p-918fc22a64.entry.js +1 -0
- package/dist/design-system-components/p-922fd809.system.js +1 -0
- package/dist/design-system-components/p-923b9aa8a4.system.entry.js +1 -0
- package/dist/design-system-components/p-931979ce0f.system.entry.js +1 -0
- package/dist/design-system-components/p-943a57952b.entry.js +1 -0
- package/dist/design-system-components/p-94c2daea1c.entry.js +1 -0
- package/dist/design-system-components/p-96216bd1.js +1 -0
- package/dist/design-system-components/p-9775875176.system.entry.js +1 -0
- package/dist/design-system-components/p-99cfab9c.system.js +1 -0
- package/dist/design-system-components/p-9a3d9e17.js +1 -0
- package/dist/design-system-components/p-9a90c3203f.entry.js +1 -0
- package/dist/design-system-components/p-9b9c8ffc50.entry.js +1 -0
- package/dist/design-system-components/p-9c5c0a80d5.system.entry.js +1 -0
- package/dist/design-system-components/p-9d16afbe20.system.entry.js +1 -0
- package/dist/design-system-components/p-9fafb0dd64.system.entry.js +1 -0
- package/dist/design-system-components/p-a01f3206.system.js +1 -0
- package/dist/design-system-components/p-a0fe8d65.js +1 -0
- package/dist/design-system-components/p-a1817cd3.system.js +1 -0
- package/dist/design-system-components/p-a1f6e944.system.js +1 -0
- package/dist/design-system-components/p-a2e08fb63c.entry.js +1 -0
- package/dist/design-system-components/p-a566fc58c1.entry.js +1 -0
- package/dist/design-system-components/p-a5b064a2b7.system.entry.js +1 -0
- package/dist/design-system-components/p-a65354df.js +1 -0
- package/dist/design-system-components/p-a65bc5e2.js +1 -0
- package/dist/design-system-components/p-a6e7599e.js +1 -0
- package/dist/design-system-components/p-a705254c65.entry.js +1 -0
- package/dist/design-system-components/p-a7fc2da7.system.js +1 -0
- package/dist/design-system-components/p-a9070ffbcb.entry.js +1 -0
- package/dist/design-system-components/p-aafb6696.js +1 -0
- package/dist/design-system-components/p-ab2f2dac0b.entry.js +1 -0
- package/dist/design-system-components/p-acf222fd.js +1 -0
- package/dist/design-system-components/p-ad81b8ea.js +1 -0
- package/dist/design-system-components/p-ad9a7657.js +1 -0
- package/dist/design-system-components/p-adff9a327e.system.entry.js +1 -0
- package/dist/design-system-components/p-ae86d0a0.js +1 -0
- package/dist/design-system-components/p-ae9b85f1.system.js +1 -0
- package/dist/design-system-components/p-af6d973a1f.system.entry.js +1 -0
- package/dist/design-system-components/p-af7fd2bbfc.system.entry.js +1 -0
- package/dist/design-system-components/p-b316d3b582.entry.js +1 -0
- package/dist/design-system-components/p-b331f9f2ca.entry.js +1 -0
- package/dist/design-system-components/p-b345371778.system.entry.js +1 -0
- package/dist/design-system-components/p-b3f2c626.system.js +1 -0
- package/dist/design-system-components/p-b4607c3eec.system.entry.js +1 -0
- package/dist/design-system-components/p-b52ad8d5.system.js +1 -0
- package/dist/design-system-components/p-b6036a0000.entry.js +1 -0
- package/dist/design-system-components/p-b70d2aeb52.entry.js +1 -0
- package/dist/design-system-components/p-b77e3348.js +1 -0
- package/dist/design-system-components/p-b79d8942.system.js +1 -0
- package/dist/design-system-components/p-b80d9e4d.js +1 -0
- package/dist/design-system-components/p-b8a855baaf.entry.js +1 -0
- package/dist/design-system-components/p-ba46e30667.system.entry.js +1 -0
- package/dist/design-system-components/p-ba48864a3f.system.entry.js +1 -0
- package/dist/design-system-components/p-ba579059.system.js +1 -0
- package/dist/design-system-components/p-baf64616.system.js +1 -0
- package/dist/design-system-components/p-bafa7b4e.js +1 -0
- package/dist/design-system-components/p-bd712d6ba5.system.entry.js +1 -0
- package/dist/design-system-components/p-bfbc64f2.js +1 -0
- package/dist/design-system-components/p-c0a3d422.system.js +1 -0
- package/dist/design-system-components/p-c0c91eb1.js +1 -0
- package/dist/design-system-components/p-c21c278ae8.system.entry.js +1 -0
- package/dist/design-system-components/p-c2b22ebafb.entry.js +1 -0
- package/dist/design-system-components/p-c6ac2c70a1.entry.js +1 -0
- package/dist/design-system-components/p-c7e50c7bd5.system.entry.js +1 -0
- package/dist/design-system-components/p-c82fbacbce.system.entry.js +1 -0
- package/dist/design-system-components/p-c8875d92.js +1 -0
- package/dist/design-system-components/p-c963239926.system.entry.js +1 -0
- package/dist/design-system-components/p-ca119357.js +1 -0
- package/dist/design-system-components/p-cab2f10b36.entry.js +1 -0
- package/dist/design-system-components/p-cb5c4edf15.system.entry.js +1 -0
- package/dist/design-system-components/p-ce37dba1.js +1 -0
- package/dist/design-system-components/p-ce4f5a6a.js +1 -0
- package/dist/design-system-components/p-cfc54b97e2.system.entry.js +1 -0
- package/dist/design-system-components/p-d0537382.system.js +1 -0
- package/dist/design-system-components/p-d25a27214a.entry.js +1 -0
- package/dist/design-system-components/p-d2ee9b0a.system.js +1 -0
- package/dist/design-system-components/p-d3187c0b5b.entry.js +1 -0
- package/dist/design-system-components/p-d4196f46a8.entry.js +1 -0
- package/dist/design-system-components/p-d4bb91f0e9.entry.js +1 -0
- package/dist/design-system-components/p-d5114e1651.entry.js +1 -0
- package/dist/design-system-components/p-d669aabb6f.entry.js +1 -0
- package/dist/design-system-components/p-da76db9841.entry.js +1 -0
- package/dist/design-system-components/p-db0895e2.system.js +1 -0
- package/dist/design-system-components/p-db72afae43.entry.js +1 -0
- package/dist/design-system-components/p-dbdc311044.entry.js +1 -0
- package/dist/design-system-components/p-dbe4005195.system.entry.js +1 -0
- package/dist/design-system-components/p-dd5e13d1.js +1 -0
- package/dist/design-system-components/p-deda895cd6.entry.js +1 -0
- package/dist/design-system-components/p-e0248dd3.js +1 -0
- package/dist/design-system-components/p-e0bf7a6bdf.entry.js +1 -0
- package/dist/design-system-components/p-e2eb9a9926.entry.js +1 -0
- package/dist/design-system-components/p-e345f985b5.entry.js +1 -0
- package/dist/design-system-components/p-e581de20.js +1 -0
- package/dist/design-system-components/p-e61fa225.js +1 -0
- package/dist/design-system-components/p-e7d72d7c.system.js +1 -0
- package/dist/design-system-components/p-e8d90b5e.js +1 -0
- package/dist/design-system-components/p-e8fccb5920.entry.js +1 -0
- package/dist/design-system-components/p-ea7eaa01cb.entry.js +1 -0
- package/dist/design-system-components/p-ec1efe3d.js +1 -0
- package/dist/design-system-components/p-ec9a7cf5.system.js +1 -0
- package/dist/design-system-components/p-ecebb37bcb.system.entry.js +1 -0
- package/dist/design-system-components/p-edf150cef9.system.entry.js +1 -0
- package/dist/design-system-components/p-ee64e1ef94.system.entry.js +1 -0
- package/dist/design-system-components/p-eecefb0a.system.js +1 -0
- package/dist/design-system-components/p-f029750ba3.system.entry.js +1 -0
- package/dist/design-system-components/p-f072181b87.system.entry.js +1 -0
- package/dist/design-system-components/p-f07d4d4027.system.entry.js +1 -0
- package/dist/design-system-components/p-f101d07e3d.entry.js +1 -0
- package/dist/design-system-components/p-f2338ace59.system.entry.js +1 -0
- package/dist/design-system-components/p-f233fe25.system.js +1 -0
- package/dist/design-system-components/p-f26f1cacfd.system.entry.js +1 -0
- package/dist/design-system-components/p-f2ab8f9a.system.js +1 -0
- package/dist/design-system-components/p-f385e205.js +1 -0
- package/dist/design-system-components/p-f3f5ce4f.js +1 -0
- package/dist/design-system-components/p-f685fbb1d8.entry.js +1 -0
- package/dist/design-system-components/p-f75761207d.entry.js +1 -0
- package/dist/design-system-components/p-f8c5e9e7.system.js +1 -0
- package/dist/design-system-components/p-fc586c6a.system.js +1 -0
- package/dist/design-system-components/p-fe76780d.system.js +1 -0
- package/dist/design-system-components/p-fea0ec3579.entry.js +1 -0
- package/dist/design-system-components/p-ff50d1c870.entry.js +1 -0
- package/dist/esm/_commonjsHelpers-1c8beb5f.js +3 -0
- package/dist/esm/app-globals-46c15307.js +5 -0
- package/dist/esm/attributes-4fa7040f.js +40 -0
- package/dist/esm/bal-accordion_4.entry.js +531 -0
- package/dist/esm/bal-app.entry.js +70 -0
- package/dist/esm/bal-badge.entry.js +29 -0
- package/dist/esm/bal-button_2.entry.js +186 -0
- package/dist/esm/bal-card_6.entry.js +97 -0
- package/dist/esm/bal-carousel_2.entry.js +452 -0
- package/dist/esm/bal-checkbox-button.entry.js +207 -0
- package/dist/esm/bal-checkbox_2.entry.js +595 -0
- package/dist/esm/bal-close.entry.js +52 -0
- package/dist/esm/bal-close.i18n-f2daa707.js +34 -0
- package/dist/esm/bal-content.entry.js +52 -0
- package/dist/esm/bal-data_4.entry.js +89 -0
- package/dist/esm/bal-date-calendar-cell.entry.js +44 -0
- package/dist/esm/bal-date-calendar_2.entry.js +1473 -0
- package/dist/esm/bal-date.entry.js +309 -0
- package/dist/esm/bal-datepicker.entry.js +1067 -0
- package/dist/esm/bal-datepicker.i18n-63a3cb67.js +74 -0
- package/dist/esm/bal-divider.entry.js +40 -0
- package/dist/esm/bal-doc-app.entry.js +227 -0
- package/dist/esm/bal-field_5.entry.js +307 -0
- package/dist/esm/bal-file-upload.entry.js +362 -0
- package/dist/esm/bal-file-upload.type-2a70f4ec.js +10 -0
- package/dist/esm/bal-footer.entry.js +126 -0
- package/dist/esm/bal-form-col_2.entry.js +38 -0
- package/dist/esm/bal-form.entry.js +29 -0
- package/dist/esm/bal-heading_2.entry.js +218 -0
- package/dist/esm/bal-hint_3.entry.js +180 -0
- package/dist/esm/bal-icon.entry.js +1031 -0
- package/dist/esm/bal-input-group.entry.js +26 -0
- package/dist/esm/bal-input-slider.entry.js +176 -0
- package/dist/esm/bal-input-stepper.entry.js +1224 -0
- package/dist/esm/bal-input-stepper.i18n-aaa4a009.js +44 -0
- package/dist/esm/bal-input.entry.js +470 -0
- package/dist/esm/bal-label.entry.js +97 -0
- package/dist/esm/bal-label.i18n-4212be56.js +34 -0
- package/dist/esm/bal-list_8.entry.js +502 -0
- package/dist/esm/bal-logo.animation-560601c6.js +3462 -0
- package/dist/esm/bal-logo.entry.js +153 -0
- package/dist/esm/bal-modal_3.entry.js +285 -0
- package/dist/esm/bal-nav_8.entry.js +1001 -0
- package/dist/esm/bal-navbar_5.entry.js +182 -0
- package/dist/esm/bal-notices.entry.js +21 -0
- package/dist/esm/bal-notification.entry.js +17 -0
- package/dist/esm/bal-number-input.entry.js +475 -0
- package/dist/esm/bal-pagination.entry.js +264 -0
- package/dist/esm/bal-popover_2.entry.js +2139 -0
- package/dist/esm/bal-popup.entry.js +625 -0
- package/dist/esm/bal-progress-bar.entry.js +79 -0
- package/dist/esm/bal-radio-button.entry.js +207 -0
- package/dist/esm/bal-radio_2.entry.js +603 -0
- package/dist/esm/bal-select_2.entry.js +784 -0
- package/dist/esm/bal-shape.entry.js +60 -0
- package/dist/esm/bal-sheet.entry.js +22 -0
- package/dist/esm/bal-snackbar.entry.js +72 -0
- package/dist/esm/bal-spinner.animation-81d4326e.js +4533 -0
- package/dist/esm/bal-spinner.entry.js +122 -0
- package/dist/esm/bal-stack.entry.js +64 -0
- package/dist/esm/bal-stage_6.entry.js +120 -0
- package/dist/esm/bal-step-item.entry.js +62 -0
- package/dist/esm/bal-step.util-3905ad56.js +5 -0
- package/dist/esm/bal-steps.entry.js +247 -0
- package/dist/esm/bal-tab-item_2.entry.js +673 -0
- package/dist/esm/bal-tab.util-933315fe.js +5 -0
- package/dist/esm/bal-table.entry.js +22 -0
- package/dist/esm/bal-tag_2.entry.js +57 -0
- package/dist/esm/bal-textarea.entry.js +131 -0
- package/dist/esm/bal-time-input.entry.js +170 -0
- package/dist/esm/bal-time-input.i18n-157c7092.js +44 -0
- package/dist/esm/bal-toast.entry.js +50 -0
- package/dist/esm/bal-tooltip.entry.js +254 -0
- package/dist/esm/bem-8c7d2eb0.js +10 -0
- package/dist/esm/breakpoints.decorator-4a749810.js +17 -0
- package/dist/esm/breakpoints.subject-7ff7a13a.js +251 -0
- package/dist/esm/browser-a8073d92.js +62 -0
- package/dist/esm/config.decorator-d18abfe1.js +17 -0
- package/dist/esm/config.default-79f94bf7.js +44 -0
- package/dist/esm/config.utils-6ac6c9bd.js +72 -0
- package/dist/esm/contact-91a44c8c.js +1633 -0
- package/dist/esm/date-db6afc26.js +8482 -0
- package/dist/esm/design-system-components.js +26 -0
- package/dist/esm/device-8c6d2881.js +51 -0
- package/dist/esm/element-states.decorator-071e2b6b.js +95 -0
- package/dist/esm/floating-ui.dom.esm-f1cf1077.js +1454 -0
- package/dist/esm/focus-visible-f0cdd043.js +72 -0
- package/dist/esm/focus.decorator-8acd79c3.js +86 -0
- package/dist/esm/form-fb8dd9f5.js +21 -0
- package/dist/esm/form-input-28a08ec5.js +77 -0
- package/dist/esm/global-648bb593.js +7 -0
- package/dist/esm/helpers-c201154e.js +246 -0
- package/dist/esm/icons.constant-a7885631.js +30 -0
- package/dist/esm/index-4d3658f6.js +2490 -0
- package/dist/esm/index-82aff103.js +35 -0
- package/dist/esm/index-db06fb0e.js +592 -0
- package/dist/esm/index.esm-ec4cba26.js +7373 -0
- package/dist/esm/index.js +184 -0
- package/dist/esm/initialize-ff8054a2.js +281 -0
- package/dist/esm/keys.constant-0eb059e0.js +19 -0
- package/dist/esm/listener-04842ae9.js +85 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/log-dfd1c19f.js +77 -0
- package/dist/esm/lottie_light_html-ab90e4a2.js +11692 -0
- package/dist/esm/mutation.decorator-af19e75a.js +119 -0
- package/dist/esm/overlays-9d49a4a5.js +76 -0
- package/dist/esm/polyfills/core-js.js +11 -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/resize.decorator-f70563b5.js +78 -0
- package/dist/esm/scroll-972c7ce5.js +78 -0
- package/dist/esm/style-ca1bd202.js +24 -0
- package/dist/esm/swipe.decorator-9d904794.js +23 -0
- package/dist/esm/swipe.subject-f1d64e8d.js +57 -0
- package/dist/esm/tokens.esm-6fb6283c.js +20 -0
- package/dist/esm/tslib.es6-654e2c24.js +27 -0
- package/dist/esm/utils-9fbab1d3.js +76 -0
- package/dist/esm-es5/_commonjsHelpers-1c8beb5f.js +1 -0
- package/dist/esm-es5/app-globals-46c15307.js +1 -0
- package/dist/esm-es5/attributes-4fa7040f.js +1 -0
- package/dist/esm-es5/bal-accordion_4.entry.js +1 -0
- package/dist/esm-es5/bal-app.entry.js +1 -0
- package/dist/esm-es5/bal-badge.entry.js +1 -0
- package/dist/esm-es5/bal-button_2.entry.js +1 -0
- package/dist/esm-es5/bal-card_6.entry.js +1 -0
- package/dist/esm-es5/bal-carousel_2.entry.js +1 -0
- package/dist/esm-es5/bal-checkbox-button.entry.js +1 -0
- package/dist/esm-es5/bal-checkbox_2.entry.js +1 -0
- package/dist/esm-es5/bal-close.entry.js +1 -0
- package/dist/esm-es5/bal-close.i18n-f2daa707.js +1 -0
- package/dist/esm-es5/bal-content.entry.js +1 -0
- package/dist/esm-es5/bal-data_4.entry.js +1 -0
- package/dist/esm-es5/bal-date-calendar-cell.entry.js +1 -0
- package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -0
- package/dist/esm-es5/bal-date.entry.js +1 -0
- package/dist/esm-es5/bal-datepicker.entry.js +1 -0
- package/dist/esm-es5/bal-datepicker.i18n-63a3cb67.js +1 -0
- package/dist/esm-es5/bal-divider.entry.js +1 -0
- package/dist/esm-es5/bal-doc-app.entry.js +1 -0
- package/dist/esm-es5/bal-field_5.entry.js +1 -0
- package/dist/esm-es5/bal-file-upload.entry.js +1 -0
- package/dist/esm-es5/bal-file-upload.type-2a70f4ec.js +1 -0
- package/dist/esm-es5/bal-footer.entry.js +1 -0
- package/dist/esm-es5/bal-form-col_2.entry.js +1 -0
- package/dist/esm-es5/bal-form.entry.js +1 -0
- package/dist/esm-es5/bal-heading_2.entry.js +1 -0
- package/dist/esm-es5/bal-hint_3.entry.js +1 -0
- package/dist/esm-es5/bal-icon.entry.js +1 -0
- package/dist/esm-es5/bal-input-group.entry.js +1 -0
- package/dist/esm-es5/bal-input-slider.entry.js +1 -0
- package/dist/esm-es5/bal-input-stepper.entry.js +1 -0
- package/dist/esm-es5/bal-input-stepper.i18n-aaa4a009.js +1 -0
- package/dist/esm-es5/bal-input.entry.js +1 -0
- package/dist/esm-es5/bal-label.entry.js +1 -0
- package/dist/esm-es5/bal-label.i18n-4212be56.js +1 -0
- package/dist/esm-es5/bal-list_8.entry.js +1 -0
- package/dist/esm-es5/bal-logo.animation-560601c6.js +1 -0
- package/dist/esm-es5/bal-logo.entry.js +1 -0
- package/dist/esm-es5/bal-modal_3.entry.js +1 -0
- package/dist/esm-es5/bal-nav_8.entry.js +1 -0
- package/dist/esm-es5/bal-navbar_5.entry.js +1 -0
- package/dist/esm-es5/bal-notices.entry.js +1 -0
- package/dist/esm-es5/bal-notification.entry.js +1 -0
- package/dist/esm-es5/bal-number-input.entry.js +1 -0
- package/dist/esm-es5/bal-pagination.entry.js +1 -0
- package/dist/esm-es5/bal-popover_2.entry.js +1 -0
- package/dist/esm-es5/bal-popup.entry.js +1 -0
- package/dist/esm-es5/bal-progress-bar.entry.js +1 -0
- package/dist/esm-es5/bal-radio-button.entry.js +1 -0
- package/dist/esm-es5/bal-radio_2.entry.js +1 -0
- package/dist/esm-es5/bal-select_2.entry.js +1 -0
- package/dist/esm-es5/bal-shape.entry.js +1 -0
- package/dist/esm-es5/bal-sheet.entry.js +1 -0
- package/dist/esm-es5/bal-snackbar.entry.js +1 -0
- package/dist/esm-es5/bal-spinner.animation-81d4326e.js +1 -0
- package/dist/esm-es5/bal-spinner.entry.js +1 -0
- package/dist/esm-es5/bal-stack.entry.js +1 -0
- package/dist/esm-es5/bal-stage_6.entry.js +1 -0
- package/dist/esm-es5/bal-step-item.entry.js +1 -0
- package/dist/esm-es5/bal-step.util-3905ad56.js +1 -0
- package/dist/esm-es5/bal-steps.entry.js +1 -0
- package/dist/esm-es5/bal-tab-item_2.entry.js +1 -0
- package/dist/esm-es5/bal-tab.util-933315fe.js +1 -0
- package/dist/esm-es5/bal-table.entry.js +1 -0
- package/dist/esm-es5/bal-tag_2.entry.js +1 -0
- package/dist/esm-es5/bal-textarea.entry.js +1 -0
- package/dist/esm-es5/bal-time-input.entry.js +1 -0
- package/dist/esm-es5/bal-time-input.i18n-157c7092.js +1 -0
- package/dist/esm-es5/bal-toast.entry.js +1 -0
- package/dist/esm-es5/bal-tooltip.entry.js +1 -0
- package/dist/esm-es5/bem-8c7d2eb0.js +1 -0
- package/dist/esm-es5/breakpoints.decorator-4a749810.js +1 -0
- package/dist/esm-es5/breakpoints.subject-7ff7a13a.js +1 -0
- package/dist/esm-es5/browser-a8073d92.js +1 -0
- package/dist/esm-es5/config.decorator-d18abfe1.js +1 -0
- package/dist/esm-es5/config.default-79f94bf7.js +1 -0
- package/dist/esm-es5/config.utils-6ac6c9bd.js +1 -0
- package/dist/esm-es5/contact-91a44c8c.js +1 -0
- package/dist/esm-es5/date-db6afc26.js +1 -0
- package/dist/esm-es5/design-system-components.js +1 -0
- package/dist/esm-es5/device-8c6d2881.js +1 -0
- package/dist/esm-es5/element-states.decorator-071e2b6b.js +1 -0
- package/dist/esm-es5/floating-ui.dom.esm-f1cf1077.js +1 -0
- package/dist/esm-es5/focus-visible-f0cdd043.js +1 -0
- package/dist/esm-es5/focus.decorator-8acd79c3.js +1 -0
- package/dist/esm-es5/form-fb8dd9f5.js +1 -0
- package/dist/esm-es5/form-input-28a08ec5.js +1 -0
- package/dist/esm-es5/global-648bb593.js +1 -0
- package/dist/esm-es5/helpers-c201154e.js +1 -0
- package/dist/esm-es5/icons.constant-a7885631.js +1 -0
- package/dist/esm-es5/index-4d3658f6.js +2 -0
- package/dist/esm-es5/index-82aff103.js +1 -0
- package/dist/esm-es5/index-db06fb0e.js +1 -0
- package/dist/esm-es5/index.esm-ec4cba26.js +1 -0
- package/dist/esm-es5/index.js +1 -0
- package/dist/esm-es5/initialize-ff8054a2.js +1 -0
- package/dist/esm-es5/keys.constant-0eb059e0.js +1 -0
- package/dist/esm-es5/listener-04842ae9.js +1 -0
- package/dist/esm-es5/loader.js +1 -0
- package/dist/esm-es5/log-dfd1c19f.js +1 -0
- package/dist/esm-es5/lottie_light_html-ab90e4a2.js +9 -0
- package/dist/esm-es5/mutation.decorator-af19e75a.js +1 -0
- package/dist/esm-es5/overlays-9d49a4a5.js +1 -0
- package/dist/esm-es5/resize.decorator-f70563b5.js +1 -0
- package/dist/esm-es5/scroll-972c7ce5.js +1 -0
- package/dist/esm-es5/style-ca1bd202.js +1 -0
- package/dist/esm-es5/swipe.decorator-9d904794.js +1 -0
- package/dist/esm-es5/swipe.subject-f1d64e8d.js +1 -0
- package/dist/esm-es5/tokens.esm-6fb6283c.js +1 -0
- package/dist/esm-es5/tslib.es6-654e2c24.js +15 -0
- package/dist/esm-es5/utils-9fbab1d3.js +1 -0
- package/dist/html.html-data.json +6824 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/bal-accordion/bal-accordion-details/bal-accordion-details.d.ts +47 -0
- package/dist/types/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.d.ts +52 -0
- package/dist/types/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.d.ts +76 -0
- package/dist/types/components/bal-accordion/bal-accordion.d.ts +131 -0
- package/dist/types/components/bal-accordion/bal-accordion.interfaces.d.ts +16 -0
- package/dist/types/components/bal-app/bal-app.d.ts +22 -0
- package/dist/types/components/bal-app/bal-app.interfaces.d.ts +7 -0
- package/dist/types/components/bal-badge/bal-badge.d.ts +21 -0
- package/dist/types/components/bal-badge/bal-badge.interfaces.d.ts +6 -0
- package/dist/types/components/bal-button/bal-button-group/bal-button-group.d.ts +17 -0
- package/dist/types/components/bal-button/bal-button.d.ts +135 -0
- package/dist/types/components/bal-button/bal-button.interfaces.d.ts +28 -0
- package/dist/types/components/bal-card/bal-card-actions/bal-card-actions.d.ts +7 -0
- package/dist/types/components/bal-card/bal-card-button/bal-card-button.d.ts +32 -0
- package/dist/types/components/bal-card/bal-card-content/bal-card-content.d.ts +3 -0
- package/dist/types/components/bal-card/bal-card-subtitle/bal-card-subtitle.d.ts +15 -0
- package/dist/types/components/bal-card/bal-card-title/bal-card-title.d.ts +7 -0
- package/dist/types/components/bal-card/bal-card.d.ts +40 -0
- package/dist/types/components/bal-card/bal-card.interfaces.d.ts +8 -0
- package/dist/types/components/bal-carousel/bal-carousel-item/bal-carousel-item.d.ts +69 -0
- package/dist/types/components/bal-carousel/bal-carousel.d.ts +132 -0
- package/dist/types/components/bal-carousel/bal-carousel.i18n.d.ts +7 -0
- package/dist/types/components/bal-carousel/bal-carousel.interfaces.d.ts +22 -0
- package/dist/types/components/bal-carousel/bal-carousel.type.d.ts +18 -0
- package/dist/types/components/bal-carousel/controls/dot-control.d.ts +10 -0
- package/dist/types/components/bal-carousel/controls/large-control.d.ts +12 -0
- package/dist/types/components/bal-carousel/controls/small-control.d.ts +11 -0
- package/dist/types/components/bal-carousel/controls/tab-control.d.ts +11 -0
- package/dist/types/components/bal-checkbox/bal-checkbox-button/bal-checkbox-button.d.ts +102 -0
- package/dist/types/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.d.ts +153 -0
- package/dist/types/components/bal-checkbox/bal-checkbox.d.ts +188 -0
- package/dist/types/components/bal-checkbox/bal-checkbox.interfaces.d.ts +39 -0
- package/dist/types/components/bal-checkbox/bal-checkbox.type.d.ts +17 -0
- package/dist/types/components/bal-checkbox/utils/bal-checkbox.util.d.ts +18 -0
- package/dist/types/components/bal-close/bal-close.d.ts +23 -0
- package/dist/types/components/bal-close/bal-close.i18n.d.ts +6 -0
- package/dist/types/components/bal-close/bal-close.interfaces.d.ts +4 -0
- package/dist/types/components/bal-content/bal-content.d.ts +39 -0
- package/dist/types/components/bal-content/bal-content.interfaces.d.ts +7 -0
- package/dist/types/components/bal-data/bal-data-item/bal-data-item.d.ts +11 -0
- package/dist/types/components/bal-data/bal-data-label/bal-data-label.d.ts +7 -0
- package/dist/types/components/bal-data/bal-data-value/bal-data-value.d.ts +30 -0
- package/dist/types/components/bal-data/bal-data.d.ts +17 -0
- package/dist/types/components/bal-data/bal-data.interfaces.d.ts +13 -0
- package/dist/types/components/bal-date/bal-date-calendar/bal-date-calendar.d.ts +120 -0
- package/dist/types/components/bal-date/bal-date-calendar/bal-date-calendar.interfaces.d.ts +18 -0
- package/dist/types/components/bal-date/bal-date-calendar/components/bal-date-calendar__gird.d.ts +12 -0
- package/dist/types/components/bal-date/bal-date-calendar/components/bal-date-calendar__list.d.ts +11 -0
- package/dist/types/components/bal-date/bal-date-calendar/components/bal-date-calendar__nav.d.ts +14 -0
- package/dist/types/components/bal-date/bal-date-calendar-cell/bal-date-calendar-cell.d.ts +29 -0
- package/dist/types/components/bal-date/bal-date.d.ts +225 -0
- package/dist/types/components/bal-date/bal-date.i18n.d.ts +8 -0
- package/dist/types/components/bal-date/bal-date.interfaces.d.ts +26 -0
- package/dist/types/components/bal-date/utils/calendar.d.ts +38 -0
- package/dist/types/components/bal-datepicker/bal-datepicker.d.ts +221 -0
- package/dist/types/components/bal-datepicker/bal-datepicker.i18n.d.ts +10 -0
- package/dist/types/components/bal-datepicker/bal-datepicker.interfaces.d.ts +22 -0
- package/dist/types/components/bal-datepicker/bal-datepicker.type.d.ts +14 -0
- package/dist/types/components/bal-divider/bal-divider.d.ts +28 -0
- package/dist/types/components/bal-divider/bal-divider.interfaces.d.ts +6 -0
- package/dist/types/components/bal-field/bal-field-control/bal-field-control.d.ts +23 -0
- package/dist/types/components/bal-field/bal-field-hint/bal-field-hint.d.ts +15 -0
- package/dist/types/components/bal-field/bal-field-label/bal-field-label.d.ts +55 -0
- package/dist/types/components/bal-field/bal-field-label/bal-field-label.i18n.d.ts +6 -0
- package/dist/types/components/bal-field/bal-field-message/bal-field-message.d.ts +29 -0
- package/dist/types/components/bal-field/bal-field.d.ts +62 -0
- package/dist/types/components/bal-field/bal-field.interfaces.d.ts +14 -0
- package/dist/types/components/bal-file-upload/bal-file-upload.d.ts +180 -0
- package/dist/types/components/bal-file-upload/bal-file-upload.interfaces.d.ts +32 -0
- package/dist/types/components/bal-file-upload/bal-file-upload.type.d.ts +11 -0
- package/dist/types/components/bal-file-upload/components/file-list.d.ts +8 -0
- package/dist/types/components/bal-file-upload/test/file.mock.d.ts +1 -0
- package/dist/types/components/bal-file-upload/utils/file-list.util.d.ts +9 -0
- package/dist/types/components/bal-file-upload/utils/file-validation.util.d.ts +13 -0
- package/dist/types/components/bal-footer/bal-footer.d.ts +53 -0
- package/dist/types/components/bal-form/bal-form.d.ts +17 -0
- package/dist/types/components/bal-form-grid/bal-form-col/bal-form-col.d.ts +7 -0
- package/dist/types/components/bal-form-grid/bal-form-gird.interfaces.d.ts +4 -0
- package/dist/types/components/bal-form-grid/bal-form-grid.d.ts +4 -0
- package/dist/types/components/bal-heading/bal-heading.const.d.ts +13 -0
- package/dist/types/components/bal-heading/bal-heading.d.ts +74 -0
- package/dist/types/components/bal-heading/bal-heading.interfaces.d.ts +6 -0
- package/dist/types/components/bal-hint/bal-hint-text/bal-hint-text.d.ts +3 -0
- package/dist/types/components/bal-hint/bal-hint-title/bal-hint-title.d.ts +3 -0
- package/dist/types/components/bal-hint/bal-hint.d.ts +44 -0
- package/dist/types/components/bal-icon/bal-icon.d.ts +76 -0
- package/dist/types/components/bal-icon/bal-icon.interfaces.d.ts +5 -0
- package/dist/types/components/bal-input/bal-input-date/bal-input-date.d.ts +151 -0
- package/dist/types/components/bal-input/bal-input-util.d.ts +40 -0
- package/dist/types/components/bal-input/bal-input.d.ts +198 -0
- package/dist/types/components/bal-input/bal-input.interfaces.d.ts +38 -0
- package/dist/types/components/bal-input-group/bal-input-group.d.ts +17 -0
- package/dist/types/components/bal-input-slider/bal-input-slider.d.ts +115 -0
- package/dist/types/components/bal-input-slider/bal-input-slider.interfaces.d.ts +17 -0
- package/dist/types/components/bal-input-stepper/bal-input-stepper.d.ts +110 -0
- package/dist/types/components/bal-input-stepper/bal-input-stepper.i18n.d.ts +7 -0
- package/dist/types/components/bal-input-stepper/bal-input-stepper.interfaces.d.ts +19 -0
- package/dist/types/components/bal-label/bal-label.d.ts +93 -0
- package/dist/types/components/bal-label/bal-label.i18n.d.ts +6 -0
- package/dist/types/components/bal-label/bal-label.interfaces.d.ts +5 -0
- package/dist/types/components/bal-list/bal-list-item/bal-list-item.d.ts +126 -0
- package/dist/types/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.d.ts +52 -0
- package/dist/types/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.d.ts +34 -0
- package/dist/types/components/bal-list/bal-list-item-content/bal-list-item-content.d.ts +4 -0
- package/dist/types/components/bal-list/bal-list-item-icon/bal-list-item-icon.d.ts +7 -0
- package/dist/types/components/bal-list/bal-list-item-subtitle/bal-list-item-subtitle.d.ts +3 -0
- package/dist/types/components/bal-list/bal-list-item-title/bal-list-item-title.d.ts +13 -0
- package/dist/types/components/bal-list/bal-list.d.ts +26 -0
- package/dist/types/components/bal-list/bal-list.interfaces.d.ts +29 -0
- package/dist/types/components/bal-logo/bal-logo.animation.d.ts +2 -0
- package/dist/types/components/bal-logo/bal-logo.d.ts +58 -0
- package/dist/types/components/bal-logo/bal-logo.data.d.ts +1862 -0
- package/dist/types/components/bal-logo/bal-logo.interfaces.d.ts +6 -0
- package/dist/types/components/bal-modal/bal-modal-body/bal-modal-body.d.ts +3 -0
- package/dist/types/components/bal-modal/bal-modal-header/bal-modal-header.d.ts +6 -0
- package/dist/types/components/bal-modal/bal-modal.controller.d.ts +10 -0
- package/dist/types/components/bal-modal/bal-modal.d.ts +106 -0
- package/dist/types/components/bal-modal/bal-modal.interfaces.d.ts +31 -0
- package/dist/types/components/bal-modal/bal-modal.type.d.ts +38 -0
- package/dist/types/components/bal-nav/bal-nav-link/bal-nav-link.d.ts +36 -0
- package/dist/types/components/bal-nav/bal-nav-link/bal-nav-link.interfaces.d.ts +4 -0
- package/dist/types/components/bal-nav/bal-nav-link-grid/bal-nav-link-grid.d.ts +11 -0
- package/dist/types/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.d.ts +19 -0
- package/dist/types/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.interfaces.d.ts +4 -0
- package/dist/types/components/bal-nav/bal-nav-link-group/bal-nav-link-group.d.ts +19 -0
- package/dist/types/components/bal-nav/bal-nav-link-group/bal-nav-link-group.interfaces.d.ts +4 -0
- package/dist/types/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.d.ts +31 -0
- package/dist/types/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.interfaces.d.ts +6 -0
- package/dist/types/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.d.ts +36 -0
- package/dist/types/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.interfaces.d.ts +4 -0
- package/dist/types/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.d.ts +40 -0
- package/dist/types/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.interfaces.d.ts +8 -0
- package/dist/types/components/bal-nav/bal-nav.d.ts +108 -0
- package/dist/types/components/bal-nav/bal-nav.i18n.d.ts +7 -0
- package/dist/types/components/bal-nav/bal-nav.interfaces.d.ts +67 -0
- package/dist/types/components/bal-nav/bal-nav.types.d.ts +5 -0
- package/dist/types/components/bal-nav/components/accordion-button.d.ts +12 -0
- package/dist/types/components/bal-nav/components/overview-link.d.ts +8 -0
- package/dist/types/components/bal-nav/components/section-list.d.ts +6 -0
- package/dist/types/components/bal-nav/components/service-list.d.ts +6 -0
- package/dist/types/components/bal-nav/models/bal-nav-link-item.d.ts +26 -0
- package/dist/types/components/bal-nav/models/bal-nav-menu-link-item.d.ts +19 -0
- package/dist/types/components/bal-nav/models/bal-nav-meta-button.d.ts +18 -0
- package/dist/types/components/bal-nav/models/bal-nav-meta-link-item.d.ts +15 -0
- package/dist/types/components/bal-nav/models/bal-nav-section-link-item.d.ts +16 -0
- package/dist/types/components/bal-nav/models/bal-nav-service-link-item.d.ts +16 -0
- package/dist/types/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.d.ts +58 -0
- package/dist/types/components/bal-navbar/bal-navbar-menu/bal-navbar-menu.d.ts +20 -0
- package/dist/types/components/bal-navbar/bal-navbar-menu-end/bal-navbar-menu-end.d.ts +10 -0
- package/dist/types/components/bal-navbar/bal-navbar-menu-start/bal-navbar-menu-start.d.ts +10 -0
- package/dist/types/components/bal-navbar/bal-navbar.d.ts +22 -0
- package/dist/types/components/bal-navbar/bal-navbar.interfaces.d.ts +16 -0
- package/dist/types/components/bal-notices/bal-notices.d.ts +7 -0
- package/dist/types/components/bal-notification/bal-notification.d.ts +8 -0
- package/dist/types/components/bal-notification/bal-notification.interfaces.d.ts +4 -0
- package/dist/types/components/bal-number-input/bal-number-input.d.ts +170 -0
- package/dist/types/components/bal-number-input/bal-number-input.interfaces.d.ts +17 -0
- package/dist/types/components/bal-number-input/bal-number-input.utils.d.ts +16 -0
- package/dist/types/components/bal-pagination/bal-pagination.d.ts +71 -0
- package/dist/types/components/bal-pagination/bal-pagination.i18n.d.ts +7 -0
- package/dist/types/components/bal-pagination/bal-pagination.interfaces.d.ts +14 -0
- package/dist/types/components/bal-pagination/bal-pagination.util.d.ts +7 -0
- package/dist/types/components/bal-popover/bal-popover-content/bal-popover-content.d.ts +50 -0
- package/dist/types/components/bal-popover/bal-popover.d.ts +144 -0
- package/dist/types/components/bal-popover/bal-popover.interfaces.d.ts +18 -0
- package/dist/types/components/bal-popup/bal-popup.d.ts +173 -0
- package/dist/types/components/bal-popup/bal-popup.interfaces.d.ts +18 -0
- package/dist/types/components/bal-popup/variants/abstract-variant.renderer.d.ts +14 -0
- package/dist/types/components/bal-popup/variants/drawer-variant.renderer.d.ts +9 -0
- package/dist/types/components/bal-popup/variants/fullscreen-variant.renderer.d.ts +8 -0
- package/dist/types/components/bal-popup/variants/index.d.ts +4 -0
- package/dist/types/components/bal-popup/variants/popover-variant.renderer.d.ts +14 -0
- package/dist/types/components/bal-popup/variants/variant.interfaces.d.ts +29 -0
- package/dist/types/components/bal-popup/variants/variant.renderer.d.ts +8 -0
- package/dist/types/components/bal-progress-bar/bal-progress-bar.d.ts +42 -0
- package/dist/types/components/bal-progress-bar/bal-progress-bar.interfaces.d.ts +4 -0
- package/dist/types/components/bal-radio/bal-radio-button/bal-radio-button.d.ts +102 -0
- package/dist/types/components/bal-radio/bal-radio-group/bal-radio-group.d.ts +157 -0
- package/dist/types/components/bal-radio/bal-radio.d.ts +154 -0
- package/dist/types/components/bal-radio/bal-radio.interfaces.d.ts +39 -0
- package/dist/types/components/bal-radio/bal-radio.type.d.ts +17 -0
- package/dist/types/components/bal-radio/utils/bal-radio.util.d.ts +17 -0
- package/dist/types/components/bal-select/bal-select-option/bal-select-option.d.ts +24 -0
- package/dist/types/components/bal-select/bal-select.d.ts +269 -0
- package/dist/types/components/bal-select/bal-select.interfaces.d.ts +24 -0
- package/dist/types/components/bal-select/utils/bal-option.type.d.ts +6 -0
- package/dist/types/components/bal-select/utils/bal-option.util.d.ts +3 -0
- package/dist/types/components/bal-select/utils/utils.d.ts +11 -0
- package/dist/types/components/bal-select/utils/watch-options.d.ts +1 -0
- package/dist/types/components/bal-shape/bal-shape.d.ts +18 -0
- package/dist/types/components/bal-shape/bal-shape.interfaces.d.ts +6 -0
- package/dist/types/components/bal-sheet/bal-sheet.d.ts +7 -0
- package/dist/types/components/bal-sheet/bal-sheet.interfaces.d.ts +4 -0
- package/dist/types/components/bal-snackbar/bal-snackbar.controller.d.ts +13 -0
- package/dist/types/components/bal-snackbar/bal-snackbar.d.ts +69 -0
- package/dist/types/components/bal-snackbar/bal-snackbar.interfaces.d.ts +14 -0
- package/dist/types/components/bal-spinner/bal-spinner.animation.d.ts +2 -0
- package/dist/types/components/bal-spinner/bal-spinner.d.ts +55 -0
- package/dist/types/components/bal-spinner/bal-spinner.data.d.ts +1756 -0
- package/dist/types/components/bal-stack/bal-stack.d.ts +64 -0
- package/dist/types/components/bal-stack/bal-stack.interfaces.d.ts +8 -0
- package/dist/types/components/bal-stage/bal-stage-back-link/bal-stage-back-link.d.ts +17 -0
- package/dist/types/components/bal-stage/bal-stage-body/bal-stage-body.d.ts +5 -0
- package/dist/types/components/bal-stage/bal-stage-foot/bal-stage-foot.d.ts +5 -0
- package/dist/types/components/bal-stage/bal-stage-head/bal-stage-head.d.ts +5 -0
- package/dist/types/components/bal-stage/bal-stage-image/bal-stage-image.d.ts +15 -0
- package/dist/types/components/bal-stage/bal-stage.d.ts +30 -0
- package/dist/types/components/bal-stage/bal-stage.interfaces.d.ts +6 -0
- package/dist/types/components/bal-steps/bal-step-item/bal-step-item.d.ts +78 -0
- package/dist/types/components/bal-steps/bal-step.type.d.ts +19 -0
- package/dist/types/components/bal-steps/bal-step.util.d.ts +16 -0
- package/dist/types/components/bal-steps/bal-steps.d.ts +86 -0
- package/dist/types/components/bal-steps/bal-steps.interfaces.d.ts +16 -0
- package/dist/types/components/bal-steps/components/step-button.d.ts +9 -0
- package/dist/types/components/bal-steps/components/step-icon.d.ts +6 -0
- package/dist/types/components/bal-steps/components/step-label.d.ts +5 -0
- package/dist/types/components/bal-table/bal-table.d.ts +9 -0
- package/dist/types/components/bal-tabs/bal-tab-item/bal-tab-item.d.ts +80 -0
- package/dist/types/components/bal-tabs/bal-tab.type.d.ts +67 -0
- package/dist/types/components/bal-tabs/bal-tab.util.d.ts +16 -0
- package/dist/types/components/bal-tabs/bal-tabs.d.ts +192 -0
- package/dist/types/components/bal-tabs/bal-tabs.interfaces.d.ts +26 -0
- package/dist/types/components/bal-tabs/components/tab-button.d.ts +20 -0
- package/dist/types/components/bal-tabs/components/tab-icon.d.ts +11 -0
- package/dist/types/components/bal-tabs/components/tab-label.d.ts +11 -0
- package/dist/types/components/bal-tabs/components/tab-nav.d.ts +25 -0
- package/dist/types/components/bal-tabs/components/tab-select.d.ts +8 -0
- package/dist/types/components/bal-tag/bal-tag-group/bal-tag-group.d.ts +3 -0
- package/dist/types/components/bal-tag/bal-tag.d.ts +45 -0
- package/dist/types/components/bal-tag/bal-tag.interfaces.d.ts +15 -0
- package/dist/types/components/bal-text/bal-text.d.ts +72 -0
- package/dist/types/components/bal-text/bal-text.interfaces.d.ts +6 -0
- package/dist/types/components/bal-textarea/bal-textarea.d.ts +140 -0
- package/dist/types/components/bal-textarea/bal-textarea.interfaces.d.ts +21 -0
- package/dist/types/components/bal-time-input/bal-time-input.d.ts +113 -0
- package/dist/types/components/bal-time-input/bal-time-input.i18n.d.ts +7 -0
- package/dist/types/components/bal-time-input/bal-time-input.interfaces.d.ts +19 -0
- package/dist/types/components/bal-time-input/bal-time-input.util.d.ts +7 -0
- package/dist/types/components/bal-toast/bal-toast.controller.d.ts +8 -0
- package/dist/types/components/bal-toast/bal-toast.d.ts +39 -0
- package/dist/types/components/bal-toast/bal-toast.interfaces.d.ts +12 -0
- package/dist/types/components/bal-tooltip/bal-tooltip.d.ts +81 -0
- package/dist/types/components/bal-tooltip/bal-tooltip.interfaces.d.ts +18 -0
- package/dist/types/components/bal-tooltip/bal-tooltip.util.d.ts +6 -0
- package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
- package/dist/types/components.d.ts +8262 -0
- package/dist/types/global.d.ts +1 -0
- package/dist/types/home/runner/work/ds-playground/ds-playground/packages/core/.stencil/packages/icons/src/index.d.ts +81 -0
- package/dist/types/index.d.ts +57 -0
- package/dist/types/initialize.d.ts +2 -0
- package/dist/types/interfaces.d.ts +107 -0
- package/dist/types/stencil-public-runtime.d.ts +1681 -0
- package/dist/types/utils/attributes.d.ts +22 -0
- package/dist/types/utils/bem.d.ts +9 -0
- package/dist/types/utils/breakpoints/breakpoints.const.d.ts +2 -0
- package/dist/types/utils/breakpoints/breakpoints.d.ts +53 -0
- package/dist/types/utils/breakpoints/breakpoints.decorator.d.ts +3 -0
- package/dist/types/utils/breakpoints/breakpoints.interfaces.d.ts +12 -0
- package/dist/types/utils/breakpoints/breakpoints.map.d.ts +9 -0
- package/dist/types/utils/breakpoints/breakpoints.subject.d.ts +11 -0
- package/dist/types/utils/breakpoints/index.d.ts +4 -0
- package/dist/types/utils/browser.d.ts +35 -0
- package/dist/types/utils/config/config.const.d.ts +1 -0
- package/dist/types/utils/config/config.d.ts +36 -0
- package/dist/types/utils/config/config.decorator.d.ts +3 -0
- package/dist/types/utils/config/config.default.d.ts +32 -0
- package/dist/types/utils/config/config.types.d.ts +41 -0
- package/dist/types/utils/config/config.utils.d.ts +15 -0
- package/dist/types/utils/config/index.d.ts +7 -0
- package/dist/types/utils/config/initialize.d.ts +3 -0
- package/dist/types/utils/config/observable/observer.d.ts +4 -0
- package/dist/types/utils/config/observable/subject.d.ts +6 -0
- package/dist/types/utils/constants/icons.constant.d.ts +27 -0
- package/dist/types/utils/constants/keys.constant.d.ts +3 -0
- package/dist/types/utils/constants/version.constant.d.ts +1 -0
- package/dist/types/utils/css-classes.d.ts +5 -0
- package/dist/types/utils/date/date.d.ts +23 -0
- package/dist/types/utils/date/index.d.ts +1 -0
- package/dist/types/utils/device.d.ts +26 -0
- package/dist/types/utils/element-states/element-states.decorator.d.ts +3 -0
- package/dist/types/utils/element-states/element-states.interfaces.d.ts +9 -0
- package/dist/types/utils/element-states/element-states.listener.d.ts +14 -0
- package/dist/types/utils/element-states/element-states.subject.d.ts +8 -0
- package/dist/types/utils/element-states/index.d.ts +2 -0
- package/dist/types/utils/focus/focus.decorator.d.ts +3 -0
- package/dist/types/utils/focus/focus.interfaces.d.ts +12 -0
- package/dist/types/utils/focus/focus.listener.d.ts +8 -0
- package/dist/types/utils/focus/focus.subject.d.ts +8 -0
- package/dist/types/utils/focus/index.d.ts +2 -0
- package/dist/types/utils/focus-visible.d.ts +6 -0
- package/dist/types/utils/form-input.d.ts +31 -0
- package/dist/types/utils/form.d.ts +16 -0
- package/dist/types/utils/framework-delegate.d.ts +9 -0
- package/dist/types/utils/helpers.d.ts +41 -0
- package/dist/types/utils/keyboard/index.d.ts +2 -0
- package/dist/types/utils/keyboard/keyboard.decorator.d.ts +3 -0
- package/dist/types/utils/keyboard/keyboard.interfaces.d.ts +8 -0
- package/dist/types/utils/keyboard/keyboard.listener.d.ts +9 -0
- package/dist/types/utils/keyboard/keyboard.subject.d.ts +8 -0
- package/dist/types/utils/legacy.d.ts +23 -0
- package/dist/types/utils/log.d.ts +15 -0
- package/dist/types/utils/mask/__test__/mask-component.mock.d.ts +27 -0
- package/dist/types/utils/mask/__test__/mask-context.mocks.d.ts +4 -0
- package/dist/types/utils/mask/__test__/mask.mock.d.ts +15 -0
- package/dist/types/utils/mask/blocks/index.d.ts +3 -0
- package/dist/types/utils/mask/blocks/mask-block-interfaces.d.ts +11 -0
- package/dist/types/utils/mask/blocks/mask-block-list.d.ts +17 -0
- package/dist/types/utils/mask/blocks/mask-block.d.ts +21 -0
- package/dist/types/utils/mask/component/index.d.ts +2 -0
- package/dist/types/utils/mask/component/mask-component-adapter.d.ts +23 -0
- package/dist/types/utils/mask/component/mask-component-interfaces.d.ts +42 -0
- package/dist/types/utils/mask/context/index.d.ts +9 -0
- package/dist/types/utils/mask/context/mask-clipboard-context.d.ts +10 -0
- package/dist/types/utils/mask/context/mask-context-interfaces.d.ts +11 -0
- package/dist/types/utils/mask/context/mask-context.d.ts +16 -0
- package/dist/types/utils/mask/context/mask-focus-context.d.ts +6 -0
- package/dist/types/utils/mask/context/mask-keyboard-context.d.ts +25 -0
- package/dist/types/utils/mask/context/mask-locale-context.d.ts +8 -0
- package/dist/types/utils/mask/context/mask-mouse-context.d.ts +6 -0
- package/dist/types/utils/mask/context/mask-position.d.ts +25 -0
- package/dist/types/utils/mask/context/mask-value-changed-context.d.ts +11 -0
- package/dist/types/utils/mask/index.d.ts +5 -0
- package/dist/types/utils/mask/mask-interfaces.d.ts +15 -0
- package/dist/types/utils/mask/mask.d.ts +52 -0
- package/dist/types/utils/mask/types/index.d.ts +1 -0
- package/dist/types/utils/mask/types/mask-date.d.ts +16 -0
- package/dist/types/utils/mutation/index.d.ts +2 -0
- package/dist/types/utils/mutation/mutation.decorator.d.ts +3 -0
- package/dist/types/utils/mutation/mutation.interfaces.d.ts +10 -0
- package/dist/types/utils/mutation/mutation.listener.d.ts +13 -0
- package/dist/types/utils/mutation/mutation.subject.d.ts +10 -0
- package/dist/types/utils/number.d.ts +8 -0
- package/dist/types/utils/orientation/index.d.ts +3 -0
- package/dist/types/utils/orientation/orientation.decorator.d.ts +3 -0
- package/dist/types/utils/orientation/orientation.interfaces.d.ts +7 -0
- package/dist/types/utils/orientation/orientation.subject.d.ts +10 -0
- package/dist/types/utils/overlays/notice.controller.d.ts +34 -0
- package/dist/types/utils/overlays/overlays.d.ts +21 -0
- package/dist/types/utils/resize/index.d.ts +5 -0
- package/dist/types/utils/resize/resize.decorator.d.ts +3 -0
- package/dist/types/utils/resize/resize.interfaces.d.ts +6 -0
- package/dist/types/utils/resize/resize.listener.d.ts +8 -0
- package/dist/types/utils/resize/resize.subject.d.ts +8 -0
- package/dist/types/utils/resize/window-resize.handler.d.ts +16 -0
- package/dist/types/utils/resize/window-resize.listener.d.ts +8 -0
- package/dist/types/utils/scroll.d.ts +14 -0
- package/dist/types/utils/style.d.ts +8 -0
- package/dist/types/utils/swipe/index.d.ts +3 -0
- package/dist/types/utils/swipe/swipe.decorator.d.ts +5 -0
- package/dist/types/utils/swipe/swipe.interfaces.d.ts +9 -0
- package/dist/types/utils/swipe/swipe.listener.d.ts +9 -0
- package/dist/types/utils/swipe/swipe.subject.d.ts +11 -0
- package/dist/types/utils/types/listener.d.ts +9 -0
- package/dist/types/utils/types/signal.d.ts +16 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +21 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +62 -0
|
@@ -0,0 +1,2144 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-f7def455.js');
|
|
6
|
+
const tslib_es6 = require('./tslib.es6-a680968e.js');
|
|
7
|
+
const bem = require('./bem-81bc6a2d.js');
|
|
8
|
+
const browser = require('./browser-1d542d0f.js');
|
|
9
|
+
const log = require('./log-33398c2a.js');
|
|
10
|
+
const breakpoints_subject = require('./breakpoints.subject-0a1809a1.js');
|
|
11
|
+
const breakpoints_decorator = require('./breakpoints.decorator-517effdd.js');
|
|
12
|
+
require('./helpers-2a8c8333.js');
|
|
13
|
+
require('./icons.constant-7c82086a.js');
|
|
14
|
+
require('./config.utils-e4cd49d6.js');
|
|
15
|
+
require('./device-9f97a845.js');
|
|
16
|
+
require('./listener-52d2e5fd.js');
|
|
17
|
+
require('./tokens.esm-8d48a205.js');
|
|
18
|
+
|
|
19
|
+
var top = 'top';
|
|
20
|
+
var bottom = 'bottom';
|
|
21
|
+
var right = 'right';
|
|
22
|
+
var left = 'left';
|
|
23
|
+
var auto = 'auto';
|
|
24
|
+
var basePlacements = [top, bottom, right, left];
|
|
25
|
+
var start = 'start';
|
|
26
|
+
var end = 'end';
|
|
27
|
+
var clippingParents = 'clippingParents';
|
|
28
|
+
var viewport = 'viewport';
|
|
29
|
+
var popper = 'popper';
|
|
30
|
+
var reference = 'reference';
|
|
31
|
+
var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {
|
|
32
|
+
return acc.concat([placement + "-" + start, placement + "-" + end]);
|
|
33
|
+
}, []);
|
|
34
|
+
var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
|
|
35
|
+
return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
|
|
36
|
+
}, []); // modifiers that need to read the DOM
|
|
37
|
+
|
|
38
|
+
var beforeRead = 'beforeRead';
|
|
39
|
+
var read = 'read';
|
|
40
|
+
var afterRead = 'afterRead'; // pure-logic modifiers
|
|
41
|
+
|
|
42
|
+
var beforeMain = 'beforeMain';
|
|
43
|
+
var main = 'main';
|
|
44
|
+
var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
|
|
45
|
+
|
|
46
|
+
var beforeWrite = 'beforeWrite';
|
|
47
|
+
var write = 'write';
|
|
48
|
+
var afterWrite = 'afterWrite';
|
|
49
|
+
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
|
|
50
|
+
|
|
51
|
+
function getNodeName(element) {
|
|
52
|
+
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function getWindow(node) {
|
|
56
|
+
if (node == null) {
|
|
57
|
+
return window;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (node.toString() !== '[object Window]') {
|
|
61
|
+
var ownerDocument = node.ownerDocument;
|
|
62
|
+
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return node;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function isElement(node) {
|
|
69
|
+
var OwnElement = getWindow(node).Element;
|
|
70
|
+
return node instanceof OwnElement || node instanceof Element;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function isHTMLElement(node) {
|
|
74
|
+
var OwnElement = getWindow(node).HTMLElement;
|
|
75
|
+
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function isShadowRoot(node) {
|
|
79
|
+
// IE 11 has no ShadowRoot
|
|
80
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
var OwnElement = getWindow(node).ShadowRoot;
|
|
85
|
+
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// and applies them to the HTMLElements such as popper and arrow
|
|
89
|
+
|
|
90
|
+
function applyStyles(_ref) {
|
|
91
|
+
var state = _ref.state;
|
|
92
|
+
Object.keys(state.elements).forEach(function (name) {
|
|
93
|
+
var style = state.styles[name] || {};
|
|
94
|
+
var attributes = state.attributes[name] || {};
|
|
95
|
+
var element = state.elements[name]; // arrow is optional + virtual elements
|
|
96
|
+
|
|
97
|
+
if (!isHTMLElement(element) || !getNodeName(element)) {
|
|
98
|
+
return;
|
|
99
|
+
} // Flow doesn't support to extend this property, but it's the most
|
|
100
|
+
// effective way to apply styles to an HTMLElement
|
|
101
|
+
// $FlowFixMe[cannot-write]
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
Object.assign(element.style, style);
|
|
105
|
+
Object.keys(attributes).forEach(function (name) {
|
|
106
|
+
var value = attributes[name];
|
|
107
|
+
|
|
108
|
+
if (value === false) {
|
|
109
|
+
element.removeAttribute(name);
|
|
110
|
+
} else {
|
|
111
|
+
element.setAttribute(name, value === true ? '' : value);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function effect$2(_ref2) {
|
|
118
|
+
var state = _ref2.state;
|
|
119
|
+
var initialStyles = {
|
|
120
|
+
popper: {
|
|
121
|
+
position: state.options.strategy,
|
|
122
|
+
left: '0',
|
|
123
|
+
top: '0',
|
|
124
|
+
margin: '0'
|
|
125
|
+
},
|
|
126
|
+
arrow: {
|
|
127
|
+
position: 'absolute'
|
|
128
|
+
},
|
|
129
|
+
reference: {}
|
|
130
|
+
};
|
|
131
|
+
Object.assign(state.elements.popper.style, initialStyles.popper);
|
|
132
|
+
state.styles = initialStyles;
|
|
133
|
+
|
|
134
|
+
if (state.elements.arrow) {
|
|
135
|
+
Object.assign(state.elements.arrow.style, initialStyles.arrow);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
return function () {
|
|
139
|
+
Object.keys(state.elements).forEach(function (name) {
|
|
140
|
+
var element = state.elements[name];
|
|
141
|
+
var attributes = state.attributes[name] || {};
|
|
142
|
+
var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
|
|
143
|
+
|
|
144
|
+
var style = styleProperties.reduce(function (style, property) {
|
|
145
|
+
style[property] = '';
|
|
146
|
+
return style;
|
|
147
|
+
}, {}); // arrow is optional + virtual elements
|
|
148
|
+
|
|
149
|
+
if (!isHTMLElement(element) || !getNodeName(element)) {
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
Object.assign(element.style, style);
|
|
154
|
+
Object.keys(attributes).forEach(function (attribute) {
|
|
155
|
+
element.removeAttribute(attribute);
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
};
|
|
159
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
const applyStyles$1 = {
|
|
163
|
+
name: 'applyStyles',
|
|
164
|
+
enabled: true,
|
|
165
|
+
phase: 'write',
|
|
166
|
+
fn: applyStyles,
|
|
167
|
+
effect: effect$2,
|
|
168
|
+
requires: ['computeStyles']
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
function getBasePlacement(placement) {
|
|
172
|
+
return placement.split('-')[0];
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
var max = Math.max;
|
|
176
|
+
var min = Math.min;
|
|
177
|
+
var round = Math.round;
|
|
178
|
+
|
|
179
|
+
function getUAString() {
|
|
180
|
+
var uaData = navigator.userAgentData;
|
|
181
|
+
|
|
182
|
+
if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
|
|
183
|
+
return uaData.brands.map(function (item) {
|
|
184
|
+
return item.brand + "/" + item.version;
|
|
185
|
+
}).join(' ');
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return navigator.userAgent;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
function isLayoutViewport() {
|
|
192
|
+
return !/^((?!chrome|android).)*safari/i.test(getUAString());
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
196
|
+
if (includeScale === void 0) {
|
|
197
|
+
includeScale = false;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
if (isFixedStrategy === void 0) {
|
|
201
|
+
isFixedStrategy = false;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
var clientRect = element.getBoundingClientRect();
|
|
205
|
+
var scaleX = 1;
|
|
206
|
+
var scaleY = 1;
|
|
207
|
+
|
|
208
|
+
if (includeScale && isHTMLElement(element)) {
|
|
209
|
+
scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
|
|
210
|
+
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
var _ref = isElement(element) ? getWindow(element) : window,
|
|
214
|
+
visualViewport = _ref.visualViewport;
|
|
215
|
+
|
|
216
|
+
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
217
|
+
var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
218
|
+
var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
219
|
+
var width = clientRect.width / scaleX;
|
|
220
|
+
var height = clientRect.height / scaleY;
|
|
221
|
+
return {
|
|
222
|
+
width: width,
|
|
223
|
+
height: height,
|
|
224
|
+
top: y,
|
|
225
|
+
right: x + width,
|
|
226
|
+
bottom: y + height,
|
|
227
|
+
left: x,
|
|
228
|
+
x: x,
|
|
229
|
+
y: y
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
// means it doesn't take into account transforms.
|
|
234
|
+
|
|
235
|
+
function getLayoutRect(element) {
|
|
236
|
+
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
237
|
+
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
238
|
+
|
|
239
|
+
var width = element.offsetWidth;
|
|
240
|
+
var height = element.offsetHeight;
|
|
241
|
+
|
|
242
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
243
|
+
width = clientRect.width;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
247
|
+
height = clientRect.height;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
return {
|
|
251
|
+
x: element.offsetLeft,
|
|
252
|
+
y: element.offsetTop,
|
|
253
|
+
width: width,
|
|
254
|
+
height: height
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
function contains(parent, child) {
|
|
259
|
+
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
260
|
+
|
|
261
|
+
if (parent.contains(child)) {
|
|
262
|
+
return true;
|
|
263
|
+
} // then fallback to custom implementation with Shadow DOM support
|
|
264
|
+
else if (rootNode && isShadowRoot(rootNode)) {
|
|
265
|
+
var next = child;
|
|
266
|
+
|
|
267
|
+
do {
|
|
268
|
+
if (next && parent.isSameNode(next)) {
|
|
269
|
+
return true;
|
|
270
|
+
} // $FlowFixMe[prop-missing]: need a better way to handle this...
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
next = next.parentNode || next.host;
|
|
274
|
+
} while (next);
|
|
275
|
+
} // Give up, the result is false
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
return false;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
function getComputedStyle(element) {
|
|
282
|
+
return getWindow(element).getComputedStyle(element);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
function isTableElement(element) {
|
|
286
|
+
return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
function getDocumentElement(element) {
|
|
290
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
291
|
+
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
|
292
|
+
element.document) || window.document).documentElement;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
function getParentNode(element) {
|
|
296
|
+
if (getNodeName(element) === 'html') {
|
|
297
|
+
return element;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
301
|
+
// $FlowFixMe[incompatible-return]
|
|
302
|
+
// $FlowFixMe[prop-missing]
|
|
303
|
+
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
304
|
+
element.parentNode || ( // DOM Element detected
|
|
305
|
+
isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
|
|
306
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
307
|
+
getDocumentElement(element) // fallback
|
|
308
|
+
|
|
309
|
+
);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
function getTrueOffsetParent(element) {
|
|
313
|
+
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
314
|
+
getComputedStyle(element).position === 'fixed') {
|
|
315
|
+
return null;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
return element.offsetParent;
|
|
319
|
+
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
320
|
+
// return the containing block
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
function getContainingBlock(element) {
|
|
324
|
+
var isFirefox = /firefox/i.test(getUAString());
|
|
325
|
+
var isIE = /Trident/i.test(getUAString());
|
|
326
|
+
|
|
327
|
+
if (isIE && isHTMLElement(element)) {
|
|
328
|
+
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
329
|
+
var elementCss = getComputedStyle(element);
|
|
330
|
+
|
|
331
|
+
if (elementCss.position === 'fixed') {
|
|
332
|
+
return null;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
var currentNode = getParentNode(element);
|
|
337
|
+
|
|
338
|
+
if (isShadowRoot(currentNode)) {
|
|
339
|
+
currentNode = currentNode.host;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
343
|
+
var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
344
|
+
// create a containing block.
|
|
345
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
346
|
+
|
|
347
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
|
|
348
|
+
return currentNode;
|
|
349
|
+
} else {
|
|
350
|
+
currentNode = currentNode.parentNode;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
return null;
|
|
355
|
+
} // Gets the closest ancestor positioned element. Handles some edge cases,
|
|
356
|
+
// such as table ancestors and cross browser bugs.
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
function getOffsetParent(element) {
|
|
360
|
+
var window = getWindow(element);
|
|
361
|
+
var offsetParent = getTrueOffsetParent(element);
|
|
362
|
+
|
|
363
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
|
|
364
|
+
offsetParent = getTrueOffsetParent(offsetParent);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {
|
|
368
|
+
return window;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
return offsetParent || getContainingBlock(element) || window;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
function getMainAxisFromPlacement(placement) {
|
|
375
|
+
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
function within(min$1, value, max$1) {
|
|
379
|
+
return max(min$1, min(value, max$1));
|
|
380
|
+
}
|
|
381
|
+
function withinMaxClamp(min, value, max) {
|
|
382
|
+
var v = within(min, value, max);
|
|
383
|
+
return v > max ? max : v;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
function getFreshSideObject() {
|
|
387
|
+
return {
|
|
388
|
+
top: 0,
|
|
389
|
+
right: 0,
|
|
390
|
+
bottom: 0,
|
|
391
|
+
left: 0
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
function mergePaddingObject(paddingObject) {
|
|
396
|
+
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
function expandToHashMap(value, keys) {
|
|
400
|
+
return keys.reduce(function (hashMap, key) {
|
|
401
|
+
hashMap[key] = value;
|
|
402
|
+
return hashMap;
|
|
403
|
+
}, {});
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
407
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
408
|
+
placement: state.placement
|
|
409
|
+
})) : padding;
|
|
410
|
+
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
function arrow(_ref) {
|
|
414
|
+
var _state$modifiersData$;
|
|
415
|
+
|
|
416
|
+
var state = _ref.state,
|
|
417
|
+
name = _ref.name,
|
|
418
|
+
options = _ref.options;
|
|
419
|
+
var arrowElement = state.elements.arrow;
|
|
420
|
+
var popperOffsets = state.modifiersData.popperOffsets;
|
|
421
|
+
var basePlacement = getBasePlacement(state.placement);
|
|
422
|
+
var axis = getMainAxisFromPlacement(basePlacement);
|
|
423
|
+
var isVertical = [left, right].indexOf(basePlacement) >= 0;
|
|
424
|
+
var len = isVertical ? 'height' : 'width';
|
|
425
|
+
|
|
426
|
+
if (!arrowElement || !popperOffsets) {
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
var paddingObject = toPaddingObject(options.padding, state);
|
|
431
|
+
var arrowRect = getLayoutRect(arrowElement);
|
|
432
|
+
var minProp = axis === 'y' ? top : left;
|
|
433
|
+
var maxProp = axis === 'y' ? bottom : right;
|
|
434
|
+
var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
|
|
435
|
+
var startDiff = popperOffsets[axis] - state.rects.reference[axis];
|
|
436
|
+
var arrowOffsetParent = getOffsetParent(arrowElement);
|
|
437
|
+
var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
|
|
438
|
+
var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
|
|
439
|
+
// outside of the popper bounds
|
|
440
|
+
|
|
441
|
+
var min = paddingObject[minProp];
|
|
442
|
+
var max = clientSize - arrowRect[len] - paddingObject[maxProp];
|
|
443
|
+
var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
|
|
444
|
+
var offset = within(min, center, max); // Prevents breaking syntax highlighting...
|
|
445
|
+
|
|
446
|
+
var axisProp = axis;
|
|
447
|
+
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
function effect$1(_ref2) {
|
|
451
|
+
var state = _ref2.state,
|
|
452
|
+
options = _ref2.options;
|
|
453
|
+
var _options$element = options.element,
|
|
454
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
|
|
455
|
+
|
|
456
|
+
if (arrowElement == null) {
|
|
457
|
+
return;
|
|
458
|
+
} // CSS selector
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
if (typeof arrowElement === 'string') {
|
|
462
|
+
arrowElement = state.elements.popper.querySelector(arrowElement);
|
|
463
|
+
|
|
464
|
+
if (!arrowElement) {
|
|
465
|
+
return;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
470
|
+
return;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
state.elements.arrow = arrowElement;
|
|
474
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
const arrow$1 = {
|
|
478
|
+
name: 'arrow',
|
|
479
|
+
enabled: true,
|
|
480
|
+
phase: 'main',
|
|
481
|
+
fn: arrow,
|
|
482
|
+
effect: effect$1,
|
|
483
|
+
requires: ['popperOffsets'],
|
|
484
|
+
requiresIfExists: ['preventOverflow']
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
function getVariation(placement) {
|
|
488
|
+
return placement.split('-')[1];
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
var unsetSides = {
|
|
492
|
+
top: 'auto',
|
|
493
|
+
right: 'auto',
|
|
494
|
+
bottom: 'auto',
|
|
495
|
+
left: 'auto'
|
|
496
|
+
}; // Round the offsets to the nearest suitable subpixel based on the DPR.
|
|
497
|
+
// Zooming can change the DPR, but it seems to report a value that will
|
|
498
|
+
// cleanly divide the values into the appropriate subpixels.
|
|
499
|
+
|
|
500
|
+
function roundOffsetsByDPR(_ref, win) {
|
|
501
|
+
var x = _ref.x,
|
|
502
|
+
y = _ref.y;
|
|
503
|
+
var dpr = win.devicePixelRatio || 1;
|
|
504
|
+
return {
|
|
505
|
+
x: round(x * dpr) / dpr || 0,
|
|
506
|
+
y: round(y * dpr) / dpr || 0
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
function mapToStyles(_ref2) {
|
|
511
|
+
var _Object$assign2;
|
|
512
|
+
|
|
513
|
+
var popper = _ref2.popper,
|
|
514
|
+
popperRect = _ref2.popperRect,
|
|
515
|
+
placement = _ref2.placement,
|
|
516
|
+
variation = _ref2.variation,
|
|
517
|
+
offsets = _ref2.offsets,
|
|
518
|
+
position = _ref2.position,
|
|
519
|
+
gpuAcceleration = _ref2.gpuAcceleration,
|
|
520
|
+
adaptive = _ref2.adaptive,
|
|
521
|
+
roundOffsets = _ref2.roundOffsets,
|
|
522
|
+
isFixed = _ref2.isFixed;
|
|
523
|
+
var _offsets$x = offsets.x,
|
|
524
|
+
x = _offsets$x === void 0 ? 0 : _offsets$x,
|
|
525
|
+
_offsets$y = offsets.y,
|
|
526
|
+
y = _offsets$y === void 0 ? 0 : _offsets$y;
|
|
527
|
+
|
|
528
|
+
var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
|
|
529
|
+
x: x,
|
|
530
|
+
y: y
|
|
531
|
+
}) : {
|
|
532
|
+
x: x,
|
|
533
|
+
y: y
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
x = _ref3.x;
|
|
537
|
+
y = _ref3.y;
|
|
538
|
+
var hasX = offsets.hasOwnProperty('x');
|
|
539
|
+
var hasY = offsets.hasOwnProperty('y');
|
|
540
|
+
var sideX = left;
|
|
541
|
+
var sideY = top;
|
|
542
|
+
var win = window;
|
|
543
|
+
|
|
544
|
+
if (adaptive) {
|
|
545
|
+
var offsetParent = getOffsetParent(popper);
|
|
546
|
+
var heightProp = 'clientHeight';
|
|
547
|
+
var widthProp = 'clientWidth';
|
|
548
|
+
|
|
549
|
+
if (offsetParent === getWindow(popper)) {
|
|
550
|
+
offsetParent = getDocumentElement(popper);
|
|
551
|
+
|
|
552
|
+
if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {
|
|
553
|
+
heightProp = 'scrollHeight';
|
|
554
|
+
widthProp = 'scrollWidth';
|
|
555
|
+
}
|
|
556
|
+
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
offsetParent = offsetParent;
|
|
560
|
+
|
|
561
|
+
if (placement === top || (placement === left || placement === right) && variation === end) {
|
|
562
|
+
sideY = bottom;
|
|
563
|
+
var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
|
|
564
|
+
offsetParent[heightProp];
|
|
565
|
+
y -= offsetY - popperRect.height;
|
|
566
|
+
y *= gpuAcceleration ? 1 : -1;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
if (placement === left || (placement === top || placement === bottom) && variation === end) {
|
|
570
|
+
sideX = right;
|
|
571
|
+
var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
|
|
572
|
+
offsetParent[widthProp];
|
|
573
|
+
x -= offsetX - popperRect.width;
|
|
574
|
+
x *= gpuAcceleration ? 1 : -1;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
var commonStyles = Object.assign({
|
|
579
|
+
position: position
|
|
580
|
+
}, adaptive && unsetSides);
|
|
581
|
+
|
|
582
|
+
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
583
|
+
x: x,
|
|
584
|
+
y: y
|
|
585
|
+
}, getWindow(popper)) : {
|
|
586
|
+
x: x,
|
|
587
|
+
y: y
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
x = _ref4.x;
|
|
591
|
+
y = _ref4.y;
|
|
592
|
+
|
|
593
|
+
if (gpuAcceleration) {
|
|
594
|
+
var _Object$assign;
|
|
595
|
+
|
|
596
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
function computeStyles(_ref5) {
|
|
603
|
+
var state = _ref5.state,
|
|
604
|
+
options = _ref5.options;
|
|
605
|
+
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
606
|
+
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
607
|
+
_options$adaptive = options.adaptive,
|
|
608
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
609
|
+
_options$roundOffsets = options.roundOffsets,
|
|
610
|
+
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
611
|
+
var commonStyles = {
|
|
612
|
+
placement: getBasePlacement(state.placement),
|
|
613
|
+
variation: getVariation(state.placement),
|
|
614
|
+
popper: state.elements.popper,
|
|
615
|
+
popperRect: state.rects.popper,
|
|
616
|
+
gpuAcceleration: gpuAcceleration,
|
|
617
|
+
isFixed: state.options.strategy === 'fixed'
|
|
618
|
+
};
|
|
619
|
+
|
|
620
|
+
if (state.modifiersData.popperOffsets != null) {
|
|
621
|
+
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
622
|
+
offsets: state.modifiersData.popperOffsets,
|
|
623
|
+
position: state.options.strategy,
|
|
624
|
+
adaptive: adaptive,
|
|
625
|
+
roundOffsets: roundOffsets
|
|
626
|
+
})));
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
if (state.modifiersData.arrow != null) {
|
|
630
|
+
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
631
|
+
offsets: state.modifiersData.arrow,
|
|
632
|
+
position: 'absolute',
|
|
633
|
+
adaptive: false,
|
|
634
|
+
roundOffsets: roundOffsets
|
|
635
|
+
})));
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
639
|
+
'data-popper-placement': state.placement
|
|
640
|
+
});
|
|
641
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
const computeStyles$1 = {
|
|
645
|
+
name: 'computeStyles',
|
|
646
|
+
enabled: true,
|
|
647
|
+
phase: 'beforeWrite',
|
|
648
|
+
fn: computeStyles,
|
|
649
|
+
data: {}
|
|
650
|
+
};
|
|
651
|
+
|
|
652
|
+
var passive = {
|
|
653
|
+
passive: true
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
function effect(_ref) {
|
|
657
|
+
var state = _ref.state,
|
|
658
|
+
instance = _ref.instance,
|
|
659
|
+
options = _ref.options;
|
|
660
|
+
var _options$scroll = options.scroll,
|
|
661
|
+
scroll = _options$scroll === void 0 ? true : _options$scroll,
|
|
662
|
+
_options$resize = options.resize,
|
|
663
|
+
resize = _options$resize === void 0 ? true : _options$resize;
|
|
664
|
+
var window = getWindow(state.elements.popper);
|
|
665
|
+
var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
|
|
666
|
+
|
|
667
|
+
if (scroll) {
|
|
668
|
+
scrollParents.forEach(function (scrollParent) {
|
|
669
|
+
scrollParent.addEventListener('scroll', instance.update, passive);
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
if (resize) {
|
|
674
|
+
window.addEventListener('resize', instance.update, passive);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
return function () {
|
|
678
|
+
if (scroll) {
|
|
679
|
+
scrollParents.forEach(function (scrollParent) {
|
|
680
|
+
scrollParent.removeEventListener('scroll', instance.update, passive);
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
if (resize) {
|
|
685
|
+
window.removeEventListener('resize', instance.update, passive);
|
|
686
|
+
}
|
|
687
|
+
};
|
|
688
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
const eventListeners = {
|
|
692
|
+
name: 'eventListeners',
|
|
693
|
+
enabled: true,
|
|
694
|
+
phase: 'write',
|
|
695
|
+
fn: function fn() {},
|
|
696
|
+
effect: effect,
|
|
697
|
+
data: {}
|
|
698
|
+
};
|
|
699
|
+
|
|
700
|
+
var hash$1 = {
|
|
701
|
+
left: 'right',
|
|
702
|
+
right: 'left',
|
|
703
|
+
bottom: 'top',
|
|
704
|
+
top: 'bottom'
|
|
705
|
+
};
|
|
706
|
+
function getOppositePlacement(placement) {
|
|
707
|
+
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
708
|
+
return hash$1[matched];
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
var hash = {
|
|
713
|
+
start: 'end',
|
|
714
|
+
end: 'start'
|
|
715
|
+
};
|
|
716
|
+
function getOppositeVariationPlacement(placement) {
|
|
717
|
+
return placement.replace(/start|end/g, function (matched) {
|
|
718
|
+
return hash[matched];
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
function getWindowScroll(node) {
|
|
723
|
+
var win = getWindow(node);
|
|
724
|
+
var scrollLeft = win.pageXOffset;
|
|
725
|
+
var scrollTop = win.pageYOffset;
|
|
726
|
+
return {
|
|
727
|
+
scrollLeft: scrollLeft,
|
|
728
|
+
scrollTop: scrollTop
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
function getWindowScrollBarX(element) {
|
|
733
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
734
|
+
// incorrect for RTL.
|
|
735
|
+
// Popper 1 is broken in this case and never had a bug report so let's assume
|
|
736
|
+
// it's not an issue. I don't think anyone ever specifies width on <html>
|
|
737
|
+
// anyway.
|
|
738
|
+
// Browsers where the left scrollbar doesn't cause an issue report `0` for
|
|
739
|
+
// this (e.g. Edge 2019, IE11, Safari)
|
|
740
|
+
return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
function getViewportRect(element, strategy) {
|
|
744
|
+
var win = getWindow(element);
|
|
745
|
+
var html = getDocumentElement(element);
|
|
746
|
+
var visualViewport = win.visualViewport;
|
|
747
|
+
var width = html.clientWidth;
|
|
748
|
+
var height = html.clientHeight;
|
|
749
|
+
var x = 0;
|
|
750
|
+
var y = 0;
|
|
751
|
+
|
|
752
|
+
if (visualViewport) {
|
|
753
|
+
width = visualViewport.width;
|
|
754
|
+
height = visualViewport.height;
|
|
755
|
+
var layoutViewport = isLayoutViewport();
|
|
756
|
+
|
|
757
|
+
if (layoutViewport || !layoutViewport && strategy === 'fixed') {
|
|
758
|
+
x = visualViewport.offsetLeft;
|
|
759
|
+
y = visualViewport.offsetTop;
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
return {
|
|
764
|
+
width: width,
|
|
765
|
+
height: height,
|
|
766
|
+
x: x + getWindowScrollBarX(element),
|
|
767
|
+
y: y
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
772
|
+
|
|
773
|
+
function getDocumentRect(element) {
|
|
774
|
+
var _element$ownerDocumen;
|
|
775
|
+
|
|
776
|
+
var html = getDocumentElement(element);
|
|
777
|
+
var winScroll = getWindowScroll(element);
|
|
778
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
779
|
+
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
780
|
+
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
781
|
+
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
782
|
+
var y = -winScroll.scrollTop;
|
|
783
|
+
|
|
784
|
+
if (getComputedStyle(body || html).direction === 'rtl') {
|
|
785
|
+
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
return {
|
|
789
|
+
width: width,
|
|
790
|
+
height: height,
|
|
791
|
+
x: x,
|
|
792
|
+
y: y
|
|
793
|
+
};
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
function isScrollParent(element) {
|
|
797
|
+
// Firefox wants us to check `-x` and `-y` variations as well
|
|
798
|
+
var _getComputedStyle = getComputedStyle(element),
|
|
799
|
+
overflow = _getComputedStyle.overflow,
|
|
800
|
+
overflowX = _getComputedStyle.overflowX,
|
|
801
|
+
overflowY = _getComputedStyle.overflowY;
|
|
802
|
+
|
|
803
|
+
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
function getScrollParent(node) {
|
|
807
|
+
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
808
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
809
|
+
return node.ownerDocument.body;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
if (isHTMLElement(node) && isScrollParent(node)) {
|
|
813
|
+
return node;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
return getScrollParent(getParentNode(node));
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
/*
|
|
820
|
+
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
821
|
+
until we get to the top window object. This list is what we attach scroll listeners
|
|
822
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
823
|
+
reference element's position.
|
|
824
|
+
*/
|
|
825
|
+
|
|
826
|
+
function listScrollParents(element, list) {
|
|
827
|
+
var _element$ownerDocumen;
|
|
828
|
+
|
|
829
|
+
if (list === void 0) {
|
|
830
|
+
list = [];
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
var scrollParent = getScrollParent(element);
|
|
834
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
835
|
+
var win = getWindow(scrollParent);
|
|
836
|
+
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
837
|
+
var updatedList = list.concat(target);
|
|
838
|
+
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
839
|
+
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
function rectToClientRect(rect) {
|
|
843
|
+
return Object.assign({}, rect, {
|
|
844
|
+
left: rect.x,
|
|
845
|
+
top: rect.y,
|
|
846
|
+
right: rect.x + rect.width,
|
|
847
|
+
bottom: rect.y + rect.height
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
852
|
+
var rect = getBoundingClientRect(element, false, strategy === 'fixed');
|
|
853
|
+
rect.top = rect.top + element.clientTop;
|
|
854
|
+
rect.left = rect.left + element.clientLeft;
|
|
855
|
+
rect.bottom = rect.top + element.clientHeight;
|
|
856
|
+
rect.right = rect.left + element.clientWidth;
|
|
857
|
+
rect.width = element.clientWidth;
|
|
858
|
+
rect.height = element.clientHeight;
|
|
859
|
+
rect.x = rect.left;
|
|
860
|
+
rect.y = rect.top;
|
|
861
|
+
return rect;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
function getClientRectFromMixedType(element, clippingParent, strategy) {
|
|
865
|
+
return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
866
|
+
} // A "clipping parent" is an overflowable container with the characteristic of
|
|
867
|
+
// clipping (or hiding) overflowing elements with a position different from
|
|
868
|
+
// `initial`
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
function getClippingParents(element) {
|
|
872
|
+
var clippingParents = listScrollParents(getParentNode(element));
|
|
873
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;
|
|
874
|
+
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
875
|
+
|
|
876
|
+
if (!isElement(clipperElement)) {
|
|
877
|
+
return [];
|
|
878
|
+
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
return clippingParents.filter(function (clippingParent) {
|
|
882
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
883
|
+
});
|
|
884
|
+
} // Gets the maximum area that the element is visible in due to any number of
|
|
885
|
+
// clipping parents
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
function getClippingRect(element, boundary, rootBoundary, strategy) {
|
|
889
|
+
var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
|
|
890
|
+
var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
|
|
891
|
+
var firstClippingParent = clippingParents[0];
|
|
892
|
+
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
893
|
+
var rect = getClientRectFromMixedType(element, clippingParent, strategy);
|
|
894
|
+
accRect.top = max(rect.top, accRect.top);
|
|
895
|
+
accRect.right = min(rect.right, accRect.right);
|
|
896
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
897
|
+
accRect.left = max(rect.left, accRect.left);
|
|
898
|
+
return accRect;
|
|
899
|
+
}, getClientRectFromMixedType(element, firstClippingParent, strategy));
|
|
900
|
+
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
901
|
+
clippingRect.height = clippingRect.bottom - clippingRect.top;
|
|
902
|
+
clippingRect.x = clippingRect.left;
|
|
903
|
+
clippingRect.y = clippingRect.top;
|
|
904
|
+
return clippingRect;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
function computeOffsets(_ref) {
|
|
908
|
+
var reference = _ref.reference,
|
|
909
|
+
element = _ref.element,
|
|
910
|
+
placement = _ref.placement;
|
|
911
|
+
var basePlacement = placement ? getBasePlacement(placement) : null;
|
|
912
|
+
var variation = placement ? getVariation(placement) : null;
|
|
913
|
+
var commonX = reference.x + reference.width / 2 - element.width / 2;
|
|
914
|
+
var commonY = reference.y + reference.height / 2 - element.height / 2;
|
|
915
|
+
var offsets;
|
|
916
|
+
|
|
917
|
+
switch (basePlacement) {
|
|
918
|
+
case top:
|
|
919
|
+
offsets = {
|
|
920
|
+
x: commonX,
|
|
921
|
+
y: reference.y - element.height
|
|
922
|
+
};
|
|
923
|
+
break;
|
|
924
|
+
|
|
925
|
+
case bottom:
|
|
926
|
+
offsets = {
|
|
927
|
+
x: commonX,
|
|
928
|
+
y: reference.y + reference.height
|
|
929
|
+
};
|
|
930
|
+
break;
|
|
931
|
+
|
|
932
|
+
case right:
|
|
933
|
+
offsets = {
|
|
934
|
+
x: reference.x + reference.width,
|
|
935
|
+
y: commonY
|
|
936
|
+
};
|
|
937
|
+
break;
|
|
938
|
+
|
|
939
|
+
case left:
|
|
940
|
+
offsets = {
|
|
941
|
+
x: reference.x - element.width,
|
|
942
|
+
y: commonY
|
|
943
|
+
};
|
|
944
|
+
break;
|
|
945
|
+
|
|
946
|
+
default:
|
|
947
|
+
offsets = {
|
|
948
|
+
x: reference.x,
|
|
949
|
+
y: reference.y
|
|
950
|
+
};
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
|
|
954
|
+
|
|
955
|
+
if (mainAxis != null) {
|
|
956
|
+
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
957
|
+
|
|
958
|
+
switch (variation) {
|
|
959
|
+
case start:
|
|
960
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
961
|
+
break;
|
|
962
|
+
|
|
963
|
+
case end:
|
|
964
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
965
|
+
break;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
return offsets;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
function detectOverflow(state, options) {
|
|
973
|
+
if (options === void 0) {
|
|
974
|
+
options = {};
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
var _options = options,
|
|
978
|
+
_options$placement = _options.placement,
|
|
979
|
+
placement = _options$placement === void 0 ? state.placement : _options$placement,
|
|
980
|
+
_options$strategy = _options.strategy,
|
|
981
|
+
strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
|
|
982
|
+
_options$boundary = _options.boundary,
|
|
983
|
+
boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
|
|
984
|
+
_options$rootBoundary = _options.rootBoundary,
|
|
985
|
+
rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
|
|
986
|
+
_options$elementConte = _options.elementContext,
|
|
987
|
+
elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,
|
|
988
|
+
_options$altBoundary = _options.altBoundary,
|
|
989
|
+
altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
|
|
990
|
+
_options$padding = _options.padding,
|
|
991
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
992
|
+
var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
993
|
+
var altContext = elementContext === popper ? reference : popper;
|
|
994
|
+
var popperRect = state.rects.popper;
|
|
995
|
+
var element = state.elements[altBoundary ? altContext : elementContext];
|
|
996
|
+
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
|
|
997
|
+
var referenceClientRect = getBoundingClientRect(state.elements.reference);
|
|
998
|
+
var popperOffsets = computeOffsets({
|
|
999
|
+
reference: referenceClientRect,
|
|
1000
|
+
element: popperRect,
|
|
1001
|
+
strategy: 'absolute',
|
|
1002
|
+
placement: placement
|
|
1003
|
+
});
|
|
1004
|
+
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
1005
|
+
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
1006
|
+
// 0 or negative = within the clipping rect
|
|
1007
|
+
|
|
1008
|
+
var overflowOffsets = {
|
|
1009
|
+
top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
|
|
1010
|
+
bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
|
|
1011
|
+
left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
|
|
1012
|
+
right: elementClientRect.right - clippingClientRect.right + paddingObject.right
|
|
1013
|
+
};
|
|
1014
|
+
var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
|
|
1015
|
+
|
|
1016
|
+
if (elementContext === popper && offsetData) {
|
|
1017
|
+
var offset = offsetData[placement];
|
|
1018
|
+
Object.keys(overflowOffsets).forEach(function (key) {
|
|
1019
|
+
var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
|
|
1020
|
+
var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
|
|
1021
|
+
overflowOffsets[key] += offset[axis] * multiply;
|
|
1022
|
+
});
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
return overflowOffsets;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
function computeAutoPlacement(state, options) {
|
|
1029
|
+
if (options === void 0) {
|
|
1030
|
+
options = {};
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
var _options = options,
|
|
1034
|
+
placement = _options.placement,
|
|
1035
|
+
boundary = _options.boundary,
|
|
1036
|
+
rootBoundary = _options.rootBoundary,
|
|
1037
|
+
padding = _options.padding,
|
|
1038
|
+
flipVariations = _options.flipVariations,
|
|
1039
|
+
_options$allowedAutoP = _options.allowedAutoPlacements,
|
|
1040
|
+
allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP;
|
|
1041
|
+
var variation = getVariation(placement);
|
|
1042
|
+
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
1043
|
+
return getVariation(placement) === variation;
|
|
1044
|
+
}) : basePlacements;
|
|
1045
|
+
var allowedPlacements = placements$1.filter(function (placement) {
|
|
1046
|
+
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
1047
|
+
});
|
|
1048
|
+
|
|
1049
|
+
if (allowedPlacements.length === 0) {
|
|
1050
|
+
allowedPlacements = placements$1;
|
|
1051
|
+
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
1055
|
+
acc[placement] = detectOverflow(state, {
|
|
1056
|
+
placement: placement,
|
|
1057
|
+
boundary: boundary,
|
|
1058
|
+
rootBoundary: rootBoundary,
|
|
1059
|
+
padding: padding
|
|
1060
|
+
})[getBasePlacement(placement)];
|
|
1061
|
+
return acc;
|
|
1062
|
+
}, {});
|
|
1063
|
+
return Object.keys(overflows).sort(function (a, b) {
|
|
1064
|
+
return overflows[a] - overflows[b];
|
|
1065
|
+
});
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
function getExpandedFallbackPlacements(placement) {
|
|
1069
|
+
if (getBasePlacement(placement) === auto) {
|
|
1070
|
+
return [];
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
var oppositePlacement = getOppositePlacement(placement);
|
|
1074
|
+
return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
function flip(_ref) {
|
|
1078
|
+
var state = _ref.state,
|
|
1079
|
+
options = _ref.options,
|
|
1080
|
+
name = _ref.name;
|
|
1081
|
+
|
|
1082
|
+
if (state.modifiersData[name]._skip) {
|
|
1083
|
+
return;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
var _options$mainAxis = options.mainAxis,
|
|
1087
|
+
checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
|
|
1088
|
+
_options$altAxis = options.altAxis,
|
|
1089
|
+
checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,
|
|
1090
|
+
specifiedFallbackPlacements = options.fallbackPlacements,
|
|
1091
|
+
padding = options.padding,
|
|
1092
|
+
boundary = options.boundary,
|
|
1093
|
+
rootBoundary = options.rootBoundary,
|
|
1094
|
+
altBoundary = options.altBoundary,
|
|
1095
|
+
_options$flipVariatio = options.flipVariations,
|
|
1096
|
+
flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,
|
|
1097
|
+
allowedAutoPlacements = options.allowedAutoPlacements;
|
|
1098
|
+
var preferredPlacement = state.options.placement;
|
|
1099
|
+
var basePlacement = getBasePlacement(preferredPlacement);
|
|
1100
|
+
var isBasePlacement = basePlacement === preferredPlacement;
|
|
1101
|
+
var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
|
|
1102
|
+
var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {
|
|
1103
|
+
return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {
|
|
1104
|
+
placement: placement,
|
|
1105
|
+
boundary: boundary,
|
|
1106
|
+
rootBoundary: rootBoundary,
|
|
1107
|
+
padding: padding,
|
|
1108
|
+
flipVariations: flipVariations,
|
|
1109
|
+
allowedAutoPlacements: allowedAutoPlacements
|
|
1110
|
+
}) : placement);
|
|
1111
|
+
}, []);
|
|
1112
|
+
var referenceRect = state.rects.reference;
|
|
1113
|
+
var popperRect = state.rects.popper;
|
|
1114
|
+
var checksMap = new Map();
|
|
1115
|
+
var makeFallbackChecks = true;
|
|
1116
|
+
var firstFittingPlacement = placements[0];
|
|
1117
|
+
|
|
1118
|
+
for (var i = 0; i < placements.length; i++) {
|
|
1119
|
+
var placement = placements[i];
|
|
1120
|
+
|
|
1121
|
+
var _basePlacement = getBasePlacement(placement);
|
|
1122
|
+
|
|
1123
|
+
var isStartVariation = getVariation(placement) === start;
|
|
1124
|
+
var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;
|
|
1125
|
+
var len = isVertical ? 'width' : 'height';
|
|
1126
|
+
var overflow = detectOverflow(state, {
|
|
1127
|
+
placement: placement,
|
|
1128
|
+
boundary: boundary,
|
|
1129
|
+
rootBoundary: rootBoundary,
|
|
1130
|
+
altBoundary: altBoundary,
|
|
1131
|
+
padding: padding
|
|
1132
|
+
});
|
|
1133
|
+
var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
|
|
1134
|
+
|
|
1135
|
+
if (referenceRect[len] > popperRect[len]) {
|
|
1136
|
+
mainVariationSide = getOppositePlacement(mainVariationSide);
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
var altVariationSide = getOppositePlacement(mainVariationSide);
|
|
1140
|
+
var checks = [];
|
|
1141
|
+
|
|
1142
|
+
if (checkMainAxis) {
|
|
1143
|
+
checks.push(overflow[_basePlacement] <= 0);
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
if (checkAltAxis) {
|
|
1147
|
+
checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
if (checks.every(function (check) {
|
|
1151
|
+
return check;
|
|
1152
|
+
})) {
|
|
1153
|
+
firstFittingPlacement = placement;
|
|
1154
|
+
makeFallbackChecks = false;
|
|
1155
|
+
break;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
checksMap.set(placement, checks);
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
if (makeFallbackChecks) {
|
|
1162
|
+
// `2` may be desired in some cases – research later
|
|
1163
|
+
var numberOfChecks = flipVariations ? 3 : 1;
|
|
1164
|
+
|
|
1165
|
+
var _loop = function _loop(_i) {
|
|
1166
|
+
var fittingPlacement = placements.find(function (placement) {
|
|
1167
|
+
var checks = checksMap.get(placement);
|
|
1168
|
+
|
|
1169
|
+
if (checks) {
|
|
1170
|
+
return checks.slice(0, _i).every(function (check) {
|
|
1171
|
+
return check;
|
|
1172
|
+
});
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
|
|
1176
|
+
if (fittingPlacement) {
|
|
1177
|
+
firstFittingPlacement = fittingPlacement;
|
|
1178
|
+
return "break";
|
|
1179
|
+
}
|
|
1180
|
+
};
|
|
1181
|
+
|
|
1182
|
+
for (var _i = numberOfChecks; _i > 0; _i--) {
|
|
1183
|
+
var _ret = _loop(_i);
|
|
1184
|
+
|
|
1185
|
+
if (_ret === "break") break;
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
if (state.placement !== firstFittingPlacement) {
|
|
1190
|
+
state.modifiersData[name]._skip = true;
|
|
1191
|
+
state.placement = firstFittingPlacement;
|
|
1192
|
+
state.reset = true;
|
|
1193
|
+
}
|
|
1194
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
const flip$1 = {
|
|
1198
|
+
name: 'flip',
|
|
1199
|
+
enabled: true,
|
|
1200
|
+
phase: 'main',
|
|
1201
|
+
fn: flip,
|
|
1202
|
+
requiresIfExists: ['offset'],
|
|
1203
|
+
data: {
|
|
1204
|
+
_skip: false
|
|
1205
|
+
}
|
|
1206
|
+
};
|
|
1207
|
+
|
|
1208
|
+
function getSideOffsets(overflow, rect, preventedOffsets) {
|
|
1209
|
+
if (preventedOffsets === void 0) {
|
|
1210
|
+
preventedOffsets = {
|
|
1211
|
+
x: 0,
|
|
1212
|
+
y: 0
|
|
1213
|
+
};
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
return {
|
|
1217
|
+
top: overflow.top - rect.height - preventedOffsets.y,
|
|
1218
|
+
right: overflow.right - rect.width + preventedOffsets.x,
|
|
1219
|
+
bottom: overflow.bottom - rect.height + preventedOffsets.y,
|
|
1220
|
+
left: overflow.left - rect.width - preventedOffsets.x
|
|
1221
|
+
};
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
function isAnySideFullyClipped(overflow) {
|
|
1225
|
+
return [top, right, bottom, left].some(function (side) {
|
|
1226
|
+
return overflow[side] >= 0;
|
|
1227
|
+
});
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
function hide(_ref) {
|
|
1231
|
+
var state = _ref.state,
|
|
1232
|
+
name = _ref.name;
|
|
1233
|
+
var referenceRect = state.rects.reference;
|
|
1234
|
+
var popperRect = state.rects.popper;
|
|
1235
|
+
var preventedOffsets = state.modifiersData.preventOverflow;
|
|
1236
|
+
var referenceOverflow = detectOverflow(state, {
|
|
1237
|
+
elementContext: 'reference'
|
|
1238
|
+
});
|
|
1239
|
+
var popperAltOverflow = detectOverflow(state, {
|
|
1240
|
+
altBoundary: true
|
|
1241
|
+
});
|
|
1242
|
+
var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
|
|
1243
|
+
var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
|
|
1244
|
+
var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
|
|
1245
|
+
var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
|
|
1246
|
+
state.modifiersData[name] = {
|
|
1247
|
+
referenceClippingOffsets: referenceClippingOffsets,
|
|
1248
|
+
popperEscapeOffsets: popperEscapeOffsets,
|
|
1249
|
+
isReferenceHidden: isReferenceHidden,
|
|
1250
|
+
hasPopperEscaped: hasPopperEscaped
|
|
1251
|
+
};
|
|
1252
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
1253
|
+
'data-popper-reference-hidden': isReferenceHidden,
|
|
1254
|
+
'data-popper-escaped': hasPopperEscaped
|
|
1255
|
+
});
|
|
1256
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
const hide$1 = {
|
|
1260
|
+
name: 'hide',
|
|
1261
|
+
enabled: true,
|
|
1262
|
+
phase: 'main',
|
|
1263
|
+
requiresIfExists: ['preventOverflow'],
|
|
1264
|
+
fn: hide
|
|
1265
|
+
};
|
|
1266
|
+
|
|
1267
|
+
function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
1268
|
+
var basePlacement = getBasePlacement(placement);
|
|
1269
|
+
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
1270
|
+
|
|
1271
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
1272
|
+
placement: placement
|
|
1273
|
+
})) : offset,
|
|
1274
|
+
skidding = _ref[0],
|
|
1275
|
+
distance = _ref[1];
|
|
1276
|
+
|
|
1277
|
+
skidding = skidding || 0;
|
|
1278
|
+
distance = (distance || 0) * invertDistance;
|
|
1279
|
+
return [left, right].indexOf(basePlacement) >= 0 ? {
|
|
1280
|
+
x: distance,
|
|
1281
|
+
y: skidding
|
|
1282
|
+
} : {
|
|
1283
|
+
x: skidding,
|
|
1284
|
+
y: distance
|
|
1285
|
+
};
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
function offset(_ref2) {
|
|
1289
|
+
var state = _ref2.state,
|
|
1290
|
+
options = _ref2.options,
|
|
1291
|
+
name = _ref2.name;
|
|
1292
|
+
var _options$offset = options.offset,
|
|
1293
|
+
offset = _options$offset === void 0 ? [0, 0] : _options$offset;
|
|
1294
|
+
var data = placements.reduce(function (acc, placement) {
|
|
1295
|
+
acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
|
|
1296
|
+
return acc;
|
|
1297
|
+
}, {});
|
|
1298
|
+
var _data$state$placement = data[state.placement],
|
|
1299
|
+
x = _data$state$placement.x,
|
|
1300
|
+
y = _data$state$placement.y;
|
|
1301
|
+
|
|
1302
|
+
if (state.modifiersData.popperOffsets != null) {
|
|
1303
|
+
state.modifiersData.popperOffsets.x += x;
|
|
1304
|
+
state.modifiersData.popperOffsets.y += y;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
state.modifiersData[name] = data;
|
|
1308
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
1309
|
+
|
|
1310
|
+
|
|
1311
|
+
const offset$1 = {
|
|
1312
|
+
name: 'offset',
|
|
1313
|
+
enabled: true,
|
|
1314
|
+
phase: 'main',
|
|
1315
|
+
requires: ['popperOffsets'],
|
|
1316
|
+
fn: offset
|
|
1317
|
+
};
|
|
1318
|
+
|
|
1319
|
+
function popperOffsets(_ref) {
|
|
1320
|
+
var state = _ref.state,
|
|
1321
|
+
name = _ref.name;
|
|
1322
|
+
// Offsets are the actual position the popper needs to have to be
|
|
1323
|
+
// properly positioned near its reference element
|
|
1324
|
+
// This is the most basic placement, and will be adjusted by
|
|
1325
|
+
// the modifiers in the next step
|
|
1326
|
+
state.modifiersData[name] = computeOffsets({
|
|
1327
|
+
reference: state.rects.reference,
|
|
1328
|
+
element: state.rects.popper,
|
|
1329
|
+
strategy: 'absolute',
|
|
1330
|
+
placement: state.placement
|
|
1331
|
+
});
|
|
1332
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
const popperOffsets$1 = {
|
|
1336
|
+
name: 'popperOffsets',
|
|
1337
|
+
enabled: true,
|
|
1338
|
+
phase: 'read',
|
|
1339
|
+
fn: popperOffsets,
|
|
1340
|
+
data: {}
|
|
1341
|
+
};
|
|
1342
|
+
|
|
1343
|
+
function getAltAxis(axis) {
|
|
1344
|
+
return axis === 'x' ? 'y' : 'x';
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
function preventOverflow(_ref) {
|
|
1348
|
+
var state = _ref.state,
|
|
1349
|
+
options = _ref.options,
|
|
1350
|
+
name = _ref.name;
|
|
1351
|
+
var _options$mainAxis = options.mainAxis,
|
|
1352
|
+
checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
|
|
1353
|
+
_options$altAxis = options.altAxis,
|
|
1354
|
+
checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
|
|
1355
|
+
boundary = options.boundary,
|
|
1356
|
+
rootBoundary = options.rootBoundary,
|
|
1357
|
+
altBoundary = options.altBoundary,
|
|
1358
|
+
padding = options.padding,
|
|
1359
|
+
_options$tether = options.tether,
|
|
1360
|
+
tether = _options$tether === void 0 ? true : _options$tether,
|
|
1361
|
+
_options$tetherOffset = options.tetherOffset,
|
|
1362
|
+
tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
|
|
1363
|
+
var overflow = detectOverflow(state, {
|
|
1364
|
+
boundary: boundary,
|
|
1365
|
+
rootBoundary: rootBoundary,
|
|
1366
|
+
padding: padding,
|
|
1367
|
+
altBoundary: altBoundary
|
|
1368
|
+
});
|
|
1369
|
+
var basePlacement = getBasePlacement(state.placement);
|
|
1370
|
+
var variation = getVariation(state.placement);
|
|
1371
|
+
var isBasePlacement = !variation;
|
|
1372
|
+
var mainAxis = getMainAxisFromPlacement(basePlacement);
|
|
1373
|
+
var altAxis = getAltAxis(mainAxis);
|
|
1374
|
+
var popperOffsets = state.modifiersData.popperOffsets;
|
|
1375
|
+
var referenceRect = state.rects.reference;
|
|
1376
|
+
var popperRect = state.rects.popper;
|
|
1377
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
1378
|
+
placement: state.placement
|
|
1379
|
+
})) : tetherOffset;
|
|
1380
|
+
var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
|
|
1381
|
+
mainAxis: tetherOffsetValue,
|
|
1382
|
+
altAxis: tetherOffsetValue
|
|
1383
|
+
} : Object.assign({
|
|
1384
|
+
mainAxis: 0,
|
|
1385
|
+
altAxis: 0
|
|
1386
|
+
}, tetherOffsetValue);
|
|
1387
|
+
var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
|
|
1388
|
+
var data = {
|
|
1389
|
+
x: 0,
|
|
1390
|
+
y: 0
|
|
1391
|
+
};
|
|
1392
|
+
|
|
1393
|
+
if (!popperOffsets) {
|
|
1394
|
+
return;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
if (checkMainAxis) {
|
|
1398
|
+
var _offsetModifierState$;
|
|
1399
|
+
|
|
1400
|
+
var mainSide = mainAxis === 'y' ? top : left;
|
|
1401
|
+
var altSide = mainAxis === 'y' ? bottom : right;
|
|
1402
|
+
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
1403
|
+
var offset = popperOffsets[mainAxis];
|
|
1404
|
+
var min$1 = offset + overflow[mainSide];
|
|
1405
|
+
var max$1 = offset - overflow[altSide];
|
|
1406
|
+
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
1407
|
+
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
1408
|
+
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
1409
|
+
// outside the reference bounds
|
|
1410
|
+
|
|
1411
|
+
var arrowElement = state.elements.arrow;
|
|
1412
|
+
var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
|
|
1413
|
+
width: 0,
|
|
1414
|
+
height: 0
|
|
1415
|
+
};
|
|
1416
|
+
var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();
|
|
1417
|
+
var arrowPaddingMin = arrowPaddingObject[mainSide];
|
|
1418
|
+
var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
|
|
1419
|
+
// to include its full size in the calculation. If the reference is small
|
|
1420
|
+
// and near the edge of a boundary, the popper can overflow even if the
|
|
1421
|
+
// reference is not overflowing as well (e.g. virtual elements with no
|
|
1422
|
+
// width or height)
|
|
1423
|
+
|
|
1424
|
+
var arrowLen = within(0, referenceRect[len], arrowRect[len]);
|
|
1425
|
+
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
|
|
1426
|
+
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
|
|
1427
|
+
var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
|
|
1428
|
+
var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
|
1429
|
+
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
|
|
1430
|
+
var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
|
|
1431
|
+
var tetherMax = offset + maxOffset - offsetModifierValue;
|
|
1432
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
1433
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
1434
|
+
data[mainAxis] = preventedOffset - offset;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
if (checkAltAxis) {
|
|
1438
|
+
var _offsetModifierState$2;
|
|
1439
|
+
|
|
1440
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
1441
|
+
|
|
1442
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
1443
|
+
|
|
1444
|
+
var _offset = popperOffsets[altAxis];
|
|
1445
|
+
|
|
1446
|
+
var _len = altAxis === 'y' ? 'height' : 'width';
|
|
1447
|
+
|
|
1448
|
+
var _min = _offset + overflow[_mainSide];
|
|
1449
|
+
|
|
1450
|
+
var _max = _offset - overflow[_altSide];
|
|
1451
|
+
|
|
1452
|
+
var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
|
|
1453
|
+
|
|
1454
|
+
var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
|
|
1455
|
+
|
|
1456
|
+
var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
|
|
1457
|
+
|
|
1458
|
+
var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
|
|
1459
|
+
|
|
1460
|
+
var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
|
|
1461
|
+
|
|
1462
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
1463
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
state.modifiersData[name] = data;
|
|
1467
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+
const preventOverflow$1 = {
|
|
1471
|
+
name: 'preventOverflow',
|
|
1472
|
+
enabled: true,
|
|
1473
|
+
phase: 'main',
|
|
1474
|
+
fn: preventOverflow,
|
|
1475
|
+
requiresIfExists: ['offset']
|
|
1476
|
+
};
|
|
1477
|
+
|
|
1478
|
+
function getHTMLElementScroll(element) {
|
|
1479
|
+
return {
|
|
1480
|
+
scrollLeft: element.scrollLeft,
|
|
1481
|
+
scrollTop: element.scrollTop
|
|
1482
|
+
};
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
function getNodeScroll(node) {
|
|
1486
|
+
if (node === getWindow(node) || !isHTMLElement(node)) {
|
|
1487
|
+
return getWindowScroll(node);
|
|
1488
|
+
} else {
|
|
1489
|
+
return getHTMLElementScroll(node);
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
function isElementScaled(element) {
|
|
1494
|
+
var rect = element.getBoundingClientRect();
|
|
1495
|
+
var scaleX = round(rect.width) / element.offsetWidth || 1;
|
|
1496
|
+
var scaleY = round(rect.height) / element.offsetHeight || 1;
|
|
1497
|
+
return scaleX !== 1 || scaleY !== 1;
|
|
1498
|
+
} // Returns the composite rect of an element relative to its offsetParent.
|
|
1499
|
+
// Composite means it takes into account transforms as well as layout.
|
|
1500
|
+
|
|
1501
|
+
|
|
1502
|
+
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
1503
|
+
if (isFixed === void 0) {
|
|
1504
|
+
isFixed = false;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1508
|
+
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
1509
|
+
var documentElement = getDocumentElement(offsetParent);
|
|
1510
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
|
|
1511
|
+
var scroll = {
|
|
1512
|
+
scrollLeft: 0,
|
|
1513
|
+
scrollTop: 0
|
|
1514
|
+
};
|
|
1515
|
+
var offsets = {
|
|
1516
|
+
x: 0,
|
|
1517
|
+
y: 0
|
|
1518
|
+
};
|
|
1519
|
+
|
|
1520
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1521
|
+
if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
|
|
1522
|
+
isScrollParent(documentElement)) {
|
|
1523
|
+
scroll = getNodeScroll(offsetParent);
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
if (isHTMLElement(offsetParent)) {
|
|
1527
|
+
offsets = getBoundingClientRect(offsetParent, true);
|
|
1528
|
+
offsets.x += offsetParent.clientLeft;
|
|
1529
|
+
offsets.y += offsetParent.clientTop;
|
|
1530
|
+
} else if (documentElement) {
|
|
1531
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
return {
|
|
1536
|
+
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
1537
|
+
y: rect.top + scroll.scrollTop - offsets.y,
|
|
1538
|
+
width: rect.width,
|
|
1539
|
+
height: rect.height
|
|
1540
|
+
};
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
function order(modifiers) {
|
|
1544
|
+
var map = new Map();
|
|
1545
|
+
var visited = new Set();
|
|
1546
|
+
var result = [];
|
|
1547
|
+
modifiers.forEach(function (modifier) {
|
|
1548
|
+
map.set(modifier.name, modifier);
|
|
1549
|
+
}); // On visiting object, check for its dependencies and visit them recursively
|
|
1550
|
+
|
|
1551
|
+
function sort(modifier) {
|
|
1552
|
+
visited.add(modifier.name);
|
|
1553
|
+
var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
|
|
1554
|
+
requires.forEach(function (dep) {
|
|
1555
|
+
if (!visited.has(dep)) {
|
|
1556
|
+
var depModifier = map.get(dep);
|
|
1557
|
+
|
|
1558
|
+
if (depModifier) {
|
|
1559
|
+
sort(depModifier);
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
});
|
|
1563
|
+
result.push(modifier);
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
modifiers.forEach(function (modifier) {
|
|
1567
|
+
if (!visited.has(modifier.name)) {
|
|
1568
|
+
// check for visited object
|
|
1569
|
+
sort(modifier);
|
|
1570
|
+
}
|
|
1571
|
+
});
|
|
1572
|
+
return result;
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
function orderModifiers(modifiers) {
|
|
1576
|
+
// order based on dependencies
|
|
1577
|
+
var orderedModifiers = order(modifiers); // order based on phase
|
|
1578
|
+
|
|
1579
|
+
return modifierPhases.reduce(function (acc, phase) {
|
|
1580
|
+
return acc.concat(orderedModifiers.filter(function (modifier) {
|
|
1581
|
+
return modifier.phase === phase;
|
|
1582
|
+
}));
|
|
1583
|
+
}, []);
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
function debounce(fn) {
|
|
1587
|
+
var pending;
|
|
1588
|
+
return function () {
|
|
1589
|
+
if (!pending) {
|
|
1590
|
+
pending = new Promise(function (resolve) {
|
|
1591
|
+
Promise.resolve().then(function () {
|
|
1592
|
+
pending = undefined;
|
|
1593
|
+
resolve(fn());
|
|
1594
|
+
});
|
|
1595
|
+
});
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
return pending;
|
|
1599
|
+
};
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
function mergeByName(modifiers) {
|
|
1603
|
+
var merged = modifiers.reduce(function (merged, current) {
|
|
1604
|
+
var existing = merged[current.name];
|
|
1605
|
+
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
1606
|
+
options: Object.assign({}, existing.options, current.options),
|
|
1607
|
+
data: Object.assign({}, existing.data, current.data)
|
|
1608
|
+
}) : current;
|
|
1609
|
+
return merged;
|
|
1610
|
+
}, {}); // IE11 does not support Object.values
|
|
1611
|
+
|
|
1612
|
+
return Object.keys(merged).map(function (key) {
|
|
1613
|
+
return merged[key];
|
|
1614
|
+
});
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
var DEFAULT_OPTIONS = {
|
|
1618
|
+
placement: 'bottom',
|
|
1619
|
+
modifiers: [],
|
|
1620
|
+
strategy: 'absolute'
|
|
1621
|
+
};
|
|
1622
|
+
|
|
1623
|
+
function areValidElements() {
|
|
1624
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1625
|
+
args[_key] = arguments[_key];
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
return !args.some(function (element) {
|
|
1629
|
+
return !(element && typeof element.getBoundingClientRect === 'function');
|
|
1630
|
+
});
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
function popperGenerator(generatorOptions) {
|
|
1634
|
+
if (generatorOptions === void 0) {
|
|
1635
|
+
generatorOptions = {};
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
var _generatorOptions = generatorOptions,
|
|
1639
|
+
_generatorOptions$def = _generatorOptions.defaultModifiers,
|
|
1640
|
+
defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
|
|
1641
|
+
_generatorOptions$def2 = _generatorOptions.defaultOptions,
|
|
1642
|
+
defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
|
|
1643
|
+
return function createPopper(reference, popper, options) {
|
|
1644
|
+
if (options === void 0) {
|
|
1645
|
+
options = defaultOptions;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
var state = {
|
|
1649
|
+
placement: 'bottom',
|
|
1650
|
+
orderedModifiers: [],
|
|
1651
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
1652
|
+
modifiersData: {},
|
|
1653
|
+
elements: {
|
|
1654
|
+
reference: reference,
|
|
1655
|
+
popper: popper
|
|
1656
|
+
},
|
|
1657
|
+
attributes: {},
|
|
1658
|
+
styles: {}
|
|
1659
|
+
};
|
|
1660
|
+
var effectCleanupFns = [];
|
|
1661
|
+
var isDestroyed = false;
|
|
1662
|
+
var instance = {
|
|
1663
|
+
state: state,
|
|
1664
|
+
setOptions: function setOptions(setOptionsAction) {
|
|
1665
|
+
var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
|
|
1666
|
+
cleanupModifierEffects();
|
|
1667
|
+
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
1668
|
+
state.scrollParents = {
|
|
1669
|
+
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
1670
|
+
popper: listScrollParents(popper)
|
|
1671
|
+
}; // Orders the modifiers based on their dependencies and `phase`
|
|
1672
|
+
// properties
|
|
1673
|
+
|
|
1674
|
+
var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
|
|
1675
|
+
|
|
1676
|
+
state.orderedModifiers = orderedModifiers.filter(function (m) {
|
|
1677
|
+
return m.enabled;
|
|
1678
|
+
});
|
|
1679
|
+
runModifierEffects();
|
|
1680
|
+
return instance.update();
|
|
1681
|
+
},
|
|
1682
|
+
// Sync update – it will always be executed, even if not necessary. This
|
|
1683
|
+
// is useful for low frequency updates where sync behavior simplifies the
|
|
1684
|
+
// logic.
|
|
1685
|
+
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
1686
|
+
// prefer the async Popper#update method
|
|
1687
|
+
forceUpdate: function forceUpdate() {
|
|
1688
|
+
if (isDestroyed) {
|
|
1689
|
+
return;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
var _state$elements = state.elements,
|
|
1693
|
+
reference = _state$elements.reference,
|
|
1694
|
+
popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
|
|
1695
|
+
// anymore
|
|
1696
|
+
|
|
1697
|
+
if (!areValidElements(reference, popper)) {
|
|
1698
|
+
return;
|
|
1699
|
+
} // Store the reference and popper rects to be read by modifiers
|
|
1700
|
+
|
|
1701
|
+
|
|
1702
|
+
state.rects = {
|
|
1703
|
+
reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
|
|
1704
|
+
popper: getLayoutRect(popper)
|
|
1705
|
+
}; // Modifiers have the ability to reset the current update cycle. The
|
|
1706
|
+
// most common use case for this is the `flip` modifier changing the
|
|
1707
|
+
// placement, which then needs to re-run all the modifiers, because the
|
|
1708
|
+
// logic was previously ran for the previous placement and is therefore
|
|
1709
|
+
// stale/incorrect
|
|
1710
|
+
|
|
1711
|
+
state.reset = false;
|
|
1712
|
+
state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
|
|
1713
|
+
// is filled with the initial data specified by the modifier. This means
|
|
1714
|
+
// it doesn't persist and is fresh on each update.
|
|
1715
|
+
// To ensure persistent data, use `${name}#persistent`
|
|
1716
|
+
|
|
1717
|
+
state.orderedModifiers.forEach(function (modifier) {
|
|
1718
|
+
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
1719
|
+
});
|
|
1720
|
+
|
|
1721
|
+
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
1722
|
+
if (state.reset === true) {
|
|
1723
|
+
state.reset = false;
|
|
1724
|
+
index = -1;
|
|
1725
|
+
continue;
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
var _state$orderedModifie = state.orderedModifiers[index],
|
|
1729
|
+
fn = _state$orderedModifie.fn,
|
|
1730
|
+
_state$orderedModifie2 = _state$orderedModifie.options,
|
|
1731
|
+
_options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
|
|
1732
|
+
name = _state$orderedModifie.name;
|
|
1733
|
+
|
|
1734
|
+
if (typeof fn === 'function') {
|
|
1735
|
+
state = fn({
|
|
1736
|
+
state: state,
|
|
1737
|
+
options: _options,
|
|
1738
|
+
name: name,
|
|
1739
|
+
instance: instance
|
|
1740
|
+
}) || state;
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
},
|
|
1744
|
+
// Async and optimistically optimized update – it will not be executed if
|
|
1745
|
+
// not necessary (debounced to run at most once-per-tick)
|
|
1746
|
+
update: debounce(function () {
|
|
1747
|
+
return new Promise(function (resolve) {
|
|
1748
|
+
instance.forceUpdate();
|
|
1749
|
+
resolve(state);
|
|
1750
|
+
});
|
|
1751
|
+
}),
|
|
1752
|
+
destroy: function destroy() {
|
|
1753
|
+
cleanupModifierEffects();
|
|
1754
|
+
isDestroyed = true;
|
|
1755
|
+
}
|
|
1756
|
+
};
|
|
1757
|
+
|
|
1758
|
+
if (!areValidElements(reference, popper)) {
|
|
1759
|
+
return instance;
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1762
|
+
instance.setOptions(options).then(function (state) {
|
|
1763
|
+
if (!isDestroyed && options.onFirstUpdate) {
|
|
1764
|
+
options.onFirstUpdate(state);
|
|
1765
|
+
}
|
|
1766
|
+
}); // Modifiers have the ability to execute arbitrary code before the first
|
|
1767
|
+
// update cycle runs. They will be executed in the same order as the update
|
|
1768
|
+
// cycle. This is useful when a modifier adds some persistent data that
|
|
1769
|
+
// other modifiers need to use, but the modifier is run after the dependent
|
|
1770
|
+
// one.
|
|
1771
|
+
|
|
1772
|
+
function runModifierEffects() {
|
|
1773
|
+
state.orderedModifiers.forEach(function (_ref) {
|
|
1774
|
+
var name = _ref.name,
|
|
1775
|
+
_ref$options = _ref.options,
|
|
1776
|
+
options = _ref$options === void 0 ? {} : _ref$options,
|
|
1777
|
+
effect = _ref.effect;
|
|
1778
|
+
|
|
1779
|
+
if (typeof effect === 'function') {
|
|
1780
|
+
var cleanupFn = effect({
|
|
1781
|
+
state: state,
|
|
1782
|
+
name: name,
|
|
1783
|
+
instance: instance,
|
|
1784
|
+
options: options
|
|
1785
|
+
});
|
|
1786
|
+
|
|
1787
|
+
var noopFn = function noopFn() {};
|
|
1788
|
+
|
|
1789
|
+
effectCleanupFns.push(cleanupFn || noopFn);
|
|
1790
|
+
}
|
|
1791
|
+
});
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
function cleanupModifierEffects() {
|
|
1795
|
+
effectCleanupFns.forEach(function (fn) {
|
|
1796
|
+
return fn();
|
|
1797
|
+
});
|
|
1798
|
+
effectCleanupFns = [];
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
return instance;
|
|
1802
|
+
};
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1, offset$1, flip$1, preventOverflow$1, arrow$1, hide$1];
|
|
1806
|
+
var createPopper = /*#__PURE__*/popperGenerator({
|
|
1807
|
+
defaultModifiers: defaultModifiers
|
|
1808
|
+
}); // eslint-disable-next-line import/no-unused-modules
|
|
1809
|
+
|
|
1810
|
+
const balPopoverCss = ".bal-popover__backdrop{bottom:0;left:0;position:absolute;right:0;top:0}:root{--bal-popover-backdrop-height:100vh;--bal-popover-content-height-top-nav:100vh;--bal-popover-backdrop-background:var(--bal-color-primary-6);--bal-popover-backdrop-opacity:.8;--bal-popover-content-shadow:var(--bal-shadow-normal);--bal-popover-content-background:var(--bal-color-white);--bal-popover-content-background-grey:var(--bal-color-grey-2);--bal-popover-tooltip-background:var(--bal-color-primary-6);--bal-popover-tooltip-color:var(--bal-color-white);--bal-popover-tooltip-font-family:var(--bal-font-family-text);--bal-popover-tooltip-font-size:var(--bal-text-size-small)}.bal-popover{display:block}@media screen and (max-width: 768px){.bal-popover .bal-popover__content{min-width:100vw !important}.bal-popover .bal-select__popover{min-width:100% !important}}.bal-popover--active .bal-popover__content{display:block}.bal-popover--backdrop [bal-popover-trigger]{z-index:calc(var(--bal-z-index-popup) - 1);position:relative}@media screen and (max-width: 768px){.bal-popover--hint .bal-popover__content{min-height:100vh}.bal-popover--hint .bal-popover__content .bal-popover__content__inner{min-height:100vh}}@media screen and (min-width: 769px),print{.bal-popover--hint .bal-popover__content{max-width:20rem}}@media screen and (min-width: 1024px){.bal-popover--hint .bal-popover__content{max-width:30rem}}.bal-popover__backdrop{z-index:calc(var(--bal-z-index-popup) - 2);position:fixed;background:var(--bal-popover-backdrop-background);opacity:var(--bal-popover-backdrop-opacity);height:var(--bal-popover-backdrop-height);width:100vw}.bal-popover__content{display:none;z-index:var(--bal-z-index-popup);-webkit-box-shadow:var(--bal-popover-content-shadow);box-shadow:var(--bal-popover-content-shadow);background:var(--bal-popover-content-background);min-width:16.25rem}.bal-popover__content[data-show]{display:block}.bal-popover__content--expanded{min-width:100%}.bal-popover__content--no-shadow{-webkit-box-shadow:none;box-shadow:none}.bal-popover__content--radius-normal{border-radius:var(--bal-radius-normal)}.bal-popover__content--radius-large{border-radius:var(--bal-radius-large)}.bal-popover__content--radius-none{border-radius:0}.bal-popover__content--radius-normal-bottom-none{border-radius:var(--bal-radius-normal);border-bottom-right-radius:0;border-bottom-left-radius:0}.bal-popover__content--radius-normal-top-none{border-radius:var(--bal-radius-normal);border-top-left-radius:0;border-top-right-radius:0}.bal-popover__content--radius-large-bottom-none{border-radius:var(--bal-radius-large);border-bottom-right-radius:0;border-bottom-left-radius:0}.bal-popover__content--radius-large-top-none{border-radius:var(--bal-radius-large);border-top-left-radius:0;border-top-right-radius:0}.bal-popover__content--on-top{border-top:1px solid var(--bal-color-grey-2);height:var(--bal-popover-content-height-top-nav);overflow-y:auto}.bal-popover__content--color-grey{background:var(--bal-popover-content-background-grey)}.bal-popover__content__inner{max-height:calc(100vh - 4.5rem);overflow:auto;padding:1rem}@media screen and (min-width: 769px),print{.bal-popover__content__inner{padding:1.5rem}}@media screen and (min-width: 1024px){.bal-popover__content__inner{max-height:calc(100vh - 8rem)}}.bal-popover__content--spaceless .bal-popover__content__inner{padding:0}.bal-popover__content [data-popper-arrow]{display:none}.bal-popover__content__arrow{visibility:hidden}.bal-popover__content__arrow [data-popper-arrow]{display:block}.bal-popover__content__arrow,.bal-popover__content__arrow:before{position:absolute;width:.5rem;height:.5rem;background:inherit}.bal-popover__content__arrow:before{visibility:visible;content:\"\";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.bal-popover__content[data-popper-placement^=top]>.bal-popover__content__arrow{bottom:-0.25rem}.bal-popover__content[data-popper-placement^=bottom]>.bal-popover__content__arrow{top:-0.25rem}.bal-popover__content[data-popper-placement^=left]>.bal-popover__content__arrow{right:-0.25rem}.bal-popover__content[data-popper-placement^=right]>.bal-popover__content__arrow{left:-0.25rem}.bal-popover--arrow .bal-popover__content__arrow{display:block}.bal-popover--tooltip .bal-popover__content{min-width:unset;background:var(--bal-popover-tooltip-background)}.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner{padding:var(--bal-space-x-small)}.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner,.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner p{color:var(--bal-popover-tooltip-color);font-family:var(--bal-popover-tooltip-font-family);font-size:var(--bal-popover-tooltip-font-size)}";
|
|
1811
|
+
const BalPopoverStyle0 = balPopoverCss;
|
|
1812
|
+
|
|
1813
|
+
const Popover = class {
|
|
1814
|
+
constructor(hostRef) {
|
|
1815
|
+
index.registerInstance(this, hostRef);
|
|
1816
|
+
this.balChange = index.createEvent(this, "balChange", 7);
|
|
1817
|
+
this.balWillAnimate = index.createEvent(this, "balWillAnimate", 7);
|
|
1818
|
+
this.balDidAnimate = index.createEvent(this, "balDidAnimate", 7);
|
|
1819
|
+
this.balPopoverPrepare = index.createEvent(this, "balPopoverPrepare", 7);
|
|
1820
|
+
this.popoverId = `bal-po-${PopoverIds++}`;
|
|
1821
|
+
this.isTouch = breakpoints_subject.balBreakpoints.isTouch;
|
|
1822
|
+
this.isInMainNav = false;
|
|
1823
|
+
this.backdropHeight = 0;
|
|
1824
|
+
this.autoTrigger = false;
|
|
1825
|
+
this.hint = false;
|
|
1826
|
+
this.hover = false;
|
|
1827
|
+
this.arrow = false;
|
|
1828
|
+
this.backdrop = false;
|
|
1829
|
+
this.tooltip = false;
|
|
1830
|
+
this.offsetX = 0;
|
|
1831
|
+
this.offsetY = 0;
|
|
1832
|
+
this.padding = 0;
|
|
1833
|
+
this.position = 'bottom-start';
|
|
1834
|
+
this.active = false;
|
|
1835
|
+
this.mobileTop = false;
|
|
1836
|
+
}
|
|
1837
|
+
createLogger(log) {
|
|
1838
|
+
this.log = log;
|
|
1839
|
+
}
|
|
1840
|
+
/**
|
|
1841
|
+
* Update the native input element when the value changes
|
|
1842
|
+
*/
|
|
1843
|
+
async activeChanged(newValue, oldValue) {
|
|
1844
|
+
if (newValue === true && newValue !== oldValue) {
|
|
1845
|
+
this.present({ force: true });
|
|
1846
|
+
}
|
|
1847
|
+
else {
|
|
1848
|
+
this.dismiss({ force: true });
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
/**
|
|
1852
|
+
* LIFECYCLE
|
|
1853
|
+
* ------------------------------------------------------
|
|
1854
|
+
*/
|
|
1855
|
+
componentWillLoad() {
|
|
1856
|
+
this.backdropHeight = this.getBackdropHeight();
|
|
1857
|
+
}
|
|
1858
|
+
componentDidLoad() {
|
|
1859
|
+
this.isInMainNav = this.footMobileNav !== null;
|
|
1860
|
+
if (this.triggerElement && this.menuElement) {
|
|
1861
|
+
this.popperInstance = createPopper(this.triggerElement, this.menuElement, {
|
|
1862
|
+
placement: this.tooltip ? 'bottom' : this.position,
|
|
1863
|
+
modifiers: [this.modifierOffset, this.modifierPreventOverflow],
|
|
1864
|
+
});
|
|
1865
|
+
let showEvents = [];
|
|
1866
|
+
let hideEvents = [];
|
|
1867
|
+
if (this.autoTrigger) {
|
|
1868
|
+
showEvents = ['click'];
|
|
1869
|
+
}
|
|
1870
|
+
if (this.tooltip) {
|
|
1871
|
+
showEvents = ['mouseenter', 'focus'];
|
|
1872
|
+
hideEvents = ['mouseleave', 'blur'];
|
|
1873
|
+
}
|
|
1874
|
+
showEvents.forEach(event => {
|
|
1875
|
+
if (this.triggerElement) {
|
|
1876
|
+
if (event === 'click') {
|
|
1877
|
+
this.triggerElement.addEventListener(event, () => this.toggle());
|
|
1878
|
+
}
|
|
1879
|
+
else {
|
|
1880
|
+
this.triggerElement.addEventListener(event, () => this.present());
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
});
|
|
1884
|
+
hideEvents.forEach(event => {
|
|
1885
|
+
if (this.triggerElement) {
|
|
1886
|
+
this.triggerElement.addEventListener(event, () => this.dismiss());
|
|
1887
|
+
}
|
|
1888
|
+
});
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
componentDidRender() {
|
|
1892
|
+
if (this.popperInstance) {
|
|
1893
|
+
this.popperInstance.setOptions((options) => (Object.assign(Object.assign({}, options), { placement: this.tooltip ? 'bottom' : this.position, modifiers: [
|
|
1894
|
+
...options.modifiers.filter((m) => m.name !== 'offset' && m.name !== 'preventOverflow'),
|
|
1895
|
+
this.modifierOffset,
|
|
1896
|
+
this.modifierPreventOverflow,
|
|
1897
|
+
] })));
|
|
1898
|
+
this.updatePopper();
|
|
1899
|
+
}
|
|
1900
|
+
// Bug fix for https://github.com/baloise/design-system/issues/551
|
|
1901
|
+
if (browser.balBrowser.isSafari && !this.isTouch) {
|
|
1902
|
+
clearTimeout(this.componentDidRenderTimer);
|
|
1903
|
+
this.componentDidRenderTimer = setTimeout(() => {
|
|
1904
|
+
var _a;
|
|
1905
|
+
const triggerWidth = (_a = this.element) === null || _a === void 0 ? void 0 : _a.clientWidth;
|
|
1906
|
+
if (triggerWidth) {
|
|
1907
|
+
this.element.style.maxWidth = `${triggerWidth}px`;
|
|
1908
|
+
}
|
|
1909
|
+
else {
|
|
1910
|
+
this.element.style.maxWidth = `initial`;
|
|
1911
|
+
}
|
|
1912
|
+
});
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
/**
|
|
1916
|
+
* LISTENERS
|
|
1917
|
+
* ------------------------------------------------------
|
|
1918
|
+
*/
|
|
1919
|
+
handlePopoverPrepare(ev) {
|
|
1920
|
+
const popoverId = ev.detail;
|
|
1921
|
+
if (this.popoverId !== popoverId) {
|
|
1922
|
+
this.dismiss();
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
async clickOnOutside(ev) {
|
|
1926
|
+
var _a;
|
|
1927
|
+
if (this.active) {
|
|
1928
|
+
if (!this.element.contains(ev.target)) {
|
|
1929
|
+
this.active = false;
|
|
1930
|
+
}
|
|
1931
|
+
if ((_a = this.backdropElement) === null || _a === void 0 ? void 0 : _a.isEqualNode(ev.target)) {
|
|
1932
|
+
this.active = false;
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
handleKeyUp(ev) {
|
|
1937
|
+
if (this.active && (ev.key === 'Escape' || ev.key === 'Esc')) {
|
|
1938
|
+
ev.preventDefault();
|
|
1939
|
+
this.dismiss();
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
async tabOutside(ev) {
|
|
1943
|
+
if (ev.key === 'Tab' && !this.element.contains(document.activeElement) && this.active) {
|
|
1944
|
+
await this.toggle();
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
breakpointListener(breakpoints) {
|
|
1948
|
+
this.isTouch = breakpoints.touch;
|
|
1949
|
+
this.isInMainNav = this.footMobileNav !== null;
|
|
1950
|
+
this.backdropHeight = this.getBackdropHeight();
|
|
1951
|
+
}
|
|
1952
|
+
/**
|
|
1953
|
+
* PUBLIC METHODS
|
|
1954
|
+
* ------------------------------------------------------
|
|
1955
|
+
*/
|
|
1956
|
+
/**
|
|
1957
|
+
* Open the popover
|
|
1958
|
+
*/
|
|
1959
|
+
async present(options = { force: false }) {
|
|
1960
|
+
var _a, _b;
|
|
1961
|
+
if (!this.active || options.force) {
|
|
1962
|
+
(_a = this.menuElement) === null || _a === void 0 ? void 0 : _a.setAttribute('data-show', '');
|
|
1963
|
+
(_b = this.menuElement) === null || _b === void 0 ? void 0 : _b.setAttribute('aria-hidden', 'false');
|
|
1964
|
+
if (this.menuInnerElement) {
|
|
1965
|
+
this.menuInnerElement.scrollTo(0, 0);
|
|
1966
|
+
}
|
|
1967
|
+
this.balPopoverPrepare.emit(this.popoverId);
|
|
1968
|
+
this.balWillAnimate.emit(this.active);
|
|
1969
|
+
this.active = true;
|
|
1970
|
+
this.popperInstance.setOptions((options) => (Object.assign(Object.assign({}, options), { modifiers: [...options.modifiers, { name: 'eventListeners', enabled: true }] })));
|
|
1971
|
+
this.updatePopper();
|
|
1972
|
+
this.balChange.emit(this.active);
|
|
1973
|
+
this.balDidAnimate.emit(this.active);
|
|
1974
|
+
}
|
|
1975
|
+
}
|
|
1976
|
+
/**
|
|
1977
|
+
* Closes the popover
|
|
1978
|
+
*/
|
|
1979
|
+
async dismiss(options = { force: false }) {
|
|
1980
|
+
var _a, _b;
|
|
1981
|
+
if (this.active || options.force) {
|
|
1982
|
+
(_a = this.menuElement) === null || _a === void 0 ? void 0 : _a.removeAttribute('data-show');
|
|
1983
|
+
(_b = this.menuElement) === null || _b === void 0 ? void 0 : _b.setAttribute('aria-hidden', 'true');
|
|
1984
|
+
this.balWillAnimate.emit(this.active);
|
|
1985
|
+
this.active = false;
|
|
1986
|
+
this.popperInstance.setOptions((options) => (Object.assign(Object.assign({}, options), { modifiers: [...options.modifiers, { name: 'eventListeners', enabled: false }] })));
|
|
1987
|
+
this.updatePopper();
|
|
1988
|
+
this.balChange.emit(this.active);
|
|
1989
|
+
this.balDidAnimate.emit(this.active);
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
/**
|
|
1993
|
+
* Open or closes the popover
|
|
1994
|
+
*/
|
|
1995
|
+
async toggle(options = { force: false }) {
|
|
1996
|
+
if (this.active) {
|
|
1997
|
+
await this.dismiss(options);
|
|
1998
|
+
}
|
|
1999
|
+
else {
|
|
2000
|
+
await this.present(options);
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
/**
|
|
2004
|
+
* GETTERS
|
|
2005
|
+
* ------------------------------------------------------
|
|
2006
|
+
*/
|
|
2007
|
+
get footMobileNav() {
|
|
2008
|
+
return this.element.closest('[slot="meta-mobile-foot"]');
|
|
2009
|
+
}
|
|
2010
|
+
get modifierOffset() {
|
|
2011
|
+
return {
|
|
2012
|
+
name: 'offset',
|
|
2013
|
+
options: {
|
|
2014
|
+
offset: [this.offsetX, this.offsetY + (this.tooltip || this.arrow ? 8 : 0)],
|
|
2015
|
+
},
|
|
2016
|
+
};
|
|
2017
|
+
}
|
|
2018
|
+
get modifierPreventOverflow() {
|
|
2019
|
+
return {
|
|
2020
|
+
name: 'preventOverflow',
|
|
2021
|
+
options: {
|
|
2022
|
+
padding: this.arrow || this.tooltip ? 8 : this.padding,
|
|
2023
|
+
altAxis: true,
|
|
2024
|
+
},
|
|
2025
|
+
};
|
|
2026
|
+
}
|
|
2027
|
+
get triggerElement() {
|
|
2028
|
+
return this.element.querySelector('[bal-popover-trigger]');
|
|
2029
|
+
}
|
|
2030
|
+
get menuElement() {
|
|
2031
|
+
return this.element.querySelector('bal-popover-content');
|
|
2032
|
+
}
|
|
2033
|
+
get menuInnerElement() {
|
|
2034
|
+
return this.element.querySelector('.bal-popover__content__inner');
|
|
2035
|
+
}
|
|
2036
|
+
getBackdropHeight() {
|
|
2037
|
+
if (browser.balBrowser.hasWindow) {
|
|
2038
|
+
return this.isInMainNav ? (window.innerHeight - (this.isTouch ? 64 : 48)) / 16 : window.innerHeight / 16;
|
|
2039
|
+
}
|
|
2040
|
+
return 0;
|
|
2041
|
+
}
|
|
2042
|
+
/**
|
|
2043
|
+
* PRIVATE METHODS
|
|
2044
|
+
* ------------------------------------------------------
|
|
2045
|
+
*/
|
|
2046
|
+
updatePopper() {
|
|
2047
|
+
this.popperInstance.update();
|
|
2048
|
+
}
|
|
2049
|
+
/**
|
|
2050
|
+
* RENDER
|
|
2051
|
+
* ------------------------------------------------------
|
|
2052
|
+
*/
|
|
2053
|
+
render() {
|
|
2054
|
+
const block = bem.BEM.block('popover');
|
|
2055
|
+
return (index.h(index.Host, { "aria-presented": this.active ? 'true' : null, "data-id": this.popoverId, class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('active').class(this.active)), block.modifier('tooltip').class(this.tooltip)), block.modifier('arrow').class(this.arrow)), block.modifier('hint').class(this.hint)), block.modifier('backdrop').class(this.backdrop)) }, !this.mobileTop && (index.h("div", { ref: el => {
|
|
2056
|
+
this.backdropElement = el;
|
|
2057
|
+
}, class: Object.assign({}, block.element('backdrop').class(this.backdrop && this.active)), style: {
|
|
2058
|
+
'--bal-popover-backdrop-height': `${this.backdropHeight}rem`,
|
|
2059
|
+
} })), index.h("slot", null)));
|
|
2060
|
+
}
|
|
2061
|
+
get element() { return index.getElement(this); }
|
|
2062
|
+
static get watchers() { return {
|
|
2063
|
+
"active": ["activeChanged"]
|
|
2064
|
+
}; }
|
|
2065
|
+
};
|
|
2066
|
+
tslib_es6.__decorate([
|
|
2067
|
+
log.Logger('bal-popover'),
|
|
2068
|
+
tslib_es6.__metadata("design:type", Function),
|
|
2069
|
+
tslib_es6.__metadata("design:paramtypes", [Function]),
|
|
2070
|
+
tslib_es6.__metadata("design:returntype", void 0)
|
|
2071
|
+
], Popover.prototype, "createLogger", null);
|
|
2072
|
+
tslib_es6.__decorate([
|
|
2073
|
+
breakpoints_decorator.ListenToBreakpoints(),
|
|
2074
|
+
tslib_es6.__metadata("design:type", Function),
|
|
2075
|
+
tslib_es6.__metadata("design:paramtypes", [Object]),
|
|
2076
|
+
tslib_es6.__metadata("design:returntype", void 0)
|
|
2077
|
+
], Popover.prototype, "breakpointListener", null);
|
|
2078
|
+
let PopoverIds = 0;
|
|
2079
|
+
Popover.style = BalPopoverStyle0;
|
|
2080
|
+
|
|
2081
|
+
const PopoverContent = class {
|
|
2082
|
+
constructor(hostRef) {
|
|
2083
|
+
index.registerInstance(this, hostRef);
|
|
2084
|
+
this.isTouch = breakpoints_subject.balBreakpoints.isTouch; // need this part to improve a none side effect import
|
|
2085
|
+
this.spaceless = false;
|
|
2086
|
+
this.scrollable = 0;
|
|
2087
|
+
this.contentWidth = 0;
|
|
2088
|
+
this.contentMinWidth = 0;
|
|
2089
|
+
this.color = 'white';
|
|
2090
|
+
this.expanded = false;
|
|
2091
|
+
this.radius = 'normal';
|
|
2092
|
+
this.noShadow = false;
|
|
2093
|
+
this.mobileTop = false;
|
|
2094
|
+
this.contentHeightOnTop = 0;
|
|
2095
|
+
}
|
|
2096
|
+
breakpointListener(_breakpoints) {
|
|
2097
|
+
if (browser.balBrowser.hasWindow) {
|
|
2098
|
+
this.contentHeightOnTop = window.innerHeight - 64;
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
get innerStyle() {
|
|
2102
|
+
let scrollable = {};
|
|
2103
|
+
if (this.scrollable > 0) {
|
|
2104
|
+
scrollable = {
|
|
2105
|
+
'max-height': `${this.scrollable}px`,
|
|
2106
|
+
'overflow': 'auto',
|
|
2107
|
+
};
|
|
2108
|
+
}
|
|
2109
|
+
return Object.assign({}, scrollable);
|
|
2110
|
+
}
|
|
2111
|
+
get contentStyle() {
|
|
2112
|
+
let contentWidth = {};
|
|
2113
|
+
let contentMinWidth = {};
|
|
2114
|
+
const contentHeightOnTopNav = {
|
|
2115
|
+
'--bal-popover-content-height-top-nav': `${this.contentHeightOnTop / 16}rem`,
|
|
2116
|
+
};
|
|
2117
|
+
if (this.contentWidth > 0) {
|
|
2118
|
+
contentWidth = { 'max-width': `${this.contentWidth}px` };
|
|
2119
|
+
}
|
|
2120
|
+
if (this.contentMinWidth > 0) {
|
|
2121
|
+
contentMinWidth = { 'min-width': `${this.contentMinWidth}px` };
|
|
2122
|
+
}
|
|
2123
|
+
return Object.assign(Object.assign(Object.assign({}, contentWidth), contentMinWidth), contentHeightOnTopNav);
|
|
2124
|
+
}
|
|
2125
|
+
componentWillLoad() {
|
|
2126
|
+
if (browser.balBrowser.hasWindow) {
|
|
2127
|
+
this.contentHeightOnTop = window.innerHeight - 64;
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
render() {
|
|
2131
|
+
const block = bem.BEM.block('popover').element('content');
|
|
2132
|
+
return (index.h(index.Host, { class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('expanded').class(this.expanded)), block.modifier('spaceless').class(this.spaceless)), block.modifier('no-shadow').class(this.noShadow)), block.modifier(`radius-${this.radius}`).class()), block.modifier(`color-${this.color}`).class()), block.modifier('on-top').class(this.mobileTop)), "data-testid": "bal-popover-content", role: "tooltip", style: this.contentStyle }, index.h("div", { class: Object.assign({}, block.element('inner').class()), style: this.innerStyle }, index.h("slot", null)), index.h("div", { class: Object.assign({}, block.element('arrow').class()), "data-popper-arrow": true })));
|
|
2133
|
+
}
|
|
2134
|
+
get el() { return index.getElement(this); }
|
|
2135
|
+
};
|
|
2136
|
+
tslib_es6.__decorate([
|
|
2137
|
+
breakpoints_decorator.ListenToBreakpoints(),
|
|
2138
|
+
tslib_es6.__metadata("design:type", Function),
|
|
2139
|
+
tslib_es6.__metadata("design:paramtypes", [Object]),
|
|
2140
|
+
tslib_es6.__metadata("design:returntype", void 0)
|
|
2141
|
+
], PopoverContent.prototype, "breakpointListener", null);
|
|
2142
|
+
|
|
2143
|
+
exports.bal_popover = Popover;
|
|
2144
|
+
exports.bal_popover_content = PopoverContent;
|