@nova-design-system/nova-webcomponents 3.31.1-beta.1 → 3.31.2-beta.3
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/THIRD_PARTY_NOTICES.txt +117535 -0
- package/dist/cjs/accessibility.utils-CeSsswXF.js +78 -0
- package/dist/cjs/{index-BvJsoRtw.js → index-BfQyuDYm.js} +6 -1
- package/dist/cjs/index.cjs.js +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/native.cjs.js +2 -2
- package/dist/cjs/nv-accordion-item.cjs.entry.js +9 -8
- package/dist/cjs/nv-accordion.cjs.entry.js +1 -1
- package/dist/cjs/nv-alert.cjs.entry.js +1 -1
- package/dist/cjs/nv-avatar.cjs.entry.js +1 -1
- package/dist/cjs/nv-badge_2.cjs.entry.js +1 -1
- package/dist/cjs/nv-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/nv-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/nv-button.cjs.entry.js +4 -3
- package/dist/cjs/nv-buttongroup.cjs.entry.js +1 -1
- package/dist/cjs/nv-calendar.cjs.entry.js +1 -1
- package/dist/cjs/nv-col.cjs.entry.js +1 -1
- package/dist/cjs/nv-datagrid.cjs.entry.js +1 -1
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js +1 -1
- package/dist/cjs/nv-datetest.cjs.entry.js +1 -1
- package/dist/cjs/nv-datetimetest.cjs.entry.js +1 -1
- package/dist/cjs/nv-dialog.cjs.entry.js +4 -3
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +1 -1
- package/dist/cjs/nv-drawer.cjs.entry.js +4 -3
- package/dist/cjs/nv-drawerfooter_2.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +1 -1
- package/dist/cjs/nv-fielddate.cjs.entry.js +1 -1
- package/dist/cjs/nv-fielddaterange.cjs.entry.js +1 -1
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +1 -1
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +4 -3
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldradio.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldselect.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldslider.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldtext.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldtime.cjs.entry.js +1 -1
- package/dist/cjs/nv-icon.cjs.entry.js +2 -2
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js +4 -3
- package/dist/cjs/nv-menu.cjs.entry.js +1 -1
- package/dist/cjs/nv-menuitem.cjs.entry.js +4 -3
- package/dist/cjs/nv-notification-bullet.cjs.entry.js +1 -1
- package/dist/cjs/nv-notification.cjs.entry.js +1 -1
- package/dist/cjs/nv-notificationcontainer.cjs.entry.js +1 -1
- package/dist/cjs/nv-pagination-nav.cjs.entry.js +1 -1
- package/dist/cjs/nv-paginationtable.cjs.entry.js +1 -1
- package/dist/cjs/nv-pill.cjs.entry.js +285 -0
- package/dist/cjs/nv-popover.cjs.entry.js +2 -2
- package/dist/cjs/nv-row.cjs.entry.js +2 -2
- package/dist/cjs/nv-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/nv-sidebarcontent.cjs.entry.js +2 -2
- package/dist/cjs/nv-sidebardivider.cjs.entry.js +2 -2
- package/dist/cjs/nv-sidebarfooter.cjs.entry.js +2 -2
- package/dist/cjs/nv-sidebargroup.cjs.entry.js +2 -2
- package/dist/cjs/nv-sidebarheader.cjs.entry.js +2 -2
- package/dist/cjs/nv-sidebarlogo.cjs.entry.js +2 -2
- package/dist/cjs/nv-sidebarnavitem.cjs.entry.js +3 -3
- package/dist/cjs/nv-sidebarnavsubitem.cjs.entry.js +2 -2
- package/dist/cjs/nv-split.cjs.entry.js +2 -2
- package/dist/cjs/nv-stack.cjs.entry.js +2 -2
- package/dist/cjs/nv-statusindicator.cjs.entry.js +2 -2
- package/dist/cjs/nv-table.cjs.entry.js +2 -2
- package/dist/cjs/nv-tableheader.cjs.entry.js +4 -3
- package/dist/cjs/nv-tag.cjs.entry.js +1 -1
- package/dist/cjs/nv-timetest.cjs.entry.js +2 -2
- package/dist/cjs/nv-toggle.cjs.entry.js +3 -3
- package/dist/cjs/nv-togglebutton.cjs.entry.js +4 -3
- package/dist/cjs/nv-togglebuttongroup.cjs.entry.js +2 -2
- package/dist/cjs/nv-tooltip.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.js +8 -7
- package/dist/collection/components/nv-alert/nv-alert.js +1 -1
- package/dist/collection/components/nv-badge/nv-badge.js +2 -2
- package/dist/collection/components/nv-button/nv-button.js +3 -2
- package/dist/collection/components/nv-dialog/nv-dialog.js +3 -2
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js +2 -2
- package/dist/collection/components/nv-drawer/nv-drawer.js +3 -2
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.js +2 -2
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +3 -2
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +2 -2
- package/dist/collection/components/nv-icon/nv-icon.js +1 -1
- package/dist/collection/components/nv-icon/nv-icons.js +1 -0
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +4 -3
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +4 -3
- package/dist/collection/components/nv-notification/nv-notification.js +1 -1
- package/dist/collection/components/nv-pill/nv-pill.css +88 -0
- package/dist/collection/components/nv-pill/nv-pill.docs.js +104 -0
- package/dist/collection/components/nv-pill/nv-pill.js +464 -0
- package/dist/collection/components/nv-popover/nv-popover.js +1 -1
- package/dist/collection/components/nv-row/nv-row.js +1 -1
- package/dist/collection/components/nv-sidebar/nv-sidebar.js +2 -2
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.js +1 -1
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.js +1 -1
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.js +1 -1
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.js +1 -1
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.js +1 -1
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.js +1 -1
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.js +3 -3
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.js +1 -1
- package/dist/collection/components/nv-split/nv-split.js +1 -1
- package/dist/collection/components/nv-stack/nv-stack.js +1 -1
- package/dist/collection/components/nv-statusindicator/nv-statusindicator.js +1 -1
- package/dist/collection/components/nv-table/nv-table.js +1 -1
- package/dist/collection/components/nv-tableheader/nv-tableheader.js +3 -2
- package/dist/collection/components/nv-timetest/nv-timetest.js +1 -1
- package/dist/collection/components/nv-toggle/nv-toggle.js +2 -2
- package/dist/collection/components/nv-togglebutton/nv-togglebutton.js +3 -2
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.js +1 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +1 -1
- package/dist/collection/utils/accessibility.utils.js +71 -0
- package/dist/collection/utils/test/accessibility.utils.test.js +90 -0
- package/dist/components/index.js +1 -1
- package/dist/components/nv-accordion-item.js +1 -1
- package/dist/components/nv-accordion.js +1 -1
- package/dist/components/nv-alert.js +1 -1
- package/dist/components/nv-avatar.js +1 -1
- package/dist/components/nv-badge.js +1 -1
- package/dist/components/nv-breadcrumb.js +1 -1
- package/dist/components/nv-breadcrumbs.js +1 -1
- package/dist/components/nv-button.js +1 -1
- package/dist/components/nv-buttongroup.js +1 -1
- package/dist/components/nv-calendar.js +1 -1
- package/dist/components/nv-col.js +1 -1
- package/dist/components/nv-datagrid.js +1 -1
- package/dist/components/nv-datagridcolumn.js +1 -1
- package/dist/components/nv-datetest.js +1 -1
- package/dist/components/nv-datetimetest.js +1 -1
- package/dist/components/nv-dialog.js +1 -1
- package/dist/components/nv-dialogfooter.js +1 -1
- package/dist/components/nv-dialogheader.js +1 -1
- package/dist/components/nv-drawer.js +1 -1
- package/dist/components/nv-drawerfooter.js +1 -1
- package/dist/components/nv-drawerheader.js +1 -1
- package/dist/components/nv-fieldcheckbox.js +1 -1
- package/dist/components/nv-fielddate.js +1 -1
- package/dist/components/nv-fielddaterange.js +1 -1
- package/dist/components/nv-fielddropdown.js +1 -1
- package/dist/components/nv-fielddropdownitem.js +1 -1
- package/dist/components/nv-fielddropdownitemcheck.js +1 -1
- package/dist/components/nv-fieldmultiselect.js +1 -1
- package/dist/components/nv-fieldnumber.js +1 -1
- package/dist/components/nv-fieldpassword.js +1 -1
- package/dist/components/nv-fieldradio.js +1 -1
- package/dist/components/nv-fieldselect.js +1 -1
- package/dist/components/nv-fieldslider.js +1 -1
- package/dist/components/nv-fieldtext.js +1 -1
- package/dist/components/nv-fieldtextarea.js +1 -1
- package/dist/components/nv-fieldtime.js +1 -1
- package/dist/components/nv-icon.js +1 -1
- package/dist/components/nv-iconbutton.js +1 -1
- package/dist/components/nv-loader.js +1 -1
- package/dist/components/nv-menu.js +1 -1
- package/dist/components/nv-menuitem.js +1 -1
- package/dist/components/nv-notification-bullet.js +1 -1
- package/dist/components/nv-notification.js +1 -1
- package/dist/components/nv-notificationcontainer.js +1 -1
- package/dist/components/nv-pagination-nav.js +1 -1
- package/dist/components/nv-paginationtable.js +1 -1
- package/dist/components/nv-pill.d.ts +11 -0
- package/dist/components/nv-pill.js +1 -0
- package/dist/components/nv-popover.js +1 -1
- package/dist/components/nv-row.js +1 -1
- package/dist/components/nv-sidebar.js +1 -1
- package/dist/components/nv-sidebarcontent.js +1 -1
- package/dist/components/nv-sidebardivider.js +1 -1
- package/dist/components/nv-sidebarfooter.js +1 -1
- package/dist/components/nv-sidebargroup.js +1 -1
- package/dist/components/nv-sidebarheader.js +1 -1
- package/dist/components/nv-sidebarlogo.js +1 -1
- package/dist/components/nv-sidebarnavitem.js +1 -1
- package/dist/components/nv-sidebarnavsubitem.js +1 -1
- package/dist/components/nv-split.js +1 -1
- package/dist/components/nv-stack.js +1 -1
- package/dist/components/nv-statusindicator.js +1 -1
- package/dist/components/nv-table.js +1 -1
- package/dist/components/nv-tableheader.js +1 -1
- package/dist/components/nv-tag.js +1 -1
- package/dist/components/nv-timetest.js +1 -1
- package/dist/components/nv-toggle.js +1 -1
- package/dist/components/nv-togglebutton.js +1 -1
- package/dist/components/nv-togglebuttongroup.js +1 -1
- package/dist/components/nv-tooltip.js +1 -1
- package/dist/components/{p-i4xf4cpe.js → p-151La_Re.js} +1 -1
- package/dist/components/{p-BvQ9X__D.js → p-6T2ybMzE.js} +1 -1
- package/dist/components/{p-c3oT8uX6.js → p-B4EbX_RC.js} +1 -1
- package/dist/components/{p-BDdtTC-6.js → p-BLVk95gn.js} +1 -1
- package/dist/components/{p-DJnO10rr.js → p-BRfiHFNV.js} +1 -1
- package/dist/components/{p-CxKLuAfn.js → p-BWRw4xPL.js} +1 -1
- package/dist/components/{p-BxbhIzS0.js → p-BnO_M5Vy.js} +1 -1
- package/dist/components/{p-CQZEAqG5.js → p-C0sYXnfw.js} +1 -1
- package/dist/components/p-C4Cy9iy8.js +1 -0
- package/dist/components/{p-uV6ubOsB.js → p-C7TlN1NZ.js} +1 -1
- package/dist/components/p-CHBitkH2.js +1 -0
- package/dist/components/{p-D28iz8d1.js → p-CM4DYhll.js} +1 -1
- package/dist/components/p-CtKp5aji.js +1 -0
- package/dist/components/{p-C2KEXGV2.js → p-DCP9DeqM.js} +1 -1
- package/dist/components/p-DGGc-sMF.js +1 -0
- package/dist/components/{p-BzJGjY6m.js → p-DMtFowUl.js} +2 -2
- package/dist/components/p-DQwzzl-e.js +1 -0
- package/dist/components/{p-69UoKKHf.js → p-DYbGTjPL.js} +1 -1
- package/dist/components/{p-Bu_98LLu.js → p-DiZ4PH5U.js} +1 -1
- package/dist/components/{p-dLi3HLyK.js → p-MJEiA0Bq.js} +1 -1
- package/dist/components/{p-s1FlXcfZ.js → p-N_OyEprf.js} +1 -1
- package/dist/components/{p-C6V_Ba1j.js → p-hklkrJsV.js} +1 -1
- package/dist/components/p-m37Anefm.js +1 -0
- package/dist/components/p-p6cOkAo9.js +1 -0
- package/dist/esm/accessibility.utils-C4Cy9iy8.js +73 -0
- package/dist/esm/{index-C5xbfYEI.js → index-Dtg-LGcy.js} +6 -2
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/native.js +3 -3
- package/dist/esm/nv-accordion-item.entry.js +9 -8
- package/dist/esm/nv-accordion.entry.js +1 -1
- package/dist/esm/nv-alert.entry.js +1 -1
- package/dist/esm/nv-avatar.entry.js +1 -1
- package/dist/esm/nv-badge_2.entry.js +1 -1
- package/dist/esm/nv-breadcrumb.entry.js +1 -1
- package/dist/esm/nv-breadcrumbs.entry.js +1 -1
- package/dist/esm/nv-button.entry.js +4 -3
- package/dist/esm/nv-buttongroup.entry.js +1 -1
- package/dist/esm/nv-calendar.entry.js +1 -1
- package/dist/esm/nv-col.entry.js +1 -1
- package/dist/esm/nv-datagrid.entry.js +1 -1
- package/dist/esm/nv-datagridcolumn.entry.js +1 -1
- package/dist/esm/nv-datetest.entry.js +1 -1
- package/dist/esm/nv-datetimetest.entry.js +1 -1
- package/dist/esm/nv-dialog.entry.js +4 -3
- package/dist/esm/nv-dialogfooter_2.entry.js +1 -1
- package/dist/esm/nv-drawer.entry.js +4 -3
- package/dist/esm/nv-drawerfooter_2.entry.js +1 -1
- package/dist/esm/nv-fieldcheckbox.entry.js +1 -1
- package/dist/esm/nv-fielddate.entry.js +1 -1
- package/dist/esm/nv-fielddaterange.entry.js +1 -1
- package/dist/esm/nv-fielddropdown.entry.js +1 -1
- package/dist/esm/nv-fielddropdownitem.entry.js +4 -3
- package/dist/esm/nv-fieldmultiselect.entry.js +3 -3
- package/dist/esm/nv-fieldnumber.entry.js +1 -1
- package/dist/esm/nv-fieldpassword.entry.js +1 -1
- package/dist/esm/nv-fieldradio.entry.js +1 -1
- package/dist/esm/nv-fieldselect.entry.js +1 -1
- package/dist/esm/nv-fieldslider.entry.js +1 -1
- package/dist/esm/nv-fieldtext.entry.js +1 -1
- package/dist/esm/nv-fieldtextarea.entry.js +1 -1
- package/dist/esm/nv-fieldtime.entry.js +1 -1
- package/dist/esm/nv-icon.entry.js +2 -2
- package/dist/esm/nv-iconbutton_2.entry.js +4 -3
- package/dist/esm/nv-menu.entry.js +1 -1
- package/dist/esm/nv-menuitem.entry.js +4 -3
- package/dist/esm/nv-notification-bullet.entry.js +1 -1
- package/dist/esm/nv-notification.entry.js +1 -1
- package/dist/esm/nv-notificationcontainer.entry.js +1 -1
- package/dist/esm/nv-pagination-nav.entry.js +1 -1
- package/dist/esm/nv-paginationtable.entry.js +1 -1
- package/dist/esm/nv-pill.entry.js +283 -0
- package/dist/esm/nv-popover.entry.js +2 -2
- package/dist/esm/nv-row.entry.js +2 -2
- package/dist/esm/nv-sidebar.entry.js +3 -3
- package/dist/esm/nv-sidebarcontent.entry.js +2 -2
- package/dist/esm/nv-sidebardivider.entry.js +2 -2
- package/dist/esm/nv-sidebarfooter.entry.js +2 -2
- package/dist/esm/nv-sidebargroup.entry.js +2 -2
- package/dist/esm/nv-sidebarheader.entry.js +2 -2
- package/dist/esm/nv-sidebarlogo.entry.js +2 -2
- package/dist/esm/nv-sidebarnavitem.entry.js +3 -3
- package/dist/esm/nv-sidebarnavsubitem.entry.js +2 -2
- package/dist/esm/nv-split.entry.js +2 -2
- package/dist/esm/nv-stack.entry.js +2 -2
- package/dist/esm/nv-statusindicator.entry.js +2 -2
- package/dist/esm/nv-table.entry.js +2 -2
- package/dist/esm/nv-tableheader.entry.js +4 -3
- package/dist/esm/nv-tag.entry.js +1 -1
- package/dist/esm/nv-timetest.entry.js +2 -2
- package/dist/esm/nv-toggle.entry.js +3 -3
- package/dist/esm/nv-togglebutton.entry.js +4 -3
- package/dist/esm/nv-togglebuttongroup.entry.js +2 -2
- package/dist/esm/nv-tooltip.entry.js +2 -2
- package/dist/native/index.esm.js +1 -1
- package/dist/native/native.css +14 -1
- package/dist/native/native.esm.js +1 -1
- package/dist/native/{p-82585156.entry.js → p-006b0662.entry.js} +1 -1
- package/dist/native/{p-6522e66a.entry.js → p-086101d2.entry.js} +1 -1
- package/dist/native/{p-ff632801.entry.js → p-0be43863.entry.js} +1 -1
- package/dist/native/p-11ae498c.entry.js +1 -0
- package/dist/native/{p-5a023c1e.entry.js → p-193d5813.entry.js} +1 -1
- package/dist/native/{p-7c1abe21.entry.js → p-1b5d11d4.entry.js} +1 -1
- package/dist/native/{p-c443d94f.entry.js → p-1e6706d5.entry.js} +1 -1
- package/dist/native/{p-36693b1e.entry.js → p-247cfbfd.entry.js} +1 -1
- package/dist/native/{p-65ec0c32.entry.js → p-282f27a8.entry.js} +1 -1
- package/dist/native/{p-86f04951.entry.js → p-29283b5d.entry.js} +1 -1
- package/dist/native/{p-a9ba884d.entry.js → p-32461255.entry.js} +1 -1
- package/dist/native/p-35cca4d2.entry.js +1 -0
- package/dist/native/p-38b731e1.entry.js +1 -0
- package/dist/native/{p-471b9f1e.entry.js → p-3c85e99e.entry.js} +1 -1
- package/dist/native/p-44c55d88.entry.js +1 -0
- package/dist/native/p-45191d81.entry.js +1 -0
- package/dist/native/{p-76ffc82f.entry.js → p-474b7e0b.entry.js} +1 -1
- package/dist/native/p-4ac17d24.entry.js +1 -0
- package/dist/native/{p-dfcd833c.entry.js → p-520e5d0d.entry.js} +1 -1
- package/dist/native/p-532c4d1d.entry.js +1 -0
- package/dist/native/p-5de603c6.entry.js +1 -0
- package/dist/native/{p-2965f9e5.entry.js → p-60aaa50f.entry.js} +1 -1
- package/dist/native/p-6153e9ce.entry.js +1 -0
- package/dist/native/{p-da659927.entry.js → p-61a088c5.entry.js} +1 -1
- package/dist/native/{p-8687ee45.entry.js → p-61a5cc1e.entry.js} +1 -1
- package/dist/native/{p-1d4a2991.entry.js → p-676eda8d.entry.js} +1 -1
- package/dist/native/p-6f3616fb.entry.js +1 -0
- package/dist/native/p-6f67be75.entry.js +1 -0
- package/dist/native/{p-7d98bd7c.entry.js → p-709a678c.entry.js} +1 -1
- package/dist/native/p-73e3bd21.entry.js +1 -0
- package/dist/native/p-76a1f5b0.entry.js +1 -0
- package/dist/native/{p-9582387b.entry.js → p-78d98c99.entry.js} +1 -1
- package/dist/native/{p-7f36356d.entry.js → p-7a2189fd.entry.js} +1 -1
- package/dist/native/{p-ef5ab954.entry.js → p-7b1291df.entry.js} +1 -1
- package/dist/native/{p-d210686c.entry.js → p-7be16470.entry.js} +1 -1
- package/dist/native/{p-e069649b.entry.js → p-7c81eec5.entry.js} +1 -1
- package/dist/native/{p-5b323d4d.entry.js → p-82352a0c.entry.js} +1 -1
- package/dist/native/p-82e00a15.entry.js +1 -0
- package/dist/native/{p-5ff91848.entry.js → p-84069455.entry.js} +1 -1
- package/dist/native/{p-de699164.entry.js → p-8457693f.entry.js} +1 -1
- package/dist/native/p-88b5887c.entry.js +1 -0
- package/dist/native/{p-57ac7c52.entry.js → p-899e319c.entry.js} +1 -1
- package/dist/native/{p-e6982f77.entry.js → p-89fb8dc6.entry.js} +1 -1
- package/dist/native/p-89fe54eb.entry.js +1 -0
- package/dist/native/p-8d1b7295.entry.js +1 -0
- package/dist/native/{p-955a0e99.entry.js → p-8f182f2f.entry.js} +1 -1
- package/dist/native/{p-bcd2d229.entry.js → p-9ae86283.entry.js} +1 -1
- package/dist/native/{p-87c21cd0.entry.js → p-9cb72554.entry.js} +1 -1
- package/dist/native/p-C4Cy9iy8.js +1 -0
- package/dist/native/{p-C5xbfYEI.js → p-Dtg-LGcy.js} +2 -2
- package/dist/native/{p-55b6ba99.entry.js → p-a14356a2.entry.js} +1 -1
- package/dist/native/{p-4ee63bd0.entry.js → p-b6b5b50a.entry.js} +1 -1
- package/dist/native/{p-280000e2.entry.js → p-ba32c793.entry.js} +1 -1
- package/dist/native/{p-ebdad820.entry.js → p-bf10fbd2.entry.js} +1 -1
- package/dist/native/{p-453561f2.entry.js → p-bf94b26d.entry.js} +1 -1
- package/dist/native/p-d3003a4d.entry.js +1 -0
- package/dist/native/{p-acd0792e.entry.js → p-dc05eb91.entry.js} +1 -1
- package/dist/native/{p-36a9b8c4.entry.js → p-dc3c0181.entry.js} +1 -1
- package/dist/native/{p-7f2a2112.entry.js → p-e97155c2.entry.js} +1 -1
- package/dist/native/{p-07eb3ea5.entry.js → p-e97d9772.entry.js} +1 -1
- package/dist/native/{p-cb9b5250.entry.js → p-f2ab9665.entry.js} +1 -1
- package/dist/native/{p-f513cf73.entry.js → p-f35cfcf7.entry.js} +1 -1
- package/dist/native/{p-65eb35d5.entry.js → p-f49dac2e.entry.js} +1 -1
- package/dist/native/{p-a788c88a.entry.js → p-f50d6e7b.entry.js} +1 -1
- package/dist/native/{p-d26a8889.entry.js → p-f551703a.entry.js} +1 -1
- package/dist/native/{p-ad1b5573.entry.js → p-f69ce8b0.entry.js} +1 -1
- package/dist/native/{p-339005af.entry.js → p-fde8def2.entry.js} +1 -1
- package/dist/types/components/nv-icon/nv-icons.d.ts +1 -1
- package/dist/types/components/nv-pill/nv-pill.d.ts +74 -0
- package/dist/types/components/nv-pill/nv-pill.docs.d.ts +4 -0
- package/dist/types/components.d.ts +120 -0
- package/dist/types/utils/accessibility.utils.d.ts +61 -0
- package/dist/types/utils/test/accessibility.utils.test.d.ts +1 -0
- package/dist/vscode-data.json +1876 -204
- package/hydrate/index.js +421 -49
- package/hydrate/index.mjs +421 -49
- package/package.json +8 -2
- package/dist/components/p-1Oq0x2Rx.js +0 -1
- package/dist/components/p-BxhBaMXw.js +0 -1
- package/dist/components/p-CrNItly_.js +0 -1
- package/dist/components/p-CuSI994X.js +0 -1
- package/dist/components/p-DnBhX14P.js +0 -1
- package/dist/components/p-waLAN4j3.js +0 -1
- package/dist/native/p-0d7baedd.entry.js +0 -1
- package/dist/native/p-19a5fbf9.entry.js +0 -1
- package/dist/native/p-1a73ca05.entry.js +0 -1
- package/dist/native/p-42fa065d.entry.js +0 -1
- package/dist/native/p-4853fcc6.entry.js +0 -1
- package/dist/native/p-57aefdfe.entry.js +0 -1
- package/dist/native/p-645a8913.entry.js +0 -1
- package/dist/native/p-6ddb0f38.entry.js +0 -1
- package/dist/native/p-72b29097.entry.js +0 -1
- package/dist/native/p-7c571a3e.entry.js +0 -1
- package/dist/native/p-9847ff24.entry.js +0 -1
- package/dist/native/p-a0cb305e.entry.js +0 -1
- package/dist/native/p-a67c35a0.entry.js +0 -1
- package/dist/native/p-a764e15b.entry.js +0 -1
- package/dist/native/p-c04a8b31.entry.js +0 -1
- package/dist/native/p-cbaf5269.entry.js +0 -1
- package/dist/native/p-e808c744.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as t,H as n,c as o,h as i,d as a}from"./p-DMtFowUl.js";import{i as s}from"./p-C4Cy9iy8.js";import{d as m}from"./p-CtKp5aji.js";const c=t(class extends n{constructor(e){super(),!1!==e&&this.__registerHost(),this.menuitemSelected=o(this,"menuitemSelected",7),this.disabled=!1,this.hasSubmenu=!1}handleMenuItemSelect(e){this.disabled?e.stopPropagation():this.menuitemSelected.emit({id:this.el.id,name:this.name,hasSubmenu:this.hasSubmenu})}handleClick(e){this.handleMenuItemSelect(e)}handleKeyDown(e){if(s(e.key)){const t=document.activeElement;t&&"NV-MENUITEM"===t.tagName&&!t.hasAttribute("has-submenu")&&(e.preventDefault(),this.el.click())}}render(){return i(a,{key:"0292e33304b74d540b2533570b1f314ca8ea100b",role:"menuitem",tabindex:this.disabled?"-1":"0"},this.icon&&i("nv-icon",{key:"1a94fdbbc5349fb4dd1c8985026197be91b7adff",name:this.icon}),i("slot",{key:"8994033b5371d1db6a55980c5b0a1e7455c573b7"}),this.label&&i("span",{key:"9163ba9a67f050447ebed2a4743f6c8f3102e37b","data-scope":"text"},this.label),this.shortcut&&!this.hasSubmenu&&i("kbd",{key:"8adf1ba5789434c37bcbc53328b6b1dc9b82eeb5"},this.shortcut),this.hasSubmenu&&i("nv-icon",{key:"b05b3c1245752d2bbd161db03b361a5e5406602a",name:"chevron-right"}))}get el(){return this}static get style(){return"nv-menuitem{display:flex;align-items:center;max-width:300px;width:100vw;font-size:var(--menu-contextual-item-font-size);font-weight:var(--menu-contextual-item-font-weight);color:var(--components-menu-contextual-item-content);border-radius:var(--menu-contextual-item-radius);gap:var(--menu-contextual-item-gap-x);padding:var(--menu-contextual-item-padding-y) var(--menu-contextual-item-padding-x);transition:background-color 150ms ease-out;cursor:pointer}nv-menuitem:hover,nv-menuitem:focus,nv-menuitem:focus-within{background-color:var(--components-menu-contextual-item-background-hover);color:var(--components-menu-contextual-item-content-hover)}nv-menuitem *{pointer-events:none}nv-menuitem kbd{color:var(--components-menu-contextual-item-shortcut)}nv-menuitem [data-scope=text]{margin-right:auto}nv-menuitem[disabled]:not([disabled=false]){cursor:unset;background-color:unset;color:var(--components-menu-contextual-item-content-disabled)}"}},[260,"nv-menuitem",{label:[513],icon:[513],disabled:[516],shortcut:[513],hasSubmenu:[516,"has-submenu"],name:[513]},[[2,"click","handleClick"],[0,"keydown","handleKeyDown"]]]);function u(){"undefined"!=typeof customElements&&["nv-menuitem","nv-icon"].forEach((t=>{switch(t){case"nv-menuitem":customElements.get(e(t))||customElements.define(e(t),c);break;case"nv-icon":customElements.get(e(t))||m()}}))}u();export{c as N,u as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as a,H as t,h as i,F as n,d}from"./p-
|
|
1
|
+
import{t as e,p as a,H as t,h as i,F as n,d}from"./p-DMtFowUl.js";const s=a(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.heading="Dialog Title"}render(){return i(d,{key:"89253c9dc392f224ab392420529ec66aaae037fb"},i("slot",{key:"2d8509cf0b19a184016e3095583a2b7046dbc86f"},i(n,{key:"cb3edda2f9e3041a5656c4634d663144fe9e3093"},i("div",{key:"cad9bbe95828596467c5f48f3765bee4bf9a7ccb",class:"heading"},this.heading),i("div",{key:"5e3e1d45e1d1d17a80f50d883b5d89605a250db3",class:"subheading"},this.subheading))))}get el(){return this}static get style(){return"nv-dialogheader{padding:var(--dialog-header-padding-top) var(--dialog-header-padding-x) var(--dialog-header-padding-bottom) var(--dialog-header-padding-x);justify-content:space-between;align-items:flex-start;align-self:stretch}nv-dialogheader .heading{color:var(--color-content-high-text);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--font-size-lg);font-style:normal;font-weight:var(--font-weight-medium-emphasis);padding-right:var(--spacing-7);line-height:var(--leading-px-6);letter-spacing:var(--letter-spacing-heading-xs)}nv-dialogheader .subheading{color:var(--color-content-low-text);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--font-size-sm);font-style:normal;font-weight:var(--font-weight-low-emphasis);line-height:var(--line-height-sm);}"}},[260,"nv-dialogheader",{heading:[513],subheading:[513]}]);function o(){"undefined"!=typeof customElements&&["nv-dialogheader"].forEach((a=>{"nv-dialogheader"===a&&(customElements.get(e(a))||customElements.define(e(a),s))}))}o();export{s as N,o as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as o,H as r,c,h as i,d as t}from"./p-BzJGjY6m.js";import{c as n}from"./p-ChV9xqsO.js";import{v as a}from"./p-BdYh22OP.js";const d=o(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.checkedChanged=c(this,"checkedChanged",3),this.labelBefore=!1,this.inputId=a(),this.hideLabel=!1,this.error=!1,this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.readonly=!1,this.required=!1,this.ariaRequiredAttr=!1,this.autofocus=!1}handleChange(e){const o=e.target;if("checkbox"===o.type&&o.id===this.inputId){if(this.readonly||this.disabled)return void e.preventDefault();this.indeterminate&&(this.indeterminate=!1),this.checked=o.checked}}onCheckedChanged(e){this.checkedChanged.emit(e)}componentWillRender(){this.message&&(this.description=this.message),this.labelBefore&&(this.labelPlacement="before"),this.validation&&(this.errorDescription=this.validation,this.error=!0)}render(){const e=this.el.hasAttribute("aria-required")||this.el.hasAttribute("aria-required-attr"),o=e?this.el.getAttribute("aria-required")||this.el.getAttribute("aria-required-attr"):null,r=e?o:null,c=e?"true"===r||""===r:void 0,a=this.required&&(!e||!0===c);return i(t,{key:"cf30010511c7bdc27cb609f2a8ce939587c2464a",class:n("before"===this.labelPlacement&&"label-placement-before",this.error&&"error")},i("div",{key:"0cc70966eac1bb25c3d74f8cacdc0bb7f1f4a67f",class:"input-container"},i("input",{key:"7ecb777e9a6ee8b4ec0dba7ba544d645e2d7151e",type:"checkbox",id:this.inputId,name:this.name,autofocus:this.autofocus,autocomplete:"off",value:this.value,checked:Boolean(this.checked),disabled:this.disabled||this.readonly,readonly:this.readonly&&!a,required:a?this.required:void 0,tabindex:this.el.tabIndex,...void 0!==c&&{"aria-required":String(c)},indeterminate:this.indeterminate,ref:e=>{e&&(e.indeterminate=this.indeterminate)}}),i("span",{key:"b59ba654a3955d6620d70148522dce20be9599c5",class:"icon"},this.checked&&!this.indeterminate&&i("slot",{key:"275628f6c03bf7ee640d5732556e22912ce4fe0d",name:"checked-icon"},i("svg",{key:"d2c8d55cdef913b32e34955bd82cd78d4af15afd",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},i("path",{key:"0c43dea52342adf873b83d6e9d801b477cb383be",d:"M11.6667 3.5L5.25004 9.91667L2.33337 7","stroke-linecap":"round","stroke-linejoin":"round"}))),this.indeterminate&&i("slot",{key:"a31a5276a5b950cfc7f4e66f560c6568118ef7d9",name:"indeterminate-icon"},i("svg",{key:"af5cec22670fb50c45c03cd2ac127fc2584293af",class:"indeterminate-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",fill:"none"},i("path",{key:"8d78986ffb6be73c3cc81adb77fe5ff7948fe263",d:"M2.9165 7H11.0832","stroke-linecap":"round","stroke-linejoin":"round"}))))),i("slot",{key:"1e240e12effef23f8f3d78eabaa7828a7cbb80a2"}),i("div",{key:"d33b034460a714a67a7f403c26f3e87ff2c68138",class:"text-container"},i("slot",{key:"05902b1b4af52b5f9c5139e5313fb4a93be7271b",name:"main"},(this.label||this.el.querySelector('[slot="label"]'))&&i("label",{key:"41914073c3c0341dfb71ef0ceaaf6640930b0fb7",htmlFor:this.inputId,class:n(this.hideLabel&&"visually-hidden")},i("slot",{key:"bc59332c91966fdc3943fe426dca3cadc33d28d4",name:"label"},this.label)),(this.description||this.el.querySelector('[slot="description"]'))&&i("div",{key:"24f02b9d567ca21ddbbb4081835397c0a902b9f6",class:"description"},i("slot",{key:"8b720bd362a70edde6ff1a8e886084364fff8559",name:"description"},this.description))),(this.errorDescription||this.el.querySelector('[slot="error-description"]'))&&i("div",{key:"7b969200e549177205d23aa8841b9c301d617ed1",hidden:!this.error,class:"error-description"},i("slot",{key:"103cb6bafca0867bf36b87dce97e9bf6cb29a1b8",name:"error-description"},this.errorDescription))))}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{checked:[{onCheckedChanged:0}]}}static get style(){return'nv-fieldslider .slider-container .track-container:has(.thumb:hover) .track-range{background:var(--components-slider-track-filled-hover)}nv-fieldslider .slider-container .track-container:has(.thumb:hover) .thumb{border-color:var(--components-slider-track-filled-hover)}nv-fieldslider .slider-container .track-container:has(.thumb:focus) .track-range{background:var(--components-slider-track-filled-focus)}nv-fieldslider .slider-container .track-container:has(.thumb:focus) .thumb{border-color:var(--components-slider-track-filled-focus)}nv-fieldslider[error] .slider-container .track-container .track .track-range{background:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb{border-color:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb:hover{border-color:var(--components-slider-track-filled-error);outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-slider-track-filled-error);outline-offset:calc(var(--focus-outline-offset) * 1);background-color:var(--components-slider-handler-background-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb:focus{border-color:var(--components-slider-track-filled-error);outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-slider-track-filled-error);outline-offset:calc(var(--focus-outline-offset) * 1);background-color:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container:has(.thumb:hover) .track-range{background:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container:has(.thumb:hover) .thumb{border-color:var(--components-slider-track-filled-error)}nv-fieldcheckbox{--nv-fieldcheckbox-border-default:var( --components-form-field-border-default );--nv-fieldcheckbox-border-hover:var(--components-form-field-border-hover);--nv-fieldcheckbox-border-focus:var(--components-form-field-border-default);--nv-fieldcheckbox-background-default:var( --components-form-field-background-default );--nv-fieldcheckbox-background-checked:var( --components-form-field-background-checked );--nv-fieldcheckbox-background-disabled:var( --components-form-field-background-disabled );--nv-fieldcheckbox-focus-box-shadow:var(--color-focus-brand);--nv-fieldcheckbox-color-checked:var( --components-form-shape-foreground-default );--nv-fieldcheckbox-color-disabled:var( --components-form-shape-foreground-disabled );--nv-fieldcheckbox-outline-color:var(--color-focus-brand);display:inline-flex;align-items:flex-start;gap:var(--form-gap-x);position:relative}nv-fieldcheckbox:not([disabled],[readonly]) input,nv-fieldcheckbox:not([disabled],[readonly]) label{cursor:pointer}nv-fieldcheckbox.error>.input-container{--nv-fieldcheckbox-border-default:var(--components-form-field-border-error);--nv-fieldcheckbox-border-hover:var(--nv-fieldcheckbox-border-default);--nv-fieldcheckbox-border-focus:var(--components-form-field-border-error);--nv-fieldcheckbox-focus-box-shadow:var(--color-focus-destructive);--nv-fieldcheckbox-color-disabled:var( --components-form-shape-foreground-disabled-error );--nv-fieldcheckbox-background-checked:var( --components-form-field-background-error );--nv-fieldcheckbox-outline-color:var(--color-focus-destructive)}nv-fieldcheckbox.label-placement-before{flex-direction:row-reverse}nv-fieldcheckbox[disabled]:not([disabled=false]){opacity:0.5}nv-fieldcheckbox>.input-container{position:relative;color:var(--nv-fieldcheckbox-color-checked)}nv-fieldcheckbox>.input-container input[type=checkbox][readonly]{opacity:0.5}nv-fieldcheckbox>.input-container:has(input[type=checkbox]:disabled:not([readonly])){color:var(--nv-fieldcheckbox-color-disabled)}nv-fieldcheckbox>.input-container input[type=checkbox]{appearance:none;position:relative;display:flex;width:var(--form-checkbox-size);height:var(--form-checkbox-size);flex-direction:column;align-items:flex-start;border-radius:var(--form-checkbox-radius);border-width:var(--form-checkbox-border-width);border-style:solid;border-color:var(--nv-fieldcheckbox-border-default);background:var(--nv-fieldcheckbox-background-default)}nv-fieldcheckbox>.input-container input[type=checkbox]:hover{border-color:var(--nv-fieldcheckbox-border-hover)}nv-fieldcheckbox>.input-container input[type=checkbox]:focus{border-color:var(--nv-fieldcheckbox-border-focus)}nv-fieldcheckbox>.input-container input[type=checkbox]:focus,nv-fieldcheckbox>.input-container input[type=checkbox]:focus-within{outline:none}nv-fieldcheckbox>.input-container input[type=checkbox]:focus-visible,nv-fieldcheckbox>.input-container input[type=checkbox]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--nv-fieldcheckbox-outline-color);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-fieldcheckbox>.input-container input[type=checkbox]:checked,nv-fieldcheckbox>.input-container input[type=checkbox]:indeterminate{background:var(--nv-fieldcheckbox-background-checked);border-color:var(--nv-fieldcheckbox-background-checked)}nv-fieldcheckbox>.input-container input[type=checkbox]:disabled:not([readonly]){background:var(--nv-fieldcheckbox-background-disabled);border-color:var(--nv-fieldcheckbox-border-default)}nv-fieldcheckbox>.input-container input[type=checkbox][readonly]{opacity:0.5}nv-fieldcheckbox>.input-container .icon{pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center}nv-fieldcheckbox>.input-container .icon svg{width:var(--form-checkbox-icon-size);height:var(--form-checkbox-icon-size);fill:none;stroke:currentcolor;stroke-width:var(--form-checkbox-icon-stroke);flex-shrink:0}nv-fieldcheckbox[required]:not([required=false])>.text-container label::after,nv-fieldcheckbox[aria-required=true]>.text-container label::after{content:"*";color:var(--components-form-text-required);font-weight:var(--font-weight-high-emphasis)}nv-fieldcheckbox>.text-container{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0}nv-fieldcheckbox>.text-container label{align-self:stretch;text-align:left;color:var(--components-form-text-label-default);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:var(--form-label-font-weight);line-height:var(--form-label-line-height)}nv-fieldcheckbox>.text-container label.visually-hidden{position:absolute;padding:0;border:0;overflow:hidden;white-space:nowrap;width:1px;height:1px;margin:-1px;clip:rect(0, 0, 0, 0)}nv-fieldcheckbox>.text-container .description{align-self:stretch;color:var(--components-form-text-description-default);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--form-description-font-size);font-style:normal;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height)}nv-fieldcheckbox>.text-container .error-description{align-self:stretch;color:var(--components-form-text-description-default);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--form-description-font-size);font-style:normal;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}@media print{nv-fieldcheckbox>.input-container{color:var(--nv-fieldcheckbox-background-checked)}nv-fieldcheckbox>.input-container input[type=checkbox]:checked,nv-fieldcheckbox>.input-container input[type=checkbox]:indeterminate{background:transparent;border-color:var(--nv-fieldcheckbox-background-checked)}}'}},[324,"nv-fieldcheckbox",{message:[513],validation:[513],labelBefore:[516,"label-before"],inputId:[513,"input-id"],name:[513],value:[513],label:[513],labelPlacement:[1537,"label-placement"],hideLabel:[516,"hide-label"],description:[1537],error:[1540],errorDescription:[1537,"error-description"],checked:[1540],indeterminate:[1540],disabled:[516],readonly:[516],required:[516],ariaRequiredAttr:[516,"aria-required"],autofocus:[516]},[[0,"change","handleChange"]],{checked:[{onCheckedChanged:0}]}]);function l(){"undefined"!=typeof customElements&&["nv-fieldcheckbox"].forEach((o=>{"nv-fieldcheckbox"===o&&(customElements.get(e(o))||customElements.define(e(o),d))}))}l();export{d as N,l as d}
|
|
1
|
+
import{t as e,p as o,H as r,c,h as i,d as t}from"./p-DMtFowUl.js";import{c as n}from"./p-ChV9xqsO.js";import{v as a}from"./p-BdYh22OP.js";const d=o(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.checkedChanged=c(this,"checkedChanged",3),this.labelBefore=!1,this.inputId=a(),this.hideLabel=!1,this.error=!1,this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.readonly=!1,this.required=!1,this.ariaRequiredAttr=!1,this.autofocus=!1}handleChange(e){const o=e.target;if("checkbox"===o.type&&o.id===this.inputId){if(this.readonly||this.disabled)return void e.preventDefault();this.indeterminate&&(this.indeterminate=!1),this.checked=o.checked}}onCheckedChanged(e){this.checkedChanged.emit(e)}componentWillRender(){this.message&&(this.description=this.message),this.labelBefore&&(this.labelPlacement="before"),this.validation&&(this.errorDescription=this.validation,this.error=!0)}render(){const e=this.el.hasAttribute("aria-required")||this.el.hasAttribute("aria-required-attr"),o=e?this.el.getAttribute("aria-required")||this.el.getAttribute("aria-required-attr"):null,r=e?o:null,c=e?"true"===r||""===r:void 0,a=this.required&&(!e||!0===c);return i(t,{key:"cf30010511c7bdc27cb609f2a8ce939587c2464a",class:n("before"===this.labelPlacement&&"label-placement-before",this.error&&"error")},i("div",{key:"0cc70966eac1bb25c3d74f8cacdc0bb7f1f4a67f",class:"input-container"},i("input",{key:"7ecb777e9a6ee8b4ec0dba7ba544d645e2d7151e",type:"checkbox",id:this.inputId,name:this.name,autofocus:this.autofocus,autocomplete:"off",value:this.value,checked:Boolean(this.checked),disabled:this.disabled||this.readonly,readonly:this.readonly&&!a,required:a?this.required:void 0,tabindex:this.el.tabIndex,...void 0!==c&&{"aria-required":String(c)},indeterminate:this.indeterminate,ref:e=>{e&&(e.indeterminate=this.indeterminate)}}),i("span",{key:"b59ba654a3955d6620d70148522dce20be9599c5",class:"icon"},this.checked&&!this.indeterminate&&i("slot",{key:"275628f6c03bf7ee640d5732556e22912ce4fe0d",name:"checked-icon"},i("svg",{key:"d2c8d55cdef913b32e34955bd82cd78d4af15afd",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},i("path",{key:"0c43dea52342adf873b83d6e9d801b477cb383be",d:"M11.6667 3.5L5.25004 9.91667L2.33337 7","stroke-linecap":"round","stroke-linejoin":"round"}))),this.indeterminate&&i("slot",{key:"a31a5276a5b950cfc7f4e66f560c6568118ef7d9",name:"indeterminate-icon"},i("svg",{key:"af5cec22670fb50c45c03cd2ac127fc2584293af",class:"indeterminate-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",fill:"none"},i("path",{key:"8d78986ffb6be73c3cc81adb77fe5ff7948fe263",d:"M2.9165 7H11.0832","stroke-linecap":"round","stroke-linejoin":"round"}))))),i("slot",{key:"1e240e12effef23f8f3d78eabaa7828a7cbb80a2"}),i("div",{key:"d33b034460a714a67a7f403c26f3e87ff2c68138",class:"text-container"},i("slot",{key:"05902b1b4af52b5f9c5139e5313fb4a93be7271b",name:"main"},(this.label||this.el.querySelector('[slot="label"]'))&&i("label",{key:"41914073c3c0341dfb71ef0ceaaf6640930b0fb7",htmlFor:this.inputId,class:n(this.hideLabel&&"visually-hidden")},i("slot",{key:"bc59332c91966fdc3943fe426dca3cadc33d28d4",name:"label"},this.label)),(this.description||this.el.querySelector('[slot="description"]'))&&i("div",{key:"24f02b9d567ca21ddbbb4081835397c0a902b9f6",class:"description"},i("slot",{key:"8b720bd362a70edde6ff1a8e886084364fff8559",name:"description"},this.description))),(this.errorDescription||this.el.querySelector('[slot="error-description"]'))&&i("div",{key:"7b969200e549177205d23aa8841b9c301d617ed1",hidden:!this.error,class:"error-description"},i("slot",{key:"103cb6bafca0867bf36b87dce97e9bf6cb29a1b8",name:"error-description"},this.errorDescription))))}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{checked:[{onCheckedChanged:0}]}}static get style(){return'nv-fieldslider .slider-container .track-container:has(.thumb:hover) .track-range{background:var(--components-slider-track-filled-hover)}nv-fieldslider .slider-container .track-container:has(.thumb:hover) .thumb{border-color:var(--components-slider-track-filled-hover)}nv-fieldslider .slider-container .track-container:has(.thumb:focus) .track-range{background:var(--components-slider-track-filled-focus)}nv-fieldslider .slider-container .track-container:has(.thumb:focus) .thumb{border-color:var(--components-slider-track-filled-focus)}nv-fieldslider[error] .slider-container .track-container .track .track-range{background:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb{border-color:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb:hover{border-color:var(--components-slider-track-filled-error);outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-slider-track-filled-error);outline-offset:calc(var(--focus-outline-offset) * 1);background-color:var(--components-slider-handler-background-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb:focus{border-color:var(--components-slider-track-filled-error);outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-slider-track-filled-error);outline-offset:calc(var(--focus-outline-offset) * 1);background-color:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container:has(.thumb:hover) .track-range{background:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container:has(.thumb:hover) .thumb{border-color:var(--components-slider-track-filled-error)}nv-fieldcheckbox{--nv-fieldcheckbox-border-default:var( --components-form-field-border-default );--nv-fieldcheckbox-border-hover:var(--components-form-field-border-hover);--nv-fieldcheckbox-border-focus:var(--components-form-field-border-default);--nv-fieldcheckbox-background-default:var( --components-form-field-background-default );--nv-fieldcheckbox-background-checked:var( --components-form-field-background-checked );--nv-fieldcheckbox-background-disabled:var( --components-form-field-background-disabled );--nv-fieldcheckbox-focus-box-shadow:var(--color-focus-brand);--nv-fieldcheckbox-color-checked:var( --components-form-shape-foreground-default );--nv-fieldcheckbox-color-disabled:var( --components-form-shape-foreground-disabled );--nv-fieldcheckbox-outline-color:var(--color-focus-brand);display:inline-flex;align-items:flex-start;gap:var(--form-gap-x);position:relative}nv-fieldcheckbox:not([disabled],[readonly]) input,nv-fieldcheckbox:not([disabled],[readonly]) label{cursor:pointer}nv-fieldcheckbox.error>.input-container{--nv-fieldcheckbox-border-default:var(--components-form-field-border-error);--nv-fieldcheckbox-border-hover:var(--nv-fieldcheckbox-border-default);--nv-fieldcheckbox-border-focus:var(--components-form-field-border-error);--nv-fieldcheckbox-focus-box-shadow:var(--color-focus-destructive);--nv-fieldcheckbox-color-disabled:var( --components-form-shape-foreground-disabled-error );--nv-fieldcheckbox-background-checked:var( --components-form-field-background-error );--nv-fieldcheckbox-outline-color:var(--color-focus-destructive)}nv-fieldcheckbox.label-placement-before{flex-direction:row-reverse}nv-fieldcheckbox[disabled]:not([disabled=false]){opacity:0.5}nv-fieldcheckbox>.input-container{position:relative;color:var(--nv-fieldcheckbox-color-checked)}nv-fieldcheckbox>.input-container input[type=checkbox][readonly]{opacity:0.5}nv-fieldcheckbox>.input-container:has(input[type=checkbox]:disabled:not([readonly])){color:var(--nv-fieldcheckbox-color-disabled)}nv-fieldcheckbox>.input-container input[type=checkbox]{appearance:none;position:relative;display:flex;width:var(--form-checkbox-size);height:var(--form-checkbox-size);flex-direction:column;align-items:flex-start;border-radius:var(--form-checkbox-radius);border-width:var(--form-checkbox-border-width);border-style:solid;border-color:var(--nv-fieldcheckbox-border-default);background:var(--nv-fieldcheckbox-background-default)}nv-fieldcheckbox>.input-container input[type=checkbox]:hover{border-color:var(--nv-fieldcheckbox-border-hover)}nv-fieldcheckbox>.input-container input[type=checkbox]:focus{border-color:var(--nv-fieldcheckbox-border-focus)}nv-fieldcheckbox>.input-container input[type=checkbox]:focus,nv-fieldcheckbox>.input-container input[type=checkbox]:focus-within{outline:none}nv-fieldcheckbox>.input-container input[type=checkbox]:focus-visible,nv-fieldcheckbox>.input-container input[type=checkbox]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--nv-fieldcheckbox-outline-color);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-fieldcheckbox>.input-container input[type=checkbox]:checked,nv-fieldcheckbox>.input-container input[type=checkbox]:indeterminate{background:var(--nv-fieldcheckbox-background-checked);border-color:var(--nv-fieldcheckbox-background-checked)}nv-fieldcheckbox>.input-container input[type=checkbox]:disabled:not([readonly]){background:var(--nv-fieldcheckbox-background-disabled);border-color:var(--nv-fieldcheckbox-border-default)}nv-fieldcheckbox>.input-container input[type=checkbox][readonly]{opacity:0.5}nv-fieldcheckbox>.input-container .icon{pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center}nv-fieldcheckbox>.input-container .icon svg{width:var(--form-checkbox-icon-size);height:var(--form-checkbox-icon-size);fill:none;stroke:currentcolor;stroke-width:var(--form-checkbox-icon-stroke);flex-shrink:0}nv-fieldcheckbox[required]:not([required=false])>.text-container label::after,nv-fieldcheckbox[aria-required=true]>.text-container label::after{content:"*";color:var(--components-form-text-required);font-weight:var(--font-weight-high-emphasis)}nv-fieldcheckbox>.text-container{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0}nv-fieldcheckbox>.text-container label{align-self:stretch;text-align:left;color:var(--components-form-text-label-default);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:var(--form-label-font-weight);line-height:var(--form-label-line-height)}nv-fieldcheckbox>.text-container label.visually-hidden{position:absolute;padding:0;border:0;overflow:hidden;white-space:nowrap;width:1px;height:1px;margin:-1px;clip:rect(0, 0, 0, 0)}nv-fieldcheckbox>.text-container .description{align-self:stretch;color:var(--components-form-text-description-default);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--form-description-font-size);font-style:normal;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height)}nv-fieldcheckbox>.text-container .error-description{align-self:stretch;color:var(--components-form-text-description-default);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--form-description-font-size);font-style:normal;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}@media print{nv-fieldcheckbox>.input-container{color:var(--nv-fieldcheckbox-background-checked)}nv-fieldcheckbox>.input-container input[type=checkbox]:checked,nv-fieldcheckbox>.input-container input[type=checkbox]:indeterminate{background:transparent;border-color:var(--nv-fieldcheckbox-background-checked)}}'}},[324,"nv-fieldcheckbox",{message:[513],validation:[513],labelBefore:[516,"label-before"],inputId:[513,"input-id"],name:[513],value:[513],label:[513],labelPlacement:[1537,"label-placement"],hideLabel:[516,"hide-label"],description:[1537],error:[1540],errorDescription:[1537,"error-description"],checked:[1540],indeterminate:[1540],disabled:[516],readonly:[516],required:[516],ariaRequiredAttr:[516,"aria-required"],autofocus:[516]},[[0,"change","handleChange"]],{checked:[{onCheckedChanged:0}]}]);function l(){"undefined"!=typeof customElements&&["nv-fieldcheckbox"].forEach((o=>{"nv-fieldcheckbox"===o&&(customElements.get(e(o))||customElements.define(e(o),d))}))}l();export{d as N,l as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as i,c as s,h as a,F as o,d as n}from"./p-
|
|
1
|
+
import{t as e,p as t,H as i,c as s,h as a,F as o,d as n}from"./p-DMtFowUl.js";import{b as d}from"./p-gOKBmbgZ.js";import{d as r}from"./p-DGGc-sMF.js";import{d as l}from"./p-CtKp5aji.js";import{d as c}from"./p-BnO_M5Vy.js";const m=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.dialogCanceled=s(this,"dialogCanceled",3),this.dialogPrimaryClicked=s(this,"dialogPrimaryClicked",3),this.internals=this.attachInternals(),this.disabled=!1,this.undismissable=!1,this.leadingIcon=null,this.trailingIcon=null,this.danger=!1,this.cancelLabel="Cancel",this.primaryLabel="Primary",this.handlePrimary=e=>{e.stopPropagation(),this.dialogPrimaryClicked.emit()},this.handleCancel=e=>{e.stopPropagation(),this.dialogCanceled.emit()}}componentDidRender(){this.primaryButtonType||(this.primaryButtonRef.type=this.form?d.Submit:d.Button)}render(){return a(n,{key:"91320615714b06f288269640d99c0ad9b29378f0"},a("slot",{key:"25151b6b74591d31c234b5450d27ab31fb240017"},a(o,{key:"6b5bee68bf0d9fbdcc9f3396e8ce122ff27480eb"},!this.undismissable&&a("nv-button",{key:"20660e41e817edf9da27565231809e85b1b17179",onClick:this.handleCancel,emphasis:"low",size:"sm"},this.cancelLabel),a("nv-button",{key:"baeb2e7267838396ad930653823b86d8265fddc4",ref:e=>this.primaryButtonRef=e,onClick:this.handlePrimary,disabled:this.disabled,danger:this.danger,size:"sm",emphasis:"high",form:this.form,type:this.primaryButtonType},this.leadingIcon&&a("nv-icon",{key:"dde4eb5fa927e504b0734de1c8ef3d7e0a75ef96",slot:"leading-icon",name:this.leadingIcon,size:"sm"}),this.primaryLabel,this.trailingIcon&&a("nv-icon",{key:"195de12b4b25e3de011d7d4509672d686c21025e",slot:"trailing-icon",name:this.trailingIcon,size:"sm"})))))}static get formAssociated(){return!0}get el(){return this}static get style(){return"nv-dialogfooter{display:flex;padding:var(--dialog-footer-padding-top) var(--dialog-footer-padding-x) var(--dialog-footer-padding-bottom) var(--dialog-footer-padding-x);justify-content:flex-end;align-items:flex-end;gap:var(--dialog-footer-gap-y);align-self:stretch}"}},[324,"nv-dialogfooter",{disabled:[516],undismissable:[516],leadingIcon:[513,"leading-icon"],trailingIcon:[513,"trailing-icon"],danger:[516],cancelLabel:[513,"cancel-label"],primaryLabel:[513,"primary-label"],primaryButtonType:[513,"primary-button-type"],form:[513]}]);function h(){"undefined"!=typeof customElements&&["nv-dialogfooter","nv-button","nv-icon","nv-loader"].forEach((t=>{switch(t){case"nv-dialogfooter":customElements.get(e(t))||customElements.define(e(t),m);break;case"nv-button":customElements.get(e(t))||r();break;case"nv-icon":customElements.get(e(t))||l();break;case"nv-loader":customElements.get(e(t))||c()}}))}h();export{m as N,h as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as
|
|
1
|
+
import{t as e,p as t,H as a,c as s,h as i,F as r,d as n}from"./p-DMtFowUl.js";import{b as d}from"./p-gOKBmbgZ.js";import{d as o}from"./p-DGGc-sMF.js";import{d as c}from"./p-CtKp5aji.js";import{d as l}from"./p-BnO_M5Vy.js";const f=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.drawerCanceled=s(this,"drawerCanceled",3),this.drawerPrimaryClicked=s(this,"drawerPrimaryClicked",3),this.internals=this.attachInternals(),this.disabled=!1,this.undismissable=!1,this.leadingIcon=null,this.trailingIcon=null,this.danger=!1,this.cancelLabel="Cancel",this.primaryLabel="Primary",this.form=null,this.handlePrimary=e=>{e.stopPropagation(),this.drawerPrimaryClicked.emit()},this.handleCancel=e=>{e.stopPropagation(),this.drawerCanceled.emit()}}componentDidRender(){this.primaryButtonType||(this.primaryButtonRef.type=this.form?d.Submit:d.Button)}render(){return i(n,{key:"2ade4dcb3320ee8c514733ec13ba426b3ac4aaf5"},i("slot",{key:"8fb3bcd6539645049053168f079f44e213b54877"},i(r,{key:"f6a2466e843703f36d347e5863e714a147f8bc9b"},!this.undismissable&&i("nv-button",{key:"7d4bbfc76ffd9164f02fde26a10d7261ff239d23",onClick:this.handleCancel,emphasis:"low",size:"sm"},this.cancelLabel),i("nv-button",{key:"a05c968d24da7c3fe320dfb74d0a88d4d6fa9f3b",ref:e=>this.primaryButtonRef=e,onClick:this.handlePrimary,disabled:this.disabled,danger:this.danger,size:"sm",emphasis:"high",form:this.form,type:this.primaryButtonType},this.leadingIcon&&i("nv-icon",{key:"a352b063ac4ca57fef730182462dea3c73d8203d",slot:"leading-icon",name:this.leadingIcon,size:"sm"}),this.primaryLabel,this.trailingIcon&&i("nv-icon",{key:"bf249ca468d0e382723a28a3bbc730ed9c6defea",slot:"trailing-icon",name:this.trailingIcon,size:"sm"})))))}static get formAssociated(){return!0}get el(){return this}static get style(){return"nv-drawerfooter{display:flex;padding:var(--drawer-padding-y, var(--dialog-footer-padding-top)) var(--drawer-padding-x, var(--dialog-footer-padding-x)) var(--drawer-padding-y, var(--dialog-footer-padding-bottom)) var(--drawer-padding-x, var(--dialog-footer-padding-x));justify-content:flex-end;align-items:flex-end;gap:var(--drawer-gap-y, var(--dialog-footer-gap-y));align-self:stretch}"}},[324,"nv-drawerfooter",{disabled:[516],undismissable:[516],leadingIcon:[513,"leading-icon"],trailingIcon:[513,"trailing-icon"],danger:[516],cancelLabel:[513,"cancel-label"],primaryLabel:[513,"primary-label"],primaryButtonType:[513,"primary-button-type"],form:[513]}]);function m(){"undefined"!=typeof customElements&&["nv-drawerfooter","nv-button","nv-icon","nv-loader"].forEach((t=>{switch(t){case"nv-drawerfooter":customElements.get(e(t))||customElements.define(e(t),f);break;case"nv-button":customElements.get(e(t))||o();break;case"nv-icon":customElements.get(e(t))||c();break;case"nv-loader":customElements.get(e(t))||l()}}))}m();export{f as N,m as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as t,t as e,p as n,H as o,c as r,h as i,d as s}from"./p-BzJGjY6m.js";import{u as a}from"./p-9xYwU7ku.js";import{u as c}from"./p-D02w_Ru6.js";import"./p-Dz1GUhVy.js";import{a as l,r as u}from"./p-B6GgGra-.js";import{a as f}from"./p-CuXVGECR.js";const d=Math.min,h=Math.max,p=Math.round,m=t=>({x:t,y:t}),g={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"};function v(t,e,n){return h(t,d(e,n))}function w(t,e){return"function"==typeof t?t(e):t}function b(t){return t.split("-")[0]}function x(t){return t.split("-")[1]}function k(t){return"x"===t?"y":"x"}function A(t){return"y"===t?"height":"width"}function T(t){return["top","bottom"].includes(b(t))?"y":"x"}function C(t){return k(T(t))}function O(t){return t.replace(/start|end/g,(t=>y[t]))}function S(t){return t.replace(/left|right|bottom|top/g,(t=>g[t]))}function j(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function P(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function D(t,e,n){let{reference:o,floating:r}=t;const i=T(e),s=C(e),a=A(s),c=b(e),l="y"===i,u=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,d=o[a]/2-r[a]/2;let h;switch(c){case"top":h={x:u,y:o.y-r.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}switch(x(e)){case"start":h[s]-=d*(n&&l?-1:1);break;case"end":h[s]+=d*(n&&l?-1:1)}return h}async function R(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=w(e,t),p=j(h),m=a[d?"floating"===f?"reference":"floating":f],g=P(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),y="floating"===f?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},x=P(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:c}):y);return{top:(g.top-x.top+p.top)/b.y,bottom:(x.bottom-g.bottom+p.bottom)/b.y,left:(g.left-x.left+p.left)/b.x,right:(x.right-g.right+p.right)/b.x}}function E(){return"undefined"!=typeof window}function M(t){return B(t)?(t.nodeName||"").toLowerCase():"#document"}function F(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function L(t){var e;return null==(e=(B(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function B(t){return!!E()&&(t instanceof Node||t instanceof F(t).Node)}function G(t){return!!E()&&(t instanceof Element||t instanceof F(t).Element)}function N(t){return!!E()&&(t instanceof HTMLElement||t instanceof F(t).HTMLElement)}function $(t){return!(!E()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof F(t).ShadowRoot)}function z(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=I(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function H(t){return["table","td","th"].includes(M(t))}function U(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function V(t){const e=W(),n=G(t)?I(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function W(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Y(t){return["html","body","#document"].includes(M(t))}function I(t){return F(t).getComputedStyle(t)}function X(t){return G(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function _(t){if("html"===M(t))return t;const e=t.assignedSlot||t.parentNode||$(t)&&t.host||L(t);return $(e)?e.host:e}function J(t){const e=_(t);return Y(e)?t.ownerDocument?t.ownerDocument.body:t.body:N(e)&&z(e)?e:J(e)}function K(t,e){var n;void 0===e&&(e=[]);const o=J(t),r=o===(null==(n=t.ownerDocument)?void 0:n.body),i=F(o);return r?e.concat(i,i.visualViewport||[],z(o)?o:[],[]):e.concat(o,K(o,[]))}function q(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Q(t){const e=I(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=N(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,a=p(n)!==i||p(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function Z(t){return G(t)?t:t.contextElement}function tt(t){const e=Z(t);if(!N(e))return m(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Q(e);let s=(i?p(n.width):n.width)/o,a=(i?p(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const et=m(0);function nt(t){const e=F(t);return W()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:et}function ot(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),i=Z(t);let s=m(1);e&&(o?G(o)&&(s=tt(o)):s=tt(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==F(t))&&e}(i,n,o)?nt(i):m(0);let c=(r.left+a.x)/s.x,l=(r.top+a.y)/s.y,u=r.width/s.x,f=r.height/s.y;if(i){const t=F(i),e=o&&G(o)?F(o):o;let n=t,r=q(n);for(;r&&o&&e!==n;){const t=tt(r),e=r.getBoundingClientRect(),o=I(r),i=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,s=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,l*=t.y,u*=t.x,f*=t.y,c+=i,l+=s,n=F(r),r=q(n)}}return P({width:u,height:f,x:c,y:l})}function rt(t,e){const n=X(t).scrollLeft;return e?e.left+n:ot(L(t)).left+n}function it(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=F(t),o=L(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const t=W();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:a,y:c}}(t,n);else if("document"===e)o=function(t){const e=L(t),n=X(t),o=t.ownerDocument.body,r=h(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=h(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+rt(t);const a=-n.scrollTop;return"rtl"===I(o).direction&&(s+=h(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}(L(t));else if(G(e))o=function(t,e){const n=ot(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=N(t)?tt(t):m(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(e,n);else{const n=nt(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return P(o)}function st(t,e){const n=_(t);return!(n===e||!G(n)||Y(n))&&("fixed"===I(n).position||st(n,e))}function at(t,e,n){const o=N(e),r=L(e),i="fixed"===n,s=ot(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=m(0);if(o||!o&&!i)if(("body"!==M(e)||z(r))&&(a=X(e)),o){const t=ot(e,!0,i,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else r&&(c.x=rt(r));let l=0,u=0;if(r&&!o&&!i){const t=r.getBoundingClientRect();u=t.top+a.scrollTop,l=t.left+a.scrollLeft-rt(r,t)}return{x:s.left+a.scrollLeft-c.x-l,y:s.top+a.scrollTop-c.y-u,width:s.width,height:s.height}}function ct(t){return"static"===I(t).position}function lt(t,e){if(!N(t)||"fixed"===I(t).position)return null;if(e)return e(t);let n=t.offsetParent;return L(t)===n&&(n=n.ownerDocument.body),n}function ut(t,e){const n=F(t);if(U(t))return n;if(!N(t)){let e=_(t);for(;e&&!Y(e);){if(G(e)&&!ct(e))return e;e=_(e)}return n}let o=lt(t,e);for(;o&&H(o)&&ct(o);)o=lt(o,e);return o&&Y(o)&&ct(o)&&!V(o)?n:o||function(t){let e=_(t);for(;N(e)&&!Y(e);){if(V(e))return e;if(U(e))return null;e=_(e)}return null}(t)||n}const ft={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i="fixed"===r,s=L(o),a=!!e&&U(e.floating);if(o===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=m(1);const u=m(0),f=N(o);if((f||!f&&!i)&&(("body"!==M(o)||z(s))&&(c=X(o)),N(o))){const t=ot(o);l=tt(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}},getDocumentElement:L,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?U(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=K(t,[]).filter((t=>G(t)&&"body"!==M(t))),r=null;const i="fixed"===I(t).position;let s=i?_(t):t;for(;G(s)&&!Y(s);){const e=I(s),n=V(s);n||"fixed"!==e.position||(r=null),(i?!n&&!r:!n&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||z(s)&&!n&&st(t,s))?o=o.filter((t=>t!==s)):r=e,s=_(s)}return e.set(t,o),o}(e,this._c):[].concat(n),o],s=i.reduce(((t,n)=>{const o=it(e,n,r);return t.top=h(o.top,t.top),t.right=d(o.right,t.right),t.bottom=d(o.bottom,t.bottom),t.left=h(o.left,t.left),t}),it(e,i[0],r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ut,getElementRects:async function(t){const e=this.getOffsetParent||ut,n=this.getDimensions,o=await n(t.floating);return{reference:at(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=Q(t);return{width:e,height:n}},getScale:tt,isElement:G,isRTL:function(t){return"rtl"===I(t).direction}},dt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=w(t,e),l={x:n,y:o},u=await R(e,c),f=T(b(r)),d=k(f);let h=l[d],p=l[f];i&&(h=v(h+u["y"===d?"top":"left"],h,h-u["y"===d?"bottom":"right"])),s&&(p=v(p+u["y"===f?"top":"left"],p,p-u["y"===f?"bottom":"right"]));const m=a.fn({...e,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-o}}}}},ht=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=w(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=b(r),v=b(a)===a,k=await(null==c.isRTL?void 0:c.isRTL(l.floating)),T=d||(v||!m?[S(a)]:function(t){const e=S(t);return[O(t),e,O(e)]}(a));d||"none"===p||T.push(...function(t,e,n,o){const r=x(t);let i=function(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:s;default:return[]}}(b(t),"start"===n,o);return r&&(i=i.map((t=>t+"-"+r)),e&&(i=i.concat(i.map(O)))),i}(a,m,p,k));const j=[a,...T],P=await R(e,g),D=[];let E=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&D.push(P[y]),f){const t=function(t,e,n){void 0===n&&(n=!1);const o=x(t),r=C(t),i=A(r);let s="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=S(s)),[s,S(s)]}(r,s,k);D.push(P[t[0]],P[t[1]])}if(E=[...E,{placement:r,overflows:D}],!D.every((t=>t<=0))){var M,F;const t=((null==(M=i.flip)?void 0:M.index)||0)+1,e=j[t];if(e)return{data:{index:t,overflows:E},reset:{placement:e}};let n=null==(F=E.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:F.placement;if(!n)switch(h){case"bestFit":{var L;const t=null==(L=E.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:L[0];t&&(n=t);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}},pt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=w(t,e)||{};if(null==l)return{};const f=j(u),h={x:n,y:o},p=C(r),m=A(p),g=await s.getDimensions(l),y="y"===p,b=y?"top":"left",k=y?"bottom":"right",T=y?"clientHeight":"clientWidth",O=i.reference[m]+i.reference[p]-h[p]-i.floating[m],S=h[p]-i.reference[p],P=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let D=P?P[T]:0;D&&await(null==s.isElement?void 0:s.isElement(P))||(D=a.floating[T]||i.floating[m]);const R=O/2-S/2,E=D/2-g[m]/2-1,M=d(f[b],E),F=d(f[k],E),L=M,B=D-g[m]-F,G=D/2-g[m]/2+R,N=v(L,G,B),$=!c.arrow&&null!=x(r)&&G!==N&&i.reference[m]/2-(G<L?M:F)-g[m]/2<0,z=$?G<L?G-L:G-B:0;return{[p]:h[p]+z,data:{[p]:N,centerOffset:G-N-z,...$&&{alignmentOffset:z}},reset:$}}}),mt=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys()){const n=t.get(e).filter((t=>{const e=t.deref();return e&&(!("isConnected"in(n=e))||n.isConnected);var n}));t.set(e,n)}})(...e)}),2e3)}})(),gt=t.forceUpdate,yt=t.getRenderingRef,vt=(t,e)=>{const n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.length--)},{state:wt}=(()=>{const t=((t,e=(t,e)=>t!==e)=>{const n=()=>{return("function"==typeof(e=t)?e():e)??{};var e},o=n();let r=new Map(Object.entries(o));const i="undefined"!=typeof Proxy,s=i?null:{},a={dispose:[],get:[],set:[],reset:[]},c=new Map,l=()=>{r=new Map(Object.entries(n())),i||m(),a.reset.forEach((t=>t()))},u=t=>(a.get.forEach((e=>e(t))),r.get(t)),f=(t,n)=>{const o=r.get(t);e(n,o,t)&&(r.set(t,n),i||p(t),a.set.forEach((e=>e(t,n,o))))},d=i?new Proxy(o,{get:(t,e)=>u(e),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>r.has(e),set:(t,e,n)=>(f(e,n),!0)}):(m(),s),h=(t,e)=>(a[t].push(e),()=>{vt(a[t],e)});function p(t){!i&&s&&(Object.prototype.hasOwnProperty.call(s,t)||Object.defineProperty(s,t,{configurable:!0,enumerable:!0,get:()=>u(t),set(e){f(t,e)}}))}function m(){if(i||!s)return;const t=new Set(r.keys());for(const e of Object.keys(s))t.has(e)||delete s[e];for(const e of t)p(e)}return{state:d,get:u,set:f,on:h,onChange:(t,e)=>{const o=(n,o)=>{n===t&&e(o)},r=()=>{const o=n();e(o[t])},i=h("set",o),s=h("reset",r);return c.set(e,{setHandler:o,resetHandler:r,propName:t}),()=>{i(),s(),c.delete(e)}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(h("set",e.set)),e.get&&t.push(h("get",e.get)),e.reset&&t.push(h("reset",e.reset)),e.dispose&&t.push(h("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{a.dispose.forEach((t=>t())),l()},reset:l,forceUpdate:t=>{const e=r.get(t);a.set.forEach((n=>n(t,e,e)))},removeListener:(t,e)=>{const n=c.get(e);n&&n.propName===t&&(vt(a.set,n.setHandler),vt(a.reset,n.resetHandler),c.delete(e))}}})({groups:new Map},void 0);return t.use((()=>{if("function"!=typeof yt||"function"!=typeof gt)return{};const t=gt,e=yt,n=new Map;return{dispose:()=>n.clear(),get:t=>{const o=e();o&&((t,e,n)=>{let o=t.get(e);o||(o=[],t.set(e,o)),o.some((t=>t.deref()===n))||o.push(new WeakRef(n))})(n,t,o)},set:e=>{const o=n.get(e);if(o){const r=o.filter((e=>{const n=e.deref();return!!n&&t(n)}));n.set(e,r)}mt(n)},reset:()=>{n.forEach((e=>{e.forEach((e=>{const n=e.deref();n&&t(n)}))})),mt(n)}}})()),t})(),bt=n(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.openChanged=r(this,"openChanged",3),this.eventsAttached=!1,this.isAnimating=!1,this.clickEvents=[["click",()=>this.open=!this.open]],this.hoverEvents=[["focus",()=>{clearTimeout(this.hideTimeout),this.showTimeout=setTimeout((()=>this.open=!0),this.enterDelay)}],["blur",()=>{clearTimeout(this.showTimeout),this.hideTimeout=setTimeout((()=>this.open=!1),50)}],["mouseenter",()=>{clearTimeout(this.hideTimeout),this.showTimeout=setTimeout((()=>this.open=!0),this.enterDelay)}],["mouseleave",()=>{clearTimeout(this.showTimeout),this.hideTimeout=setTimeout((()=>this.open=!1),100)}]],this.closeEvents=[["keydown",t=>{"Escape"===t.key&&"controlled"!==this.triggerMode&&(this.open=!1)}]],this.open=!1,this.triggerMode="click",this.placement="bottom",this.strategy="absolute",this.offset=6,this.hasArrow=!1,this.disableFlip=!1,this.shiftPadding=0,this.enterDelay=0,this.nested=!1,this.handleClickOutside=t=>{this.el.contains(t.target)||this.triggerElement?.contains(t.target)||(this.open=!1)},this.outsideClickEvents=[["click",this.handleClickOutside],["touchstart",this.handleClickOutside]]}async show(){this.open=!0}async hide(){this.open=!1}async toggle(){this.open=!this.open}attachEventListeners(){this.triggerElement&&!this.eventsAttached&&(l(this.closeEvents,document,this),"click"===this.triggerMode&&(l(this.clickEvents,this.triggerElement,this),l(this.outsideClickEvents,document,this)),"hover"===this.triggerMode&&l(this.hoverEvents,this.triggerElement,this),this.eventsAttached=!0)}positionPopover(){var t;this.triggerElement&&((t,e,n)=>{const o=new Map,r={platform:ft,...n},i={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:f}=D(l,o,c),d=o,h={},p=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:g,y,data:v,reset:w}=await m({x:u,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:h,rects:l,platform:s,elements:{reference:t,floating:e}});u=null!=g?g:u,f=null!=y?y:f,h={...h,[i]:{...h[i],...v}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(l=!0===w.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):w.rects),({x:u,y:f}=D(l,d,c))),n=-1)}return{x:u,y:f,placement:d,strategy:r,middlewareData:h}})(t,e,{...r,platform:i})})(f(this.triggerElement),this.popoverElement,{placement:this.placement,strategy:this.strategy,middleware:[(t=this.offset,void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=e,c=await async function(t,e){const{placement:n,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),s=b(n),a=x(n),c="y"===T(n),l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,f=w(e,t);let{mainAxis:d,crossAxis:h,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof p&&(h="end"===a?-1*p:p),c?{x:h*u,y:d*l}:{x:d*l,y:h*u}}(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}),!this.disableFlip&&ht({fallbackStrategy:"bestFit",crossAxis:!0,fallbackPlacements:["bottom"]}),dt({padding:this.shiftPadding}),this.hasArrow&&pt({element:this.arrowElement})]}).then((({x:t,y:e,placement:n,middlewareData:o,strategy:r})=>{if(Object.assign(this.popoverElement.style,{left:`${t}px`,top:`${e}px`,position:r}),this.hasArrow){const t={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]],e={top:"rotate(225deg)",right:"rotate(315deg)",bottom:"rotate(45deg)",left:"rotate(135deg)"}[n.split("-")[0]],{x:r,y:i}=o.arrow;Object.assign(this.arrowElement.style,{left:null!=r?`${r}px`:"",top:null!=i?`${i}px`:"",right:"",bottom:"",transform:e,[t]:"-4px"})}}))}async handleOpenChange(t){for(;this.isAnimating;)await new Promise((t=>setTimeout(t,50)));this.isAnimating=!0;const e=wt.groups.get(this.groupName),n=e&&e.openedBy!==this.el,o=e&&e.openedBy===this.el;t&&this.popoverElement.style.removeProperty("display"),o&&!t&&wt.groups.delete(this.groupName),this.groupName&&t&&wt.groups.set(this.groupName,{openedBy:this.el});const{growIn:r}=c(this.popoverElement,{duration:n?0:100,amount:.85}),{fadeOut:i}=a(this.popoverElement,{duration:n?0:100});!0===t&&(this.popoverElement.removeAttribute("hidden"),this.positionPopover(),await r()),!1===t&&(await i(),this.popoverElement.setAttribute("hidden","")),this.isAnimating=!1,this.openChanged.emit(t)}handleStrategyChange(){this.open&&this.positionPopover()}componentWillRender(){this.triggerElement||(this.triggerElement=this.el.querySelector('[slot="trigger"]')),this.attachEventListeners()}componentDidLoad(){if(this.open){const{setFadeIn:t}=a(this.popoverElement);t(),this.popoverElement.removeAttribute("hidden")}else{const{setGrowOut:t}=c(this.popoverElement);t()}this.positionPopover()}disconnectedCallback(){u(this.closeEvents,document,this),"click"===this.triggerMode&&(u(this.clickEvents,this.triggerElement,this),u(this.outsideClickEvents,document,this)),"hover"===this.triggerMode&&u(this.hoverEvents,this.triggerElement,this),this.eventsAttached=!1,this.hideTimeout&&clearTimeout(this.hideTimeout),this.showTimeout&&clearTimeout(this.showTimeout)}render(){return i(s,{key:"bf65e878d126fd511b574bf0262dde4f60e89750"},i("slot",{key:"5482a6bc3d6eb3edfa6653623f6c3024c6d150be",name:"trigger"}),i("div",{key:"6cd445d44ad05def95647d2898dc19092716a8ee","data-scope":"popover","data-strategy":this.strategy,hidden:!0,ref:t=>this.popoverElement=t},this.hasArrow&&i("div",{key:"b23f0f9709f733a44d239a05b99f965d5ba036fb","data-scope":"arrow",ref:t=>this.arrowElement=t}),i("slot",{key:"423901f5afaf3418edc8870b4de7b113151c685d",name:"content"})))}get el(){return this}static get watchers(){return{open:[{handleOpenChange:0}],strategy:[{handleStrategyChange:0}]}}static get style(){return"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}"}},[260,"nv-popover",{triggerElement:[1040],open:[1540],triggerMode:[513,"trigger-mode"],placement:[513],strategy:[513],groupName:[513,"group-name"],offset:[514],hasArrow:[516,"has-arrow"],disableFlip:[516,"disable-flip"],shiftPadding:[514,"shift-padding"],enterDelay:[514,"enter-delay"],nested:[516],show:[64],hide:[64],toggle:[64]},void 0,{open:[{handleOpenChange:0}],strategy:[{handleStrategyChange:0}]}]);function xt(){"undefined"!=typeof customElements&&["nv-popover"].forEach((t=>{"nv-popover"===t&&(customElements.get(e(t))||customElements.define(e(t),bt))}))}xt();export{bt as N,xt as d}
|
|
1
|
+
import{S as t,t as e,p as n,H as o,c as r,h as i,d as s}from"./p-DMtFowUl.js";import{u as a}from"./p-9xYwU7ku.js";import{u as c}from"./p-D02w_Ru6.js";import"./p-Dz1GUhVy.js";import{a as l,r as u}from"./p-B6GgGra-.js";import{a as f}from"./p-CuXVGECR.js";const d=Math.min,h=Math.max,p=Math.round,m=t=>({x:t,y:t}),g={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"};function v(t,e,n){return h(t,d(e,n))}function w(t,e){return"function"==typeof t?t(e):t}function b(t){return t.split("-")[0]}function x(t){return t.split("-")[1]}function k(t){return"x"===t?"y":"x"}function A(t){return"y"===t?"height":"width"}function T(t){return["top","bottom"].includes(b(t))?"y":"x"}function C(t){return k(T(t))}function O(t){return t.replace(/start|end/g,(t=>y[t]))}function S(t){return t.replace(/left|right|bottom|top/g,(t=>g[t]))}function j(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function D(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function P(t,e,n){let{reference:o,floating:r}=t;const i=T(e),s=C(e),a=A(s),c=b(e),l="y"===i,u=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,d=o[a]/2-r[a]/2;let h;switch(c){case"top":h={x:u,y:o.y-r.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}switch(x(e)){case"start":h[s]-=d*(n&&l?-1:1);break;case"end":h[s]+=d*(n&&l?-1:1)}return h}async function R(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=w(e,t),p=j(h),m=a[d?"floating"===f?"reference":"floating":f],g=D(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),y="floating"===f?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},x=D(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:c}):y);return{top:(g.top-x.top+p.top)/b.y,bottom:(x.bottom-g.bottom+p.bottom)/b.y,left:(g.left-x.left+p.left)/b.x,right:(x.right-g.right+p.right)/b.x}}function E(){return"undefined"!=typeof window}function M(t){return B(t)?(t.nodeName||"").toLowerCase():"#document"}function F(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function L(t){var e;return null==(e=(B(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function B(t){return!!E()&&(t instanceof Node||t instanceof F(t).Node)}function N(t){return!!E()&&(t instanceof Element||t instanceof F(t).Element)}function $(t){return!!E()&&(t instanceof HTMLElement||t instanceof F(t).HTMLElement)}function G(t){return!(!E()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof F(t).ShadowRoot)}function z(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=X(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function H(t){return["table","td","th"].includes(M(t))}function U(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function V(t){const e=W(),n=N(t)?X(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function W(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function I(t){return["html","body","#document"].includes(M(t))}function X(t){return F(t).getComputedStyle(t)}function Y(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function _(t){if("html"===M(t))return t;const e=t.assignedSlot||t.parentNode||G(t)&&t.host||L(t);return G(e)?e.host:e}function K(t){const e=_(t);return I(e)?t.ownerDocument?t.ownerDocument.body:t.body:$(e)&&z(e)?e:K(e)}function q(t,e){var n;void 0===e&&(e=[]);const o=K(t),r=o===(null==(n=t.ownerDocument)?void 0:n.body),i=F(o);return r?e.concat(i,i.visualViewport||[],z(o)?o:[],[]):e.concat(o,q(o,[]))}function J(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Q(t){const e=X(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=$(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,a=p(n)!==i||p(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function Z(t){return N(t)?t:t.contextElement}function tt(t){const e=Z(t);if(!$(e))return m(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Q(e);let s=(i?p(n.width):n.width)/o,a=(i?p(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const et=m(0);function nt(t){const e=F(t);return W()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:et}function ot(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),i=Z(t);let s=m(1);e&&(o?N(o)&&(s=tt(o)):s=tt(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==F(t))&&e}(i,n,o)?nt(i):m(0);let c=(r.left+a.x)/s.x,l=(r.top+a.y)/s.y,u=r.width/s.x,f=r.height/s.y;if(i){const t=F(i),e=o&&N(o)?F(o):o;let n=t,r=J(n);for(;r&&o&&e!==n;){const t=tt(r),e=r.getBoundingClientRect(),o=X(r),i=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,s=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,l*=t.y,u*=t.x,f*=t.y,c+=i,l+=s,n=F(r),r=J(n)}}return D({width:u,height:f,x:c,y:l})}function rt(t,e){const n=Y(t).scrollLeft;return e?e.left+n:ot(L(t)).left+n}function it(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=F(t),o=L(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const t=W();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:a,y:c}}(t,n);else if("document"===e)o=function(t){const e=L(t),n=Y(t),o=t.ownerDocument.body,r=h(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=h(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+rt(t);const a=-n.scrollTop;return"rtl"===X(o).direction&&(s+=h(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}(L(t));else if(N(e))o=function(t,e){const n=ot(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=$(t)?tt(t):m(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(e,n);else{const n=nt(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return D(o)}function st(t,e){const n=_(t);return!(n===e||!N(n)||I(n))&&("fixed"===X(n).position||st(n,e))}function at(t,e,n){const o=$(e),r=L(e),i="fixed"===n,s=ot(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=m(0);if(o||!o&&!i)if(("body"!==M(e)||z(r))&&(a=Y(e)),o){const t=ot(e,!0,i,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else r&&(c.x=rt(r));let l=0,u=0;if(r&&!o&&!i){const t=r.getBoundingClientRect();u=t.top+a.scrollTop,l=t.left+a.scrollLeft-rt(r,t)}return{x:s.left+a.scrollLeft-c.x-l,y:s.top+a.scrollTop-c.y-u,width:s.width,height:s.height}}function ct(t){return"static"===X(t).position}function lt(t,e){if(!$(t)||"fixed"===X(t).position)return null;if(e)return e(t);let n=t.offsetParent;return L(t)===n&&(n=n.ownerDocument.body),n}function ut(t,e){const n=F(t);if(U(t))return n;if(!$(t)){let e=_(t);for(;e&&!I(e);){if(N(e)&&!ct(e))return e;e=_(e)}return n}let o=lt(t,e);for(;o&&H(o)&&ct(o);)o=lt(o,e);return o&&I(o)&&ct(o)&&!V(o)?n:o||function(t){let e=_(t);for(;$(e)&&!I(e);){if(V(e))return e;if(U(e))return null;e=_(e)}return null}(t)||n}const ft={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i="fixed"===r,s=L(o),a=!!e&&U(e.floating);if(o===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=m(1);const u=m(0),f=$(o);if((f||!f&&!i)&&(("body"!==M(o)||z(s))&&(c=Y(o)),$(o))){const t=ot(o);l=tt(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}},getDocumentElement:L,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?U(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=q(t,[]).filter((t=>N(t)&&"body"!==M(t))),r=null;const i="fixed"===X(t).position;let s=i?_(t):t;for(;N(s)&&!I(s);){const e=X(s),n=V(s);n||"fixed"!==e.position||(r=null),(i?!n&&!r:!n&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||z(s)&&!n&&st(t,s))?o=o.filter((t=>t!==s)):r=e,s=_(s)}return e.set(t,o),o}(e,this._c):[].concat(n),o],s=i.reduce(((t,n)=>{const o=it(e,n,r);return t.top=h(o.top,t.top),t.right=d(o.right,t.right),t.bottom=d(o.bottom,t.bottom),t.left=h(o.left,t.left),t}),it(e,i[0],r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ut,getElementRects:async function(t){const e=this.getOffsetParent||ut,n=this.getDimensions,o=await n(t.floating);return{reference:at(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=Q(t);return{width:e,height:n}},getScale:tt,isElement:N,isRTL:function(t){return"rtl"===X(t).direction}},dt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=w(t,e),l={x:n,y:o},u=await R(e,c),f=T(b(r)),d=k(f);let h=l[d],p=l[f];i&&(h=v(h+u["y"===d?"top":"left"],h,h-u["y"===d?"bottom":"right"])),s&&(p=v(p+u["y"===f?"top":"left"],p,p-u["y"===f?"bottom":"right"]));const m=a.fn({...e,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-o}}}}},ht=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=w(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=b(r),v=b(a)===a,k=await(null==c.isRTL?void 0:c.isRTL(l.floating)),T=d||(v||!m?[S(a)]:function(t){const e=S(t);return[O(t),e,O(e)]}(a));d||"none"===p||T.push(...function(t,e,n,o){const r=x(t);let i=function(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:s;default:return[]}}(b(t),"start"===n,o);return r&&(i=i.map((t=>t+"-"+r)),e&&(i=i.concat(i.map(O)))),i}(a,m,p,k));const j=[a,...T],D=await R(e,g),P=[];let E=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&P.push(D[y]),f){const t=function(t,e,n){void 0===n&&(n=!1);const o=x(t),r=C(t),i=A(r);let s="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=S(s)),[s,S(s)]}(r,s,k);P.push(D[t[0]],D[t[1]])}if(E=[...E,{placement:r,overflows:P}],!P.every((t=>t<=0))){var M,F;const t=((null==(M=i.flip)?void 0:M.index)||0)+1,e=j[t];if(e)return{data:{index:t,overflows:E},reset:{placement:e}};let n=null==(F=E.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:F.placement;if(!n)switch(h){case"bestFit":{var L;const t=null==(L=E.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:L[0];t&&(n=t);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}},pt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=w(t,e)||{};if(null==l)return{};const f=j(u),h={x:n,y:o},p=C(r),m=A(p),g=await s.getDimensions(l),y="y"===p,b=y?"top":"left",k=y?"bottom":"right",T=y?"clientHeight":"clientWidth",O=i.reference[m]+i.reference[p]-h[p]-i.floating[m],S=h[p]-i.reference[p],D=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let P=D?D[T]:0;P&&await(null==s.isElement?void 0:s.isElement(D))||(P=a.floating[T]||i.floating[m]);const R=O/2-S/2,E=P/2-g[m]/2-1,M=d(f[b],E),F=d(f[k],E),L=M,B=P-g[m]-F,N=P/2-g[m]/2+R,$=v(L,N,B),G=!c.arrow&&null!=x(r)&&N!==$&&i.reference[m]/2-(N<L?M:F)-g[m]/2<0,z=G?N<L?N-L:N-B:0;return{[p]:h[p]+z,data:{[p]:$,centerOffset:N-$-z,...G&&{alignmentOffset:z}},reset:G}}}),mt=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys()){const n=t.get(e).filter((t=>{const e=t.deref();return e&&(!("isConnected"in(n=e))||n.isConnected);var n}));t.set(e,n)}})(...e)}),2e3)}})(),gt=t.forceUpdate,yt=t.getRenderingRef,vt=(t,e)=>{const n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.length--)},{state:wt}=(()=>{const t=((t,e=(t,e)=>t!==e)=>{const n=()=>{return("function"==typeof(e=t)?e():e)??{};var e},o=n();let r=new Map(Object.entries(o));const i="undefined"!=typeof Proxy,s=i?null:{},a={dispose:[],get:[],set:[],reset:[]},c=new Map,l=()=>{r=new Map(Object.entries(n())),i||m(),a.reset.forEach((t=>t()))},u=t=>(a.get.forEach((e=>e(t))),r.get(t)),f=(t,n)=>{const o=r.get(t);e(n,o,t)&&(r.set(t,n),i||p(t),a.set.forEach((e=>e(t,n,o))))},d=i?new Proxy(o,{get:(t,e)=>u(e),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>r.has(e),set:(t,e,n)=>(f(e,n),!0)}):(m(),s),h=(t,e)=>(a[t].push(e),()=>{vt(a[t],e)});function p(t){!i&&s&&(Object.prototype.hasOwnProperty.call(s,t)||Object.defineProperty(s,t,{configurable:!0,enumerable:!0,get:()=>u(t),set(e){f(t,e)}}))}function m(){if(i||!s)return;const t=new Set(r.keys());for(const e of Object.keys(s))t.has(e)||delete s[e];for(const e of t)p(e)}return{state:d,get:u,set:f,on:h,onChange:(t,e)=>{const o=(n,o)=>{n===t&&e(o)},r=()=>{const o=n();e(o[t])},i=h("set",o),s=h("reset",r);return c.set(e,{setHandler:o,resetHandler:r,propName:t}),()=>{i(),s(),c.delete(e)}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(h("set",e.set)),e.get&&t.push(h("get",e.get)),e.reset&&t.push(h("reset",e.reset)),e.dispose&&t.push(h("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{a.dispose.forEach((t=>t())),l()},reset:l,forceUpdate:t=>{const e=r.get(t);a.set.forEach((n=>n(t,e,e)))},removeListener:(t,e)=>{const n=c.get(e);n&&n.propName===t&&(vt(a.set,n.setHandler),vt(a.reset,n.resetHandler),c.delete(e))}}})({groups:new Map},void 0);return t.use((()=>{if("function"!=typeof yt||"function"!=typeof gt)return{};const t=gt,e=yt,n=new Map;return{dispose:()=>n.clear(),get:t=>{const o=e();o&&((t,e,n)=>{let o=t.get(e);o||(o=[],t.set(e,o)),o.some((t=>t.deref()===n))||o.push(new WeakRef(n))})(n,t,o)},set:e=>{const o=n.get(e);if(o){const r=o.filter((e=>{const n=e.deref();return!!n&&t(n)}));n.set(e,r)}mt(n)},reset:()=>{n.forEach((e=>{e.forEach((e=>{const n=e.deref();n&&t(n)}))})),mt(n)}}})()),t})(),bt=n(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.openChanged=r(this,"openChanged",3),this.eventsAttached=!1,this.isAnimating=!1,this.clickEvents=[["click",()=>this.open=!this.open]],this.hoverEvents=[["focus",()=>{clearTimeout(this.hideTimeout),this.showTimeout=setTimeout((()=>this.open=!0),this.enterDelay)}],["blur",()=>{clearTimeout(this.showTimeout),this.hideTimeout=setTimeout((()=>this.open=!1),50)}],["mouseenter",()=>{clearTimeout(this.hideTimeout),this.showTimeout=setTimeout((()=>this.open=!0),this.enterDelay)}],["mouseleave",()=>{clearTimeout(this.showTimeout),this.hideTimeout=setTimeout((()=>this.open=!1),100)}]],this.closeEvents=[["keydown",t=>{"Escape"===t.key&&"controlled"!==this.triggerMode&&(this.open=!1)}]],this.open=!1,this.triggerMode="click",this.placement="bottom",this.strategy="absolute",this.offset=6,this.hasArrow=!1,this.disableFlip=!1,this.shiftPadding=0,this.enterDelay=0,this.nested=!1,this.handleClickOutside=t=>{this.el.contains(t.target)||this.triggerElement?.contains(t.target)||(this.open=!1)},this.outsideClickEvents=[["click",this.handleClickOutside],["touchstart",this.handleClickOutside]]}async show(){this.open=!0}async hide(){this.open=!1}async toggle(){this.open=!this.open}attachEventListeners(){this.triggerElement&&!this.eventsAttached&&(l(this.closeEvents,document,this),"click"===this.triggerMode&&(l(this.clickEvents,this.triggerElement,this),l(this.outsideClickEvents,document,this)),"hover"===this.triggerMode&&l(this.hoverEvents,this.triggerElement,this),this.eventsAttached=!0)}positionPopover(){var t;this.triggerElement&&((t,e,n)=>{const o=new Map,r={platform:ft,...n},i={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:f}=P(l,o,c),d=o,h={},p=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:g,y,data:v,reset:w}=await m({x:u,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:h,rects:l,platform:s,elements:{reference:t,floating:e}});u=null!=g?g:u,f=null!=y?y:f,h={...h,[i]:{...h[i],...v}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(l=!0===w.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):w.rects),({x:u,y:f}=P(l,d,c))),n=-1)}return{x:u,y:f,placement:d,strategy:r,middlewareData:h}})(t,e,{...r,platform:i})})(f(this.triggerElement),this.popoverElement,{placement:this.placement,strategy:this.strategy,middleware:[(t=this.offset,void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=e,c=await async function(t,e){const{placement:n,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),s=b(n),a=x(n),c="y"===T(n),l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,f=w(e,t);let{mainAxis:d,crossAxis:h,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof p&&(h="end"===a?-1*p:p),c?{x:h*u,y:d*l}:{x:d*l,y:h*u}}(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}),!this.disableFlip&&ht({fallbackStrategy:"bestFit",crossAxis:!0,fallbackPlacements:["bottom"]}),dt({padding:this.shiftPadding}),this.hasArrow&&pt({element:this.arrowElement})]}).then((({x:t,y:e,placement:n,middlewareData:o,strategy:r})=>{if(Object.assign(this.popoverElement.style,{left:`${t}px`,top:`${e}px`,position:r}),this.hasArrow){const t={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]],e={top:"rotate(225deg)",right:"rotate(315deg)",bottom:"rotate(45deg)",left:"rotate(135deg)"}[n.split("-")[0]],{x:r,y:i}=o.arrow;Object.assign(this.arrowElement.style,{left:null!=r?`${r}px`:"",top:null!=i?`${i}px`:"",right:"",bottom:"",transform:e,[t]:"-4px"})}}))}async handleOpenChange(t){for(;this.isAnimating;)await new Promise((t=>setTimeout(t,50)));this.isAnimating=!0;const e=wt.groups.get(this.groupName),n=e&&e.openedBy!==this.el,o=e&&e.openedBy===this.el;t&&this.popoverElement.style.removeProperty("display"),o&&!t&&wt.groups.delete(this.groupName),this.groupName&&t&&wt.groups.set(this.groupName,{openedBy:this.el});const{growIn:r}=c(this.popoverElement,{duration:n?0:100,amount:.85}),{fadeOut:i}=a(this.popoverElement,{duration:n?0:100});!0===t&&(this.popoverElement.removeAttribute("hidden"),this.positionPopover(),await r()),!1===t&&(await i(),this.popoverElement.setAttribute("hidden","")),this.isAnimating=!1,this.openChanged.emit(t)}handleStrategyChange(){this.open&&this.positionPopover()}componentWillRender(){this.triggerElement||(this.triggerElement=this.el.querySelector('[slot="trigger"]')),this.attachEventListeners()}componentDidLoad(){if(this.open){const{setFadeIn:t}=a(this.popoverElement);t(),this.popoverElement.removeAttribute("hidden")}else{const{setGrowOut:t}=c(this.popoverElement);t()}this.positionPopover()}disconnectedCallback(){u(this.closeEvents,document,this),"click"===this.triggerMode&&(u(this.clickEvents,this.triggerElement,this),u(this.outsideClickEvents,document,this)),"hover"===this.triggerMode&&u(this.hoverEvents,this.triggerElement,this),this.eventsAttached=!1,this.hideTimeout&&clearTimeout(this.hideTimeout),this.showTimeout&&clearTimeout(this.showTimeout)}render(){return i(s,{key:"1a604043f59c8aa04237b6d03838125079ac5c49"},i("slot",{key:"c22461b3d5050f7b502635221cbe17c03ef425a9",name:"trigger"}),i("div",{key:"58a438db8308be12d854afe3deda462d4ae528fb","data-scope":"popover","data-strategy":this.strategy,hidden:!0,ref:t=>this.popoverElement=t},this.hasArrow&&i("div",{key:"af18bf4b8700484ca989a8d45da8295e8d11ea2e","data-scope":"arrow",ref:t=>this.arrowElement=t}),i("slot",{key:"f3308bfc01d5a4f954a1f0b822cf378cd874f9bd",name:"content"})))}get el(){return this}static get watchers(){return{open:[{handleOpenChange:0}],strategy:[{handleStrategyChange:0}]}}static get style(){return"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}"}},[260,"nv-popover",{triggerElement:[1040],open:[1540],triggerMode:[513,"trigger-mode"],placement:[513],strategy:[513],groupName:[513,"group-name"],offset:[514],hasArrow:[516,"has-arrow"],disableFlip:[516,"disable-flip"],shiftPadding:[514,"shift-padding"],enterDelay:[514,"enter-delay"],nested:[516],show:[64],hide:[64],toggle:[64]},void 0,{open:[{handleOpenChange:0}],strategy:[{handleStrategyChange:0}]}]);function xt(){"undefined"!=typeof customElements&&["nv-popover"].forEach((t=>{"nv-popover"===t&&(customElements.get(e(t))||customElements.define(e(t),bt))}))}xt();export{bt as N,xt as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as o,p as n,H as t,h as e,d as i}from"./p-DMtFowUl.js";import{c as s}from"./p-ChV9xqsO.js";import{i as a}from"./p-C4Cy9iy8.js";import{d as r}from"./p-CtKp5aji.js";import{d as c}from"./p-BnO_M5Vy.js";const u=n(class extends t{constructor(o){super(),!1!==o&&this.__registerHost(),this.internals=this.attachInternals(),this.size="md",this.emphasis="high",this.loading=!1,this.disabled=!1,this.active=!1,this.type="button",this.shape="square",this.disableTabindex=!1,this.handleClick=o=>{this.disabled?o.preventDefault():("submit"===this.type&&this.internals?.form?.requestSubmit(),"reset"===this.type&&this.internals?.form?.reset())}}handleLoadingChange(o){this.loading=o,this.disabled=o}handleDisabledChange(o){this.disabled=this.loading?this.loading:o}handleKeyDown(o){a(o.key)&&(o.preventDefault(),this.el.click())}handleTouchStart(o){o.touches.length>1||(o.preventDefault(),this.el.click())}componentWillLoad(){this.loading&&(this.disabled=this.loading)}render(){return e(i,{key:"e657e688f0e40a738a7a83b5130f4ec0a51339e7",role:"button",type:this.type,tabindex:this.disableTabindex?-1:0,disabled:!!this.disabled||void 0,class:s("root",`size-${this.size}`,`emphasis-${this.emphasis}`,this.loading&&"loading",`shape-${this.shape}`),onClick:this.handleClick},this.loading&&e("nv-loader",{key:"d33fa5969fec5936f0de4ef9580387d1ee03929d",size:this.size}),!this.loading&&e("nv-icon",{key:"ff1518a8f1f49acf65c2c971fd1b1be45e581cba",name:this.name,size:this.size}),e("slot",{key:"4c694ffe57e30b997026922ee077e1cce96cef6c"}))}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{loading:[{handleLoadingChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){return"nv-iconbutton.root{display:inline-flex;justify-content:center;align-items:center;font-style:normal;font-weight:var(--font-weight-medium-emphasis);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;transition:background-color 150ms ease-out;height:fit-content;width:fit-content}nv-iconbutton.size-xs{padding:calc(var(--button-xs-icon-button-padding) - 1px);gap:var(--button-xs-gap);border-radius:var(--button-xs-border-radius);line-height:var(--button-xs-line-height);font-size:var(--button-xs-font-size)}nv-iconbutton.size-sm{padding:calc(var(--button-sm-icon-button-padding) - 1px);gap:var(--button-sm-gap);border-radius:var(--button-sm-border-radius);line-height:var(--button-sm-line-height);font-size:var(--button-sm-font-size)}nv-iconbutton.size-md{padding:calc(var(--button-md-icon-button-padding) - 1px);gap:var(--button-md-gap);border-radius:var(--button-md-border-radius);line-height:var(--button-md-line-height);font-size:var(--button-md-font-size)}nv-iconbutton.size-lg{padding:calc(var(--button-lg-icon-button-padding) - 1px);gap:var(--button-lg-gap);border-radius:var(--button-lg-border-radius);line-height:var(--button-lg-line-height);font-size:var(--button-lg-font-size)}nv-iconbutton.emphasis-high{background:var(--components-button-high-background);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text)}nv-iconbutton.emphasis-high:hover{background:var(--components-button-high-background-hover);color:var(--components-button-high-text-hover)}nv-iconbutton.emphasis-high:focus,nv-iconbutton.emphasis-high:focus-within{outline:none}nv-iconbutton.emphasis-high:focus-visible,nv-iconbutton.emphasis-high:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-high:disabled{background:var(--components-button-high-background);color:var(--components-button-high-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-high nv-icon>svg{color:var(--components-button-high-icon)}nv-iconbutton.emphasis-medium{background:var(--components-button-medium-background);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text)}nv-iconbutton.emphasis-medium:hover{background:var(--components-button-medium-background-hover);color:var(--components-button-medium-text-hover)}nv-iconbutton.emphasis-medium:focus,nv-iconbutton.emphasis-medium:focus-within{outline:none}nv-iconbutton.emphasis-medium:focus-visible,nv-iconbutton.emphasis-medium:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-medium:disabled{background:var(--components-button-medium-background);color:var(--components-button-medium-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-medium nv-icon>svg{color:var(--components-button-medium-icon)}nv-iconbutton.emphasis-low{background:var(--components-button-low-background);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text)}nv-iconbutton.emphasis-low:hover{background:var(--components-button-low-background-hover);color:var(--components-button-low-text-hover)}nv-iconbutton.emphasis-low:focus,nv-iconbutton.emphasis-low:focus-within{outline:none}nv-iconbutton.emphasis-low:focus-visible,nv-iconbutton.emphasis-low:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-low:disabled{background:var(--components-button-low-background);color:var(--components-button-low-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-low nv-icon>svg{color:var(--components-button-low-icon)}nv-iconbutton.emphasis-lower{background:var(--components-button-lower-background);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text)}nv-iconbutton.emphasis-lower:hover{background:var(--components-button-lower-background-hover);color:var(--components-button-lower-text-hover)}nv-iconbutton.emphasis-lower:focus,nv-iconbutton.emphasis-lower:focus-within{outline:none}nv-iconbutton.emphasis-lower:focus-visible,nv-iconbutton.emphasis-lower:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-lower:disabled{background:var(--components-button-lower-background);color:var(--components-button-lower-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-lower nv-icon>svg{color:var(--components-button-lower-icon)}nv-iconbutton.loading [slot=leading-icon]{display:none}nv-iconbutton.shape-rounded{border-radius:var(--radius-rounded-full)}"}},[324,"nv-iconbutton",{size:[513],emphasis:[513],loading:[1540],disabled:[1540],active:[516],name:[513],type:[513],shape:[513],disableTabindex:[516,"disable-tabindex"]},[[0,"keydown","handleKeyDown"],[0,"touchstart","handleTouchStart"]],{loading:[{handleLoadingChange:0}],disabled:[{handleDisabledChange:0}]}]);function l(){"undefined"!=typeof customElements&&["nv-iconbutton","nv-icon","nv-loader"].forEach((n=>{switch(n){case"nv-iconbutton":customElements.get(o(n))||customElements.define(o(n),u);break;case"nv-icon":customElements.get(o(n))||r();break;case"nv-loader":customElements.get(o(n))||c()}}))}l();export{u as N,l as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as t,H as i,c as n,h as o,d as s}from"./p-DMtFowUl.js";import{u as a}from"./p-D1C_pu0E.js";import"./p-Dz1GUhVy.js";import{i as c}from"./p-C4Cy9iy8.js";import{d as r}from"./p-CtKp5aji.js";import{d}from"./p-m37Anefm.js";import{d as h}from"./p-BnO_M5Vy.js";const l=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.itemToggle=n(this,"itemToggle",7),this.isToggling=!1,this.open=!1,this.disabled=!1,this.mode="accordion",this.currentOpenState=!1,this.isInitialized=!1,this.isAnimating=!1,this.handleHeaderClick=()=>{this.toggle()},this.handleIconClick=e=>{e.stopPropagation(),this.toggle()},this.handleHeaderKeyDown=e=>{if(this.disabled)console.warn("[handleHeaderKeyDown] Ignored (disabled)");else{if(c(e.key))return e.preventDefault(),void this.toggle();switch(e.key){case"ArrowDown":e.preventDefault(),this.open||(this.isToggling=!0,this.open=!0,this.itemToggle.emit(!0),this.isToggling=!1);break;case"ArrowUp":e.preventDefault(),this.open&&(this.isToggling=!0,this.open=!1,this.itemToggle.emit(!1),this.isToggling=!1)}}}}async onOpenChanged(e,t){if(this.disabled)return console.warn("[onOpenChanged] Item is disabled, forcing closed state"),this.currentOpenState=!1,void(this.open=!1);this.currentOpenState=e,void 0===t||(!1!==e||this.isToggling?e&&!this.isToggling&&this.itemToggle.emit(e):this.itemToggle.emit(e),await this.updateVisibility(e))}async updateVisibility(e){if(!this.contentRef)return void console.error("[updateVisibility] No contentRef available");this.isAnimating=!0;const{collapse:t,expand:i}=a(this.contentRef,{duration:200});e?await i():await t(),this.isAnimating=!1}componentWillLoad(){this.currentOpenState=this.open}componentDidLoad(){this.contentRef&&setTimeout((()=>{const{setExpanded:e,setCollapsed:t}=a(this.contentRef,{duration:200});this.open?(e(),this.currentOpenState=!0):(t(),this.currentOpenState=!1),this.isInitialized=!0}),0)}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect()}async toggle(){if(this.disabled||this.isAnimating)console.warn("[toggle] Ignored toggle (disabled or animating)");else{this.isToggling=!0;const e=!this.open;this.open=e,this.itemToggle.emit(e),this.isToggling=!1}}get chevronIconName(){return this.open?"chevron-top":"chevron-down"}render(){return o(s,{key:"c0169541993ffd109fe9472cfe9acf0cc15eea74",class:{"nv-accordion-item":!0,"is-open":this.currentOpenState,"is-disabled":this.disabled,"is-animating":this.isAnimating},role:"listitem","aria-expanded":this.currentOpenState?"true":"false","aria-disabled":this.disabled?"true":"false"},o("div",{key:"ff0c3dbd34a73d902737b2a15d29bc9d70e51667",class:"nv-accordion-item__header",onClick:this.handleHeaderClick,"aria-controls":"content"},o("slot",{key:"aa50c7ac879ee354a33d6e7ff2da2b377abe1848",name:"header"},o("div",{key:"10f7739be035196deab5b380c955972ced73b81d",class:"nv-accordion-item__header-content"},this.itemTitle&&o("span",{key:"d8f0ac448168fdffde64f079645ceaaf99e2f801",class:"nv-accordion-item__title"},this.itemTitle),this.subtitle&&o("span",{key:"b3c5f60f26fd831df2e77e252d8e51551a6698e8",class:"nv-accordion-item__subtitle"},this.subtitle))),o("nv-iconbutton",{key:"9a3d259561c13b750c0d4380b42a8978d45fb8c5",emphasis:"low",size:"sm",shape:"square",name:this.chevronIconName,tabindex:this.disabled?-1:0,onClick:this.handleIconClick,onKeyDown:this.handleHeaderKeyDown,"aria-controls":"content","aria-label":this.currentOpenState?"Close the section":"Open the section"})),o("div",{key:"7245b95a28705bed24c4df2dd9642b009c36bc81",id:"content",class:"nv-accordion-item__content",ref:e=>this.contentRef=e},o("div",{key:"86236524b5eda533e8e632438ec006a46cc8f28c",class:"nv-accordion-item__content-inner"},o("slot",{key:"bac97f282ae43c5d72df2b264b5688626423ed4c",name:"content"}))))}get el(){return this}static get watchers(){return{open:[{onOpenChanged:0}]}}static get style(){return"nv-accordion-item{display:block;border-bottom:var(--spacing-px) solid var(--color-content-low-border)}nv-accordion-item:last-child{border-bottom:none}nv-accordion-item .nv-accordion-item__header{cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:var(--spacing-4)}nv-accordion-item .nv-accordion-item__header .nv-accordion-item__chevron{margin-left:var(--spacing-2);flex-shrink:0}nv-accordion-item .nv-accordion-item__header .nv-accordion-item__header-content{display:flex;flex-direction:column;gap:var(--spacing-0-5);flex:1;min-width:0}nv-accordion-item .nv-accordion-item__header .nv-accordion-item__title{color:var(--color-content-high-text);font-size:var(--font-size-lg);font-style:normal;font-weight:var(--font-weight-medium-emphasis);line-height:var(--line-height-lg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}nv-accordion-item .nv-accordion-item__header .nv-accordion-item__subtitle{color:var(--color-content-low-text);font-size:var(--font-size-md);font-style:normal;font-weight:var(--font-weight-medium-emphasis);line-height:var(--line-height-base);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}nv-accordion-item .nv-accordion-item__content{background:var(--color-level-10-background)}nv-accordion-item .nv-accordion-item__content .nv-accordion-item__content-inner{padding:var(--spacing-4);color:var(--color-content-low-text);font-size:var(--font-size-md);font-style:normal;font-weight:var(--font-weight-medium-emphasis);line-height:var(--line-height-base);}nv-accordion-item.is-disabled{opacity:var(--opacity-disabled);pointer-events:none}nv-accordion-item.is-open .nv-accordion-item__header{border-bottom:var(--spacing-px) solid var(--color-content-low-border)}nv-accordion-item:last-child .nv-accordion-item__content{border-radius:0 0 calc(var(--radius-rounded-lg) - var(--spacing-px)) calc(var(--radius-rounded-lg) - var(--spacing-px))}"}},[260,"nv-accordion-item",{itemTitle:[513,"item-title"],subtitle:[513],open:[1540],disabled:[516],maxContentHeight:[514,"max-content-height"],mode:[513],currentOpenState:[32],isInitialized:[32],isAnimating:[32],toggle:[64]},void 0,{open:[{onOpenChanged:0}]}]);function m(){"undefined"!=typeof customElements&&["nv-accordion-item","nv-icon","nv-iconbutton","nv-loader"].forEach((t=>{switch(t){case"nv-accordion-item":customElements.get(e(t))||customElements.define(e(t),l);break;case"nv-icon":customElements.get(e(t))||r();break;case"nv-iconbutton":customElements.get(e(t))||d();break;case"nv-loader":customElements.get(e(t))||h()}}))}m();export{l as N,m as d}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
const TOGGLE_ARIA_ROLES = new Set([
|
|
2
|
+
'button',
|
|
3
|
+
'checkbox',
|
|
4
|
+
'radio',
|
|
5
|
+
]);
|
|
6
|
+
/**
|
|
7
|
+
* Checks whether a keyboard key should toggle a control.
|
|
8
|
+
* @param {string} key - KeyboardEvent key value.
|
|
9
|
+
* @returns {boolean} True when key should trigger toggle behavior.
|
|
10
|
+
*/
|
|
11
|
+
function isToggleKey(key) {
|
|
12
|
+
return key === 'Enter' || key === ' ';
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Checks whether a role is a supported toggle ARIA role.
|
|
16
|
+
* @param {string} role - Role value to validate.
|
|
17
|
+
* @returns {boolean} True when role is supported.
|
|
18
|
+
*/
|
|
19
|
+
function isToggleAriaRole(role) {
|
|
20
|
+
return TOGGLE_ARIA_ROLES.has(role);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Normalizes runtime role values to supported toggle roles.
|
|
24
|
+
* Falls back to button semantics for invalid values.
|
|
25
|
+
* @param {string} role - Role value to normalize.
|
|
26
|
+
* @returns {ToggleAriaRole} Supported role value.
|
|
27
|
+
*/
|
|
28
|
+
function normalizeToggleAriaRole(role) {
|
|
29
|
+
return isToggleAriaRole(role) ? role : 'button';
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Calculates the next selected state for a toggle interaction.
|
|
33
|
+
* @param {boolean} selected - Current selected state.
|
|
34
|
+
* @param {boolean} disabled - Disabled state.
|
|
35
|
+
* @returns {boolean} Updated selected state.
|
|
36
|
+
*/
|
|
37
|
+
function getNextSelectedState(selected, disabled) {
|
|
38
|
+
if (disabled)
|
|
39
|
+
return selected;
|
|
40
|
+
return !selected;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Calculates the next selected state based on role semantics.
|
|
44
|
+
* Radio-like controls cannot toggle off directly once selected.
|
|
45
|
+
* Group-level coordination (for example deselecting sibling radios) is handled
|
|
46
|
+
* by the consuming component in radiogroup context.
|
|
47
|
+
* @param {ToggleAriaRole} role - Interactive role of the control.
|
|
48
|
+
* @param {boolean} selected - Current selected state.
|
|
49
|
+
* @param {boolean} disabled - Disabled state.
|
|
50
|
+
* @returns {boolean} Updated selected state for the role.
|
|
51
|
+
*/
|
|
52
|
+
function getRoleAwareNextSelectedState(role, selected, disabled) {
|
|
53
|
+
if (disabled)
|
|
54
|
+
return selected;
|
|
55
|
+
if (role === 'radio') {
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
return getNextSelectedState(selected, disabled);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Maps role + state to ARIA attributes.
|
|
62
|
+
* @param {ToggleAriaRole} role - Interactive role of the control.
|
|
63
|
+
* @param {boolean} selected - Selected state.
|
|
64
|
+
* @returns {AriaStateAttributes} ARIA state attributes for the role.
|
|
65
|
+
*/
|
|
66
|
+
function getAriaStateAttributes(role, selected) {
|
|
67
|
+
if (role === 'button') {
|
|
68
|
+
return { ariaPressed: String(selected) };
|
|
69
|
+
}
|
|
70
|
+
return { ariaChecked: String(selected) };
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export { getAriaStateAttributes as a, getRoleAwareNextSelectedState as g, isToggleKey as i, normalizeToggleAriaRole as n };
|