@nova-design-system/nova-webcomponents 3.29.0 → 3.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{constants-BugGJYqL.js → constants-BSdCE1ZF.js} +5 -0
- package/dist/cjs/index-Bj9nnTVm.js +4856 -0
- package/dist/cjs/index.cjs.js +5 -1
- 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 +3 -3
- package/dist/cjs/nv-accordion.cjs.entry.js +2 -2
- package/dist/cjs/nv-alert.cjs.entry.js +3 -3
- package/dist/cjs/nv-avatar.cjs.entry.js +3 -3
- package/dist/cjs/nv-badge_2.cjs.entry.js +5 -5
- package/dist/cjs/nv-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/nv-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/nv-button.cjs.entry.js +3 -3
- package/dist/cjs/nv-buttongroup.cjs.entry.js +2 -2
- package/dist/cjs/nv-calendar.cjs.entry.js +4 -4
- package/dist/cjs/nv-col.cjs.entry.js +2 -2
- package/dist/cjs/nv-datagrid.cjs.entry.js +4 -4
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js +2 -2
- package/dist/cjs/nv-datetest.cjs.entry.js +2 -2
- package/dist/cjs/nv-datetimetest.cjs.entry.js +1 -1
- package/dist/cjs/nv-dialog.cjs.entry.js +3 -3
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +4 -4
- package/dist/cjs/nv-drawer.cjs.entry.js +3 -3
- package/dist/cjs/nv-drawerfooter_2.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +5 -5
- package/dist/cjs/nv-fielddate.cjs.entry.js +7 -7
- package/dist/cjs/nv-fielddaterange.cjs.entry.js +7 -7
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +5 -5
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +5 -5
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +5 -5
- package/dist/cjs/nv-fieldradio.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldselect.cjs.entry.js +6 -6
- package/dist/cjs/nv-fieldslider.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldtext.cjs.entry.js +5 -5
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldtime.cjs.entry.js +5 -5
- package/dist/cjs/nv-icon.cjs.entry.js +3 -3
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js +3 -3
- package/dist/cjs/nv-menu.cjs.entry.js +2 -2
- package/dist/cjs/nv-menuitem.cjs.entry.js +2 -2
- package/dist/cjs/nv-notification-bullet.cjs.entry.js +1 -1
- package/dist/cjs/nv-notification.cjs.entry.js +3 -3
- package/dist/cjs/nv-notificationcontainer.cjs.entry.js +2 -2
- package/dist/cjs/nv-pagination-nav.cjs.entry.js +2 -2
- package/dist/cjs/nv-paginationtable.cjs.entry.js +19 -3
- 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 +178 -4
- 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 +39 -0
- package/dist/cjs/nv-table.cjs.entry.js +3 -3
- package/dist/cjs/nv-tableheader.cjs.entry.js +2 -2
- package/dist/cjs/nv-tag.cjs.entry.js +82 -0
- 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 +2 -2
- 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 +2 -0
- package/dist/collection/components/nv-accordion/nv-accordion.js +1 -1
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.js +2 -2
- package/dist/collection/components/nv-alert/nv-alert.js +1 -1
- package/dist/collection/components/nv-avatar/nv-avatar.js +1 -1
- package/dist/collection/components/nv-badge/nv-badge.js +3 -3
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.js +1 -1
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.js +1 -1
- package/dist/collection/components/nv-button/nv-button.js +1 -1
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.js +1 -1
- package/dist/collection/components/nv-calendar/nv-calendar.js +2 -2
- package/dist/collection/components/nv-col/nv-col.js +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js +2 -2
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js +1 -1
- package/dist/collection/components/nv-datetest/nv-datetest.js +1 -1
- package/dist/collection/components/nv-dialog/nv-dialog.js +1 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js +1 -1
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.js +1 -1
- package/dist/collection/components/nv-drawer/nv-drawer.js +1 -1
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.js +1 -1
- package/dist/collection/components/nv-drawerheader/nv-drawerheader.js +1 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js +4 -4
- package/dist/collection/components/nv-fielddate/nv-fielddate.js +6 -6
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js +6 -6
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +4 -4
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +1 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +1 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +4 -4
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +4 -4
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +3 -3
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +5 -5
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.js +3 -3
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +4 -4
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +3 -3
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js +3 -3
- package/dist/collection/components/nv-icon/nv-icon.js +1 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +1 -1
- package/dist/collection/components/nv-loader/nv-loader.js +1 -1
- package/dist/collection/components/nv-menu/nv-menu.js +1 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +1 -1
- package/dist/collection/components/nv-notification/nv-notification.js +1 -1
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.js +1 -1
- package/dist/collection/components/nv-pagination-nav/nv-pagination-nav.js +1 -1
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.js +6 -3
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.utils.js +13 -0
- package/dist/collection/components/nv-paginationtable/test/nv-paginationtable.utils.test.js +26 -1
- 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.docs.js +7 -0
- package/dist/collection/components/nv-sidebar/nv-sidebar.js +274 -2
- package/dist/collection/components/nv-sidebar/styles/nv-sidebar.css +26 -0
- 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 +2 -2
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.js +1 -1
- package/dist/collection/components/nv-split/nv-split.js +2 -1
- package/dist/collection/components/nv-stack/nv-stack.js +1 -1
- package/dist/collection/components/nv-statusindicator/nv-statusindicator.css +73 -0
- package/dist/collection/components/nv-statusindicator/nv-statusindicator.docs.js +34 -0
- package/dist/collection/components/nv-statusindicator/nv-statusindicator.js +122 -0
- package/dist/collection/components/nv-table/nv-table.js +1 -1
- package/dist/collection/components/nv-table/styles/nv-table.css +22 -3
- package/dist/collection/components/nv-tableheader/nv-tableheader.js +1 -1
- package/dist/collection/components/nv-tag/nv-tag.css +228 -0
- package/dist/collection/components/nv-tag/nv-tag.docs.js +114 -0
- package/dist/collection/components/nv-tag/nv-tag.js +251 -0
- 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 +1 -1
- 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/constants.js +5 -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-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.d.ts +11 -0
- package/dist/components/nv-statusindicator.js +1 -0
- package/dist/components/nv-table.js +1 -1
- package/dist/components/nv-tableheader.js +1 -1
- package/dist/components/nv-tag.d.ts +11 -0
- package/dist/components/nv-tag.js +1 -0
- 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-C99g_PrG.js → p-B4qcUV0M.js} +1 -1
- package/dist/components/p-B8yJMa0S.js +1 -0
- package/dist/components/{p-CBlrNW6n.js → p-BU3AWnne.js} +1 -1
- package/dist/components/{p-DKgmDzJ1.js → p-BYrgllP3.js} +1 -1
- package/dist/components/{p-DdcXhR3I.js → p-BhRpSdkR.js} +1 -1
- package/dist/components/{p-CT782LKx.js → p-Bu90dktV.js} +1 -1
- package/dist/components/{p-Cuq_uNwY.js → p-CObbk0-q.js} +1 -1
- package/dist/components/{p-CD12QIMB.js → p-CTISxdir.js} +1 -1
- package/dist/components/{p-D1psKXwD.js → p-Cj6urNtm.js} +1 -1
- package/dist/components/{p-D3JDACHw.js → p-Cx5CLy9v.js} +1 -1
- package/dist/components/{p-Bl7rc9YV.js → p-Cyn4-37z.js} +1 -1
- package/dist/components/{p-EV8CtE4q.js → p-CzRJpv7x.js} +1 -1
- package/dist/components/{p-CgufQqes.js → p-CzRlra4z.js} +1 -1
- package/dist/components/{p-CUjRfVPl.js → p-D54x8OFu.js} +1 -1
- package/dist/components/p-DP_K3tkj.js +1 -0
- package/dist/components/{p-Bytxo1iR.js → p-DQuJvZ4Z.js} +1 -1
- package/dist/components/{p-p1ofW2Cs.js → p-DZdOQQrW.js} +1 -1
- package/dist/components/{p-_zOMJBOq.js → p-Dg-Ac5i4.js} +1 -1
- package/dist/components/p-DiwYO24j.js +2 -0
- package/dist/components/{p-ChVdX6FG.js → p-GDyaHbt9.js} +1 -1
- package/dist/components/{p-Cnlbk416.js → p-L7U51TAH.js} +1 -1
- package/dist/components/{p-RYxAzR3m.js → p-MLanePUO.js} +1 -1
- package/dist/components/p-gOKBmbgZ.js +1 -0
- package/dist/components/{p-CfOVizcp.js → p-yPMU6HZQ.js} +1 -1
- package/dist/esm/{constants-BReL3Lsa.js → constants-gOKBmbgZ.js} +6 -1
- package/dist/esm/index-CTmBvINI.js +4820 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/native.js +3 -3
- package/dist/esm/nv-accordion-item.entry.js +3 -3
- package/dist/esm/nv-accordion.entry.js +2 -2
- package/dist/esm/nv-alert.entry.js +3 -3
- package/dist/esm/nv-avatar.entry.js +3 -3
- package/dist/esm/nv-badge_2.entry.js +5 -5
- package/dist/esm/nv-breadcrumb.entry.js +2 -2
- package/dist/esm/nv-breadcrumbs.entry.js +2 -2
- package/dist/esm/nv-button.entry.js +3 -3
- package/dist/esm/nv-buttongroup.entry.js +2 -2
- package/dist/esm/nv-calendar.entry.js +4 -4
- package/dist/esm/nv-col.entry.js +2 -2
- package/dist/esm/nv-datagrid.entry.js +4 -4
- package/dist/esm/nv-datagridcolumn.entry.js +2 -2
- package/dist/esm/nv-datetest.entry.js +2 -2
- package/dist/esm/nv-datetimetest.entry.js +1 -1
- package/dist/esm/nv-dialog.entry.js +3 -3
- package/dist/esm/nv-dialogfooter_2.entry.js +4 -4
- package/dist/esm/nv-drawer.entry.js +3 -3
- package/dist/esm/nv-drawerfooter_2.entry.js +4 -4
- package/dist/esm/nv-fieldcheckbox.entry.js +5 -5
- package/dist/esm/nv-fielddate.entry.js +7 -7
- package/dist/esm/nv-fielddaterange.entry.js +7 -7
- package/dist/esm/nv-fielddropdown.entry.js +5 -5
- package/dist/esm/nv-fielddropdownitem.entry.js +2 -2
- package/dist/esm/nv-fieldmultiselect.entry.js +1 -1
- package/dist/esm/nv-fieldnumber.entry.js +5 -5
- package/dist/esm/nv-fieldpassword.entry.js +5 -5
- package/dist/esm/nv-fieldradio.entry.js +4 -4
- package/dist/esm/nv-fieldselect.entry.js +6 -6
- package/dist/esm/nv-fieldslider.entry.js +4 -4
- package/dist/esm/nv-fieldtext.entry.js +5 -5
- package/dist/esm/nv-fieldtextarea.entry.js +4 -4
- package/dist/esm/nv-fieldtime.entry.js +5 -5
- package/dist/esm/nv-icon.entry.js +3 -3
- package/dist/esm/nv-iconbutton_2.entry.js +3 -3
- package/dist/esm/nv-menu.entry.js +2 -2
- package/dist/esm/nv-menuitem.entry.js +2 -2
- package/dist/esm/nv-notification-bullet.entry.js +1 -1
- package/dist/esm/nv-notification.entry.js +3 -3
- package/dist/esm/nv-notificationcontainer.entry.js +2 -2
- package/dist/esm/nv-pagination-nav.entry.js +2 -2
- package/dist/esm/nv-paginationtable.entry.js +19 -3
- 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 +178 -4
- 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 +37 -0
- package/dist/esm/nv-table.entry.js +3 -3
- package/dist/esm/nv-tableheader.entry.js +2 -2
- package/dist/esm/nv-tag.entry.js +80 -0
- 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 +2 -2
- 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 +5711 -1
- package/dist/native/native.esm.js +1 -1
- package/dist/native/{p-b7436a14.entry.js → p-04011d0f.entry.js} +1 -1
- package/dist/native/{p-0f9a284e.entry.js → p-0c65e726.entry.js} +1 -1
- package/dist/native/{p-0a17050f.entry.js → p-10dee67d.entry.js} +1 -1
- package/dist/native/p-16037ec8.entry.js +1 -0
- package/dist/native/{p-568fbdac.entry.js → p-189647e4.entry.js} +1 -1
- package/dist/native/{p-0d03b6ed.entry.js → p-270bf467.entry.js} +1 -1
- package/dist/native/{p-2b1efb98.entry.js → p-287c67e1.entry.js} +1 -1
- package/dist/native/p-298d893d.entry.js +1 -0
- package/dist/native/{p-48c1bab4.entry.js → p-29acf903.entry.js} +1 -1
- package/dist/native/{p-2d37df11.entry.js → p-2afcd5e4.entry.js} +1 -1
- package/dist/native/p-33889f52.entry.js +1 -0
- package/dist/native/p-34d30b90.entry.js +1 -0
- package/dist/native/{p-04e40a1e.entry.js → p-352854eb.entry.js} +1 -1
- package/dist/native/{p-8e05077a.entry.js → p-37c42bed.entry.js} +1 -1
- package/dist/native/{p-c20e0b5f.entry.js → p-3969a700.entry.js} +1 -1
- package/dist/native/{p-4bb9b387.entry.js → p-3f888601.entry.js} +1 -1
- package/dist/native/{p-7bb2536f.entry.js → p-40000df1.entry.js} +1 -1
- package/dist/native/{p-eb737344.entry.js → p-410c21e3.entry.js} +1 -1
- package/dist/native/{p-4badca4e.entry.js → p-4514a6a4.entry.js} +1 -1
- package/dist/native/{p-1ea2a804.entry.js → p-49745be2.entry.js} +1 -1
- package/dist/native/{p-2d5189eb.entry.js → p-5375ddc6.entry.js} +1 -1
- package/dist/native/{p-d5060f92.entry.js → p-5690757b.entry.js} +1 -1
- package/dist/native/p-5c321768.entry.js +1 -0
- package/dist/native/{p-7fd6f0b0.entry.js → p-5df9c196.entry.js} +1 -1
- package/dist/native/{p-9a05395d.entry.js → p-5ef11914.entry.js} +1 -1
- package/dist/native/{p-59ecaf60.entry.js → p-64649214.entry.js} +1 -1
- package/dist/native/{p-27ecae3c.entry.js → p-6bb02337.entry.js} +1 -1
- package/dist/native/{p-9b8478a7.entry.js → p-6ccc84c8.entry.js} +1 -1
- package/dist/native/{p-2e932ca4.entry.js → p-6dab2e90.entry.js} +1 -1
- package/dist/native/{p-1450d746.entry.js → p-728f09d5.entry.js} +1 -1
- package/dist/native/{p-49c6d122.entry.js → p-7b1c369b.entry.js} +1 -1
- package/dist/native/p-7b3853be.entry.js +1 -0
- package/dist/native/p-7c9e1f01.entry.js +1 -0
- package/dist/native/p-7cbc09f0.entry.js +1 -0
- package/dist/native/p-859b24ed.entry.js +1 -0
- package/dist/native/{p-d5e931c9.entry.js → p-8decb323.entry.js} +1 -1
- package/dist/native/{p-0d3ab890.entry.js → p-8dfcfb72.entry.js} +1 -1
- package/dist/native/p-8faf3e05.entry.js +1 -0
- package/dist/native/p-915fe20c.entry.js +1 -0
- package/dist/native/p-91cb5c65.entry.js +1 -0
- package/dist/native/{p-1bc76216.entry.js → p-93d2bfab.entry.js} +1 -1
- package/dist/native/{p-16600d93.entry.js → p-9affde0d.entry.js} +1 -1
- package/dist/native/p-CTmBvINI.js +2 -0
- package/dist/native/{p-f7fdca43.entry.js → p-a1ef6740.entry.js} +1 -1
- package/dist/native/p-b2c31350.entry.js +1 -0
- package/dist/native/{p-5cefca3c.entry.js → p-b2ef61bc.entry.js} +1 -1
- package/dist/native/{p-a5e39524.entry.js → p-b7a10751.entry.js} +1 -1
- package/dist/native/{p-ca4ab8a5.entry.js → p-b88dcd21.entry.js} +1 -1
- package/dist/native/p-b99ad8a7.entry.js +1 -0
- package/dist/native/{p-2e40d5d9.entry.js → p-be2e4cf0.entry.js} +1 -1
- package/dist/native/{p-0770997b.entry.js → p-befb5e4e.entry.js} +1 -1
- package/dist/native/{p-07f3200b.entry.js → p-c1faed1f.entry.js} +1 -1
- package/dist/native/{p-d468c445.entry.js → p-c305f1c6.entry.js} +1 -1
- package/dist/native/{p-f078f10a.entry.js → p-c5261442.entry.js} +1 -1
- package/dist/native/{p-12269ed5.entry.js → p-cd21a60d.entry.js} +1 -1
- package/dist/native/{p-0f59cb66.entry.js → p-d0dfa700.entry.js} +1 -1
- package/dist/native/{p-bff549dd.entry.js → p-d4d04530.entry.js} +1 -1
- package/dist/native/{p-336d63c4.entry.js → p-dc000c85.entry.js} +1 -1
- package/dist/native/p-df3ab86a.entry.js +1 -0
- package/dist/native/p-dfb46af1.entry.js +1 -0
- package/dist/native/{p-26c0c34b.entry.js → p-dfd364de.entry.js} +1 -1
- package/dist/native/{p-7b545176.entry.js → p-e7a73a7c.entry.js} +1 -1
- package/dist/native/p-eab25bfa.entry.js +1 -0
- package/dist/native/{p-706eeea4.entry.js → p-ec919a10.entry.js} +1 -1
- package/dist/native/{p-3ddc967e.entry.js → p-ffc9e2a0.entry.js} +1 -1
- package/dist/native/p-gOKBmbgZ.js +1 -0
- package/dist/types/components/nv-paginationtable/nv-paginationtable.utils.d.ts +9 -0
- package/dist/types/components/nv-sidebar/nv-sidebar.d.ts +43 -0
- package/dist/types/components/nv-split/nv-split.d.ts +1 -0
- package/dist/types/components/nv-statusindicator/nv-statusindicator.d.ts +22 -0
- package/dist/types/components/nv-statusindicator/nv-statusindicator.docs.d.ts +4 -0
- package/dist/types/components/nv-tag/nv-tag.d.ts +64 -0
- package/dist/types/components/nv-tag/nv-tag.docs.d.ts +4 -0
- package/dist/types/components.d.ts +210 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/constants.d.ts +4 -0
- package/dist/vscode-data.json +145 -0
- package/hydrate/index.js +461 -114
- package/hydrate/index.mjs +461 -114
- package/package.json +21 -9
- package/dist/cjs/index-eLt3bBQs.js +0 -4848
- package/dist/components/p-BReL3Lsa.js +0 -1
- package/dist/components/p-C47vpaBp.js +0 -1
- package/dist/components/p-Cr_-lRNo.js +0 -1
- package/dist/components/p-flcatmxD.js +0 -2
- package/dist/esm/index-DU3Vhh_k.js +0 -4812
- package/dist/native/p-3afa34d1.entry.js +0 -1
- package/dist/native/p-5f6e45ca.entry.js +0 -1
- package/dist/native/p-6f1213fb.entry.js +0 -1
- package/dist/native/p-6f91712c.entry.js +0 -1
- package/dist/native/p-7126f67e.entry.js +0 -1
- package/dist/native/p-748661f0.entry.js +0 -1
- package/dist/native/p-803759ef.entry.js +0 -1
- package/dist/native/p-92539825.entry.js +0 -1
- package/dist/native/p-943a4dfd.entry.js +0 -1
- package/dist/native/p-96078a63.entry.js +0 -1
- package/dist/native/p-BReL3Lsa.js +0 -1
- package/dist/native/p-DU3Vhh_k.js +0 -2
- package/dist/native/p-dc647a64.entry.js +0 -1
- package/dist/native/p-df5c6b0c.entry.js +0 -1
- package/dist/native/p-e8569a99.entry.js +0 -1
- package/dist/native/p-f3756dfd.entry.js +0 -1
- package/dist/native/p-f3ded7e8.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as o,H as r,c,h as i,d as t}from"./p-flcatmxD.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:"d7af71859fcbf45833c17977e7f524d12d7ec516",class:n("before"===this.labelPlacement&&"label-placement-before",this.error&&"error")},i("div",{key:"c636a80f3d538843e76b48f4bc6387064fdbcb6f",class:"input-container"},i("input",{key:"d5ca4e3d2166b89cd92aecd2b393f03d0d78b769",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:"b51e2d55382e69519d3764f4f9c7087ccfd24235",class:"icon"},this.checked&&!this.indeterminate&&i("slot",{key:"cd70b0132a720ebf866fe21d1b53bbab89cda62f",name:"checked-icon"},i("svg",{key:"f1a9166fa75cbd37c2a0f1850b937de00f77a51e",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},i("path",{key:"2886dee16859f19b7dc630a100cbfd110c2e9eb7",d:"M11.6667 3.5L5.25004 9.91667L2.33337 7","stroke-linecap":"round","stroke-linejoin":"round"}))),this.indeterminate&&i("slot",{key:"68eb14e2bbf5726a27023714f67de50d8e24ad83",name:"indeterminate-icon"},i("svg",{key:"671dc1afed5b3b9d71efff519009c8384da49ec1",class:"indeterminate-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",fill:"none"},i("path",{key:"956838789fbac27422e0db8f13c4e2a8abc64c74",d:"M2.9165 7H11.0832","stroke-linecap":"round","stroke-linejoin":"round"}))))),i("slot",{key:"a93af1189444b1c96ea689eff29b7fa1e5b726c6"}),i("div",{key:"1bd695cb83a2010267d6ce1ce8dc6902dd62adf4",class:"text-container"},i("slot",{key:"b4e3088cf9469842b403d0eeb3122a85d08ce710",name:"main"},(this.label||this.el.querySelector('[slot="label"]'))&&i("label",{key:"f5326d69a430d60577fac4cbb6229cd26292cb6f",htmlFor:this.inputId,class:n(this.hideLabel&&"visually-hidden")},i("slot",{key:"56e52bbf5e0fed0e49b255a23a1c7fdabf69df13",name:"label"},this.label)),(this.description||this.el.querySelector('[slot="description"]'))&&i("div",{key:"ca56f06cc4c3493e27d31de804f695bbe8a77231",class:"description"},i("slot",{key:"46bd6a8deed8dfa6390b0994776a5c31aca16fdf",name:"description"},this.description))),(this.errorDescription||this.el.querySelector('[slot="error-description"]'))&&i("div",{key:"c1a5b14f4397a495e6ad340a6ae3a45e9f2c82fa",hidden:!this.error,class:"error-description"},i("slot",{key:"b8e10251f26ec1d541a1acad5d6bda0fc57b589d",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-DiwYO24j.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 o,p as t,H as e,h as n,d as s}from"./p-flcatmxD.js";import{b as a,B as r}from"./p-BReL3Lsa.js";import{d as i}from"./p-D3JDACHw.js";const u=t(class extends e{constructor(o){super(),!1!==o&&this.__registerHost(),this.internals=this.attachInternals(),this.size="md",this.emphasis="high",this.active=!1,this.danger=!1,this.loading=!1,this.disabled=!1,this.fluid=!1,this.type="button",this.disableTabindex=!1,this.handleButtonClick=o=>{this.loading||this.disabled?o.preventDefault():this.type!==a.Button&&(this.form||this.internals?.form)?this.processFormAction():this.form&&this.type===a.Button&&console.warn("Button has a form id but is not of type submit or reset so no form action will be processed.","Button:",this.el)},this.processFormAction=()=>{const o=this.form?document.getElementById(this.form):this.internals?.form;if(o)switch(this.type){case a.Submit:o.requestSubmit();break;case a.Reset:o.reset()}else console.warn("No form element found.",`Form ID: ${this.form||"Not provided"}`,"Internals form:",this.internals?.form)}}handleKeyDown(o){"Enter"!==o.key&&" "!==o.key||(o.preventDefault(),this.el.click())}handleLoadingChange(o){this.loading=o,this.disabled=o}handleDisabledChange(o){this.disabled=this.loading?this.loading:o}componentWillLoad(){this.loading&&(this.disabled=this.loading)}render(){return n(s,{key:"785b6127926d695ddaaff1a1f740102abd5132bb",role:"button",tabindex:this.disableTabindex?-1:0,onClick:this.handleButtonClick},this.loading&&n("nv-loader",{key:"b361e4ac45cc1612723d6a67f866b8cdce3c4abc",size:this.size===r.Large?"sm":"xs"}),n("slot",{key:"b23c877bd95ae0a02c89c83e4e3d5f0178d646a5",name:"leading-icon"}),n("slot",{key:"7c95b1f28a64e7bb5ca02abf2190dfda62d1c758"}),n("slot",{key:"f1cd34ea21393b78bc2f5140364d47b9e70f505c",name:"trailing-icon"}))}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{loading:[{handleLoadingChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){return"nv-button{text-decoration:none;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;user-select:none;cursor:pointer;height:fit-content;width:fit-content}nv-button[size=xs]{padding:var(--button-xs-padding-y) var(--button-xs-padding-x);gap:var(--button-xs-gap);border-radius:var(--button-xs-border-radius);line-height:var(--button-xs-line-height);height:var(--button-xs-height);font-size:var(--button-xs-font-size)}nv-button[size=xs] nv-icon>svg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-button[size=sm]{padding:var(--button-sm-padding-y) var(--button-sm-padding-x);gap:var(--button-sm-gap);border-radius:var(--button-sm-border-radius);line-height:var(--button-sm-line-height);height:var(--button-sm-height);font-size:var(--button-sm-font-size)}nv-button[size=sm] nv-icon>svg{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-button[size=md]{padding:var(--button-md-padding-y) var(--button-md-padding-x);gap:var(--button-md-gap);border-radius:var(--button-md-border-radius);line-height:var(--button-md-line-height);height:var(--button-md-height);font-size:var(--button-md-font-size)}nv-button[size=md] nv-icon>svg{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-button[size=lg]{padding:var(--button-lg-padding-y) var(--button-lg-padding-x);gap:var(--button-lg-gap);border-radius:var(--button-lg-border-radius);line-height:var(--button-lg-line-height);height:var(--button-lg-height);font-size:var(--button-lg-font-size)}nv-button[size=lg] nv-icon>svg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-button[emphasis=high]{background:var(--components-button-high-background);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text)}nv-button[emphasis=high]:hover{background:var(--components-button-high-background-hover);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text-hover)}nv-button[emphasis=high]:active{background:var(--components-button-high-background-active);border:1px solid var(--components-button-high-border-active);color:var(--components-button-high-text-active)}nv-button[emphasis=high]:focus,nv-button[emphasis=high]:focus-within{outline:none}nv-button[emphasis=high]:focus-visible,nv-button[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-button[emphasis=high]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=high][active]:not([active=false]){background:var(--components-button-high-background-active);border:1px solid var(--components-button-high-border-active);color:var(--components-button-high-text-active)}nv-button[emphasis=high][danger]:not([danger=false]){background:var(--components-button-destructive-high-background);border:1px solid transparent;color:var(--components-button-destructive-high-text)}nv-button[emphasis=high][danger]:not([danger=false]):hover{background:var(--components-button-destructive-high-background-hover);border:1px solid transparent;color:var(--components-button-destructive-high-text-hover)}nv-button[emphasis=high][danger]:not([danger=false]):focus,nv-button[emphasis=high][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=high][danger]:not([danger=false]):focus-visible,nv-button[emphasis=high][danger]:not([danger=false]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=medium]{background:var(--components-button-medium-background);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text)}nv-button[emphasis=medium]:hover{background:var(--components-button-medium-background-hover);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text-hover)}nv-button[emphasis=medium]:active{background:var(--components-button-medium-background-active);border:1px solid var(--components-button-medium-border-active);color:var(--components-button-medium-text-active)}nv-button[emphasis=medium]:focus,nv-button[emphasis=medium]:focus-within{outline:none}nv-button[emphasis=medium]:focus-visible,nv-button[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-button[emphasis=medium]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=medium][active]:not([active=false]){background:var(--components-button-medium-background-active);border:1px solid var(--components-button-medium-border-active);color:var(--components-button-medium-text-active)}nv-button[emphasis=medium][danger]:not([danger=false]){background:var(--components-button-destructive-medium-background);border:1px solid var(--components-button-destructive-medium-border);color:var(--components-button-destructive-medium-text)}nv-button[emphasis=medium][danger]:not([danger=false]):hover{background:var(--components-button-destructive-medium-background-hover);border:1px solid var(--components-button-destructive-medium-border);color:var(--components-button-destructive-medium-text-hover)}nv-button[emphasis=medium][danger]:not([danger=false]):focus,nv-button[emphasis=medium][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=medium][danger]:not([danger=false]):focus-visible,nv-button[emphasis=medium][danger]:not([danger=false]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=low]{background:var(--components-button-low-background);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text)}nv-button[emphasis=low]:hover{background:var(--components-button-low-background-hover);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text-hover)}nv-button[emphasis=low]:active{background:var(--components-button-low-background-active);border:1px solid var(--components-button-low-border-active);color:var(--components-button-low-text-active)}nv-button[emphasis=low]:focus,nv-button[emphasis=low]:focus-within{outline:none}nv-button[emphasis=low]:focus-visible,nv-button[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-button[emphasis=low]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=low][active]:not([active=false]){background:var(--components-button-low-background-active);border:1px solid var(--components-button-low-border-active);color:var(--components-button-low-text-active)}nv-button[emphasis=low][danger]:not([danger=false]){background:var(--components-button-destructive-low-background);border:1px solid var(--components-button-destructive-low-border);color:var(--components-button-destructive-low-text)}nv-button[emphasis=low][danger]:not([danger=false]):hover{background:var(--components-button-destructive-low-background-hover);border:1px solid var(--components-button-destructive-low-border);color:var(--components-button-destructive-low-text-hover)}nv-button[emphasis=low][danger]:not([danger=false]):focus,nv-button[emphasis=low][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=low][danger]:not([danger=false]):focus-visible,nv-button[emphasis=low][danger]:not([danger=false]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=lower]{background:var(--components-button-lower-background);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text)}nv-button[emphasis=lower]:hover{background:var(--components-button-lower-background-hover);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text-hover)}nv-button[emphasis=lower]:active{background:var(--components-button-lower-background-active);border:1px solid var(--components-button-lower-border-active);color:var(--components-button-lower-text-active)}nv-button[emphasis=lower]:focus,nv-button[emphasis=lower]:focus-within{outline:none}nv-button[emphasis=lower]:focus-visible,nv-button[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-button[emphasis=lower]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=lower][active]:not([active=false]){background:var(--components-button-lower-background-active);border:1px solid var(--components-button-lower-border-active);color:var(--components-button-lower-text-active)}nv-button[emphasis=lower][danger]:not([danger=false]){background:var(--components-button-destructive-lower-background);border:1px solid var(--components-button-destructive-lower-border);color:var(--components-button-destructive-lower-text)}nv-button[emphasis=lower][danger]:not([danger=false]):hover{background:var(--components-button-destructive-lower-background-hover);border:1px solid var(--components-button-destructive-lower-border);color:var(--components-button-destructive-lower-text-hover)}nv-button[emphasis=lower][danger]:not([danger=false]):focus,nv-button[emphasis=lower][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=lower][danger]:not([danger=false]):focus-visible,nv-button[emphasis=lower][danger]:not([danger=false]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[fluid]:not([fluid=false]){width:100%}nv-button[loading]:not([loading=false]) [slot=leading-icon]{display:none}"}},[324,"nv-button",{size:[513],emphasis:[513],active:[516],danger:[516],loading:[1540],disabled:[1540],fluid:[516],type:[513],form:[513],disableTabindex:[516,"disable-tabindex"]},[[0,"keydown","handleKeyDown"]],{loading:[{handleLoadingChange:0}],disabled:[{handleDisabledChange:0}]}]);function d(){"undefined"!=typeof customElements&&["nv-button","nv-loader"].forEach((t=>{switch(t){case"nv-button":customElements.get(o(t))||customElements.define(o(t),u);break;case"nv-loader":customElements.get(o(t))||i()}}))}d();export{u as N,d}
|
|
1
|
+
import{t as o,p as t,H as e,h as n,d as s}from"./p-DiwYO24j.js";import{b as a,B as r}from"./p-gOKBmbgZ.js";import{d as i}from"./p-Cx5CLy9v.js";const u=t(class extends e{constructor(o){super(),!1!==o&&this.__registerHost(),this.internals=this.attachInternals(),this.size="md",this.emphasis="high",this.active=!1,this.danger=!1,this.loading=!1,this.disabled=!1,this.fluid=!1,this.type="button",this.disableTabindex=!1,this.handleButtonClick=o=>{this.loading||this.disabled?o.preventDefault():this.type!==a.Button&&(this.form||this.internals?.form)?this.processFormAction():this.form&&this.type===a.Button&&console.warn("Button has a form id but is not of type submit or reset so no form action will be processed.","Button:",this.el)},this.processFormAction=()=>{const o=this.form?document.getElementById(this.form):this.internals?.form;if(o)switch(this.type){case a.Submit:o.requestSubmit();break;case a.Reset:o.reset()}else console.warn("No form element found.",`Form ID: ${this.form||"Not provided"}`,"Internals form:",this.internals?.form)}}handleKeyDown(o){"Enter"!==o.key&&" "!==o.key||(o.preventDefault(),this.el.click())}handleLoadingChange(o){this.loading=o,this.disabled=o}handleDisabledChange(o){this.disabled=this.loading?this.loading:o}componentWillLoad(){this.loading&&(this.disabled=this.loading)}render(){return n(s,{key:"2597730775f043b11be36a52a9dc5d21e7ad4ef0",role:"button",tabindex:this.disableTabindex?-1:0,onClick:this.handleButtonClick},this.loading&&n("nv-loader",{key:"e39ab02bc5b8843866f2baa734d56956c5d7be18",size:this.size===r.Large?"sm":"xs"}),n("slot",{key:"e6cc54748edc793da1654e9a9fe17a5db20c679f",name:"leading-icon"}),n("slot",{key:"c3bd505559a3646fdce310726b1d14068ce3a020"}),n("slot",{key:"4459bc71ee05c8812e78539757aa427a2da4620a",name:"trailing-icon"}))}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{loading:[{handleLoadingChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){return"nv-button{text-decoration:none;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;user-select:none;cursor:pointer;height:fit-content;width:fit-content}nv-button[size=xs]{padding:var(--button-xs-padding-y) var(--button-xs-padding-x);gap:var(--button-xs-gap);border-radius:var(--button-xs-border-radius);line-height:var(--button-xs-line-height);height:var(--button-xs-height);font-size:var(--button-xs-font-size)}nv-button[size=xs] nv-icon>svg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-button[size=sm]{padding:var(--button-sm-padding-y) var(--button-sm-padding-x);gap:var(--button-sm-gap);border-radius:var(--button-sm-border-radius);line-height:var(--button-sm-line-height);height:var(--button-sm-height);font-size:var(--button-sm-font-size)}nv-button[size=sm] nv-icon>svg{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-button[size=md]{padding:var(--button-md-padding-y) var(--button-md-padding-x);gap:var(--button-md-gap);border-radius:var(--button-md-border-radius);line-height:var(--button-md-line-height);height:var(--button-md-height);font-size:var(--button-md-font-size)}nv-button[size=md] nv-icon>svg{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-button[size=lg]{padding:var(--button-lg-padding-y) var(--button-lg-padding-x);gap:var(--button-lg-gap);border-radius:var(--button-lg-border-radius);line-height:var(--button-lg-line-height);height:var(--button-lg-height);font-size:var(--button-lg-font-size)}nv-button[size=lg] nv-icon>svg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-button[emphasis=high]{background:var(--components-button-high-background);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text)}nv-button[emphasis=high]:hover{background:var(--components-button-high-background-hover);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text-hover)}nv-button[emphasis=high]:active{background:var(--components-button-high-background-active);border:1px solid var(--components-button-high-border-active);color:var(--components-button-high-text-active)}nv-button[emphasis=high]:focus,nv-button[emphasis=high]:focus-within{outline:none}nv-button[emphasis=high]:focus-visible,nv-button[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-button[emphasis=high]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=high][active]:not([active=false]){background:var(--components-button-high-background-active);border:1px solid var(--components-button-high-border-active);color:var(--components-button-high-text-active)}nv-button[emphasis=high][danger]:not([danger=false]){background:var(--components-button-destructive-high-background);border:1px solid transparent;color:var(--components-button-destructive-high-text)}nv-button[emphasis=high][danger]:not([danger=false]):hover{background:var(--components-button-destructive-high-background-hover);border:1px solid transparent;color:var(--components-button-destructive-high-text-hover)}nv-button[emphasis=high][danger]:not([danger=false]):focus,nv-button[emphasis=high][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=high][danger]:not([danger=false]):focus-visible,nv-button[emphasis=high][danger]:not([danger=false]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=medium]{background:var(--components-button-medium-background);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text)}nv-button[emphasis=medium]:hover{background:var(--components-button-medium-background-hover);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text-hover)}nv-button[emphasis=medium]:active{background:var(--components-button-medium-background-active);border:1px solid var(--components-button-medium-border-active);color:var(--components-button-medium-text-active)}nv-button[emphasis=medium]:focus,nv-button[emphasis=medium]:focus-within{outline:none}nv-button[emphasis=medium]:focus-visible,nv-button[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-button[emphasis=medium]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=medium][active]:not([active=false]){background:var(--components-button-medium-background-active);border:1px solid var(--components-button-medium-border-active);color:var(--components-button-medium-text-active)}nv-button[emphasis=medium][danger]:not([danger=false]){background:var(--components-button-destructive-medium-background);border:1px solid var(--components-button-destructive-medium-border);color:var(--components-button-destructive-medium-text)}nv-button[emphasis=medium][danger]:not([danger=false]):hover{background:var(--components-button-destructive-medium-background-hover);border:1px solid var(--components-button-destructive-medium-border);color:var(--components-button-destructive-medium-text-hover)}nv-button[emphasis=medium][danger]:not([danger=false]):focus,nv-button[emphasis=medium][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=medium][danger]:not([danger=false]):focus-visible,nv-button[emphasis=medium][danger]:not([danger=false]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=low]{background:var(--components-button-low-background);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text)}nv-button[emphasis=low]:hover{background:var(--components-button-low-background-hover);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text-hover)}nv-button[emphasis=low]:active{background:var(--components-button-low-background-active);border:1px solid var(--components-button-low-border-active);color:var(--components-button-low-text-active)}nv-button[emphasis=low]:focus,nv-button[emphasis=low]:focus-within{outline:none}nv-button[emphasis=low]:focus-visible,nv-button[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-button[emphasis=low]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=low][active]:not([active=false]){background:var(--components-button-low-background-active);border:1px solid var(--components-button-low-border-active);color:var(--components-button-low-text-active)}nv-button[emphasis=low][danger]:not([danger=false]){background:var(--components-button-destructive-low-background);border:1px solid var(--components-button-destructive-low-border);color:var(--components-button-destructive-low-text)}nv-button[emphasis=low][danger]:not([danger=false]):hover{background:var(--components-button-destructive-low-background-hover);border:1px solid var(--components-button-destructive-low-border);color:var(--components-button-destructive-low-text-hover)}nv-button[emphasis=low][danger]:not([danger=false]):focus,nv-button[emphasis=low][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=low][danger]:not([danger=false]):focus-visible,nv-button[emphasis=low][danger]:not([danger=false]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=lower]{background:var(--components-button-lower-background);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text)}nv-button[emphasis=lower]:hover{background:var(--components-button-lower-background-hover);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text-hover)}nv-button[emphasis=lower]:active{background:var(--components-button-lower-background-active);border:1px solid var(--components-button-lower-border-active);color:var(--components-button-lower-text-active)}nv-button[emphasis=lower]:focus,nv-button[emphasis=lower]:focus-within{outline:none}nv-button[emphasis=lower]:focus-visible,nv-button[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-button[emphasis=lower]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=lower][active]:not([active=false]){background:var(--components-button-lower-background-active);border:1px solid var(--components-button-lower-border-active);color:var(--components-button-lower-text-active)}nv-button[emphasis=lower][danger]:not([danger=false]){background:var(--components-button-destructive-lower-background);border:1px solid var(--components-button-destructive-lower-border);color:var(--components-button-destructive-lower-text)}nv-button[emphasis=lower][danger]:not([danger=false]):hover{background:var(--components-button-destructive-lower-background-hover);border:1px solid var(--components-button-destructive-lower-border);color:var(--components-button-destructive-lower-text-hover)}nv-button[emphasis=lower][danger]:not([danger=false]):focus,nv-button[emphasis=lower][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=lower][danger]:not([danger=false]):focus-visible,nv-button[emphasis=lower][danger]:not([danger=false]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[fluid]:not([fluid=false]){width:100%}nv-button[loading]:not([loading=false]) [slot=leading-icon]{display:none}"}},[324,"nv-button",{size:[513],emphasis:[513],active:[516],danger:[516],loading:[1540],disabled:[1540],fluid:[516],type:[513],form:[513],disableTabindex:[516,"disable-tabindex"]},[[0,"keydown","handleKeyDown"]],{loading:[{handleLoadingChange:0}],disabled:[{handleDisabledChange:0}]}]);function d(){"undefined"!=typeof customElements&&["nv-button","nv-loader"].forEach((t=>{switch(t){case"nv-button":customElements.get(o(t))||customElements.define(o(t),u);break;case"nv-loader":customElements.get(o(t))||i()}}))}d();export{u as N,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-flcatmxD.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:"8f9429a26146be5feff838bff9861c8016bcae72"},i("slot",{key:"507917d729f202d0ec29e2011b0aae958a4474b5",name:"trigger"}),i("div",{key:"cc85ae4610b0554b2cddd2fb62a8e8df5b8de21f","data-scope":"popover","data-strategy":this.strategy,hidden:!0,ref:t=>this.popoverElement=t},this.hasArrow&&i("div",{key:"e53a79dc2a4d439271d55391ad087c0db8abaf19","data-scope":"arrow",ref:t=>this.arrowElement=t}),i("slot",{key:"ef72627c588727dff2f558133d46e1689a89fc24",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-DiwYO24j.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 O(t){return k(T(t))}function C(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=O(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}=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=N(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 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 Y(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=I(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=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=J(n)}}return D({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(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)||Y(n))&&("fixed"===I(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=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(!$(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(!$(t)){let e=_(t);for(;e&&!Y(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&&Y(o)&&ct(o)&&!V(o)?n:o||function(t){let e=_(t);for(;$(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=$(o);if((f||!f&&!i)&&(("body"!==M(o)||z(s))&&(c=X(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"===I(t).position;let s=i?_(t):t;for(;N(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:N,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[C(t),e,C(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(C)))),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=O(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=O(r),m=A(p),g=await s.getDimensions(l),y="y"===p,b=y?"top":"left",k=y?"bottom":"right",T=y?"clientHeight":"clientWidth",C=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=C/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:"01b6cff8203a7e1ffe5b05aeea7f8e35238ac9bb"},i("slot",{key:"63264f349fbc817a8b4efe7272715942fc307863",name:"trigger"}),i("div",{key:"0a251a4447bbe7481a71465ac2402aeb156ba537","data-scope":"popover","data-strategy":this.strategy,hidden:!0,ref:t=>this.popoverElement=t},this.hasArrow&&i("div",{key:"c958f8cd4c8f19d4ac7e8779cb4555a5b9dbfc01","data-scope":"arrow",ref:t=>this.arrowElement=t}),i("slot",{key:"72d516982d54945924c88372a54d19ba568a4e4a",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
|
+
var e,n,a,o,t,r,i,c,s,u,l,d,m,f,p,g,S,h;!function(e){e.TopRight="top-right",e.TopLeft="top-left",e.TopCenter="top-center",e.BottomRight="bottom-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center"}(e||(e={})),function(e){e.Information="information",e.Warning="warning",e.Success="success",e.Error="error",e.Neutral="neutral"}(n||(n={})),function(e){e.Neutral="neutral",e.Primary="primary",e.Secondary="secondary",e.Success="success",e.Error="error"}(a||(a={})),function(e){e.ExtraSmall="xs",e.Small="sm",e.Medium="md",e.Large="lg",e.ExtraLarge="xl"}(o||(o={})),function(e){e.ExtraSmall="xs",e.Small="sm",e.Medium="md",e.Large="lg"}(t||(t={})),function(e){e.High="high",e.Medium="medium",e.Low="low",e.Lower="lower"}(r||(r={})),function(e){e.Submit="submit",e.Reset="reset",e.Button="button"}(i||(i={})),function(e){e.Medium="medium",e.High="high"}(c||(c={})),function(e){e.High="high",e.Low="low"}(s||(s={})),function(e){e.High="high",e.Low="low"}(u||(u={})),function(e){e.ExtraSmall="xs",e.Small="sm",e.Medium="md",e.Large="lg"}(l||(l={})),function(e){e.Square="square",e.Rounded="rounded"}(d||(d={})),function(e){e.High="brand",e.Low="white"}(m||(m={})),function(e){e.Before="before",e.After="after"}(f||(f={})),function(e){e.On="on",e.Off="off",e.Section="section-*",e.Shipping="shipping",e.Billing="billing",e.Home="home",e.Work="work",e.Mobile="mobile",e.Fax="fax",e.Pager="pager",e.Tel="tel",e.TelCountryCode="tel-country-code",e.TelNational="tel-national",e.TelAreaCode="tel-area-code",e.TelLocal="tel-local",e.TelLocalPrefix="tel-local-prefix",e.TelLocalSuffix="tel-local-suffix",e.TelExtension="tel-extension",e.Email="email",e.IMProtocol="impp",e.Name="name",e.HonorificPrefix="honorific-prefix",e.GivenName="given-name",e.AdditionalName="additional-name",e.FamilyName="family-name",e.HonorificSuffix="honorific-suffix",e.Nickname="nickname",e.Username="username",e.NewPassword="new-password",e.CurrentPassword="current-password",e.OneTimeCode="one-time-code",e.OrganizationTitle="organization-title",e.Organization="organization",e.StreetAddress="street-address",e.AddressLine1="address-line1",e.AddressLine2="address-line2",e.AddressLine3="address-line3",e.AddressLevel4="address-level4",e.AddressLevel3="address-level3",e.AddressLevel2="address-level2",e.AddressLevel1="address-level1",e.Country="country",e.CountryName="country-name",e.PostalCode="postal-code",e.CCName="cc-name",e.CCGivenName="cc-given-name",e.CCAdditionalName="cc-additional-name",e.CCFamilyName="cc-family-name",e.CCNumber="cc-number",e.CCExp="cc-exp",e.CCExpMonth="cc-exp-month",e.CCExpYear="cc-exp-year",e.CCCSC="cc-csc",e.CCType="cc-type",e.TransactionCurrency="transaction-currency",e.TransactionAmount="transaction-amount",e.Language="language",e.Bday="bday",e.BdayDay="bday-day",e.BdayMonth="bday-month",e.BdayYear="bday-year",e.Sex="sex",e.Url="url",e.Photo="photo"}(p||(p={})),function(e){e.Hours="hours",e.Minutes="minutes",e.Seconds="seconds"}(g||(g={})),function(e){e.End="end",e.Start="start",e.Center="center"}(S||(S={})),function(e){e.Asc="asc",e.Desc="desc"}(h||(h={}));const b={"fr-FR":"Sem","fr-BE":"Sem","nl-BE":"W","en-BE":"W","en-US":"W","en-GB":"W","es-ES":"Sem","de-DE":"KW","it-IT":"Set","pt-PT":"Sem","nl-NL":"W","pl-PL":"Tyd","ru-RU":"Нед","ja-JP":"週","zh-CN":"周","ko-KR":"주"},y={"fr-BE":["Lu","Ma","Me","Je","Ve","Sa","Di"],"nl-BE":["Ma","Di","Wo","Do","Vr","Za","Zo"],"de-DE":["Mo","Di","Mi","Do","Fr","Sa","So"],"en-BE":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"en-US":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"en-GB":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},J={"fr-BE":["Jan","Fev","Mar","Avr","Mai","Jun","Jul","Aou","Sep","Oct","Nov","Dec"],"nl-BE":["Jan","Feb","Maa","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],"de-DE":["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],"en-BE":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"en-US":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"en-GB":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};export{t as B,y as C,a as D,n as F,S as G,d as I,m as L,e as N,o as S,s as T,b as W,r as a,i as b,c,u as d,l as e,f,p as g,g as h,h as i,J as j}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as n,c as a,h as o,d as i}from"./p-
|
|
1
|
+
import{t as e,p as t,H as n,c as a,h as o,d as i}from"./p-DiwYO24j.js";import{d as s}from"./p-BYrgllP3.js";const c=t(class extends n{constructor(e){super(),!1!==e&&this.__registerHost(),this.menuitemSelected=a(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("Enter"===e.key||" "===e.key){const t=document.activeElement;t&&"NV-MENUITEM"===t.tagName&&!t.hasAttribute("has-submenu")&&(e.preventDefault(),this.el.click())}}render(){return o(i,{key:"052f7822782c1a50cfc207dc6c7090e9ae7ddb23",role:"menuitem",tabindex:this.disabled?"-1":"0"},this.icon&&o("nv-icon",{key:"b6fb4a24573d6ce2a65d1fbec49f25084aca4efc",name:this.icon}),o("slot",{key:"dd4b413f909db1b13a642411532b4980fe495bcf"}),this.label&&o("span",{key:"06e14c729b5d1a8c7fb58797fcf345eb15d02be4","data-scope":"text"},this.label),this.shortcut&&!this.hasSubmenu&&o("kbd",{key:"53802fa02a1c643b8f04ec71365115c469016e65"},this.shortcut),this.hasSubmenu&&o("nv-icon",{key:"ef8e14ab9147ef7cba4e160a053e4900aac9a927",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 m(){"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))||s()}}))}m();export{c as N,m as d}
|
|
@@ -61,6 +61,11 @@ var ToggleButtonEmphasis;
|
|
|
61
61
|
ToggleButtonEmphasis["High"] = "high";
|
|
62
62
|
ToggleButtonEmphasis["Low"] = "low";
|
|
63
63
|
})(ToggleButtonEmphasis || (ToggleButtonEmphasis = {}));
|
|
64
|
+
var StatusIndicatorEmphasis;
|
|
65
|
+
(function (StatusIndicatorEmphasis) {
|
|
66
|
+
StatusIndicatorEmphasis["High"] = "high";
|
|
67
|
+
StatusIndicatorEmphasis["Low"] = "low";
|
|
68
|
+
})(StatusIndicatorEmphasis || (StatusIndicatorEmphasis = {}));
|
|
64
69
|
var ToggleButtonSize;
|
|
65
70
|
(function (ToggleButtonSize) {
|
|
66
71
|
ToggleButtonSize["ExtraSmall"] = "xs";
|
|
@@ -280,4 +285,4 @@ const CUSTOM_MONTH_NAMES = {
|
|
|
280
285
|
],
|
|
281
286
|
};
|
|
282
287
|
|
|
283
|
-
export { ButtonSize as B, CUSTOM_DAY_NAMES as C, DeprecatedSemanticColors as D, FeedbackColors as F, GlobalFilterPosition as G, IconButtonShape as I, LoaderColors as L, NotificationPosition as N, SemanticSizes as S, ToggleButtonEmphasis as T, WEEK_ABBREVIATIONS as W, ButtonEmphasis as a, ButtonType as b, NotificationEmphasis as c,
|
|
288
|
+
export { ButtonSize as B, CUSTOM_DAY_NAMES as C, DeprecatedSemanticColors as D, FeedbackColors as F, GlobalFilterPosition as G, IconButtonShape as I, LoaderColors as L, NotificationPosition as N, SemanticSizes as S, ToggleButtonEmphasis as T, WEEK_ABBREVIATIONS as W, ButtonEmphasis as a, ButtonType as b, NotificationEmphasis as c, StatusIndicatorEmphasis as d, ToggleButtonSize as e, LabelPlacement as f, TextInputAutocomplete as g, TimeType as h, SortingPossibility as i, CUSTOM_MONTH_NAMES as j };
|