@nova-design-system/nova-webcomponents 3.24.0 → 3.26.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/dist/cjs/_commonjsHelpers-CFO10eej.js +0 -3
- package/dist/cjs/clsx-BtxeOLZW.js +0 -3
- package/dist/cjs/collapse.animation-CcG0GAWk.js +0 -3
- package/dist/cjs/constants-BugGJYqL.js +0 -3
- package/dist/cjs/dom.utils-8VY5SfMZ.js +177 -0
- package/dist/cjs/events.utils-BE6R5q9C.js +0 -3
- package/dist/cjs/fade.animation-BQSqXXOJ.js +0 -3
- package/dist/cjs/grow.animation-ynu_HmA_.js +0 -3
- package/dist/cjs/i18n.utils-BbKpUgYq.js +77 -0
- package/dist/cjs/index-BQjqJTJB.js +4832 -0
- package/dist/cjs/index.cjs.js +54 -3
- package/dist/cjs/index.esm-CG1TVKfu.js +0 -3
- package/dist/cjs/inputmask-DtXnpVWa.js +0 -3
- package/dist/cjs/loader.cjs.js +3 -5
- package/dist/cjs/native.cjs.js +32 -7
- package/dist/cjs/nv-accordion-item.cjs.entry.js +8 -8
- package/dist/cjs/nv-accordion.cjs.entry.js +10 -9
- package/dist/cjs/nv-alert.cjs.entry.js +6 -5
- package/dist/cjs/nv-avatar.cjs.entry.js +3 -4
- package/dist/cjs/nv-badge_2.cjs.entry.js +18 -12
- package/dist/cjs/nv-breadcrumb.cjs.entry.js +14 -12
- package/dist/cjs/nv-breadcrumbs.cjs.entry.js +4 -5
- package/dist/cjs/nv-button.cjs.entry.js +9 -6
- package/dist/cjs/nv-buttongroup.cjs.entry.js +12 -7
- package/dist/cjs/nv-calendar.cjs.entry.js +27 -20
- package/dist/cjs/nv-col.cjs.entry.js +3 -4
- package/dist/cjs/nv-datagrid.cjs.entry.js +47 -185
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js +1 -2
- package/dist/cjs/nv-dialog.cjs.entry.js +19 -21
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +11 -30
- package/dist/cjs/nv-drawer.cjs.entry.js +19 -20
- package/dist/cjs/nv-drawerfooter_2.cjs.entry.js +11 -30
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +10 -9
- package/dist/cjs/nv-fielddate.cjs.entry.js +15 -14
- package/dist/cjs/nv-fielddaterange.cjs.entry.js +15 -15
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +32 -30
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +5 -9
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +27 -23
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +10 -9
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +10 -9
- package/dist/cjs/nv-fieldradio.cjs.entry.js +9 -8
- package/dist/cjs/nv-fieldselect.cjs.entry.js +20 -13
- package/dist/cjs/nv-fieldslider.cjs.entry.js +33 -16
- package/dist/cjs/nv-fieldtext.cjs.entry.js +7 -8
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +42 -35
- package/dist/cjs/nv-fieldtime.cjs.entry.js +15 -10
- package/dist/cjs/nv-icon.cjs.entry.js +4 -5
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js +13 -10
- package/dist/cjs/nv-menu.cjs.entry.js +9 -14
- package/dist/cjs/nv-menuitem.cjs.entry.js +4 -6
- package/dist/cjs/nv-notification-bullet.cjs.entry.js +3 -4
- package/dist/cjs/nv-notification.cjs.entry.js +4 -5
- package/dist/cjs/nv-notificationcontainer.cjs.entry.js +4 -5
- package/dist/cjs/nv-paginationtable.cjs.entry.js +228 -0
- package/dist/cjs/nv-popover.cjs.entry.js +105 -34
- package/dist/cjs/nv-row.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebar.cjs.entry.js +10 -7
- package/dist/cjs/nv-sidebarcontent.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebardivider.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebarfooter.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebargroup.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebarheader.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebarlogo.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebarnavitem.cjs.entry.js +9 -8
- package/dist/cjs/nv-sidebarnavsubitem.cjs.entry.js +4 -5
- package/dist/cjs/nv-split.cjs.entry.js +10 -7
- package/dist/cjs/nv-stack.cjs.entry.js +4 -5
- package/dist/cjs/nv-table.cjs.entry.js +6 -5
- package/dist/cjs/nv-tableheader.cjs.entry.js +4 -5
- package/dist/cjs/nv-toggle.cjs.entry.js +8 -7
- package/dist/cjs/nv-togglebutton.cjs.entry.js +4 -6
- package/dist/cjs/nv-togglebuttongroup.cjs.entry.js +13 -10
- package/dist/cjs/nv-tooltip.cjs.entry.js +10 -10
- package/dist/cjs/slide.animation-Cb3tpLQv.js +0 -3
- package/dist/cjs/style-value-types.es-B1vLqX9m.js +0 -3
- package/dist/cjs/timeline.animation-KteJaZPb.js +0 -3
- package/dist/cjs/uri.utils-DiMLQx64.js +0 -3
- package/dist/cjs/v4-C1vaJ4yP.js +0 -3
- package/dist/cjs/{i18n.utils-ku0bScip.js → worker-client-ByL3TenE.js} +35 -78
- package/dist/collection/animations/collapse.animation.js +0 -1
- package/dist/collection/animations/fade.animation.js +0 -1
- package/dist/collection/animations/grow.animation.js +0 -1
- package/dist/collection/animations/index.js +0 -1
- package/dist/collection/animations/slide.animation.js +0 -1
- package/dist/collection/animations/timeline.animation.js +0 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/nv-accordion/nv-accordion.docs.js +0 -1
- package/dist/collection/components/nv-accordion/nv-accordion.js +1 -4
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.docs.js +0 -1
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.js +2 -4
- package/dist/collection/components/nv-alert/nv-alert.docs.js +0 -1
- package/dist/collection/components/nv-alert/nv-alert.js +4 -3
- package/dist/collection/components/nv-avatar/nv-avatar.docs.js +0 -1
- package/dist/collection/components/nv-avatar/nv-avatar.js +2 -2
- package/dist/collection/components/nv-badge/nv-badge.css +4 -1
- package/dist/collection/components/nv-badge/nv-badge.docs.js +0 -1
- package/dist/collection/components/nv-badge/nv-badge.js +3 -2
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.docs.js +0 -1
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.js +12 -10
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.css +0 -3
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.docs.js +0 -1
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.js +1 -2
- package/dist/collection/components/nv-button/nv-button.docs.js +0 -1
- package/dist/collection/components/nv-button/nv-button.js +6 -4
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.docs.js +0 -1
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.js +4 -3
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.utils.js +0 -1
- package/dist/collection/components/nv-buttongroup/styles/nv-buttongroup.css +4 -4
- package/dist/collection/components/nv-buttongroup/test/nv-buttongroup.utils.test.js +0 -1
- package/dist/collection/components/nv-calendar/nv-calendar.css +110 -1
- package/dist/collection/components/nv-calendar/nv-calendar.docs.js +0 -1
- package/dist/collection/components/nv-calendar/nv-calendar.js +9 -12
- package/dist/collection/components/nv-calendar/nv-calendar.utils.js +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-actions.js +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-grid.js +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-header.js +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-shortcuts.js +0 -1
- package/dist/collection/components/nv-calendar/partials/day-cell.js +0 -1
- package/dist/collection/components/nv-calendar/partials/index.js +0 -1
- package/dist/collection/components/nv-calendar/partials/week-numbers.js +0 -1
- package/dist/collection/components/nv-calendar/test/nv-calendar.utils.test.js +0 -2
- package/dist/collection/components/nv-calendar/test/partials/calendar-actions.logic.test.js +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-grid.logic.test.js +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-header.logic.test.js +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-shortcuts.logic.test.js +0 -1
- package/dist/collection/components/nv-calendar/test/partials/day-cell.logic.test.js +0 -1
- package/dist/collection/components/nv-calendar/test/partials/week-numbers.logic.test.js +0 -1
- package/dist/collection/components/nv-col/nv-col.docs.js +0 -1
- package/dist/collection/components/nv-col/nv-col.js +0 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js +0 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js +6 -5
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.docs.js +0 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js +0 -1
- package/dist/collection/components/nv-dialog/nv-dialog.docs.js +0 -7
- package/dist/collection/components/nv-dialog/nv-dialog.js +17 -45
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.docs.js +0 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js +8 -15
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.docs.js +0 -1
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.js +1 -13
- package/dist/collection/components/nv-drawer/nv-drawer.docs.js +0 -1
- package/dist/collection/components/nv-drawer/nv-drawer.js +13 -16
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.docs.js +0 -1
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.js +8 -15
- package/dist/collection/components/nv-drawerheader/nv-drawerheader.docs.js +0 -1
- package/dist/collection/components/nv-drawerheader/nv-drawerheader.js +1 -13
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.css +9 -0
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.docs.js +0 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js +6 -6
- package/dist/collection/components/nv-fielddate/nv-fielddate.docs.js +0 -1
- package/dist/collection/components/nv-fielddate/nv-fielddate.js +6 -9
- package/dist/collection/components/nv-fielddate/test/nv-fielddate.logic.test.js +0 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.docs.js +0 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js +6 -10
- package/dist/collection/components/nv-fielddaterange/test/nv-fielddaterange.logic.test.js +0 -2
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js +0 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +16 -13
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.docs.js +0 -1
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +3 -7
- package/dist/collection/components/nv-fielddropdownitem/styles/nv-fielddropdownitem.css +78 -8
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js +0 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +1 -3
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js +0 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +5 -6
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js +0 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +4 -5
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.docs.js +0 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +7 -7
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.docs.js +0 -1
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +5 -5
- package/dist/collection/components/nv-fieldradio/styles/nv-fieldradio.css +20 -0
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js +0 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +5 -6
- package/dist/collection/components/nv-fieldselect/styles/nv-fieldselect.css +90 -7
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.docs.js +0 -1
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.js +3 -4
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.utils.js +0 -1
- package/dist/collection/components/nv-fieldslider/partials/field-input.js +0 -1
- package/dist/collection/components/nv-fieldslider/partials/range-thumb.js +0 -1
- package/dist/collection/components/nv-fieldslider/partials/single-thumb.js +0 -1
- package/dist/collection/components/nv-fieldslider/partials/tick-marks.js +0 -1
- package/dist/collection/components/nv-fieldslider/test/nv-fieldslider.utils.test.js +0 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js +0 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +7 -7
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.docs.js +14 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +50 -30
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.docs.js +0 -1
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js +3 -5
- package/dist/collection/components/nv-fieldtime/utils/format-utils.js +0 -1
- package/dist/collection/components/nv-icon/nv-icon.docs.js +0 -1
- package/dist/collection/components/nv-icon/nv-icon.js +7 -5
- package/dist/collection/components/nv-icon/nv-icons.js +0 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.docs.js +0 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +11 -7
- package/dist/collection/components/nv-loader/nv-loader.docs.js +0 -1
- package/dist/collection/components/nv-loader/nv-loader.js +5 -4
- package/dist/collection/components/nv-menu/nv-menu.docs.js +0 -1
- package/dist/collection/components/nv-menu/nv-menu.js +14 -12
- package/dist/collection/components/nv-menuitem/nv-menuitem.docs.js +0 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +4 -5
- package/dist/collection/components/nv-notification/nv-notification.docs.js +0 -1
- package/dist/collection/components/nv-notification/nv-notification.js +5 -4
- package/dist/collection/components/nv-notification-bullet/nv-notification-bullet.docs.js +0 -1
- package/dist/collection/components/nv-notification-bullet/nv-notification-bullet.js +0 -1
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.docs.js +0 -1
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.js +3 -3
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.css +17 -0
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.docs.js +248 -0
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.js +537 -0
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.utils.js +64 -0
- package/dist/collection/components/nv-paginationtable/test/nv-paginationtable.utils.test.js +360 -0
- package/dist/collection/components/nv-popover/nv-popover.docs.js +0 -1
- package/dist/collection/components/nv-popover/nv-popover.js +19 -14
- package/dist/collection/components/nv-row/nv-row.docs.js +0 -1
- package/dist/collection/components/nv-row/nv-row.js +1 -2
- package/dist/collection/components/nv-sidebar/nv-sidebar.docs.js +0 -1
- package/dist/collection/components/nv-sidebar/nv-sidebar.js +1 -2
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.docs.js +0 -1
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.js +1 -2
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.docs.js +0 -1
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.js +1 -2
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.docs.js +0 -1
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.js +1 -2
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.docs.js +0 -1
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.js +1 -2
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.docs.js +0 -1
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.js +1 -2
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.docs.js +0 -1
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.js +1 -2
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.docs.js +0 -1
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.js +6 -6
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.docs.js +0 -1
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.js +1 -2
- package/dist/collection/components/nv-split/nv-split.docs.js +0 -1
- package/dist/collection/components/nv-split/nv-split.js +1 -2
- package/dist/collection/components/nv-stack/nv-stack.docs.js +0 -1
- package/dist/collection/components/nv-stack/nv-stack.js +1 -2
- package/dist/collection/components/nv-table/nv-table.docs.js +0 -1
- package/dist/collection/components/nv-table/nv-table.js +1 -3
- package/dist/collection/components/nv-table/nv-table.utils.js +2 -1
- package/dist/collection/components/nv-table/test/nv-table.utils.test.js +0 -2
- package/dist/collection/components/nv-tableheader/nv-tableheader.docs.js +0 -1
- package/dist/collection/components/nv-tableheader/nv-tableheader.js +1 -2
- package/dist/collection/components/nv-toggle/nv-toggle.css +26 -0
- package/dist/collection/components/nv-toggle/nv-toggle.docs.js +0 -1
- package/dist/collection/components/nv-toggle/nv-toggle.js +4 -4
- package/dist/collection/components/nv-togglebutton/nv-togglebutton.docs.js +0 -1
- package/dist/collection/components/nv-togglebutton/nv-togglebutton.js +5 -5
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.docs.js +0 -1
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.js +5 -6
- package/dist/collection/components/nv-tooltip/nv-tooltip.css +7 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.docs.js +0 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +20 -13
- package/dist/collection/index.js +2 -1
- package/dist/collection/interfaces/Column.js +0 -1
- package/dist/collection/interfaces/ColumnConfig.js +0 -1
- package/dist/collection/interfaces/localization.js +0 -1
- package/dist/collection/templates/navigation.docs.js +0 -1
- package/dist/collection/utils/class.utils.js +0 -1
- package/dist/collection/utils/constants.js +0 -1
- package/dist/collection/utils/dom.utils.js +8 -1
- package/dist/collection/utils/events.utils.js +0 -1
- package/dist/collection/utils/i18n.utils.js +0 -1
- package/dist/collection/utils/input.utils.js +0 -1
- package/dist/collection/utils/search-engine/engine.js +0 -1
- package/dist/collection/utils/search-engine/guards.js +0 -1
- package/dist/collection/utils/search-engine/index.js +0 -1
- package/dist/collection/utils/search-engine/indexer.js +0 -1
- package/dist/collection/utils/search-engine/normalize.js +0 -1
- package/dist/collection/utils/search-engine/strategies/fuzzy.js +0 -1
- package/dist/collection/utils/search-engine/strategies/smart.js +0 -1
- package/dist/collection/utils/search-engine/strategies/strict.js +0 -1
- package/dist/collection/utils/search-engine/test/engine.test.js +0 -1
- package/dist/collection/utils/search-engine/test/guards.test.js +0 -1
- package/dist/collection/utils/search-engine/test/indexer.test.js +0 -1
- package/dist/collection/utils/search-engine/test/normalize.test.js +0 -1
- package/dist/collection/utils/search-engine/test/strategies.test.js +0 -1
- package/dist/collection/utils/search-engine/types.js +0 -1
- package/dist/collection/utils/search-engine/worker/index.js +0 -1
- package/dist/collection/utils/search-engine/worker/search.worker.js +0 -1
- package/dist/collection/utils/search-engine/worker/worker-client.js +0 -1
- package/dist/collection/utils/string.utils.js +0 -1
- package/dist/collection/utils/test/class.utils.test.js +0 -2
- package/dist/collection/utils/test/dom.utils.test.js +24 -3
- package/dist/collection/utils/test/i18n.utils.test.js +0 -1
- package/dist/collection/utils/test/input.utils.test.js +0 -1
- package/dist/collection/utils/test/uri.utils.test.js +0 -1
- package/dist/collection/utils/uri.utils.js +0 -1
- package/dist/components/_.entry.js +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -583
- package/dist/components/nv-accordion-item.js +1 -9
- package/dist/components/nv-accordion.js +1 -229
- package/dist/components/nv-alert.js +1 -211
- package/dist/components/nv-avatar.js +1 -105
- package/dist/components/nv-badge.js +1 -9
- package/dist/components/nv-breadcrumb.js +1 -80
- package/dist/components/nv-breadcrumbs.js +1 -39
- package/dist/components/nv-button.js +1 -9
- package/dist/components/nv-buttongroup.js +1 -223
- package/dist/components/nv-calendar.js +1 -9
- package/dist/components/nv-col.js +1 -58
- package/dist/components/nv-datagrid.js +1 -4580
- package/dist/components/nv-datagridcolumn.js +1 -47
- package/dist/components/nv-dialog.js +1 -362
- package/dist/components/nv-dialogfooter.js +1 -9
- package/dist/components/nv-dialogheader.js +1 -9
- package/dist/components/nv-drawer.js +1 -507
- package/dist/components/nv-drawerfooter.js +1 -9
- package/dist/components/nv-drawerheader.js +1 -9
- package/dist/components/nv-fieldcheckbox.js +1 -9
- package/dist/components/nv-fielddate.js +1 -507
- package/dist/components/nv-fielddaterange.js +1 -670
- package/dist/components/nv-fielddropdown.js +1 -768
- package/dist/components/nv-fielddropdownitem.js +1 -9
- package/dist/components/nv-fielddropdownitemcheck.js +1 -9
- package/dist/components/nv-fieldmultiselect.js +1 -1587
- package/dist/components/nv-fieldnumber.js +1 -9
- package/dist/components/nv-fieldpassword.js +1 -227
- package/dist/components/nv-fieldradio.js +1 -137
- package/dist/components/nv-fieldselect.js +1 -460
- package/dist/components/nv-fieldslider.js +1 -801
- package/dist/components/nv-fieldtext.js +1 -9
- package/dist/components/nv-fieldtextarea.js +1 -282
- package/dist/components/nv-fieldtime.js +1 -1189
- package/dist/components/nv-icon.js +1 -9
- package/dist/components/nv-iconbutton.js +1 -9
- package/dist/components/nv-loader.js +1 -9
- package/dist/components/nv-menu.js +1 -254
- package/dist/components/nv-menuitem.js +1 -9
- package/dist/components/nv-notification-bullet.js +1 -9
- package/dist/components/nv-notification.js +1 -212
- package/dist/components/nv-notificationcontainer.js +1 -61
- package/dist/components/nv-paginationtable.d.ts +11 -0
- package/dist/components/nv-paginationtable.js +1 -0
- package/dist/components/nv-popover.js +1 -9
- package/dist/components/nv-row.js +1 -40
- package/dist/components/nv-sidebar.js +1 -210
- package/dist/components/nv-sidebarcontent.js +1 -40
- package/dist/components/nv-sidebardivider.js +1 -40
- package/dist/components/nv-sidebarfooter.js +1 -40
- package/dist/components/nv-sidebargroup.js +1 -43
- package/dist/components/nv-sidebarheader.js +1 -40
- package/dist/components/nv-sidebarlogo.js +1 -54
- package/dist/components/nv-sidebarnavitem.js +1 -336
- package/dist/components/nv-sidebarnavsubitem.js +1 -55
- package/dist/components/nv-split.js +1 -370
- package/dist/components/nv-stack.js +1 -55
- package/dist/components/nv-table.js +1 -261
- package/dist/components/nv-tableheader.js +1 -114
- package/dist/components/nv-toggle.js +1 -111
- package/dist/components/nv-togglebutton.js +1 -91
- package/dist/components/nv-togglebuttongroup.js +1 -200
- package/dist/components/nv-tooltip.js +1 -9
- package/dist/components/p-9xYwU7ku.js +1 -724
- package/dist/components/p-B5KLppep.js +1 -0
- package/dist/components/p-B6GgGra-.js +1 -29
- package/dist/components/p-BAlaMmS4.js +1 -0
- package/dist/components/p-BPufjY85.js +1 -0
- package/dist/components/p-BReL3Lsa.js +1 -286
- package/dist/components/p-BaF3Tuua.js +1 -0
- package/dist/components/p-BdYh22OP.js +1 -57
- package/dist/components/p-BfaMgLx7.js +9 -0
- package/dist/components/p-Bh6WGsHA.js +1 -0
- package/dist/components/p-C2J7j_fw.js +1 -0
- package/dist/components/p-C9p4yTS2.js +1 -0
- package/dist/components/p-CAKTe96z.js +1 -0
- package/dist/components/p-CEI7jWvn.js +1 -0
- package/dist/components/p-CR9MpYzU.js +1 -0
- package/dist/components/p-CZcMM7Lh.js +1 -0
- package/dist/components/p-Ce1IBFTa.js +1 -0
- package/dist/components/p-CgHCo_Ho.js +1 -42
- package/dist/components/p-ChV9xqsO.js +1 -6
- package/dist/components/p-CnI0auJM.js +1 -24
- package/dist/components/p-CuXVGECR.js +1 -0
- package/dist/components/p-D02w_Ru6.js +1 -91
- package/dist/components/p-D15RdWEG.js +1 -0
- package/dist/components/p-D1C_pu0E.js +1 -218
- package/dist/components/p-D2otK4Ce.js +1 -91
- package/dist/components/p-D3eWMME9.js +1 -534
- package/dist/components/p-DDqZBSGn.js +1 -0
- package/dist/components/p-DHNSuxz-.js +1 -0
- package/dist/components/p-DhDxhFz-.js +1 -0
- package/dist/components/p-DqU-wS_x.js +1 -0
- package/dist/components/p-Dz1GUhVy.js +15 -1119
- package/dist/components/p-FSPz8FER.js +1 -0
- package/dist/components/p-RUeDcouW.js +1 -0
- package/dist/components/p-iXsbKJzR.js +2 -0
- package/dist/components/p-jZF_Ggmx.js +1 -0
- package/dist/components/p-laRga5dw.js +1 -0
- package/dist/components/p-nmQOuX7R.js +1 -0
- package/dist/components/p-yHGZRC6Q.js +1 -0
- package/dist/esm/_commonjsHelpers-B85MJLTf.js +0 -3
- package/dist/esm/clsx-ChV9xqsO.js +0 -3
- package/dist/esm/collapse.animation-DZDm0vSK.js +0 -3
- package/dist/esm/constants-BReL3Lsa.js +0 -3
- package/dist/esm/dom.utils-CuXVGECR.js +173 -0
- package/dist/esm/events.utils-B6GgGra-.js +0 -3
- package/dist/esm/fade.animation-DcRL9lcm.js +0 -3
- package/dist/esm/grow.animation-D7ep_aVl.js +0 -3
- package/dist/esm/i18n.utils-CR9MpYzU.js +74 -0
- package/dist/esm/index-S-IZ4AN_.js +4796 -0
- package/dist/esm/index.esm-D3eWMME9.js +0 -3
- package/dist/esm/index.js +53 -3
- package/dist/esm/inputmask-CSo292ul.js +0 -3
- package/dist/esm/loader.js +3 -5
- package/dist/esm/native.js +32 -7
- package/dist/esm/nv-accordion-item.entry.js +8 -8
- package/dist/esm/nv-accordion.entry.js +10 -9
- package/dist/esm/nv-alert.entry.js +6 -5
- package/dist/esm/nv-avatar.entry.js +3 -4
- package/dist/esm/nv-badge_2.entry.js +18 -12
- package/dist/esm/nv-breadcrumb.entry.js +14 -12
- package/dist/esm/nv-breadcrumbs.entry.js +4 -5
- package/dist/esm/nv-button.entry.js +9 -6
- package/dist/esm/nv-buttongroup.entry.js +12 -7
- package/dist/esm/nv-calendar.entry.js +27 -20
- package/dist/esm/nv-col.entry.js +3 -4
- package/dist/esm/nv-datagrid.entry.js +42 -180
- package/dist/esm/nv-datagridcolumn.entry.js +1 -2
- package/dist/esm/nv-dialog.entry.js +19 -21
- package/dist/esm/nv-dialogfooter_2.entry.js +11 -30
- package/dist/esm/nv-drawer.entry.js +19 -20
- package/dist/esm/nv-drawerfooter_2.entry.js +11 -30
- package/dist/esm/nv-fieldcheckbox.entry.js +10 -9
- package/dist/esm/nv-fielddate.entry.js +15 -14
- package/dist/esm/nv-fielddaterange.entry.js +15 -15
- package/dist/esm/nv-fielddropdown.entry.js +19 -17
- package/dist/esm/nv-fielddropdownitem.entry.js +5 -9
- package/dist/esm/nv-fieldmultiselect.entry.js +14 -10
- package/dist/esm/nv-fieldnumber.entry.js +10 -9
- package/dist/esm/nv-fieldpassword.entry.js +10 -9
- package/dist/esm/nv-fieldradio.entry.js +9 -8
- package/dist/esm/nv-fieldselect.entry.js +20 -13
- package/dist/esm/nv-fieldslider.entry.js +33 -16
- package/dist/esm/nv-fieldtext.entry.js +7 -8
- package/dist/esm/nv-fieldtextarea.entry.js +42 -35
- package/dist/esm/nv-fieldtime.entry.js +15 -10
- package/dist/esm/nv-icon.entry.js +4 -5
- package/dist/esm/nv-iconbutton_2.entry.js +13 -10
- package/dist/esm/nv-menu.entry.js +9 -14
- package/dist/esm/nv-menuitem.entry.js +4 -6
- package/dist/esm/nv-notification-bullet.entry.js +3 -4
- package/dist/esm/nv-notification.entry.js +4 -5
- package/dist/esm/nv-notificationcontainer.entry.js +4 -5
- package/dist/esm/nv-paginationtable.entry.js +226 -0
- package/dist/esm/nv-popover.entry.js +105 -34
- package/dist/esm/nv-row.entry.js +4 -5
- package/dist/esm/nv-sidebar.entry.js +10 -7
- package/dist/esm/nv-sidebarcontent.entry.js +4 -5
- package/dist/esm/nv-sidebardivider.entry.js +4 -5
- package/dist/esm/nv-sidebarfooter.entry.js +4 -5
- package/dist/esm/nv-sidebargroup.entry.js +4 -5
- package/dist/esm/nv-sidebarheader.entry.js +4 -5
- package/dist/esm/nv-sidebarlogo.entry.js +4 -5
- package/dist/esm/nv-sidebarnavitem.entry.js +9 -8
- package/dist/esm/nv-sidebarnavsubitem.entry.js +4 -5
- package/dist/esm/nv-split.entry.js +10 -7
- package/dist/esm/nv-stack.entry.js +4 -5
- package/dist/esm/nv-table.entry.js +6 -5
- package/dist/esm/nv-tableheader.entry.js +4 -5
- package/dist/esm/nv-toggle.entry.js +8 -7
- package/dist/esm/nv-togglebutton.entry.js +4 -6
- package/dist/esm/nv-togglebuttongroup.entry.js +13 -10
- package/dist/esm/nv-tooltip.entry.js +10 -10
- package/dist/esm/slide.animation-CmH5d1of.js +0 -3
- package/dist/esm/style-value-types.es-xlgmw4x8.js +0 -3
- package/dist/esm/timeline.animation-CgHCo_Ho.js +0 -3
- package/dist/esm/uri.utils-CnI0auJM.js +0 -3
- package/dist/esm/v4-BdYh22OP.js +0 -3
- package/dist/{components/p-IlwlcG9l.js → esm/worker-client-BaF3Tuua.js} +20 -77
- package/dist/lib/generators/angular-output.js +0 -1
- package/dist/lib/generators/docs-blazor.js +0 -1
- package/dist/lib/generators/vue-output.js +0 -1
- package/dist/lib/scripts/nextjs-entry-shim.js +25 -0
- package/dist/lib/utils/componentBinding.js +0 -1
- package/dist/lib/utils/parseToCSharpTypes.js +0 -1
- package/dist/lib/utils/spread.js +0 -1
- package/dist/lib/utils/test/parseToCSharpTypes.test.js +0 -1
- package/dist/native/index.esm.js +1 -2
- package/dist/native/native.css +1 -1
- package/dist/native/native.esm.js +1 -2
- package/dist/native/p-043d500e.entry.js +1 -0
- package/dist/native/p-04956305.entry.js +1 -0
- package/dist/native/p-06a17aba.entry.js +1 -0
- package/dist/native/p-0819a7b1.entry.js +1 -0
- package/dist/native/p-0bfd188c.entry.js +1 -0
- package/dist/native/p-0e8b544b.entry.js +1 -0
- package/dist/native/p-0ec34d19.entry.js +1 -0
- package/dist/native/p-11eb959b.entry.js +1 -0
- package/dist/native/p-13YSIyGW.js +1 -2
- package/dist/native/p-17f2525a.entry.js +1 -0
- package/dist/native/p-1a5db5e9.entry.js +1 -0
- package/dist/native/p-1bf1a213.entry.js +1 -0
- package/dist/native/p-1dd3da3b.entry.js +1 -0
- package/dist/native/p-2106dfbd.entry.js +1 -0
- package/dist/native/p-31301f1e.entry.js +1 -0
- package/dist/native/p-3a04a563.entry.js +1 -0
- package/dist/native/p-3fb1a188.entry.js +1 -0
- package/dist/native/p-48e7b457.entry.js +1 -0
- package/dist/native/p-5cbf5973.entry.js +1 -0
- package/dist/native/p-64104dbd.entry.js +1 -0
- package/dist/native/p-6a9363a6.entry.js +1 -0
- package/dist/native/p-6b655545.entry.js +1 -0
- package/dist/native/p-702a6646.entry.js +1 -0
- package/dist/native/p-70abbe4f.entry.js +1 -0
- package/dist/native/p-79d8c26b.entry.js +1 -0
- package/dist/native/p-7a8e2ef3.entry.js +1 -0
- package/dist/native/p-7c413f8b.entry.js +1 -0
- package/dist/native/p-85c8be32.entry.js +1 -0
- package/dist/native/p-87a1b06c.entry.js +1 -0
- package/dist/native/p-89f7d483.entry.js +1 -0
- package/dist/native/p-8ce17efd.entry.js +1 -0
- package/dist/native/p-8dadc0c9.entry.js +1 -0
- package/dist/native/p-945ca1db.entry.js +1 -0
- package/dist/native/p-97a5f8d5.entry.js +1 -0
- package/dist/native/p-98ea927d.entry.js +1 -0
- package/dist/native/p-B6GgGra-.js +1 -2
- package/dist/native/p-B85MJLTf.js +1 -2
- package/dist/native/p-BReL3Lsa.js +1 -2
- package/dist/native/p-BaF3Tuua.js +1 -0
- package/dist/native/p-BdYh22OP.js +1 -2
- package/dist/native/p-Blc6XEY7.js +1 -2
- package/dist/native/p-CR9MpYzU.js +1 -0
- package/dist/native/p-CgHCo_Ho.js +1 -2
- package/dist/native/p-ChV9xqsO.js +1 -2
- package/dist/native/p-CnI0auJM.js +1 -2
- package/dist/native/p-CuXVGECR.js +1 -0
- package/dist/native/p-D3eWMME9.js +1 -2
- package/dist/native/p-DmUOtOcY.js +1 -2
- package/dist/native/p-Hfc8Oh0x.js +3 -4
- package/dist/native/p-S-IZ4AN_.js +2 -0
- package/dist/native/p-a8bc3b92.entry.js +1 -0
- package/dist/native/p-a92e2ad8.entry.js +1 -0
- package/dist/native/p-a9a07a8d.entry.js +1 -0
- package/dist/native/p-a9a20f37.entry.js +1 -0
- package/dist/native/p-aa232a20.entry.js +1 -0
- package/dist/native/p-ae4fc02a.entry.js +1 -0
- package/dist/native/p-b0d97496.entry.js +1 -0
- package/dist/native/p-bd143e7b.entry.js +1 -0
- package/dist/native/p-bdaab534.entry.js +1 -0
- package/dist/native/p-bdbc92d9.entry.js +1 -0
- package/dist/native/p-bef3d325.entry.js +1 -0
- package/dist/native/p-c3ea1eca.entry.js +1 -0
- package/dist/native/p-c825c542.entry.js +1 -0
- package/dist/native/p-ce2c17dc.entry.js +1 -0
- package/dist/native/p-d46ea49a.entry.js +1 -0
- package/dist/native/p-dc0d1690.entry.js +1 -0
- package/dist/native/p-e05b6008.entry.js +1 -0
- package/dist/native/p-e1021e2c.entry.js +1 -0
- package/dist/native/p-e937d495.entry.js +1 -0
- package/dist/native/p-f22d2ad9.entry.js +1 -0
- package/dist/native/p-f2a32774.entry.js +1 -0
- package/dist/native/p-f5eff2b2.entry.js +1 -0
- package/dist/native/p-f64f1bea.entry.js +1 -0
- package/dist/native/p-fba55e2f.entry.js +1 -0
- package/dist/native/p-sqVK8yoD.js +1 -2
- package/dist/native/p-xlgmw4x8.js +2 -3
- package/dist/types/components/nv-breadcrumb/nv-breadcrumb.d.ts +4 -2
- package/dist/types/components/nv-dialog/nv-dialog.d.ts +4 -9
- package/dist/types/components/nv-dialogfooter/nv-dialogfooter.d.ts +3 -4
- package/dist/types/components/nv-dialogheader/nv-dialogheader.d.ts +0 -3
- package/dist/types/components/nv-drawer/nv-drawer.d.ts +3 -3
- package/dist/types/components/nv-drawerfooter/nv-drawerfooter.d.ts +3 -4
- package/dist/types/components/nv-drawerheader/nv-drawerheader.d.ts +0 -3
- package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +4 -0
- package/dist/types/components/nv-fielddropdownitem/nv-fielddropdownitem.d.ts +2 -3
- package/dist/types/components/nv-fieldtextarea/nv-fieldtextarea.d.ts +9 -1
- package/dist/types/components/nv-menu/nv-menu.d.ts +5 -1
- package/dist/types/components/nv-paginationtable/nv-paginationtable.d.ts +112 -0
- package/dist/types/components/nv-paginationtable/nv-paginationtable.docs.d.ts +4 -0
- package/dist/types/components/nv-paginationtable/nv-paginationtable.utils.d.ts +61 -0
- package/dist/types/components/nv-paginationtable/test/nv-paginationtable.utils.test.d.ts +1 -0
- package/dist/types/components/nv-popover/nv-popover.d.ts +2 -3
- package/dist/types/components/nv-tooltip/nv-tooltip.d.ts +4 -2
- package/dist/types/components.d.ts +182 -5
- package/dist/types/index.d.ts +1 -0
- package/dist/types/nova-docs.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +87 -4
- package/dist/types/utils/dom.utils.d.ts +6 -0
- package/dist/types/utils/events.utils.d.ts +2 -2
- package/dist/vscode-data.json +641 -588
- package/hydrate/index.d.ts +12 -0
- package/hydrate/index.js +6999 -1257
- package/hydrate/index.mjs +6998 -1258
- package/package.json +11 -9
- package/dist/cjs/_commonjsHelpers-CFO10eej.js.map +0 -1
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/clsx-BtxeOLZW.js.map +0 -1
- package/dist/cjs/collapse.animation-CcG0GAWk.js.map +0 -1
- package/dist/cjs/constants-BugGJYqL.js.map +0 -1
- package/dist/cjs/events.utils-BE6R5q9C.js.map +0 -1
- package/dist/cjs/fade.animation-BQSqXXOJ.js.map +0 -1
- package/dist/cjs/grow.animation-ynu_HmA_.js.map +0 -1
- package/dist/cjs/i18n.utils-ku0bScip.js.map +0 -1
- package/dist/cjs/index-B1na8x6M.js +0 -2841
- package/dist/cjs/index-B1na8x6M.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/index.esm-CG1TVKfu.js.map +0 -1
- package/dist/cjs/inputmask-DtXnpVWa.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/native.cjs.js.map +0 -1
- package/dist/cjs/nv-accordion-item.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-accordion.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-alert.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-avatar.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-badge.nv-fielddropdownitemcheck.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-breadcrumb.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-breadcrumbs.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-button.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-buttongroup.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-calendar.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-col.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-datagrid.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-datagridcolumn.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-dialog.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-dialogfooter.nv-dialogheader.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-drawer.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-drawerfooter.nv-drawerheader.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldcheckbox.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fielddate.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fielddaterange.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fielddropdown.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fielddropdownitem.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldmultiselect.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldnumber.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldpassword.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldradio.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldselect.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldslider.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldtext.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldtextarea.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldtime.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-icon.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-iconbutton.nv-loader.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-menu.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-menuitem.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-notification-bullet.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-notification.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-notificationcontainer.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-popover.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-row.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebar.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarcontent.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebardivider.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarfooter.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebargroup.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarheader.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarlogo.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarnavitem.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarnavsubitem.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-split.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-stack.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-table.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-tableheader.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-toggle.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-togglebutton.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-togglebuttongroup.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-tooltip.entry.cjs.js.map +0 -1
- package/dist/cjs/slide.animation-Cb3tpLQv.js.map +0 -1
- package/dist/cjs/style-value-types.es-B1vLqX9m.js.map +0 -1
- package/dist/cjs/timeline.animation-KteJaZPb.js.map +0 -1
- package/dist/cjs/uri.utils-DiMLQx64.js.map +0 -1
- package/dist/cjs/v4-C1vaJ4yP.js.map +0 -1
- package/dist/collection/animations/collapse.animation.js.map +0 -1
- package/dist/collection/animations/fade.animation.js.map +0 -1
- package/dist/collection/animations/grow.animation.js.map +0 -1
- package/dist/collection/animations/index.js.map +0 -1
- package/dist/collection/animations/slide.animation.js.map +0 -1
- package/dist/collection/animations/timeline.animation.js.map +0 -1
- package/dist/collection/components/nv-accordion/nv-accordion.docs.js.map +0 -1
- package/dist/collection/components/nv-accordion/nv-accordion.js.map +0 -1
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.docs.js.map +0 -1
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.js.map +0 -1
- package/dist/collection/components/nv-alert/nv-alert.docs.js.map +0 -1
- package/dist/collection/components/nv-alert/nv-alert.js.map +0 -1
- package/dist/collection/components/nv-avatar/nv-avatar.docs.js.map +0 -1
- package/dist/collection/components/nv-avatar/nv-avatar.js.map +0 -1
- package/dist/collection/components/nv-badge/nv-badge.docs.js.map +0 -1
- package/dist/collection/components/nv-badge/nv-badge.js.map +0 -1
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.docs.js.map +0 -1
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.js.map +0 -1
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.docs.js.map +0 -1
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.js.map +0 -1
- package/dist/collection/components/nv-button/nv-button.docs.js.map +0 -1
- package/dist/collection/components/nv-button/nv-button.js.map +0 -1
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.docs.js.map +0 -1
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.js.map +0 -1
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.utils.js.map +0 -1
- package/dist/collection/components/nv-buttongroup/test/nv-buttongroup.utils.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/nv-calendar.docs.js.map +0 -1
- package/dist/collection/components/nv-calendar/nv-calendar.js.map +0 -1
- package/dist/collection/components/nv-calendar/nv-calendar.utils.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-actions.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-grid.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-header.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-shortcuts.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/day-cell.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/index.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/week-numbers.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/nv-calendar.utils.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-actions.logic.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-grid.logic.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-header.logic.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-shortcuts.logic.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/day-cell.logic.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/week-numbers.logic.test.js.map +0 -1
- package/dist/collection/components/nv-col/nv-col.docs.js.map +0 -1
- package/dist/collection/components/nv-col/nv-col.js.map +0 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js.map +0 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js.map +0 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.docs.js.map +0 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js.map +0 -1
- package/dist/collection/components/nv-dialog/nv-dialog.docs.js.map +0 -1
- package/dist/collection/components/nv-dialog/nv-dialog.js.map +0 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.docs.js.map +0 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js.map +0 -1
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.docs.js.map +0 -1
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.js.map +0 -1
- package/dist/collection/components/nv-drawer/nv-drawer.docs.js.map +0 -1
- package/dist/collection/components/nv-drawer/nv-drawer.js.map +0 -1
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.docs.js.map +0 -1
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.js.map +0 -1
- package/dist/collection/components/nv-drawerheader/nv-drawerheader.docs.js.map +0 -1
- package/dist/collection/components/nv-drawerheader/nv-drawerheader.js.map +0 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js.map +0 -1
- package/dist/collection/components/nv-fielddate/nv-fielddate.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddate/nv-fielddate.js.map +0 -1
- package/dist/collection/components/nv-fielddate/test/nv-fielddate.logic.test.js.map +0 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js.map +0 -1
- package/dist/collection/components/nv-fielddaterange/test/nv-fielddaterange.logic.test.js.map +0 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js.map +0 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js.map +0 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js.map +0 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js.map +0 -1
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js.map +0 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.utils.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/partials/field-input.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/partials/range-thumb.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/partials/single-thumb.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/partials/tick-marks.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/test/nv-fieldslider.utils.test.js.map +0 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js.map +0 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js.map +0 -1
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js.map +0 -1
- package/dist/collection/components/nv-fieldtime/utils/format-utils.js.map +0 -1
- package/dist/collection/components/nv-icon/nv-icon.docs.js.map +0 -1
- package/dist/collection/components/nv-icon/nv-icon.js.map +0 -1
- package/dist/collection/components/nv-icon/nv-icons.js.map +0 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.docs.js.map +0 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js.map +0 -1
- package/dist/collection/components/nv-loader/nv-loader.docs.js.map +0 -1
- package/dist/collection/components/nv-loader/nv-loader.js.map +0 -1
- package/dist/collection/components/nv-menu/nv-menu.docs.js.map +0 -1
- package/dist/collection/components/nv-menu/nv-menu.js.map +0 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.docs.js.map +0 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js.map +0 -1
- package/dist/collection/components/nv-notification/nv-notification.docs.js.map +0 -1
- package/dist/collection/components/nv-notification/nv-notification.js.map +0 -1
- package/dist/collection/components/nv-notification-bullet/nv-notification-bullet.docs.js.map +0 -1
- package/dist/collection/components/nv-notification-bullet/nv-notification-bullet.js.map +0 -1
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.docs.js.map +0 -1
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.js.map +0 -1
- package/dist/collection/components/nv-popover/nv-popover.docs.js.map +0 -1
- package/dist/collection/components/nv-popover/nv-popover.js.map +0 -1
- package/dist/collection/components/nv-row/nv-row.docs.js.map +0 -1
- package/dist/collection/components/nv-row/nv-row.js.map +0 -1
- package/dist/collection/components/nv-sidebar/nv-sidebar.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebar/nv-sidebar.js.map +0 -1
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.js.map +0 -1
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.js.map +0 -1
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.js.map +0 -1
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.js.map +0 -1
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.js.map +0 -1
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.js.map +0 -1
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.js.map +0 -1
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.js.map +0 -1
- package/dist/collection/components/nv-split/nv-split.docs.js.map +0 -1
- package/dist/collection/components/nv-split/nv-split.js.map +0 -1
- package/dist/collection/components/nv-stack/nv-stack.docs.js.map +0 -1
- package/dist/collection/components/nv-stack/nv-stack.js.map +0 -1
- package/dist/collection/components/nv-table/nv-table.docs.js.map +0 -1
- package/dist/collection/components/nv-table/nv-table.js.map +0 -1
- package/dist/collection/components/nv-table/nv-table.utils.js.map +0 -1
- package/dist/collection/components/nv-table/test/nv-table.utils.test.js.map +0 -1
- package/dist/collection/components/nv-tableheader/nv-tableheader.docs.js.map +0 -1
- package/dist/collection/components/nv-tableheader/nv-tableheader.js.map +0 -1
- package/dist/collection/components/nv-toggle/nv-toggle.docs.js.map +0 -1
- package/dist/collection/components/nv-toggle/nv-toggle.js.map +0 -1
- package/dist/collection/components/nv-togglebutton/nv-togglebutton.docs.js.map +0 -1
- package/dist/collection/components/nv-togglebutton/nv-togglebutton.js.map +0 -1
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.docs.js.map +0 -1
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.js.map +0 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.docs.js.map +0 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/interfaces/Column.js.map +0 -1
- package/dist/collection/interfaces/ColumnConfig.js.map +0 -1
- package/dist/collection/interfaces/localization.js.map +0 -1
- package/dist/collection/templates/navigation.docs.js.map +0 -1
- package/dist/collection/utils/class.utils.js.map +0 -1
- package/dist/collection/utils/constants.js.map +0 -1
- package/dist/collection/utils/dom.utils.js.map +0 -1
- package/dist/collection/utils/events.utils.js.map +0 -1
- package/dist/collection/utils/i18n.utils.js.map +0 -1
- package/dist/collection/utils/input.utils.js.map +0 -1
- package/dist/collection/utils/search-engine/engine.js.map +0 -1
- package/dist/collection/utils/search-engine/guards.js.map +0 -1
- package/dist/collection/utils/search-engine/index.js.map +0 -1
- package/dist/collection/utils/search-engine/indexer.js.map +0 -1
- package/dist/collection/utils/search-engine/normalize.js.map +0 -1
- package/dist/collection/utils/search-engine/strategies/fuzzy.js.map +0 -1
- package/dist/collection/utils/search-engine/strategies/smart.js.map +0 -1
- package/dist/collection/utils/search-engine/strategies/strict.js.map +0 -1
- package/dist/collection/utils/search-engine/test/engine.test.js.map +0 -1
- package/dist/collection/utils/search-engine/test/guards.test.js.map +0 -1
- package/dist/collection/utils/search-engine/test/indexer.test.js.map +0 -1
- package/dist/collection/utils/search-engine/test/normalize.test.js.map +0 -1
- package/dist/collection/utils/search-engine/test/strategies.test.js.map +0 -1
- package/dist/collection/utils/search-engine/types.js.map +0 -1
- package/dist/collection/utils/search-engine/worker/index.js.map +0 -1
- package/dist/collection/utils/search-engine/worker/search.worker.js.map +0 -1
- package/dist/collection/utils/search-engine/worker/worker-client.js.map +0 -1
- package/dist/collection/utils/string.utils.js.map +0 -1
- package/dist/collection/utils/test/class.utils.test.js.map +0 -1
- package/dist/collection/utils/test/dom.utils.test.js.map +0 -1
- package/dist/collection/utils/test/i18n.utils.test.js.map +0 -1
- package/dist/collection/utils/test/input.utils.test.js.map +0 -1
- package/dist/collection/utils/test/uri.utils.test.js.map +0 -1
- package/dist/collection/utils/uri.utils.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/nv-accordion-item.js.map +0 -1
- package/dist/components/nv-accordion.js.map +0 -1
- package/dist/components/nv-alert.js.map +0 -1
- package/dist/components/nv-avatar.js.map +0 -1
- package/dist/components/nv-badge.js.map +0 -1
- package/dist/components/nv-breadcrumb.js.map +0 -1
- package/dist/components/nv-breadcrumbs.js.map +0 -1
- package/dist/components/nv-button.js.map +0 -1
- package/dist/components/nv-buttongroup.js.map +0 -1
- package/dist/components/nv-calendar.js.map +0 -1
- package/dist/components/nv-col.js.map +0 -1
- package/dist/components/nv-datagrid.js.map +0 -1
- package/dist/components/nv-datagridcolumn.js.map +0 -1
- package/dist/components/nv-dialog.js.map +0 -1
- package/dist/components/nv-dialogfooter.js.map +0 -1
- package/dist/components/nv-dialogheader.js.map +0 -1
- package/dist/components/nv-drawer.js.map +0 -1
- package/dist/components/nv-drawerfooter.js.map +0 -1
- package/dist/components/nv-drawerheader.js.map +0 -1
- package/dist/components/nv-fieldcheckbox.js.map +0 -1
- package/dist/components/nv-fielddate.js.map +0 -1
- package/dist/components/nv-fielddaterange.js.map +0 -1
- package/dist/components/nv-fielddropdown.js.map +0 -1
- package/dist/components/nv-fielddropdownitem.js.map +0 -1
- package/dist/components/nv-fielddropdownitemcheck.js.map +0 -1
- package/dist/components/nv-fieldmultiselect.js.map +0 -1
- package/dist/components/nv-fieldnumber.js.map +0 -1
- package/dist/components/nv-fieldpassword.js.map +0 -1
- package/dist/components/nv-fieldradio.js.map +0 -1
- package/dist/components/nv-fieldselect.js.map +0 -1
- package/dist/components/nv-fieldslider.js.map +0 -1
- package/dist/components/nv-fieldtext.js.map +0 -1
- package/dist/components/nv-fieldtextarea.js.map +0 -1
- package/dist/components/nv-fieldtime.js.map +0 -1
- package/dist/components/nv-icon.js.map +0 -1
- package/dist/components/nv-iconbutton.js.map +0 -1
- package/dist/components/nv-loader.js.map +0 -1
- package/dist/components/nv-menu.js.map +0 -1
- package/dist/components/nv-menuitem.js.map +0 -1
- package/dist/components/nv-notification-bullet.js.map +0 -1
- package/dist/components/nv-notification.js.map +0 -1
- package/dist/components/nv-notificationcontainer.js.map +0 -1
- package/dist/components/nv-popover.js.map +0 -1
- package/dist/components/nv-row.js.map +0 -1
- package/dist/components/nv-sidebar.js.map +0 -1
- package/dist/components/nv-sidebarcontent.js.map +0 -1
- package/dist/components/nv-sidebardivider.js.map +0 -1
- package/dist/components/nv-sidebarfooter.js.map +0 -1
- package/dist/components/nv-sidebargroup.js.map +0 -1
- package/dist/components/nv-sidebarheader.js.map +0 -1
- package/dist/components/nv-sidebarlogo.js.map +0 -1
- package/dist/components/nv-sidebarnavitem.js.map +0 -1
- package/dist/components/nv-sidebarnavsubitem.js.map +0 -1
- package/dist/components/nv-split.js.map +0 -1
- package/dist/components/nv-stack.js.map +0 -1
- package/dist/components/nv-table.js.map +0 -1
- package/dist/components/nv-tableheader.js.map +0 -1
- package/dist/components/nv-toggle.js.map +0 -1
- package/dist/components/nv-togglebutton.js.map +0 -1
- package/dist/components/nv-togglebuttongroup.js.map +0 -1
- package/dist/components/nv-tooltip.js.map +0 -1
- package/dist/components/p-9xYwU7ku.js.map +0 -1
- package/dist/components/p-B45HbBWe.js +0 -191
- package/dist/components/p-B45HbBWe.js.map +0 -1
- package/dist/components/p-B5jN7NKA.js +0 -59
- package/dist/components/p-B5jN7NKA.js.map +0 -1
- package/dist/components/p-B6GgGra-.js.map +0 -1
- package/dist/components/p-B7VlEQVW.js +0 -1475
- package/dist/components/p-B7VlEQVW.js.map +0 -1
- package/dist/components/p-B9i3m6rk.js +0 -1941
- package/dist/components/p-B9i3m6rk.js.map +0 -1
- package/dist/components/p-BILd3Ta-.js +0 -209
- package/dist/components/p-BILd3Ta-.js.map +0 -1
- package/dist/components/p-BISctfud.js +0 -214
- package/dist/components/p-BISctfud.js.map +0 -1
- package/dist/components/p-BReL3Lsa.js.map +0 -1
- package/dist/components/p-BVOv1zgq.js +0 -82
- package/dist/components/p-BVOv1zgq.js.map +0 -1
- package/dist/components/p-BdYh22OP.js.map +0 -1
- package/dist/components/p-Bg_l3jn1.js +0 -191
- package/dist/components/p-Bg_l3jn1.js.map +0 -1
- package/dist/components/p-C2QAWGhf.js +0 -88
- package/dist/components/p-C2QAWGhf.js.map +0 -1
- package/dist/components/p-C63Xpg9a.js +0 -2338
- package/dist/components/p-C63Xpg9a.js.map +0 -1
- package/dist/components/p-COnt5ux_.js +0 -51
- package/dist/components/p-COnt5ux_.js.map +0 -1
- package/dist/components/p-Cc7XnqPp.js +0 -260
- package/dist/components/p-Cc7XnqPp.js.map +0 -1
- package/dist/components/p-CgHCo_Ho.js.map +0 -1
- package/dist/components/p-ChV9xqsO.js.map +0 -1
- package/dist/components/p-CnI0auJM.js.map +0 -1
- package/dist/components/p-D02w_Ru6.js.map +0 -1
- package/dist/components/p-D1C_pu0E.js.map +0 -1
- package/dist/components/p-D2otK4Ce.js.map +0 -1
- package/dist/components/p-D3eWMME9.js.map +0 -1
- package/dist/components/p-D6APFL6N.js +0 -243
- package/dist/components/p-D6APFL6N.js.map +0 -1
- package/dist/components/p-DZJHk4fr.js +0 -3759
- package/dist/components/p-DZJHk4fr.js.map +0 -1
- package/dist/components/p-DiUP3TzF.js +0 -140
- package/dist/components/p-DiUP3TzF.js.map +0 -1
- package/dist/components/p-DpDooigg.js +0 -99
- package/dist/components/p-DpDooigg.js.map +0 -1
- package/dist/components/p-Dr-67WvG.js +0 -94
- package/dist/components/p-Dr-67WvG.js.map +0 -1
- package/dist/components/p-DvapDVBj.js +0 -176
- package/dist/components/p-DvapDVBj.js.map +0 -1
- package/dist/components/p-Dz1GUhVy.js.map +0 -1
- package/dist/components/p-IlwlcG9l.js.map +0 -1
- package/dist/components/p-W6vOfMC9.js +0 -63
- package/dist/components/p-W6vOfMC9.js.map +0 -1
- package/dist/components/p-nfYynlVq.js +0 -90
- package/dist/components/p-nfYynlVq.js.map +0 -1
- package/dist/components/p-tyaJ-nGV.js +0 -97
- package/dist/components/p-tyaJ-nGV.js.map +0 -1
- package/dist/components/p-u-maNLLs.js +0 -145
- package/dist/components/p-u-maNLLs.js.map +0 -1
- package/dist/esm/_commonjsHelpers-B85MJLTf.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/clsx-ChV9xqsO.js.map +0 -1
- package/dist/esm/collapse.animation-DZDm0vSK.js.map +0 -1
- package/dist/esm/constants-BReL3Lsa.js.map +0 -1
- package/dist/esm/events.utils-B6GgGra-.js.map +0 -1
- package/dist/esm/fade.animation-DcRL9lcm.js.map +0 -1
- package/dist/esm/grow.animation-D7ep_aVl.js.map +0 -1
- package/dist/esm/i18n.utils-IlwlcG9l.js +0 -2485
- package/dist/esm/i18n.utils-IlwlcG9l.js.map +0 -1
- package/dist/esm/index-CasQushP.js +0 -2811
- package/dist/esm/index-CasQushP.js.map +0 -1
- package/dist/esm/index.esm-D3eWMME9.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/inputmask-CSo292ul.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/native.js.map +0 -1
- package/dist/esm/nv-accordion-item.entry.js.map +0 -1
- package/dist/esm/nv-accordion.entry.js.map +0 -1
- package/dist/esm/nv-alert.entry.js.map +0 -1
- package/dist/esm/nv-avatar.entry.js.map +0 -1
- package/dist/esm/nv-badge.nv-fielddropdownitemcheck.entry.js.map +0 -1
- package/dist/esm/nv-breadcrumb.entry.js.map +0 -1
- package/dist/esm/nv-breadcrumbs.entry.js.map +0 -1
- package/dist/esm/nv-button.entry.js.map +0 -1
- package/dist/esm/nv-buttongroup.entry.js.map +0 -1
- package/dist/esm/nv-calendar.entry.js.map +0 -1
- package/dist/esm/nv-col.entry.js.map +0 -1
- package/dist/esm/nv-datagrid.entry.js.map +0 -1
- package/dist/esm/nv-datagridcolumn.entry.js.map +0 -1
- package/dist/esm/nv-dialog.entry.js.map +0 -1
- package/dist/esm/nv-dialogfooter.nv-dialogheader.entry.js.map +0 -1
- package/dist/esm/nv-drawer.entry.js.map +0 -1
- package/dist/esm/nv-drawerfooter.nv-drawerheader.entry.js.map +0 -1
- package/dist/esm/nv-fieldcheckbox.entry.js.map +0 -1
- package/dist/esm/nv-fielddate.entry.js.map +0 -1
- package/dist/esm/nv-fielddaterange.entry.js.map +0 -1
- package/dist/esm/nv-fielddropdown.entry.js.map +0 -1
- package/dist/esm/nv-fielddropdownitem.entry.js.map +0 -1
- package/dist/esm/nv-fieldmultiselect.entry.js.map +0 -1
- package/dist/esm/nv-fieldnumber.entry.js.map +0 -1
- package/dist/esm/nv-fieldpassword.entry.js.map +0 -1
- package/dist/esm/nv-fieldradio.entry.js.map +0 -1
- package/dist/esm/nv-fieldselect.entry.js.map +0 -1
- package/dist/esm/nv-fieldslider.entry.js.map +0 -1
- package/dist/esm/nv-fieldtext.entry.js.map +0 -1
- package/dist/esm/nv-fieldtextarea.entry.js.map +0 -1
- package/dist/esm/nv-fieldtime.entry.js.map +0 -1
- package/dist/esm/nv-icon.entry.js.map +0 -1
- package/dist/esm/nv-iconbutton.nv-loader.entry.js.map +0 -1
- package/dist/esm/nv-menu.entry.js.map +0 -1
- package/dist/esm/nv-menuitem.entry.js.map +0 -1
- package/dist/esm/nv-notification-bullet.entry.js.map +0 -1
- package/dist/esm/nv-notification.entry.js.map +0 -1
- package/dist/esm/nv-notificationcontainer.entry.js.map +0 -1
- package/dist/esm/nv-popover.entry.js.map +0 -1
- package/dist/esm/nv-row.entry.js.map +0 -1
- package/dist/esm/nv-sidebar.entry.js.map +0 -1
- package/dist/esm/nv-sidebarcontent.entry.js.map +0 -1
- package/dist/esm/nv-sidebardivider.entry.js.map +0 -1
- package/dist/esm/nv-sidebarfooter.entry.js.map +0 -1
- package/dist/esm/nv-sidebargroup.entry.js.map +0 -1
- package/dist/esm/nv-sidebarheader.entry.js.map +0 -1
- package/dist/esm/nv-sidebarlogo.entry.js.map +0 -1
- package/dist/esm/nv-sidebarnavitem.entry.js.map +0 -1
- package/dist/esm/nv-sidebarnavsubitem.entry.js.map +0 -1
- package/dist/esm/nv-split.entry.js.map +0 -1
- package/dist/esm/nv-stack.entry.js.map +0 -1
- package/dist/esm/nv-table.entry.js.map +0 -1
- package/dist/esm/nv-tableheader.entry.js.map +0 -1
- package/dist/esm/nv-toggle.entry.js.map +0 -1
- package/dist/esm/nv-togglebutton.entry.js.map +0 -1
- package/dist/esm/nv-togglebuttongroup.entry.js.map +0 -1
- package/dist/esm/nv-tooltip.entry.js.map +0 -1
- package/dist/esm/slide.animation-CmH5d1of.js.map +0 -1
- package/dist/esm/style-value-types.es-xlgmw4x8.js.map +0 -1
- package/dist/esm/timeline.animation-CgHCo_Ho.js.map +0 -1
- package/dist/esm/uri.utils-CnI0auJM.js.map +0 -1
- package/dist/esm/v4-BdYh22OP.js.map +0 -1
- package/dist/lib/generators/angular-output.js.map +0 -1
- package/dist/lib/generators/docs-blazor.js.map +0 -1
- package/dist/lib/generators/vue-output.js.map +0 -1
- package/dist/lib/utils/componentBinding.js.map +0 -1
- package/dist/lib/utils/parseToCSharpTypes.js.map +0 -1
- package/dist/lib/utils/spread.js.map +0 -1
- package/dist/lib/utils/test/parseToCSharpTypes.test.js.map +0 -1
- package/dist/native/index.esm.js.map +0 -1
- package/dist/native/loader.esm.js.map +0 -1
- package/dist/native/native.esm.js.map +0 -1
- package/dist/native/nv-accordion-item.entry.esm.js.map +0 -1
- package/dist/native/nv-accordion.entry.esm.js.map +0 -1
- package/dist/native/nv-alert.entry.esm.js.map +0 -1
- package/dist/native/nv-avatar.entry.esm.js.map +0 -1
- package/dist/native/nv-badge.nv-fielddropdownitemcheck.entry.esm.js.map +0 -1
- package/dist/native/nv-breadcrumb.entry.esm.js.map +0 -1
- package/dist/native/nv-breadcrumbs.entry.esm.js.map +0 -1
- package/dist/native/nv-button.entry.esm.js.map +0 -1
- package/dist/native/nv-buttongroup.entry.esm.js.map +0 -1
- package/dist/native/nv-calendar.entry.esm.js.map +0 -1
- package/dist/native/nv-col.entry.esm.js.map +0 -1
- package/dist/native/nv-datagrid.entry.esm.js.map +0 -1
- package/dist/native/nv-datagridcolumn.entry.esm.js.map +0 -1
- package/dist/native/nv-dialog.entry.esm.js.map +0 -1
- package/dist/native/nv-dialogfooter.nv-dialogheader.entry.esm.js.map +0 -1
- package/dist/native/nv-drawer.entry.esm.js.map +0 -1
- package/dist/native/nv-drawerfooter.nv-drawerheader.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldcheckbox.entry.esm.js.map +0 -1
- package/dist/native/nv-fielddate.entry.esm.js.map +0 -1
- package/dist/native/nv-fielddaterange.entry.esm.js.map +0 -1
- package/dist/native/nv-fielddropdown.entry.esm.js.map +0 -1
- package/dist/native/nv-fielddropdownitem.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldmultiselect.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldnumber.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldpassword.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldradio.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldselect.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldslider.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldtext.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldtextarea.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldtime.entry.esm.js.map +0 -1
- package/dist/native/nv-icon.entry.esm.js.map +0 -1
- package/dist/native/nv-iconbutton.nv-loader.entry.esm.js.map +0 -1
- package/dist/native/nv-menu.entry.esm.js.map +0 -1
- package/dist/native/nv-menuitem.entry.esm.js.map +0 -1
- package/dist/native/nv-notification-bullet.entry.esm.js.map +0 -1
- package/dist/native/nv-notification.entry.esm.js.map +0 -1
- package/dist/native/nv-notificationcontainer.entry.esm.js.map +0 -1
- package/dist/native/nv-popover.entry.esm.js.map +0 -1
- package/dist/native/nv-row.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebar.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarcontent.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebardivider.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarfooter.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebargroup.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarheader.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarlogo.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarnavitem.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarnavsubitem.entry.esm.js.map +0 -1
- package/dist/native/nv-split.entry.esm.js.map +0 -1
- package/dist/native/nv-stack.entry.esm.js.map +0 -1
- package/dist/native/nv-table.entry.esm.js.map +0 -1
- package/dist/native/nv-tableheader.entry.esm.js.map +0 -1
- package/dist/native/nv-toggle.entry.esm.js.map +0 -1
- package/dist/native/nv-togglebutton.entry.esm.js.map +0 -1
- package/dist/native/nv-togglebuttongroup.entry.esm.js.map +0 -1
- package/dist/native/nv-tooltip.entry.esm.js.map +0 -1
- package/dist/native/p-02e6228a.entry.js +0 -2
- package/dist/native/p-02e6228a.entry.js.map +0 -1
- package/dist/native/p-04a2fe7f.entry.js +0 -2
- package/dist/native/p-04a2fe7f.entry.js.map +0 -1
- package/dist/native/p-08204da4.entry.js +0 -2
- package/dist/native/p-08204da4.entry.js.map +0 -1
- package/dist/native/p-0e07b91b.entry.js +0 -2
- package/dist/native/p-0e07b91b.entry.js.map +0 -1
- package/dist/native/p-136dfb3e.entry.js +0 -2
- package/dist/native/p-136dfb3e.entry.js.map +0 -1
- package/dist/native/p-13YSIyGW.js.map +0 -1
- package/dist/native/p-1f2dd37f.entry.js +0 -2
- package/dist/native/p-1f2dd37f.entry.js.map +0 -1
- package/dist/native/p-255a0482.entry.js +0 -2
- package/dist/native/p-255a0482.entry.js.map +0 -1
- package/dist/native/p-3305a7e6.entry.js +0 -2
- package/dist/native/p-3305a7e6.entry.js.map +0 -1
- package/dist/native/p-36b0a6f0.entry.js +0 -2
- package/dist/native/p-36b0a6f0.entry.js.map +0 -1
- package/dist/native/p-434bc910.entry.js +0 -2
- package/dist/native/p-434bc910.entry.js.map +0 -1
- package/dist/native/p-436029a5.entry.js +0 -2
- package/dist/native/p-436029a5.entry.js.map +0 -1
- package/dist/native/p-460fdf02.entry.js +0 -2
- package/dist/native/p-460fdf02.entry.js.map +0 -1
- package/dist/native/p-477e02cf.entry.js +0 -2
- package/dist/native/p-477e02cf.entry.js.map +0 -1
- package/dist/native/p-4efb582b.entry.js +0 -2
- package/dist/native/p-4efb582b.entry.js.map +0 -1
- package/dist/native/p-4f1dfa32.entry.js +0 -2
- package/dist/native/p-4f1dfa32.entry.js.map +0 -1
- package/dist/native/p-50ce41ac.entry.js +0 -2
- package/dist/native/p-50ce41ac.entry.js.map +0 -1
- package/dist/native/p-51b7de55.entry.js +0 -13
- package/dist/native/p-51b7de55.entry.js.map +0 -1
- package/dist/native/p-5dd120dc.entry.js +0 -2
- package/dist/native/p-5dd120dc.entry.js.map +0 -1
- package/dist/native/p-60bb0d48.entry.js +0 -2
- package/dist/native/p-60bb0d48.entry.js.map +0 -1
- package/dist/native/p-67181258.entry.js +0 -2
- package/dist/native/p-67181258.entry.js.map +0 -1
- package/dist/native/p-6a81884b.entry.js +0 -2
- package/dist/native/p-6a81884b.entry.js.map +0 -1
- package/dist/native/p-6aa483de.entry.js +0 -2
- package/dist/native/p-6aa483de.entry.js.map +0 -1
- package/dist/native/p-6fc79712.entry.js +0 -2
- package/dist/native/p-6fc79712.entry.js.map +0 -1
- package/dist/native/p-70e9e067.entry.js +0 -2
- package/dist/native/p-70e9e067.entry.js.map +0 -1
- package/dist/native/p-729589cb.entry.js +0 -2
- package/dist/native/p-729589cb.entry.js.map +0 -1
- package/dist/native/p-78bf7650.entry.js +0 -2
- package/dist/native/p-78bf7650.entry.js.map +0 -1
- package/dist/native/p-7e6e9ea2.entry.js +0 -2
- package/dist/native/p-7e6e9ea2.entry.js.map +0 -1
- package/dist/native/p-8f1cd9e2.entry.js +0 -2
- package/dist/native/p-8f1cd9e2.entry.js.map +0 -1
- package/dist/native/p-910cd685.entry.js +0 -2
- package/dist/native/p-910cd685.entry.js.map +0 -1
- package/dist/native/p-91eaf02e.entry.js +0 -2
- package/dist/native/p-91eaf02e.entry.js.map +0 -1
- package/dist/native/p-93b77ed4.entry.js +0 -2
- package/dist/native/p-93b77ed4.entry.js.map +0 -1
- package/dist/native/p-93e35975.entry.js +0 -2
- package/dist/native/p-93e35975.entry.js.map +0 -1
- package/dist/native/p-96c45604.entry.js +0 -2
- package/dist/native/p-96c45604.entry.js.map +0 -1
- package/dist/native/p-9b6ad782.entry.js +0 -2
- package/dist/native/p-9b6ad782.entry.js.map +0 -1
- package/dist/native/p-9f32c3ea.entry.js +0 -2
- package/dist/native/p-9f32c3ea.entry.js.map +0 -1
- package/dist/native/p-B6GgGra-.js.map +0 -1
- package/dist/native/p-B85MJLTf.js.map +0 -1
- package/dist/native/p-BReL3Lsa.js.map +0 -1
- package/dist/native/p-BdYh22OP.js.map +0 -1
- package/dist/native/p-Blc6XEY7.js.map +0 -1
- package/dist/native/p-CasQushP.js +0 -3
- package/dist/native/p-CasQushP.js.map +0 -1
- package/dist/native/p-CgHCo_Ho.js.map +0 -1
- package/dist/native/p-ChV9xqsO.js.map +0 -1
- package/dist/native/p-CnI0auJM.js.map +0 -1
- package/dist/native/p-D3eWMME9.js.map +0 -1
- package/dist/native/p-DQuL1Twl.js +0 -2
- package/dist/native/p-DQuL1Twl.js.map +0 -1
- package/dist/native/p-DmUOtOcY.js.map +0 -1
- package/dist/native/p-Hfc8Oh0x.js.map +0 -1
- package/dist/native/p-IlwlcG9l.js +0 -2
- package/dist/native/p-IlwlcG9l.js.map +0 -1
- package/dist/native/p-a6fea322.entry.js +0 -2
- package/dist/native/p-a6fea322.entry.js.map +0 -1
- package/dist/native/p-ae279ae9.entry.js +0 -2
- package/dist/native/p-ae279ae9.entry.js.map +0 -1
- package/dist/native/p-b7765048.entry.js +0 -2
- package/dist/native/p-b7765048.entry.js.map +0 -1
- package/dist/native/p-ba1286aa.entry.js +0 -2
- package/dist/native/p-ba1286aa.entry.js.map +0 -1
- package/dist/native/p-bb52a5a9.entry.js +0 -2
- package/dist/native/p-bb52a5a9.entry.js.map +0 -1
- package/dist/native/p-bc90247e.entry.js +0 -2
- package/dist/native/p-bc90247e.entry.js.map +0 -1
- package/dist/native/p-c2a73a5a.entry.js +0 -2
- package/dist/native/p-c2a73a5a.entry.js.map +0 -1
- package/dist/native/p-c4c11549.entry.js +0 -2
- package/dist/native/p-c4c11549.entry.js.map +0 -1
- package/dist/native/p-c5ecdc49.entry.js +0 -2
- package/dist/native/p-c5ecdc49.entry.js.map +0 -1
- package/dist/native/p-cb1b9edb.entry.js +0 -2
- package/dist/native/p-cb1b9edb.entry.js.map +0 -1
- package/dist/native/p-cdaf54b0.entry.js +0 -2
- package/dist/native/p-cdaf54b0.entry.js.map +0 -1
- package/dist/native/p-ceb8fe8a.entry.js +0 -2
- package/dist/native/p-ceb8fe8a.entry.js.map +0 -1
- package/dist/native/p-daf7541b.entry.js +0 -2
- package/dist/native/p-daf7541b.entry.js.map +0 -1
- package/dist/native/p-de4f53a5.entry.js +0 -2
- package/dist/native/p-de4f53a5.entry.js.map +0 -1
- package/dist/native/p-ded4be77.entry.js +0 -2
- package/dist/native/p-ded4be77.entry.js.map +0 -1
- package/dist/native/p-e1fc5f8c.entry.js +0 -2
- package/dist/native/p-e1fc5f8c.entry.js.map +0 -1
- package/dist/native/p-e6c69f7d.entry.js +0 -2
- package/dist/native/p-e6c69f7d.entry.js.map +0 -1
- package/dist/native/p-e83603f1.entry.js +0 -2
- package/dist/native/p-e83603f1.entry.js.map +0 -1
- package/dist/native/p-ec217581.entry.js +0 -2
- package/dist/native/p-ec217581.entry.js.map +0 -1
- package/dist/native/p-ee694832.entry.js +0 -2
- package/dist/native/p-ee694832.entry.js.map +0 -1
- package/dist/native/p-f39aef8e.entry.js +0 -2
- package/dist/native/p-f39aef8e.entry.js.map +0 -1
- package/dist/native/p-f7e0146e.entry.js +0 -2
- package/dist/native/p-f7e0146e.entry.js.map +0 -1
- package/dist/native/p-sqVK8yoD.js.map +0 -1
- package/dist/native/p-xlgmw4x8.js.map +0 -1
|
@@ -1,1941 +0,0 @@
|
|
|
1
|
-
import { e as getRenderingRef, f as forceUpdate, p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-C63Xpg9a.js';
|
|
2
|
-
import { u as useFade } from './p-9xYwU7ku.js';
|
|
3
|
-
import { u as useGrow } from './p-D02w_Ru6.js';
|
|
4
|
-
import './p-Dz1GUhVy.js';
|
|
5
|
-
import { a as addEventListeners, r as removeEventListeners } from './p-B6GgGra-.js';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Custom positioning reference element.
|
|
9
|
-
* @see https://floating-ui.com/docs/virtual-elements
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
const min = Math.min;
|
|
13
|
-
const max = Math.max;
|
|
14
|
-
const round = Math.round;
|
|
15
|
-
const createCoords = v => ({
|
|
16
|
-
x: v,
|
|
17
|
-
y: v
|
|
18
|
-
});
|
|
19
|
-
const oppositeSideMap = {
|
|
20
|
-
left: 'right',
|
|
21
|
-
right: 'left',
|
|
22
|
-
bottom: 'top',
|
|
23
|
-
top: 'bottom'
|
|
24
|
-
};
|
|
25
|
-
const oppositeAlignmentMap = {
|
|
26
|
-
start: 'end',
|
|
27
|
-
end: 'start'
|
|
28
|
-
};
|
|
29
|
-
function clamp(start, value, end) {
|
|
30
|
-
return max(start, min(value, end));
|
|
31
|
-
}
|
|
32
|
-
function evaluate(value, param) {
|
|
33
|
-
return typeof value === 'function' ? value(param) : value;
|
|
34
|
-
}
|
|
35
|
-
function getSide(placement) {
|
|
36
|
-
return placement.split('-')[0];
|
|
37
|
-
}
|
|
38
|
-
function getAlignment(placement) {
|
|
39
|
-
return placement.split('-')[1];
|
|
40
|
-
}
|
|
41
|
-
function getOppositeAxis(axis) {
|
|
42
|
-
return axis === 'x' ? 'y' : 'x';
|
|
43
|
-
}
|
|
44
|
-
function getAxisLength(axis) {
|
|
45
|
-
return axis === 'y' ? 'height' : 'width';
|
|
46
|
-
}
|
|
47
|
-
function getSideAxis(placement) {
|
|
48
|
-
return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
|
|
49
|
-
}
|
|
50
|
-
function getAlignmentAxis(placement) {
|
|
51
|
-
return getOppositeAxis(getSideAxis(placement));
|
|
52
|
-
}
|
|
53
|
-
function getAlignmentSides(placement, rects, rtl) {
|
|
54
|
-
if (rtl === void 0) {
|
|
55
|
-
rtl = false;
|
|
56
|
-
}
|
|
57
|
-
const alignment = getAlignment(placement);
|
|
58
|
-
const alignmentAxis = getAlignmentAxis(placement);
|
|
59
|
-
const length = getAxisLength(alignmentAxis);
|
|
60
|
-
let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
|
61
|
-
if (rects.reference[length] > rects.floating[length]) {
|
|
62
|
-
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
63
|
-
}
|
|
64
|
-
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
65
|
-
}
|
|
66
|
-
function getExpandedPlacements(placement) {
|
|
67
|
-
const oppositePlacement = getOppositePlacement(placement);
|
|
68
|
-
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
69
|
-
}
|
|
70
|
-
function getOppositeAlignmentPlacement(placement) {
|
|
71
|
-
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
72
|
-
}
|
|
73
|
-
function getSideList(side, isStart, rtl) {
|
|
74
|
-
const lr = ['left', 'right'];
|
|
75
|
-
const rl = ['right', 'left'];
|
|
76
|
-
const tb = ['top', 'bottom'];
|
|
77
|
-
const bt = ['bottom', 'top'];
|
|
78
|
-
switch (side) {
|
|
79
|
-
case 'top':
|
|
80
|
-
case 'bottom':
|
|
81
|
-
if (rtl) return isStart ? rl : lr;
|
|
82
|
-
return isStart ? lr : rl;
|
|
83
|
-
case 'left':
|
|
84
|
-
case 'right':
|
|
85
|
-
return isStart ? tb : bt;
|
|
86
|
-
default:
|
|
87
|
-
return [];
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
91
|
-
const alignment = getAlignment(placement);
|
|
92
|
-
let list = getSideList(getSide(placement), direction === 'start', rtl);
|
|
93
|
-
if (alignment) {
|
|
94
|
-
list = list.map(side => side + "-" + alignment);
|
|
95
|
-
if (flipAlignment) {
|
|
96
|
-
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return list;
|
|
100
|
-
}
|
|
101
|
-
function getOppositePlacement(placement) {
|
|
102
|
-
return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
|
|
103
|
-
}
|
|
104
|
-
function expandPaddingObject(padding) {
|
|
105
|
-
return {
|
|
106
|
-
top: 0,
|
|
107
|
-
right: 0,
|
|
108
|
-
bottom: 0,
|
|
109
|
-
left: 0,
|
|
110
|
-
...padding
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
function getPaddingObject(padding) {
|
|
114
|
-
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
|
115
|
-
top: padding,
|
|
116
|
-
right: padding,
|
|
117
|
-
bottom: padding,
|
|
118
|
-
left: padding
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
function rectToClientRect(rect) {
|
|
122
|
-
const {
|
|
123
|
-
x,
|
|
124
|
-
y,
|
|
125
|
-
width,
|
|
126
|
-
height
|
|
127
|
-
} = rect;
|
|
128
|
-
return {
|
|
129
|
-
width,
|
|
130
|
-
height,
|
|
131
|
-
top: y,
|
|
132
|
-
left: x,
|
|
133
|
-
right: x + width,
|
|
134
|
-
bottom: y + height,
|
|
135
|
-
x,
|
|
136
|
-
y
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
141
|
-
let {
|
|
142
|
-
reference,
|
|
143
|
-
floating
|
|
144
|
-
} = _ref;
|
|
145
|
-
const sideAxis = getSideAxis(placement);
|
|
146
|
-
const alignmentAxis = getAlignmentAxis(placement);
|
|
147
|
-
const alignLength = getAxisLength(alignmentAxis);
|
|
148
|
-
const side = getSide(placement);
|
|
149
|
-
const isVertical = sideAxis === 'y';
|
|
150
|
-
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
|
151
|
-
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
|
152
|
-
const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
|
153
|
-
let coords;
|
|
154
|
-
switch (side) {
|
|
155
|
-
case 'top':
|
|
156
|
-
coords = {
|
|
157
|
-
x: commonX,
|
|
158
|
-
y: reference.y - floating.height
|
|
159
|
-
};
|
|
160
|
-
break;
|
|
161
|
-
case 'bottom':
|
|
162
|
-
coords = {
|
|
163
|
-
x: commonX,
|
|
164
|
-
y: reference.y + reference.height
|
|
165
|
-
};
|
|
166
|
-
break;
|
|
167
|
-
case 'right':
|
|
168
|
-
coords = {
|
|
169
|
-
x: reference.x + reference.width,
|
|
170
|
-
y: commonY
|
|
171
|
-
};
|
|
172
|
-
break;
|
|
173
|
-
case 'left':
|
|
174
|
-
coords = {
|
|
175
|
-
x: reference.x - floating.width,
|
|
176
|
-
y: commonY
|
|
177
|
-
};
|
|
178
|
-
break;
|
|
179
|
-
default:
|
|
180
|
-
coords = {
|
|
181
|
-
x: reference.x,
|
|
182
|
-
y: reference.y
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
switch (getAlignment(placement)) {
|
|
186
|
-
case 'start':
|
|
187
|
-
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
188
|
-
break;
|
|
189
|
-
case 'end':
|
|
190
|
-
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
191
|
-
break;
|
|
192
|
-
}
|
|
193
|
-
return coords;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Computes the `x` and `y` coordinates that will place the floating element
|
|
198
|
-
* next to a given reference element.
|
|
199
|
-
*
|
|
200
|
-
* This export does not have any `platform` interface logic. You will need to
|
|
201
|
-
* write one for the platform you are using Floating UI with.
|
|
202
|
-
*/
|
|
203
|
-
const computePosition$1 = async (reference, floating, config) => {
|
|
204
|
-
const {
|
|
205
|
-
placement = 'bottom',
|
|
206
|
-
strategy = 'absolute',
|
|
207
|
-
middleware = [],
|
|
208
|
-
platform
|
|
209
|
-
} = config;
|
|
210
|
-
const validMiddleware = middleware.filter(Boolean);
|
|
211
|
-
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
212
|
-
let rects = await platform.getElementRects({
|
|
213
|
-
reference,
|
|
214
|
-
floating,
|
|
215
|
-
strategy
|
|
216
|
-
});
|
|
217
|
-
let {
|
|
218
|
-
x,
|
|
219
|
-
y
|
|
220
|
-
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
221
|
-
let statefulPlacement = placement;
|
|
222
|
-
let middlewareData = {};
|
|
223
|
-
let resetCount = 0;
|
|
224
|
-
for (let i = 0; i < validMiddleware.length; i++) {
|
|
225
|
-
const {
|
|
226
|
-
name,
|
|
227
|
-
fn
|
|
228
|
-
} = validMiddleware[i];
|
|
229
|
-
const {
|
|
230
|
-
x: nextX,
|
|
231
|
-
y: nextY,
|
|
232
|
-
data,
|
|
233
|
-
reset
|
|
234
|
-
} = await fn({
|
|
235
|
-
x,
|
|
236
|
-
y,
|
|
237
|
-
initialPlacement: placement,
|
|
238
|
-
placement: statefulPlacement,
|
|
239
|
-
strategy,
|
|
240
|
-
middlewareData,
|
|
241
|
-
rects,
|
|
242
|
-
platform,
|
|
243
|
-
elements: {
|
|
244
|
-
reference,
|
|
245
|
-
floating
|
|
246
|
-
}
|
|
247
|
-
});
|
|
248
|
-
x = nextX != null ? nextX : x;
|
|
249
|
-
y = nextY != null ? nextY : y;
|
|
250
|
-
middlewareData = {
|
|
251
|
-
...middlewareData,
|
|
252
|
-
[name]: {
|
|
253
|
-
...middlewareData[name],
|
|
254
|
-
...data
|
|
255
|
-
}
|
|
256
|
-
};
|
|
257
|
-
if (reset && resetCount <= 50) {
|
|
258
|
-
resetCount++;
|
|
259
|
-
if (typeof reset === 'object') {
|
|
260
|
-
if (reset.placement) {
|
|
261
|
-
statefulPlacement = reset.placement;
|
|
262
|
-
}
|
|
263
|
-
if (reset.rects) {
|
|
264
|
-
rects = reset.rects === true ? await platform.getElementRects({
|
|
265
|
-
reference,
|
|
266
|
-
floating,
|
|
267
|
-
strategy
|
|
268
|
-
}) : reset.rects;
|
|
269
|
-
}
|
|
270
|
-
({
|
|
271
|
-
x,
|
|
272
|
-
y
|
|
273
|
-
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
274
|
-
}
|
|
275
|
-
i = -1;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
return {
|
|
279
|
-
x,
|
|
280
|
-
y,
|
|
281
|
-
placement: statefulPlacement,
|
|
282
|
-
strategy,
|
|
283
|
-
middlewareData
|
|
284
|
-
};
|
|
285
|
-
};
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* Resolves with an object of overflow side offsets that determine how much the
|
|
289
|
-
* element is overflowing a given clipping boundary on each side.
|
|
290
|
-
* - positive = overflowing the boundary by that number of pixels
|
|
291
|
-
* - negative = how many pixels left before it will overflow
|
|
292
|
-
* - 0 = lies flush with the boundary
|
|
293
|
-
* @see https://floating-ui.com/docs/detectOverflow
|
|
294
|
-
*/
|
|
295
|
-
async function detectOverflow(state, options) {
|
|
296
|
-
var _await$platform$isEle;
|
|
297
|
-
if (options === void 0) {
|
|
298
|
-
options = {};
|
|
299
|
-
}
|
|
300
|
-
const {
|
|
301
|
-
x,
|
|
302
|
-
y,
|
|
303
|
-
platform,
|
|
304
|
-
rects,
|
|
305
|
-
elements,
|
|
306
|
-
strategy
|
|
307
|
-
} = state;
|
|
308
|
-
const {
|
|
309
|
-
boundary = 'clippingAncestors',
|
|
310
|
-
rootBoundary = 'viewport',
|
|
311
|
-
elementContext = 'floating',
|
|
312
|
-
altBoundary = false,
|
|
313
|
-
padding = 0
|
|
314
|
-
} = evaluate(options, state);
|
|
315
|
-
const paddingObject = getPaddingObject(padding);
|
|
316
|
-
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
317
|
-
const element = elements[altBoundary ? altContext : elementContext];
|
|
318
|
-
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
319
|
-
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))),
|
|
320
|
-
boundary,
|
|
321
|
-
rootBoundary,
|
|
322
|
-
strategy
|
|
323
|
-
}));
|
|
324
|
-
const rect = elementContext === 'floating' ? {
|
|
325
|
-
x,
|
|
326
|
-
y,
|
|
327
|
-
width: rects.floating.width,
|
|
328
|
-
height: rects.floating.height
|
|
329
|
-
} : rects.reference;
|
|
330
|
-
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
331
|
-
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
332
|
-
x: 1,
|
|
333
|
-
y: 1
|
|
334
|
-
} : {
|
|
335
|
-
x: 1,
|
|
336
|
-
y: 1
|
|
337
|
-
};
|
|
338
|
-
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
339
|
-
elements,
|
|
340
|
-
rect,
|
|
341
|
-
offsetParent,
|
|
342
|
-
strategy
|
|
343
|
-
}) : rect);
|
|
344
|
-
return {
|
|
345
|
-
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
346
|
-
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
347
|
-
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
348
|
-
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* Provides data to position an inner element of the floating element so that it
|
|
354
|
-
* appears centered to the reference element.
|
|
355
|
-
* @see https://floating-ui.com/docs/arrow
|
|
356
|
-
*/
|
|
357
|
-
const arrow$1 = options => ({
|
|
358
|
-
name: 'arrow',
|
|
359
|
-
options,
|
|
360
|
-
async fn(state) {
|
|
361
|
-
const {
|
|
362
|
-
x,
|
|
363
|
-
y,
|
|
364
|
-
placement,
|
|
365
|
-
rects,
|
|
366
|
-
platform,
|
|
367
|
-
elements,
|
|
368
|
-
middlewareData
|
|
369
|
-
} = state;
|
|
370
|
-
// Since `element` is required, we don't Partial<> the type.
|
|
371
|
-
const {
|
|
372
|
-
element,
|
|
373
|
-
padding = 0
|
|
374
|
-
} = evaluate(options, state) || {};
|
|
375
|
-
if (element == null) {
|
|
376
|
-
return {};
|
|
377
|
-
}
|
|
378
|
-
const paddingObject = getPaddingObject(padding);
|
|
379
|
-
const coords = {
|
|
380
|
-
x,
|
|
381
|
-
y
|
|
382
|
-
};
|
|
383
|
-
const axis = getAlignmentAxis(placement);
|
|
384
|
-
const length = getAxisLength(axis);
|
|
385
|
-
const arrowDimensions = await platform.getDimensions(element);
|
|
386
|
-
const isYAxis = axis === 'y';
|
|
387
|
-
const minProp = isYAxis ? 'top' : 'left';
|
|
388
|
-
const maxProp = isYAxis ? 'bottom' : 'right';
|
|
389
|
-
const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
|
|
390
|
-
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
391
|
-
const startDiff = coords[axis] - rects.reference[axis];
|
|
392
|
-
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
|
393
|
-
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
394
|
-
|
|
395
|
-
// DOM platform can return `window` as the `offsetParent`.
|
|
396
|
-
if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
|
|
397
|
-
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
398
|
-
}
|
|
399
|
-
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
400
|
-
|
|
401
|
-
// If the padding is large enough that it causes the arrow to no longer be
|
|
402
|
-
// centered, modify the padding so that it is centered.
|
|
403
|
-
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
|
404
|
-
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
|
405
|
-
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
|
406
|
-
|
|
407
|
-
// Make sure the arrow doesn't overflow the floating element if the center
|
|
408
|
-
// point is outside the floating element's bounds.
|
|
409
|
-
const min$1 = minPadding;
|
|
410
|
-
const max = clientSize - arrowDimensions[length] - maxPadding;
|
|
411
|
-
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
412
|
-
const offset = clamp(min$1, center, max);
|
|
413
|
-
|
|
414
|
-
// If the reference is small enough that the arrow's padding causes it to
|
|
415
|
-
// to point to nothing for an aligned placement, adjust the offset of the
|
|
416
|
-
// floating element itself. To ensure `shift()` continues to take action,
|
|
417
|
-
// a single reset is performed when this is true.
|
|
418
|
-
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
419
|
-
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
|
420
|
-
return {
|
|
421
|
-
[axis]: coords[axis] + alignmentOffset,
|
|
422
|
-
data: {
|
|
423
|
-
[axis]: offset,
|
|
424
|
-
centerOffset: center - offset - alignmentOffset,
|
|
425
|
-
...(shouldAddOffset && {
|
|
426
|
-
alignmentOffset
|
|
427
|
-
})
|
|
428
|
-
},
|
|
429
|
-
reset: shouldAddOffset
|
|
430
|
-
};
|
|
431
|
-
}
|
|
432
|
-
});
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
436
|
-
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
437
|
-
* clipping boundary. Alternative to `autoPlacement`.
|
|
438
|
-
* @see https://floating-ui.com/docs/flip
|
|
439
|
-
*/
|
|
440
|
-
const flip$1 = function (options) {
|
|
441
|
-
if (options === void 0) {
|
|
442
|
-
options = {};
|
|
443
|
-
}
|
|
444
|
-
return {
|
|
445
|
-
name: 'flip',
|
|
446
|
-
options,
|
|
447
|
-
async fn(state) {
|
|
448
|
-
var _middlewareData$arrow, _middlewareData$flip;
|
|
449
|
-
const {
|
|
450
|
-
placement,
|
|
451
|
-
middlewareData,
|
|
452
|
-
rects,
|
|
453
|
-
initialPlacement,
|
|
454
|
-
platform,
|
|
455
|
-
elements
|
|
456
|
-
} = state;
|
|
457
|
-
const {
|
|
458
|
-
mainAxis: checkMainAxis = true,
|
|
459
|
-
crossAxis: checkCrossAxis = true,
|
|
460
|
-
fallbackPlacements: specifiedFallbackPlacements,
|
|
461
|
-
fallbackStrategy = 'bestFit',
|
|
462
|
-
fallbackAxisSideDirection = 'none',
|
|
463
|
-
flipAlignment = true,
|
|
464
|
-
...detectOverflowOptions
|
|
465
|
-
} = evaluate(options, state);
|
|
466
|
-
|
|
467
|
-
// If a reset by the arrow was caused due to an alignment offset being
|
|
468
|
-
// added, we should skip any logic now since `flip()` has already done its
|
|
469
|
-
// work.
|
|
470
|
-
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
|
471
|
-
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
472
|
-
return {};
|
|
473
|
-
}
|
|
474
|
-
const side = getSide(placement);
|
|
475
|
-
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
476
|
-
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
477
|
-
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
478
|
-
if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {
|
|
479
|
-
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
480
|
-
}
|
|
481
|
-
const placements = [initialPlacement, ...fallbackPlacements];
|
|
482
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
483
|
-
const overflows = [];
|
|
484
|
-
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
485
|
-
if (checkMainAxis) {
|
|
486
|
-
overflows.push(overflow[side]);
|
|
487
|
-
}
|
|
488
|
-
if (checkCrossAxis) {
|
|
489
|
-
const sides = getAlignmentSides(placement, rects, rtl);
|
|
490
|
-
overflows.push(overflow[sides[0]], overflow[sides[1]]);
|
|
491
|
-
}
|
|
492
|
-
overflowsData = [...overflowsData, {
|
|
493
|
-
placement,
|
|
494
|
-
overflows
|
|
495
|
-
}];
|
|
496
|
-
|
|
497
|
-
// One or more sides is overflowing.
|
|
498
|
-
if (!overflows.every(side => side <= 0)) {
|
|
499
|
-
var _middlewareData$flip2, _overflowsData$filter;
|
|
500
|
-
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
501
|
-
const nextPlacement = placements[nextIndex];
|
|
502
|
-
if (nextPlacement) {
|
|
503
|
-
// Try next placement and re-run the lifecycle.
|
|
504
|
-
return {
|
|
505
|
-
data: {
|
|
506
|
-
index: nextIndex,
|
|
507
|
-
overflows: overflowsData
|
|
508
|
-
},
|
|
509
|
-
reset: {
|
|
510
|
-
placement: nextPlacement
|
|
511
|
-
}
|
|
512
|
-
};
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
516
|
-
// then find the placement that fits the best on the main crossAxis side.
|
|
517
|
-
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;
|
|
518
|
-
|
|
519
|
-
// Otherwise fallback.
|
|
520
|
-
if (!resetPlacement) {
|
|
521
|
-
switch (fallbackStrategy) {
|
|
522
|
-
case 'bestFit':
|
|
523
|
-
{
|
|
524
|
-
var _overflowsData$map$so;
|
|
525
|
-
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];
|
|
526
|
-
if (placement) {
|
|
527
|
-
resetPlacement = placement;
|
|
528
|
-
}
|
|
529
|
-
break;
|
|
530
|
-
}
|
|
531
|
-
case 'initialPlacement':
|
|
532
|
-
resetPlacement = initialPlacement;
|
|
533
|
-
break;
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
if (placement !== resetPlacement) {
|
|
537
|
-
return {
|
|
538
|
-
reset: {
|
|
539
|
-
placement: resetPlacement
|
|
540
|
-
}
|
|
541
|
-
};
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
return {};
|
|
545
|
-
}
|
|
546
|
-
};
|
|
547
|
-
};
|
|
548
|
-
|
|
549
|
-
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
550
|
-
// Derivable.
|
|
551
|
-
|
|
552
|
-
async function convertValueToCoords(state, options) {
|
|
553
|
-
const {
|
|
554
|
-
placement,
|
|
555
|
-
platform,
|
|
556
|
-
elements
|
|
557
|
-
} = state;
|
|
558
|
-
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
559
|
-
const side = getSide(placement);
|
|
560
|
-
const alignment = getAlignment(placement);
|
|
561
|
-
const isVertical = getSideAxis(placement) === 'y';
|
|
562
|
-
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
563
|
-
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
564
|
-
const rawValue = evaluate(options, state);
|
|
565
|
-
|
|
566
|
-
// eslint-disable-next-line prefer-const
|
|
567
|
-
let {
|
|
568
|
-
mainAxis,
|
|
569
|
-
crossAxis,
|
|
570
|
-
alignmentAxis
|
|
571
|
-
} = typeof rawValue === 'number' ? {
|
|
572
|
-
mainAxis: rawValue,
|
|
573
|
-
crossAxis: 0,
|
|
574
|
-
alignmentAxis: null
|
|
575
|
-
} : {
|
|
576
|
-
mainAxis: 0,
|
|
577
|
-
crossAxis: 0,
|
|
578
|
-
alignmentAxis: null,
|
|
579
|
-
...rawValue
|
|
580
|
-
};
|
|
581
|
-
if (alignment && typeof alignmentAxis === 'number') {
|
|
582
|
-
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
|
583
|
-
}
|
|
584
|
-
return isVertical ? {
|
|
585
|
-
x: crossAxis * crossAxisMulti,
|
|
586
|
-
y: mainAxis * mainAxisMulti
|
|
587
|
-
} : {
|
|
588
|
-
x: mainAxis * mainAxisMulti,
|
|
589
|
-
y: crossAxis * crossAxisMulti
|
|
590
|
-
};
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
/**
|
|
594
|
-
* Modifies the placement by translating the floating element along the
|
|
595
|
-
* specified axes.
|
|
596
|
-
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
597
|
-
* object may be passed.
|
|
598
|
-
* @see https://floating-ui.com/docs/offset
|
|
599
|
-
*/
|
|
600
|
-
const offset$1 = function (options) {
|
|
601
|
-
if (options === void 0) {
|
|
602
|
-
options = 0;
|
|
603
|
-
}
|
|
604
|
-
return {
|
|
605
|
-
name: 'offset',
|
|
606
|
-
options,
|
|
607
|
-
async fn(state) {
|
|
608
|
-
var _middlewareData$offse, _middlewareData$arrow;
|
|
609
|
-
const {
|
|
610
|
-
x,
|
|
611
|
-
y,
|
|
612
|
-
placement,
|
|
613
|
-
middlewareData
|
|
614
|
-
} = state;
|
|
615
|
-
const diffCoords = await convertValueToCoords(state, options);
|
|
616
|
-
|
|
617
|
-
// If the placement is the same and the arrow caused an alignment offset
|
|
618
|
-
// then we don't need to change the positioning coordinates.
|
|
619
|
-
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
620
|
-
return {};
|
|
621
|
-
}
|
|
622
|
-
return {
|
|
623
|
-
x: x + diffCoords.x,
|
|
624
|
-
y: y + diffCoords.y,
|
|
625
|
-
data: {
|
|
626
|
-
...diffCoords,
|
|
627
|
-
placement
|
|
628
|
-
}
|
|
629
|
-
};
|
|
630
|
-
}
|
|
631
|
-
};
|
|
632
|
-
};
|
|
633
|
-
|
|
634
|
-
/**
|
|
635
|
-
* Optimizes the visibility of the floating element by shifting it in order to
|
|
636
|
-
* keep it in view when it will overflow the clipping boundary.
|
|
637
|
-
* @see https://floating-ui.com/docs/shift
|
|
638
|
-
*/
|
|
639
|
-
const shift$1 = function (options) {
|
|
640
|
-
if (options === void 0) {
|
|
641
|
-
options = {};
|
|
642
|
-
}
|
|
643
|
-
return {
|
|
644
|
-
name: 'shift',
|
|
645
|
-
options,
|
|
646
|
-
async fn(state) {
|
|
647
|
-
const {
|
|
648
|
-
x,
|
|
649
|
-
y,
|
|
650
|
-
placement
|
|
651
|
-
} = state;
|
|
652
|
-
const {
|
|
653
|
-
mainAxis: checkMainAxis = true,
|
|
654
|
-
crossAxis: checkCrossAxis = false,
|
|
655
|
-
limiter = {
|
|
656
|
-
fn: _ref => {
|
|
657
|
-
let {
|
|
658
|
-
x,
|
|
659
|
-
y
|
|
660
|
-
} = _ref;
|
|
661
|
-
return {
|
|
662
|
-
x,
|
|
663
|
-
y
|
|
664
|
-
};
|
|
665
|
-
}
|
|
666
|
-
},
|
|
667
|
-
...detectOverflowOptions
|
|
668
|
-
} = evaluate(options, state);
|
|
669
|
-
const coords = {
|
|
670
|
-
x,
|
|
671
|
-
y
|
|
672
|
-
};
|
|
673
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
674
|
-
const crossAxis = getSideAxis(getSide(placement));
|
|
675
|
-
const mainAxis = getOppositeAxis(crossAxis);
|
|
676
|
-
let mainAxisCoord = coords[mainAxis];
|
|
677
|
-
let crossAxisCoord = coords[crossAxis];
|
|
678
|
-
if (checkMainAxis) {
|
|
679
|
-
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
|
680
|
-
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
|
681
|
-
const min = mainAxisCoord + overflow[minSide];
|
|
682
|
-
const max = mainAxisCoord - overflow[maxSide];
|
|
683
|
-
mainAxisCoord = clamp(min, mainAxisCoord, max);
|
|
684
|
-
}
|
|
685
|
-
if (checkCrossAxis) {
|
|
686
|
-
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
|
687
|
-
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
|
688
|
-
const min = crossAxisCoord + overflow[minSide];
|
|
689
|
-
const max = crossAxisCoord - overflow[maxSide];
|
|
690
|
-
crossAxisCoord = clamp(min, crossAxisCoord, max);
|
|
691
|
-
}
|
|
692
|
-
const limitedCoords = limiter.fn({
|
|
693
|
-
...state,
|
|
694
|
-
[mainAxis]: mainAxisCoord,
|
|
695
|
-
[crossAxis]: crossAxisCoord
|
|
696
|
-
});
|
|
697
|
-
return {
|
|
698
|
-
...limitedCoords,
|
|
699
|
-
data: {
|
|
700
|
-
x: limitedCoords.x - x,
|
|
701
|
-
y: limitedCoords.y - y
|
|
702
|
-
}
|
|
703
|
-
};
|
|
704
|
-
}
|
|
705
|
-
};
|
|
706
|
-
};
|
|
707
|
-
|
|
708
|
-
function hasWindow() {
|
|
709
|
-
return typeof window !== 'undefined';
|
|
710
|
-
}
|
|
711
|
-
function getNodeName(node) {
|
|
712
|
-
if (isNode(node)) {
|
|
713
|
-
return (node.nodeName || '').toLowerCase();
|
|
714
|
-
}
|
|
715
|
-
// Mocked nodes in testing environments may not be instances of Node. By
|
|
716
|
-
// returning `#document` an infinite loop won't occur.
|
|
717
|
-
// https://github.com/floating-ui/floating-ui/issues/2317
|
|
718
|
-
return '#document';
|
|
719
|
-
}
|
|
720
|
-
function getWindow(node) {
|
|
721
|
-
var _node$ownerDocument;
|
|
722
|
-
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
723
|
-
}
|
|
724
|
-
function getDocumentElement(node) {
|
|
725
|
-
var _ref;
|
|
726
|
-
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
727
|
-
}
|
|
728
|
-
function isNode(value) {
|
|
729
|
-
if (!hasWindow()) {
|
|
730
|
-
return false;
|
|
731
|
-
}
|
|
732
|
-
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
733
|
-
}
|
|
734
|
-
function isElement(value) {
|
|
735
|
-
if (!hasWindow()) {
|
|
736
|
-
return false;
|
|
737
|
-
}
|
|
738
|
-
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
739
|
-
}
|
|
740
|
-
function isHTMLElement(value) {
|
|
741
|
-
if (!hasWindow()) {
|
|
742
|
-
return false;
|
|
743
|
-
}
|
|
744
|
-
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
745
|
-
}
|
|
746
|
-
function isShadowRoot(value) {
|
|
747
|
-
if (!hasWindow() || typeof ShadowRoot === 'undefined') {
|
|
748
|
-
return false;
|
|
749
|
-
}
|
|
750
|
-
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
751
|
-
}
|
|
752
|
-
function isOverflowElement(element) {
|
|
753
|
-
const {
|
|
754
|
-
overflow,
|
|
755
|
-
overflowX,
|
|
756
|
-
overflowY,
|
|
757
|
-
display
|
|
758
|
-
} = getComputedStyle(element);
|
|
759
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
760
|
-
}
|
|
761
|
-
function isTableElement(element) {
|
|
762
|
-
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
763
|
-
}
|
|
764
|
-
function isTopLayer(element) {
|
|
765
|
-
return [':popover-open', ':modal'].some(selector => {
|
|
766
|
-
try {
|
|
767
|
-
return element.matches(selector);
|
|
768
|
-
} catch (e) {
|
|
769
|
-
return false;
|
|
770
|
-
}
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
function isContainingBlock(elementOrCss) {
|
|
774
|
-
const webkit = isWebKit();
|
|
775
|
-
const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
|
|
776
|
-
|
|
777
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
778
|
-
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));
|
|
779
|
-
}
|
|
780
|
-
function getContainingBlock(element) {
|
|
781
|
-
let currentNode = getParentNode(element);
|
|
782
|
-
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
783
|
-
if (isContainingBlock(currentNode)) {
|
|
784
|
-
return currentNode;
|
|
785
|
-
} else if (isTopLayer(currentNode)) {
|
|
786
|
-
return null;
|
|
787
|
-
}
|
|
788
|
-
currentNode = getParentNode(currentNode);
|
|
789
|
-
}
|
|
790
|
-
return null;
|
|
791
|
-
}
|
|
792
|
-
function isWebKit() {
|
|
793
|
-
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
794
|
-
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
795
|
-
}
|
|
796
|
-
function isLastTraversableNode(node) {
|
|
797
|
-
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
798
|
-
}
|
|
799
|
-
function getComputedStyle(element) {
|
|
800
|
-
return getWindow(element).getComputedStyle(element);
|
|
801
|
-
}
|
|
802
|
-
function getNodeScroll(element) {
|
|
803
|
-
if (isElement(element)) {
|
|
804
|
-
return {
|
|
805
|
-
scrollLeft: element.scrollLeft,
|
|
806
|
-
scrollTop: element.scrollTop
|
|
807
|
-
};
|
|
808
|
-
}
|
|
809
|
-
return {
|
|
810
|
-
scrollLeft: element.scrollX,
|
|
811
|
-
scrollTop: element.scrollY
|
|
812
|
-
};
|
|
813
|
-
}
|
|
814
|
-
function getParentNode(node) {
|
|
815
|
-
if (getNodeName(node) === 'html') {
|
|
816
|
-
return node;
|
|
817
|
-
}
|
|
818
|
-
const result =
|
|
819
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
820
|
-
node.assignedSlot ||
|
|
821
|
-
// DOM Element detected.
|
|
822
|
-
node.parentNode ||
|
|
823
|
-
// ShadowRoot detected.
|
|
824
|
-
isShadowRoot(node) && node.host ||
|
|
825
|
-
// Fallback.
|
|
826
|
-
getDocumentElement(node);
|
|
827
|
-
return isShadowRoot(result) ? result.host : result;
|
|
828
|
-
}
|
|
829
|
-
function getNearestOverflowAncestor(node) {
|
|
830
|
-
const parentNode = getParentNode(node);
|
|
831
|
-
if (isLastTraversableNode(parentNode)) {
|
|
832
|
-
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
833
|
-
}
|
|
834
|
-
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
835
|
-
return parentNode;
|
|
836
|
-
}
|
|
837
|
-
return getNearestOverflowAncestor(parentNode);
|
|
838
|
-
}
|
|
839
|
-
function getOverflowAncestors(node, list, traverseIframes) {
|
|
840
|
-
var _node$ownerDocument2;
|
|
841
|
-
if (list === void 0) {
|
|
842
|
-
list = [];
|
|
843
|
-
}
|
|
844
|
-
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
845
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
846
|
-
const win = getWindow(scrollableAncestor);
|
|
847
|
-
if (isBody) {
|
|
848
|
-
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], []);
|
|
849
|
-
}
|
|
850
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, []));
|
|
851
|
-
}
|
|
852
|
-
function getFrameElement(win) {
|
|
853
|
-
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
function getCssDimensions(element) {
|
|
857
|
-
const css = getComputedStyle(element);
|
|
858
|
-
// In testing environments, the `width` and `height` properties are empty
|
|
859
|
-
// strings for SVG elements, returning NaN. Fallback to `0` in this case.
|
|
860
|
-
let width = parseFloat(css.width) || 0;
|
|
861
|
-
let height = parseFloat(css.height) || 0;
|
|
862
|
-
const hasOffset = isHTMLElement(element);
|
|
863
|
-
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
864
|
-
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
865
|
-
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
866
|
-
if (shouldFallback) {
|
|
867
|
-
width = offsetWidth;
|
|
868
|
-
height = offsetHeight;
|
|
869
|
-
}
|
|
870
|
-
return {
|
|
871
|
-
width,
|
|
872
|
-
height,
|
|
873
|
-
$: shouldFallback
|
|
874
|
-
};
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
function unwrapElement(element) {
|
|
878
|
-
return !isElement(element) ? element.contextElement : element;
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
function getScale(element) {
|
|
882
|
-
const domElement = unwrapElement(element);
|
|
883
|
-
if (!isHTMLElement(domElement)) {
|
|
884
|
-
return createCoords(1);
|
|
885
|
-
}
|
|
886
|
-
const rect = domElement.getBoundingClientRect();
|
|
887
|
-
const {
|
|
888
|
-
width,
|
|
889
|
-
height,
|
|
890
|
-
$
|
|
891
|
-
} = getCssDimensions(domElement);
|
|
892
|
-
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
893
|
-
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
894
|
-
|
|
895
|
-
// 0, NaN, or Infinity should always fallback to 1.
|
|
896
|
-
|
|
897
|
-
if (!x || !Number.isFinite(x)) {
|
|
898
|
-
x = 1;
|
|
899
|
-
}
|
|
900
|
-
if (!y || !Number.isFinite(y)) {
|
|
901
|
-
y = 1;
|
|
902
|
-
}
|
|
903
|
-
return {
|
|
904
|
-
x,
|
|
905
|
-
y
|
|
906
|
-
};
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
const noOffsets = /*#__PURE__*/createCoords(0);
|
|
910
|
-
function getVisualOffsets(element) {
|
|
911
|
-
const win = getWindow(element);
|
|
912
|
-
if (!isWebKit() || !win.visualViewport) {
|
|
913
|
-
return noOffsets;
|
|
914
|
-
}
|
|
915
|
-
return {
|
|
916
|
-
x: win.visualViewport.offsetLeft,
|
|
917
|
-
y: win.visualViewport.offsetTop
|
|
918
|
-
};
|
|
919
|
-
}
|
|
920
|
-
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
921
|
-
if (isFixed === void 0) {
|
|
922
|
-
isFixed = false;
|
|
923
|
-
}
|
|
924
|
-
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
925
|
-
return false;
|
|
926
|
-
}
|
|
927
|
-
return isFixed;
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
931
|
-
if (includeScale === void 0) {
|
|
932
|
-
includeScale = false;
|
|
933
|
-
}
|
|
934
|
-
if (isFixedStrategy === void 0) {
|
|
935
|
-
isFixedStrategy = false;
|
|
936
|
-
}
|
|
937
|
-
const clientRect = element.getBoundingClientRect();
|
|
938
|
-
const domElement = unwrapElement(element);
|
|
939
|
-
let scale = createCoords(1);
|
|
940
|
-
if (includeScale) {
|
|
941
|
-
if (offsetParent) {
|
|
942
|
-
if (isElement(offsetParent)) {
|
|
943
|
-
scale = getScale(offsetParent);
|
|
944
|
-
}
|
|
945
|
-
} else {
|
|
946
|
-
scale = getScale(element);
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
950
|
-
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
951
|
-
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
952
|
-
let width = clientRect.width / scale.x;
|
|
953
|
-
let height = clientRect.height / scale.y;
|
|
954
|
-
if (domElement) {
|
|
955
|
-
const win = getWindow(domElement);
|
|
956
|
-
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
957
|
-
let currentWin = win;
|
|
958
|
-
let currentIFrame = getFrameElement(currentWin);
|
|
959
|
-
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
960
|
-
const iframeScale = getScale(currentIFrame);
|
|
961
|
-
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
962
|
-
const css = getComputedStyle(currentIFrame);
|
|
963
|
-
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
964
|
-
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
965
|
-
x *= iframeScale.x;
|
|
966
|
-
y *= iframeScale.y;
|
|
967
|
-
width *= iframeScale.x;
|
|
968
|
-
height *= iframeScale.y;
|
|
969
|
-
x += left;
|
|
970
|
-
y += top;
|
|
971
|
-
currentWin = getWindow(currentIFrame);
|
|
972
|
-
currentIFrame = getFrameElement(currentWin);
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
return rectToClientRect({
|
|
976
|
-
width,
|
|
977
|
-
height,
|
|
978
|
-
x,
|
|
979
|
-
y
|
|
980
|
-
});
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
984
|
-
let {
|
|
985
|
-
elements,
|
|
986
|
-
rect,
|
|
987
|
-
offsetParent,
|
|
988
|
-
strategy
|
|
989
|
-
} = _ref;
|
|
990
|
-
const isFixed = strategy === 'fixed';
|
|
991
|
-
const documentElement = getDocumentElement(offsetParent);
|
|
992
|
-
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
|
993
|
-
if (offsetParent === documentElement || topLayer && isFixed) {
|
|
994
|
-
return rect;
|
|
995
|
-
}
|
|
996
|
-
let scroll = {
|
|
997
|
-
scrollLeft: 0,
|
|
998
|
-
scrollTop: 0
|
|
999
|
-
};
|
|
1000
|
-
let scale = createCoords(1);
|
|
1001
|
-
const offsets = createCoords(0);
|
|
1002
|
-
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1003
|
-
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1004
|
-
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1005
|
-
scroll = getNodeScroll(offsetParent);
|
|
1006
|
-
}
|
|
1007
|
-
if (isHTMLElement(offsetParent)) {
|
|
1008
|
-
const offsetRect = getBoundingClientRect(offsetParent);
|
|
1009
|
-
scale = getScale(offsetParent);
|
|
1010
|
-
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1011
|
-
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
return {
|
|
1015
|
-
width: rect.width * scale.x,
|
|
1016
|
-
height: rect.height * scale.y,
|
|
1017
|
-
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
|
|
1018
|
-
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
|
|
1019
|
-
};
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
function getClientRects(element) {
|
|
1023
|
-
return Array.from(element.getClientRects());
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
// If <html> has a CSS width greater than the viewport, then this will be
|
|
1027
|
-
// incorrect for RTL.
|
|
1028
|
-
function getWindowScrollBarX(element, rect) {
|
|
1029
|
-
const leftScroll = getNodeScroll(element).scrollLeft;
|
|
1030
|
-
if (!rect) {
|
|
1031
|
-
return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
|
1032
|
-
}
|
|
1033
|
-
return rect.left + leftScroll;
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
// Gets the entire size of the scrollable document area, even extending outside
|
|
1037
|
-
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
|
1038
|
-
function getDocumentRect(element) {
|
|
1039
|
-
const html = getDocumentElement(element);
|
|
1040
|
-
const scroll = getNodeScroll(element);
|
|
1041
|
-
const body = element.ownerDocument.body;
|
|
1042
|
-
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
1043
|
-
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
1044
|
-
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
1045
|
-
const y = -scroll.scrollTop;
|
|
1046
|
-
if (getComputedStyle(body).direction === 'rtl') {
|
|
1047
|
-
x += max(html.clientWidth, body.clientWidth) - width;
|
|
1048
|
-
}
|
|
1049
|
-
return {
|
|
1050
|
-
width,
|
|
1051
|
-
height,
|
|
1052
|
-
x,
|
|
1053
|
-
y
|
|
1054
|
-
};
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
function getViewportRect(element, strategy) {
|
|
1058
|
-
const win = getWindow(element);
|
|
1059
|
-
const html = getDocumentElement(element);
|
|
1060
|
-
const visualViewport = win.visualViewport;
|
|
1061
|
-
let width = html.clientWidth;
|
|
1062
|
-
let height = html.clientHeight;
|
|
1063
|
-
let x = 0;
|
|
1064
|
-
let y = 0;
|
|
1065
|
-
if (visualViewport) {
|
|
1066
|
-
width = visualViewport.width;
|
|
1067
|
-
height = visualViewport.height;
|
|
1068
|
-
const visualViewportBased = isWebKit();
|
|
1069
|
-
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
|
1070
|
-
x = visualViewport.offsetLeft;
|
|
1071
|
-
y = visualViewport.offsetTop;
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
return {
|
|
1075
|
-
width,
|
|
1076
|
-
height,
|
|
1077
|
-
x,
|
|
1078
|
-
y
|
|
1079
|
-
};
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
// Returns the inner client rect, subtracting scrollbars if present.
|
|
1083
|
-
function getInnerBoundingClientRect(element, strategy) {
|
|
1084
|
-
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
1085
|
-
const top = clientRect.top + element.clientTop;
|
|
1086
|
-
const left = clientRect.left + element.clientLeft;
|
|
1087
|
-
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
|
1088
|
-
const width = element.clientWidth * scale.x;
|
|
1089
|
-
const height = element.clientHeight * scale.y;
|
|
1090
|
-
const x = left * scale.x;
|
|
1091
|
-
const y = top * scale.y;
|
|
1092
|
-
return {
|
|
1093
|
-
width,
|
|
1094
|
-
height,
|
|
1095
|
-
x,
|
|
1096
|
-
y
|
|
1097
|
-
};
|
|
1098
|
-
}
|
|
1099
|
-
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
1100
|
-
let rect;
|
|
1101
|
-
if (clippingAncestor === 'viewport') {
|
|
1102
|
-
rect = getViewportRect(element, strategy);
|
|
1103
|
-
} else if (clippingAncestor === 'document') {
|
|
1104
|
-
rect = getDocumentRect(getDocumentElement(element));
|
|
1105
|
-
} else if (isElement(clippingAncestor)) {
|
|
1106
|
-
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
1107
|
-
} else {
|
|
1108
|
-
const visualOffsets = getVisualOffsets(element);
|
|
1109
|
-
rect = {
|
|
1110
|
-
...clippingAncestor,
|
|
1111
|
-
x: clippingAncestor.x - visualOffsets.x,
|
|
1112
|
-
y: clippingAncestor.y - visualOffsets.y
|
|
1113
|
-
};
|
|
1114
|
-
}
|
|
1115
|
-
return rectToClientRect(rect);
|
|
1116
|
-
}
|
|
1117
|
-
function hasFixedPositionAncestor(element, stopNode) {
|
|
1118
|
-
const parentNode = getParentNode(element);
|
|
1119
|
-
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
1120
|
-
return false;
|
|
1121
|
-
}
|
|
1122
|
-
return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
|
1126
|
-
// clipping (or hiding) child elements. This returns all clipping ancestors
|
|
1127
|
-
// of the given element up the tree.
|
|
1128
|
-
function getClippingElementAncestors(element, cache) {
|
|
1129
|
-
const cachedResult = cache.get(element);
|
|
1130
|
-
if (cachedResult) {
|
|
1131
|
-
return cachedResult;
|
|
1132
|
-
}
|
|
1133
|
-
let result = getOverflowAncestors(element, []).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
|
1134
|
-
let currentContainingBlockComputedStyle = null;
|
|
1135
|
-
const elementIsFixed = getComputedStyle(element).position === 'fixed';
|
|
1136
|
-
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1137
|
-
|
|
1138
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
1139
|
-
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1140
|
-
const computedStyle = getComputedStyle(currentNode);
|
|
1141
|
-
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
1142
|
-
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
1143
|
-
currentContainingBlockComputedStyle = null;
|
|
1144
|
-
}
|
|
1145
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
1146
|
-
if (shouldDropCurrentNode) {
|
|
1147
|
-
// Drop non-containing blocks.
|
|
1148
|
-
result = result.filter(ancestor => ancestor !== currentNode);
|
|
1149
|
-
} else {
|
|
1150
|
-
// Record last containing block for next iteration.
|
|
1151
|
-
currentContainingBlockComputedStyle = computedStyle;
|
|
1152
|
-
}
|
|
1153
|
-
currentNode = getParentNode(currentNode);
|
|
1154
|
-
}
|
|
1155
|
-
cache.set(element, result);
|
|
1156
|
-
return result;
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
// Gets the maximum area that the element is visible in due to any number of
|
|
1160
|
-
// clipping ancestors.
|
|
1161
|
-
function getClippingRect(_ref) {
|
|
1162
|
-
let {
|
|
1163
|
-
element,
|
|
1164
|
-
boundary,
|
|
1165
|
-
rootBoundary,
|
|
1166
|
-
strategy
|
|
1167
|
-
} = _ref;
|
|
1168
|
-
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
1169
|
-
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
1170
|
-
const firstClippingAncestor = clippingAncestors[0];
|
|
1171
|
-
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
1172
|
-
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
|
1173
|
-
accRect.top = max(rect.top, accRect.top);
|
|
1174
|
-
accRect.right = min(rect.right, accRect.right);
|
|
1175
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
1176
|
-
accRect.left = max(rect.left, accRect.left);
|
|
1177
|
-
return accRect;
|
|
1178
|
-
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
|
1179
|
-
return {
|
|
1180
|
-
width: clippingRect.right - clippingRect.left,
|
|
1181
|
-
height: clippingRect.bottom - clippingRect.top,
|
|
1182
|
-
x: clippingRect.left,
|
|
1183
|
-
y: clippingRect.top
|
|
1184
|
-
};
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
function getDimensions(element) {
|
|
1188
|
-
const {
|
|
1189
|
-
width,
|
|
1190
|
-
height
|
|
1191
|
-
} = getCssDimensions(element);
|
|
1192
|
-
return {
|
|
1193
|
-
width,
|
|
1194
|
-
height
|
|
1195
|
-
};
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
1199
|
-
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1200
|
-
const documentElement = getDocumentElement(offsetParent);
|
|
1201
|
-
const isFixed = strategy === 'fixed';
|
|
1202
|
-
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
|
1203
|
-
let scroll = {
|
|
1204
|
-
scrollLeft: 0,
|
|
1205
|
-
scrollTop: 0
|
|
1206
|
-
};
|
|
1207
|
-
const offsets = createCoords(0);
|
|
1208
|
-
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1209
|
-
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1210
|
-
scroll = getNodeScroll(offsetParent);
|
|
1211
|
-
}
|
|
1212
|
-
if (isOffsetParentAnElement) {
|
|
1213
|
-
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
1214
|
-
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1215
|
-
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1216
|
-
} else if (documentElement) {
|
|
1217
|
-
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
1218
|
-
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
1219
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
let htmlX = 0;
|
|
1223
|
-
let htmlY = 0;
|
|
1224
|
-
if (documentElement && !isOffsetParentAnElement && !isFixed) {
|
|
1225
|
-
const htmlRect = documentElement.getBoundingClientRect();
|
|
1226
|
-
htmlY = htmlRect.top + scroll.scrollTop;
|
|
1227
|
-
htmlX = htmlRect.left + scroll.scrollLeft -
|
|
1228
|
-
// RTL <body> scrollbar.
|
|
1229
|
-
getWindowScrollBarX(documentElement, htmlRect);
|
|
1230
|
-
}
|
|
1231
|
-
const x = rect.left + scroll.scrollLeft - offsets.x - htmlX;
|
|
1232
|
-
const y = rect.top + scroll.scrollTop - offsets.y - htmlY;
|
|
1233
|
-
return {
|
|
1234
|
-
x,
|
|
1235
|
-
y,
|
|
1236
|
-
width: rect.width,
|
|
1237
|
-
height: rect.height
|
|
1238
|
-
};
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
function isStaticPositioned(element) {
|
|
1242
|
-
return getComputedStyle(element).position === 'static';
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
|
-
function getTrueOffsetParent(element, polyfill) {
|
|
1246
|
-
if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
|
|
1247
|
-
return null;
|
|
1248
|
-
}
|
|
1249
|
-
if (polyfill) {
|
|
1250
|
-
return polyfill(element);
|
|
1251
|
-
}
|
|
1252
|
-
let rawOffsetParent = element.offsetParent;
|
|
1253
|
-
|
|
1254
|
-
// Firefox returns the <html> element as the offsetParent if it's non-static,
|
|
1255
|
-
// while Chrome and Safari return the <body> element. The <body> element must
|
|
1256
|
-
// be used to perform the correct calculations even if the <html> element is
|
|
1257
|
-
// non-static.
|
|
1258
|
-
if (getDocumentElement(element) === rawOffsetParent) {
|
|
1259
|
-
rawOffsetParent = rawOffsetParent.ownerDocument.body;
|
|
1260
|
-
}
|
|
1261
|
-
return rawOffsetParent;
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
1265
|
-
// such as table ancestors and cross browser bugs.
|
|
1266
|
-
function getOffsetParent(element, polyfill) {
|
|
1267
|
-
const win = getWindow(element);
|
|
1268
|
-
if (isTopLayer(element)) {
|
|
1269
|
-
return win;
|
|
1270
|
-
}
|
|
1271
|
-
if (!isHTMLElement(element)) {
|
|
1272
|
-
let svgOffsetParent = getParentNode(element);
|
|
1273
|
-
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
1274
|
-
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
1275
|
-
return svgOffsetParent;
|
|
1276
|
-
}
|
|
1277
|
-
svgOffsetParent = getParentNode(svgOffsetParent);
|
|
1278
|
-
}
|
|
1279
|
-
return win;
|
|
1280
|
-
}
|
|
1281
|
-
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
1282
|
-
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
|
1283
|
-
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
1284
|
-
}
|
|
1285
|
-
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
|
1286
|
-
return win;
|
|
1287
|
-
}
|
|
1288
|
-
return offsetParent || getContainingBlock(element) || win;
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
const getElementRects = async function (data) {
|
|
1292
|
-
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
1293
|
-
const getDimensionsFn = this.getDimensions;
|
|
1294
|
-
const floatingDimensions = await getDimensionsFn(data.floating);
|
|
1295
|
-
return {
|
|
1296
|
-
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
|
1297
|
-
floating: {
|
|
1298
|
-
x: 0,
|
|
1299
|
-
y: 0,
|
|
1300
|
-
width: floatingDimensions.width,
|
|
1301
|
-
height: floatingDimensions.height
|
|
1302
|
-
}
|
|
1303
|
-
};
|
|
1304
|
-
};
|
|
1305
|
-
|
|
1306
|
-
function isRTL(element) {
|
|
1307
|
-
return getComputedStyle(element).direction === 'rtl';
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
const platform = {
|
|
1311
|
-
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
1312
|
-
getDocumentElement,
|
|
1313
|
-
getClippingRect,
|
|
1314
|
-
getOffsetParent,
|
|
1315
|
-
getElementRects,
|
|
1316
|
-
getClientRects,
|
|
1317
|
-
getDimensions,
|
|
1318
|
-
getScale,
|
|
1319
|
-
isElement,
|
|
1320
|
-
isRTL
|
|
1321
|
-
};
|
|
1322
|
-
|
|
1323
|
-
/**
|
|
1324
|
-
* Modifies the placement by translating the floating element along the
|
|
1325
|
-
* specified axes.
|
|
1326
|
-
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
1327
|
-
* object may be passed.
|
|
1328
|
-
* @see https://floating-ui.com/docs/offset
|
|
1329
|
-
*/
|
|
1330
|
-
const offset = offset$1;
|
|
1331
|
-
|
|
1332
|
-
/**
|
|
1333
|
-
* Optimizes the visibility of the floating element by shifting it in order to
|
|
1334
|
-
* keep it in view when it will overflow the clipping boundary.
|
|
1335
|
-
* @see https://floating-ui.com/docs/shift
|
|
1336
|
-
*/
|
|
1337
|
-
const shift = shift$1;
|
|
1338
|
-
|
|
1339
|
-
/**
|
|
1340
|
-
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
1341
|
-
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
1342
|
-
* clipping boundary. Alternative to `autoPlacement`.
|
|
1343
|
-
* @see https://floating-ui.com/docs/flip
|
|
1344
|
-
*/
|
|
1345
|
-
const flip = flip$1;
|
|
1346
|
-
|
|
1347
|
-
/**
|
|
1348
|
-
* Provides data to position an inner element of the floating element so that it
|
|
1349
|
-
* appears centered to the reference element.
|
|
1350
|
-
* @see https://floating-ui.com/docs/arrow
|
|
1351
|
-
*/
|
|
1352
|
-
const arrow = arrow$1;
|
|
1353
|
-
|
|
1354
|
-
/**
|
|
1355
|
-
* Computes the `x` and `y` coordinates that will place the floating element
|
|
1356
|
-
* next to a given reference element.
|
|
1357
|
-
*/
|
|
1358
|
-
const computePosition = (reference, floating, options) => {
|
|
1359
|
-
// This caches the expensive `getClippingElementAncestors` function so that
|
|
1360
|
-
// multiple lifecycle resets re-use the same result. It only lives for a
|
|
1361
|
-
// single call. If other functions become expensive, we can add them as well.
|
|
1362
|
-
const cache = new Map();
|
|
1363
|
-
const mergedOptions = {
|
|
1364
|
-
platform,
|
|
1365
|
-
...options
|
|
1366
|
-
};
|
|
1367
|
-
const platformWithCache = {
|
|
1368
|
-
...mergedOptions.platform,
|
|
1369
|
-
_c: cache
|
|
1370
|
-
};
|
|
1371
|
-
return computePosition$1(reference, floating, {
|
|
1372
|
-
...mergedOptions,
|
|
1373
|
-
platform: platformWithCache
|
|
1374
|
-
});
|
|
1375
|
-
};
|
|
1376
|
-
|
|
1377
|
-
const appendToMap = (map, propName, value) => {
|
|
1378
|
-
const items = map.get(propName);
|
|
1379
|
-
if (!items) {
|
|
1380
|
-
map.set(propName, [value]);
|
|
1381
|
-
}
|
|
1382
|
-
else if (!items.includes(value)) {
|
|
1383
|
-
items.push(value);
|
|
1384
|
-
}
|
|
1385
|
-
};
|
|
1386
|
-
const debounce = (fn, ms) => {
|
|
1387
|
-
let timeoutId;
|
|
1388
|
-
return (...args) => {
|
|
1389
|
-
if (timeoutId) {
|
|
1390
|
-
clearTimeout(timeoutId);
|
|
1391
|
-
}
|
|
1392
|
-
timeoutId = setTimeout(() => {
|
|
1393
|
-
timeoutId = 0;
|
|
1394
|
-
fn(...args);
|
|
1395
|
-
}, ms);
|
|
1396
|
-
};
|
|
1397
|
-
};
|
|
1398
|
-
|
|
1399
|
-
/**
|
|
1400
|
-
* Check if a possible element isConnected.
|
|
1401
|
-
* The property might not be there, so we check for it.
|
|
1402
|
-
*
|
|
1403
|
-
* We want it to return true if isConnected is not a property,
|
|
1404
|
-
* otherwise we would remove these elements and would not update.
|
|
1405
|
-
*
|
|
1406
|
-
* Better leak in Edge than to be useless.
|
|
1407
|
-
*/
|
|
1408
|
-
const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
|
|
1409
|
-
const cleanupElements = debounce((map) => {
|
|
1410
|
-
for (let key of map.keys()) {
|
|
1411
|
-
map.set(key, map.get(key).filter(isConnected));
|
|
1412
|
-
}
|
|
1413
|
-
}, 2_000);
|
|
1414
|
-
const stencilSubscription = () => {
|
|
1415
|
-
if (typeof getRenderingRef !== 'function') {
|
|
1416
|
-
// If we are not in a stencil project, we do nothing.
|
|
1417
|
-
// This function is not really exported by @stencil/core.
|
|
1418
|
-
return {};
|
|
1419
|
-
}
|
|
1420
|
-
const elmsToUpdate = new Map();
|
|
1421
|
-
return {
|
|
1422
|
-
dispose: () => elmsToUpdate.clear(),
|
|
1423
|
-
get: (propName) => {
|
|
1424
|
-
const elm = getRenderingRef();
|
|
1425
|
-
if (elm) {
|
|
1426
|
-
appendToMap(elmsToUpdate, propName, elm);
|
|
1427
|
-
}
|
|
1428
|
-
},
|
|
1429
|
-
set: (propName) => {
|
|
1430
|
-
const elements = elmsToUpdate.get(propName);
|
|
1431
|
-
if (elements) {
|
|
1432
|
-
elmsToUpdate.set(propName, elements.filter(forceUpdate));
|
|
1433
|
-
}
|
|
1434
|
-
cleanupElements(elmsToUpdate);
|
|
1435
|
-
},
|
|
1436
|
-
reset: () => {
|
|
1437
|
-
elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
|
|
1438
|
-
cleanupElements(elmsToUpdate);
|
|
1439
|
-
},
|
|
1440
|
-
};
|
|
1441
|
-
};
|
|
1442
|
-
|
|
1443
|
-
const unwrap = (val) => (typeof val === 'function' ? val() : val);
|
|
1444
|
-
const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
|
|
1445
|
-
const unwrappedState = unwrap(defaultState);
|
|
1446
|
-
let states = new Map(Object.entries(unwrappedState ?? {}));
|
|
1447
|
-
const handlers = {
|
|
1448
|
-
dispose: [],
|
|
1449
|
-
get: [],
|
|
1450
|
-
set: [],
|
|
1451
|
-
reset: [],
|
|
1452
|
-
};
|
|
1453
|
-
// Track onChange listeners to enable removeListener functionality
|
|
1454
|
-
const changeListeners = new Map();
|
|
1455
|
-
const reset = () => {
|
|
1456
|
-
// When resetting the state, the default state may be a function - unwrap it to invoke it.
|
|
1457
|
-
// otherwise, the state won't be properly reset
|
|
1458
|
-
states = new Map(Object.entries(unwrap(defaultState) ?? {}));
|
|
1459
|
-
handlers.reset.forEach((cb) => cb());
|
|
1460
|
-
};
|
|
1461
|
-
const dispose = () => {
|
|
1462
|
-
// Call first dispose as resetting the state would
|
|
1463
|
-
// cause less updates ;)
|
|
1464
|
-
handlers.dispose.forEach((cb) => cb());
|
|
1465
|
-
reset();
|
|
1466
|
-
};
|
|
1467
|
-
const get = (propName) => {
|
|
1468
|
-
handlers.get.forEach((cb) => cb(propName));
|
|
1469
|
-
return states.get(propName);
|
|
1470
|
-
};
|
|
1471
|
-
const set = (propName, value) => {
|
|
1472
|
-
const oldValue = states.get(propName);
|
|
1473
|
-
if (shouldUpdate(value, oldValue, propName)) {
|
|
1474
|
-
states.set(propName, value);
|
|
1475
|
-
handlers.set.forEach((cb) => cb(propName, value, oldValue));
|
|
1476
|
-
}
|
|
1477
|
-
};
|
|
1478
|
-
const state = (typeof Proxy === 'undefined'
|
|
1479
|
-
? {}
|
|
1480
|
-
: new Proxy(unwrappedState, {
|
|
1481
|
-
get(_, propName) {
|
|
1482
|
-
return get(propName);
|
|
1483
|
-
},
|
|
1484
|
-
ownKeys(_) {
|
|
1485
|
-
return Array.from(states.keys());
|
|
1486
|
-
},
|
|
1487
|
-
getOwnPropertyDescriptor() {
|
|
1488
|
-
return {
|
|
1489
|
-
enumerable: true,
|
|
1490
|
-
configurable: true,
|
|
1491
|
-
};
|
|
1492
|
-
},
|
|
1493
|
-
has(_, propName) {
|
|
1494
|
-
return states.has(propName);
|
|
1495
|
-
},
|
|
1496
|
-
set(_, propName, value) {
|
|
1497
|
-
set(propName, value);
|
|
1498
|
-
return true;
|
|
1499
|
-
},
|
|
1500
|
-
}));
|
|
1501
|
-
const on = (eventName, callback) => {
|
|
1502
|
-
handlers[eventName].push(callback);
|
|
1503
|
-
return () => {
|
|
1504
|
-
removeFromArray(handlers[eventName], callback);
|
|
1505
|
-
};
|
|
1506
|
-
};
|
|
1507
|
-
const onChange = (propName, cb) => {
|
|
1508
|
-
const setHandler = (key, newValue) => {
|
|
1509
|
-
if (key === propName) {
|
|
1510
|
-
cb(newValue);
|
|
1511
|
-
}
|
|
1512
|
-
};
|
|
1513
|
-
const resetHandler = () => cb(unwrap(defaultState)[propName]);
|
|
1514
|
-
// Register the handlers
|
|
1515
|
-
const unSet = on('set', setHandler);
|
|
1516
|
-
const unReset = on('reset', resetHandler);
|
|
1517
|
-
// Track the relationship between the user callback and internal handlers
|
|
1518
|
-
changeListeners.set(cb, { setHandler, resetHandler, propName });
|
|
1519
|
-
return () => {
|
|
1520
|
-
unSet();
|
|
1521
|
-
unReset();
|
|
1522
|
-
changeListeners.delete(cb);
|
|
1523
|
-
};
|
|
1524
|
-
};
|
|
1525
|
-
const use = (...subscriptions) => {
|
|
1526
|
-
const unsubs = subscriptions.reduce((unsubs, subscription) => {
|
|
1527
|
-
if (subscription.set) {
|
|
1528
|
-
unsubs.push(on('set', subscription.set));
|
|
1529
|
-
}
|
|
1530
|
-
if (subscription.get) {
|
|
1531
|
-
unsubs.push(on('get', subscription.get));
|
|
1532
|
-
}
|
|
1533
|
-
if (subscription.reset) {
|
|
1534
|
-
unsubs.push(on('reset', subscription.reset));
|
|
1535
|
-
}
|
|
1536
|
-
if (subscription.dispose) {
|
|
1537
|
-
unsubs.push(on('dispose', subscription.dispose));
|
|
1538
|
-
}
|
|
1539
|
-
return unsubs;
|
|
1540
|
-
}, []);
|
|
1541
|
-
return () => unsubs.forEach((unsub) => unsub());
|
|
1542
|
-
};
|
|
1543
|
-
const forceUpdate = (key) => {
|
|
1544
|
-
const oldValue = states.get(key);
|
|
1545
|
-
handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
|
|
1546
|
-
};
|
|
1547
|
-
const removeListener = (propName, listener) => {
|
|
1548
|
-
const listenerInfo = changeListeners.get(listener);
|
|
1549
|
-
if (listenerInfo && listenerInfo.propName === propName) {
|
|
1550
|
-
// Remove the specific handlers that were created for this listener
|
|
1551
|
-
removeFromArray(handlers.set, listenerInfo.setHandler);
|
|
1552
|
-
removeFromArray(handlers.reset, listenerInfo.resetHandler);
|
|
1553
|
-
changeListeners.delete(listener);
|
|
1554
|
-
}
|
|
1555
|
-
};
|
|
1556
|
-
return {
|
|
1557
|
-
state,
|
|
1558
|
-
get,
|
|
1559
|
-
set,
|
|
1560
|
-
on,
|
|
1561
|
-
onChange,
|
|
1562
|
-
use,
|
|
1563
|
-
dispose,
|
|
1564
|
-
reset,
|
|
1565
|
-
forceUpdate,
|
|
1566
|
-
removeListener,
|
|
1567
|
-
};
|
|
1568
|
-
};
|
|
1569
|
-
const removeFromArray = (array, item) => {
|
|
1570
|
-
const index = array.indexOf(item);
|
|
1571
|
-
if (index >= 0) {
|
|
1572
|
-
array[index] = array[array.length - 1];
|
|
1573
|
-
array.length--;
|
|
1574
|
-
}
|
|
1575
|
-
};
|
|
1576
|
-
|
|
1577
|
-
const createStore = (defaultState, shouldUpdate) => {
|
|
1578
|
-
const map = createObservableMap(defaultState, shouldUpdate);
|
|
1579
|
-
map.use(stencilSubscription());
|
|
1580
|
-
return map;
|
|
1581
|
-
};
|
|
1582
|
-
|
|
1583
|
-
const nvPopoverCss = "nv-popover{display:inline-block;position:relative}nv-popover:has([fluid]:not([fluid=false])){display:block}nv-popover[strategy=fixed]{position:static}nv-popover>[data-scope=popover]{width:max-content;background-color:var(--components-popover-background);border-color:var(--components-popover-border);font-weight:var(--font-weight-medium-emphasis);border-width:1px;border-style:solid;border-radius:var(--popover-radius);padding:var(--popover-padding-y) var(--popover-padding-x);position:absolute;top:0;left:0;z-index:1;box-shadow:var(--popover-shadow-1-x) var(--popover-shadow-1-y) var(--popover-shadow-1-blur) -2px var(--popover-shadow-1-opacity), var(--popover-shadow-2-x) var(--popover-shadow-2-y) var(--popover-shadow-2-blur) var(--shadow-spread-lg-2) var(--popover-shadow-2-opacity)}nv-popover>[data-scope=popover][hidden]:not([hidden=false]){display:none}nv-popover>[data-scope=popover][data-strategy=fixed]{position:fixed;z-index:9999}nv-popover>[data-scope=popover]>[data-scope=arrow]{background-color:var(--components-popover-background);position:absolute;border-color:var(--components-popover-border);border-width:1px;border-style:solid;border-bottom-color:transparent;border-right-color:transparent;width:8px;height:8px;transform:rotate(45deg);border-radius:1px}nv-popover>[data-scope=popover]>[slot=content]{position:relative;z-index:1}nv-popover>slot-fb{display:none}";
|
|
1584
|
-
|
|
1585
|
-
const { state } = createStore({
|
|
1586
|
-
groups: new Map(),
|
|
1587
|
-
});
|
|
1588
|
-
const NvPopover = /*@__PURE__*/ proxyCustomElement(class NvPopover extends H {
|
|
1589
|
-
constructor(registerHost) {
|
|
1590
|
-
super();
|
|
1591
|
-
if (registerHost !== false) {
|
|
1592
|
-
this.__registerHost();
|
|
1593
|
-
}
|
|
1594
|
-
this.openChanged = createEvent(this, "openChanged", 3);
|
|
1595
|
-
this.eventsAttached = false;
|
|
1596
|
-
this.isAnimating = false;
|
|
1597
|
-
this.clickEvents = [
|
|
1598
|
-
['click', () => (this.open = !this.open)],
|
|
1599
|
-
];
|
|
1600
|
-
this.hoverEvents = [
|
|
1601
|
-
[
|
|
1602
|
-
'focus',
|
|
1603
|
-
() => {
|
|
1604
|
-
clearTimeout(this.hideTimeout);
|
|
1605
|
-
this.showTimeout = setTimeout(() => (this.open = true), this.enterDelay);
|
|
1606
|
-
},
|
|
1607
|
-
],
|
|
1608
|
-
[
|
|
1609
|
-
'blur',
|
|
1610
|
-
() => {
|
|
1611
|
-
clearTimeout(this.showTimeout);
|
|
1612
|
-
this.hideTimeout = setTimeout(() => (this.open = false), 50);
|
|
1613
|
-
},
|
|
1614
|
-
],
|
|
1615
|
-
[
|
|
1616
|
-
'mouseenter',
|
|
1617
|
-
() => {
|
|
1618
|
-
clearTimeout(this.hideTimeout);
|
|
1619
|
-
this.showTimeout = setTimeout(() => (this.open = true), this.enterDelay);
|
|
1620
|
-
},
|
|
1621
|
-
],
|
|
1622
|
-
[
|
|
1623
|
-
'mouseleave',
|
|
1624
|
-
() => {
|
|
1625
|
-
clearTimeout(this.showTimeout);
|
|
1626
|
-
this.hideTimeout = setTimeout(() => (this.open = false), 100);
|
|
1627
|
-
},
|
|
1628
|
-
],
|
|
1629
|
-
];
|
|
1630
|
-
this.closeEvents = [
|
|
1631
|
-
[
|
|
1632
|
-
'keydown',
|
|
1633
|
-
(e) => {
|
|
1634
|
-
if (e.key === 'Escape' && this.triggerMode !== 'controlled') {
|
|
1635
|
-
this.open = false;
|
|
1636
|
-
}
|
|
1637
|
-
},
|
|
1638
|
-
],
|
|
1639
|
-
];
|
|
1640
|
-
/**
|
|
1641
|
-
* Use this prop to toggle the visibility of the popover. Set to true to show
|
|
1642
|
-
* the popover and false to hide it.
|
|
1643
|
-
*/
|
|
1644
|
-
this.open = false;
|
|
1645
|
-
/**
|
|
1646
|
-
* Sets the interaction mode for triggering the popover. Options include:
|
|
1647
|
-
* - `hover`: The popover is shown on trigger hover.
|
|
1648
|
-
* - `click`: The popover toggles on trigger click.
|
|
1649
|
-
* - `controlled`: The visibility is managed manually through methods or the
|
|
1650
|
-
* open prop.
|
|
1651
|
-
*/
|
|
1652
|
-
this.triggerMode = 'click';
|
|
1653
|
-
/**
|
|
1654
|
-
* Defines where the popover appears relative to the trigger.
|
|
1655
|
-
*/
|
|
1656
|
-
this.placement = 'bottom';
|
|
1657
|
-
/**
|
|
1658
|
-
* Sets the positioning strategy for the popover. Options include:
|
|
1659
|
-
* - `absolute`: Positions the popover relative to the trigger element
|
|
1660
|
-
* (default).
|
|
1661
|
-
* - `fixed`: Positions the popover relative to the viewport, useful when you
|
|
1662
|
-
* need the popover to break out of overflow hidden containers, it will not
|
|
1663
|
-
* scroll inside a scroll container due to the fixed positioning.
|
|
1664
|
-
*/
|
|
1665
|
-
this.strategy = 'absolute';
|
|
1666
|
-
/**
|
|
1667
|
-
* Adjust the gap between the popover and its trigger element by setting how
|
|
1668
|
-
* many pixels they should be apart.
|
|
1669
|
-
*/
|
|
1670
|
-
this.offset = 6;
|
|
1671
|
-
/**
|
|
1672
|
-
* Use this to decide if the popover should include a small arrow pointing to
|
|
1673
|
-
* the trigger element, making the connection between them more clear.
|
|
1674
|
-
*/
|
|
1675
|
-
this.hasArrow = false;
|
|
1676
|
-
/**
|
|
1677
|
-
* Disables the automatic flipping of the popover when the trigger element is
|
|
1678
|
-
* out of the viewport. The popover will flip automatically by default.
|
|
1679
|
-
*/
|
|
1680
|
-
this.disableFlip = false;
|
|
1681
|
-
/**
|
|
1682
|
-
* Sets how many pixels the popover should stay from the edge of the viewport.
|
|
1683
|
-
*/
|
|
1684
|
-
this.shiftPadding = 0;
|
|
1685
|
-
/**
|
|
1686
|
-
* Use this to set a delay before the popover appears on hover. If the mouse
|
|
1687
|
-
* leaves before this time, the popover won't show. This only works when the
|
|
1688
|
-
* trigger mode is set to `hover`.
|
|
1689
|
-
*/
|
|
1690
|
-
this.enterDelay = 0;
|
|
1691
|
-
/**
|
|
1692
|
-
* Use this to set the popover to be nested inside another popover. This will
|
|
1693
|
-
* prevent the parent popover from closing when the child popover is opened.
|
|
1694
|
-
*/
|
|
1695
|
-
this.nested = false;
|
|
1696
|
-
/**
|
|
1697
|
-
* Handles the click outside event.
|
|
1698
|
-
* @param {MouseEvent | TouchEvent} event - The event object.
|
|
1699
|
-
*/
|
|
1700
|
-
this.handleClickOutside = (event) => {
|
|
1701
|
-
// This popover should close when the user clicks outside of it.
|
|
1702
|
-
if (this.el.contains(event.target))
|
|
1703
|
-
return;
|
|
1704
|
-
if (this.triggerElement?.contains(event.target))
|
|
1705
|
-
return;
|
|
1706
|
-
this.open = false;
|
|
1707
|
-
};
|
|
1708
|
-
//#endregion METHODS
|
|
1709
|
-
/****************************************************************************/
|
|
1710
|
-
//#region HELPERS
|
|
1711
|
-
this.outsideClickEvents = [
|
|
1712
|
-
['click', this.handleClickOutside],
|
|
1713
|
-
['touchstart', this.handleClickOutside],
|
|
1714
|
-
];
|
|
1715
|
-
}
|
|
1716
|
-
//#endregion PROPERTIES
|
|
1717
|
-
/****************************************************************************/
|
|
1718
|
-
//#region METHODS
|
|
1719
|
-
/**
|
|
1720
|
-
* Call this method to show the popover, making it visible on the screen.
|
|
1721
|
-
*/
|
|
1722
|
-
async show() {
|
|
1723
|
-
this.open = true;
|
|
1724
|
-
}
|
|
1725
|
-
/**
|
|
1726
|
-
* Use this method to hide the popover, making it disappear from view.
|
|
1727
|
-
*/
|
|
1728
|
-
async hide() {
|
|
1729
|
-
this.open = false;
|
|
1730
|
-
}
|
|
1731
|
-
/**
|
|
1732
|
-
* Call this method to toggle between showing and hiding the popover, based on
|
|
1733
|
-
* its current state.
|
|
1734
|
-
*/
|
|
1735
|
-
async toggle() {
|
|
1736
|
-
this.open = !this.open;
|
|
1737
|
-
}
|
|
1738
|
-
/**
|
|
1739
|
-
* Attaches event listeners to the trigger element, and makes sure this only
|
|
1740
|
-
* happens once.
|
|
1741
|
-
*/
|
|
1742
|
-
attachEventListeners() {
|
|
1743
|
-
if (this.triggerElement && !this.eventsAttached) {
|
|
1744
|
-
addEventListeners(this.closeEvents, document, this);
|
|
1745
|
-
if (this.triggerMode === 'click') {
|
|
1746
|
-
addEventListeners(this.clickEvents, this.triggerElement, this);
|
|
1747
|
-
// Add document click and touch listeners
|
|
1748
|
-
addEventListeners(this.outsideClickEvents, document, this);
|
|
1749
|
-
}
|
|
1750
|
-
if (this.triggerMode === 'hover') {
|
|
1751
|
-
addEventListeners(this.hoverEvents, this.triggerElement, this);
|
|
1752
|
-
}
|
|
1753
|
-
this.eventsAttached = true;
|
|
1754
|
-
}
|
|
1755
|
-
}
|
|
1756
|
-
/**
|
|
1757
|
-
* Calculates the position of the popover relative to the trigger.
|
|
1758
|
-
* @docs https://floating-ui.com/docs/computePosition
|
|
1759
|
-
*/
|
|
1760
|
-
positionPopover() {
|
|
1761
|
-
if (!this.triggerElement)
|
|
1762
|
-
return;
|
|
1763
|
-
computePosition(this.triggerElement, this.popoverElement, {
|
|
1764
|
-
placement: this.placement,
|
|
1765
|
-
strategy: this.strategy,
|
|
1766
|
-
middleware: [
|
|
1767
|
-
offset(this.offset),
|
|
1768
|
-
!this.disableFlip &&
|
|
1769
|
-
flip({
|
|
1770
|
-
fallbackStrategy: 'bestFit',
|
|
1771
|
-
crossAxis: true,
|
|
1772
|
-
fallbackPlacements: ['bottom'],
|
|
1773
|
-
}),
|
|
1774
|
-
shift({ padding: this.shiftPadding }),
|
|
1775
|
-
this.hasArrow && arrow({ element: this.arrowElement }),
|
|
1776
|
-
],
|
|
1777
|
-
}).then(({ x, y, placement, middlewareData, strategy }) => {
|
|
1778
|
-
Object.assign(this.popoverElement.style, {
|
|
1779
|
-
left: `${x}px`,
|
|
1780
|
-
top: `${y}px`,
|
|
1781
|
-
position: strategy,
|
|
1782
|
-
});
|
|
1783
|
-
if (this.hasArrow) {
|
|
1784
|
-
const staticSide = {
|
|
1785
|
-
top: 'bottom',
|
|
1786
|
-
right: 'left',
|
|
1787
|
-
bottom: 'top',
|
|
1788
|
-
left: 'right',
|
|
1789
|
-
}[placement.split('-')[0]];
|
|
1790
|
-
const transform = {
|
|
1791
|
-
top: 'rotate(225deg)',
|
|
1792
|
-
right: 'rotate(315deg)',
|
|
1793
|
-
bottom: 'rotate(45deg)',
|
|
1794
|
-
left: 'rotate(135deg)',
|
|
1795
|
-
}[placement.split('-')[0]];
|
|
1796
|
-
const { x: arrowX, y: arrowY } = middlewareData.arrow;
|
|
1797
|
-
Object.assign(this.arrowElement.style, {
|
|
1798
|
-
left: arrowX != null ? `${arrowX}px` : '',
|
|
1799
|
-
top: arrowY != null ? `${arrowY}px` : '',
|
|
1800
|
-
right: '',
|
|
1801
|
-
bottom: '',
|
|
1802
|
-
transform,
|
|
1803
|
-
[staticSide]: '-4px',
|
|
1804
|
-
});
|
|
1805
|
-
}
|
|
1806
|
-
});
|
|
1807
|
-
}
|
|
1808
|
-
//#endregion EVENTS
|
|
1809
|
-
/****************************************************************************/
|
|
1810
|
-
//#region WATCHERS
|
|
1811
|
-
async handleOpenChange(open) {
|
|
1812
|
-
// Prevent multiple animations from running at the same time.
|
|
1813
|
-
while (this.isAnimating) {
|
|
1814
|
-
await new Promise(resolve => setTimeout(resolve, 50));
|
|
1815
|
-
}
|
|
1816
|
-
this.isAnimating = true;
|
|
1817
|
-
const group = state.groups.get(this.groupName);
|
|
1818
|
-
const isOtherMemberOpen = group && group.openedBy !== this.el;
|
|
1819
|
-
const isThisMemberOpen = group && group.openedBy === this.el;
|
|
1820
|
-
if (open)
|
|
1821
|
-
this.popoverElement.style.removeProperty('display');
|
|
1822
|
-
if (isThisMemberOpen && !open)
|
|
1823
|
-
state.groups.delete(this.groupName);
|
|
1824
|
-
if (this.groupName && open)
|
|
1825
|
-
state.groups.set(this.groupName, { openedBy: this.el });
|
|
1826
|
-
const { growIn } = useGrow(this.popoverElement, {
|
|
1827
|
-
duration: isOtherMemberOpen ? 0 : 100,
|
|
1828
|
-
amount: 0.85,
|
|
1829
|
-
});
|
|
1830
|
-
const { fadeOut } = useFade(this.popoverElement, {
|
|
1831
|
-
duration: isOtherMemberOpen ? 0 : 100,
|
|
1832
|
-
});
|
|
1833
|
-
if (open === true) {
|
|
1834
|
-
this.popoverElement.removeAttribute('hidden');
|
|
1835
|
-
this.positionPopover();
|
|
1836
|
-
await growIn();
|
|
1837
|
-
}
|
|
1838
|
-
if (open === false) {
|
|
1839
|
-
await fadeOut();
|
|
1840
|
-
this.popoverElement.setAttribute('hidden', '');
|
|
1841
|
-
}
|
|
1842
|
-
this.isAnimating = false;
|
|
1843
|
-
this.openChanged.emit(open);
|
|
1844
|
-
}
|
|
1845
|
-
handleStrategyChange() {
|
|
1846
|
-
if (this.open) {
|
|
1847
|
-
this.positionPopover();
|
|
1848
|
-
}
|
|
1849
|
-
}
|
|
1850
|
-
//#endregion WATCHERS
|
|
1851
|
-
/****************************************************************************/
|
|
1852
|
-
//#region LIFECYCLE
|
|
1853
|
-
componentWillLoad() {
|
|
1854
|
-
if (!this.triggerElement)
|
|
1855
|
-
this.triggerElement = Array.from(this.el.children).find(child => child.getAttribute('slot') === 'trigger');
|
|
1856
|
-
}
|
|
1857
|
-
componentWillUpdate() {
|
|
1858
|
-
this.attachEventListeners();
|
|
1859
|
-
}
|
|
1860
|
-
componentDidLoad() {
|
|
1861
|
-
// Initial inline style setup
|
|
1862
|
-
if (!this.open) {
|
|
1863
|
-
const { setGrowOut } = useGrow(this.popoverElement);
|
|
1864
|
-
setGrowOut();
|
|
1865
|
-
}
|
|
1866
|
-
else {
|
|
1867
|
-
const { setFadeIn } = useFade(this.popoverElement);
|
|
1868
|
-
setFadeIn();
|
|
1869
|
-
this.popoverElement.removeAttribute('hidden');
|
|
1870
|
-
}
|
|
1871
|
-
this.positionPopover();
|
|
1872
|
-
this.attachEventListeners();
|
|
1873
|
-
}
|
|
1874
|
-
disconnectedCallback() {
|
|
1875
|
-
removeEventListeners(this.closeEvents, document, this);
|
|
1876
|
-
if (this.triggerMode === 'click') {
|
|
1877
|
-
removeEventListeners(this.clickEvents, this.triggerElement, this);
|
|
1878
|
-
// Remove document listeners
|
|
1879
|
-
removeEventListeners(this.outsideClickEvents, document, this);
|
|
1880
|
-
}
|
|
1881
|
-
if (this.triggerMode === 'hover')
|
|
1882
|
-
removeEventListeners(this.hoverEvents, this.triggerElement, this);
|
|
1883
|
-
// Reset flag so events can be reattached if component is reconnected
|
|
1884
|
-
this.eventsAttached = false;
|
|
1885
|
-
// Clean up any pending timeouts
|
|
1886
|
-
if (this.hideTimeout)
|
|
1887
|
-
clearTimeout(this.hideTimeout);
|
|
1888
|
-
if (this.showTimeout)
|
|
1889
|
-
clearTimeout(this.showTimeout);
|
|
1890
|
-
}
|
|
1891
|
-
//#endregion LIFECYCLE
|
|
1892
|
-
/****************************************************************************/
|
|
1893
|
-
//#region RENDER
|
|
1894
|
-
render() {
|
|
1895
|
-
return (h(Host, { key: '3505c77a628a1c612d937703777b72459a71e256' }, h("slot", { key: '36596c5ca1b182ed5d9f723b81398cf54923bd83', name: "trigger" }), h("div", { key: 'efc6da5c69cefad2611f0b9fa96d072ddc48d07a', "data-scope": "popover", "data-strategy": this.strategy, hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (h("div", { key: '9439cf1c7fdadfd9538c4ed186d4c54300d00e95', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), h("slot", { key: '868cd1ce1ac648f4446aa6d4f86069551c208d1f', name: "content" }))));
|
|
1896
|
-
}
|
|
1897
|
-
get el() { return this; }
|
|
1898
|
-
static get watchers() { return {
|
|
1899
|
-
"open": ["handleOpenChange"],
|
|
1900
|
-
"strategy": ["handleStrategyChange"]
|
|
1901
|
-
}; }
|
|
1902
|
-
static get style() { return nvPopoverCss; }
|
|
1903
|
-
}, [260, "nv-popover", {
|
|
1904
|
-
"triggerElement": [1040],
|
|
1905
|
-
"open": [1540],
|
|
1906
|
-
"triggerMode": [513, "trigger-mode"],
|
|
1907
|
-
"placement": [513],
|
|
1908
|
-
"strategy": [513],
|
|
1909
|
-
"groupName": [513, "group-name"],
|
|
1910
|
-
"offset": [514],
|
|
1911
|
-
"hasArrow": [516, "has-arrow"],
|
|
1912
|
-
"disableFlip": [516, "disable-flip"],
|
|
1913
|
-
"shiftPadding": [514, "shift-padding"],
|
|
1914
|
-
"enterDelay": [514, "enter-delay"],
|
|
1915
|
-
"nested": [516],
|
|
1916
|
-
"show": [64],
|
|
1917
|
-
"hide": [64],
|
|
1918
|
-
"toggle": [64]
|
|
1919
|
-
}, undefined, {
|
|
1920
|
-
"open": ["handleOpenChange"],
|
|
1921
|
-
"strategy": ["handleStrategyChange"]
|
|
1922
|
-
}]);
|
|
1923
|
-
function defineCustomElement() {
|
|
1924
|
-
if (typeof customElements === "undefined") {
|
|
1925
|
-
return;
|
|
1926
|
-
}
|
|
1927
|
-
const components = ["nv-popover"];
|
|
1928
|
-
components.forEach(tagName => { switch (tagName) {
|
|
1929
|
-
case "nv-popover":
|
|
1930
|
-
if (!customElements.get(tagName)) {
|
|
1931
|
-
customElements.define(tagName, NvPopover);
|
|
1932
|
-
}
|
|
1933
|
-
break;
|
|
1934
|
-
} });
|
|
1935
|
-
}
|
|
1936
|
-
defineCustomElement();
|
|
1937
|
-
|
|
1938
|
-
export { NvPopover as N, defineCustomElement as d };
|
|
1939
|
-
//# sourceMappingURL=p-B9i3m6rk.js.map
|
|
1940
|
-
|
|
1941
|
-
//# sourceMappingURL=p-B9i3m6rk.js.map
|