@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
|
@@ -1,1528 +0,0 @@
|
|
|
1
|
-
const min = Math.min;
|
|
2
|
-
const max = Math.max;
|
|
3
|
-
const round = Math.round;
|
|
4
|
-
const floor = Math.floor;
|
|
5
|
-
const createCoords = v => ({
|
|
6
|
-
x: v,
|
|
7
|
-
y: v
|
|
8
|
-
});
|
|
9
|
-
const oppositeSideMap = {
|
|
10
|
-
left: 'right',
|
|
11
|
-
right: 'left',
|
|
12
|
-
bottom: 'top',
|
|
13
|
-
top: 'bottom'
|
|
14
|
-
};
|
|
15
|
-
const oppositeAlignmentMap = {
|
|
16
|
-
start: 'end',
|
|
17
|
-
end: 'start'
|
|
18
|
-
};
|
|
19
|
-
function clamp(start, value, end) {
|
|
20
|
-
return max(start, min(value, end));
|
|
21
|
-
}
|
|
22
|
-
function evaluate(value, param) {
|
|
23
|
-
return typeof value === 'function' ? value(param) : value;
|
|
24
|
-
}
|
|
25
|
-
function getSide(placement) {
|
|
26
|
-
return placement.split('-')[0];
|
|
27
|
-
}
|
|
28
|
-
function getAlignment(placement) {
|
|
29
|
-
return placement.split('-')[1];
|
|
30
|
-
}
|
|
31
|
-
function getOppositeAxis(axis) {
|
|
32
|
-
return axis === 'x' ? 'y' : 'x';
|
|
33
|
-
}
|
|
34
|
-
function getAxisLength(axis) {
|
|
35
|
-
return axis === 'y' ? 'height' : 'width';
|
|
36
|
-
}
|
|
37
|
-
function getSideAxis(placement) {
|
|
38
|
-
return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
|
|
39
|
-
}
|
|
40
|
-
function getAlignmentAxis(placement) {
|
|
41
|
-
return getOppositeAxis(getSideAxis(placement));
|
|
42
|
-
}
|
|
43
|
-
function getAlignmentSides(placement, rects, rtl) {
|
|
44
|
-
if (rtl === void 0) {
|
|
45
|
-
rtl = false;
|
|
46
|
-
}
|
|
47
|
-
const alignment = getAlignment(placement);
|
|
48
|
-
const alignmentAxis = getAlignmentAxis(placement);
|
|
49
|
-
const length = getAxisLength(alignmentAxis);
|
|
50
|
-
let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
|
51
|
-
if (rects.reference[length] > rects.floating[length]) {
|
|
52
|
-
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
53
|
-
}
|
|
54
|
-
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
55
|
-
}
|
|
56
|
-
function getExpandedPlacements(placement) {
|
|
57
|
-
const oppositePlacement = getOppositePlacement(placement);
|
|
58
|
-
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
59
|
-
}
|
|
60
|
-
function getOppositeAlignmentPlacement(placement) {
|
|
61
|
-
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
62
|
-
}
|
|
63
|
-
function getSideList(side, isStart, rtl) {
|
|
64
|
-
const lr = ['left', 'right'];
|
|
65
|
-
const rl = ['right', 'left'];
|
|
66
|
-
const tb = ['top', 'bottom'];
|
|
67
|
-
const bt = ['bottom', 'top'];
|
|
68
|
-
switch (side) {
|
|
69
|
-
case 'top':
|
|
70
|
-
case 'bottom':
|
|
71
|
-
if (rtl) return isStart ? rl : lr;
|
|
72
|
-
return isStart ? lr : rl;
|
|
73
|
-
case 'left':
|
|
74
|
-
case 'right':
|
|
75
|
-
return isStart ? tb : bt;
|
|
76
|
-
default:
|
|
77
|
-
return [];
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
81
|
-
const alignment = getAlignment(placement);
|
|
82
|
-
let list = getSideList(getSide(placement), direction === 'start', rtl);
|
|
83
|
-
if (alignment) {
|
|
84
|
-
list = list.map(side => side + "-" + alignment);
|
|
85
|
-
if (flipAlignment) {
|
|
86
|
-
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return list;
|
|
90
|
-
}
|
|
91
|
-
function getOppositePlacement(placement) {
|
|
92
|
-
return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
|
|
93
|
-
}
|
|
94
|
-
function expandPaddingObject(padding) {
|
|
95
|
-
return {
|
|
96
|
-
top: 0,
|
|
97
|
-
right: 0,
|
|
98
|
-
bottom: 0,
|
|
99
|
-
left: 0,
|
|
100
|
-
...padding
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
function getPaddingObject(padding) {
|
|
104
|
-
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
|
105
|
-
top: padding,
|
|
106
|
-
right: padding,
|
|
107
|
-
bottom: padding,
|
|
108
|
-
left: padding
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
function rectToClientRect(rect) {
|
|
112
|
-
return {
|
|
113
|
-
...rect,
|
|
114
|
-
top: rect.y,
|
|
115
|
-
left: rect.x,
|
|
116
|
-
right: rect.x + rect.width,
|
|
117
|
-
bottom: rect.y + rect.height
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
122
|
-
let {
|
|
123
|
-
reference,
|
|
124
|
-
floating
|
|
125
|
-
} = _ref;
|
|
126
|
-
const sideAxis = getSideAxis(placement);
|
|
127
|
-
const alignmentAxis = getAlignmentAxis(placement);
|
|
128
|
-
const alignLength = getAxisLength(alignmentAxis);
|
|
129
|
-
const side = getSide(placement);
|
|
130
|
-
const isVertical = sideAxis === 'y';
|
|
131
|
-
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
|
132
|
-
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
|
133
|
-
const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
|
134
|
-
let coords;
|
|
135
|
-
switch (side) {
|
|
136
|
-
case 'top':
|
|
137
|
-
coords = {
|
|
138
|
-
x: commonX,
|
|
139
|
-
y: reference.y - floating.height
|
|
140
|
-
};
|
|
141
|
-
break;
|
|
142
|
-
case 'bottom':
|
|
143
|
-
coords = {
|
|
144
|
-
x: commonX,
|
|
145
|
-
y: reference.y + reference.height
|
|
146
|
-
};
|
|
147
|
-
break;
|
|
148
|
-
case 'right':
|
|
149
|
-
coords = {
|
|
150
|
-
x: reference.x + reference.width,
|
|
151
|
-
y: commonY
|
|
152
|
-
};
|
|
153
|
-
break;
|
|
154
|
-
case 'left':
|
|
155
|
-
coords = {
|
|
156
|
-
x: reference.x - floating.width,
|
|
157
|
-
y: commonY
|
|
158
|
-
};
|
|
159
|
-
break;
|
|
160
|
-
default:
|
|
161
|
-
coords = {
|
|
162
|
-
x: reference.x,
|
|
163
|
-
y: reference.y
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
switch (getAlignment(placement)) {
|
|
167
|
-
case 'start':
|
|
168
|
-
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
169
|
-
break;
|
|
170
|
-
case 'end':
|
|
171
|
-
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
return coords;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Computes the `x` and `y` coordinates that will place the floating element
|
|
179
|
-
* next to a reference element when it is given a certain positioning strategy.
|
|
180
|
-
*
|
|
181
|
-
* This export does not have any `platform` interface logic. You will need to
|
|
182
|
-
* write one for the platform you are using Floating UI with.
|
|
183
|
-
*/
|
|
184
|
-
const computePosition$1 = async (reference, floating, config) => {
|
|
185
|
-
const {
|
|
186
|
-
placement = 'bottom',
|
|
187
|
-
strategy = 'absolute',
|
|
188
|
-
middleware = [],
|
|
189
|
-
platform
|
|
190
|
-
} = config;
|
|
191
|
-
const validMiddleware = middleware.filter(Boolean);
|
|
192
|
-
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
193
|
-
let rects = await platform.getElementRects({
|
|
194
|
-
reference,
|
|
195
|
-
floating,
|
|
196
|
-
strategy
|
|
197
|
-
});
|
|
198
|
-
let {
|
|
199
|
-
x,
|
|
200
|
-
y
|
|
201
|
-
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
202
|
-
let statefulPlacement = placement;
|
|
203
|
-
let middlewareData = {};
|
|
204
|
-
let resetCount = 0;
|
|
205
|
-
for (let i = 0; i < validMiddleware.length; i++) {
|
|
206
|
-
const {
|
|
207
|
-
name,
|
|
208
|
-
fn
|
|
209
|
-
} = validMiddleware[i];
|
|
210
|
-
const {
|
|
211
|
-
x: nextX,
|
|
212
|
-
y: nextY,
|
|
213
|
-
data,
|
|
214
|
-
reset
|
|
215
|
-
} = await fn({
|
|
216
|
-
x,
|
|
217
|
-
y,
|
|
218
|
-
initialPlacement: placement,
|
|
219
|
-
placement: statefulPlacement,
|
|
220
|
-
strategy,
|
|
221
|
-
middlewareData,
|
|
222
|
-
rects,
|
|
223
|
-
platform,
|
|
224
|
-
elements: {
|
|
225
|
-
reference,
|
|
226
|
-
floating
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
x = nextX != null ? nextX : x;
|
|
230
|
-
y = nextY != null ? nextY : y;
|
|
231
|
-
middlewareData = {
|
|
232
|
-
...middlewareData,
|
|
233
|
-
[name]: {
|
|
234
|
-
...middlewareData[name],
|
|
235
|
-
...data
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
if (reset && resetCount <= 50) {
|
|
239
|
-
resetCount++;
|
|
240
|
-
if (typeof reset === 'object') {
|
|
241
|
-
if (reset.placement) {
|
|
242
|
-
statefulPlacement = reset.placement;
|
|
243
|
-
}
|
|
244
|
-
if (reset.rects) {
|
|
245
|
-
rects = reset.rects === true ? await platform.getElementRects({
|
|
246
|
-
reference,
|
|
247
|
-
floating,
|
|
248
|
-
strategy
|
|
249
|
-
}) : reset.rects;
|
|
250
|
-
}
|
|
251
|
-
({
|
|
252
|
-
x,
|
|
253
|
-
y
|
|
254
|
-
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
255
|
-
}
|
|
256
|
-
i = -1;
|
|
257
|
-
continue;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
return {
|
|
261
|
-
x,
|
|
262
|
-
y,
|
|
263
|
-
placement: statefulPlacement,
|
|
264
|
-
strategy,
|
|
265
|
-
middlewareData
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Resolves with an object of overflow side offsets that determine how much the
|
|
271
|
-
* element is overflowing a given clipping boundary on each side.
|
|
272
|
-
* - positive = overflowing the boundary by that number of pixels
|
|
273
|
-
* - negative = how many pixels left before it will overflow
|
|
274
|
-
* - 0 = lies flush with the boundary
|
|
275
|
-
* @see https://floating-ui.com/docs/detectOverflow
|
|
276
|
-
*/
|
|
277
|
-
async function detectOverflow(state, options) {
|
|
278
|
-
var _await$platform$isEle;
|
|
279
|
-
if (options === void 0) {
|
|
280
|
-
options = {};
|
|
281
|
-
}
|
|
282
|
-
const {
|
|
283
|
-
x,
|
|
284
|
-
y,
|
|
285
|
-
platform,
|
|
286
|
-
rects,
|
|
287
|
-
elements,
|
|
288
|
-
strategy
|
|
289
|
-
} = state;
|
|
290
|
-
const {
|
|
291
|
-
boundary = 'clippingAncestors',
|
|
292
|
-
rootBoundary = 'viewport',
|
|
293
|
-
elementContext = 'floating',
|
|
294
|
-
altBoundary = false,
|
|
295
|
-
padding = 0
|
|
296
|
-
} = evaluate(options, state);
|
|
297
|
-
const paddingObject = getPaddingObject(padding);
|
|
298
|
-
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
299
|
-
const element = elements[altBoundary ? altContext : elementContext];
|
|
300
|
-
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
301
|
-
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))),
|
|
302
|
-
boundary,
|
|
303
|
-
rootBoundary,
|
|
304
|
-
strategy
|
|
305
|
-
}));
|
|
306
|
-
const rect = elementContext === 'floating' ? {
|
|
307
|
-
...rects.floating,
|
|
308
|
-
x,
|
|
309
|
-
y
|
|
310
|
-
} : rects.reference;
|
|
311
|
-
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
312
|
-
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
313
|
-
x: 1,
|
|
314
|
-
y: 1
|
|
315
|
-
} : {
|
|
316
|
-
x: 1,
|
|
317
|
-
y: 1
|
|
318
|
-
};
|
|
319
|
-
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
320
|
-
rect,
|
|
321
|
-
offsetParent,
|
|
322
|
-
strategy
|
|
323
|
-
}) : rect);
|
|
324
|
-
return {
|
|
325
|
-
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
326
|
-
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
327
|
-
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
328
|
-
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Provides data to position an inner element of the floating element so that it
|
|
334
|
-
* appears centered to the reference element.
|
|
335
|
-
* @see https://floating-ui.com/docs/arrow
|
|
336
|
-
*/
|
|
337
|
-
const arrow = options => ({
|
|
338
|
-
name: 'arrow',
|
|
339
|
-
options,
|
|
340
|
-
async fn(state) {
|
|
341
|
-
const {
|
|
342
|
-
x,
|
|
343
|
-
y,
|
|
344
|
-
placement,
|
|
345
|
-
rects,
|
|
346
|
-
platform,
|
|
347
|
-
elements,
|
|
348
|
-
middlewareData
|
|
349
|
-
} = state;
|
|
350
|
-
// Since `element` is required, we don't Partial<> the type.
|
|
351
|
-
const {
|
|
352
|
-
element,
|
|
353
|
-
padding = 0
|
|
354
|
-
} = evaluate(options, state) || {};
|
|
355
|
-
if (element == null) {
|
|
356
|
-
return {};
|
|
357
|
-
}
|
|
358
|
-
const paddingObject = getPaddingObject(padding);
|
|
359
|
-
const coords = {
|
|
360
|
-
x,
|
|
361
|
-
y
|
|
362
|
-
};
|
|
363
|
-
const axis = getAlignmentAxis(placement);
|
|
364
|
-
const length = getAxisLength(axis);
|
|
365
|
-
const arrowDimensions = await platform.getDimensions(element);
|
|
366
|
-
const isYAxis = axis === 'y';
|
|
367
|
-
const minProp = isYAxis ? 'top' : 'left';
|
|
368
|
-
const maxProp = isYAxis ? 'bottom' : 'right';
|
|
369
|
-
const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
|
|
370
|
-
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
371
|
-
const startDiff = coords[axis] - rects.reference[axis];
|
|
372
|
-
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
|
373
|
-
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
374
|
-
|
|
375
|
-
// DOM platform can return `window` as the `offsetParent`.
|
|
376
|
-
if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
|
|
377
|
-
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
378
|
-
}
|
|
379
|
-
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
380
|
-
|
|
381
|
-
// If the padding is large enough that it causes the arrow to no longer be
|
|
382
|
-
// centered, modify the padding so that it is centered.
|
|
383
|
-
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
|
384
|
-
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
|
385
|
-
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
|
386
|
-
|
|
387
|
-
// Make sure the arrow doesn't overflow the floating element if the center
|
|
388
|
-
// point is outside the floating element's bounds.
|
|
389
|
-
const min$1 = minPadding;
|
|
390
|
-
const max = clientSize - arrowDimensions[length] - maxPadding;
|
|
391
|
-
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
392
|
-
const offset = clamp(min$1, center, max);
|
|
393
|
-
|
|
394
|
-
// If the reference is small enough that the arrow's padding causes it to
|
|
395
|
-
// to point to nothing for an aligned placement, adjust the offset of the
|
|
396
|
-
// floating element itself. To ensure `shift()` continues to take action,
|
|
397
|
-
// a single reset is performed when this is true.
|
|
398
|
-
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
399
|
-
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
|
400
|
-
return {
|
|
401
|
-
[axis]: coords[axis] + alignmentOffset,
|
|
402
|
-
data: {
|
|
403
|
-
[axis]: offset,
|
|
404
|
-
centerOffset: center - offset - alignmentOffset,
|
|
405
|
-
...(shouldAddOffset && {
|
|
406
|
-
alignmentOffset
|
|
407
|
-
})
|
|
408
|
-
},
|
|
409
|
-
reset: shouldAddOffset
|
|
410
|
-
};
|
|
411
|
-
}
|
|
412
|
-
});
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
416
|
-
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
417
|
-
* clipping boundary. Alternative to `autoPlacement`.
|
|
418
|
-
* @see https://floating-ui.com/docs/flip
|
|
419
|
-
*/
|
|
420
|
-
const flip = function (options) {
|
|
421
|
-
if (options === void 0) {
|
|
422
|
-
options = {};
|
|
423
|
-
}
|
|
424
|
-
return {
|
|
425
|
-
name: 'flip',
|
|
426
|
-
options,
|
|
427
|
-
async fn(state) {
|
|
428
|
-
var _middlewareData$arrow, _middlewareData$flip;
|
|
429
|
-
const {
|
|
430
|
-
placement,
|
|
431
|
-
middlewareData,
|
|
432
|
-
rects,
|
|
433
|
-
initialPlacement,
|
|
434
|
-
platform,
|
|
435
|
-
elements
|
|
436
|
-
} = state;
|
|
437
|
-
const {
|
|
438
|
-
mainAxis: checkMainAxis = true,
|
|
439
|
-
crossAxis: checkCrossAxis = true,
|
|
440
|
-
fallbackPlacements: specifiedFallbackPlacements,
|
|
441
|
-
fallbackStrategy = 'bestFit',
|
|
442
|
-
fallbackAxisSideDirection = 'none',
|
|
443
|
-
flipAlignment = true,
|
|
444
|
-
...detectOverflowOptions
|
|
445
|
-
} = evaluate(options, state);
|
|
446
|
-
|
|
447
|
-
// If a reset by the arrow was caused due to an alignment offset being
|
|
448
|
-
// added, we should skip any logic now since `flip()` has already done its
|
|
449
|
-
// work.
|
|
450
|
-
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
|
451
|
-
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
452
|
-
return {};
|
|
453
|
-
}
|
|
454
|
-
const side = getSide(placement);
|
|
455
|
-
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
456
|
-
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
457
|
-
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
458
|
-
if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {
|
|
459
|
-
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
460
|
-
}
|
|
461
|
-
const placements = [initialPlacement, ...fallbackPlacements];
|
|
462
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
463
|
-
const overflows = [];
|
|
464
|
-
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
465
|
-
if (checkMainAxis) {
|
|
466
|
-
overflows.push(overflow[side]);
|
|
467
|
-
}
|
|
468
|
-
if (checkCrossAxis) {
|
|
469
|
-
const sides = getAlignmentSides(placement, rects, rtl);
|
|
470
|
-
overflows.push(overflow[sides[0]], overflow[sides[1]]);
|
|
471
|
-
}
|
|
472
|
-
overflowsData = [...overflowsData, {
|
|
473
|
-
placement,
|
|
474
|
-
overflows
|
|
475
|
-
}];
|
|
476
|
-
|
|
477
|
-
// One or more sides is overflowing.
|
|
478
|
-
if (!overflows.every(side => side <= 0)) {
|
|
479
|
-
var _middlewareData$flip2, _overflowsData$filter;
|
|
480
|
-
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
481
|
-
const nextPlacement = placements[nextIndex];
|
|
482
|
-
if (nextPlacement) {
|
|
483
|
-
// Try next placement and re-run the lifecycle.
|
|
484
|
-
return {
|
|
485
|
-
data: {
|
|
486
|
-
index: nextIndex,
|
|
487
|
-
overflows: overflowsData
|
|
488
|
-
},
|
|
489
|
-
reset: {
|
|
490
|
-
placement: nextPlacement
|
|
491
|
-
}
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
496
|
-
// then find the placement that fits the best on the main crossAxis side.
|
|
497
|
-
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;
|
|
498
|
-
|
|
499
|
-
// Otherwise fallback.
|
|
500
|
-
if (!resetPlacement) {
|
|
501
|
-
switch (fallbackStrategy) {
|
|
502
|
-
case 'bestFit':
|
|
503
|
-
{
|
|
504
|
-
var _overflowsData$map$so;
|
|
505
|
-
const placement = (_overflowsData$map$so = overflowsData.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$map$so[0];
|
|
506
|
-
if (placement) {
|
|
507
|
-
resetPlacement = placement;
|
|
508
|
-
}
|
|
509
|
-
break;
|
|
510
|
-
}
|
|
511
|
-
case 'initialPlacement':
|
|
512
|
-
resetPlacement = initialPlacement;
|
|
513
|
-
break;
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
if (placement !== resetPlacement) {
|
|
517
|
-
return {
|
|
518
|
-
reset: {
|
|
519
|
-
placement: resetPlacement
|
|
520
|
-
}
|
|
521
|
-
};
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
return {};
|
|
525
|
-
}
|
|
526
|
-
};
|
|
527
|
-
};
|
|
528
|
-
|
|
529
|
-
function getBoundingRect(rects) {
|
|
530
|
-
const minX = min(...rects.map(rect => rect.left));
|
|
531
|
-
const minY = min(...rects.map(rect => rect.top));
|
|
532
|
-
const maxX = max(...rects.map(rect => rect.right));
|
|
533
|
-
const maxY = max(...rects.map(rect => rect.bottom));
|
|
534
|
-
return {
|
|
535
|
-
x: minX,
|
|
536
|
-
y: minY,
|
|
537
|
-
width: maxX - minX,
|
|
538
|
-
height: maxY - minY
|
|
539
|
-
};
|
|
540
|
-
}
|
|
541
|
-
function getRectsByLine(rects) {
|
|
542
|
-
const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
|
|
543
|
-
const groups = [];
|
|
544
|
-
let prevRect = null;
|
|
545
|
-
for (let i = 0; i < sortedRects.length; i++) {
|
|
546
|
-
const rect = sortedRects[i];
|
|
547
|
-
if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
|
|
548
|
-
groups.push([rect]);
|
|
549
|
-
} else {
|
|
550
|
-
groups[groups.length - 1].push(rect);
|
|
551
|
-
}
|
|
552
|
-
prevRect = rect;
|
|
553
|
-
}
|
|
554
|
-
return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
|
|
555
|
-
}
|
|
556
|
-
/**
|
|
557
|
-
* Provides improved positioning for inline reference elements that can span
|
|
558
|
-
* over multiple lines, such as hyperlinks or range selections.
|
|
559
|
-
* @see https://floating-ui.com/docs/inline
|
|
560
|
-
*/
|
|
561
|
-
const inline = function (options) {
|
|
562
|
-
if (options === void 0) {
|
|
563
|
-
options = {};
|
|
564
|
-
}
|
|
565
|
-
return {
|
|
566
|
-
name: 'inline',
|
|
567
|
-
options,
|
|
568
|
-
async fn(state) {
|
|
569
|
-
const {
|
|
570
|
-
placement,
|
|
571
|
-
elements,
|
|
572
|
-
rects,
|
|
573
|
-
platform,
|
|
574
|
-
strategy
|
|
575
|
-
} = state;
|
|
576
|
-
// A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
|
|
577
|
-
// ClientRect's bounds, despite the event listener being triggered. A
|
|
578
|
-
// padding of 2 seems to handle this issue.
|
|
579
|
-
const {
|
|
580
|
-
padding = 2,
|
|
581
|
-
x,
|
|
582
|
-
y
|
|
583
|
-
} = evaluate(options, state);
|
|
584
|
-
const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
|
|
585
|
-
const clientRects = getRectsByLine(nativeClientRects);
|
|
586
|
-
const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
|
|
587
|
-
const paddingObject = getPaddingObject(padding);
|
|
588
|
-
function getBoundingClientRect() {
|
|
589
|
-
// There are two rects and they are disjoined.
|
|
590
|
-
if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
|
|
591
|
-
// Find the first rect in which the point is fully inside.
|
|
592
|
-
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;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
// There are 2 or more connected rects.
|
|
596
|
-
if (clientRects.length >= 2) {
|
|
597
|
-
if (getSideAxis(placement) === 'y') {
|
|
598
|
-
const firstRect = clientRects[0];
|
|
599
|
-
const lastRect = clientRects[clientRects.length - 1];
|
|
600
|
-
const isTop = getSide(placement) === 'top';
|
|
601
|
-
const top = firstRect.top;
|
|
602
|
-
const bottom = lastRect.bottom;
|
|
603
|
-
const left = isTop ? firstRect.left : lastRect.left;
|
|
604
|
-
const right = isTop ? firstRect.right : lastRect.right;
|
|
605
|
-
const width = right - left;
|
|
606
|
-
const height = bottom - top;
|
|
607
|
-
return {
|
|
608
|
-
top,
|
|
609
|
-
bottom,
|
|
610
|
-
left,
|
|
611
|
-
right,
|
|
612
|
-
width,
|
|
613
|
-
height,
|
|
614
|
-
x: left,
|
|
615
|
-
y: top
|
|
616
|
-
};
|
|
617
|
-
}
|
|
618
|
-
const isLeftSide = getSide(placement) === 'left';
|
|
619
|
-
const maxRight = max(...clientRects.map(rect => rect.right));
|
|
620
|
-
const minLeft = min(...clientRects.map(rect => rect.left));
|
|
621
|
-
const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
|
|
622
|
-
const top = measureRects[0].top;
|
|
623
|
-
const bottom = measureRects[measureRects.length - 1].bottom;
|
|
624
|
-
const left = minLeft;
|
|
625
|
-
const right = maxRight;
|
|
626
|
-
const width = right - left;
|
|
627
|
-
const height = bottom - top;
|
|
628
|
-
return {
|
|
629
|
-
top,
|
|
630
|
-
bottom,
|
|
631
|
-
left,
|
|
632
|
-
right,
|
|
633
|
-
width,
|
|
634
|
-
height,
|
|
635
|
-
x: left,
|
|
636
|
-
y: top
|
|
637
|
-
};
|
|
638
|
-
}
|
|
639
|
-
return fallback;
|
|
640
|
-
}
|
|
641
|
-
const resetRects = await platform.getElementRects({
|
|
642
|
-
reference: {
|
|
643
|
-
getBoundingClientRect
|
|
644
|
-
},
|
|
645
|
-
floating: elements.floating,
|
|
646
|
-
strategy
|
|
647
|
-
});
|
|
648
|
-
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) {
|
|
649
|
-
return {
|
|
650
|
-
reset: {
|
|
651
|
-
rects: resetRects
|
|
652
|
-
}
|
|
653
|
-
};
|
|
654
|
-
}
|
|
655
|
-
return {};
|
|
656
|
-
}
|
|
657
|
-
};
|
|
658
|
-
};
|
|
659
|
-
|
|
660
|
-
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
661
|
-
// Derivable.
|
|
662
|
-
async function convertValueToCoords(state, options) {
|
|
663
|
-
const {
|
|
664
|
-
placement,
|
|
665
|
-
platform,
|
|
666
|
-
elements
|
|
667
|
-
} = state;
|
|
668
|
-
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
669
|
-
const side = getSide(placement);
|
|
670
|
-
const alignment = getAlignment(placement);
|
|
671
|
-
const isVertical = getSideAxis(placement) === 'y';
|
|
672
|
-
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
673
|
-
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
674
|
-
const rawValue = evaluate(options, state);
|
|
675
|
-
|
|
676
|
-
// eslint-disable-next-line prefer-const
|
|
677
|
-
let {
|
|
678
|
-
mainAxis,
|
|
679
|
-
crossAxis,
|
|
680
|
-
alignmentAxis
|
|
681
|
-
} = typeof rawValue === 'number' ? {
|
|
682
|
-
mainAxis: rawValue,
|
|
683
|
-
crossAxis: 0,
|
|
684
|
-
alignmentAxis: null
|
|
685
|
-
} : {
|
|
686
|
-
mainAxis: 0,
|
|
687
|
-
crossAxis: 0,
|
|
688
|
-
alignmentAxis: null,
|
|
689
|
-
...rawValue
|
|
690
|
-
};
|
|
691
|
-
if (alignment && typeof alignmentAxis === 'number') {
|
|
692
|
-
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
|
693
|
-
}
|
|
694
|
-
return isVertical ? {
|
|
695
|
-
x: crossAxis * crossAxisMulti,
|
|
696
|
-
y: mainAxis * mainAxisMulti
|
|
697
|
-
} : {
|
|
698
|
-
x: mainAxis * mainAxisMulti,
|
|
699
|
-
y: crossAxis * crossAxisMulti
|
|
700
|
-
};
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
/**
|
|
704
|
-
* Modifies the placement by translating the floating element along the
|
|
705
|
-
* specified axes.
|
|
706
|
-
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
707
|
-
* object may be passed.
|
|
708
|
-
* @see https://floating-ui.com/docs/offset
|
|
709
|
-
*/
|
|
710
|
-
const offset = function (options) {
|
|
711
|
-
if (options === void 0) {
|
|
712
|
-
options = 0;
|
|
713
|
-
}
|
|
714
|
-
return {
|
|
715
|
-
name: 'offset',
|
|
716
|
-
options,
|
|
717
|
-
async fn(state) {
|
|
718
|
-
const {
|
|
719
|
-
x,
|
|
720
|
-
y
|
|
721
|
-
} = state;
|
|
722
|
-
const diffCoords = await convertValueToCoords(state, options);
|
|
723
|
-
return {
|
|
724
|
-
x: x + diffCoords.x,
|
|
725
|
-
y: y + diffCoords.y,
|
|
726
|
-
data: diffCoords
|
|
727
|
-
};
|
|
728
|
-
}
|
|
729
|
-
};
|
|
730
|
-
};
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* Optimizes the visibility of the floating element by shifting it in order to
|
|
734
|
-
* keep it in view when it will overflow the clipping boundary.
|
|
735
|
-
* @see https://floating-ui.com/docs/shift
|
|
736
|
-
*/
|
|
737
|
-
const shift = function (options) {
|
|
738
|
-
if (options === void 0) {
|
|
739
|
-
options = {};
|
|
740
|
-
}
|
|
741
|
-
return {
|
|
742
|
-
name: 'shift',
|
|
743
|
-
options,
|
|
744
|
-
async fn(state) {
|
|
745
|
-
const {
|
|
746
|
-
x,
|
|
747
|
-
y,
|
|
748
|
-
placement
|
|
749
|
-
} = state;
|
|
750
|
-
const {
|
|
751
|
-
mainAxis: checkMainAxis = true,
|
|
752
|
-
crossAxis: checkCrossAxis = false,
|
|
753
|
-
limiter = {
|
|
754
|
-
fn: _ref => {
|
|
755
|
-
let {
|
|
756
|
-
x,
|
|
757
|
-
y
|
|
758
|
-
} = _ref;
|
|
759
|
-
return {
|
|
760
|
-
x,
|
|
761
|
-
y
|
|
762
|
-
};
|
|
763
|
-
}
|
|
764
|
-
},
|
|
765
|
-
...detectOverflowOptions
|
|
766
|
-
} = evaluate(options, state);
|
|
767
|
-
const coords = {
|
|
768
|
-
x,
|
|
769
|
-
y
|
|
770
|
-
};
|
|
771
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
772
|
-
const crossAxis = getSideAxis(getSide(placement));
|
|
773
|
-
const mainAxis = getOppositeAxis(crossAxis);
|
|
774
|
-
let mainAxisCoord = coords[mainAxis];
|
|
775
|
-
let crossAxisCoord = coords[crossAxis];
|
|
776
|
-
if (checkMainAxis) {
|
|
777
|
-
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
|
778
|
-
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
|
779
|
-
const min = mainAxisCoord + overflow[minSide];
|
|
780
|
-
const max = mainAxisCoord - overflow[maxSide];
|
|
781
|
-
mainAxisCoord = clamp(min, mainAxisCoord, max);
|
|
782
|
-
}
|
|
783
|
-
if (checkCrossAxis) {
|
|
784
|
-
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
|
785
|
-
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
|
786
|
-
const min = crossAxisCoord + overflow[minSide];
|
|
787
|
-
const max = crossAxisCoord - overflow[maxSide];
|
|
788
|
-
crossAxisCoord = clamp(min, crossAxisCoord, max);
|
|
789
|
-
}
|
|
790
|
-
const limitedCoords = limiter.fn({
|
|
791
|
-
...state,
|
|
792
|
-
[mainAxis]: mainAxisCoord,
|
|
793
|
-
[crossAxis]: crossAxisCoord
|
|
794
|
-
});
|
|
795
|
-
return {
|
|
796
|
-
...limitedCoords,
|
|
797
|
-
data: {
|
|
798
|
-
x: limitedCoords.x - x,
|
|
799
|
-
y: limitedCoords.y - y
|
|
800
|
-
}
|
|
801
|
-
};
|
|
802
|
-
}
|
|
803
|
-
};
|
|
804
|
-
};
|
|
805
|
-
|
|
806
|
-
function getNodeName(node) {
|
|
807
|
-
if (isNode(node)) {
|
|
808
|
-
return (node.nodeName || '').toLowerCase();
|
|
809
|
-
}
|
|
810
|
-
// Mocked nodes in testing environments may not be instances of Node. By
|
|
811
|
-
// returning `#document` an infinite loop won't occur.
|
|
812
|
-
// https://github.com/floating-ui/floating-ui/issues/2317
|
|
813
|
-
return '#document';
|
|
814
|
-
}
|
|
815
|
-
function getWindow(node) {
|
|
816
|
-
var _node$ownerDocument;
|
|
817
|
-
return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
818
|
-
}
|
|
819
|
-
function getDocumentElement(node) {
|
|
820
|
-
var _ref;
|
|
821
|
-
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
822
|
-
}
|
|
823
|
-
function isNode(value) {
|
|
824
|
-
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
825
|
-
}
|
|
826
|
-
function isElement(value) {
|
|
827
|
-
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
828
|
-
}
|
|
829
|
-
function isHTMLElement(value) {
|
|
830
|
-
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
831
|
-
}
|
|
832
|
-
function isShadowRoot(value) {
|
|
833
|
-
// Browsers without `ShadowRoot` support.
|
|
834
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
835
|
-
return false;
|
|
836
|
-
}
|
|
837
|
-
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
838
|
-
}
|
|
839
|
-
function isOverflowElement(element) {
|
|
840
|
-
const {
|
|
841
|
-
overflow,
|
|
842
|
-
overflowX,
|
|
843
|
-
overflowY,
|
|
844
|
-
display
|
|
845
|
-
} = getComputedStyle(element);
|
|
846
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
847
|
-
}
|
|
848
|
-
function isTableElement(element) {
|
|
849
|
-
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
850
|
-
}
|
|
851
|
-
function isContainingBlock(element) {
|
|
852
|
-
const webkit = isWebKit();
|
|
853
|
-
const css = getComputedStyle(element);
|
|
854
|
-
|
|
855
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
856
|
-
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));
|
|
857
|
-
}
|
|
858
|
-
function getContainingBlock(element) {
|
|
859
|
-
let currentNode = getParentNode(element);
|
|
860
|
-
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
861
|
-
if (isContainingBlock(currentNode)) {
|
|
862
|
-
return currentNode;
|
|
863
|
-
} else {
|
|
864
|
-
currentNode = getParentNode(currentNode);
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
return null;
|
|
868
|
-
}
|
|
869
|
-
function isWebKit() {
|
|
870
|
-
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
871
|
-
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
872
|
-
}
|
|
873
|
-
function isLastTraversableNode(node) {
|
|
874
|
-
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
875
|
-
}
|
|
876
|
-
function getComputedStyle(element) {
|
|
877
|
-
return getWindow(element).getComputedStyle(element);
|
|
878
|
-
}
|
|
879
|
-
function getNodeScroll(element) {
|
|
880
|
-
if (isElement(element)) {
|
|
881
|
-
return {
|
|
882
|
-
scrollLeft: element.scrollLeft,
|
|
883
|
-
scrollTop: element.scrollTop
|
|
884
|
-
};
|
|
885
|
-
}
|
|
886
|
-
return {
|
|
887
|
-
scrollLeft: element.pageXOffset,
|
|
888
|
-
scrollTop: element.pageYOffset
|
|
889
|
-
};
|
|
890
|
-
}
|
|
891
|
-
function getParentNode(node) {
|
|
892
|
-
if (getNodeName(node) === 'html') {
|
|
893
|
-
return node;
|
|
894
|
-
}
|
|
895
|
-
const result =
|
|
896
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
897
|
-
node.assignedSlot ||
|
|
898
|
-
// DOM Element detected.
|
|
899
|
-
node.parentNode ||
|
|
900
|
-
// ShadowRoot detected.
|
|
901
|
-
isShadowRoot(node) && node.host ||
|
|
902
|
-
// Fallback.
|
|
903
|
-
getDocumentElement(node);
|
|
904
|
-
return isShadowRoot(result) ? result.host : result;
|
|
905
|
-
}
|
|
906
|
-
function getNearestOverflowAncestor(node) {
|
|
907
|
-
const parentNode = getParentNode(node);
|
|
908
|
-
if (isLastTraversableNode(parentNode)) {
|
|
909
|
-
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
910
|
-
}
|
|
911
|
-
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
912
|
-
return parentNode;
|
|
913
|
-
}
|
|
914
|
-
return getNearestOverflowAncestor(parentNode);
|
|
915
|
-
}
|
|
916
|
-
function getOverflowAncestors(node, list, traverseIframes) {
|
|
917
|
-
var _node$ownerDocument2;
|
|
918
|
-
if (list === void 0) {
|
|
919
|
-
list = [];
|
|
920
|
-
}
|
|
921
|
-
if (traverseIframes === void 0) {
|
|
922
|
-
traverseIframes = true;
|
|
923
|
-
}
|
|
924
|
-
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
925
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
926
|
-
const win = getWindow(scrollableAncestor);
|
|
927
|
-
if (isBody) {
|
|
928
|
-
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
|
929
|
-
}
|
|
930
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
function getCssDimensions(element) {
|
|
934
|
-
const css = getComputedStyle(element);
|
|
935
|
-
// In testing environments, the `width` and `height` properties are empty
|
|
936
|
-
// strings for SVG elements, returning NaN. Fallback to `0` in this case.
|
|
937
|
-
let width = parseFloat(css.width) || 0;
|
|
938
|
-
let height = parseFloat(css.height) || 0;
|
|
939
|
-
const hasOffset = isHTMLElement(element);
|
|
940
|
-
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
941
|
-
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
942
|
-
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
943
|
-
if (shouldFallback) {
|
|
944
|
-
width = offsetWidth;
|
|
945
|
-
height = offsetHeight;
|
|
946
|
-
}
|
|
947
|
-
return {
|
|
948
|
-
width,
|
|
949
|
-
height,
|
|
950
|
-
$: shouldFallback
|
|
951
|
-
};
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
function unwrapElement(element) {
|
|
955
|
-
return !isElement(element) ? element.contextElement : element;
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
function getScale(element) {
|
|
959
|
-
const domElement = unwrapElement(element);
|
|
960
|
-
if (!isHTMLElement(domElement)) {
|
|
961
|
-
return createCoords(1);
|
|
962
|
-
}
|
|
963
|
-
const rect = domElement.getBoundingClientRect();
|
|
964
|
-
const {
|
|
965
|
-
width,
|
|
966
|
-
height,
|
|
967
|
-
$
|
|
968
|
-
} = getCssDimensions(domElement);
|
|
969
|
-
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
970
|
-
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
971
|
-
|
|
972
|
-
// 0, NaN, or Infinity should always fallback to 1.
|
|
973
|
-
|
|
974
|
-
if (!x || !Number.isFinite(x)) {
|
|
975
|
-
x = 1;
|
|
976
|
-
}
|
|
977
|
-
if (!y || !Number.isFinite(y)) {
|
|
978
|
-
y = 1;
|
|
979
|
-
}
|
|
980
|
-
return {
|
|
981
|
-
x,
|
|
982
|
-
y
|
|
983
|
-
};
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
const noOffsets = /*#__PURE__*/createCoords(0);
|
|
987
|
-
function getVisualOffsets(element) {
|
|
988
|
-
const win = getWindow(element);
|
|
989
|
-
if (!isWebKit() || !win.visualViewport) {
|
|
990
|
-
return noOffsets;
|
|
991
|
-
}
|
|
992
|
-
return {
|
|
993
|
-
x: win.visualViewport.offsetLeft,
|
|
994
|
-
y: win.visualViewport.offsetTop
|
|
995
|
-
};
|
|
996
|
-
}
|
|
997
|
-
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
998
|
-
if (isFixed === void 0) {
|
|
999
|
-
isFixed = false;
|
|
1000
|
-
}
|
|
1001
|
-
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
1002
|
-
return false;
|
|
1003
|
-
}
|
|
1004
|
-
return isFixed;
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
1008
|
-
if (includeScale === void 0) {
|
|
1009
|
-
includeScale = false;
|
|
1010
|
-
}
|
|
1011
|
-
if (isFixedStrategy === void 0) {
|
|
1012
|
-
isFixedStrategy = false;
|
|
1013
|
-
}
|
|
1014
|
-
const clientRect = element.getBoundingClientRect();
|
|
1015
|
-
const domElement = unwrapElement(element);
|
|
1016
|
-
let scale = createCoords(1);
|
|
1017
|
-
if (includeScale) {
|
|
1018
|
-
if (offsetParent) {
|
|
1019
|
-
if (isElement(offsetParent)) {
|
|
1020
|
-
scale = getScale(offsetParent);
|
|
1021
|
-
}
|
|
1022
|
-
} else {
|
|
1023
|
-
scale = getScale(element);
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
1027
|
-
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
1028
|
-
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
1029
|
-
let width = clientRect.width / scale.x;
|
|
1030
|
-
let height = clientRect.height / scale.y;
|
|
1031
|
-
if (domElement) {
|
|
1032
|
-
const win = getWindow(domElement);
|
|
1033
|
-
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
1034
|
-
let currentIFrame = win.frameElement;
|
|
1035
|
-
while (currentIFrame && offsetParent && offsetWin !== win) {
|
|
1036
|
-
const iframeScale = getScale(currentIFrame);
|
|
1037
|
-
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
1038
|
-
const css = getComputedStyle(currentIFrame);
|
|
1039
|
-
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
1040
|
-
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
1041
|
-
x *= iframeScale.x;
|
|
1042
|
-
y *= iframeScale.y;
|
|
1043
|
-
width *= iframeScale.x;
|
|
1044
|
-
height *= iframeScale.y;
|
|
1045
|
-
x += left;
|
|
1046
|
-
y += top;
|
|
1047
|
-
currentIFrame = getWindow(currentIFrame).frameElement;
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
return rectToClientRect({
|
|
1051
|
-
width,
|
|
1052
|
-
height,
|
|
1053
|
-
x,
|
|
1054
|
-
y
|
|
1055
|
-
});
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
1059
|
-
let {
|
|
1060
|
-
rect,
|
|
1061
|
-
offsetParent,
|
|
1062
|
-
strategy
|
|
1063
|
-
} = _ref;
|
|
1064
|
-
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1065
|
-
const documentElement = getDocumentElement(offsetParent);
|
|
1066
|
-
if (offsetParent === documentElement) {
|
|
1067
|
-
return rect;
|
|
1068
|
-
}
|
|
1069
|
-
let scroll = {
|
|
1070
|
-
scrollLeft: 0,
|
|
1071
|
-
scrollTop: 0
|
|
1072
|
-
};
|
|
1073
|
-
let scale = createCoords(1);
|
|
1074
|
-
const offsets = createCoords(0);
|
|
1075
|
-
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
1076
|
-
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1077
|
-
scroll = getNodeScroll(offsetParent);
|
|
1078
|
-
}
|
|
1079
|
-
if (isHTMLElement(offsetParent)) {
|
|
1080
|
-
const offsetRect = getBoundingClientRect(offsetParent);
|
|
1081
|
-
scale = getScale(offsetParent);
|
|
1082
|
-
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1083
|
-
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
return {
|
|
1087
|
-
width: rect.width * scale.x,
|
|
1088
|
-
height: rect.height * scale.y,
|
|
1089
|
-
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
|
|
1090
|
-
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
|
|
1091
|
-
};
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
function getClientRects(element) {
|
|
1095
|
-
return Array.from(element.getClientRects());
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
function getWindowScrollBarX(element) {
|
|
1099
|
-
// If <html> has a CSS width greater than the viewport, then this will be
|
|
1100
|
-
// incorrect for RTL.
|
|
1101
|
-
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
// Gets the entire size of the scrollable document area, even extending outside
|
|
1105
|
-
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
|
1106
|
-
function getDocumentRect(element) {
|
|
1107
|
-
const html = getDocumentElement(element);
|
|
1108
|
-
const scroll = getNodeScroll(element);
|
|
1109
|
-
const body = element.ownerDocument.body;
|
|
1110
|
-
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
1111
|
-
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
1112
|
-
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
1113
|
-
const y = -scroll.scrollTop;
|
|
1114
|
-
if (getComputedStyle(body).direction === 'rtl') {
|
|
1115
|
-
x += max(html.clientWidth, body.clientWidth) - width;
|
|
1116
|
-
}
|
|
1117
|
-
return {
|
|
1118
|
-
width,
|
|
1119
|
-
height,
|
|
1120
|
-
x,
|
|
1121
|
-
y
|
|
1122
|
-
};
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
function getViewportRect(element, strategy) {
|
|
1126
|
-
const win = getWindow(element);
|
|
1127
|
-
const html = getDocumentElement(element);
|
|
1128
|
-
const visualViewport = win.visualViewport;
|
|
1129
|
-
let width = html.clientWidth;
|
|
1130
|
-
let height = html.clientHeight;
|
|
1131
|
-
let x = 0;
|
|
1132
|
-
let y = 0;
|
|
1133
|
-
if (visualViewport) {
|
|
1134
|
-
width = visualViewport.width;
|
|
1135
|
-
height = visualViewport.height;
|
|
1136
|
-
const visualViewportBased = isWebKit();
|
|
1137
|
-
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
|
1138
|
-
x = visualViewport.offsetLeft;
|
|
1139
|
-
y = visualViewport.offsetTop;
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
return {
|
|
1143
|
-
width,
|
|
1144
|
-
height,
|
|
1145
|
-
x,
|
|
1146
|
-
y
|
|
1147
|
-
};
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
// Returns the inner client rect, subtracting scrollbars if present.
|
|
1151
|
-
function getInnerBoundingClientRect(element, strategy) {
|
|
1152
|
-
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
1153
|
-
const top = clientRect.top + element.clientTop;
|
|
1154
|
-
const left = clientRect.left + element.clientLeft;
|
|
1155
|
-
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
|
1156
|
-
const width = element.clientWidth * scale.x;
|
|
1157
|
-
const height = element.clientHeight * scale.y;
|
|
1158
|
-
const x = left * scale.x;
|
|
1159
|
-
const y = top * scale.y;
|
|
1160
|
-
return {
|
|
1161
|
-
width,
|
|
1162
|
-
height,
|
|
1163
|
-
x,
|
|
1164
|
-
y
|
|
1165
|
-
};
|
|
1166
|
-
}
|
|
1167
|
-
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
1168
|
-
let rect;
|
|
1169
|
-
if (clippingAncestor === 'viewport') {
|
|
1170
|
-
rect = getViewportRect(element, strategy);
|
|
1171
|
-
} else if (clippingAncestor === 'document') {
|
|
1172
|
-
rect = getDocumentRect(getDocumentElement(element));
|
|
1173
|
-
} else if (isElement(clippingAncestor)) {
|
|
1174
|
-
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
1175
|
-
} else {
|
|
1176
|
-
const visualOffsets = getVisualOffsets(element);
|
|
1177
|
-
rect = {
|
|
1178
|
-
...clippingAncestor,
|
|
1179
|
-
x: clippingAncestor.x - visualOffsets.x,
|
|
1180
|
-
y: clippingAncestor.y - visualOffsets.y
|
|
1181
|
-
};
|
|
1182
|
-
}
|
|
1183
|
-
return rectToClientRect(rect);
|
|
1184
|
-
}
|
|
1185
|
-
function hasFixedPositionAncestor(element, stopNode) {
|
|
1186
|
-
const parentNode = getParentNode(element);
|
|
1187
|
-
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
1188
|
-
return false;
|
|
1189
|
-
}
|
|
1190
|
-
return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
|
1194
|
-
// clipping (or hiding) child elements. This returns all clipping ancestors
|
|
1195
|
-
// of the given element up the tree.
|
|
1196
|
-
function getClippingElementAncestors(element, cache) {
|
|
1197
|
-
const cachedResult = cache.get(element);
|
|
1198
|
-
if (cachedResult) {
|
|
1199
|
-
return cachedResult;
|
|
1200
|
-
}
|
|
1201
|
-
let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
|
1202
|
-
let currentContainingBlockComputedStyle = null;
|
|
1203
|
-
const elementIsFixed = getComputedStyle(element).position === 'fixed';
|
|
1204
|
-
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1205
|
-
|
|
1206
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
1207
|
-
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1208
|
-
const computedStyle = getComputedStyle(currentNode);
|
|
1209
|
-
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
1210
|
-
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
1211
|
-
currentContainingBlockComputedStyle = null;
|
|
1212
|
-
}
|
|
1213
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
1214
|
-
if (shouldDropCurrentNode) {
|
|
1215
|
-
// Drop non-containing blocks.
|
|
1216
|
-
result = result.filter(ancestor => ancestor !== currentNode);
|
|
1217
|
-
} else {
|
|
1218
|
-
// Record last containing block for next iteration.
|
|
1219
|
-
currentContainingBlockComputedStyle = computedStyle;
|
|
1220
|
-
}
|
|
1221
|
-
currentNode = getParentNode(currentNode);
|
|
1222
|
-
}
|
|
1223
|
-
cache.set(element, result);
|
|
1224
|
-
return result;
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
// Gets the maximum area that the element is visible in due to any number of
|
|
1228
|
-
// clipping ancestors.
|
|
1229
|
-
function getClippingRect(_ref) {
|
|
1230
|
-
let {
|
|
1231
|
-
element,
|
|
1232
|
-
boundary,
|
|
1233
|
-
rootBoundary,
|
|
1234
|
-
strategy
|
|
1235
|
-
} = _ref;
|
|
1236
|
-
const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
1237
|
-
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
1238
|
-
const firstClippingAncestor = clippingAncestors[0];
|
|
1239
|
-
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
1240
|
-
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
|
1241
|
-
accRect.top = max(rect.top, accRect.top);
|
|
1242
|
-
accRect.right = min(rect.right, accRect.right);
|
|
1243
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
1244
|
-
accRect.left = max(rect.left, accRect.left);
|
|
1245
|
-
return accRect;
|
|
1246
|
-
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
|
1247
|
-
return {
|
|
1248
|
-
width: clippingRect.right - clippingRect.left,
|
|
1249
|
-
height: clippingRect.bottom - clippingRect.top,
|
|
1250
|
-
x: clippingRect.left,
|
|
1251
|
-
y: clippingRect.top
|
|
1252
|
-
};
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
function getDimensions(element) {
|
|
1256
|
-
return getCssDimensions(element);
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
1260
|
-
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1261
|
-
const documentElement = getDocumentElement(offsetParent);
|
|
1262
|
-
const isFixed = strategy === 'fixed';
|
|
1263
|
-
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
|
1264
|
-
let scroll = {
|
|
1265
|
-
scrollLeft: 0,
|
|
1266
|
-
scrollTop: 0
|
|
1267
|
-
};
|
|
1268
|
-
const offsets = createCoords(0);
|
|
1269
|
-
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1270
|
-
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1271
|
-
scroll = getNodeScroll(offsetParent);
|
|
1272
|
-
}
|
|
1273
|
-
if (isOffsetParentAnElement) {
|
|
1274
|
-
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
1275
|
-
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1276
|
-
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1277
|
-
} else if (documentElement) {
|
|
1278
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
return {
|
|
1282
|
-
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
1283
|
-
y: rect.top + scroll.scrollTop - offsets.y,
|
|
1284
|
-
width: rect.width,
|
|
1285
|
-
height: rect.height
|
|
1286
|
-
};
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
function getTrueOffsetParent(element, polyfill) {
|
|
1290
|
-
if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
|
|
1291
|
-
return null;
|
|
1292
|
-
}
|
|
1293
|
-
if (polyfill) {
|
|
1294
|
-
return polyfill(element);
|
|
1295
|
-
}
|
|
1296
|
-
return element.offsetParent;
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1299
|
-
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
1300
|
-
// such as table ancestors and cross browser bugs.
|
|
1301
|
-
function getOffsetParent(element, polyfill) {
|
|
1302
|
-
const window = getWindow(element);
|
|
1303
|
-
if (!isHTMLElement(element)) {
|
|
1304
|
-
return window;
|
|
1305
|
-
}
|
|
1306
|
-
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
1307
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
|
|
1308
|
-
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
1309
|
-
}
|
|
1310
|
-
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
|
|
1311
|
-
return window;
|
|
1312
|
-
}
|
|
1313
|
-
return offsetParent || getContainingBlock(element) || window;
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
const getElementRects = async function (_ref) {
|
|
1317
|
-
let {
|
|
1318
|
-
reference,
|
|
1319
|
-
floating,
|
|
1320
|
-
strategy
|
|
1321
|
-
} = _ref;
|
|
1322
|
-
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
1323
|
-
const getDimensionsFn = this.getDimensions;
|
|
1324
|
-
return {
|
|
1325
|
-
reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),
|
|
1326
|
-
floating: {
|
|
1327
|
-
x: 0,
|
|
1328
|
-
y: 0,
|
|
1329
|
-
...(await getDimensionsFn(floating))
|
|
1330
|
-
}
|
|
1331
|
-
};
|
|
1332
|
-
};
|
|
1333
|
-
|
|
1334
|
-
function isRTL(element) {
|
|
1335
|
-
return getComputedStyle(element).direction === 'rtl';
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
const platform = {
|
|
1339
|
-
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
1340
|
-
getDocumentElement,
|
|
1341
|
-
getClippingRect,
|
|
1342
|
-
getOffsetParent,
|
|
1343
|
-
getElementRects,
|
|
1344
|
-
getClientRects,
|
|
1345
|
-
getDimensions,
|
|
1346
|
-
getScale,
|
|
1347
|
-
isElement,
|
|
1348
|
-
isRTL
|
|
1349
|
-
};
|
|
1350
|
-
|
|
1351
|
-
// https://samthor.au/2021/observing-dom/
|
|
1352
|
-
function observeMove(element, onMove) {
|
|
1353
|
-
let io = null;
|
|
1354
|
-
let timeoutId;
|
|
1355
|
-
const root = getDocumentElement(element);
|
|
1356
|
-
function cleanup() {
|
|
1357
|
-
clearTimeout(timeoutId);
|
|
1358
|
-
io && io.disconnect();
|
|
1359
|
-
io = null;
|
|
1360
|
-
}
|
|
1361
|
-
function refresh(skip, threshold) {
|
|
1362
|
-
if (skip === void 0) {
|
|
1363
|
-
skip = false;
|
|
1364
|
-
}
|
|
1365
|
-
if (threshold === void 0) {
|
|
1366
|
-
threshold = 1;
|
|
1367
|
-
}
|
|
1368
|
-
cleanup();
|
|
1369
|
-
const {
|
|
1370
|
-
left,
|
|
1371
|
-
top,
|
|
1372
|
-
width,
|
|
1373
|
-
height
|
|
1374
|
-
} = element.getBoundingClientRect();
|
|
1375
|
-
if (!skip) {
|
|
1376
|
-
onMove();
|
|
1377
|
-
}
|
|
1378
|
-
if (!width || !height) {
|
|
1379
|
-
return;
|
|
1380
|
-
}
|
|
1381
|
-
const insetTop = floor(top);
|
|
1382
|
-
const insetRight = floor(root.clientWidth - (left + width));
|
|
1383
|
-
const insetBottom = floor(root.clientHeight - (top + height));
|
|
1384
|
-
const insetLeft = floor(left);
|
|
1385
|
-
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
|
1386
|
-
const options = {
|
|
1387
|
-
rootMargin,
|
|
1388
|
-
threshold: max(0, min(1, threshold)) || 1
|
|
1389
|
-
};
|
|
1390
|
-
let isFirstUpdate = true;
|
|
1391
|
-
function handleObserve(entries) {
|
|
1392
|
-
const ratio = entries[0].intersectionRatio;
|
|
1393
|
-
if (ratio !== threshold) {
|
|
1394
|
-
if (!isFirstUpdate) {
|
|
1395
|
-
return refresh();
|
|
1396
|
-
}
|
|
1397
|
-
if (!ratio) {
|
|
1398
|
-
timeoutId = setTimeout(() => {
|
|
1399
|
-
refresh(false, 1e-7);
|
|
1400
|
-
}, 100);
|
|
1401
|
-
} else {
|
|
1402
|
-
refresh(false, ratio);
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1405
|
-
isFirstUpdate = false;
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
// Older browsers don't support a `document` as the root and will throw an
|
|
1409
|
-
// error.
|
|
1410
|
-
try {
|
|
1411
|
-
io = new IntersectionObserver(handleObserve, {
|
|
1412
|
-
...options,
|
|
1413
|
-
// Handle <iframe>s
|
|
1414
|
-
root: root.ownerDocument
|
|
1415
|
-
});
|
|
1416
|
-
} catch (e) {
|
|
1417
|
-
io = new IntersectionObserver(handleObserve, options);
|
|
1418
|
-
}
|
|
1419
|
-
io.observe(element);
|
|
1420
|
-
}
|
|
1421
|
-
refresh(true);
|
|
1422
|
-
return cleanup;
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
|
-
/**
|
|
1426
|
-
* Automatically updates the position of the floating element when necessary.
|
|
1427
|
-
* Should only be called when the floating element is mounted on the DOM or
|
|
1428
|
-
* visible on the screen.
|
|
1429
|
-
* @returns cleanup function that should be invoked when the floating element is
|
|
1430
|
-
* removed from the DOM or hidden from the screen.
|
|
1431
|
-
* @see https://floating-ui.com/docs/autoUpdate
|
|
1432
|
-
*/
|
|
1433
|
-
function autoUpdate(reference, floating, update, options) {
|
|
1434
|
-
if (options === void 0) {
|
|
1435
|
-
options = {};
|
|
1436
|
-
}
|
|
1437
|
-
const {
|
|
1438
|
-
ancestorScroll = true,
|
|
1439
|
-
ancestorResize = true,
|
|
1440
|
-
elementResize = typeof ResizeObserver === 'function',
|
|
1441
|
-
layoutShift = typeof IntersectionObserver === 'function',
|
|
1442
|
-
animationFrame = false
|
|
1443
|
-
} = options;
|
|
1444
|
-
const referenceEl = unwrapElement(reference);
|
|
1445
|
-
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
|
|
1446
|
-
ancestors.forEach(ancestor => {
|
|
1447
|
-
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
1448
|
-
passive: true
|
|
1449
|
-
});
|
|
1450
|
-
ancestorResize && ancestor.addEventListener('resize', update);
|
|
1451
|
-
});
|
|
1452
|
-
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
|
1453
|
-
let reobserveFrame = -1;
|
|
1454
|
-
let resizeObserver = null;
|
|
1455
|
-
if (elementResize) {
|
|
1456
|
-
resizeObserver = new ResizeObserver(_ref => {
|
|
1457
|
-
let [firstEntry] = _ref;
|
|
1458
|
-
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
|
1459
|
-
// Prevent update loops when using the `size` middleware.
|
|
1460
|
-
// https://github.com/floating-ui/floating-ui/issues/1740
|
|
1461
|
-
resizeObserver.unobserve(floating);
|
|
1462
|
-
cancelAnimationFrame(reobserveFrame);
|
|
1463
|
-
reobserveFrame = requestAnimationFrame(() => {
|
|
1464
|
-
resizeObserver && resizeObserver.observe(floating);
|
|
1465
|
-
});
|
|
1466
|
-
}
|
|
1467
|
-
update();
|
|
1468
|
-
});
|
|
1469
|
-
if (referenceEl && !animationFrame) {
|
|
1470
|
-
resizeObserver.observe(referenceEl);
|
|
1471
|
-
}
|
|
1472
|
-
resizeObserver.observe(floating);
|
|
1473
|
-
}
|
|
1474
|
-
let frameId;
|
|
1475
|
-
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
1476
|
-
if (animationFrame) {
|
|
1477
|
-
frameLoop();
|
|
1478
|
-
}
|
|
1479
|
-
function frameLoop() {
|
|
1480
|
-
const nextRefRect = getBoundingClientRect(reference);
|
|
1481
|
-
if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
|
|
1482
|
-
update();
|
|
1483
|
-
}
|
|
1484
|
-
prevRefRect = nextRefRect;
|
|
1485
|
-
frameId = requestAnimationFrame(frameLoop);
|
|
1486
|
-
}
|
|
1487
|
-
update();
|
|
1488
|
-
return () => {
|
|
1489
|
-
ancestors.forEach(ancestor => {
|
|
1490
|
-
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
1491
|
-
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
1492
|
-
});
|
|
1493
|
-
cleanupIo && cleanupIo();
|
|
1494
|
-
resizeObserver && resizeObserver.disconnect();
|
|
1495
|
-
resizeObserver = null;
|
|
1496
|
-
if (animationFrame) {
|
|
1497
|
-
cancelAnimationFrame(frameId);
|
|
1498
|
-
}
|
|
1499
|
-
};
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
/**
|
|
1503
|
-
* Computes the `x` and `y` coordinates that will place the floating element
|
|
1504
|
-
* next to a reference element when it is given a certain CSS positioning
|
|
1505
|
-
* strategy.
|
|
1506
|
-
*/
|
|
1507
|
-
const computePosition = (reference, floating, options) => {
|
|
1508
|
-
// This caches the expensive `getClippingElementAncestors` function so that
|
|
1509
|
-
// multiple lifecycle resets re-use the same result. It only lives for a
|
|
1510
|
-
// single call. If other functions become expensive, we can add them as well.
|
|
1511
|
-
const cache = new Map();
|
|
1512
|
-
const mergedOptions = {
|
|
1513
|
-
platform,
|
|
1514
|
-
...options
|
|
1515
|
-
};
|
|
1516
|
-
const platformWithCache = {
|
|
1517
|
-
...mergedOptions.platform,
|
|
1518
|
-
_c: cache
|
|
1519
|
-
};
|
|
1520
|
-
return computePosition$1(reference, floating, {
|
|
1521
|
-
...mergedOptions,
|
|
1522
|
-
platform: platformWithCache
|
|
1523
|
-
});
|
|
1524
|
-
};
|
|
1525
|
-
|
|
1526
|
-
export { autoUpdate as a, arrow as b, computePosition as c, flip as f, inline as i, offset as o, shift as s };
|
|
1527
|
-
|
|
1528
|
-
//# sourceMappingURL=floating-ui.dom.esm-6e7c098f.js.map
|