@siemens/ix 2.4.1 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/a11y.js +4 -3
- package/components/a11y.js.map +1 -1
- package/components/application-header.js +37 -7
- package/components/application-header.js.map +1 -1
- package/components/avatar.js +12 -4
- package/components/avatar.js.map +1 -1
- package/components/base-button.js +2 -2
- package/components/base-button.js.map +1 -1
- package/components/button.js +13 -4
- package/components/button.js.map +1 -1
- package/components/card-accordion.js +6 -6
- package/components/card-accordion.js.map +1 -1
- package/components/card-content.js +1 -1
- package/components/card-title.js +1 -1
- package/components/card.js +4 -4
- package/components/card.js.map +1 -1
- package/components/col.js +1 -1
- package/components/col.js.map +1 -1
- package/components/context.js +6 -3
- package/components/context.js.map +1 -1
- package/components/date-picker.js +65 -43
- package/components/date-picker.js.map +1 -1
- package/components/date-time-card.js +5 -6
- package/components/date-time-card.js.map +1 -1
- package/components/divider.js +1 -1
- package/components/dropdown-controller.js +156 -0
- package/components/dropdown-controller.js.map +1 -0
- package/components/dropdown-item.js +4 -4
- package/components/dropdown-item.js.map +1 -1
- package/components/dropdown.js +104 -219
- package/components/dropdown.js.map +1 -1
- package/components/field-label.js +164 -0
- package/components/field-label.js.map +1 -0
- package/components/field-wrapper.js +97 -0
- package/components/field-wrapper.js.map +1 -0
- package/components/filter-chip.js +1 -1
- package/components/find-element.js +102 -0
- package/components/find-element.js.map +1 -0
- package/components/floating-ui.dom.esm.js +533 -60
- package/components/floating-ui.dom.esm.js.map +1 -1
- package/components/group-context-menu.js +1 -1
- package/components/group-context-menu.js.map +1 -1
- package/components/group-item.js +2 -2
- package/components/helper-text-util.js +41 -0
- package/components/helper-text-util.js.map +1 -0
- package/components/icon-button.js +2 -2
- package/components/icon-button.js.map +1 -1
- package/components/index.js +43 -4
- package/components/index.js.map +1 -1
- package/components/index3.js +21 -0
- package/components/index3.js.map +1 -0
- package/components/input.util.js +181 -0
- package/components/input.util.js.map +1 -0
- package/components/ix-action-card.js +1 -1
- package/components/ix-action-card.js.map +1 -1
- package/components/ix-application-sidebar.js +1 -1
- package/components/ix-application-switch-modal.js +1 -1
- package/components/ix-application.js +4 -4
- package/components/ix-application.js.map +1 -1
- package/components/ix-basic-navigation.js +2 -2
- package/components/ix-basic-navigation.js.map +1 -1
- package/components/ix-blind.js +5 -5
- package/components/ix-blind.js.map +1 -1
- package/components/ix-breadcrumb.js +9 -10
- package/components/ix-breadcrumb.js.map +1 -1
- package/components/ix-card-list.js +10 -7
- package/components/ix-card-list.js.map +1 -1
- package/components/ix-category-filter.js +155 -81
- package/components/ix-category-filter.js.map +1 -1
- package/components/ix-checkbox-group.d.ts +11 -0
- package/components/ix-checkbox-group.js +111 -0
- package/components/ix-checkbox-group.js.map +1 -0
- package/components/ix-checkbox.d.ts +11 -0
- package/components/ix-checkbox.js +144 -0
- package/components/ix-checkbox.js.map +1 -0
- package/components/ix-chip.js +4 -4
- package/components/ix-chip.js.map +1 -1
- package/components/ix-content-header.js +2 -2
- package/components/ix-content-header.js.map +1 -1
- package/components/ix-content.js +4 -4
- package/components/ix-content.js.map +1 -1
- package/components/ix-css-grid-item.js +1 -1
- package/components/ix-css-grid.js +8 -3
- package/components/ix-css-grid.js.map +1 -1
- package/components/ix-custom-field.d.ts +11 -0
- package/components/ix-custom-field.js +116 -0
- package/components/ix-custom-field.js.map +1 -0
- package/components/ix-date-dropdown.js +29 -16
- package/components/ix-date-dropdown.js.map +1 -1
- package/components/ix-date-input.d.ts +11 -0
- package/components/ix-date-input.js +364 -0
- package/components/ix-date-input.js.map +1 -0
- package/components/ix-datetime-picker.js +11 -11
- package/components/ix-datetime-picker.js.map +1 -1
- package/components/ix-drawer.js +28 -24
- package/components/ix-drawer.js.map +1 -1
- package/components/ix-dropdown-button.js +5 -7
- package/components/ix-dropdown-button.js.map +1 -1
- package/components/ix-dropdown-header.js +1 -1
- package/components/ix-dropdown-header.js.map +1 -1
- package/components/ix-dropdown-quick-actions.js +1 -1
- package/components/ix-empty-state.js +1 -1
- package/components/ix-empty-state.js.map +1 -1
- package/components/ix-event-list-item.js +7 -7
- package/components/ix-event-list-item.js.map +1 -1
- package/components/ix-event-list.js +4 -4
- package/components/ix-event-list.js.map +1 -1
- package/components/ix-expanding-search.js +4 -4
- package/components/ix-field-label.d.ts +11 -0
- package/components/ix-field-label.js +8 -0
- package/components/ix-field-label.js.map +1 -0
- package/components/ix-field-wrapper.d.ts +11 -0
- package/components/ix-field-wrapper.js +8 -0
- package/components/ix-field-wrapper.js.map +1 -0
- package/components/ix-flip-tile-content.js +1 -1
- package/components/ix-flip-tile.js +4 -4
- package/components/ix-group.js +58 -38
- package/components/ix-group.js.map +1 -1
- package/components/ix-helper-text.d.ts +11 -0
- package/components/ix-helper-text.js +97 -0
- package/components/ix-helper-text.js.map +1 -0
- package/components/ix-icon-toggle-button.js +2 -3
- package/components/ix-icon-toggle-button.js.map +1 -1
- package/components/ix-input-group.js +1 -1
- package/components/ix-input.d.ts +11 -0
- package/components/ix-input.js +221 -0
- package/components/ix-input.js.map +1 -0
- package/components/ix-key-value-list.js +1 -1
- package/components/ix-key-value.js +1 -1
- package/components/ix-kpi.js +3 -3
- package/components/ix-kpi.js.map +1 -1
- package/components/ix-layout-auto.d.ts +11 -0
- package/components/ix-layout-auto.js +110 -0
- package/components/ix-layout-auto.js.map +1 -0
- package/components/ix-link-button.js +3 -3
- package/components/ix-map-navigation.js +3 -3
- package/components/ix-map-navigation.js.map +1 -1
- package/components/ix-menu-about-item.js +1 -1
- package/components/ix-menu-about-news.js +4 -4
- package/components/ix-menu-about-news.js.map +1 -1
- package/components/ix-menu-about.js +1 -1
- package/components/ix-menu-avatar.js +2 -2
- package/components/ix-menu-category.js +5 -5
- package/components/ix-menu-category.js.map +1 -1
- package/components/ix-menu-settings-item.js +1 -1
- package/components/ix-menu.js +29 -30
- package/components/ix-menu.js.map +1 -1
- package/components/ix-message-bar.js +1 -1
- package/components/ix-modal-footer.js +1 -1
- package/components/ix-modal-loading.js +1 -1
- package/components/ix-modal.js +11 -4
- package/components/ix-modal.js.map +1 -1
- package/components/ix-number-input.d.ts +11 -0
- package/components/ix-number-input.js +221 -0
- package/components/ix-number-input.js.map +1 -0
- package/components/ix-pagination.js +35 -17
- package/components/ix-pagination.js.map +1 -1
- package/components/ix-pane-layout.js +9 -9
- package/components/ix-pane-layout.js.map +1 -1
- package/components/ix-pane.js +43 -35
- package/components/ix-pane.js.map +1 -1
- package/components/ix-pill.js +4 -4
- package/components/ix-pill.js.map +1 -1
- package/components/ix-push-card.js +1 -1
- package/components/ix-push-card.js.map +1 -1
- package/components/ix-radio-group.d.ts +11 -0
- package/components/ix-radio-group.js +174 -0
- package/components/ix-radio-group.js.map +1 -0
- package/components/ix-radio.d.ts +11 -0
- package/components/ix-radio.js +123 -0
- package/components/ix-radio.js.map +1 -0
- package/components/ix-slider.js +7 -7
- package/components/ix-slider.js.map +1 -1
- package/components/ix-split-button-item.js +1 -1
- package/components/ix-split-button.js +1 -1
- package/components/ix-textarea.d.ts +11 -0
- package/components/ix-textarea.js +179 -0
- package/components/ix-textarea.js.map +1 -0
- package/components/ix-tile.js +4 -4
- package/components/ix-tile.js.map +1 -1
- package/components/ix-toast-container.js +2 -2
- package/components/ix-toast-container.js.map +1 -1
- package/components/ix-toggle-button.js +2 -2
- package/components/ix-toggle.js +43 -5
- package/components/ix-toggle.js.map +1 -1
- package/components/ix-tree.js +21 -7
- package/components/ix-tree.js.map +1 -1
- package/components/ix-upload.js +61 -5
- package/components/ix-upload.js.map +1 -1
- package/components/ix-validation-tooltip.js +2 -2
- package/components/ix-workflow-step.js +3 -3
- package/components/ix-workflow-step.js.map +1 -1
- package/components/ix-workflow-steps.js +1 -1
- package/components/ix-workflow-steps.js.map +1 -1
- package/components/layout-grid.js +2 -2
- package/components/layout-grid.js.map +1 -1
- package/components/listener.js +2 -2
- package/components/listener.js.map +1 -1
- package/components/logical-filter-operator.js +1 -1
- package/components/logical-filter-operator.js.map +1 -1
- package/components/make-ref.js +7 -12
- package/components/make-ref.js.map +1 -1
- package/components/map-navigation-overlay.js +2 -2
- package/components/menu-avatar-item.js +1 -1
- package/components/menu-expand-icon.js +1 -1
- package/components/menu-expand-icon.js.map +1 -1
- package/components/menu-item.js +16 -15
- package/components/menu-item.js.map +1 -1
- package/components/menu-tabs-fc.js +17 -14
- package/components/menu-tabs-fc.js.map +1 -1
- package/components/modal-content.js +2 -2
- package/components/modal-content.js.map +1 -1
- package/components/modal-header.js +2 -2
- package/components/modal-header.js.map +1 -1
- package/components/modal.js +3 -1
- package/components/modal.js.map +1 -1
- package/components/row.js +1 -1
- package/components/row.js.map +1 -1
- package/components/select-item.js +27 -5
- package/components/select-item.js.map +1 -1
- package/components/select.js +217 -91
- package/components/select.js.map +1 -1
- package/components/shadow-dom.js +1 -1
- package/components/shadow-dom.js.map +1 -1
- package/components/spinner.js +4 -8
- package/components/spinner.js.map +1 -1
- package/components/tab-item.js +3 -3
- package/components/tabs.js +2 -2
- package/components/tabs.js.map +1 -1
- package/components/theme-switcher.js +1 -0
- package/components/theme-switcher.js.map +1 -1
- package/components/time-picker.js +39 -19
- package/components/time-picker.js.map +1 -1
- package/components/toast.js +2 -2
- package/components/toast.js.map +1 -1
- package/components/tooltip.js +25 -22
- package/components/tooltip.js.map +1 -1
- package/components/tree-item.js +8 -8
- package/components/tree-item.js.map +1 -1
- package/components/typography.js +3 -25
- package/components/typography.js.map +1 -1
- package/components/validation.js +112 -0
- package/components/validation.js.map +1 -0
- package/dist/cjs/a11y-ae470f01.js +147 -0
- package/dist/cjs/a11y-ae470f01.js.map +1 -0
- package/dist/cjs/app-globals-3c9c6a50.js +9 -0
- package/dist/cjs/app-globals-3c9c6a50.js.map +1 -0
- package/dist/cjs/base-button-119d9368.js +73 -0
- package/dist/cjs/base-button-119d9368.js.map +1 -0
- package/dist/cjs/base-icon-button-d09d934e.js +20 -0
- package/dist/cjs/base-icon-button-d09d934e.js.map +1 -0
- package/dist/cjs/context-6644f454.js +109 -0
- package/dist/cjs/context-6644f454.js.map +1 -0
- package/dist/cjs/disposable-event-listener-1ed769b9.js +20 -0
- package/dist/cjs/disposable-event-listener-1ed769b9.js.map +1 -0
- package/dist/cjs/dropdown-controller-aef51729.js +159 -0
- package/dist/cjs/dropdown-controller-aef51729.js.map +1 -0
- package/dist/cjs/find-element-8e586600.js +105 -0
- package/dist/cjs/find-element-8e586600.js.map +1 -0
- package/dist/cjs/floating-ui.dom.esm-9dde6cd6.js +2010 -0
- package/dist/cjs/floating-ui.dom.esm-9dde6cd6.js.map +1 -0
- package/dist/cjs/focus-935fb067.js +69 -0
- package/dist/cjs/focus-935fb067.js.map +1 -0
- package/dist/cjs/helper-text-util-3192e78f.js +44 -0
- package/dist/cjs/helper-text-util-3192e78f.js.map +1 -0
- package/dist/cjs/index-74904d8b.js +30 -0
- package/dist/cjs/index-74904d8b.js.map +1 -0
- package/dist/cjs/index-757233c7.js +2037 -0
- package/dist/cjs/index-757233c7.js.map +1 -0
- package/dist/cjs/index-d2117dc0.js +38 -0
- package/dist/cjs/index-d2117dc0.js.map +1 -0
- package/dist/cjs/index.cjs.js +24 -4
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/input.util-1c2fa43d.js +192 -0
- package/dist/cjs/input.util-1c2fa43d.js.map +1 -0
- package/dist/cjs/ix-action-card.cjs.entry.js +2 -2
- package/dist/cjs/ix-action-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-application-header.cjs.entry.js +37 -11
- package/dist/cjs/ix-application-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-application-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/ix-application-switch-modal.cjs.entry.js +3 -3
- package/dist/cjs/ix-application.cjs.entry.js +8 -8
- package/dist/cjs/ix-application.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-avatar_2.cjs.entry.js +17 -9
- package/dist/cjs/ix-avatar_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-basic-navigation.cjs.entry.js +4 -4
- package/dist/cjs/ix-basic-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-blind.cjs.entry.js +7 -7
- package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +3 -3
- package/dist/cjs/ix-breadcrumb.cjs.entry.js +11 -10
- package/dist/cjs/ix-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-button.cjs.entry.js +14 -5
- package/dist/cjs/ix-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-card-accordion_2.cjs.entry.js +8 -8
- package/dist/cjs/ix-card-accordion_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-card-list.cjs.entry.js +11 -8
- package/dist/cjs/ix-card-list.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-card_2.cjs.entry.js +6 -6
- package/dist/cjs/ix-card_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-category-filter.cjs.entry.js +158 -82
- package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-checkbox-group.cjs.entry.js +60 -0
- package/dist/cjs/ix-checkbox-group.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-checkbox.cjs.entry.js +117 -0
- package/dist/cjs/ix-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-chip.cjs.entry.js +5 -5
- package/dist/cjs/ix-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-col_4.cjs.entry.js +75 -49
- package/dist/cjs/ix-col_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-content-header.cjs.entry.js +3 -3
- package/dist/cjs/ix-content-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-content.cjs.entry.js +6 -6
- package/dist/cjs/ix-content.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-css-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-css-grid.cjs.entry.js +9 -4
- package/dist/cjs/ix-css-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-custom-field.cjs.entry.js +65 -0
- package/dist/cjs/ix-custom-field.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-date-dropdown.cjs.entry.js +28 -16
- package/dist/cjs/ix-date-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-date-input.cjs.entry.js +266 -0
- package/dist/cjs/ix-date-input.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-date-time-card.cjs.entry.js +5 -6
- package/dist/cjs/ix-date-time-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +11 -11
- package/dist/cjs/ix-datetime-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-divider.cjs.entry.js +2 -2
- package/dist/cjs/ix-drawer.cjs.entry.js +29 -25
- package/dist/cjs/ix-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-dropdown-button.cjs.entry.js +5 -6
- package/dist/cjs/ix-dropdown-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-dropdown-header.cjs.entry.js +2 -2
- package/dist/cjs/ix-dropdown-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-dropdown-item.cjs.entry.js +5 -5
- package/dist/cjs/ix-dropdown-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +2 -2
- package/dist/cjs/ix-dropdown.cjs.entry.js +84 -216
- package/dist/cjs/ix-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/ix-empty-state.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-event-list-item.cjs.entry.js +9 -9
- package/dist/cjs/ix-event-list-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-event-list.cjs.entry.js +5 -5
- package/dist/cjs/ix-event-list.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-expanding-search.cjs.entry.js +5 -5
- package/dist/cjs/ix-field-label_3.cjs.entry.js +476 -0
- package/dist/cjs/ix-field-label_3.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-filter-chip_2.cjs.entry.js +28 -7
- package/dist/cjs/ix-filter-chip_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-flip-tile-content.cjs.entry.js +2 -2
- package/dist/cjs/ix-flip-tile.cjs.entry.js +5 -5
- package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +5 -5
- package/dist/cjs/ix-group-context-menu_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-group.cjs.entry.js +58 -40
- package/dist/cjs/ix-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-helper-text.cjs.entry.js +70 -0
- package/dist/cjs/ix-helper-text.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-icon-button_2.cjs.entry.js +10 -14
- package/dist/cjs/ix-icon-button_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +6 -7
- package/dist/cjs/ix-icon-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-input-group.cjs.entry.js +3 -3
- package/dist/cjs/ix-input.cjs.entry.js +149 -0
- package/dist/cjs/ix-input.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-key-value-list.cjs.entry.js +2 -2
- package/dist/cjs/ix-key-value.cjs.entry.js +2 -2
- package/dist/cjs/ix-kpi.cjs.entry.js +4 -4
- package/dist/cjs/ix-kpi.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-layout-auto.cjs.entry.js +92 -0
- package/dist/cjs/ix-layout-auto.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-link-button.cjs.entry.js +4 -4
- package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +3 -3
- package/dist/cjs/ix-map-navigation.cjs.entry.js +5 -5
- package/dist/cjs/ix-map-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-menu-about-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu-about-news.cjs.entry.js +5 -5
- package/dist/cjs/ix-menu-about-news.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-menu-about.cjs.entry.js +3 -3
- package/dist/cjs/ix-menu-avatar.cjs.entry.js +4 -4
- package/dist/cjs/ix-menu-category.cjs.entry.js +7 -7
- package/dist/cjs/ix-menu-category.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +4 -4
- package/dist/cjs/ix-menu-expand-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-menu-item.cjs.entry.js +17 -16
- package/dist/cjs/ix-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-menu-settings-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu-settings.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu.cjs.entry.js +34 -34
- package/dist/cjs/ix-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-message-bar.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal-content_2.cjs.entry.js +6 -6
- package/dist/cjs/ix-modal-content_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-modal-footer.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal-loading.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal.cjs.entry.js +14 -7
- package/dist/cjs/ix-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-number-input.cjs.entry.js +152 -0
- package/dist/cjs/ix-number-input.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-pagination.cjs.entry.js +6 -6
- package/dist/cjs/ix-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-pane-layout.cjs.entry.js +10 -10
- package/dist/cjs/ix-pane-layout.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-pane.cjs.entry.js +43 -35
- package/dist/cjs/ix-pane.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-pill.cjs.entry.js +5 -5
- package/dist/cjs/ix-pill.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-push-card.cjs.entry.js +2 -2
- package/dist/cjs/ix-push-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-radio-group.cjs.entry.js +120 -0
- package/dist/cjs/ix-radio-group.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-radio.cjs.entry.js +98 -0
- package/dist/cjs/ix-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-select.cjs.entry.js +171 -77
- package/dist/cjs/ix-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-slider.cjs.entry.js +10 -10
- package/dist/cjs/ix-slider.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-split-button-item.cjs.entry.js +3 -3
- package/dist/cjs/ix-split-button.cjs.entry.js +2 -2
- package/dist/cjs/ix-tab-item_2.cjs.entry.js +6 -6
- package/dist/cjs/ix-tab-item_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-textarea.cjs.entry.js +120 -0
- package/dist/cjs/ix-textarea.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-tile.cjs.entry.js +5 -5
- package/dist/cjs/ix-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-time-picker.cjs.entry.js +40 -20
- package/dist/cjs/ix-time-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-toast-container.cjs.entry.js +3 -3
- package/dist/cjs/ix-toast-container.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-toast.cjs.entry.js +3 -3
- package/dist/cjs/ix-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-toggle-button.cjs.entry.js +5 -5
- package/dist/cjs/ix-toggle.cjs.entry.js +42 -5
- package/dist/cjs/ix-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-tree-item.cjs.entry.js +9 -9
- package/dist/cjs/ix-tree-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-tree.cjs.entry.js +22 -8
- package/dist/cjs/ix-tree.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-typography.cjs.entry.js +4 -25
- package/dist/cjs/ix-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-upload.cjs.entry.js +60 -6
- package/dist/cjs/ix-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/ix-workflow-step.cjs.entry.js +4 -4
- package/dist/cjs/ix-workflow-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-workflow-steps.cjs.entry.js +2 -2
- package/dist/cjs/ix-workflow-steps.cjs.entry.js.map +1 -1
- package/dist/cjs/listener-9ec23f49.js +77 -0
- package/dist/cjs/listener-9ec23f49.js.map +1 -0
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/logical-filter-operator-4917393f.js +38 -0
- package/dist/cjs/logical-filter-operator-4917393f.js.map +1 -0
- package/dist/cjs/make-ref-499e1e41.js +25 -0
- package/dist/cjs/make-ref-499e1e41.js.map +1 -0
- package/dist/cjs/menu-tabs-fc-eb899b0d.js +108 -0
- package/dist/cjs/menu-tabs-fc-eb899b0d.js.map +1 -0
- package/dist/cjs/modal-a49409aa.js +254 -0
- package/dist/cjs/modal-a49409aa.js.map +1 -0
- package/dist/cjs/setup-86b7d543.js +46 -0
- package/dist/cjs/setup-86b7d543.js.map +1 -0
- package/dist/cjs/shadow-dom-454acc38.js +50 -0
- package/dist/cjs/shadow-dom-454acc38.js.map +1 -0
- package/dist/cjs/siemens-ix.cjs.js +4 -3
- package/dist/cjs/siemens-ix.cjs.js.map +1 -1
- package/dist/cjs/theme-switcher-88b70d73.js +127 -0
- package/dist/cjs/theme-switcher-88b70d73.js.map +1 -0
- package/dist/cjs/validation-1e3dd5ee.js +117 -0
- package/dist/cjs/validation-1e3dd5ee.js.map +1 -0
- package/dist/collection/collection-manifest.json +15 -5
- package/dist/collection/components/action-card/action-card.js +8 -5
- package/dist/collection/components/action-card/action-card.js.map +1 -1
- package/dist/collection/components/application/application.css +26 -6
- package/dist/collection/components/application/application.js +4 -4
- package/dist/collection/components/application/application.js.map +1 -1
- package/dist/collection/components/application-header/application-header.css +9 -7
- package/dist/collection/components/application-header/application-header.js +77 -5
- package/dist/collection/components/application-header/application-header.js.map +1 -1
- package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +1 -1
- package/dist/collection/components/application-sidebar/application-sidebar.js +1 -1
- package/dist/collection/components/avatar/avatar.css +1 -1
- package/dist/collection/components/avatar/avatar.js +15 -7
- package/dist/collection/components/avatar/avatar.js.map +1 -1
- package/dist/collection/components/basic-navigation/basic-navigation.js +7 -4
- package/dist/collection/components/basic-navigation/basic-navigation.js.map +1 -1
- package/dist/collection/components/blind/blind.css +1 -1
- package/dist/collection/components/blind/blind.js +10 -10
- package/dist/collection/components/blind/blind.js.map +1 -1
- package/dist/collection/components/blind/test/blind.ct.js +1 -1
- package/dist/collection/components/blind/test/blind.ct.js.map +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.js +9 -10
- package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/collection/components/breadcrumb/test/breadcrumb.ct.js +2 -1
- package/dist/collection/components/breadcrumb/test/breadcrumb.ct.js.map +1 -1
- package/dist/collection/components/button/base-button.js +2 -2
- package/dist/collection/components/button/base-button.js.map +1 -1
- package/dist/collection/components/button/button.js +22 -4
- package/dist/collection/components/button/button.js.map +1 -1
- package/dist/collection/components/card/card.css +27 -11
- package/dist/collection/components/card/card.js +10 -6
- package/dist/collection/components/card/card.js.map +1 -1
- package/dist/collection/components/card-accordion/card-accordion.css +4 -4
- package/dist/collection/components/card-accordion/card-accordion.js +5 -5
- package/dist/collection/components/card-accordion/card-accordion.js.map +1 -1
- package/dist/collection/components/card-content/card-content.js +1 -1
- package/dist/collection/components/card-list/card-list.css +7 -1
- package/dist/collection/components/card-list/card-list.js +12 -9
- package/dist/collection/components/card-list/card-list.js.map +1 -1
- package/dist/collection/components/card-title/card-title.js +1 -1
- package/dist/collection/components/category-filter/category-filter.css +300 -36
- package/dist/collection/components/category-filter/category-filter.js +178 -88
- package/dist/collection/components/category-filter/category-filter.js.map +1 -1
- package/dist/collection/components/category-filter/logical-filter-operator.js +1 -1
- package/dist/collection/components/category-filter/logical-filter-operator.js.map +1 -1
- package/dist/collection/components/category-filter/test/category-filter.ct.js +62 -0
- package/dist/collection/components/category-filter/test/category-filter.ct.js.map +1 -0
- package/dist/collection/components/checkbox/checkbox.css +423 -0
- package/dist/collection/components/checkbox/checkbox.js +326 -0
- package/dist/collection/components/checkbox/checkbox.js.map +1 -0
- package/dist/collection/components/checkbox/tests/checkbox.ct.js +44 -0
- package/dist/collection/components/checkbox/tests/checkbox.ct.js.map +1 -0
- package/dist/collection/components/checkbox-group/checkbox-group.css +38 -0
- package/dist/collection/components/checkbox-group/checkbox-group.js +213 -0
- package/dist/collection/components/checkbox-group/checkbox-group.js.map +1 -0
- package/dist/collection/components/chip/chip.css +2 -2
- package/dist/collection/components/chip/chip.js +5 -5
- package/dist/collection/components/chip/chip.js.map +1 -1
- package/dist/collection/components/col/col.css +1 -1
- package/dist/collection/components/col/col.js +2 -2
- package/dist/collection/components/col/col.js.map +1 -1
- package/dist/collection/components/content/content.css +1 -0
- package/dist/collection/components/content/content.js +3 -3
- package/dist/collection/components/content/content.js.map +1 -1
- package/dist/collection/components/content-header/content-header.css +6 -3
- package/dist/collection/components/content-header/content-header.js +2 -2
- package/dist/collection/components/content-header/content-header.js.map +1 -1
- package/dist/collection/components/css-grid/css-grid-item.js +1 -1
- package/dist/collection/components/css-grid/css-grid.js +9 -4
- package/dist/collection/components/css-grid/css-grid.js.map +1 -1
- package/dist/collection/components/custom-field/custom-field.css +15 -0
- package/dist/collection/components/custom-field/custom-field.js +216 -0
- package/dist/collection/components/custom-field/custom-field.js.map +1 -0
- package/dist/collection/components/custom-field/tests/custom-field.ct.js +68 -0
- package/dist/collection/components/custom-field/tests/custom-field.ct.js.map +1 -0
- package/dist/collection/components/date-dropdown/date-dropdown.css +1 -1
- package/dist/collection/components/date-dropdown/date-dropdown.js +76 -20
- package/dist/collection/components/date-dropdown/date-dropdown.js.map +1 -1
- package/dist/collection/components/date-input/date-input.css +1126 -0
- package/dist/collection/components/date-input/date-input.js +743 -0
- package/dist/collection/components/date-input/date-input.js.map +1 -0
- package/dist/collection/components/date-input/tests/date-input.ct.js +114 -0
- package/dist/collection/components/date-input/tests/date-input.ct.js.map +1 -0
- package/dist/collection/components/date-picker/date-picker-component.js +2 -0
- package/dist/collection/components/date-picker/date-picker-component.js.map +1 -0
- package/dist/collection/components/date-picker/date-picker.css +26 -10
- package/dist/collection/components/date-picker/date-picker.js +74 -50
- package/dist/collection/components/date-picker/date-picker.js.map +1 -1
- package/dist/collection/components/date-picker/test/date-picker.ct.js +22 -0
- package/dist/collection/components/date-picker/test/date-picker.ct.js.map +1 -1
- package/dist/collection/components/date-time-card/date-time-card.css +1 -1
- package/dist/collection/components/date-time-card/date-time-card.js +8 -10
- package/dist/collection/components/date-time-card/date-time-card.js.map +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.css +23 -11
- package/dist/collection/components/datetime-picker/datetime-picker.js +24 -25
- package/dist/collection/components/datetime-picker/datetime-picker.js.map +1 -1
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/drawer/drawer.css +0 -3
- package/dist/collection/components/drawer/drawer.js +27 -23
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/drawer/test/drawer.spec.js +2 -2
- package/dist/collection/components/drawer/test/drawer.spec.js.map +1 -1
- package/dist/collection/components/dropdown/dropdown-controller.js +27 -15
- package/dist/collection/components/dropdown/dropdown-controller.js.map +1 -1
- package/dist/collection/components/dropdown/dropdown.js +105 -82
- package/dist/collection/components/dropdown/dropdown.js.map +1 -1
- package/dist/collection/components/dropdown/test/dropdown.ct.js +19 -8
- package/dist/collection/components/dropdown/test/dropdown.ct.js.map +1 -1
- package/dist/collection/components/dropdown-button/dropdown-button.js +7 -13
- package/dist/collection/components/dropdown-button/dropdown-button.js.map +1 -1
- package/dist/collection/components/dropdown-header/dropdown-header.js +1 -1
- package/dist/collection/components/dropdown-header/dropdown-header.js.map +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.css +3 -3
- package/dist/collection/components/dropdown-item/dropdown-item.js +5 -5
- package/dist/collection/components/dropdown-item/dropdown-item.js.map +1 -1
- package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -1
- package/dist/collection/components/empty-state/empty-state.js +1 -1
- package/dist/collection/components/empty-state/empty-state.js.map +1 -1
- package/dist/collection/components/event-list/event-list.css +0 -6
- package/dist/collection/components/event-list/event-list.js +5 -4
- package/dist/collection/components/event-list/event-list.js.map +1 -1
- package/dist/collection/components/event-list-item/event-list-item.js +15 -12
- package/dist/collection/components/event-list-item/event-list-item.js.map +1 -1
- package/dist/collection/components/expanding-search/expanding-search.js +4 -4
- package/dist/collection/components/field-label/field-label.css +14 -0
- package/dist/collection/components/field-label/field-label.js +230 -0
- package/dist/collection/components/field-label/field-label.js.map +1 -0
- package/dist/collection/components/field-label/tests/field-label.ct.js +113 -0
- package/dist/collection/components/field-label/tests/field-label.ct.js.map +1 -0
- package/dist/collection/components/field-wrapper/field-wrapper.css +62 -0
- package/dist/collection/components/field-wrapper/field-wrapper.js +317 -0
- package/dist/collection/components/field-wrapper/field-wrapper.js.map +1 -0
- package/dist/collection/components/field-wrapper/helper-text-util.js +29 -0
- package/dist/collection/components/field-wrapper/helper-text-util.js.map +1 -0
- package/dist/collection/components/field-wrapper/tests/field-wrapper.ct.js +63 -0
- package/dist/collection/components/field-wrapper/tests/field-wrapper.ct.js.map +1 -0
- package/dist/collection/components/filter-chip/filter-chip.js +1 -1
- package/dist/collection/components/flip-tile/flip-tile.js +4 -4
- package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -1
- package/dist/collection/components/group/group-context-menu.css +1 -1
- package/dist/collection/components/group/group-context-menu.js +2 -2
- package/dist/collection/components/group/group-context-menu.js.map +1 -1
- package/dist/collection/components/group/group.css +3 -2
- package/dist/collection/components/group/group.js +68 -38
- package/dist/collection/components/group/group.js.map +1 -1
- package/dist/collection/components/group/test/group.ct.js +34 -4
- package/dist/collection/components/group/test/group.ct.js.map +1 -1
- package/dist/collection/components/group-item/group-item.js +2 -2
- package/dist/collection/components/helper-text/helper-text.css +34 -0
- package/dist/collection/components/helper-text/helper-text.js +179 -0
- package/dist/collection/components/helper-text/helper-text.js.map +1 -0
- package/dist/collection/components/icon-button/icon-button.css +0 -15
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.css +0 -15
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +1 -2
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.js.map +1 -1
- package/dist/collection/components/input/input.animation.js +36 -0
- package/dist/collection/components/input/input.animation.js.map +1 -0
- package/dist/collection/components/input/input.css +1087 -0
- package/dist/collection/components/input/input.fc.js +42 -0
- package/dist/collection/components/input/input.fc.js.map +1 -0
- package/dist/collection/components/input/input.js +608 -0
- package/dist/collection/components/input/input.js.map +1 -0
- package/dist/collection/components/input/input.util.js +103 -0
- package/dist/collection/components/input/input.util.js.map +1 -0
- package/dist/collection/components/input/number-input.css +629 -0
- package/dist/collection/components/input/number-input.js +606 -0
- package/dist/collection/components/input/number-input.js.map +1 -0
- package/dist/collection/components/input/tests/form-ready.ct.js +63 -0
- package/dist/collection/components/input/tests/form-ready.ct.js.map +1 -0
- package/dist/collection/components/input/textarea.css +649 -0
- package/dist/collection/components/input/textarea.js +615 -0
- package/dist/collection/components/input/textarea.js.map +1 -0
- package/dist/collection/components/input-group/input-group.js +1 -1
- package/dist/collection/components/key-value/key-value.js +1 -1
- package/dist/collection/components/key-value-list/key-value-list.js +1 -1
- package/dist/collection/components/kpi/kpi.css +1 -1
- package/dist/collection/components/kpi/kpi.js +4 -4
- package/dist/collection/components/kpi/kpi.js.map +1 -1
- package/dist/collection/components/layout-auto/layout-auto.css +16 -0
- package/dist/collection/components/layout-auto/layout-auto.js +122 -0
- package/dist/collection/components/layout-auto/layout-auto.js.map +1 -0
- package/dist/collection/components/layout-grid/layout-grid.css +21 -0
- package/dist/collection/components/layout-grid/layout-grid.js +98 -0
- package/dist/collection/components/layout-grid/layout-grid.js.map +1 -0
- package/dist/collection/components/link-button/link-button.js +3 -3
- package/dist/collection/components/map-navigation/map-navigation.css +3 -3
- package/dist/collection/components/map-navigation/map-navigation.js +2 -2
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +2 -2
- package/dist/collection/components/menu/menu-expand-icon.css +1 -1
- package/dist/collection/components/menu/menu-expand-icon.js +3 -3
- package/dist/collection/components/menu/menu-expand-icon.js.map +1 -1
- package/dist/collection/components/menu/menu.css +4 -3
- package/dist/collection/components/menu/menu.js +30 -31
- package/dist/collection/components/menu/menu.js.map +1 -1
- package/dist/collection/components/menu/test/menu.ct.js +1 -1
- package/dist/collection/components/menu/test/menu.ct.js.map +1 -1
- package/dist/collection/components/menu-about/menu-about.js +1 -1
- package/dist/collection/components/menu-about/test/menu-about.ct.js +44 -0
- package/dist/collection/components/menu-about/test/menu-about.ct.js.map +1 -0
- package/dist/collection/components/menu-about-item/menu-about-item.js +1 -1
- package/dist/collection/components/menu-about-news/menu-about-news.js +4 -4
- package/dist/collection/components/menu-about-news/menu-about-news.js.map +1 -1
- package/dist/collection/components/menu-avatar/menu-avatar.js +2 -2
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -1
- package/dist/collection/components/menu-category/menu-category.js +5 -5
- package/dist/collection/components/menu-category/menu-category.js.map +1 -1
- package/dist/collection/components/menu-item/menu-item.js +26 -22
- package/dist/collection/components/menu-item/menu-item.js.map +1 -1
- package/dist/collection/components/menu-settings/menu-settings.js +1 -1
- package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
- package/dist/collection/components/message-bar/message-bar.js +1 -1
- package/dist/collection/components/modal/modal.css +19 -9
- package/dist/collection/components/modal/modal.js +11 -4
- package/dist/collection/components/modal/modal.js.map +1 -1
- package/dist/collection/components/modal/test/modal.ct.js +47 -1
- package/dist/collection/components/modal/test/modal.ct.js.map +1 -1
- package/dist/collection/components/modal-content/modal-content.css +2 -2
- package/dist/collection/components/modal-content/modal-content.js +1 -1
- package/dist/collection/components/modal-footer/modal-footer.js +1 -1
- package/dist/collection/components/modal-header/modal-header.css +6 -7
- package/dist/collection/components/modal-header/modal-header.js +4 -4
- package/dist/collection/components/modal-header/modal-header.js.map +1 -1
- package/dist/collection/components/modal-loading/modal-loading.js +1 -1
- package/dist/collection/components/pagination/pagination.css +0 -15
- package/dist/collection/components/pagination/pagination.js +2 -2
- package/dist/collection/components/pagination/pagination.js.map +1 -1
- package/dist/collection/components/pane/pane.css +1 -1
- package/dist/collection/components/pane/pane.js +47 -39
- package/dist/collection/components/pane/pane.js.map +1 -1
- package/dist/collection/components/pane/test/panes.ct.js +25 -1
- package/dist/collection/components/pane/test/panes.ct.js.map +1 -1
- package/dist/collection/components/pane-layout/pane-layout.js +9 -9
- package/dist/collection/components/pane-layout/pane-layout.js.map +1 -1
- package/dist/collection/components/pill/pill.css +2 -2
- package/dist/collection/components/pill/pill.js +5 -5
- package/dist/collection/components/pill/pill.js.map +1 -1
- package/dist/collection/components/push-card/push-card.js +9 -6
- package/dist/collection/components/push-card/push-card.js.map +1 -1
- package/dist/collection/components/radio/radio.css +430 -0
- package/dist/collection/components/radio/radio.js +278 -0
- package/dist/collection/components/radio/radio.js.map +1 -0
- package/dist/collection/components/radio/test/radio.ct.js +36 -0
- package/dist/collection/components/radio/test/radio.ct.js.map +1 -0
- package/dist/collection/components/radio-group/radio-group.css +38 -0
- package/dist/collection/components/radio-group/radio-group.js +326 -0
- package/dist/collection/components/radio-group/radio-group.js.map +1 -0
- package/dist/collection/components/radio-group/test/radio-group.ct.js +100 -0
- package/dist/collection/components/radio-group/test/radio-group.ct.js.map +1 -0
- package/dist/collection/components/row/row.css +1 -1
- package/dist/collection/components/row/row.js +2 -2
- package/dist/collection/components/row/row.js.map +1 -1
- package/dist/collection/components/select/select.css +58 -0
- package/dist/collection/components/select/select.js +460 -80
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/select/test/select.ct.js +103 -9
- package/dist/collection/components/select/test/select.ct.js.map +1 -1
- package/dist/collection/components/select-item/events.js +8 -0
- package/dist/collection/components/select-item/events.js.map +1 -1
- package/dist/collection/components/select-item/select-item.js +22 -7
- package/dist/collection/components/select-item/select-item.js.map +1 -1
- package/dist/collection/components/slider/slider.js +7 -7
- package/dist/collection/components/slider/slider.js.map +1 -1
- package/dist/collection/components/spinner/spinner.css +140 -125
- package/dist/collection/components/spinner/spinner.js +3 -7
- package/dist/collection/components/spinner/spinner.js.map +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/split-button-item/split-button-item.js +1 -1
- package/dist/collection/components/tab-item/tab-item.js +3 -3
- package/dist/collection/components/tabs/tabs.css +1 -1
- package/dist/collection/components/tabs/tabs.js +3 -3
- package/dist/collection/components/tabs/tabs.js.map +1 -1
- package/dist/collection/components/tile/tile.css +1 -1
- package/dist/collection/components/tile/tile.js +5 -5
- package/dist/collection/components/tile/tile.js.map +1 -1
- package/dist/collection/components/time-picker/time-picker.css +174 -16
- package/dist/collection/components/time-picker/time-picker.js +38 -18
- package/dist/collection/components/time-picker/time-picker.js.map +1 -1
- package/dist/collection/components/toast/styles/toast-container.css +1 -1
- package/dist/collection/components/toast/toast-container.js +3 -3
- package/dist/collection/components/toast/toast-container.js.map +1 -1
- package/dist/collection/components/toast/toast-utils.js.map +1 -1
- package/dist/collection/components/toast/toast.css +1 -1
- package/dist/collection/components/toast/toast.js +3 -3
- package/dist/collection/components/toast/toast.js.map +1 -1
- package/dist/collection/components/toggle/test/toggle.ct.js +24 -1
- package/dist/collection/components/toggle/test/toggle.ct.js.map +1 -1
- package/dist/collection/components/toggle/toggle.css +133 -4
- package/dist/collection/components/toggle/toggle.js +157 -2
- package/dist/collection/components/toggle/toggle.js.map +1 -1
- package/dist/collection/components/toggle-button/toggle-button.js +2 -2
- package/dist/collection/components/tooltip/test/tooltip.ct.js +37 -0
- package/dist/collection/components/tooltip/test/tooltip.ct.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.css +15 -5
- package/dist/collection/components/tooltip/tooltip.js +31 -31
- package/dist/collection/components/tooltip/tooltip.js.map +1 -1
- package/dist/collection/components/tree/test/tree.ct.js +37 -1
- package/dist/collection/components/tree/test/tree.ct.js.map +1 -1
- package/dist/collection/components/tree/tree-model.js.map +1 -1
- package/dist/collection/components/tree/tree.css +1 -1
- package/dist/collection/components/tree/tree.js +26 -11
- package/dist/collection/components/tree/tree.js.map +1 -1
- package/dist/collection/components/tree-item/tree-item.css +9 -0
- package/dist/collection/components/tree-item/tree-item.js +13 -12
- package/dist/collection/components/tree-item/tree-item.js.map +1 -1
- package/dist/collection/components/typography/test/ix-typography.spec.js +0 -14
- package/dist/collection/components/typography/test/ix-typography.spec.js.map +1 -1
- package/dist/collection/components/typography/type-mapping.js +3 -0
- package/dist/collection/components/typography/type-mapping.js.map +1 -1
- package/dist/collection/components/typography/typography.js +6 -42
- package/dist/collection/components/typography/typography.js.map +1 -1
- package/dist/collection/components/upload/test/upload.ct.js +17 -0
- package/dist/collection/components/upload/test/upload.ct.js.map +1 -0
- package/dist/collection/components/upload/upload.css +0 -2
- package/dist/collection/components/upload/upload.js +50 -6
- package/dist/collection/components/upload/upload.js.map +1 -1
- package/dist/collection/components/utils/a11y.js +3 -2
- package/dist/collection/components/utils/a11y.js.map +1 -1
- package/dist/collection/components/utils/application-layout/context.js.map +1 -1
- package/dist/collection/components/utils/attributes.js +25 -0
- package/dist/collection/components/utils/attributes.js.map +1 -0
- package/dist/collection/components/utils/condition-checks.js +1 -1
- package/dist/collection/components/utils/condition-checks.js.map +1 -1
- package/dist/collection/components/utils/context.js +6 -3
- package/dist/collection/components/utils/context.js.map +1 -1
- package/dist/collection/components/utils/disposable-event-listener.js +19 -0
- package/dist/collection/components/utils/disposable-event-listener.js.map +1 -0
- package/dist/collection/components/utils/element-reference.js +2 -0
- package/dist/collection/components/utils/element-reference.js.map +1 -0
- package/dist/collection/components/utils/find-element.js +99 -0
- package/dist/collection/components/utils/find-element.js.map +1 -0
- package/dist/collection/components/utils/focus.js +20 -17
- package/dist/collection/components/utils/focus.js.map +1 -1
- package/dist/collection/components/utils/input/index.js +9 -0
- package/dist/collection/components/utils/input/index.js.map +1 -0
- package/dist/collection/components/utils/input/validation.js +108 -0
- package/dist/collection/components/utils/input/validation.js.map +1 -0
- package/dist/collection/components/utils/listener.js +2 -2
- package/dist/collection/components/utils/listener.js.map +1 -1
- package/dist/collection/components/utils/make-ref.js +7 -12
- package/dist/collection/components/utils/make-ref.js.map +1 -1
- package/dist/collection/components/utils/menu-tabs/menu-tabs-fc.js +11 -8
- package/dist/collection/components/utils/menu-tabs/menu-tabs-fc.js.map +1 -1
- package/dist/collection/components/utils/modal/index.js.map +1 -1
- package/dist/collection/components/utils/modal/message.js +3 -1
- package/dist/collection/components/utils/modal/message.js.map +1 -1
- package/dist/collection/components/utils/notification-color.js.map +1 -1
- package/dist/collection/components/utils/shadow-dom.js +1 -1
- package/dist/collection/components/utils/shadow-dom.js.map +1 -1
- package/dist/collection/components/utils/theme-switcher.js +1 -0
- package/dist/collection/components/utils/theme-switcher.js.map +1 -1
- package/dist/collection/components/utils/type-helper.js +2 -0
- package/dist/collection/components/utils/type-helper.js.map +1 -0
- package/dist/collection/components/utils/uuid.js +16 -0
- package/dist/collection/components/utils/uuid.js.map +1 -0
- package/dist/collection/components/validation-tooltip/validation-tooltip.js +2 -2
- package/dist/collection/components/workflow-step/workflow-step.css +1 -1
- package/dist/collection/components/workflow-step/workflow-step.js +4 -4
- package/dist/collection/components/workflow-step/workflow-step.js.map +1 -1
- package/dist/collection/components/workflow-steps/test/workflow-steps.ct.js +2 -2
- package/dist/collection/components/workflow-steps/test/workflow-steps.ct.js.map +1 -1
- package/dist/collection/components/workflow-steps/workflow-steps.css +1 -1
- package/dist/collection/components/workflow-steps/workflow-steps.js +2 -2
- package/dist/collection/components/workflow-steps/workflow-steps.js.map +1 -1
- package/dist/collection/index.js +8 -0
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/setup.js +16 -1
- package/dist/collection/setup.js.map +1 -1
- package/dist/collection/tests/application/application.e2e.js.map +1 -1
- package/dist/collection/tests/application-header/application-header.e2e.js +9 -0
- package/dist/collection/tests/application-header/application-header.e2e.js.map +1 -1
- package/dist/collection/tests/card-list/card-list.e2e.js +7 -1
- package/dist/collection/tests/card-list/card-list.e2e.js.map +1 -1
- package/dist/collection/tests/checkbox-group/checkbox-group.e2e.js +25 -0
- package/dist/collection/tests/checkbox-group/checkbox-group.e2e.js.map +1 -0
- package/dist/collection/tests/content/content.e2e.js +24 -0
- package/dist/collection/tests/content/content.e2e.js.map +1 -0
- package/dist/collection/tests/date-picker/date-picker.e2e.js +6 -6
- package/dist/collection/tests/date-picker/date-picker.e2e.js.map +1 -1
- package/dist/collection/tests/datetime-picker/datetime-picker.e2e.js +8 -1
- package/dist/collection/tests/datetime-picker/datetime-picker.e2e.js.map +1 -1
- package/dist/collection/tests/drawer/drawer.e2e.js +6 -0
- package/dist/collection/tests/drawer/drawer.e2e.js.map +1 -1
- package/dist/collection/tests/dropdown/dropdown.e2e.js +6 -0
- package/dist/collection/tests/dropdown/dropdown.e2e.js.map +1 -1
- package/dist/collection/tests/form-fields/form-fields.e2e.js +57 -0
- package/dist/collection/tests/form-fields/form-fields.e2e.js.map +1 -0
- package/dist/collection/tests/group/group.e2e.js +12 -3
- package/dist/collection/tests/group/group.e2e.js.map +1 -1
- package/dist/collection/tests/input/input.e2e.js +29 -5
- package/dist/collection/tests/input/input.e2e.js.map +1 -1
- package/dist/collection/tests/message/message.e2e.js +50 -0
- package/dist/collection/tests/message/message.e2e.js.map +1 -0
- package/dist/collection/tests/modal/modal.e2e.js +10 -1
- package/dist/collection/tests/modal/modal.e2e.js.map +1 -1
- package/dist/collection/tests/number-input/number-input.e2e.js +17 -0
- package/dist/collection/tests/number-input/number-input.e2e.js.map +1 -0
- package/dist/collection/tests/radio-group/radio-group.e2e.js +25 -0
- package/dist/collection/tests/radio-group/radio-group.e2e.js.map +1 -0
- package/dist/collection/tests/slider/slider.e2e.js +17 -0
- package/dist/collection/tests/slider/slider.e2e.js.map +1 -1
- package/dist/collection/tests/tooltip/tooltip.e2e.js +22 -0
- package/dist/collection/tests/tooltip/tooltip.e2e.js.map +1 -1
- package/dist/collection/tests/tree/tree.e2e.js +12 -0
- package/dist/collection/tests/tree/tree.e2e.js.map +1 -1
- package/dist/collection/tests/utils/test/index.js +12 -0
- package/dist/collection/tests/utils/test/index.js.map +1 -1
- package/dist/collection/tests/utils/test/page.js +3 -12
- package/dist/collection/tests/utils/test/page.js.map +1 -1
- package/dist/esm/a11y-b10c12e0.js +143 -0
- package/dist/esm/a11y-b10c12e0.js.map +1 -0
- package/dist/esm/app-globals-ae0ca705.js +7 -0
- package/dist/esm/app-globals-ae0ca705.js.map +1 -0
- package/dist/esm/base-button-845f2463.js +70 -0
- package/dist/esm/base-button-845f2463.js.map +1 -0
- package/dist/esm/base-icon-button-38e2f6e6.js +18 -0
- package/dist/esm/base-icon-button-38e2f6e6.js.map +1 -0
- package/dist/esm/context-42311cff.js +104 -0
- package/dist/esm/context-42311cff.js.map +1 -0
- package/dist/esm/disposable-event-listener-ff2cb862.js +18 -0
- package/dist/esm/disposable-event-listener-ff2cb862.js.map +1 -0
- package/dist/esm/dropdown-controller-cb6d3789.js +156 -0
- package/dist/esm/dropdown-controller-cb6d3789.js.map +1 -0
- package/dist/esm/find-element-af8265f7.js +102 -0
- package/dist/esm/find-element-af8265f7.js.map +1 -0
- package/dist/esm/floating-ui.dom.esm-d4ad786a.js +2001 -0
- package/dist/esm/floating-ui.dom.esm-d4ad786a.js.map +1 -0
- package/dist/esm/focus-664aef4f.js +67 -0
- package/dist/esm/focus-664aef4f.js.map +1 -0
- package/dist/esm/helper-text-util-10896253.js +41 -0
- package/dist/esm/helper-text-util-10896253.js.map +1 -0
- package/dist/esm/index-60d17930.js +28 -0
- package/dist/esm/index-60d17930.js.map +1 -0
- package/dist/esm/index-97874de0.js +2004 -0
- package/dist/esm/index-97874de0.js.map +1 -0
- package/dist/esm/index-ad2af369.js +21 -0
- package/dist/esm/index-ad2af369.js.map +1 -0
- package/dist/esm/index.js +23 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/input.util-715860e3.js +181 -0
- package/dist/esm/input.util-715860e3.js.map +1 -0
- package/dist/esm/ix-action-card.entry.js +2 -2
- package/dist/esm/ix-action-card.entry.js.map +1 -1
- package/dist/esm/ix-application-header.entry.js +37 -11
- package/dist/esm/ix-application-header.entry.js.map +1 -1
- package/dist/esm/ix-application-sidebar.entry.js +2 -2
- package/dist/esm/ix-application-switch-modal.entry.js +3 -3
- package/dist/esm/ix-application.entry.js +8 -8
- package/dist/esm/ix-application.entry.js.map +1 -1
- package/dist/esm/ix-avatar_2.entry.js +17 -9
- package/dist/esm/ix-avatar_2.entry.js.map +1 -1
- package/dist/esm/ix-basic-navigation.entry.js +4 -4
- package/dist/esm/ix-basic-navigation.entry.js.map +1 -1
- package/dist/esm/ix-blind.entry.js +7 -7
- package/dist/esm/ix-blind.entry.js.map +1 -1
- package/dist/esm/ix-breadcrumb-item.entry.js +3 -3
- package/dist/esm/ix-breadcrumb.entry.js +11 -10
- package/dist/esm/ix-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ix-button.entry.js +14 -5
- package/dist/esm/ix-button.entry.js.map +1 -1
- package/dist/esm/ix-card-accordion_2.entry.js +8 -8
- package/dist/esm/ix-card-accordion_2.entry.js.map +1 -1
- package/dist/esm/ix-card-list.entry.js +11 -8
- package/dist/esm/ix-card-list.entry.js.map +1 -1
- package/dist/esm/ix-card_2.entry.js +6 -6
- package/dist/esm/ix-card_2.entry.js.map +1 -1
- package/dist/esm/ix-category-filter.entry.js +158 -82
- package/dist/esm/ix-category-filter.entry.js.map +1 -1
- package/dist/esm/ix-checkbox-group.entry.js +56 -0
- package/dist/esm/ix-checkbox-group.entry.js.map +1 -0
- package/dist/esm/ix-checkbox.entry.js +113 -0
- package/dist/esm/ix-checkbox.entry.js.map +1 -0
- package/dist/esm/ix-chip.entry.js +5 -5
- package/dist/esm/ix-chip.entry.js.map +1 -1
- package/dist/esm/ix-col_4.entry.js +71 -45
- package/dist/esm/ix-col_4.entry.js.map +1 -1
- package/dist/esm/ix-content-header.entry.js +3 -3
- package/dist/esm/ix-content-header.entry.js.map +1 -1
- package/dist/esm/ix-content.entry.js +6 -6
- package/dist/esm/ix-content.entry.js.map +1 -1
- package/dist/esm/ix-css-grid-item.entry.js +2 -2
- package/dist/esm/ix-css-grid.entry.js +9 -4
- package/dist/esm/ix-css-grid.entry.js.map +1 -1
- package/dist/esm/ix-custom-field.entry.js +61 -0
- package/dist/esm/ix-custom-field.entry.js.map +1 -0
- package/dist/esm/ix-date-dropdown.entry.js +28 -16
- package/dist/esm/ix-date-dropdown.entry.js.map +1 -1
- package/dist/esm/ix-date-input.entry.js +262 -0
- package/dist/esm/ix-date-input.entry.js.map +1 -0
- package/dist/esm/ix-date-time-card.entry.js +5 -6
- package/dist/esm/ix-date-time-card.entry.js.map +1 -1
- package/dist/esm/ix-datetime-picker.entry.js +11 -11
- package/dist/esm/ix-datetime-picker.entry.js.map +1 -1
- package/dist/esm/ix-divider.entry.js +2 -2
- package/dist/esm/ix-drawer.entry.js +29 -25
- package/dist/esm/ix-drawer.entry.js.map +1 -1
- package/dist/esm/ix-dropdown-button.entry.js +5 -6
- package/dist/esm/ix-dropdown-button.entry.js.map +1 -1
- package/dist/esm/ix-dropdown-header.entry.js +2 -2
- package/dist/esm/ix-dropdown-header.entry.js.map +1 -1
- package/dist/esm/ix-dropdown-item.entry.js +5 -5
- package/dist/esm/ix-dropdown-item.entry.js.map +1 -1
- package/dist/esm/ix-dropdown-quick-actions.entry.js +2 -2
- package/dist/esm/ix-dropdown.entry.js +71 -203
- package/dist/esm/ix-dropdown.entry.js.map +1 -1
- package/dist/esm/ix-empty-state.entry.js +2 -2
- package/dist/esm/ix-empty-state.entry.js.map +1 -1
- package/dist/esm/ix-event-list-item.entry.js +9 -9
- package/dist/esm/ix-event-list-item.entry.js.map +1 -1
- package/dist/esm/ix-event-list.entry.js +5 -5
- package/dist/esm/ix-event-list.entry.js.map +1 -1
- package/dist/esm/ix-expanding-search.entry.js +5 -5
- package/dist/esm/ix-field-label_3.entry.js +470 -0
- package/dist/esm/ix-field-label_3.entry.js.map +1 -0
- package/dist/esm/ix-filter-chip_2.entry.js +28 -7
- package/dist/esm/ix-filter-chip_2.entry.js.map +1 -1
- package/dist/esm/ix-flip-tile-content.entry.js +2 -2
- package/dist/esm/ix-flip-tile.entry.js +5 -5
- package/dist/esm/ix-group-context-menu_2.entry.js +5 -5
- package/dist/esm/ix-group-context-menu_2.entry.js.map +1 -1
- package/dist/esm/ix-group.entry.js +58 -40
- package/dist/esm/ix-group.entry.js.map +1 -1
- package/dist/esm/ix-helper-text.entry.js +66 -0
- package/dist/esm/ix-helper-text.entry.js.map +1 -0
- package/dist/esm/ix-icon-button_2.entry.js +10 -14
- package/dist/esm/ix-icon-button_2.entry.js.map +1 -1
- package/dist/esm/ix-icon-toggle-button.entry.js +6 -7
- package/dist/esm/ix-icon-toggle-button.entry.js.map +1 -1
- package/dist/esm/ix-input-group.entry.js +3 -3
- package/dist/esm/ix-input.entry.js +145 -0
- package/dist/esm/ix-input.entry.js.map +1 -0
- package/dist/esm/ix-key-value-list.entry.js +2 -2
- package/dist/esm/ix-key-value.entry.js +2 -2
- package/dist/esm/ix-kpi.entry.js +4 -4
- package/dist/esm/ix-kpi.entry.js.map +1 -1
- package/dist/esm/ix-layout-auto.entry.js +88 -0
- package/dist/esm/ix-layout-auto.entry.js.map +1 -0
- package/dist/esm/ix-link-button.entry.js +4 -4
- package/dist/esm/ix-map-navigation-overlay.entry.js +3 -3
- package/dist/esm/ix-map-navigation.entry.js +5 -5
- package/dist/esm/ix-map-navigation.entry.js.map +1 -1
- package/dist/esm/ix-menu-about-item.entry.js +2 -2
- package/dist/esm/ix-menu-about-news.entry.js +5 -5
- package/dist/esm/ix-menu-about-news.entry.js.map +1 -1
- package/dist/esm/ix-menu-about.entry.js +3 -3
- package/dist/esm/ix-menu-avatar.entry.js +4 -4
- package/dist/esm/ix-menu-category.entry.js +7 -7
- package/dist/esm/ix-menu-category.entry.js.map +1 -1
- package/dist/esm/ix-menu-expand-icon.entry.js +4 -4
- package/dist/esm/ix-menu-expand-icon.entry.js.map +1 -1
- package/dist/esm/ix-menu-item.entry.js +17 -16
- package/dist/esm/ix-menu-item.entry.js.map +1 -1
- package/dist/esm/ix-menu-settings-item.entry.js +2 -2
- package/dist/esm/ix-menu-settings.entry.js +2 -2
- package/dist/esm/ix-menu.entry.js +34 -34
- package/dist/esm/ix-menu.entry.js.map +1 -1
- package/dist/esm/ix-message-bar.entry.js +2 -2
- package/dist/esm/ix-modal-content_2.entry.js +6 -6
- package/dist/esm/ix-modal-content_2.entry.js.map +1 -1
- package/dist/esm/ix-modal-footer.entry.js +2 -2
- package/dist/esm/ix-modal-loading.entry.js +2 -2
- package/dist/esm/ix-modal.entry.js +14 -7
- package/dist/esm/ix-modal.entry.js.map +1 -1
- package/dist/esm/ix-number-input.entry.js +148 -0
- package/dist/esm/ix-number-input.entry.js.map +1 -0
- package/dist/esm/ix-pagination.entry.js +6 -6
- package/dist/esm/ix-pagination.entry.js.map +1 -1
- package/dist/esm/ix-pane-layout.entry.js +10 -10
- package/dist/esm/ix-pane-layout.entry.js.map +1 -1
- package/dist/esm/ix-pane.entry.js +43 -35
- package/dist/esm/ix-pane.entry.js.map +1 -1
- package/dist/esm/ix-pill.entry.js +5 -5
- package/dist/esm/ix-pill.entry.js.map +1 -1
- package/dist/esm/ix-push-card.entry.js +2 -2
- package/dist/esm/ix-push-card.entry.js.map +1 -1
- package/dist/esm/ix-radio-group.entry.js +116 -0
- package/dist/esm/ix-radio-group.entry.js.map +1 -0
- package/dist/esm/ix-radio.entry.js +94 -0
- package/dist/esm/ix-radio.entry.js.map +1 -0
- package/dist/esm/ix-select.entry.js +171 -77
- package/dist/esm/ix-select.entry.js.map +1 -1
- package/dist/esm/ix-slider.entry.js +10 -10
- package/dist/esm/ix-slider.entry.js.map +1 -1
- package/dist/esm/ix-split-button-item.entry.js +3 -3
- package/dist/esm/ix-split-button.entry.js +2 -2
- package/dist/esm/ix-tab-item_2.entry.js +6 -6
- package/dist/esm/ix-tab-item_2.entry.js.map +1 -1
- package/dist/esm/ix-textarea.entry.js +116 -0
- package/dist/esm/ix-textarea.entry.js.map +1 -0
- package/dist/esm/ix-tile.entry.js +5 -5
- package/dist/esm/ix-tile.entry.js.map +1 -1
- package/dist/esm/ix-time-picker.entry.js +40 -20
- package/dist/esm/ix-time-picker.entry.js.map +1 -1
- package/dist/esm/ix-toast-container.entry.js +3 -3
- package/dist/esm/ix-toast-container.entry.js.map +1 -1
- package/dist/esm/ix-toast.entry.js +3 -3
- package/dist/esm/ix-toast.entry.js.map +1 -1
- package/dist/esm/ix-toggle-button.entry.js +5 -5
- package/dist/esm/ix-toggle.entry.js +42 -5
- package/dist/esm/ix-toggle.entry.js.map +1 -1
- package/dist/esm/ix-tree-item.entry.js +9 -9
- package/dist/esm/ix-tree-item.entry.js.map +1 -1
- package/dist/esm/ix-tree.entry.js +22 -8
- package/dist/esm/ix-tree.entry.js.map +1 -1
- package/dist/esm/ix-typography.entry.js +4 -25
- package/dist/esm/ix-typography.entry.js.map +1 -1
- package/dist/esm/ix-upload.entry.js +60 -6
- package/dist/esm/ix-upload.entry.js.map +1 -1
- package/dist/esm/ix-validation-tooltip.entry.js +4 -4
- package/dist/esm/ix-workflow-step.entry.js +4 -4
- package/dist/esm/ix-workflow-step.entry.js.map +1 -1
- package/dist/esm/ix-workflow-steps.entry.js +2 -2
- package/dist/esm/ix-workflow-steps.entry.js.map +1 -1
- package/dist/esm/listener-18b29507.js +75 -0
- package/dist/esm/listener-18b29507.js.map +1 -0
- package/dist/esm/loader.js +5 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/logical-filter-operator-d793d1c3.js +36 -0
- package/dist/esm/logical-filter-operator-d793d1c3.js.map +1 -0
- package/dist/esm/make-ref-4b76e9b5.js +23 -0
- package/dist/esm/make-ref-4b76e9b5.js.map +1 -0
- package/dist/esm/menu-tabs-fc-563a74d9.js +103 -0
- package/dist/esm/menu-tabs-fc-563a74d9.js.map +1 -0
- package/dist/esm/modal-101eef04.js +246 -0
- package/dist/esm/modal-101eef04.js.map +1 -0
- package/dist/esm/setup-d88021f8.js +43 -0
- package/dist/esm/setup-d88021f8.js.map +1 -0
- package/dist/esm/shadow-dom-cc0bc152.js +45 -0
- package/dist/esm/shadow-dom-cc0bc152.js.map +1 -0
- package/dist/esm/siemens-ix.js +5 -4
- package/dist/esm/siemens-ix.js.map +1 -1
- package/dist/esm/theme-switcher-5fcf712d.js +124 -0
- package/dist/esm/theme-switcher-5fcf712d.js.map +1 -0
- package/dist/esm/validation-45aa490c.js +112 -0
- package/dist/esm/validation-45aa490c.js.map +1 -0
- package/dist/siemens-ix/index.esm.js +1 -1
- package/dist/siemens-ix/index.esm.js.map +1 -1
- package/dist/siemens-ix/p-044c2a7b.entry.js +2 -0
- package/dist/siemens-ix/p-044c2a7b.entry.js.map +1 -0
- package/dist/siemens-ix/p-05839c77.entry.js +2 -0
- package/dist/siemens-ix/p-05839c77.entry.js.map +1 -0
- package/dist/siemens-ix/p-08463669.entry.js +2 -0
- package/dist/siemens-ix/p-08463669.entry.js.map +1 -0
- package/dist/siemens-ix/p-0be907d4.entry.js +2 -0
- package/dist/siemens-ix/p-0c89cbcc.entry.js +2 -0
- package/dist/siemens-ix/p-0c89cbcc.entry.js.map +1 -0
- package/dist/siemens-ix/p-0dbc970e.entry.js +2 -0
- package/dist/siemens-ix/p-0dbc970e.entry.js.map +1 -0
- package/dist/siemens-ix/p-0e983f70.js +2 -0
- package/dist/siemens-ix/p-0e983f70.js.map +1 -0
- package/dist/siemens-ix/p-0f0e7e14.entry.js +2 -0
- package/dist/siemens-ix/p-0f0e7e14.entry.js.map +1 -0
- package/dist/siemens-ix/p-0f2bf43d.entry.js +2 -0
- package/dist/siemens-ix/p-0f2bf43d.entry.js.map +1 -0
- package/dist/siemens-ix/p-10a522ca.js +2 -0
- package/dist/siemens-ix/p-10a522ca.js.map +1 -0
- package/dist/siemens-ix/p-11ce9c6a.entry.js +2 -0
- package/dist/siemens-ix/p-11ce9c6a.entry.js.map +1 -0
- package/dist/siemens-ix/p-175599e4.entry.js +2 -0
- package/dist/siemens-ix/p-175599e4.entry.js.map +1 -0
- package/dist/siemens-ix/p-178ce002.js +2 -0
- package/dist/siemens-ix/p-178ce002.js.map +1 -0
- package/dist/siemens-ix/p-18097528.entry.js +2 -0
- package/dist/siemens-ix/p-18097528.entry.js.map +1 -0
- package/dist/siemens-ix/p-1c5ebea3.entry.js +2 -0
- package/dist/siemens-ix/p-1c5ebea3.entry.js.map +1 -0
- package/dist/siemens-ix/p-23a4b81f.js +2 -0
- package/dist/siemens-ix/p-23a4b81f.js.map +1 -0
- package/dist/siemens-ix/p-24a35b20.entry.js +2 -0
- package/dist/siemens-ix/p-24a35b20.entry.js.map +1 -0
- package/dist/siemens-ix/p-25465f91.entry.js +2 -0
- package/dist/siemens-ix/p-25465f91.entry.js.map +1 -0
- package/dist/siemens-ix/p-2643f32a.entry.js +2 -0
- package/dist/siemens-ix/p-286feb7e.entry.js +2 -0
- package/dist/siemens-ix/p-2a34a0c2.entry.js +2 -0
- package/dist/siemens-ix/p-2b226409.entry.js +2 -0
- package/dist/siemens-ix/p-2b226409.entry.js.map +1 -0
- package/dist/siemens-ix/p-2b367b12.entry.js +2 -0
- package/dist/siemens-ix/p-2b9c5f59.entry.js +2 -0
- package/dist/siemens-ix/p-2d3a6d29.entry.js +2 -0
- package/dist/siemens-ix/p-2d3a6d29.entry.js.map +1 -0
- package/dist/siemens-ix/p-2d7ea063.entry.js +2 -0
- package/dist/siemens-ix/p-2d7ea063.entry.js.map +1 -0
- package/dist/siemens-ix/p-2db63240.entry.js +2 -0
- package/dist/siemens-ix/p-2db63240.entry.js.map +1 -0
- package/dist/siemens-ix/p-3205726a.entry.js +2 -0
- package/dist/siemens-ix/p-345e1c73.js +2 -0
- package/dist/siemens-ix/p-345e1c73.js.map +1 -0
- package/dist/siemens-ix/p-35e14912.js +2 -0
- package/dist/siemens-ix/p-35e14912.js.map +1 -0
- package/dist/siemens-ix/p-37af7117.entry.js +2 -0
- package/dist/siemens-ix/p-37af7117.entry.js.map +1 -0
- package/dist/siemens-ix/p-392b4297.entry.js +2 -0
- package/dist/siemens-ix/p-392b4297.entry.js.map +1 -0
- package/dist/siemens-ix/p-3c668c0e.js +2 -0
- package/dist/siemens-ix/p-3c668c0e.js.map +1 -0
- package/dist/siemens-ix/p-3f367d44.entry.js +2 -0
- package/dist/siemens-ix/p-3f367d44.entry.js.map +1 -0
- package/dist/siemens-ix/p-40dc610f.entry.js +2 -0
- package/dist/siemens-ix/p-40dc610f.entry.js.map +1 -0
- package/dist/siemens-ix/p-424e8092.entry.js +2 -0
- package/dist/siemens-ix/p-424e8092.entry.js.map +1 -0
- package/dist/siemens-ix/p-429e3749.entry.js +2 -0
- package/dist/siemens-ix/p-429e3749.entry.js.map +1 -0
- package/dist/siemens-ix/p-4624a772.entry.js +2 -0
- package/dist/siemens-ix/p-4624a772.entry.js.map +1 -0
- package/dist/siemens-ix/p-475ac85f.entry.js +2 -0
- package/dist/siemens-ix/p-475ac85f.entry.js.map +1 -0
- package/dist/siemens-ix/p-484aa96b.js +2 -0
- package/dist/siemens-ix/p-484aa96b.js.map +1 -0
- package/dist/siemens-ix/p-48718dc1.entry.js +2 -0
- package/dist/siemens-ix/p-48718dc1.entry.js.map +1 -0
- package/dist/siemens-ix/p-4a631d9c.entry.js +2 -0
- package/dist/siemens-ix/p-4a631d9c.entry.js.map +1 -0
- package/dist/siemens-ix/p-4a9330a5.entry.js +2 -0
- package/dist/siemens-ix/p-4a9330a5.entry.js.map +1 -0
- package/dist/siemens-ix/p-4ac31849.js +2 -0
- package/dist/siemens-ix/p-4ac31849.js.map +1 -0
- package/dist/siemens-ix/p-4c9b7548.entry.js +2 -0
- package/dist/siemens-ix/p-4c9b7548.entry.js.map +1 -0
- package/dist/siemens-ix/p-4cc79e8f.entry.js +2 -0
- package/dist/siemens-ix/p-4e51d716.entry.js +2 -0
- package/dist/siemens-ix/p-4ec6ddfb.entry.js +2 -0
- package/dist/siemens-ix/p-4ec6ddfb.entry.js.map +1 -0
- package/dist/siemens-ix/p-50096707.js +2 -0
- package/dist/siemens-ix/p-50096707.js.map +1 -0
- package/dist/siemens-ix/p-52928e21.entry.js +2 -0
- package/dist/siemens-ix/p-52928e21.entry.js.map +1 -0
- package/dist/siemens-ix/p-54efe56b.entry.js +2 -0
- package/dist/siemens-ix/p-54efe56b.entry.js.map +1 -0
- package/dist/siemens-ix/p-5682e985.js +2 -0
- package/dist/siemens-ix/p-57e60a06.entry.js +2 -0
- package/dist/siemens-ix/p-5806df2b.js +3 -0
- package/dist/siemens-ix/p-5806df2b.js.map +1 -0
- package/dist/siemens-ix/p-5c1b136c.entry.js +2 -0
- package/dist/siemens-ix/p-5c1b136c.entry.js.map +1 -0
- package/dist/siemens-ix/p-5db5a0b5.entry.js +2 -0
- package/dist/siemens-ix/p-5db5a0b5.entry.js.map +1 -0
- package/dist/siemens-ix/p-5fe87e71.js +2 -0
- package/dist/siemens-ix/p-5fe87e71.js.map +1 -0
- package/dist/siemens-ix/p-63dd987f.entry.js +2 -0
- package/dist/siemens-ix/p-654f91f2.entry.js +2 -0
- package/dist/siemens-ix/p-654f91f2.entry.js.map +1 -0
- package/dist/siemens-ix/p-66178fe6.entry.js +2 -0
- package/dist/siemens-ix/p-66178fe6.entry.js.map +1 -0
- package/dist/siemens-ix/p-6624076c.entry.js +2 -0
- package/dist/siemens-ix/p-6624076c.entry.js.map +1 -0
- package/dist/siemens-ix/p-66559451.entry.js +2 -0
- package/dist/siemens-ix/p-6722bcff.entry.js +2 -0
- package/dist/siemens-ix/p-6722bcff.entry.js.map +1 -0
- package/dist/siemens-ix/p-68bb2a09.entry.js +2 -0
- package/dist/siemens-ix/p-68bb2a09.entry.js.map +1 -0
- package/dist/siemens-ix/p-6a4a2064.entry.js +2 -0
- package/dist/siemens-ix/p-6a4a2064.entry.js.map +1 -0
- package/dist/siemens-ix/p-6bae4e9b.entry.js +2 -0
- package/dist/siemens-ix/p-6bf208b8.js +2 -0
- package/dist/siemens-ix/p-6e3f1de3.entry.js +2 -0
- package/dist/siemens-ix/p-6e3f1de3.entry.js.map +1 -0
- package/dist/siemens-ix/p-76b57ff0.entry.js +2 -0
- package/dist/siemens-ix/p-76b57ff0.entry.js.map +1 -0
- package/dist/siemens-ix/p-792e1c52.entry.js +2 -0
- package/dist/siemens-ix/p-792e1c52.entry.js.map +1 -0
- package/dist/siemens-ix/p-79bb0d39.js +2 -0
- package/dist/siemens-ix/p-79bb0d39.js.map +1 -0
- package/dist/siemens-ix/p-7aa07d9b.entry.js +2 -0
- package/dist/siemens-ix/p-7aa07d9b.entry.js.map +1 -0
- package/dist/siemens-ix/p-7aa26727.js +2 -0
- package/dist/siemens-ix/p-7aa26727.js.map +1 -0
- package/dist/siemens-ix/p-7af324e9.entry.js +2 -0
- package/dist/siemens-ix/p-7af324e9.entry.js.map +1 -0
- package/dist/siemens-ix/p-815699d1.entry.js +2 -0
- package/dist/siemens-ix/p-815699d1.entry.js.map +1 -0
- package/dist/siemens-ix/p-83da8f11.entry.js +2 -0
- package/dist/siemens-ix/p-83da8f11.entry.js.map +1 -0
- package/dist/siemens-ix/p-8457d846.entry.js +2 -0
- package/dist/siemens-ix/p-8457d846.entry.js.map +1 -0
- package/dist/siemens-ix/p-8564bc5f.entry.js +2 -0
- package/dist/siemens-ix/p-8564bc5f.entry.js.map +1 -0
- package/dist/siemens-ix/p-857f99c8.entry.js +2 -0
- package/dist/siemens-ix/p-857f99c8.entry.js.map +1 -0
- package/dist/siemens-ix/p-8c2b62c3.entry.js +2 -0
- package/dist/siemens-ix/p-8da941cd.entry.js +2 -0
- package/dist/siemens-ix/p-8da941cd.entry.js.map +1 -0
- package/dist/siemens-ix/p-8f616a5c.entry.js +2 -0
- package/dist/siemens-ix/p-91046d49.entry.js +2 -0
- package/dist/siemens-ix/p-91046d49.entry.js.map +1 -0
- package/dist/siemens-ix/p-9948574f.entry.js +2 -0
- package/dist/siemens-ix/p-9d323232.entry.js +2 -0
- package/dist/siemens-ix/p-9d323232.entry.js.map +1 -0
- package/dist/siemens-ix/p-9d5d4948.js +2 -0
- package/dist/siemens-ix/p-9d5d4948.js.map +1 -0
- package/dist/siemens-ix/p-9fe2759f.entry.js +2 -0
- package/dist/siemens-ix/p-9fe2759f.entry.js.map +1 -0
- package/dist/siemens-ix/p-a3364116.entry.js +2 -0
- package/dist/siemens-ix/p-a3364116.entry.js.map +1 -0
- package/dist/siemens-ix/p-a36ad7c7.entry.js +2 -0
- package/dist/siemens-ix/p-a36ad7c7.entry.js.map +1 -0
- package/dist/siemens-ix/p-a427e6a2.js +2 -0
- package/dist/siemens-ix/p-a427e6a2.js.map +1 -0
- package/dist/siemens-ix/p-a61ed462.entry.js +2 -0
- package/dist/siemens-ix/p-b2a06e46.entry.js +2 -0
- package/dist/siemens-ix/p-b5c887e5.entry.js +2 -0
- package/dist/siemens-ix/p-b5c887e5.entry.js.map +1 -0
- package/dist/siemens-ix/p-b62f8f62.entry.js +2 -0
- package/dist/siemens-ix/p-b62f8f62.entry.js.map +1 -0
- package/dist/siemens-ix/p-b74a8cdc.entry.js +2 -0
- package/dist/siemens-ix/p-b74a8cdc.entry.js.map +1 -0
- package/dist/siemens-ix/p-ba6e955a.js +2 -0
- package/dist/siemens-ix/p-ba6e955a.js.map +1 -0
- package/dist/siemens-ix/p-bd4c1a44.entry.js +2 -0
- package/dist/siemens-ix/p-bd4c1a44.entry.js.map +1 -0
- package/dist/siemens-ix/p-bded112a.entry.js +2 -0
- package/dist/siemens-ix/p-bded112a.entry.js.map +1 -0
- package/dist/siemens-ix/p-be860121.entry.js +2 -0
- package/dist/siemens-ix/p-be860121.entry.js.map +1 -0
- package/dist/siemens-ix/p-c236cf18.entry.js +2 -0
- package/dist/siemens-ix/p-c6796e64.entry.js +2 -0
- package/dist/siemens-ix/p-caf49e00.entry.js +2 -0
- package/dist/siemens-ix/p-caf49e00.entry.js.map +1 -0
- package/dist/siemens-ix/p-cbfca958.entry.js +2 -0
- package/dist/siemens-ix/p-ce563a48.js +2 -0
- package/dist/siemens-ix/p-ce563a48.js.map +1 -0
- package/dist/siemens-ix/p-d01f05cf.entry.js +2 -0
- package/dist/siemens-ix/p-d01f05cf.entry.js.map +1 -0
- package/dist/siemens-ix/p-d0b38ae2.entry.js +2 -0
- package/dist/siemens-ix/p-d0b38ae2.entry.js.map +1 -0
- package/dist/siemens-ix/p-d19b52bd.entry.js +2 -0
- package/dist/siemens-ix/p-d19b52bd.entry.js.map +1 -0
- package/dist/siemens-ix/p-d7aa00d6.js +2 -0
- package/dist/siemens-ix/p-d7aa00d6.js.map +1 -0
- package/dist/siemens-ix/p-d929f23d.entry.js +2 -0
- package/dist/siemens-ix/p-d95a6f49.entry.js +2 -0
- package/dist/siemens-ix/p-d95a6f49.entry.js.map +1 -0
- package/dist/siemens-ix/p-dc2d5730.entry.js +2 -0
- package/dist/siemens-ix/p-dc2d5730.entry.js.map +1 -0
- package/dist/siemens-ix/p-df7060ae.entry.js +2 -0
- package/dist/siemens-ix/p-df7060ae.entry.js.map +1 -0
- package/dist/siemens-ix/p-dfb181c1.entry.js +2 -0
- package/dist/siemens-ix/p-dfb181c1.entry.js.map +1 -0
- package/dist/siemens-ix/p-e7ac5657.entry.js +2 -0
- package/dist/siemens-ix/p-e9a37b3f.entry.js +2 -0
- package/dist/siemens-ix/p-edc1d44a.entry.js +2 -0
- package/dist/siemens-ix/p-ede52531.entry.js +2 -0
- package/dist/siemens-ix/p-ede52531.entry.js.map +1 -0
- package/dist/siemens-ix/p-f35386ec.js +2 -0
- package/dist/siemens-ix/p-f35386ec.js.map +1 -0
- package/dist/siemens-ix/p-f39048a2.entry.js +2 -0
- package/dist/siemens-ix/p-f39048a2.entry.js.map +1 -0
- package/dist/siemens-ix/p-f7618d1d.entry.js +2 -0
- package/dist/siemens-ix/p-f7618d1d.entry.js.map +1 -0
- package/dist/siemens-ix/p-f97a15c4.js +2 -0
- package/dist/siemens-ix/p-f97a15c4.js.map +1 -0
- package/dist/siemens-ix/p-fad9f568.js +2 -0
- package/dist/siemens-ix/p-fad9f568.js.map +1 -0
- package/dist/siemens-ix/p-ffca56d6.entry.js +2 -0
- package/dist/siemens-ix/siemens-ix-core.css +1 -1
- package/dist/siemens-ix/siemens-ix.css +177 -28
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
- package/dist/siemens-ix/theme/classic-dark.css +1 -1
- package/dist/siemens-ix/theme/classic-light.css +1 -1
- package/dist/siemens-ix/theme/legacy-classic-dark.css +1 -1
- package/dist/siemens-ix/theme/legacy-classic-light.css +1 -1
- package/dist/types/components/action-card/action-card.d.ts +3 -2
- package/dist/types/components/application-header/application-header.d.ts +18 -0
- package/dist/types/components/avatar/avatar.d.ts +6 -6
- package/dist/types/components/basic-navigation/basic-navigation.d.ts +2 -1
- package/dist/types/components/blind/blind.d.ts +4 -4
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +3 -3
- package/dist/types/components/button/base-button.d.ts +3 -2
- package/dist/types/components/button/button.d.ts +3 -2
- package/dist/types/components/card/card.d.ts +2 -1
- package/dist/types/components/card-list/card-list.d.ts +3 -3
- package/dist/types/components/category-filter/category-filter.d.ts +31 -12
- package/dist/types/components/category-filter/test/category-filter.ct.d.ts +1 -0
- package/dist/types/components/checkbox/checkbox.d.ts +61 -0
- package/dist/types/components/checkbox/tests/checkbox.ct.d.ts +1 -0
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +47 -0
- package/dist/types/components/content-header/content-header.d.ts +1 -1
- package/dist/types/components/css-grid/css-grid.d.ts +2 -2
- package/dist/types/components/custom-field/custom-field.d.ts +46 -0
- package/dist/types/components/custom-field/tests/custom-field.ct.d.ts +1 -0
- package/dist/types/components/date-dropdown/date-dropdown.d.ts +18 -4
- package/dist/types/components/date-input/date-input.d.ts +138 -0
- package/dist/types/components/date-input/tests/date-input.ct.d.ts +1 -0
- package/dist/types/components/date-picker/date-picker-component.d.ts +43 -0
- package/dist/types/components/date-picker/date-picker.d.ts +9 -11
- package/dist/types/components/date-time-card/date-time-card.d.ts +1 -1
- package/dist/types/components/datetime-picker/datetime-picker.d.ts +13 -12
- package/dist/types/components/dropdown/dropdown-controller.d.ts +3 -7
- package/dist/types/components/dropdown/dropdown.d.ts +13 -12
- package/dist/types/components/dropdown-button/dropdown-button.d.ts +4 -4
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +2 -2
- package/dist/types/components/event-list-item/event-list-item.d.ts +2 -2
- package/dist/types/components/field-label/field-label.d.ts +33 -0
- package/dist/types/components/field-label/tests/field-label.ct.d.ts +1 -0
- package/dist/types/components/field-wrapper/field-wrapper.d.ts +64 -0
- package/dist/types/components/field-wrapper/helper-text-util.d.ts +18 -0
- package/dist/types/components/field-wrapper/tests/field-wrapper.ct.d.ts +1 -0
- package/dist/types/components/group/group.d.ts +4 -2
- package/dist/types/components/helper-text/helper-text.d.ts +37 -0
- package/dist/types/components/input/input.animation.d.ts +1 -0
- package/dist/types/components/input/input.d.ts +123 -0
- package/dist/types/components/input/input.fc.d.ts +52 -0
- package/dist/types/components/input/input.util.d.ts +13 -0
- package/dist/types/components/input/number-input.d.ts +121 -0
- package/dist/types/components/input/tests/form-ready.ct.d.ts +1 -0
- package/dist/types/components/input/textarea.d.ts +126 -0
- package/dist/types/components/layout-auto/layout-auto.d.ts +24 -0
- package/dist/types/components/menu/menu.d.ts +3 -7
- package/dist/types/components/menu-about/test/menu-about.ct.d.ts +1 -0
- package/dist/types/components/menu-item/menu-item.d.ts +9 -8
- package/dist/types/components/modal/test/modal.ct.d.ts +3 -2
- package/dist/types/components/modal-header/modal-header.d.ts +3 -3
- package/dist/types/components/pane/pane.d.ts +9 -9
- package/dist/types/components/pane-layout/pane-layout.d.ts +1 -1
- package/dist/types/components/push-card/push-card.d.ts +4 -3
- package/dist/types/components/radio/radio.d.ts +53 -0
- package/dist/types/components/radio/test/radio.ct.d.ts +1 -0
- package/dist/types/components/radio-group/radio-group.d.ts +64 -0
- package/dist/types/components/radio-group/test/radio-group.ct.d.ts +1 -0
- package/dist/types/components/select/select.d.ts +97 -14
- package/dist/types/components/select-item/events.d.ts +9 -0
- package/dist/types/components/select-item/select-item.d.ts +3 -1
- package/dist/types/components/time-picker/time-picker.d.ts +3 -3
- package/dist/types/components/toggle/toggle.d.ts +29 -1
- package/dist/types/components/tooltip/tooltip.d.ts +4 -4
- package/dist/types/components/tree/tree.d.ts +1 -1
- package/dist/types/components/tree-item/tree-item.d.ts +3 -3
- package/dist/types/components/typography/type-mapping.d.ts +3 -0
- package/dist/types/components/typography/typography.d.ts +3 -10
- package/dist/types/components/upload/test/upload.ct.d.ts +1 -0
- package/dist/types/components/upload/upload.d.ts +4 -2
- package/dist/types/components/utils/a11y.d.ts +5 -5
- package/dist/types/components/utils/application-layout/context.d.ts +2 -1
- package/dist/types/components/utils/attributes.d.ts +2 -0
- package/dist/types/components/utils/disposable-event-listener.d.ts +7 -0
- package/dist/types/components/utils/element-reference.d.ts +1 -0
- package/dist/types/components/utils/find-element.d.ts +22 -0
- package/dist/types/components/utils/focus.d.ts +5 -4
- package/dist/types/components/utils/input/index.d.ts +61 -0
- package/dist/types/components/utils/input/validation.d.ts +15 -0
- package/dist/types/components/utils/listener.d.ts +4 -2
- package/dist/types/components/utils/make-ref.d.ts +2 -2
- package/dist/types/components/utils/modal/index.d.ts +1 -1
- package/dist/types/components/utils/modal/message.d.ts +10 -7
- package/dist/types/components/utils/theme-switcher.d.ts +3 -2
- package/dist/types/components/utils/type-helper.d.ts +1 -0
- package/dist/types/components/utils/uuid.d.ts +1 -0
- package/dist/types/components.d.ts +2020 -230
- package/dist/types/index.d.ts +4 -0
- package/dist/types/setup.d.ts +7 -1
- package/dist/types/tests/utils/test/index.d.ts +3 -0
- package/dist/types/tests/utils/test/page.d.ts +1 -3
- package/hydrate/index.js +4231 -1235
- package/package.json +15 -14
- package/scss/_core.scss +5 -0
- package/scss/components/_checkboxes.scss +4 -11
- package/scss/components/form/_input.scss +84 -9
- package/scss/mixins/_field.scss +18 -0
- package/scss/mixins/validation/_form-component.scss +64 -0
- package/components/ix-form-field.d.ts +0 -11
- package/components/ix-form-field.js +0 -44
- package/components/ix-form-field.js.map +0 -1
- package/components/ix-modal-example.d.ts +0 -11
- package/components/ix-modal-example.js +0 -58
- package/components/ix-modal-example.js.map +0 -1
- package/components/ix-playground-internal.d.ts +0 -11
- package/components/ix-playground-internal.js +0 -35
- package/components/ix-playground-internal.js.map +0 -1
- package/dist/cjs/a11y-d3ce56d1.js +0 -146
- package/dist/cjs/a11y-d3ce56d1.js.map +0 -1
- package/dist/cjs/app-globals-5cfdf2a0.js +0 -31
- package/dist/cjs/app-globals-5cfdf2a0.js.map +0 -1
- package/dist/cjs/base-button-3735b8c2.js +0 -73
- package/dist/cjs/base-button-3735b8c2.js.map +0 -1
- package/dist/cjs/base-icon-button-44c72bc8.js +0 -20
- package/dist/cjs/base-icon-button-44c72bc8.js.map +0 -1
- package/dist/cjs/context-98f4a0b3.js +0 -106
- package/dist/cjs/context-98f4a0b3.js.map +0 -1
- package/dist/cjs/floating-ui.dom.esm-94b4d17c.js +0 -1536
- package/dist/cjs/floating-ui.dom.esm-94b4d17c.js.map +0 -1
- package/dist/cjs/focus-9c8ffbb0.js +0 -65
- package/dist/cjs/focus-9c8ffbb0.js.map +0 -1
- package/dist/cjs/index-529f21c1.js +0 -2122
- package/dist/cjs/index-529f21c1.js.map +0 -1
- package/dist/cjs/index-c4629a8d.js +0 -30
- package/dist/cjs/index-c4629a8d.js.map +0 -1
- package/dist/cjs/ix-form-field.cjs.entry.js +0 -28
- package/dist/cjs/ix-form-field.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-modal-example.cjs.entry.js +0 -28
- package/dist/cjs/ix-modal-example.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-playground-internal.cjs.entry.js +0 -22
- package/dist/cjs/ix-playground-internal.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-tooltip.cjs.entry.js +0 -297
- package/dist/cjs/ix-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/listener-bc3e7c0c.js +0 -77
- package/dist/cjs/listener-bc3e7c0c.js.map +0 -1
- package/dist/cjs/logical-filter-operator-5564322e.js +0 -38
- package/dist/cjs/logical-filter-operator-5564322e.js.map +0 -1
- package/dist/cjs/make-ref-c25629b7.js +0 -30
- package/dist/cjs/make-ref-c25629b7.js.map +0 -1
- package/dist/cjs/menu-tabs-fc-df53f176.js +0 -105
- package/dist/cjs/menu-tabs-fc-df53f176.js.map +0 -1
- package/dist/cjs/modal-828cb80a.js +0 -252
- package/dist/cjs/modal-828cb80a.js.map +0 -1
- package/dist/cjs/shadow-dom-73f9d553.js +0 -50
- package/dist/cjs/shadow-dom-73f9d553.js.map +0 -1
- package/dist/cjs/theme-switcher-2d2bde85.js +0 -126
- package/dist/cjs/theme-switcher-2d2bde85.js.map +0 -1
- package/dist/collection/components/event-list/test/event-list.spec.js +0 -65
- package/dist/collection/components/event-list/test/event-list.spec.js.map +0 -1
- package/dist/collection/components/form-field/form-field.css +0 -296
- package/dist/collection/components/form-field/form-field.js +0 -56
- package/dist/collection/components/form-field/form-field.js.map +0 -1
- package/dist/collection/components/grid/layout-grid.css +0 -21
- package/dist/collection/components/grid/layout-grid.js +0 -98
- package/dist/collection/components/grid/layout-grid.js.map +0 -1
- package/dist/collection/components/playground/example-modal.js +0 -24
- package/dist/collection/components/playground/example-modal.js.map +0 -1
- package/dist/collection/components/playground/playground.css +0 -27
- package/dist/collection/components/playground/playground.js +0 -28
- package/dist/collection/components/playground/playground.js.map +0 -1
- package/dist/esm/a11y-d5444a76.js +0 -142
- package/dist/esm/a11y-d5444a76.js.map +0 -1
- package/dist/esm/app-globals-0cd07cd9.js +0 -29
- package/dist/esm/app-globals-0cd07cd9.js.map +0 -1
- package/dist/esm/base-button-1b40b11d.js +0 -70
- package/dist/esm/base-button-1b40b11d.js.map +0 -1
- package/dist/esm/base-icon-button-bc1dabe0.js +0 -18
- package/dist/esm/base-icon-button-bc1dabe0.js.map +0 -1
- package/dist/esm/context-c9078420.js +0 -101
- package/dist/esm/context-c9078420.js.map +0 -1
- package/dist/esm/floating-ui.dom.esm-6e7c098f.js +0 -1528
- package/dist/esm/floating-ui.dom.esm-6e7c098f.js.map +0 -1
- package/dist/esm/focus-d4d3abaf.js +0 -63
- package/dist/esm/focus-d4d3abaf.js.map +0 -1
- package/dist/esm/index-5429f20b.js +0 -2090
- package/dist/esm/index-5429f20b.js.map +0 -1
- package/dist/esm/index-76b9c8de.js +0 -28
- package/dist/esm/index-76b9c8de.js.map +0 -1
- package/dist/esm/ix-form-field.entry.js +0 -24
- package/dist/esm/ix-form-field.entry.js.map +0 -1
- package/dist/esm/ix-modal-example.entry.js +0 -24
- package/dist/esm/ix-modal-example.entry.js.map +0 -1
- package/dist/esm/ix-playground-internal.entry.js +0 -18
- package/dist/esm/ix-playground-internal.entry.js.map +0 -1
- package/dist/esm/ix-tooltip.entry.js +0 -293
- package/dist/esm/ix-tooltip.entry.js.map +0 -1
- package/dist/esm/listener-4f3baab5.js +0 -75
- package/dist/esm/listener-4f3baab5.js.map +0 -1
- package/dist/esm/logical-filter-operator-f6701df5.js +0 -36
- package/dist/esm/logical-filter-operator-f6701df5.js.map +0 -1
- package/dist/esm/make-ref-c80046bf.js +0 -28
- package/dist/esm/make-ref-c80046bf.js.map +0 -1
- package/dist/esm/menu-tabs-fc-d9a7dd06.js +0 -100
- package/dist/esm/menu-tabs-fc-d9a7dd06.js.map +0 -1
- package/dist/esm/modal-54740f80.js +0 -244
- package/dist/esm/modal-54740f80.js.map +0 -1
- package/dist/esm/shadow-dom-60e9243d.js +0 -45
- package/dist/esm/shadow-dom-60e9243d.js.map +0 -1
- package/dist/esm/theme-switcher-b10fb4da.js +0 -123
- package/dist/esm/theme-switcher-b10fb4da.js.map +0 -1
- package/dist/siemens-ix/p-052340f9.entry.js +0 -2
- package/dist/siemens-ix/p-0653a145.entry.js +0 -2
- package/dist/siemens-ix/p-0653a145.entry.js.map +0 -1
- package/dist/siemens-ix/p-0b4e3779.entry.js +0 -2
- package/dist/siemens-ix/p-0b4e3779.entry.js.map +0 -1
- package/dist/siemens-ix/p-0b4e398e.entry.js +0 -2
- package/dist/siemens-ix/p-0b4e398e.entry.js.map +0 -1
- package/dist/siemens-ix/p-0c8a98cd.js +0 -2
- package/dist/siemens-ix/p-0c8a98cd.js.map +0 -1
- package/dist/siemens-ix/p-0ca3528f.js +0 -2
- package/dist/siemens-ix/p-0d2a6886.entry.js +0 -2
- package/dist/siemens-ix/p-0f7ef743.entry.js +0 -2
- package/dist/siemens-ix/p-0f7ef743.entry.js.map +0 -1
- package/dist/siemens-ix/p-113cc793.entry.js +0 -2
- package/dist/siemens-ix/p-14a41c8c.entry.js +0 -2
- package/dist/siemens-ix/p-15b3c17e.entry.js +0 -2
- package/dist/siemens-ix/p-15b3c17e.entry.js.map +0 -1
- package/dist/siemens-ix/p-16b923e9.entry.js +0 -2
- package/dist/siemens-ix/p-1a122c76.entry.js +0 -2
- package/dist/siemens-ix/p-1cff59db.entry.js +0 -2
- package/dist/siemens-ix/p-1cff59db.entry.js.map +0 -1
- package/dist/siemens-ix/p-1d581190.js +0 -2
- package/dist/siemens-ix/p-1d581190.js.map +0 -1
- package/dist/siemens-ix/p-1da901d5.js +0 -2
- package/dist/siemens-ix/p-1da901d5.js.map +0 -1
- package/dist/siemens-ix/p-1db6be55.js +0 -2
- package/dist/siemens-ix/p-1db6be55.js.map +0 -1
- package/dist/siemens-ix/p-1f4b8463.entry.js +0 -2
- package/dist/siemens-ix/p-235c14ca.js +0 -2
- package/dist/siemens-ix/p-235c14ca.js.map +0 -1
- package/dist/siemens-ix/p-24a8737a.entry.js +0 -2
- package/dist/siemens-ix/p-25ee1b62.js +0 -2
- package/dist/siemens-ix/p-25ee1b62.js.map +0 -1
- package/dist/siemens-ix/p-2908cacd.entry.js +0 -2
- package/dist/siemens-ix/p-2908cacd.entry.js.map +0 -1
- package/dist/siemens-ix/p-2946fd70.entry.js +0 -2
- package/dist/siemens-ix/p-2c4c03d4.entry.js +0 -2
- package/dist/siemens-ix/p-2c4c03d4.entry.js.map +0 -1
- package/dist/siemens-ix/p-2ebfd4fd.entry.js +0 -2
- package/dist/siemens-ix/p-2ebfd4fd.entry.js.map +0 -1
- package/dist/siemens-ix/p-2ec7f841.entry.js +0 -2
- package/dist/siemens-ix/p-2ec7f841.entry.js.map +0 -1
- package/dist/siemens-ix/p-309ac3ad.entry.js +0 -2
- package/dist/siemens-ix/p-309ac3ad.entry.js.map +0 -1
- package/dist/siemens-ix/p-32375ddb.entry.js +0 -2
- package/dist/siemens-ix/p-32d4ed3b.entry.js +0 -2
- package/dist/siemens-ix/p-427676f4.entry.js +0 -2
- package/dist/siemens-ix/p-427676f4.entry.js.map +0 -1
- package/dist/siemens-ix/p-4430117a.entry.js +0 -2
- package/dist/siemens-ix/p-44db3646.entry.js +0 -2
- package/dist/siemens-ix/p-453fa360.entry.js +0 -2
- package/dist/siemens-ix/p-453fa360.entry.js.map +0 -1
- package/dist/siemens-ix/p-4b3facea.entry.js +0 -2
- package/dist/siemens-ix/p-4b3facea.entry.js.map +0 -1
- package/dist/siemens-ix/p-4df0cdd7.entry.js +0 -2
- package/dist/siemens-ix/p-4df0cdd7.entry.js.map +0 -1
- package/dist/siemens-ix/p-4f8ac3bf.js +0 -2
- package/dist/siemens-ix/p-4f8ac3bf.js.map +0 -1
- package/dist/siemens-ix/p-52857629.entry.js +0 -2
- package/dist/siemens-ix/p-52857629.entry.js.map +0 -1
- package/dist/siemens-ix/p-53352bfb.entry.js +0 -2
- package/dist/siemens-ix/p-53352bfb.entry.js.map +0 -1
- package/dist/siemens-ix/p-5696bb62.entry.js +0 -2
- package/dist/siemens-ix/p-5696bb62.entry.js.map +0 -1
- package/dist/siemens-ix/p-5aa0b93c.entry.js +0 -2
- package/dist/siemens-ix/p-5aa0b93c.entry.js.map +0 -1
- package/dist/siemens-ix/p-5b135f6b.entry.js +0 -2
- package/dist/siemens-ix/p-5b135f6b.entry.js.map +0 -1
- package/dist/siemens-ix/p-5c673ae9.entry.js +0 -2
- package/dist/siemens-ix/p-5c673ae9.entry.js.map +0 -1
- package/dist/siemens-ix/p-5f25e7fd.entry.js +0 -2
- package/dist/siemens-ix/p-5f25e7fd.entry.js.map +0 -1
- package/dist/siemens-ix/p-6227e62b.entry.js +0 -2
- package/dist/siemens-ix/p-6227e62b.entry.js.map +0 -1
- package/dist/siemens-ix/p-64c3fa3d.js +0 -2
- package/dist/siemens-ix/p-64c3fa3d.js.map +0 -1
- package/dist/siemens-ix/p-68532fa2.js +0 -2
- package/dist/siemens-ix/p-68644ee1.entry.js +0 -2
- package/dist/siemens-ix/p-68644ee1.entry.js.map +0 -1
- package/dist/siemens-ix/p-6af4415c.entry.js +0 -2
- package/dist/siemens-ix/p-6af4415c.entry.js.map +0 -1
- package/dist/siemens-ix/p-6e6efb4c.js +0 -2
- package/dist/siemens-ix/p-6e6efb4c.js.map +0 -1
- package/dist/siemens-ix/p-6fd7ecd0.entry.js +0 -2
- package/dist/siemens-ix/p-7076210b.entry.js +0 -2
- package/dist/siemens-ix/p-7076210b.entry.js.map +0 -1
- package/dist/siemens-ix/p-712e0ee0.js +0 -2
- package/dist/siemens-ix/p-712e0ee0.js.map +0 -1
- package/dist/siemens-ix/p-71315e2e.entry.js +0 -2
- package/dist/siemens-ix/p-71315e2e.entry.js.map +0 -1
- package/dist/siemens-ix/p-713828ed.entry.js +0 -2
- package/dist/siemens-ix/p-713828ed.entry.js.map +0 -1
- package/dist/siemens-ix/p-7bfd6cd2.entry.js +0 -2
- package/dist/siemens-ix/p-7bfd6cd2.entry.js.map +0 -1
- package/dist/siemens-ix/p-7c36d3fa.js +0 -2
- package/dist/siemens-ix/p-7c36d3fa.js.map +0 -1
- package/dist/siemens-ix/p-7faa148f.entry.js +0 -2
- package/dist/siemens-ix/p-85423643.entry.js +0 -2
- package/dist/siemens-ix/p-85423643.entry.js.map +0 -1
- package/dist/siemens-ix/p-8629db91.entry.js +0 -2
- package/dist/siemens-ix/p-8629db91.entry.js.map +0 -1
- package/dist/siemens-ix/p-87e692d9.entry.js +0 -2
- package/dist/siemens-ix/p-87e692d9.entry.js.map +0 -1
- package/dist/siemens-ix/p-882a0233.entry.js +0 -2
- package/dist/siemens-ix/p-8d0758c1.entry.js +0 -2
- package/dist/siemens-ix/p-8d599677.entry.js +0 -2
- package/dist/siemens-ix/p-8d599677.entry.js.map +0 -1
- package/dist/siemens-ix/p-90440046.entry.js +0 -2
- package/dist/siemens-ix/p-90440046.entry.js.map +0 -1
- package/dist/siemens-ix/p-92a18c10.entry.js +0 -2
- package/dist/siemens-ix/p-92a18c10.entry.js.map +0 -1
- package/dist/siemens-ix/p-9ebc4fc3.entry.js +0 -2
- package/dist/siemens-ix/p-9ebc4fc3.entry.js.map +0 -1
- package/dist/siemens-ix/p-a0138163.entry.js +0 -2
- package/dist/siemens-ix/p-a0138163.entry.js.map +0 -1
- package/dist/siemens-ix/p-a0a44a2b.entry.js +0 -2
- package/dist/siemens-ix/p-a0a44a2b.entry.js.map +0 -1
- package/dist/siemens-ix/p-a8d291fa.entry.js +0 -2
- package/dist/siemens-ix/p-a8d291fa.entry.js.map +0 -1
- package/dist/siemens-ix/p-af099ca4.entry.js +0 -2
- package/dist/siemens-ix/p-b3b23af7.entry.js +0 -2
- package/dist/siemens-ix/p-b3f35666.js +0 -2
- package/dist/siemens-ix/p-b3f35666.js.map +0 -1
- package/dist/siemens-ix/p-b4ce366d.entry.js +0 -2
- package/dist/siemens-ix/p-b4ce366d.entry.js.map +0 -1
- package/dist/siemens-ix/p-b663ca16.entry.js +0 -2
- package/dist/siemens-ix/p-b804b8c5.entry.js +0 -2
- package/dist/siemens-ix/p-bc2c74c5.entry.js +0 -2
- package/dist/siemens-ix/p-bc2c74c5.entry.js.map +0 -1
- package/dist/siemens-ix/p-bea7c748.entry.js +0 -2
- package/dist/siemens-ix/p-bf14c60b.entry.js +0 -2
- package/dist/siemens-ix/p-bf14c60b.entry.js.map +0 -1
- package/dist/siemens-ix/p-c09553f3.js +0 -2
- package/dist/siemens-ix/p-c09553f3.js.map +0 -1
- package/dist/siemens-ix/p-c1222581.entry.js +0 -2
- package/dist/siemens-ix/p-c1968b80.entry.js +0 -2
- package/dist/siemens-ix/p-c33cee36.entry.js +0 -2
- package/dist/siemens-ix/p-c33cee36.entry.js.map +0 -1
- package/dist/siemens-ix/p-d03df401.entry.js +0 -2
- package/dist/siemens-ix/p-d03df401.entry.js.map +0 -1
- package/dist/siemens-ix/p-d14024d3.entry.js +0 -2
- package/dist/siemens-ix/p-d14024d3.entry.js.map +0 -1
- package/dist/siemens-ix/p-d1f49940.entry.js +0 -2
- package/dist/siemens-ix/p-d1f49940.entry.js.map +0 -1
- package/dist/siemens-ix/p-d331216f.entry.js +0 -2
- package/dist/siemens-ix/p-d331216f.entry.js.map +0 -1
- package/dist/siemens-ix/p-d8790ff5.entry.js +0 -2
- package/dist/siemens-ix/p-d8790ff5.entry.js.map +0 -1
- package/dist/siemens-ix/p-d950c3a8.entry.js +0 -2
- package/dist/siemens-ix/p-d950c3a8.entry.js.map +0 -1
- package/dist/siemens-ix/p-d95cbd1f.entry.js +0 -2
- package/dist/siemens-ix/p-d95cbd1f.entry.js.map +0 -1
- package/dist/siemens-ix/p-d998415f.entry.js +0 -2
- package/dist/siemens-ix/p-d998415f.entry.js.map +0 -1
- package/dist/siemens-ix/p-dbe8f5e6.entry.js +0 -2
- package/dist/siemens-ix/p-dbe8f5e6.entry.js.map +0 -1
- package/dist/siemens-ix/p-dcb3e5be.entry.js +0 -2
- package/dist/siemens-ix/p-dcb3e5be.entry.js.map +0 -1
- package/dist/siemens-ix/p-dde7eb80.entry.js +0 -2
- package/dist/siemens-ix/p-dde7eb80.entry.js.map +0 -1
- package/dist/siemens-ix/p-e30ed20a.entry.js +0 -2
- package/dist/siemens-ix/p-e30ed20a.entry.js.map +0 -1
- package/dist/siemens-ix/p-e8d3cf35.entry.js +0 -2
- package/dist/siemens-ix/p-e8d3cf35.entry.js.map +0 -1
- package/dist/siemens-ix/p-e9a3f58a.entry.js +0 -2
- package/dist/siemens-ix/p-e9a3f58a.entry.js.map +0 -1
- package/dist/siemens-ix/p-eb6268a6.entry.js +0 -2
- package/dist/siemens-ix/p-eb6268a6.entry.js.map +0 -1
- package/dist/siemens-ix/p-ebb277f0.entry.js +0 -2
- package/dist/siemens-ix/p-ebb277f0.entry.js.map +0 -1
- package/dist/siemens-ix/p-f318140c.entry.js +0 -2
- package/dist/siemens-ix/p-f318140c.entry.js.map +0 -1
- package/dist/siemens-ix/p-f78246bd.entry.js +0 -2
- package/dist/siemens-ix/p-f78246bd.entry.js.map +0 -1
- package/dist/siemens-ix/p-f87cd962.js +0 -3
- package/dist/siemens-ix/p-f87cd962.js.map +0 -1
- package/dist/siemens-ix/p-fb2b78f7.entry.js +0 -2
- package/dist/siemens-ix/p-fb2b78f7.entry.js.map +0 -1
- package/dist/siemens-ix/p-fb47546b.entry.js +0 -2
- package/dist/siemens-ix/p-fb47546b.entry.js.map +0 -1
- package/dist/siemens-ix/p-fb4c79c6.entry.js +0 -2
- package/dist/siemens-ix/p-fc5814df.entry.js +0 -2
- package/dist/siemens-ix/p-fc5814df.entry.js.map +0 -1
- package/dist/siemens-ix/p-feac09bc.entry.js +0 -2
- package/dist/siemens-ix/p-feac09bc.entry.js.map +0 -1
- package/dist/siemens-ix/p-ff1ac5b3.entry.js +0 -2
- package/dist/types/components/form-field/form-field.d.ts +0 -10
- package/dist/types/components/playground/example-modal.d.ts +0 -6
- package/dist/types/components/playground/playground.d.ts +0 -4
- /package/dist/siemens-ix/{p-b3b23af7.entry.js.map → p-0be907d4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c1222581.entry.js.map → p-2643f32a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1f4b8463.entry.js.map → p-286feb7e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6fd7ecd0.entry.js.map → p-2a34a0c2.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c1968b80.entry.js.map → p-2b367b12.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-44db3646.entry.js.map → p-2b9c5f59.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-4430117a.entry.js.map → p-3205726a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-882a0233.entry.js.map → p-4cc79e8f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1a122c76.entry.js.map → p-4e51d716.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0ca3528f.js.map → p-5682e985.js.map} +0 -0
- /package/dist/siemens-ix/{p-113cc793.entry.js.map → p-57e60a06.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-af099ca4.entry.js.map → p-63dd987f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-7faa148f.entry.js.map → p-66559451.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b804b8c5.entry.js.map → p-6bae4e9b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-68532fa2.js.map → p-6bf208b8.js.map} +0 -0
- /package/dist/siemens-ix/{p-8d0758c1.entry.js.map → p-8c2b62c3.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-14a41c8c.entry.js.map → p-8f616a5c.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ff1ac5b3.entry.js.map → p-9948574f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-32d4ed3b.entry.js.map → p-a61ed462.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-052340f9.entry.js.map → p-b2a06e46.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-32375ddb.entry.js.map → p-c236cf18.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0d2a6886.entry.js.map → p-c6796e64.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-fb4c79c6.entry.js.map → p-cbfca958.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b663ca16.entry.js.map → p-d929f23d.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-2946fd70.entry.js.map → p-e7ac5657.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-bea7c748.entry.js.map → p-e9a37b3f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-24a8737a.entry.js.map → p-edc1d44a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-16b923e9.entry.js.map → p-ffca56d6.entry.js.map} +0 -0
- /package/dist/types/components/{grid → layout-grid}/layout-grid.d.ts +0 -0
|
@@ -0,0 +1,2001 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom positioning reference element.
|
|
3
|
+
* @see https://floating-ui.com/docs/virtual-elements
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
const sides = ['top', 'right', 'bottom', 'left'];
|
|
7
|
+
const alignments = ['start', 'end'];
|
|
8
|
+
const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
9
|
+
const min = Math.min;
|
|
10
|
+
const max = Math.max;
|
|
11
|
+
const round = Math.round;
|
|
12
|
+
const floor = Math.floor;
|
|
13
|
+
const createCoords = v => ({
|
|
14
|
+
x: v,
|
|
15
|
+
y: v
|
|
16
|
+
});
|
|
17
|
+
const oppositeSideMap = {
|
|
18
|
+
left: 'right',
|
|
19
|
+
right: 'left',
|
|
20
|
+
bottom: 'top',
|
|
21
|
+
top: 'bottom'
|
|
22
|
+
};
|
|
23
|
+
const oppositeAlignmentMap = {
|
|
24
|
+
start: 'end',
|
|
25
|
+
end: 'start'
|
|
26
|
+
};
|
|
27
|
+
function clamp(start, value, end) {
|
|
28
|
+
return max(start, min(value, end));
|
|
29
|
+
}
|
|
30
|
+
function evaluate(value, param) {
|
|
31
|
+
return typeof value === 'function' ? value(param) : value;
|
|
32
|
+
}
|
|
33
|
+
function getSide(placement) {
|
|
34
|
+
return placement.split('-')[0];
|
|
35
|
+
}
|
|
36
|
+
function getAlignment(placement) {
|
|
37
|
+
return placement.split('-')[1];
|
|
38
|
+
}
|
|
39
|
+
function getOppositeAxis(axis) {
|
|
40
|
+
return axis === 'x' ? 'y' : 'x';
|
|
41
|
+
}
|
|
42
|
+
function getAxisLength(axis) {
|
|
43
|
+
return axis === 'y' ? 'height' : 'width';
|
|
44
|
+
}
|
|
45
|
+
function getSideAxis(placement) {
|
|
46
|
+
return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
|
|
47
|
+
}
|
|
48
|
+
function getAlignmentAxis(placement) {
|
|
49
|
+
return getOppositeAxis(getSideAxis(placement));
|
|
50
|
+
}
|
|
51
|
+
function getAlignmentSides(placement, rects, rtl) {
|
|
52
|
+
if (rtl === void 0) {
|
|
53
|
+
rtl = false;
|
|
54
|
+
}
|
|
55
|
+
const alignment = getAlignment(placement);
|
|
56
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
57
|
+
const length = getAxisLength(alignmentAxis);
|
|
58
|
+
let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
|
59
|
+
if (rects.reference[length] > rects.floating[length]) {
|
|
60
|
+
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
61
|
+
}
|
|
62
|
+
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
63
|
+
}
|
|
64
|
+
function getExpandedPlacements(placement) {
|
|
65
|
+
const oppositePlacement = getOppositePlacement(placement);
|
|
66
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
67
|
+
}
|
|
68
|
+
function getOppositeAlignmentPlacement(placement) {
|
|
69
|
+
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
70
|
+
}
|
|
71
|
+
function getSideList(side, isStart, rtl) {
|
|
72
|
+
const lr = ['left', 'right'];
|
|
73
|
+
const rl = ['right', 'left'];
|
|
74
|
+
const tb = ['top', 'bottom'];
|
|
75
|
+
const bt = ['bottom', 'top'];
|
|
76
|
+
switch (side) {
|
|
77
|
+
case 'top':
|
|
78
|
+
case 'bottom':
|
|
79
|
+
if (rtl) return isStart ? rl : lr;
|
|
80
|
+
return isStart ? lr : rl;
|
|
81
|
+
case 'left':
|
|
82
|
+
case 'right':
|
|
83
|
+
return isStart ? tb : bt;
|
|
84
|
+
default:
|
|
85
|
+
return [];
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
89
|
+
const alignment = getAlignment(placement);
|
|
90
|
+
let list = getSideList(getSide(placement), direction === 'start', rtl);
|
|
91
|
+
if (alignment) {
|
|
92
|
+
list = list.map(side => side + "-" + alignment);
|
|
93
|
+
if (flipAlignment) {
|
|
94
|
+
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return list;
|
|
98
|
+
}
|
|
99
|
+
function getOppositePlacement(placement) {
|
|
100
|
+
return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
|
|
101
|
+
}
|
|
102
|
+
function expandPaddingObject(padding) {
|
|
103
|
+
return {
|
|
104
|
+
top: 0,
|
|
105
|
+
right: 0,
|
|
106
|
+
bottom: 0,
|
|
107
|
+
left: 0,
|
|
108
|
+
...padding
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
function getPaddingObject(padding) {
|
|
112
|
+
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
|
113
|
+
top: padding,
|
|
114
|
+
right: padding,
|
|
115
|
+
bottom: padding,
|
|
116
|
+
left: padding
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function rectToClientRect(rect) {
|
|
120
|
+
const {
|
|
121
|
+
x,
|
|
122
|
+
y,
|
|
123
|
+
width,
|
|
124
|
+
height
|
|
125
|
+
} = rect;
|
|
126
|
+
return {
|
|
127
|
+
width,
|
|
128
|
+
height,
|
|
129
|
+
top: y,
|
|
130
|
+
left: x,
|
|
131
|
+
right: x + width,
|
|
132
|
+
bottom: y + height,
|
|
133
|
+
x,
|
|
134
|
+
y
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
139
|
+
let {
|
|
140
|
+
reference,
|
|
141
|
+
floating
|
|
142
|
+
} = _ref;
|
|
143
|
+
const sideAxis = getSideAxis(placement);
|
|
144
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
145
|
+
const alignLength = getAxisLength(alignmentAxis);
|
|
146
|
+
const side = getSide(placement);
|
|
147
|
+
const isVertical = sideAxis === 'y';
|
|
148
|
+
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
|
149
|
+
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
|
150
|
+
const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
|
151
|
+
let coords;
|
|
152
|
+
switch (side) {
|
|
153
|
+
case 'top':
|
|
154
|
+
coords = {
|
|
155
|
+
x: commonX,
|
|
156
|
+
y: reference.y - floating.height
|
|
157
|
+
};
|
|
158
|
+
break;
|
|
159
|
+
case 'bottom':
|
|
160
|
+
coords = {
|
|
161
|
+
x: commonX,
|
|
162
|
+
y: reference.y + reference.height
|
|
163
|
+
};
|
|
164
|
+
break;
|
|
165
|
+
case 'right':
|
|
166
|
+
coords = {
|
|
167
|
+
x: reference.x + reference.width,
|
|
168
|
+
y: commonY
|
|
169
|
+
};
|
|
170
|
+
break;
|
|
171
|
+
case 'left':
|
|
172
|
+
coords = {
|
|
173
|
+
x: reference.x - floating.width,
|
|
174
|
+
y: commonY
|
|
175
|
+
};
|
|
176
|
+
break;
|
|
177
|
+
default:
|
|
178
|
+
coords = {
|
|
179
|
+
x: reference.x,
|
|
180
|
+
y: reference.y
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
switch (getAlignment(placement)) {
|
|
184
|
+
case 'start':
|
|
185
|
+
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
186
|
+
break;
|
|
187
|
+
case 'end':
|
|
188
|
+
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
return coords;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
|
196
|
+
* next to a given reference element.
|
|
197
|
+
*
|
|
198
|
+
* This export does not have any `platform` interface logic. You will need to
|
|
199
|
+
* write one for the platform you are using Floating UI with.
|
|
200
|
+
*/
|
|
201
|
+
const computePosition$1 = async (reference, floating, config) => {
|
|
202
|
+
const {
|
|
203
|
+
placement = 'bottom',
|
|
204
|
+
strategy = 'absolute',
|
|
205
|
+
middleware = [],
|
|
206
|
+
platform
|
|
207
|
+
} = config;
|
|
208
|
+
const validMiddleware = middleware.filter(Boolean);
|
|
209
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
210
|
+
let rects = await platform.getElementRects({
|
|
211
|
+
reference,
|
|
212
|
+
floating,
|
|
213
|
+
strategy
|
|
214
|
+
});
|
|
215
|
+
let {
|
|
216
|
+
x,
|
|
217
|
+
y
|
|
218
|
+
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
219
|
+
let statefulPlacement = placement;
|
|
220
|
+
let middlewareData = {};
|
|
221
|
+
let resetCount = 0;
|
|
222
|
+
for (let i = 0; i < validMiddleware.length; i++) {
|
|
223
|
+
const {
|
|
224
|
+
name,
|
|
225
|
+
fn
|
|
226
|
+
} = validMiddleware[i];
|
|
227
|
+
const {
|
|
228
|
+
x: nextX,
|
|
229
|
+
y: nextY,
|
|
230
|
+
data,
|
|
231
|
+
reset
|
|
232
|
+
} = await fn({
|
|
233
|
+
x,
|
|
234
|
+
y,
|
|
235
|
+
initialPlacement: placement,
|
|
236
|
+
placement: statefulPlacement,
|
|
237
|
+
strategy,
|
|
238
|
+
middlewareData,
|
|
239
|
+
rects,
|
|
240
|
+
platform,
|
|
241
|
+
elements: {
|
|
242
|
+
reference,
|
|
243
|
+
floating
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
x = nextX != null ? nextX : x;
|
|
247
|
+
y = nextY != null ? nextY : y;
|
|
248
|
+
middlewareData = {
|
|
249
|
+
...middlewareData,
|
|
250
|
+
[name]: {
|
|
251
|
+
...middlewareData[name],
|
|
252
|
+
...data
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
if (reset && resetCount <= 50) {
|
|
256
|
+
resetCount++;
|
|
257
|
+
if (typeof reset === 'object') {
|
|
258
|
+
if (reset.placement) {
|
|
259
|
+
statefulPlacement = reset.placement;
|
|
260
|
+
}
|
|
261
|
+
if (reset.rects) {
|
|
262
|
+
rects = reset.rects === true ? await platform.getElementRects({
|
|
263
|
+
reference,
|
|
264
|
+
floating,
|
|
265
|
+
strategy
|
|
266
|
+
}) : reset.rects;
|
|
267
|
+
}
|
|
268
|
+
({
|
|
269
|
+
x,
|
|
270
|
+
y
|
|
271
|
+
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
272
|
+
}
|
|
273
|
+
i = -1;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
return {
|
|
277
|
+
x,
|
|
278
|
+
y,
|
|
279
|
+
placement: statefulPlacement,
|
|
280
|
+
strategy,
|
|
281
|
+
middlewareData
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
|
287
|
+
* element is overflowing a given clipping boundary on each side.
|
|
288
|
+
* - positive = overflowing the boundary by that number of pixels
|
|
289
|
+
* - negative = how many pixels left before it will overflow
|
|
290
|
+
* - 0 = lies flush with the boundary
|
|
291
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
|
292
|
+
*/
|
|
293
|
+
async function detectOverflow(state, options) {
|
|
294
|
+
var _await$platform$isEle;
|
|
295
|
+
if (options === void 0) {
|
|
296
|
+
options = {};
|
|
297
|
+
}
|
|
298
|
+
const {
|
|
299
|
+
x,
|
|
300
|
+
y,
|
|
301
|
+
platform,
|
|
302
|
+
rects,
|
|
303
|
+
elements,
|
|
304
|
+
strategy
|
|
305
|
+
} = state;
|
|
306
|
+
const {
|
|
307
|
+
boundary = 'clippingAncestors',
|
|
308
|
+
rootBoundary = 'viewport',
|
|
309
|
+
elementContext = 'floating',
|
|
310
|
+
altBoundary = false,
|
|
311
|
+
padding = 0
|
|
312
|
+
} = evaluate(options, state);
|
|
313
|
+
const paddingObject = getPaddingObject(padding);
|
|
314
|
+
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
315
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
|
316
|
+
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
317
|
+
element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
|
|
318
|
+
boundary,
|
|
319
|
+
rootBoundary,
|
|
320
|
+
strategy
|
|
321
|
+
}));
|
|
322
|
+
const rect = elementContext === 'floating' ? {
|
|
323
|
+
x,
|
|
324
|
+
y,
|
|
325
|
+
width: rects.floating.width,
|
|
326
|
+
height: rects.floating.height
|
|
327
|
+
} : rects.reference;
|
|
328
|
+
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
329
|
+
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
330
|
+
x: 1,
|
|
331
|
+
y: 1
|
|
332
|
+
} : {
|
|
333
|
+
x: 1,
|
|
334
|
+
y: 1
|
|
335
|
+
};
|
|
336
|
+
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
337
|
+
elements,
|
|
338
|
+
rect,
|
|
339
|
+
offsetParent,
|
|
340
|
+
strategy
|
|
341
|
+
}) : rect);
|
|
342
|
+
return {
|
|
343
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
344
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
345
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
346
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Provides data to position an inner element of the floating element so that it
|
|
352
|
+
* appears centered to the reference element.
|
|
353
|
+
* @see https://floating-ui.com/docs/arrow
|
|
354
|
+
*/
|
|
355
|
+
const arrow$1 = options => ({
|
|
356
|
+
name: 'arrow',
|
|
357
|
+
options,
|
|
358
|
+
async fn(state) {
|
|
359
|
+
const {
|
|
360
|
+
x,
|
|
361
|
+
y,
|
|
362
|
+
placement,
|
|
363
|
+
rects,
|
|
364
|
+
platform,
|
|
365
|
+
elements,
|
|
366
|
+
middlewareData
|
|
367
|
+
} = state;
|
|
368
|
+
// Since `element` is required, we don't Partial<> the type.
|
|
369
|
+
const {
|
|
370
|
+
element,
|
|
371
|
+
padding = 0
|
|
372
|
+
} = evaluate(options, state) || {};
|
|
373
|
+
if (element == null) {
|
|
374
|
+
return {};
|
|
375
|
+
}
|
|
376
|
+
const paddingObject = getPaddingObject(padding);
|
|
377
|
+
const coords = {
|
|
378
|
+
x,
|
|
379
|
+
y
|
|
380
|
+
};
|
|
381
|
+
const axis = getAlignmentAxis(placement);
|
|
382
|
+
const length = getAxisLength(axis);
|
|
383
|
+
const arrowDimensions = await platform.getDimensions(element);
|
|
384
|
+
const isYAxis = axis === 'y';
|
|
385
|
+
const minProp = isYAxis ? 'top' : 'left';
|
|
386
|
+
const maxProp = isYAxis ? 'bottom' : 'right';
|
|
387
|
+
const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
|
|
388
|
+
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
389
|
+
const startDiff = coords[axis] - rects.reference[axis];
|
|
390
|
+
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
|
391
|
+
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
392
|
+
|
|
393
|
+
// DOM platform can return `window` as the `offsetParent`.
|
|
394
|
+
if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
|
|
395
|
+
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
396
|
+
}
|
|
397
|
+
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
398
|
+
|
|
399
|
+
// If the padding is large enough that it causes the arrow to no longer be
|
|
400
|
+
// centered, modify the padding so that it is centered.
|
|
401
|
+
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
|
402
|
+
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
|
403
|
+
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
|
404
|
+
|
|
405
|
+
// Make sure the arrow doesn't overflow the floating element if the center
|
|
406
|
+
// point is outside the floating element's bounds.
|
|
407
|
+
const min$1 = minPadding;
|
|
408
|
+
const max = clientSize - arrowDimensions[length] - maxPadding;
|
|
409
|
+
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
410
|
+
const offset = clamp(min$1, center, max);
|
|
411
|
+
|
|
412
|
+
// If the reference is small enough that the arrow's padding causes it to
|
|
413
|
+
// to point to nothing for an aligned placement, adjust the offset of the
|
|
414
|
+
// floating element itself. To ensure `shift()` continues to take action,
|
|
415
|
+
// a single reset is performed when this is true.
|
|
416
|
+
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
417
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
|
418
|
+
return {
|
|
419
|
+
[axis]: coords[axis] + alignmentOffset,
|
|
420
|
+
data: {
|
|
421
|
+
[axis]: offset,
|
|
422
|
+
centerOffset: center - offset - alignmentOffset,
|
|
423
|
+
...(shouldAddOffset && {
|
|
424
|
+
alignmentOffset
|
|
425
|
+
})
|
|
426
|
+
},
|
|
427
|
+
reset: shouldAddOffset
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
|
|
432
|
+
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
433
|
+
const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
|
|
434
|
+
return allowedPlacementsSortedByAlignment.filter(placement => {
|
|
435
|
+
if (alignment) {
|
|
436
|
+
return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
|
|
437
|
+
}
|
|
438
|
+
return true;
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
443
|
+
* that has the most space available automatically, without needing to specify a
|
|
444
|
+
* preferred placement. Alternative to `flip`.
|
|
445
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
446
|
+
*/
|
|
447
|
+
const autoPlacement = function (options) {
|
|
448
|
+
if (options === void 0) {
|
|
449
|
+
options = {};
|
|
450
|
+
}
|
|
451
|
+
return {
|
|
452
|
+
name: 'autoPlacement',
|
|
453
|
+
options,
|
|
454
|
+
async fn(state) {
|
|
455
|
+
var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
|
|
456
|
+
const {
|
|
457
|
+
rects,
|
|
458
|
+
middlewareData,
|
|
459
|
+
placement,
|
|
460
|
+
platform,
|
|
461
|
+
elements
|
|
462
|
+
} = state;
|
|
463
|
+
const {
|
|
464
|
+
crossAxis = false,
|
|
465
|
+
alignment,
|
|
466
|
+
allowedPlacements = placements,
|
|
467
|
+
autoAlignment = true,
|
|
468
|
+
...detectOverflowOptions
|
|
469
|
+
} = evaluate(options, state);
|
|
470
|
+
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
471
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
472
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
|
|
473
|
+
const currentPlacement = placements$1[currentIndex];
|
|
474
|
+
if (currentPlacement == null) {
|
|
475
|
+
return {};
|
|
476
|
+
}
|
|
477
|
+
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
|
478
|
+
|
|
479
|
+
// Make `computeCoords` start from the right place.
|
|
480
|
+
if (placement !== currentPlacement) {
|
|
481
|
+
return {
|
|
482
|
+
reset: {
|
|
483
|
+
placement: placements$1[0]
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
|
488
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
|
|
489
|
+
placement: currentPlacement,
|
|
490
|
+
overflows: currentOverflows
|
|
491
|
+
}];
|
|
492
|
+
const nextPlacement = placements$1[currentIndex + 1];
|
|
493
|
+
|
|
494
|
+
// There are more placements to check.
|
|
495
|
+
if (nextPlacement) {
|
|
496
|
+
return {
|
|
497
|
+
data: {
|
|
498
|
+
index: currentIndex + 1,
|
|
499
|
+
overflows: allOverflows
|
|
500
|
+
},
|
|
501
|
+
reset: {
|
|
502
|
+
placement: nextPlacement
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
const placementsSortedByMostSpace = allOverflows.map(d => {
|
|
507
|
+
const alignment = getAlignment(d.placement);
|
|
508
|
+
return [d.placement, alignment && crossAxis ?
|
|
509
|
+
// Check along the mainAxis and main crossAxis side.
|
|
510
|
+
d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
|
|
511
|
+
// Check only the mainAxis.
|
|
512
|
+
d.overflows[0], d.overflows];
|
|
513
|
+
}).sort((a, b) => a[1] - b[1]);
|
|
514
|
+
const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
|
|
515
|
+
// Aligned placements should not check their opposite crossAxis
|
|
516
|
+
// side.
|
|
517
|
+
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
|
518
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
519
|
+
if (resetPlacement !== placement) {
|
|
520
|
+
return {
|
|
521
|
+
data: {
|
|
522
|
+
index: currentIndex + 1,
|
|
523
|
+
overflows: allOverflows
|
|
524
|
+
},
|
|
525
|
+
reset: {
|
|
526
|
+
placement: resetPlacement
|
|
527
|
+
}
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
return {};
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
537
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
538
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
539
|
+
* @see https://floating-ui.com/docs/flip
|
|
540
|
+
*/
|
|
541
|
+
const flip$1 = function (options) {
|
|
542
|
+
if (options === void 0) {
|
|
543
|
+
options = {};
|
|
544
|
+
}
|
|
545
|
+
return {
|
|
546
|
+
name: 'flip',
|
|
547
|
+
options,
|
|
548
|
+
async fn(state) {
|
|
549
|
+
var _middlewareData$arrow, _middlewareData$flip;
|
|
550
|
+
const {
|
|
551
|
+
placement,
|
|
552
|
+
middlewareData,
|
|
553
|
+
rects,
|
|
554
|
+
initialPlacement,
|
|
555
|
+
platform,
|
|
556
|
+
elements
|
|
557
|
+
} = state;
|
|
558
|
+
const {
|
|
559
|
+
mainAxis: checkMainAxis = true,
|
|
560
|
+
crossAxis: checkCrossAxis = true,
|
|
561
|
+
fallbackPlacements: specifiedFallbackPlacements,
|
|
562
|
+
fallbackStrategy = 'bestFit',
|
|
563
|
+
fallbackAxisSideDirection = 'none',
|
|
564
|
+
flipAlignment = true,
|
|
565
|
+
...detectOverflowOptions
|
|
566
|
+
} = evaluate(options, state);
|
|
567
|
+
|
|
568
|
+
// If a reset by the arrow was caused due to an alignment offset being
|
|
569
|
+
// added, we should skip any logic now since `flip()` has already done its
|
|
570
|
+
// work.
|
|
571
|
+
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
|
572
|
+
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
573
|
+
return {};
|
|
574
|
+
}
|
|
575
|
+
const side = getSide(placement);
|
|
576
|
+
const initialSideAxis = getSideAxis(initialPlacement);
|
|
577
|
+
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
578
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
579
|
+
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
580
|
+
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
|
|
581
|
+
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
582
|
+
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
583
|
+
}
|
|
584
|
+
const placements = [initialPlacement, ...fallbackPlacements];
|
|
585
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
586
|
+
const overflows = [];
|
|
587
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
588
|
+
if (checkMainAxis) {
|
|
589
|
+
overflows.push(overflow[side]);
|
|
590
|
+
}
|
|
591
|
+
if (checkCrossAxis) {
|
|
592
|
+
const sides = getAlignmentSides(placement, rects, rtl);
|
|
593
|
+
overflows.push(overflow[sides[0]], overflow[sides[1]]);
|
|
594
|
+
}
|
|
595
|
+
overflowsData = [...overflowsData, {
|
|
596
|
+
placement,
|
|
597
|
+
overflows
|
|
598
|
+
}];
|
|
599
|
+
|
|
600
|
+
// One or more sides is overflowing.
|
|
601
|
+
if (!overflows.every(side => side <= 0)) {
|
|
602
|
+
var _middlewareData$flip2, _overflowsData$filter;
|
|
603
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
604
|
+
const nextPlacement = placements[nextIndex];
|
|
605
|
+
if (nextPlacement) {
|
|
606
|
+
// Try next placement and re-run the lifecycle.
|
|
607
|
+
return {
|
|
608
|
+
data: {
|
|
609
|
+
index: nextIndex,
|
|
610
|
+
overflows: overflowsData
|
|
611
|
+
},
|
|
612
|
+
reset: {
|
|
613
|
+
placement: nextPlacement
|
|
614
|
+
}
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
619
|
+
// then find the placement that fits the best on the main crossAxis side.
|
|
620
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
621
|
+
|
|
622
|
+
// Otherwise fallback.
|
|
623
|
+
if (!resetPlacement) {
|
|
624
|
+
switch (fallbackStrategy) {
|
|
625
|
+
case 'bestFit':
|
|
626
|
+
{
|
|
627
|
+
var _overflowsData$filter2;
|
|
628
|
+
const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
|
|
629
|
+
if (hasFallbackAxisSideDirection) {
|
|
630
|
+
const currentSideAxis = getSideAxis(d.placement);
|
|
631
|
+
return currentSideAxis === initialSideAxis ||
|
|
632
|
+
// Create a bias to the `y` side axis due to horizontal
|
|
633
|
+
// reading directions favoring greater width.
|
|
634
|
+
currentSideAxis === 'y';
|
|
635
|
+
}
|
|
636
|
+
return true;
|
|
637
|
+
}).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
638
|
+
if (placement) {
|
|
639
|
+
resetPlacement = placement;
|
|
640
|
+
}
|
|
641
|
+
break;
|
|
642
|
+
}
|
|
643
|
+
case 'initialPlacement':
|
|
644
|
+
resetPlacement = initialPlacement;
|
|
645
|
+
break;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
if (placement !== resetPlacement) {
|
|
649
|
+
return {
|
|
650
|
+
reset: {
|
|
651
|
+
placement: resetPlacement
|
|
652
|
+
}
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
return {};
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
};
|
|
660
|
+
|
|
661
|
+
function getSideOffsets(overflow, rect) {
|
|
662
|
+
return {
|
|
663
|
+
top: overflow.top - rect.height,
|
|
664
|
+
right: overflow.right - rect.width,
|
|
665
|
+
bottom: overflow.bottom - rect.height,
|
|
666
|
+
left: overflow.left - rect.width
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
function isAnySideFullyClipped(overflow) {
|
|
670
|
+
return sides.some(side => overflow[side] >= 0);
|
|
671
|
+
}
|
|
672
|
+
/**
|
|
673
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
674
|
+
* when it is not in the same clipping context as the reference element.
|
|
675
|
+
* @see https://floating-ui.com/docs/hide
|
|
676
|
+
*/
|
|
677
|
+
const hide$1 = function (options) {
|
|
678
|
+
if (options === void 0) {
|
|
679
|
+
options = {};
|
|
680
|
+
}
|
|
681
|
+
return {
|
|
682
|
+
name: 'hide',
|
|
683
|
+
options,
|
|
684
|
+
async fn(state) {
|
|
685
|
+
const {
|
|
686
|
+
rects
|
|
687
|
+
} = state;
|
|
688
|
+
const {
|
|
689
|
+
strategy = 'referenceHidden',
|
|
690
|
+
...detectOverflowOptions
|
|
691
|
+
} = evaluate(options, state);
|
|
692
|
+
switch (strategy) {
|
|
693
|
+
case 'referenceHidden':
|
|
694
|
+
{
|
|
695
|
+
const overflow = await detectOverflow(state, {
|
|
696
|
+
...detectOverflowOptions,
|
|
697
|
+
elementContext: 'reference'
|
|
698
|
+
});
|
|
699
|
+
const offsets = getSideOffsets(overflow, rects.reference);
|
|
700
|
+
return {
|
|
701
|
+
data: {
|
|
702
|
+
referenceHiddenOffsets: offsets,
|
|
703
|
+
referenceHidden: isAnySideFullyClipped(offsets)
|
|
704
|
+
}
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
case 'escaped':
|
|
708
|
+
{
|
|
709
|
+
const overflow = await detectOverflow(state, {
|
|
710
|
+
...detectOverflowOptions,
|
|
711
|
+
altBoundary: true
|
|
712
|
+
});
|
|
713
|
+
const offsets = getSideOffsets(overflow, rects.floating);
|
|
714
|
+
return {
|
|
715
|
+
data: {
|
|
716
|
+
escapedOffsets: offsets,
|
|
717
|
+
escaped: isAnySideFullyClipped(offsets)
|
|
718
|
+
}
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
default:
|
|
722
|
+
{
|
|
723
|
+
return {};
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
function getBoundingRect(rects) {
|
|
731
|
+
const minX = min(...rects.map(rect => rect.left));
|
|
732
|
+
const minY = min(...rects.map(rect => rect.top));
|
|
733
|
+
const maxX = max(...rects.map(rect => rect.right));
|
|
734
|
+
const maxY = max(...rects.map(rect => rect.bottom));
|
|
735
|
+
return {
|
|
736
|
+
x: minX,
|
|
737
|
+
y: minY,
|
|
738
|
+
width: maxX - minX,
|
|
739
|
+
height: maxY - minY
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
function getRectsByLine(rects) {
|
|
743
|
+
const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
|
|
744
|
+
const groups = [];
|
|
745
|
+
let prevRect = null;
|
|
746
|
+
for (let i = 0; i < sortedRects.length; i++) {
|
|
747
|
+
const rect = sortedRects[i];
|
|
748
|
+
if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
|
|
749
|
+
groups.push([rect]);
|
|
750
|
+
} else {
|
|
751
|
+
groups[groups.length - 1].push(rect);
|
|
752
|
+
}
|
|
753
|
+
prevRect = rect;
|
|
754
|
+
}
|
|
755
|
+
return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
* Provides improved positioning for inline reference elements that can span
|
|
759
|
+
* over multiple lines, such as hyperlinks or range selections.
|
|
760
|
+
* @see https://floating-ui.com/docs/inline
|
|
761
|
+
*/
|
|
762
|
+
const inline$1 = function (options) {
|
|
763
|
+
if (options === void 0) {
|
|
764
|
+
options = {};
|
|
765
|
+
}
|
|
766
|
+
return {
|
|
767
|
+
name: 'inline',
|
|
768
|
+
options,
|
|
769
|
+
async fn(state) {
|
|
770
|
+
const {
|
|
771
|
+
placement,
|
|
772
|
+
elements,
|
|
773
|
+
rects,
|
|
774
|
+
platform,
|
|
775
|
+
strategy
|
|
776
|
+
} = state;
|
|
777
|
+
// A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
|
|
778
|
+
// ClientRect's bounds, despite the event listener being triggered. A
|
|
779
|
+
// padding of 2 seems to handle this issue.
|
|
780
|
+
const {
|
|
781
|
+
padding = 2,
|
|
782
|
+
x,
|
|
783
|
+
y
|
|
784
|
+
} = evaluate(options, state);
|
|
785
|
+
const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
|
|
786
|
+
const clientRects = getRectsByLine(nativeClientRects);
|
|
787
|
+
const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
|
|
788
|
+
const paddingObject = getPaddingObject(padding);
|
|
789
|
+
function getBoundingClientRect() {
|
|
790
|
+
// There are two rects and they are disjoined.
|
|
791
|
+
if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
|
|
792
|
+
// Find the first rect in which the point is fully inside.
|
|
793
|
+
return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
// There are 2 or more connected rects.
|
|
797
|
+
if (clientRects.length >= 2) {
|
|
798
|
+
if (getSideAxis(placement) === 'y') {
|
|
799
|
+
const firstRect = clientRects[0];
|
|
800
|
+
const lastRect = clientRects[clientRects.length - 1];
|
|
801
|
+
const isTop = getSide(placement) === 'top';
|
|
802
|
+
const top = firstRect.top;
|
|
803
|
+
const bottom = lastRect.bottom;
|
|
804
|
+
const left = isTop ? firstRect.left : lastRect.left;
|
|
805
|
+
const right = isTop ? firstRect.right : lastRect.right;
|
|
806
|
+
const width = right - left;
|
|
807
|
+
const height = bottom - top;
|
|
808
|
+
return {
|
|
809
|
+
top,
|
|
810
|
+
bottom,
|
|
811
|
+
left,
|
|
812
|
+
right,
|
|
813
|
+
width,
|
|
814
|
+
height,
|
|
815
|
+
x: left,
|
|
816
|
+
y: top
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
const isLeftSide = getSide(placement) === 'left';
|
|
820
|
+
const maxRight = max(...clientRects.map(rect => rect.right));
|
|
821
|
+
const minLeft = min(...clientRects.map(rect => rect.left));
|
|
822
|
+
const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
|
|
823
|
+
const top = measureRects[0].top;
|
|
824
|
+
const bottom = measureRects[measureRects.length - 1].bottom;
|
|
825
|
+
const left = minLeft;
|
|
826
|
+
const right = maxRight;
|
|
827
|
+
const width = right - left;
|
|
828
|
+
const height = bottom - top;
|
|
829
|
+
return {
|
|
830
|
+
top,
|
|
831
|
+
bottom,
|
|
832
|
+
left,
|
|
833
|
+
right,
|
|
834
|
+
width,
|
|
835
|
+
height,
|
|
836
|
+
x: left,
|
|
837
|
+
y: top
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
return fallback;
|
|
841
|
+
}
|
|
842
|
+
const resetRects = await platform.getElementRects({
|
|
843
|
+
reference: {
|
|
844
|
+
getBoundingClientRect
|
|
845
|
+
},
|
|
846
|
+
floating: elements.floating,
|
|
847
|
+
strategy
|
|
848
|
+
});
|
|
849
|
+
if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {
|
|
850
|
+
return {
|
|
851
|
+
reset: {
|
|
852
|
+
rects: resetRects
|
|
853
|
+
}
|
|
854
|
+
};
|
|
855
|
+
}
|
|
856
|
+
return {};
|
|
857
|
+
}
|
|
858
|
+
};
|
|
859
|
+
};
|
|
860
|
+
|
|
861
|
+
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
862
|
+
// Derivable.
|
|
863
|
+
|
|
864
|
+
async function convertValueToCoords(state, options) {
|
|
865
|
+
const {
|
|
866
|
+
placement,
|
|
867
|
+
platform,
|
|
868
|
+
elements
|
|
869
|
+
} = state;
|
|
870
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
871
|
+
const side = getSide(placement);
|
|
872
|
+
const alignment = getAlignment(placement);
|
|
873
|
+
const isVertical = getSideAxis(placement) === 'y';
|
|
874
|
+
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
875
|
+
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
876
|
+
const rawValue = evaluate(options, state);
|
|
877
|
+
|
|
878
|
+
// eslint-disable-next-line prefer-const
|
|
879
|
+
let {
|
|
880
|
+
mainAxis,
|
|
881
|
+
crossAxis,
|
|
882
|
+
alignmentAxis
|
|
883
|
+
} = typeof rawValue === 'number' ? {
|
|
884
|
+
mainAxis: rawValue,
|
|
885
|
+
crossAxis: 0,
|
|
886
|
+
alignmentAxis: null
|
|
887
|
+
} : {
|
|
888
|
+
mainAxis: 0,
|
|
889
|
+
crossAxis: 0,
|
|
890
|
+
alignmentAxis: null,
|
|
891
|
+
...rawValue
|
|
892
|
+
};
|
|
893
|
+
if (alignment && typeof alignmentAxis === 'number') {
|
|
894
|
+
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
|
895
|
+
}
|
|
896
|
+
return isVertical ? {
|
|
897
|
+
x: crossAxis * crossAxisMulti,
|
|
898
|
+
y: mainAxis * mainAxisMulti
|
|
899
|
+
} : {
|
|
900
|
+
x: mainAxis * mainAxisMulti,
|
|
901
|
+
y: crossAxis * crossAxisMulti
|
|
902
|
+
};
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
/**
|
|
906
|
+
* Modifies the placement by translating the floating element along the
|
|
907
|
+
* specified axes.
|
|
908
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
909
|
+
* object may be passed.
|
|
910
|
+
* @see https://floating-ui.com/docs/offset
|
|
911
|
+
*/
|
|
912
|
+
const offset$1 = function (options) {
|
|
913
|
+
if (options === void 0) {
|
|
914
|
+
options = 0;
|
|
915
|
+
}
|
|
916
|
+
return {
|
|
917
|
+
name: 'offset',
|
|
918
|
+
options,
|
|
919
|
+
async fn(state) {
|
|
920
|
+
var _middlewareData$offse, _middlewareData$arrow;
|
|
921
|
+
const {
|
|
922
|
+
x,
|
|
923
|
+
y,
|
|
924
|
+
placement,
|
|
925
|
+
middlewareData
|
|
926
|
+
} = state;
|
|
927
|
+
const diffCoords = await convertValueToCoords(state, options);
|
|
928
|
+
|
|
929
|
+
// If the placement is the same and the arrow caused an alignment offset
|
|
930
|
+
// then we don't need to change the positioning coordinates.
|
|
931
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
932
|
+
return {};
|
|
933
|
+
}
|
|
934
|
+
return {
|
|
935
|
+
x: x + diffCoords.x,
|
|
936
|
+
y: y + diffCoords.y,
|
|
937
|
+
data: {
|
|
938
|
+
...diffCoords,
|
|
939
|
+
placement
|
|
940
|
+
}
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
};
|
|
944
|
+
};
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
948
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
949
|
+
* @see https://floating-ui.com/docs/shift
|
|
950
|
+
*/
|
|
951
|
+
const shift$1 = function (options) {
|
|
952
|
+
if (options === void 0) {
|
|
953
|
+
options = {};
|
|
954
|
+
}
|
|
955
|
+
return {
|
|
956
|
+
name: 'shift',
|
|
957
|
+
options,
|
|
958
|
+
async fn(state) {
|
|
959
|
+
const {
|
|
960
|
+
x,
|
|
961
|
+
y,
|
|
962
|
+
placement
|
|
963
|
+
} = state;
|
|
964
|
+
const {
|
|
965
|
+
mainAxis: checkMainAxis = true,
|
|
966
|
+
crossAxis: checkCrossAxis = false,
|
|
967
|
+
limiter = {
|
|
968
|
+
fn: _ref => {
|
|
969
|
+
let {
|
|
970
|
+
x,
|
|
971
|
+
y
|
|
972
|
+
} = _ref;
|
|
973
|
+
return {
|
|
974
|
+
x,
|
|
975
|
+
y
|
|
976
|
+
};
|
|
977
|
+
}
|
|
978
|
+
},
|
|
979
|
+
...detectOverflowOptions
|
|
980
|
+
} = evaluate(options, state);
|
|
981
|
+
const coords = {
|
|
982
|
+
x,
|
|
983
|
+
y
|
|
984
|
+
};
|
|
985
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
986
|
+
const crossAxis = getSideAxis(getSide(placement));
|
|
987
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
|
988
|
+
let mainAxisCoord = coords[mainAxis];
|
|
989
|
+
let crossAxisCoord = coords[crossAxis];
|
|
990
|
+
if (checkMainAxis) {
|
|
991
|
+
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
|
992
|
+
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
|
993
|
+
const min = mainAxisCoord + overflow[minSide];
|
|
994
|
+
const max = mainAxisCoord - overflow[maxSide];
|
|
995
|
+
mainAxisCoord = clamp(min, mainAxisCoord, max);
|
|
996
|
+
}
|
|
997
|
+
if (checkCrossAxis) {
|
|
998
|
+
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
|
999
|
+
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
|
1000
|
+
const min = crossAxisCoord + overflow[minSide];
|
|
1001
|
+
const max = crossAxisCoord - overflow[maxSide];
|
|
1002
|
+
crossAxisCoord = clamp(min, crossAxisCoord, max);
|
|
1003
|
+
}
|
|
1004
|
+
const limitedCoords = limiter.fn({
|
|
1005
|
+
...state,
|
|
1006
|
+
[mainAxis]: mainAxisCoord,
|
|
1007
|
+
[crossAxis]: crossAxisCoord
|
|
1008
|
+
});
|
|
1009
|
+
return {
|
|
1010
|
+
...limitedCoords,
|
|
1011
|
+
data: {
|
|
1012
|
+
x: limitedCoords.x - x,
|
|
1013
|
+
y: limitedCoords.y - y
|
|
1014
|
+
}
|
|
1015
|
+
};
|
|
1016
|
+
}
|
|
1017
|
+
};
|
|
1018
|
+
};
|
|
1019
|
+
/**
|
|
1020
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
1021
|
+
*/
|
|
1022
|
+
const limitShift = function (options) {
|
|
1023
|
+
if (options === void 0) {
|
|
1024
|
+
options = {};
|
|
1025
|
+
}
|
|
1026
|
+
return {
|
|
1027
|
+
options,
|
|
1028
|
+
fn(state) {
|
|
1029
|
+
const {
|
|
1030
|
+
x,
|
|
1031
|
+
y,
|
|
1032
|
+
placement,
|
|
1033
|
+
rects,
|
|
1034
|
+
middlewareData
|
|
1035
|
+
} = state;
|
|
1036
|
+
const {
|
|
1037
|
+
offset = 0,
|
|
1038
|
+
mainAxis: checkMainAxis = true,
|
|
1039
|
+
crossAxis: checkCrossAxis = true
|
|
1040
|
+
} = evaluate(options, state);
|
|
1041
|
+
const coords = {
|
|
1042
|
+
x,
|
|
1043
|
+
y
|
|
1044
|
+
};
|
|
1045
|
+
const crossAxis = getSideAxis(placement);
|
|
1046
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
|
1047
|
+
let mainAxisCoord = coords[mainAxis];
|
|
1048
|
+
let crossAxisCoord = coords[crossAxis];
|
|
1049
|
+
const rawOffset = evaluate(offset, state);
|
|
1050
|
+
const computedOffset = typeof rawOffset === 'number' ? {
|
|
1051
|
+
mainAxis: rawOffset,
|
|
1052
|
+
crossAxis: 0
|
|
1053
|
+
} : {
|
|
1054
|
+
mainAxis: 0,
|
|
1055
|
+
crossAxis: 0,
|
|
1056
|
+
...rawOffset
|
|
1057
|
+
};
|
|
1058
|
+
if (checkMainAxis) {
|
|
1059
|
+
const len = mainAxis === 'y' ? 'height' : 'width';
|
|
1060
|
+
const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
|
|
1061
|
+
const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
|
1062
|
+
if (mainAxisCoord < limitMin) {
|
|
1063
|
+
mainAxisCoord = limitMin;
|
|
1064
|
+
} else if (mainAxisCoord > limitMax) {
|
|
1065
|
+
mainAxisCoord = limitMax;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
if (checkCrossAxis) {
|
|
1069
|
+
var _middlewareData$offse, _middlewareData$offse2;
|
|
1070
|
+
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
1071
|
+
const isOriginSide = ['top', 'left'].includes(getSide(placement));
|
|
1072
|
+
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
|
|
1073
|
+
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
|
1074
|
+
if (crossAxisCoord < limitMin) {
|
|
1075
|
+
crossAxisCoord = limitMin;
|
|
1076
|
+
} else if (crossAxisCoord > limitMax) {
|
|
1077
|
+
crossAxisCoord = limitMax;
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
return {
|
|
1081
|
+
[mainAxis]: mainAxisCoord,
|
|
1082
|
+
[crossAxis]: crossAxisCoord
|
|
1083
|
+
};
|
|
1084
|
+
}
|
|
1085
|
+
};
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* Provides data that allows you to change the size of the floating element —
|
|
1090
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
1091
|
+
* width of the reference element.
|
|
1092
|
+
* @see https://floating-ui.com/docs/size
|
|
1093
|
+
*/
|
|
1094
|
+
const size = function (options) {
|
|
1095
|
+
if (options === void 0) {
|
|
1096
|
+
options = {};
|
|
1097
|
+
}
|
|
1098
|
+
return {
|
|
1099
|
+
name: 'size',
|
|
1100
|
+
options,
|
|
1101
|
+
async fn(state) {
|
|
1102
|
+
const {
|
|
1103
|
+
placement,
|
|
1104
|
+
rects,
|
|
1105
|
+
platform,
|
|
1106
|
+
elements
|
|
1107
|
+
} = state;
|
|
1108
|
+
const {
|
|
1109
|
+
apply = () => {},
|
|
1110
|
+
...detectOverflowOptions
|
|
1111
|
+
} = evaluate(options, state);
|
|
1112
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
1113
|
+
const side = getSide(placement);
|
|
1114
|
+
const alignment = getAlignment(placement);
|
|
1115
|
+
const isYAxis = getSideAxis(placement) === 'y';
|
|
1116
|
+
const {
|
|
1117
|
+
width,
|
|
1118
|
+
height
|
|
1119
|
+
} = rects.floating;
|
|
1120
|
+
let heightSide;
|
|
1121
|
+
let widthSide;
|
|
1122
|
+
if (side === 'top' || side === 'bottom') {
|
|
1123
|
+
heightSide = side;
|
|
1124
|
+
widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
|
|
1125
|
+
} else {
|
|
1126
|
+
widthSide = side;
|
|
1127
|
+
heightSide = alignment === 'end' ? 'top' : 'bottom';
|
|
1128
|
+
}
|
|
1129
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
1130
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
1131
|
+
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
|
|
1132
|
+
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
|
|
1133
|
+
const noShift = !state.middlewareData.shift;
|
|
1134
|
+
let availableHeight = overflowAvailableHeight;
|
|
1135
|
+
let availableWidth = overflowAvailableWidth;
|
|
1136
|
+
if (isYAxis) {
|
|
1137
|
+
availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
|
1138
|
+
} else {
|
|
1139
|
+
availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
|
1140
|
+
}
|
|
1141
|
+
if (noShift && !alignment) {
|
|
1142
|
+
const xMin = max(overflow.left, 0);
|
|
1143
|
+
const xMax = max(overflow.right, 0);
|
|
1144
|
+
const yMin = max(overflow.top, 0);
|
|
1145
|
+
const yMax = max(overflow.bottom, 0);
|
|
1146
|
+
if (isYAxis) {
|
|
1147
|
+
availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
|
|
1148
|
+
} else {
|
|
1149
|
+
availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
await apply({
|
|
1153
|
+
...state,
|
|
1154
|
+
availableWidth,
|
|
1155
|
+
availableHeight
|
|
1156
|
+
});
|
|
1157
|
+
const nextDimensions = await platform.getDimensions(elements.floating);
|
|
1158
|
+
if (width !== nextDimensions.width || height !== nextDimensions.height) {
|
|
1159
|
+
return {
|
|
1160
|
+
reset: {
|
|
1161
|
+
rects: true
|
|
1162
|
+
}
|
|
1163
|
+
};
|
|
1164
|
+
}
|
|
1165
|
+
return {};
|
|
1166
|
+
}
|
|
1167
|
+
};
|
|
1168
|
+
};
|
|
1169
|
+
|
|
1170
|
+
function getNodeName(node) {
|
|
1171
|
+
if (isNode(node)) {
|
|
1172
|
+
return (node.nodeName || '').toLowerCase();
|
|
1173
|
+
}
|
|
1174
|
+
// Mocked nodes in testing environments may not be instances of Node. By
|
|
1175
|
+
// returning `#document` an infinite loop won't occur.
|
|
1176
|
+
// https://github.com/floating-ui/floating-ui/issues/2317
|
|
1177
|
+
return '#document';
|
|
1178
|
+
}
|
|
1179
|
+
function getWindow(node) {
|
|
1180
|
+
var _node$ownerDocument;
|
|
1181
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
1182
|
+
}
|
|
1183
|
+
function getDocumentElement(node) {
|
|
1184
|
+
var _ref;
|
|
1185
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
1186
|
+
}
|
|
1187
|
+
function isNode(value) {
|
|
1188
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
1189
|
+
}
|
|
1190
|
+
function isElement(value) {
|
|
1191
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
1192
|
+
}
|
|
1193
|
+
function isHTMLElement(value) {
|
|
1194
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
1195
|
+
}
|
|
1196
|
+
function isShadowRoot(value) {
|
|
1197
|
+
// Browsers without `ShadowRoot` support.
|
|
1198
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
1199
|
+
return false;
|
|
1200
|
+
}
|
|
1201
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
1202
|
+
}
|
|
1203
|
+
function isOverflowElement(element) {
|
|
1204
|
+
const {
|
|
1205
|
+
overflow,
|
|
1206
|
+
overflowX,
|
|
1207
|
+
overflowY,
|
|
1208
|
+
display
|
|
1209
|
+
} = getComputedStyle(element);
|
|
1210
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
1211
|
+
}
|
|
1212
|
+
function isTableElement(element) {
|
|
1213
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
1214
|
+
}
|
|
1215
|
+
function isTopLayer(element) {
|
|
1216
|
+
return [':popover-open', ':modal'].some(selector => {
|
|
1217
|
+
try {
|
|
1218
|
+
return element.matches(selector);
|
|
1219
|
+
} catch (e) {
|
|
1220
|
+
return false;
|
|
1221
|
+
}
|
|
1222
|
+
});
|
|
1223
|
+
}
|
|
1224
|
+
function isContainingBlock(elementOrCss) {
|
|
1225
|
+
const webkit = isWebKit();
|
|
1226
|
+
const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
|
|
1227
|
+
|
|
1228
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
1229
|
+
return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
|
1230
|
+
}
|
|
1231
|
+
function getContainingBlock(element) {
|
|
1232
|
+
let currentNode = getParentNode(element);
|
|
1233
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1234
|
+
if (isContainingBlock(currentNode)) {
|
|
1235
|
+
return currentNode;
|
|
1236
|
+
} else if (isTopLayer(currentNode)) {
|
|
1237
|
+
return null;
|
|
1238
|
+
}
|
|
1239
|
+
currentNode = getParentNode(currentNode);
|
|
1240
|
+
}
|
|
1241
|
+
return null;
|
|
1242
|
+
}
|
|
1243
|
+
function isWebKit() {
|
|
1244
|
+
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
1245
|
+
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
1246
|
+
}
|
|
1247
|
+
function isLastTraversableNode(node) {
|
|
1248
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
1249
|
+
}
|
|
1250
|
+
function getComputedStyle(element) {
|
|
1251
|
+
return getWindow(element).getComputedStyle(element);
|
|
1252
|
+
}
|
|
1253
|
+
function getNodeScroll(element) {
|
|
1254
|
+
if (isElement(element)) {
|
|
1255
|
+
return {
|
|
1256
|
+
scrollLeft: element.scrollLeft,
|
|
1257
|
+
scrollTop: element.scrollTop
|
|
1258
|
+
};
|
|
1259
|
+
}
|
|
1260
|
+
return {
|
|
1261
|
+
scrollLeft: element.scrollX,
|
|
1262
|
+
scrollTop: element.scrollY
|
|
1263
|
+
};
|
|
1264
|
+
}
|
|
1265
|
+
function getParentNode(node) {
|
|
1266
|
+
if (getNodeName(node) === 'html') {
|
|
1267
|
+
return node;
|
|
1268
|
+
}
|
|
1269
|
+
const result =
|
|
1270
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
1271
|
+
node.assignedSlot ||
|
|
1272
|
+
// DOM Element detected.
|
|
1273
|
+
node.parentNode ||
|
|
1274
|
+
// ShadowRoot detected.
|
|
1275
|
+
isShadowRoot(node) && node.host ||
|
|
1276
|
+
// Fallback.
|
|
1277
|
+
getDocumentElement(node);
|
|
1278
|
+
return isShadowRoot(result) ? result.host : result;
|
|
1279
|
+
}
|
|
1280
|
+
function getNearestOverflowAncestor(node) {
|
|
1281
|
+
const parentNode = getParentNode(node);
|
|
1282
|
+
if (isLastTraversableNode(parentNode)) {
|
|
1283
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
1284
|
+
}
|
|
1285
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
1286
|
+
return parentNode;
|
|
1287
|
+
}
|
|
1288
|
+
return getNearestOverflowAncestor(parentNode);
|
|
1289
|
+
}
|
|
1290
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
1291
|
+
var _node$ownerDocument2;
|
|
1292
|
+
if (list === void 0) {
|
|
1293
|
+
list = [];
|
|
1294
|
+
}
|
|
1295
|
+
if (traverseIframes === void 0) {
|
|
1296
|
+
traverseIframes = true;
|
|
1297
|
+
}
|
|
1298
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
1299
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
1300
|
+
const win = getWindow(scrollableAncestor);
|
|
1301
|
+
if (isBody) {
|
|
1302
|
+
const frameElement = getFrameElement(win);
|
|
1303
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
1304
|
+
}
|
|
1305
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
1306
|
+
}
|
|
1307
|
+
function getFrameElement(win) {
|
|
1308
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
function getCssDimensions(element) {
|
|
1312
|
+
const css = getComputedStyle(element);
|
|
1313
|
+
// In testing environments, the `width` and `height` properties are empty
|
|
1314
|
+
// strings for SVG elements, returning NaN. Fallback to `0` in this case.
|
|
1315
|
+
let width = parseFloat(css.width) || 0;
|
|
1316
|
+
let height = parseFloat(css.height) || 0;
|
|
1317
|
+
const hasOffset = isHTMLElement(element);
|
|
1318
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
1319
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
1320
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
1321
|
+
if (shouldFallback) {
|
|
1322
|
+
width = offsetWidth;
|
|
1323
|
+
height = offsetHeight;
|
|
1324
|
+
}
|
|
1325
|
+
return {
|
|
1326
|
+
width,
|
|
1327
|
+
height,
|
|
1328
|
+
$: shouldFallback
|
|
1329
|
+
};
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
function unwrapElement(element) {
|
|
1333
|
+
return !isElement(element) ? element.contextElement : element;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
function getScale(element) {
|
|
1337
|
+
const domElement = unwrapElement(element);
|
|
1338
|
+
if (!isHTMLElement(domElement)) {
|
|
1339
|
+
return createCoords(1);
|
|
1340
|
+
}
|
|
1341
|
+
const rect = domElement.getBoundingClientRect();
|
|
1342
|
+
const {
|
|
1343
|
+
width,
|
|
1344
|
+
height,
|
|
1345
|
+
$
|
|
1346
|
+
} = getCssDimensions(domElement);
|
|
1347
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
1348
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
1349
|
+
|
|
1350
|
+
// 0, NaN, or Infinity should always fallback to 1.
|
|
1351
|
+
|
|
1352
|
+
if (!x || !Number.isFinite(x)) {
|
|
1353
|
+
x = 1;
|
|
1354
|
+
}
|
|
1355
|
+
if (!y || !Number.isFinite(y)) {
|
|
1356
|
+
y = 1;
|
|
1357
|
+
}
|
|
1358
|
+
return {
|
|
1359
|
+
x,
|
|
1360
|
+
y
|
|
1361
|
+
};
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
const noOffsets = /*#__PURE__*/createCoords(0);
|
|
1365
|
+
function getVisualOffsets(element) {
|
|
1366
|
+
const win = getWindow(element);
|
|
1367
|
+
if (!isWebKit() || !win.visualViewport) {
|
|
1368
|
+
return noOffsets;
|
|
1369
|
+
}
|
|
1370
|
+
return {
|
|
1371
|
+
x: win.visualViewport.offsetLeft,
|
|
1372
|
+
y: win.visualViewport.offsetTop
|
|
1373
|
+
};
|
|
1374
|
+
}
|
|
1375
|
+
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
1376
|
+
if (isFixed === void 0) {
|
|
1377
|
+
isFixed = false;
|
|
1378
|
+
}
|
|
1379
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
1380
|
+
return false;
|
|
1381
|
+
}
|
|
1382
|
+
return isFixed;
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
1386
|
+
if (includeScale === void 0) {
|
|
1387
|
+
includeScale = false;
|
|
1388
|
+
}
|
|
1389
|
+
if (isFixedStrategy === void 0) {
|
|
1390
|
+
isFixedStrategy = false;
|
|
1391
|
+
}
|
|
1392
|
+
const clientRect = element.getBoundingClientRect();
|
|
1393
|
+
const domElement = unwrapElement(element);
|
|
1394
|
+
let scale = createCoords(1);
|
|
1395
|
+
if (includeScale) {
|
|
1396
|
+
if (offsetParent) {
|
|
1397
|
+
if (isElement(offsetParent)) {
|
|
1398
|
+
scale = getScale(offsetParent);
|
|
1399
|
+
}
|
|
1400
|
+
} else {
|
|
1401
|
+
scale = getScale(element);
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
1405
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
1406
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
1407
|
+
let width = clientRect.width / scale.x;
|
|
1408
|
+
let height = clientRect.height / scale.y;
|
|
1409
|
+
if (domElement) {
|
|
1410
|
+
const win = getWindow(domElement);
|
|
1411
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
1412
|
+
let currentWin = win;
|
|
1413
|
+
let currentIFrame = getFrameElement(currentWin);
|
|
1414
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
1415
|
+
const iframeScale = getScale(currentIFrame);
|
|
1416
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
1417
|
+
const css = getComputedStyle(currentIFrame);
|
|
1418
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
1419
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
1420
|
+
x *= iframeScale.x;
|
|
1421
|
+
y *= iframeScale.y;
|
|
1422
|
+
width *= iframeScale.x;
|
|
1423
|
+
height *= iframeScale.y;
|
|
1424
|
+
x += left;
|
|
1425
|
+
y += top;
|
|
1426
|
+
currentWin = getWindow(currentIFrame);
|
|
1427
|
+
currentIFrame = getFrameElement(currentWin);
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
return rectToClientRect({
|
|
1431
|
+
width,
|
|
1432
|
+
height,
|
|
1433
|
+
x,
|
|
1434
|
+
y
|
|
1435
|
+
});
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
1439
|
+
let {
|
|
1440
|
+
elements,
|
|
1441
|
+
rect,
|
|
1442
|
+
offsetParent,
|
|
1443
|
+
strategy
|
|
1444
|
+
} = _ref;
|
|
1445
|
+
const isFixed = strategy === 'fixed';
|
|
1446
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
1447
|
+
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
|
1448
|
+
if (offsetParent === documentElement || topLayer && isFixed) {
|
|
1449
|
+
return rect;
|
|
1450
|
+
}
|
|
1451
|
+
let scroll = {
|
|
1452
|
+
scrollLeft: 0,
|
|
1453
|
+
scrollTop: 0
|
|
1454
|
+
};
|
|
1455
|
+
let scale = createCoords(1);
|
|
1456
|
+
const offsets = createCoords(0);
|
|
1457
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1458
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1459
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1460
|
+
scroll = getNodeScroll(offsetParent);
|
|
1461
|
+
}
|
|
1462
|
+
if (isHTMLElement(offsetParent)) {
|
|
1463
|
+
const offsetRect = getBoundingClientRect(offsetParent);
|
|
1464
|
+
scale = getScale(offsetParent);
|
|
1465
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1466
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
return {
|
|
1470
|
+
width: rect.width * scale.x,
|
|
1471
|
+
height: rect.height * scale.y,
|
|
1472
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
|
|
1473
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
|
|
1474
|
+
};
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
function getClientRects(element) {
|
|
1478
|
+
return Array.from(element.getClientRects());
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
function getWindowScrollBarX(element) {
|
|
1482
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
1483
|
+
// incorrect for RTL.
|
|
1484
|
+
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
// Gets the entire size of the scrollable document area, even extending outside
|
|
1488
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
|
1489
|
+
function getDocumentRect(element) {
|
|
1490
|
+
const html = getDocumentElement(element);
|
|
1491
|
+
const scroll = getNodeScroll(element);
|
|
1492
|
+
const body = element.ownerDocument.body;
|
|
1493
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
1494
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
1495
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
1496
|
+
const y = -scroll.scrollTop;
|
|
1497
|
+
if (getComputedStyle(body).direction === 'rtl') {
|
|
1498
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
|
1499
|
+
}
|
|
1500
|
+
return {
|
|
1501
|
+
width,
|
|
1502
|
+
height,
|
|
1503
|
+
x,
|
|
1504
|
+
y
|
|
1505
|
+
};
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
function getViewportRect(element, strategy) {
|
|
1509
|
+
const win = getWindow(element);
|
|
1510
|
+
const html = getDocumentElement(element);
|
|
1511
|
+
const visualViewport = win.visualViewport;
|
|
1512
|
+
let width = html.clientWidth;
|
|
1513
|
+
let height = html.clientHeight;
|
|
1514
|
+
let x = 0;
|
|
1515
|
+
let y = 0;
|
|
1516
|
+
if (visualViewport) {
|
|
1517
|
+
width = visualViewport.width;
|
|
1518
|
+
height = visualViewport.height;
|
|
1519
|
+
const visualViewportBased = isWebKit();
|
|
1520
|
+
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
|
1521
|
+
x = visualViewport.offsetLeft;
|
|
1522
|
+
y = visualViewport.offsetTop;
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
return {
|
|
1526
|
+
width,
|
|
1527
|
+
height,
|
|
1528
|
+
x,
|
|
1529
|
+
y
|
|
1530
|
+
};
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
// Returns the inner client rect, subtracting scrollbars if present.
|
|
1534
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
1535
|
+
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
1536
|
+
const top = clientRect.top + element.clientTop;
|
|
1537
|
+
const left = clientRect.left + element.clientLeft;
|
|
1538
|
+
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
|
1539
|
+
const width = element.clientWidth * scale.x;
|
|
1540
|
+
const height = element.clientHeight * scale.y;
|
|
1541
|
+
const x = left * scale.x;
|
|
1542
|
+
const y = top * scale.y;
|
|
1543
|
+
return {
|
|
1544
|
+
width,
|
|
1545
|
+
height,
|
|
1546
|
+
x,
|
|
1547
|
+
y
|
|
1548
|
+
};
|
|
1549
|
+
}
|
|
1550
|
+
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
1551
|
+
let rect;
|
|
1552
|
+
if (clippingAncestor === 'viewport') {
|
|
1553
|
+
rect = getViewportRect(element, strategy);
|
|
1554
|
+
} else if (clippingAncestor === 'document') {
|
|
1555
|
+
rect = getDocumentRect(getDocumentElement(element));
|
|
1556
|
+
} else if (isElement(clippingAncestor)) {
|
|
1557
|
+
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
1558
|
+
} else {
|
|
1559
|
+
const visualOffsets = getVisualOffsets(element);
|
|
1560
|
+
rect = {
|
|
1561
|
+
...clippingAncestor,
|
|
1562
|
+
x: clippingAncestor.x - visualOffsets.x,
|
|
1563
|
+
y: clippingAncestor.y - visualOffsets.y
|
|
1564
|
+
};
|
|
1565
|
+
}
|
|
1566
|
+
return rectToClientRect(rect);
|
|
1567
|
+
}
|
|
1568
|
+
function hasFixedPositionAncestor(element, stopNode) {
|
|
1569
|
+
const parentNode = getParentNode(element);
|
|
1570
|
+
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
1571
|
+
return false;
|
|
1572
|
+
}
|
|
1573
|
+
return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
|
1577
|
+
// clipping (or hiding) child elements. This returns all clipping ancestors
|
|
1578
|
+
// of the given element up the tree.
|
|
1579
|
+
function getClippingElementAncestors(element, cache) {
|
|
1580
|
+
const cachedResult = cache.get(element);
|
|
1581
|
+
if (cachedResult) {
|
|
1582
|
+
return cachedResult;
|
|
1583
|
+
}
|
|
1584
|
+
let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
|
1585
|
+
let currentContainingBlockComputedStyle = null;
|
|
1586
|
+
const elementIsFixed = getComputedStyle(element).position === 'fixed';
|
|
1587
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1588
|
+
|
|
1589
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
1590
|
+
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1591
|
+
const computedStyle = getComputedStyle(currentNode);
|
|
1592
|
+
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
1593
|
+
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
1594
|
+
currentContainingBlockComputedStyle = null;
|
|
1595
|
+
}
|
|
1596
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
1597
|
+
if (shouldDropCurrentNode) {
|
|
1598
|
+
// Drop non-containing blocks.
|
|
1599
|
+
result = result.filter(ancestor => ancestor !== currentNode);
|
|
1600
|
+
} else {
|
|
1601
|
+
// Record last containing block for next iteration.
|
|
1602
|
+
currentContainingBlockComputedStyle = computedStyle;
|
|
1603
|
+
}
|
|
1604
|
+
currentNode = getParentNode(currentNode);
|
|
1605
|
+
}
|
|
1606
|
+
cache.set(element, result);
|
|
1607
|
+
return result;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
// Gets the maximum area that the element is visible in due to any number of
|
|
1611
|
+
// clipping ancestors.
|
|
1612
|
+
function getClippingRect(_ref) {
|
|
1613
|
+
let {
|
|
1614
|
+
element,
|
|
1615
|
+
boundary,
|
|
1616
|
+
rootBoundary,
|
|
1617
|
+
strategy
|
|
1618
|
+
} = _ref;
|
|
1619
|
+
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
1620
|
+
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
1621
|
+
const firstClippingAncestor = clippingAncestors[0];
|
|
1622
|
+
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
1623
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
|
1624
|
+
accRect.top = max(rect.top, accRect.top);
|
|
1625
|
+
accRect.right = min(rect.right, accRect.right);
|
|
1626
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
1627
|
+
accRect.left = max(rect.left, accRect.left);
|
|
1628
|
+
return accRect;
|
|
1629
|
+
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
|
1630
|
+
return {
|
|
1631
|
+
width: clippingRect.right - clippingRect.left,
|
|
1632
|
+
height: clippingRect.bottom - clippingRect.top,
|
|
1633
|
+
x: clippingRect.left,
|
|
1634
|
+
y: clippingRect.top
|
|
1635
|
+
};
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
function getDimensions(element) {
|
|
1639
|
+
const {
|
|
1640
|
+
width,
|
|
1641
|
+
height
|
|
1642
|
+
} = getCssDimensions(element);
|
|
1643
|
+
return {
|
|
1644
|
+
width,
|
|
1645
|
+
height
|
|
1646
|
+
};
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
1650
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1651
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
1652
|
+
const isFixed = strategy === 'fixed';
|
|
1653
|
+
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
|
1654
|
+
let scroll = {
|
|
1655
|
+
scrollLeft: 0,
|
|
1656
|
+
scrollTop: 0
|
|
1657
|
+
};
|
|
1658
|
+
const offsets = createCoords(0);
|
|
1659
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1660
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1661
|
+
scroll = getNodeScroll(offsetParent);
|
|
1662
|
+
}
|
|
1663
|
+
if (isOffsetParentAnElement) {
|
|
1664
|
+
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
1665
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1666
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1667
|
+
} else if (documentElement) {
|
|
1668
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
const x = rect.left + scroll.scrollLeft - offsets.x;
|
|
1672
|
+
const y = rect.top + scroll.scrollTop - offsets.y;
|
|
1673
|
+
return {
|
|
1674
|
+
x,
|
|
1675
|
+
y,
|
|
1676
|
+
width: rect.width,
|
|
1677
|
+
height: rect.height
|
|
1678
|
+
};
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
function isStaticPositioned(element) {
|
|
1682
|
+
return getComputedStyle(element).position === 'static';
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
function getTrueOffsetParent(element, polyfill) {
|
|
1686
|
+
if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
|
|
1687
|
+
return null;
|
|
1688
|
+
}
|
|
1689
|
+
if (polyfill) {
|
|
1690
|
+
return polyfill(element);
|
|
1691
|
+
}
|
|
1692
|
+
return element.offsetParent;
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
1696
|
+
// such as table ancestors and cross browser bugs.
|
|
1697
|
+
function getOffsetParent(element, polyfill) {
|
|
1698
|
+
const win = getWindow(element);
|
|
1699
|
+
if (isTopLayer(element)) {
|
|
1700
|
+
return win;
|
|
1701
|
+
}
|
|
1702
|
+
if (!isHTMLElement(element)) {
|
|
1703
|
+
let svgOffsetParent = getParentNode(element);
|
|
1704
|
+
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
1705
|
+
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
1706
|
+
return svgOffsetParent;
|
|
1707
|
+
}
|
|
1708
|
+
svgOffsetParent = getParentNode(svgOffsetParent);
|
|
1709
|
+
}
|
|
1710
|
+
return win;
|
|
1711
|
+
}
|
|
1712
|
+
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
1713
|
+
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
|
1714
|
+
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
1715
|
+
}
|
|
1716
|
+
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
|
1717
|
+
return win;
|
|
1718
|
+
}
|
|
1719
|
+
return offsetParent || getContainingBlock(element) || win;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
const getElementRects = async function (data) {
|
|
1723
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
1724
|
+
const getDimensionsFn = this.getDimensions;
|
|
1725
|
+
const floatingDimensions = await getDimensionsFn(data.floating);
|
|
1726
|
+
return {
|
|
1727
|
+
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
|
1728
|
+
floating: {
|
|
1729
|
+
x: 0,
|
|
1730
|
+
y: 0,
|
|
1731
|
+
width: floatingDimensions.width,
|
|
1732
|
+
height: floatingDimensions.height
|
|
1733
|
+
}
|
|
1734
|
+
};
|
|
1735
|
+
};
|
|
1736
|
+
|
|
1737
|
+
function isRTL(element) {
|
|
1738
|
+
return getComputedStyle(element).direction === 'rtl';
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
const platform = {
|
|
1742
|
+
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
1743
|
+
getDocumentElement,
|
|
1744
|
+
getClippingRect,
|
|
1745
|
+
getOffsetParent,
|
|
1746
|
+
getElementRects,
|
|
1747
|
+
getClientRects,
|
|
1748
|
+
getDimensions,
|
|
1749
|
+
getScale,
|
|
1750
|
+
isElement,
|
|
1751
|
+
isRTL
|
|
1752
|
+
};
|
|
1753
|
+
|
|
1754
|
+
// https://samthor.au/2021/observing-dom/
|
|
1755
|
+
function observeMove(element, onMove) {
|
|
1756
|
+
let io = null;
|
|
1757
|
+
let timeoutId;
|
|
1758
|
+
const root = getDocumentElement(element);
|
|
1759
|
+
function cleanup() {
|
|
1760
|
+
var _io;
|
|
1761
|
+
clearTimeout(timeoutId);
|
|
1762
|
+
(_io = io) == null || _io.disconnect();
|
|
1763
|
+
io = null;
|
|
1764
|
+
}
|
|
1765
|
+
function refresh(skip, threshold) {
|
|
1766
|
+
if (skip === void 0) {
|
|
1767
|
+
skip = false;
|
|
1768
|
+
}
|
|
1769
|
+
if (threshold === void 0) {
|
|
1770
|
+
threshold = 1;
|
|
1771
|
+
}
|
|
1772
|
+
cleanup();
|
|
1773
|
+
const {
|
|
1774
|
+
left,
|
|
1775
|
+
top,
|
|
1776
|
+
width,
|
|
1777
|
+
height
|
|
1778
|
+
} = element.getBoundingClientRect();
|
|
1779
|
+
if (!skip) {
|
|
1780
|
+
onMove();
|
|
1781
|
+
}
|
|
1782
|
+
if (!width || !height) {
|
|
1783
|
+
return;
|
|
1784
|
+
}
|
|
1785
|
+
const insetTop = floor(top);
|
|
1786
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
|
1787
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
|
1788
|
+
const insetLeft = floor(left);
|
|
1789
|
+
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
|
1790
|
+
const options = {
|
|
1791
|
+
rootMargin,
|
|
1792
|
+
threshold: max(0, min(1, threshold)) || 1
|
|
1793
|
+
};
|
|
1794
|
+
let isFirstUpdate = true;
|
|
1795
|
+
function handleObserve(entries) {
|
|
1796
|
+
const ratio = entries[0].intersectionRatio;
|
|
1797
|
+
if (ratio !== threshold) {
|
|
1798
|
+
if (!isFirstUpdate) {
|
|
1799
|
+
return refresh();
|
|
1800
|
+
}
|
|
1801
|
+
if (!ratio) {
|
|
1802
|
+
// If the reference is clipped, the ratio is 0. Throttle the refresh
|
|
1803
|
+
// to prevent an infinite loop of updates.
|
|
1804
|
+
timeoutId = setTimeout(() => {
|
|
1805
|
+
refresh(false, 1e-7);
|
|
1806
|
+
}, 1000);
|
|
1807
|
+
} else {
|
|
1808
|
+
refresh(false, ratio);
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
isFirstUpdate = false;
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
// Older browsers don't support a `document` as the root and will throw an
|
|
1815
|
+
// error.
|
|
1816
|
+
try {
|
|
1817
|
+
io = new IntersectionObserver(handleObserve, {
|
|
1818
|
+
...options,
|
|
1819
|
+
// Handle <iframe>s
|
|
1820
|
+
root: root.ownerDocument
|
|
1821
|
+
});
|
|
1822
|
+
} catch (e) {
|
|
1823
|
+
io = new IntersectionObserver(handleObserve, options);
|
|
1824
|
+
}
|
|
1825
|
+
io.observe(element);
|
|
1826
|
+
}
|
|
1827
|
+
refresh(true);
|
|
1828
|
+
return cleanup;
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* Automatically updates the position of the floating element when necessary.
|
|
1833
|
+
* Should only be called when the floating element is mounted on the DOM or
|
|
1834
|
+
* visible on the screen.
|
|
1835
|
+
* @returns cleanup function that should be invoked when the floating element is
|
|
1836
|
+
* removed from the DOM or hidden from the screen.
|
|
1837
|
+
* @see https://floating-ui.com/docs/autoUpdate
|
|
1838
|
+
*/
|
|
1839
|
+
function autoUpdate(reference, floating, update, options) {
|
|
1840
|
+
if (options === void 0) {
|
|
1841
|
+
options = {};
|
|
1842
|
+
}
|
|
1843
|
+
const {
|
|
1844
|
+
ancestorScroll = true,
|
|
1845
|
+
ancestorResize = true,
|
|
1846
|
+
elementResize = typeof ResizeObserver === 'function',
|
|
1847
|
+
layoutShift = typeof IntersectionObserver === 'function',
|
|
1848
|
+
animationFrame = false
|
|
1849
|
+
} = options;
|
|
1850
|
+
const referenceEl = unwrapElement(reference);
|
|
1851
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
|
|
1852
|
+
ancestors.forEach(ancestor => {
|
|
1853
|
+
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
1854
|
+
passive: true
|
|
1855
|
+
});
|
|
1856
|
+
ancestorResize && ancestor.addEventListener('resize', update);
|
|
1857
|
+
});
|
|
1858
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
|
1859
|
+
let reobserveFrame = -1;
|
|
1860
|
+
let resizeObserver = null;
|
|
1861
|
+
if (elementResize) {
|
|
1862
|
+
resizeObserver = new ResizeObserver(_ref => {
|
|
1863
|
+
let [firstEntry] = _ref;
|
|
1864
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
|
1865
|
+
// Prevent update loops when using the `size` middleware.
|
|
1866
|
+
// https://github.com/floating-ui/floating-ui/issues/1740
|
|
1867
|
+
resizeObserver.unobserve(floating);
|
|
1868
|
+
cancelAnimationFrame(reobserveFrame);
|
|
1869
|
+
reobserveFrame = requestAnimationFrame(() => {
|
|
1870
|
+
var _resizeObserver;
|
|
1871
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
|
1872
|
+
});
|
|
1873
|
+
}
|
|
1874
|
+
update();
|
|
1875
|
+
});
|
|
1876
|
+
if (referenceEl && !animationFrame) {
|
|
1877
|
+
resizeObserver.observe(referenceEl);
|
|
1878
|
+
}
|
|
1879
|
+
resizeObserver.observe(floating);
|
|
1880
|
+
}
|
|
1881
|
+
let frameId;
|
|
1882
|
+
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
1883
|
+
if (animationFrame) {
|
|
1884
|
+
frameLoop();
|
|
1885
|
+
}
|
|
1886
|
+
function frameLoop() {
|
|
1887
|
+
const nextRefRect = getBoundingClientRect(reference);
|
|
1888
|
+
if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
|
|
1889
|
+
update();
|
|
1890
|
+
}
|
|
1891
|
+
prevRefRect = nextRefRect;
|
|
1892
|
+
frameId = requestAnimationFrame(frameLoop);
|
|
1893
|
+
}
|
|
1894
|
+
update();
|
|
1895
|
+
return () => {
|
|
1896
|
+
var _resizeObserver2;
|
|
1897
|
+
ancestors.forEach(ancestor => {
|
|
1898
|
+
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
1899
|
+
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
1900
|
+
});
|
|
1901
|
+
cleanupIo == null || cleanupIo();
|
|
1902
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
|
1903
|
+
resizeObserver = null;
|
|
1904
|
+
if (animationFrame) {
|
|
1905
|
+
cancelAnimationFrame(frameId);
|
|
1906
|
+
}
|
|
1907
|
+
};
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
/**
|
|
1911
|
+
* Modifies the placement by translating the floating element along the
|
|
1912
|
+
* specified axes.
|
|
1913
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
1914
|
+
* object may be passed.
|
|
1915
|
+
* @see https://floating-ui.com/docs/offset
|
|
1916
|
+
*/
|
|
1917
|
+
const offset = offset$1;
|
|
1918
|
+
|
|
1919
|
+
/**
|
|
1920
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
1921
|
+
* that has the most space available automatically, without needing to specify a
|
|
1922
|
+
* preferred placement. Alternative to `flip`.
|
|
1923
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
1924
|
+
*/
|
|
1925
|
+
autoPlacement;
|
|
1926
|
+
|
|
1927
|
+
/**
|
|
1928
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
1929
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
1930
|
+
* @see https://floating-ui.com/docs/shift
|
|
1931
|
+
*/
|
|
1932
|
+
const shift = shift$1;
|
|
1933
|
+
|
|
1934
|
+
/**
|
|
1935
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
1936
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
1937
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
1938
|
+
* @see https://floating-ui.com/docs/flip
|
|
1939
|
+
*/
|
|
1940
|
+
const flip = flip$1;
|
|
1941
|
+
|
|
1942
|
+
/**
|
|
1943
|
+
* Provides data that allows you to change the size of the floating element —
|
|
1944
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
1945
|
+
* width of the reference element.
|
|
1946
|
+
* @see https://floating-ui.com/docs/size
|
|
1947
|
+
*/
|
|
1948
|
+
size;
|
|
1949
|
+
|
|
1950
|
+
/**
|
|
1951
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
1952
|
+
* when it is not in the same clipping context as the reference element.
|
|
1953
|
+
* @see https://floating-ui.com/docs/hide
|
|
1954
|
+
*/
|
|
1955
|
+
const hide = hide$1;
|
|
1956
|
+
|
|
1957
|
+
/**
|
|
1958
|
+
* Provides data to position an inner element of the floating element so that it
|
|
1959
|
+
* appears centered to the reference element.
|
|
1960
|
+
* @see https://floating-ui.com/docs/arrow
|
|
1961
|
+
*/
|
|
1962
|
+
const arrow = arrow$1;
|
|
1963
|
+
|
|
1964
|
+
/**
|
|
1965
|
+
* Provides improved positioning for inline reference elements that can span
|
|
1966
|
+
* over multiple lines, such as hyperlinks or range selections.
|
|
1967
|
+
* @see https://floating-ui.com/docs/inline
|
|
1968
|
+
*/
|
|
1969
|
+
const inline = inline$1;
|
|
1970
|
+
|
|
1971
|
+
/**
|
|
1972
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
1973
|
+
*/
|
|
1974
|
+
limitShift;
|
|
1975
|
+
|
|
1976
|
+
/**
|
|
1977
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
|
1978
|
+
* next to a given reference element.
|
|
1979
|
+
*/
|
|
1980
|
+
const computePosition = (reference, floating, options) => {
|
|
1981
|
+
// This caches the expensive `getClippingElementAncestors` function so that
|
|
1982
|
+
// multiple lifecycle resets re-use the same result. It only lives for a
|
|
1983
|
+
// single call. If other functions become expensive, we can add them as well.
|
|
1984
|
+
const cache = new Map();
|
|
1985
|
+
const mergedOptions = {
|
|
1986
|
+
platform,
|
|
1987
|
+
...options
|
|
1988
|
+
};
|
|
1989
|
+
const platformWithCache = {
|
|
1990
|
+
...mergedOptions.platform,
|
|
1991
|
+
_c: cache
|
|
1992
|
+
};
|
|
1993
|
+
return computePosition$1(reference, floating, {
|
|
1994
|
+
...mergedOptions,
|
|
1995
|
+
platform: platformWithCache
|
|
1996
|
+
});
|
|
1997
|
+
};
|
|
1998
|
+
|
|
1999
|
+
export { autoUpdate as a, arrow as b, computePosition as c, flip as f, hide as h, inline as i, offset as o, shift as s };
|
|
2000
|
+
|
|
2001
|
+
//# sourceMappingURL=floating-ui.dom.esm-d4ad786a.js.map
|