@nova-design-system/nova-webcomponents 3.26.0 → 3.28.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/{index-BQjqJTJB.js → index-Cfkoz1kc.js} +17 -1
- package/dist/cjs/index.cjs.js +6 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/native.cjs.js +2 -2
- package/dist/cjs/nova-datetime-DOtVgYBB.js +10643 -0
- package/dist/cjs/nv-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/nv-accordion.cjs.entry.js +1 -1
- package/dist/cjs/nv-alert.cjs.entry.js +1 -1
- package/dist/cjs/nv-avatar.cjs.entry.js +1 -1
- package/dist/cjs/nv-badge_2.cjs.entry.js +2 -2
- package/dist/cjs/nv-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/nv-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/nv-button.cjs.entry.js +1 -1
- package/dist/cjs/nv-buttongroup.cjs.entry.js +1 -1
- package/dist/cjs/nv-calendar.cjs.entry.js +1 -1
- package/dist/cjs/nv-col.cjs.entry.js +1 -1
- package/dist/cjs/nv-datagrid.cjs.entry.js +1 -1
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js +1 -1
- package/dist/cjs/nv-datetest.cjs.entry.js +66 -0
- package/dist/cjs/nv-datetimetest.cjs.entry.js +54 -0
- package/dist/cjs/nv-dialog.cjs.entry.js +16 -3
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +3 -3
- package/dist/cjs/nv-drawer.cjs.entry.js +2 -2
- package/dist/cjs/nv-drawerfooter_2.cjs.entry.js +3 -3
- 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 +4 -4
- 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 +2 -2
- package/dist/cjs/nv-notificationcontainer.cjs.entry.js +2 -14
- package/dist/cjs/nv-pagination-nav.cjs.entry.js +198 -0
- package/dist/cjs/nv-paginationtable.cjs.entry.js +2 -2
- 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 +2 -2
- 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 +12 -5
- 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-table.cjs.entry.js +2 -2
- package/dist/cjs/nv-tableheader.cjs.entry.js +2 -2
- package/dist/cjs/nv-timetest.cjs.entry.js +72 -0
- 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 +9 -4
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/nv-accordion/nv-accordion.docs.js +1 -0
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.docs.js +69 -1
- package/dist/collection/components/nv-alert/nv-alert.docs.js +1 -0
- package/dist/collection/components/nv-avatar/nv-avatar.docs.js +1 -0
- package/dist/collection/components/nv-badge/nv-badge.docs.js +1 -0
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.docs.js +36 -1
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.docs.js +1 -0
- package/dist/collection/components/nv-button/nv-button.docs.js +1 -0
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.docs.js +1 -0
- package/dist/collection/components/nv-calendar/nv-calendar.docs.js +1 -0
- package/dist/collection/components/nv-col/nv-col.docs.js +1 -0
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js +1 -0
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.docs.js +25 -1
- package/dist/collection/components/nv-datetest/nv-datetest.css +15 -0
- package/dist/collection/components/nv-datetest/nv-datetest.docs.js +12 -0
- package/dist/collection/components/nv-datetest/nv-datetest.js +242 -0
- package/dist/collection/components/nv-datetimetest/nv-datetimetest.css +15 -0
- package/dist/collection/components/nv-datetimetest/nv-datetimetest.docs.js +5 -0
- package/dist/collection/components/nv-datetimetest/nv-datetimetest.js +197 -0
- package/dist/collection/components/nv-dialog/nv-dialog.docs.js +1 -0
- package/dist/collection/components/nv-dialog/nv-dialog.js +15 -2
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.docs.js +9 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js +1 -1
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.docs.js +9 -1
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.js +1 -1
- package/dist/collection/components/nv-drawer/nv-drawer.docs.js +1 -0
- package/dist/collection/components/nv-drawer/nv-drawer.js +1 -1
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.docs.js +9 -1
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.js +1 -1
- package/dist/collection/components/nv-drawerheader/nv-drawerheader.docs.js +9 -1
- package/dist/collection/components/nv-drawerheader/nv-drawerheader.js +1 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.docs.js +1 -0
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js +4 -4
- package/dist/collection/components/nv-fielddate/nv-fielddate.docs.js +1 -0
- package/dist/collection/components/nv-fielddate/nv-fielddate.js +6 -6
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.docs.js +1 -0
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js +6 -6
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js +1 -0
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +4 -4
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.docs.js +54 -1
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +1 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js +42 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +1 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js +1 -0
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js +1 -0
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +4 -4
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.docs.js +1 -0
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +4 -4
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.docs.js +1 -0
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +3 -3
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js +1 -0
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +5 -5
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.docs.js +1 -0
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.js +3 -3
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js +1 -0
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +4 -4
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.docs.js +1 -0
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +3 -3
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.docs.js +1 -0
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js +3 -3
- package/dist/collection/components/nv-icon/nv-icon.docs.js +1 -0
- package/dist/collection/components/nv-icon/nv-icon.js +1 -1
- package/dist/collection/components/nv-icon/nv-icons.js +4 -0
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.docs.js +1 -0
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +1 -1
- package/dist/collection/components/nv-loader/nv-loader.docs.js +1 -0
- package/dist/collection/components/nv-loader/nv-loader.js +1 -1
- package/dist/collection/components/nv-menu/nv-menu.docs.js +1 -0
- package/dist/collection/components/nv-menu/nv-menu.js +1 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.docs.js +20 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +2 -2
- package/dist/collection/components/nv-notification/nv-notification.docs.js +1 -0
- package/dist/collection/components/nv-notification/nv-notification.js +1 -1
- package/dist/collection/components/nv-notification-bullet/nv-notification-bullet.docs.js +1 -0
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.docs.js +24 -1
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.js +1 -15
- package/dist/collection/components/nv-pagination-nav/nv-pagination-nav.css +37 -0
- package/dist/collection/components/nv-pagination-nav/nv-pagination-nav.docs.js +278 -0
- package/dist/collection/components/nv-pagination-nav/nv-pagination-nav.js +359 -0
- package/dist/collection/components/nv-pagination-nav/nv-pagination-nav.utils.js +70 -0
- package/dist/collection/components/nv-pagination-nav/test/nv-pagination-nav.utils.test.js +66 -0
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.docs.js +1 -0
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.js +1 -1
- package/dist/collection/components/nv-popover/nv-popover.docs.js +1 -0
- package/dist/collection/components/nv-popover/nv-popover.js +1 -1
- package/dist/collection/components/nv-row/nv-row.docs.js +1 -0
- package/dist/collection/components/nv-row/nv-row.js +1 -1
- package/dist/collection/components/nv-sidebar/nv-sidebar.docs.js +1 -0
- package/dist/collection/components/nv-sidebar/nv-sidebar.js +1 -1
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.docs.js +14 -1
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.js +1 -1
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.docs.js +15 -1
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.js +1 -1
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.docs.js +9 -1
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.js +1 -1
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.docs.js +15 -1
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.js +1 -1
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.docs.js +9 -1
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.js +1 -1
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.docs.js +10 -1
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.js +3 -1
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.docs.js +16 -1
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.js +12 -5
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.docs.js +15 -1
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.js +1 -1
- package/dist/collection/components/nv-split/nv-split.docs.js +1 -0
- package/dist/collection/components/nv-split/nv-split.js +1 -1
- package/dist/collection/components/nv-stack/nv-stack.docs.js +1 -0
- package/dist/collection/components/nv-stack/nv-stack.js +1 -1
- package/dist/collection/components/nv-table/nv-table.docs.js +1 -0
- package/dist/collection/components/nv-table/nv-table.js +1 -1
- package/dist/collection/components/nv-tableheader/nv-tableheader.docs.js +1 -0
- package/dist/collection/components/nv-tableheader/nv-tableheader.js +1 -1
- package/dist/collection/components/nv-timetest/nv-timetest.css +15 -0
- package/dist/collection/components/nv-timetest/nv-timetest.docs.js +5 -0
- package/dist/collection/components/nv-timetest/nv-timetest.js +248 -0
- package/dist/collection/components/nv-toggle/nv-toggle.docs.js +1 -0
- package/dist/collection/components/nv-toggle/nv-toggle.js +2 -2
- package/dist/collection/components/nv-togglebutton/nv-togglebutton.docs.js +48 -1
- package/dist/collection/components/nv-togglebutton/nv-togglebutton.js +1 -1
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.docs.js +1 -0
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.js +1 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.docs.js +1 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +8 -3
- package/dist/collection/index.js +3 -0
- package/dist/collection/interfaces/dates.js +1 -0
- package/dist/collection/utils/nova-datetime.js +144 -0
- package/dist/collection/utils/test/nova-datetime.test.js +230 -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.d.ts +11 -0
- package/dist/components/nv-datetest.js +1 -0
- package/dist/components/nv-datetimetest.d.ts +11 -0
- package/dist/components/nv-datetimetest.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/nv-pagination-nav.js +1 -0
- 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-table.js +1 -1
- package/dist/components/nv-tableheader.js +1 -1
- package/dist/components/nv-timetest.d.ts +11 -0
- package/dist/components/nv-timetest.js +1 -0
- 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-iXsbKJzR.js → p-6nAIGZFL.js} +1 -1
- package/dist/components/{p-yHGZRC6Q.js → p-BwYt1BAb.js} +1 -1
- package/dist/components/{p-C9p4yTS2.js → p-C5J7jtrC.js} +1 -1
- package/dist/components/{p-CEI7jWvn.js → p-CAGzfU3O.js} +1 -1
- package/dist/components/{p-B5KLppep.js → p-CKFXHAaU.js} +1 -1
- package/dist/components/{p-DHNSuxz-.js → p-CLzCfsnq.js} +1 -1
- package/dist/components/{p-Bh6WGsHA.js → p-CnkB4kvn.js} +1 -1
- package/dist/components/{p-DDqZBSGn.js → p-Co8IghI-.js} +1 -1
- package/dist/components/p-CrRawrjU.js +1 -0
- package/dist/components/p-CyL2J6O4.js +74 -0
- package/dist/components/{p-Ce1IBFTa.js → p-D2C_Qr5O.js} +1 -1
- package/dist/components/{p-CAKTe96z.js → p-DE792Sds.js} +1 -1
- package/dist/components/{p-RUeDcouW.js → p-DGj-fiRX.js} +1 -1
- package/dist/components/{p-C2J7j_fw.js → p-DUaenjr8.js} +1 -1
- package/dist/components/{p-laRga5dw.js → p-DVFofrTe.js} +1 -1
- package/dist/components/{p-BfaMgLx7.js → p-DlOgBZa8.js} +2 -2
- package/dist/components/{p-BAlaMmS4.js → p-Du3Fh0jQ.js} +1 -1
- package/dist/components/p-DwtLxfU5.js +1 -0
- package/dist/components/{p-DhDxhFz-.js → p-VXpV-BUK.js} +1 -1
- package/dist/components/{p-CZcMM7Lh.js → p-f8OUzde-.js} +1 -1
- package/dist/components/{p-DqU-wS_x.js → p-h3cPA0Cx.js} +1 -1
- package/dist/components/p-nzxGC8BS.js +1 -0
- package/dist/components/p-qkNH2RHl.js +1 -0
- package/dist/components/{p-nmQOuX7R.js → p-xrXEz2WP.js} +1 -1
- package/dist/esm/{index-S-IZ4AN_.js → index-BCjiE1MF.js} +17 -1
- package/dist/esm/index.js +5 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/native.js +3 -3
- package/dist/esm/nova-datetime-CyL2J6O4.js +10636 -0
- package/dist/esm/nv-accordion-item.entry.js +1 -1
- package/dist/esm/nv-accordion.entry.js +1 -1
- package/dist/esm/nv-alert.entry.js +1 -1
- package/dist/esm/nv-avatar.entry.js +1 -1
- package/dist/esm/nv-badge_2.entry.js +2 -2
- package/dist/esm/nv-breadcrumb.entry.js +1 -1
- package/dist/esm/nv-breadcrumbs.entry.js +1 -1
- package/dist/esm/nv-button.entry.js +1 -1
- package/dist/esm/nv-buttongroup.entry.js +1 -1
- package/dist/esm/nv-calendar.entry.js +1 -1
- package/dist/esm/nv-col.entry.js +1 -1
- package/dist/esm/nv-datagrid.entry.js +1 -1
- package/dist/esm/nv-datagridcolumn.entry.js +1 -1
- package/dist/esm/nv-datetest.entry.js +64 -0
- package/dist/esm/nv-datetimetest.entry.js +52 -0
- package/dist/esm/nv-dialog.entry.js +16 -3
- package/dist/esm/nv-dialogfooter_2.entry.js +3 -3
- package/dist/esm/nv-drawer.entry.js +2 -2
- package/dist/esm/nv-drawerfooter_2.entry.js +3 -3
- 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 +4 -4
- 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 +2 -2
- package/dist/esm/nv-notificationcontainer.entry.js +2 -14
- package/dist/esm/nv-pagination-nav.entry.js +196 -0
- package/dist/esm/nv-paginationtable.entry.js +2 -2
- 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 +2 -2
- 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 +12 -5
- 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-table.entry.js +2 -2
- package/dist/esm/nv-tableheader.entry.js +2 -2
- package/dist/esm/nv-timetest.entry.js +70 -0
- 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 +9 -4
- package/dist/lib/generators/docs-blazor.js +4 -1
- package/dist/lib/utils/parseToCSharpTypes.js +114 -18
- package/dist/lib/utils/test/parseToCSharpTypes.test.js +95 -1
- package/dist/native/index.esm.js +1 -1
- package/dist/native/native.css +1 -1
- package/dist/native/native.esm.js +1 -1
- package/dist/native/{p-a8bc3b92.entry.js → p-05f7bad5.entry.js} +1 -1
- package/dist/native/{p-043d500e.entry.js → p-083b39c5.entry.js} +1 -1
- package/dist/native/{p-3fb1a188.entry.js → p-0bb64497.entry.js} +1 -1
- package/dist/native/{p-1bf1a213.entry.js → p-0fe84123.entry.js} +1 -1
- package/dist/native/p-1029a266.entry.js +1 -0
- package/dist/native/p-12a8443b.entry.js +1 -0
- package/dist/native/{p-bdaab534.entry.js → p-148c1d3e.entry.js} +1 -1
- package/dist/native/{p-79d8c26b.entry.js → p-1d7a27bb.entry.js} +1 -1
- package/dist/native/{p-11eb959b.entry.js → p-1e03fc3c.entry.js} +1 -1
- package/dist/native/{p-f22d2ad9.entry.js → p-213c5836.entry.js} +1 -1
- package/dist/native/{p-d46ea49a.entry.js → p-25ef7329.entry.js} +1 -1
- package/dist/native/p-291b297d.entry.js +1 -0
- package/dist/native/{p-e937d495.entry.js → p-2af6d988.entry.js} +1 -1
- package/dist/native/{p-89f7d483.entry.js → p-343c04db.entry.js} +1 -1
- package/dist/native/{p-7a8e2ef3.entry.js → p-37c41059.entry.js} +1 -1
- package/dist/native/{p-a92e2ad8.entry.js → p-3c4114b8.entry.js} +1 -1
- package/dist/native/{p-31301f1e.entry.js → p-46267895.entry.js} +1 -1
- package/dist/native/p-493c1bb5.entry.js +1 -0
- package/dist/native/{p-70abbe4f.entry.js → p-4ac8181c.entry.js} +1 -1
- package/dist/native/{p-04956305.entry.js → p-4bf96114.entry.js} +1 -1
- package/dist/native/p-544b34d4.entry.js +1 -0
- package/dist/native/{p-0ec34d19.entry.js → p-58966e0f.entry.js} +1 -1
- package/dist/native/{p-e1021e2c.entry.js → p-5c003e50.entry.js} +1 -1
- package/dist/native/{p-1dd3da3b.entry.js → p-5ce3d30b.entry.js} +1 -1
- package/dist/native/p-5ea697a7.entry.js +1 -0
- package/dist/native/{p-3a04a563.entry.js → p-5ef0ed10.entry.js} +1 -1
- package/dist/native/{p-0e8b544b.entry.js → p-63f2f87f.entry.js} +1 -1
- package/dist/native/{p-6a9363a6.entry.js → p-644ecff8.entry.js} +1 -1
- package/dist/native/{p-5cbf5973.entry.js → p-67e0680e.entry.js} +1 -1
- package/dist/native/{p-bd143e7b.entry.js → p-6d8d2088.entry.js} +1 -1
- package/dist/native/{p-a9a20f37.entry.js → p-72d8cb56.entry.js} +1 -1
- package/dist/native/p-75a2a2ac.entry.js +1 -0
- package/dist/native/{p-bdbc92d9.entry.js → p-767ee0fc.entry.js} +1 -1
- package/dist/native/{p-8ce17efd.entry.js → p-7aa4605d.entry.js} +1 -1
- package/dist/native/{p-0819a7b1.entry.js → p-7c00f6da.entry.js} +1 -1
- package/dist/native/p-7d164a7a.entry.js +1 -0
- package/dist/native/{p-06a17aba.entry.js → p-7ec28d5d.entry.js} +1 -1
- package/dist/native/{p-dc0d1690.entry.js → p-89348af5.entry.js} +1 -1
- package/dist/native/p-8e1bcadc.entry.js +1 -0
- package/dist/native/{p-b0d97496.entry.js → p-90b8b889.entry.js} +1 -1
- package/dist/native/{p-945ca1db.entry.js → p-95a9d385.entry.js} +1 -1
- package/dist/native/{p-a9a07a8d.entry.js → p-9709c7d5.entry.js} +1 -1
- package/dist/native/p-9fc95cf3.entry.js +1 -0
- package/dist/native/{p-S-IZ4AN_.js → p-BCjiE1MF.js} +1 -1
- package/dist/native/p-CyL2J6O4.js +74 -0
- package/dist/native/{p-aa232a20.entry.js → p-a16f8a14.entry.js} +1 -1
- package/dist/native/p-ac765e6a.entry.js +1 -0
- package/dist/native/p-b3477504.entry.js +1 -0
- package/dist/native/{p-c3ea1eca.entry.js → p-c2c826a4.entry.js} +1 -1
- package/dist/native/p-c56ffa82.entry.js +1 -0
- package/dist/native/{p-6b655545.entry.js → p-c5d97054.entry.js} +1 -1
- package/dist/native/{p-48e7b457.entry.js → p-cfa0eb58.entry.js} +1 -1
- package/dist/native/p-d3e66306.entry.js +1 -0
- package/dist/native/p-d5f5a6e1.entry.js +1 -0
- package/dist/native/{p-702a6646.entry.js → p-d8120afd.entry.js} +1 -1
- package/dist/native/p-dc2ce8ee.entry.js +1 -0
- package/dist/native/{p-85c8be32.entry.js → p-e3fb16af.entry.js} +1 -1
- package/dist/native/{p-7c413f8b.entry.js → p-e46c35a0.entry.js} +1 -1
- package/dist/native/{p-e05b6008.entry.js → p-ec23ce93.entry.js} +1 -1
- package/dist/native/{p-bef3d325.entry.js → p-f7522dac.entry.js} +1 -1
- package/dist/native/{p-64104dbd.entry.js → p-f9612edf.entry.js} +1 -1
- package/dist/native/{p-fba55e2f.entry.js → p-fab2f2b3.entry.js} +1 -1
- package/dist/native/{p-2106dfbd.entry.js → p-fb34fc7d.entry.js} +1 -1
- package/dist/native/{p-98ea927d.entry.js → p-fd5e27ae.entry.js} +1 -1
- package/dist/types/components/nv-datetest/nv-datetest.d.ts +48 -0
- package/dist/types/components/nv-datetest/nv-datetest.docs.d.ts +4 -0
- package/dist/types/components/nv-datetimetest/nv-datetimetest.d.ts +44 -0
- package/dist/types/components/nv-datetimetest/nv-datetimetest.docs.d.ts +4 -0
- package/dist/types/components/nv-dialog/nv-dialog.d.ts +9 -0
- package/dist/types/components/nv-icon/nv-icons.d.ts +1 -1
- package/dist/types/components/nv-notificationcontainer/nv-notificationcontainer.d.ts +0 -6
- package/dist/types/components/nv-pagination-nav/nv-pagination-nav.d.ts +82 -0
- package/dist/types/components/nv-pagination-nav/nv-pagination-nav.docs.d.ts +4 -0
- package/dist/types/components/nv-pagination-nav/nv-pagination-nav.utils.d.ts +26 -0
- package/dist/types/components/nv-pagination-nav/test/nv-pagination-nav.utils.test.d.ts +1 -0
- package/dist/types/components/nv-sidebarlogo/nv-sidebarlogo.d.ts +2 -0
- package/dist/types/components/nv-timetest/nv-timetest.d.ts +48 -0
- package/dist/types/components/nv-timetest/nv-timetest.docs.d.ts +4 -0
- package/dist/types/components.d.ts +421 -15
- package/dist/types/index.d.ts +2 -0
- package/dist/types/interfaces/dates.d.ts +8 -0
- package/dist/types/nova-docs.d.ts +8 -0
- package/dist/types/utils/nova-datetime.d.ts +79 -0
- package/dist/types/utils/test/nova-datetime.test.d.ts +1 -0
- package/dist/vscode-data.json +107 -0
- package/hydrate/index.js +11096 -107
- package/hydrate/index.mjs +11096 -107
- package/package.json +18 -1
- package/dist/components/p-BPufjY85.js +0 -1
- package/dist/components/p-D15RdWEG.js +0 -1
- package/dist/components/p-FSPz8FER.js +0 -1
- package/dist/components/p-jZF_Ggmx.js +0 -1
- package/dist/native/p-0bfd188c.entry.js +0 -1
- package/dist/native/p-17f2525a.entry.js +0 -1
- package/dist/native/p-1a5db5e9.entry.js +0 -1
- package/dist/native/p-87a1b06c.entry.js +0 -1
- package/dist/native/p-8dadc0c9.entry.js +0 -1
- package/dist/native/p-97a5f8d5.entry.js +0 -1
- package/dist/native/p-ae4fc02a.entry.js +0 -1
- package/dist/native/p-c825c542.entry.js +0 -1
- package/dist/native/p-ce2c17dc.entry.js +0 -1
- package/dist/native/p-f2a32774.entry.js +0 -1
- package/dist/native/p-f5eff2b2.entry.js +0 -1
- package/dist/native/p-f64f1bea.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
4
|
var clsx = require('./clsx-BtxeOLZW.js');
|
|
5
5
|
|
|
6
6
|
const nvIconbuttonCss = () => `nv-iconbutton.root{display:inline-flex;justify-content:center;align-items:center;font-style:normal;font-weight:var(--font-weight-medium-emphasis);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;transition:background-color 150ms ease-out;height:fit-content;width:fit-content}nv-iconbutton.size-xs{padding:calc(var(--button-xs-icon-button-padding) - 1px);gap:var(--button-xs-gap);border-radius:var(--button-xs-border-radius);line-height:var(--button-xs-line-height);font-size:var(--button-xs-font-size)}nv-iconbutton.size-sm{padding:calc(var(--button-sm-icon-button-padding) - 1px);gap:var(--button-sm-gap);border-radius:var(--button-sm-border-radius);line-height:var(--button-sm-line-height);font-size:var(--button-sm-font-size)}nv-iconbutton.size-md{padding:calc(var(--button-md-icon-button-padding) - 1px);gap:var(--button-md-gap);border-radius:var(--button-md-border-radius);line-height:var(--button-md-line-height);font-size:var(--button-md-font-size)}nv-iconbutton.size-lg{padding:calc(var(--button-lg-icon-button-padding) - 1px);gap:var(--button-lg-gap);border-radius:var(--button-lg-border-radius);line-height:var(--button-lg-line-height);font-size:var(--button-lg-font-size)}nv-iconbutton.emphasis-high{background:var(--components-button-high-background);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text)}nv-iconbutton.emphasis-high:hover{background:var(--components-button-high-background-hover);color:var(--components-button-high-text-hover)}nv-iconbutton.emphasis-high:focus,nv-iconbutton.emphasis-high:focus-within{outline:none}nv-iconbutton.emphasis-high:focus-visible,nv-iconbutton.emphasis-high:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-high:disabled{background:var(--components-button-high-background);color:var(--components-button-high-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-high nv-icon>svg{color:var(--components-button-high-icon)}nv-iconbutton.emphasis-medium{background:var(--components-button-medium-background);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text)}nv-iconbutton.emphasis-medium:hover{background:var(--components-button-medium-background-hover);color:var(--components-button-medium-text-hover)}nv-iconbutton.emphasis-medium:focus,nv-iconbutton.emphasis-medium:focus-within{outline:none}nv-iconbutton.emphasis-medium:focus-visible,nv-iconbutton.emphasis-medium:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-medium:disabled{background:var(--components-button-medium-background);color:var(--components-button-medium-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-medium nv-icon>svg{color:var(--components-button-medium-icon)}nv-iconbutton.emphasis-low{background:var(--components-button-low-background);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text)}nv-iconbutton.emphasis-low:hover{background:var(--components-button-low-background-hover);color:var(--components-button-low-text-hover)}nv-iconbutton.emphasis-low:focus,nv-iconbutton.emphasis-low:focus-within{outline:none}nv-iconbutton.emphasis-low:focus-visible,nv-iconbutton.emphasis-low:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-low:disabled{background:var(--components-button-low-background);color:var(--components-button-low-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-low nv-icon>svg{color:var(--components-button-low-icon)}nv-iconbutton.emphasis-lower{background:var(--components-button-lower-background);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text)}nv-iconbutton.emphasis-lower:hover{background:var(--components-button-lower-background-hover);color:var(--components-button-lower-text-hover)}nv-iconbutton.emphasis-lower:focus,nv-iconbutton.emphasis-lower:focus-within{outline:none}nv-iconbutton.emphasis-lower:focus-visible,nv-iconbutton.emphasis-lower:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-lower:disabled{background:var(--components-button-lower-background);color:var(--components-button-lower-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-lower nv-icon>svg{color:var(--components-button-lower-icon)}nv-iconbutton.loading [slot=leading-icon]{display:none}nv-iconbutton.shape-rounded{border-radius:var(--radius-rounded-full)}`;
|
|
@@ -125,7 +125,7 @@ const NvIconbutton = class {
|
|
|
125
125
|
/****************************************************************************/
|
|
126
126
|
//#region RENDER
|
|
127
127
|
render() {
|
|
128
|
-
return (index.h(index.Host, { key: '
|
|
128
|
+
return (index.h(index.Host, { key: 'b746b8c5f6e25d2fd0c3759f9bcb5451d18ac29c', role: "button", type: this.type, tabindex: this.disableTabindex ? -1 : 0, disabled: this.disabled ? true : undefined, class: clsx.clsx('root', `size-${this.size}`, `emphasis-${this.emphasis}`, this.loading && 'loading', `shape-${this.shape}`), onClick: this.handleClick }, this.loading && index.h("nv-loader", { key: '5bb5ab5b49b0e1b19695e00846e462dc6a5b6093', size: this.size }), !this.loading && index.h("nv-icon", { key: '825f0532eea39531c63c669bac307a2c45478cbb', name: this.name, size: this.size }), index.h("slot", { key: '394a9f1b5fd16037fcd5bebb3075f363bfe4fa62' })));
|
|
129
129
|
}
|
|
130
130
|
static get formAssociated() { return true; }
|
|
131
131
|
get el() { return index.getElement(this); }
|
|
@@ -159,7 +159,7 @@ const NvLoader = class {
|
|
|
159
159
|
//#region RENDER
|
|
160
160
|
/* <slot> empty to force rendering change */
|
|
161
161
|
render() {
|
|
162
|
-
return (index.h(index.Host, { key: '
|
|
162
|
+
return (index.h(index.Host, { key: 'a80c59f9585654352e1b48e1a245e94172e1e533', class: clsx.clsx(this.size && `size-${this.size}`, this.color && `color-${this.color}`) }));
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
165
|
NvLoader.style = nvLoaderCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
4
|
|
|
5
5
|
const nvMenuCss = () => `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)}nv-menu{display:inline-block;position:relative}nv-menu:has([fluid]:not([fluid=false])){display:block}nv-menu nv-popover{display:unset}nv-menu nv-popover [data-scope=popover]{background-color:transparent !important;padding:0 !important}nv-menu [slot=content]{padding:var(--menu-contextual-padding-y) var(--menu-contextual-padding-x);border-radius:var(--menu-contextual-radius);gap:var(--menu-contextual-gap-y);background-color:var(--components-menu-contextual-background);border-color:var(--components-menu-contextual-border);display:flex;flex-direction:column}nv-menu nv-menu[open]:not([open=false])>nv-menuitem{background-color:var(--components-menu-contextual-item-background-hover);color:var(--components-menu-contextual-item-content-hover)}nv-menu hr{display:block;margin:var(--menu-contextual-divider-padding-top) var(--menu-contextual-divider-padding-x) var(--menu-contextual-divider-padding-bottom) var(--menu-contextual-divider-padding-x)}`;
|
|
6
6
|
|
|
@@ -189,7 +189,7 @@ const NvMenu = class {
|
|
|
189
189
|
this.triggerElement = this.el.querySelector('[slot="trigger"]');
|
|
190
190
|
}
|
|
191
191
|
render() {
|
|
192
|
-
return (index.h(index.Host, { key: '
|
|
192
|
+
return (index.h(index.Host, { key: 'b8154f4e215984b0dbb106b44dcad72eacb140e1' }, index.h("slot", { key: 'cddcea9afd3324d39168f3879cdbb0839f3e432a', name: "trigger" }), index.h("nv-popover", { key: '2e20e3b97279c27e16b0eef4eb2d327a1e22c3b3', ref: el => (this.popoverElement = el), triggerMode: "click", triggerElement: this.triggerElement, placement: this.placement, nested: this.nested, open: this.open, onOpenChanged: this.handleOpenChanged.bind(this) }, this.items ? (index.h("ul", { slot: "content" }, this.renderMenuItems())) : (index.h("slot", { name: "content" })))));
|
|
193
193
|
}
|
|
194
194
|
get el() { return index.getElement(this); }
|
|
195
195
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
4
|
|
|
5
5
|
const nvMenuitemCss = () => `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)}`;
|
|
6
6
|
|
|
@@ -47,7 +47,7 @@ const NvMenuitem = class {
|
|
|
47
47
|
/****************************************************************************/
|
|
48
48
|
//#region RENDER
|
|
49
49
|
render() {
|
|
50
|
-
return (index.h(index.Host, { key: '
|
|
50
|
+
return (index.h(index.Host, { key: 'b377cf654cd4d0cc7e257c10606977db86087e31', role: "menuitem", tabindex: this.disabled ? '-1' : '0' }, this.icon && index.h("nv-icon", { key: '409b0902ea54323d4dd778816a244f4ea64d986d', name: this.icon }), index.h("slot", { key: 'd5c5c4a9ab1e3c70ba6fe052e11cfff212bf93aa' }), this.label && index.h("span", { key: '0b1e3892dfb16bd1f1d19f72b29f4d4dd396ccdf', "data-scope": "text" }, this.label), this.shortcut && !this.hasSubmenu && index.h("kbd", { key: 'a099a45ed14e3922c3fe25d3b0e1f0d257101e4b' }, this.shortcut), this.hasSubmenu && index.h("nv-icon", { key: '6c61d48ac2f3927ad7b33673bc9ed196f733e30a', name: "chevron-right" })));
|
|
51
51
|
}
|
|
52
52
|
get el() { return index.getElement(this); }
|
|
53
53
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
4
|
|
|
5
5
|
const nvNotificationBulletCss = () => `nv-notification-bullet{display:inline-flex;align-items:center;justify-content:center;min-width:var(--sidebar-notification-bullet-size);max-width:var(--sidebar-notification-bullet-size);height:var(--sidebar-notification-bullet-size);padding:0 var(--spacing-1);border-radius:var(--radius-rounded-full);font-size:var(--sidebar-notification-bullet-font-size);font-weight:var(--sidebar-notification-bullet-font-weight);white-space:nowrap;flex-shrink:0;position:relative;}nv-notification-bullet.nv-notification-bullet-brand .nv-notification-bullet{display:inline-flex;align-items:center;justify-content:center;min-width:var(--sidebar-notification-bullet-size);max-width:var(--sidebar-notification-bullet-size);height:var(--sidebar-notification-bullet-size);padding:0 var(--spacing-1);border-radius:var(--radius-rounded-full);font-size:var(--sidebar-notification-bullet-font-size);font-weight:var(--sidebar-notification-bullet-font-weight);white-space:nowrap;flex-shrink:0}nv-notification-bullet.nv-notification-bullet-brand .nv-notification-bullet.nv-notification-bullet-high{background-color:var(--color-brand-500);color:var(--color-feedback-neutral-high-contrast-title)}nv-notification-bullet.nv-notification-bullet-brand .nv-notification-bullet.nv-notification-bullet-low{background-color:var(--color-brand-50);color:var(--color-brand-600);border:1px solid var(--color-brand-600)}nv-notification-bullet{}nv-notification-bullet.nv-notification-bullet-neutral{display:inline-flex;align-items:center;justify-content:center;min-width:var(--sidebar-notification-bullet-size);max-width:var(--sidebar-notification-bullet-size);height:var(--sidebar-notification-bullet-size);padding:0 var(--spacing-1);border-radius:var(--radius-rounded-full);font-size:var(--sidebar-notification-bullet-font-size);font-weight:var(--sidebar-notification-bullet-font-weight);white-space:nowrap;flex-shrink:0}nv-notification-bullet.nv-notification-bullet-neutral .nv-notification-bullet.nv-notification-bullet-high{background-color:var(--color-feedback-neutral-high-contrast-background);color:var(--color-feedback-neutral-high-contrast-title)}nv-notification-bullet.nv-notification-bullet-neutral .nv-notification-bullet.nv-notification-bullet-low{background-color:var(--color-feedback-neutral-low-background);color:var(--color-feedback-neutral-low-text);border-radius:var(--radius-rounded-full)}nv-notification-bullet{}nv-notification-bullet.nv-notification-bullet-with-cross-border::before{content:"";position:absolute;top:55%;left:45%;transform:translate(-50%, -50%);width:calc(var(--sidebar-notification-bullet-size) + 1.5px);height:calc(var(--sidebar-notification-bullet-size) * 1.5);border-radius:var(--radius-rounded-full);background-color:var(--nv-component-background, var(--nv-sidebarnavitem-background, var(--color-interaction-container-neutral-background)));z-index:-1;pointer-events:none}nv-notification-bullet{}nv-sidebar[collapsed] nv-notification-bullet.nv-notification-bullet-with-cross-border::before{width:calc(var(--sidebar-notification-bullet-size-reduced) * 1.5);height:calc(var(--sidebar-notification-bullet-size-reduced) * 1.5)}nv-notification-bullet{}nv-notification-bullet .nv-notification-bullet.nv-notification-bullet-reduced,nv-sidebar[collapsed] nv-notification-bullet .nv-notification-bullet{width:var(--sidebar-notification-bullet-size-reduced);height:var(--sidebar-notification-bullet-size-reduced);min-width:var(--sidebar-notification-bullet-size-reduced);max-width:var(--sidebar-notification-bullet-size-reduced);min-height:var(--sidebar-notification-bullet-size-reduced);max-height:var(--sidebar-notification-bullet-size-reduced);padding:0;font-size:0}`;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
4
|
var constants = require('./constants-BugGJYqL.js');
|
|
5
5
|
var collapse_animation = require('./collapse.animation-CcG0GAWk.js');
|
|
6
6
|
var fade_animation = require('./fade.animation-BQSqXXOJ.js');
|
|
@@ -164,7 +164,7 @@ const NvNotification = class {
|
|
|
164
164
|
/****************************************************************************/
|
|
165
165
|
//#region RENDER
|
|
166
166
|
render() {
|
|
167
|
-
return (index.h(index.Host, { key: '
|
|
167
|
+
return (index.h(index.Host, { key: '6d78033613b4f5d8c90fd3f0228e90f28272a7ca', role: this.getAriaRole(), "aria-live": this.getAriaLive(), "aria-atomic": true, "aria-labelledby": this.getHeadingId() ?? null, "aria-describedby": this.getMessageId() ?? null, tabindex: "-1" }, index.h("div", { key: '0a2e82809525643861c44462bbf85bb670b56bb9', "data-scope": "container", ref: el => (this.container = el) }, this.dismissible && (index.h("button", { key: '46ce066fba0d63bce346697b512051e9fdbf939c', "data-scope": "dismiss", type: "button", onClick: this.dismiss.bind(this) }, index.h("nv-icon", { key: '25ce721523d04886ff700923310b0fea3e6eeea5', name: "x", size: "sm" }))), index.h("nv-icon", { key: '060dfd8b52e92af64a6f5d80f18b520e3fa2db4e', name: this.icon ?? this.getDefaultIcon(), size: "md", "data-scope": "icon" }), index.h("div", { key: '0b60d8005cd53a7bb4f8cbb7d1e2c67337f5b73d', "data-scope": "content" }, (this.heading || this.headingSlot) && (index.h("p", { key: '549d7ee40542d3579e13c6e31dc313ba3a261f81', id: this.getHeadingId(), "data-scope": "heading" }, index.h("slot", { key: 'c5c067b17e2b7456b6ddf7a7747e51c9924cd50f', name: "heading" }, this.heading))), (this.message || this.messageSlot) && (index.h("p", { key: '3de5ab6bf9a77bb0843cd04b945f40b3b16417db', id: this.getMessageId(), "data-scope": "message" }, index.h("slot", { key: '5bcc2b2842907f35d3e8b9f1be3c2045c5ad8a0f', name: "content" }, this.message))), this.actionsSlot && (index.h("div", { key: 'e06454ce135e9869b9c7a9faea3e6f082ddc0e8a', "data-scope": "actions" }, index.h("slot", { key: 'eed113cd7f2d9ae51493f2cd8b9a175db6e7f4aa', name: "actions" })))))));
|
|
168
168
|
}
|
|
169
169
|
get el() { return index.getElement(this); }
|
|
170
170
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
4
|
|
|
5
5
|
const nvNotificationcontainerCss = () => `nv-notificationcontainer{position:fixed;display:flex;flex-direction:column;padding:var(--spacing-2);padding-top:0;z-index:9999;pointer-events:none;width:100%;max-width:512px}nv-notificationcontainer.position-top-right{top:0;right:0}nv-notificationcontainer.position-top-right nv-notification{margin-top:var(--spacing-2)}nv-notificationcontainer.position-top-left{top:0;left:0}nv-notificationcontainer.position-top-left nv-notification{margin-bottom:var(--spacing-2)}nv-notificationcontainer.position-top-center{top:0;left:50%;transform:translateX(-50%)}nv-notificationcontainer.position-top-center nv-notification{margin-bottom:var(--spacing-2)}nv-notificationcontainer.position-bottom-right{bottom:0;right:0;flex-direction:column-reverse}nv-notificationcontainer.position-bottom-right nv-notification{margin-top:var(--spacing-2)}nv-notificationcontainer.position-bottom-left{bottom:0;left:0;flex-direction:column-reverse}nv-notificationcontainer.position-bottom-left nv-notification{margin-top:var(--spacing-2)}nv-notificationcontainer.position-bottom-center{bottom:0;left:50%;transform:translateX(-50%);flex-direction:column-reverse}nv-notificationcontainer.position-bottom-center nv-notification{margin-top:var(--spacing-2)}nv-notificationcontainer>*{pointer-events:auto}`;
|
|
6
6
|
|
|
@@ -16,21 +16,9 @@ const NvNotificationContainer = class {
|
|
|
16
16
|
}
|
|
17
17
|
//#endregion PROPERTIES
|
|
18
18
|
/****************************************************************************/
|
|
19
|
-
//#region METHODS
|
|
20
|
-
//#endregion METHODS
|
|
21
|
-
/****************************************************************************/
|
|
22
|
-
//#region WATCHERS
|
|
23
|
-
//#endregion WATCHERS
|
|
24
|
-
/****************************************************************************/
|
|
25
|
-
//#region LIFECYCLE
|
|
26
|
-
//#endregion LIFECYCLE
|
|
27
|
-
/****************************************************************************/
|
|
28
|
-
//#region EVENTS
|
|
29
|
-
//#endregion EVENTS
|
|
30
|
-
/****************************************************************************/
|
|
31
19
|
//#region RENDER
|
|
32
20
|
render() {
|
|
33
|
-
return (index.h(index.Host, { key: '
|
|
21
|
+
return (index.h(index.Host, { key: 'd2c471aaac0f76edade303331718d2b0f7c6bb39', class: `position-${this.position}` }, index.h("slot", { key: '48bbc563523bfb107bbbd2cc60561ccb87f9968c' })));
|
|
34
22
|
}
|
|
35
23
|
};
|
|
36
24
|
NvNotificationContainer.style = nvNotificationcontainerCss();
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Generates a pagination range with page numbers and ellipsis items.
|
|
7
|
+
* @param {PaginationRangeConfig} config Pagination configuration.
|
|
8
|
+
* @returns {PaginationRangeItem[]} Ordered range items.
|
|
9
|
+
*/
|
|
10
|
+
function calculatePaginationRange({ currentPage, totalCount, pageSize, numStartZoneButtons, numEndZoneButtons, numMiddleButtons, showMiddleZone, }) {
|
|
11
|
+
const totalPageCount = Math.ceil(totalCount / pageSize);
|
|
12
|
+
const paginationRange = [];
|
|
13
|
+
const totalVisibleButtons = numStartZoneButtons + numEndZoneButtons;
|
|
14
|
+
if (totalPageCount <= totalVisibleButtons) {
|
|
15
|
+
for (let i = 1; i <= totalPageCount; i++) {
|
|
16
|
+
paginationRange.push(i);
|
|
17
|
+
}
|
|
18
|
+
return paginationRange;
|
|
19
|
+
}
|
|
20
|
+
const startZoneEnd = numStartZoneButtons;
|
|
21
|
+
const endZoneStart = totalPageCount - numEndZoneButtons + 1;
|
|
22
|
+
if (!showMiddleZone) {
|
|
23
|
+
const isInNaturalStartZone = currentPage <= numStartZoneButtons;
|
|
24
|
+
const isInNaturalEndZone = currentPage >= totalPageCount - numEndZoneButtons + 1;
|
|
25
|
+
if (!isInNaturalStartZone && !isInNaturalEndZone) {
|
|
26
|
+
const middlePoint = Math.floor(totalPageCount / 2);
|
|
27
|
+
if (currentPage <= middlePoint) {
|
|
28
|
+
const startIndex = currentPage - numStartZoneButtons + 1;
|
|
29
|
+
for (let i = startIndex; i <= currentPage; i++) {
|
|
30
|
+
paginationRange.push(i);
|
|
31
|
+
}
|
|
32
|
+
paginationRange.push('...');
|
|
33
|
+
for (let i = endZoneStart; i <= totalPageCount; i++) {
|
|
34
|
+
paginationRange.push(i);
|
|
35
|
+
}
|
|
36
|
+
return paginationRange;
|
|
37
|
+
}
|
|
38
|
+
for (let i = 1; i <= numStartZoneButtons; i++) {
|
|
39
|
+
paginationRange.push(i);
|
|
40
|
+
}
|
|
41
|
+
paginationRange.push('...');
|
|
42
|
+
const endIndex = Math.min(currentPage + numEndZoneButtons - 1, totalPageCount);
|
|
43
|
+
for (let i = currentPage; i <= endIndex; i++) {
|
|
44
|
+
paginationRange.push(i);
|
|
45
|
+
}
|
|
46
|
+
return paginationRange;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const isInStartZone = currentPage <= startZoneEnd;
|
|
50
|
+
const isInEndZone = currentPage >= endZoneStart;
|
|
51
|
+
for (let i = 1; i <= startZoneEnd; i++) {
|
|
52
|
+
paginationRange.push(i);
|
|
53
|
+
}
|
|
54
|
+
if (showMiddleZone &&
|
|
55
|
+
!isInStartZone &&
|
|
56
|
+
!isInEndZone &&
|
|
57
|
+
endZoneStart > startZoneEnd + 1) {
|
|
58
|
+
paginationRange.push('...');
|
|
59
|
+
const halfMiddle = Math.floor(numMiddleButtons / 2);
|
|
60
|
+
const middleStart = Math.max(startZoneEnd + 1, currentPage - halfMiddle);
|
|
61
|
+
const middleEnd = Math.min(endZoneStart - 1, currentPage + halfMiddle);
|
|
62
|
+
for (let i = middleStart; i <= middleEnd; i++) {
|
|
63
|
+
paginationRange.push(i);
|
|
64
|
+
}
|
|
65
|
+
paginationRange.push('...');
|
|
66
|
+
}
|
|
67
|
+
else if (endZoneStart > startZoneEnd + 1) {
|
|
68
|
+
paginationRange.push('...');
|
|
69
|
+
}
|
|
70
|
+
for (let i = endZoneStart; i <= totalPageCount; i++) {
|
|
71
|
+
paginationRange.push(i);
|
|
72
|
+
}
|
|
73
|
+
return paginationRange;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const nvPaginationNavCss = () => `nv-pagination-nav{display:block}nv-pagination-nav [data-scope=pagination-nav]{display:flex;align-items:center;justify-content:center;gap:var(--spacing-2);flex-wrap:wrap}nv-pagination-nav [data-scope=page-list]{display:flex;align-items:center;gap:var(--spacing-2);list-style:none;margin:0;padding:0}nv-pagination-nav [data-scope=page-button]{display:flex;align-items:center}nv-pagination-nav [data-scope=page-button] nv-button,nv-pagination-nav [data-scope=page-button] nv-iconbutton{min-width:var(--spacing-8);justify-content:center}nv-pagination-nav [data-scope=ellipsis]{display:flex;align-items:center;justify-content:center;min-width:var(--spacing-8);height:var(--spacing-8);color:var(--color-content-lower-text);font-size:var(--font-size-sm);user-select:none}`;
|
|
77
|
+
|
|
78
|
+
const NvPaginationNav = class {
|
|
79
|
+
constructor(hostRef) {
|
|
80
|
+
index.registerInstance(this, hostRef);
|
|
81
|
+
this.currentPageChanged = index.createEvent(this, "currentPageChanged", 3);
|
|
82
|
+
/****************************************************************************/
|
|
83
|
+
//#region PROPERTIES
|
|
84
|
+
/**
|
|
85
|
+
* Label for the previous button.
|
|
86
|
+
*/
|
|
87
|
+
this.previousButtonLabel = 'Previous';
|
|
88
|
+
/**
|
|
89
|
+
* Label for the next button.
|
|
90
|
+
*/
|
|
91
|
+
this.nextButtonLabel = 'Next';
|
|
92
|
+
/**
|
|
93
|
+
* Number of page buttons to show at the start of the pagination range.
|
|
94
|
+
*/
|
|
95
|
+
this.numStartZoneButtons = 2;
|
|
96
|
+
/**
|
|
97
|
+
* Number of page buttons to show at the end of the pagination range.
|
|
98
|
+
*/
|
|
99
|
+
this.numEndZoneButtons = 2;
|
|
100
|
+
/**
|
|
101
|
+
* Number of page buttons to show in the middle zone around the current page.
|
|
102
|
+
*/
|
|
103
|
+
this.numMiddleButtons = 1;
|
|
104
|
+
/**
|
|
105
|
+
* Current page number (1-based index).
|
|
106
|
+
*/
|
|
107
|
+
this.currentPage = 1;
|
|
108
|
+
/**
|
|
109
|
+
* Total number of items to paginate.
|
|
110
|
+
*/
|
|
111
|
+
this.totalCount = 100;
|
|
112
|
+
/**
|
|
113
|
+
* Number of items per page.
|
|
114
|
+
*/
|
|
115
|
+
this.pageSize = 10;
|
|
116
|
+
/**
|
|
117
|
+
* If true, the Previous/Next navigation buttons will be displayed as icon buttons.
|
|
118
|
+
* Page number buttons always use regular buttons.
|
|
119
|
+
*/
|
|
120
|
+
this.isOnlyIcon = false;
|
|
121
|
+
/**
|
|
122
|
+
* If true, shows the middle zone with the current page when it's not in start/end zones.
|
|
123
|
+
* If false (default), only shows one ellipsis between start and end zones (simpler pagination).
|
|
124
|
+
*/
|
|
125
|
+
this.showMiddleZone = false;
|
|
126
|
+
/**
|
|
127
|
+
* Handles page change events.
|
|
128
|
+
* @param {number} pageNumber The page number to navigate to.
|
|
129
|
+
*/
|
|
130
|
+
this.handlePageChange = (pageNumber) => {
|
|
131
|
+
if (pageNumber < 1 ||
|
|
132
|
+
pageNumber > this.totalPages ||
|
|
133
|
+
pageNumber === this.currentPage) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
this.currentPage = pageNumber;
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
//#endregion PROPERTIES
|
|
140
|
+
/****************************************************************************/
|
|
141
|
+
//#region METHODS
|
|
142
|
+
/**
|
|
143
|
+
* Calculates the total number of pages based on totalCount and pageSize.
|
|
144
|
+
* @returns {number} The total number of pages.
|
|
145
|
+
*/
|
|
146
|
+
get totalPages() {
|
|
147
|
+
return Math.ceil(this.totalCount / this.pageSize);
|
|
148
|
+
}
|
|
149
|
+
//#endregion METHODS
|
|
150
|
+
/****************************************************************************/
|
|
151
|
+
//#region WATCHERS
|
|
152
|
+
/**
|
|
153
|
+
* Watches for changes to currentPage and emits the currentPageChanged event.
|
|
154
|
+
* @param {number} newValue The new current page value.
|
|
155
|
+
*/
|
|
156
|
+
onCurrentPageChange(newValue) {
|
|
157
|
+
// Validate and constrain currentPage
|
|
158
|
+
const constrainedValue = Math.max(1, Math.min(newValue, this.totalPages));
|
|
159
|
+
if (constrainedValue !== newValue) {
|
|
160
|
+
this.currentPage = constrainedValue;
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
this.currentPageChanged.emit(newValue);
|
|
164
|
+
}
|
|
165
|
+
//#endregion EVENTS
|
|
166
|
+
/****************************************************************************/
|
|
167
|
+
//#region RENDER
|
|
168
|
+
/**
|
|
169
|
+
* Renders a single page button.
|
|
170
|
+
* @param {number} pageNumber The page number to render.
|
|
171
|
+
* @returns {JSX.Element} The rendered page button element.
|
|
172
|
+
*/
|
|
173
|
+
renderPageButton(pageNumber) {
|
|
174
|
+
const isCurrentPage = pageNumber === this.currentPage;
|
|
175
|
+
return (index.h("li", { key: pageNumber, "data-scope": "page-button" }, index.h("nv-button", { size: "md", emphasis: "lower", active: isCurrentPage, onClick: () => this.handlePageChange(pageNumber), "data-page": pageNumber, "data-current": isCurrentPage ? 'true' : undefined }, pageNumber)));
|
|
176
|
+
}
|
|
177
|
+
render() {
|
|
178
|
+
const isFirstPage = this.currentPage === 1;
|
|
179
|
+
const isLastPage = this.currentPage === this.totalPages;
|
|
180
|
+
return (index.h(index.Host, { key: 'b2255fce4e03cee8ff370086aac31df5c69d275d' }, index.h("nav", { key: 'a136b7193f9b00a68e6ee626802dee19fd762531', "data-scope": "pagination-nav", "aria-label": "Pagination navigation" }, this.isOnlyIcon ? (index.h("nv-iconbutton", { name: "chevron-left", size: "md", emphasis: "lower", disabled: isFirstPage, onClick: () => this.handlePageChange(this.currentPage - 1), "data-scope": "previous-iconbutton", "aria-label": this.previousButtonLabel })) : (index.h("nv-button", { size: "md", emphasis: "lower", disabled: isFirstPage, onClick: () => this.handlePageChange(this.currentPage - 1), "data-scope": "previous-button" }, index.h("nv-icon", { slot: "leading-icon", name: "chevron-left" }), this.previousButtonLabel)), index.h("ol", { key: '5bebe0e3f5c8f1799ed8980752fbed7aadbcac01', "data-scope": "page-list" }, calculatePaginationRange({
|
|
181
|
+
currentPage: this.currentPage,
|
|
182
|
+
totalCount: this.totalCount,
|
|
183
|
+
pageSize: this.pageSize,
|
|
184
|
+
numStartZoneButtons: this.numStartZoneButtons,
|
|
185
|
+
numEndZoneButtons: this.numEndZoneButtons,
|
|
186
|
+
numMiddleButtons: this.numMiddleButtons,
|
|
187
|
+
showMiddleZone: this.showMiddleZone,
|
|
188
|
+
}).map(item => typeof item === 'number' ? (this.renderPageButton(item)) : (index.h("li", { key: `ellipsis-${item}`, "data-scope": "ellipsis", "aria-hidden": "true" }, index.h("span", null, item))))), this.isOnlyIcon ? (index.h("nv-iconbutton", { name: "chevron-right", size: "md", emphasis: "lower", disabled: isLastPage, onClick: () => this.handlePageChange(this.currentPage + 1), "data-scope": "next-iconbutton", "aria-label": this.nextButtonLabel })) : (index.h("nv-button", { size: "md", emphasis: "lower", disabled: isLastPage, onClick: () => this.handlePageChange(this.currentPage + 1), "data-scope": "next-button" }, this.nextButtonLabel, index.h("nv-icon", { slot: "trailing-icon", name: "chevron-right" }))))));
|
|
189
|
+
}
|
|
190
|
+
static get watchers() { return {
|
|
191
|
+
"currentPage": [{
|
|
192
|
+
"onCurrentPageChange": 0
|
|
193
|
+
}]
|
|
194
|
+
}; }
|
|
195
|
+
};
|
|
196
|
+
NvPaginationNav.style = nvPaginationNavCss();
|
|
197
|
+
|
|
198
|
+
exports.nv_pagination_nav = NvPaginationNav;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Pagination table utility functions for nv-paginationtable component
|
|
@@ -212,7 +212,7 @@ const NvPaginationtable = class {
|
|
|
212
212
|
const pageLabel = interpolate(this.labelPage, { pageIndex: this.pageIndex + 1, pageCount: this.pageCount }, 'Page {pageIndex} of {pageCount}');
|
|
213
213
|
const totalLabel = interpolate(this.labelTotal, { rowCount: this.rowCount }, 'Total: {rowCount} rows');
|
|
214
214
|
const pageSizeOptions = generatePageSizeOptions(this.labelPageSizeOption ?? '{pageSize} per page');
|
|
215
|
-
return (index.h(index.Host, { key: '
|
|
215
|
+
return (index.h(index.Host, { key: '0556d5f0dc69faa503b504ec87c47819f92d565d' }, !this.hideControls && (index.h("div", { key: 'b097a2bda8c09b88db038c1039133a7ec2571247', "data-scope": "controls" }, !this.hideFirstLast && (index.h("nv-iconbutton", { key: '29841590c99ee7534d1d41933c4eb155a9b9a9db', name: "chevrons-left", emphasis: "lower", size: "sm", disabled: atFirstPage, onClick: () => this.firstPage() })), !this.hidePrevNext && (index.h("nv-iconbutton", { key: '9d075e5ea8ee0f1b77de4da5072862d076579778', name: "chevron-left", emphasis: "lower", size: "sm", disabled: atFirstPage, onClick: () => this.previousPage() })), !this.hidePrevNext && (index.h("nv-iconbutton", { key: '712ebb3f14e02945b20d57b85a891550a1e09e95', name: "chevron-right", emphasis: "lower", size: "sm", disabled: atLastPage, onClick: () => this.nextPage() })), !this.hideFirstLast && (index.h("nv-iconbutton", { key: '1982d2de200284b3bc70dd51bea9c452b2791038', name: "chevrons-right", emphasis: "lower", size: "sm", disabled: atLastPage, onClick: () => this.lastPage() })))), index.h("span", { key: '8c2f7473c47f4fcb9a8373c8b7030a7f56e8b682', "data-scope": "page-label" }, pageLabel), index.h("span", { key: '527cd649cf4e8ba1d62451d6910401076d555b86', "data-scope": "total" }, totalLabel), index.h("div", { key: '2bf99bd31d9d46059fc6ab52f6e20878ce2dea64', "data-scope": "per-page" }, index.h("nv-fieldselect", { key: '4f55796d8cccdf9f50792eb3ff3d448cdae8de07', value: String(this.pageSize), onValueChanged: this.handlePageSizeChange, options: pageSizeOptions })), index.h("slot", { key: '9b1dc7edf5dd4ed4be02705a11a3c04f5bcc81bd' })));
|
|
216
216
|
}
|
|
217
217
|
static get watchers() { return {
|
|
218
218
|
"pageIndex": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
4
|
var fade_animation = require('./fade.animation-BQSqXXOJ.js');
|
|
5
5
|
var grow_animation = require('./grow.animation-ynu_HmA_.js');
|
|
6
6
|
require('./style-value-types.es-B1vLqX9m.js');
|
|
@@ -1959,7 +1959,7 @@ const NvPopover = class {
|
|
|
1959
1959
|
/****************************************************************************/
|
|
1960
1960
|
//#region RENDER
|
|
1961
1961
|
render() {
|
|
1962
|
-
return (index.h(index.Host, { key: '
|
|
1962
|
+
return (index.h(index.Host, { key: '8f9429a26146be5feff838bff9861c8016bcae72' }, index.h("slot", { key: '507917d729f202d0ec29e2011b0aae958a4474b5', name: "trigger" }), index.h("div", { key: 'cc85ae4610b0554b2cddd2fb62a8e8df5b8de21f', "data-scope": "popover", "data-strategy": this.strategy, hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (index.h("div", { key: 'e53a79dc2a4d439271d55391ad087c0db8abaf19', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), index.h("slot", { key: 'ef72627c588727dff2f558133d46e1689a89fc24', name: "content" }))));
|
|
1963
1963
|
}
|
|
1964
1964
|
get el() { return index.getElement(this); }
|
|
1965
1965
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
4
|
|
|
5
5
|
const nvRowCss = () => `nv-row{display:flex;flex-wrap:wrap;margin-right:calc(var(--spacing-4) * -1);margin-left:calc(var(--spacing-4) * -1);row-gap:var(--spacing-4)}`;
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ const NvRow = class {
|
|
|
11
11
|
/****************************************************************************/
|
|
12
12
|
//#region RENDER
|
|
13
13
|
render() {
|
|
14
|
-
return (index.h(index.Host, { key: '
|
|
14
|
+
return (index.h(index.Host, { key: 'fa7853dd84c1d35ff72147a7b622f62fe89ee29b' }, index.h("slot", { key: '48edd35ada0b2df00b61a2522ac8ff33063b7831' })));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
NvRow.style = nvRowCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
4
|
|
|
5
5
|
const nvSidebarCss = () => `nv-sidebarnavitem a,nv-sidebarnavitem a:link,nv-sidebarnavitem a:visited,nv-sidebarnavitem a:hover,nv-sidebarnavitem a:active,nv-sidebarnavsubitem a,nv-sidebarnavsubitem a:link,nv-sidebarnavsubitem a:visited,nv-sidebarnavsubitem a:hover,nv-sidebarnavsubitem a:active{color:inherit !important;text-decoration:none !important}nv-sidebar{display:flex;flex-direction:column;position:relative;height:100vh;background-color:var(--components-sidebar-background);border-right:var(--sidebar-divider-size) solid var(--components-sidebar-border);transition:width 0.3s ease;width:var(--sidebar-width)}nv-sidebar[collapsed]{width:var(--sidebar-width-collapsed)}nv-sidebar[collapsed] [data-hide-on-collapsed]{display:none !important}nv-sidebar[collapsed] .nv-sidebar-container{padding:var(--sidebar-padding-y) var(--sidebar-padding-x-collapsed)}nv-sidebar .nv-sidebar-container{display:flex;flex-direction:column;flex:1;overflow:hidden;padding:var(--sidebar-padding-y) var(--sidebar-padding-x);gap:var(--sidebar-gap-y)}nv-sidebar .nv-sidebar-toggle{position:absolute;top:var(--sidebar-collapsible-button-position-top);right:calc(-1 * var(--sidebar-collapsible-button-position-right));display:flex;align-items:center;justify-content:center;padding:var(--sidebar-collapsible-button-padding);background-color:var(--components-sidebar-background);border:1px solid var(--color-content-low-border);border-radius:var(--radius-rounded-full);cursor:pointer;transition:transform 0.2s ease;z-index:10}nv-sidebar .nv-sidebar-toggle:hover{background-color:var(--color-interaction-container-neutral-background-hover)}nv-sidebar .nv-sidebar-toggle:focus,nv-sidebar .nv-sidebar-toggle:focus-within{outline:none}nv-sidebar .nv-sidebar-toggle:focus-visible,nv-sidebar .nv-sidebar-toggle:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-sidebar .nv-sidebar-toggle nv-icon{width:var(--sidebar-collapsible-button-icon-size);height:var(--sidebar-collapsible-button-icon-size);color:var(--color-interaction-container-neutral-icon)}nv-sidebar .nv-sidebar-toggle nv-icon:hover{color:var(--color-interaction-container-neutral-icon-hover)}`;
|
|
6
6
|
|
|
@@ -159,7 +159,7 @@ const NvSidebar = class {
|
|
|
159
159
|
//#region RENDER
|
|
160
160
|
render() {
|
|
161
161
|
const isCollapsed = this.type === 'collapsible' && !this.open;
|
|
162
|
-
return (index.h(index.Host, { key: '
|
|
162
|
+
return (index.h(index.Host, { key: '7c77dc107335664b3844b38579f53c8805de09ca', role: "navigation", collapsed: isCollapsed ? true : undefined, "notification-intention": this.notificationIntention, "notification-emphasis": this.notificationEmphasis, "aria-expanded": this.type === 'collapsible' ? String(this.open) : undefined }, index.h("div", { key: '00e9958d45d311168ab3024eda4d0a45813a8152', class: "nv-sidebar-container" }, index.h("slot", { key: '047f6bda1730f65c403f6aefe52b7c06192001c3' })), this.type === 'collapsible' && (index.h("button", { key: '51174b4f74614dc1eb1bfc78aacc542d8c938a02', class: "nv-sidebar-toggle", onClick: this.handleToggle, "aria-label": this.open ? 'Collapse sidebar' : 'Expand sidebar' }, index.h("nv-icon", { key: '75fc4ce9ac319be982534d502d5c019ff7d8ebdf', name: this.open
|
|
163
163
|
? 'layout-sidebar-left-collapse'
|
|
164
164
|
: 'layout-sidebar-right-collapse', size: "sm" })))));
|
|
165
165
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
4
|
|
|
5
5
|
const nvSidebarcontentCss = () => `nv-sidebarcontent{display:flex;flex-direction:column;flex:1;overflow-y:auto;overflow-x:hidden}`;
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ const NvSidebarcontent = class {
|
|
|
11
11
|
/****************************************************************************/
|
|
12
12
|
//#region RENDER
|
|
13
13
|
render() {
|
|
14
|
-
return (index.h(index.Host, { key: '
|
|
14
|
+
return (index.h(index.Host, { key: '1892ab4b2c7698bb6c0e2baae242650f3a967947', role: "list" }, index.h("slot", { key: 'a971f991f52e65f4bd83dafeee2cbdf7c4b6de51' })));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
NvSidebarcontent.style = nvSidebarcontentCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
4
|
|
|
5
5
|
const nvSidebardividerCss = () => `nv-sidebardivider{display:block;height:var(--sidebar-divider-size);background-color:var(--components-sidebar-divider)}`;
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ const NvSidebardivider = class {
|
|
|
11
11
|
/****************************************************************************/
|
|
12
12
|
//#region RENDER
|
|
13
13
|
render() {
|
|
14
|
-
return index.h(index.Host, { key: '
|
|
14
|
+
return index.h(index.Host, { key: 'f8b607a8376e9e27d33ff13da96765bf46231cc0', role: "separator", "aria-orientation": "horizontal" });
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
NvSidebardivider.style = nvSidebardividerCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
4
|
|
|
5
5
|
const nvSidebarfooterCss = () => `nv-sidebarfooter{display:block;margin-top:auto}`;
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ const NvSidebarfooter = class {
|
|
|
11
11
|
/****************************************************************************/
|
|
12
12
|
//#region RENDER
|
|
13
13
|
render() {
|
|
14
|
-
return (index.h(index.Host, { key: '
|
|
14
|
+
return (index.h(index.Host, { key: '4ef8bb09df1cca9008062f4dc8f0252472da6a66' }, index.h("slot", { key: 'b30037ecc79272287a5ad134b1b17ce9516d14c7' })));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
NvSidebarfooter.style = nvSidebarfooterCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
4
|
|
|
5
5
|
const nvSidebargroupCss = () => `nv-sidebargroup{display:flex;flex-direction:column;gap:var(--sidebar-group-gap-y)}nv-sidebargroup .nv-sidebargroup-label{display:block;font-size:var(--font-size-sm);line-height:var(--line-height-sm);font-weight:var(--font-weight-medium-emphasis);color:var(--color-content-lower-text);letter-spacing:0;padding:var(--sidebar-title-padding-y) var(--sidebar-title-padding-x)}nv-sidebar[collapsed] nv-sidebargroup .nv-sidebargroup-label{display:none}`;
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ const NvSidebargroup = class {
|
|
|
12
12
|
/****************************************************************************/
|
|
13
13
|
//#region RENDER
|
|
14
14
|
render() {
|
|
15
|
-
return (index.h(index.Host, { key: '
|
|
15
|
+
return (index.h(index.Host, { key: 'e23656515b0882eaeed7a9a3b5c772deab41cd9c', role: "group", "aria-label": this.label }, this.label && index.h("div", { key: '41600406fb5fd8f3845464260ccbcb3845d52b37', class: "nv-sidebargroup-label" }, this.label), index.h("slot", { key: '14303ef78c5da82c9a6d94d09a1e9341ade5bee4' })));
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
NvSidebargroup.style = nvSidebargroupCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
4
|
|
|
5
5
|
const nvSidebarheaderCss = () => `nv-sidebarheader{display:block}`;
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ const NvSidebarheader = class {
|
|
|
11
11
|
/****************************************************************************/
|
|
12
12
|
//#region RENDER
|
|
13
13
|
render() {
|
|
14
|
-
return (index.h(index.Host, { key: '
|
|
14
|
+
return (index.h(index.Host, { key: '5e0b6bdc78618f3e434b62b6f6e4d60c220895ce' }, index.h("slot", { key: 'ae0f11bea6f4f9bbe5376d0870453648dc4acc77' })));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
NvSidebarheader.style = nvSidebarheaderCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
4
|
|
|
5
5
|
const nvSidebarlogoCss = () => `nv-sidebarlogo{display:block}nv-sidebarlogo .nv-sidebarlogo-container{display:flex;align-items:center;gap:var(--spacing-3)}nv-sidebarlogo .nv-sidebarlogo-full,nv-sidebarlogo .nv-sidebarlogo-collapsed{height:var(--spacing-8);width:auto;object-fit:contain}nv-sidebarlogo .nv-sidebarlogo-collapsed{display:none}nv-sidebarlogo .nv-sidebarlogo-title{font-size:var(--nv-sidebarlogo-font-size, var(--font-size-md));font-weight:var(--nv-sidebarlogo-font-weight, var(--font-weight-high-emphasis));font-family:var(--nv-sidebarlogo-font-family, inherit);color:var(--color-content-high-text);white-space:nowrap;overflow:hidden;transition:opacity 0.2s ease, max-width 0.3s ease, margin-left 0.3s ease;max-width:200px;opacity:1}nv-sidebar[collapsed] nv-sidebarlogo .nv-sidebarlogo-full{display:none}nv-sidebar[collapsed] nv-sidebarlogo .nv-sidebarlogo-collapsed{display:block}nv-sidebar[collapsed] nv-sidebarlogo .nv-sidebarlogo-title{max-width:0;opacity:0;margin-left:0}nv-sidebar[collapsed] nv-sidebarlogo .nv-sidebarlogo-container{justify-content:center;align-items:center;gap:0;width:100%;min-height:var(--spacing-12);padding:0}`;
|
|
6
6
|
|
|
@@ -21,7 +21,7 @@ const NvSidebarlogo = class {
|
|
|
21
21
|
render() {
|
|
22
22
|
const logoSrc = this.logo || this.defaultLogo;
|
|
23
23
|
const collapsedLogoSrc = this.collapsedLogo || this.defaultCollapsedLogo;
|
|
24
|
-
return (index.h(index.Host, { key: '
|
|
24
|
+
return (index.h(index.Host, { key: '4a4ce90770480c97bbe8d940cf30f75b838de6c4' }, index.h("div", { key: '0ff88ef0a319410b0162f79738c13b3eb304fccb', class: "nv-sidebarlogo-container" }, index.h("img", { key: '6e94515fac21420295752374392e24de5079f013', src: logoSrc, alt: this.label || 'Logo', class: "nv-sidebarlogo-full" }), index.h("img", { key: '88f326b233a44c0e4bbc1efbeabfa619f27366a2', src: collapsedLogoSrc, alt: this.label || 'Logo', class: "nv-sidebarlogo-collapsed" }), index.h("slot", { key: 'bb09f8c0b8df53e8e3a47cc70235ca1599420ec1', name: "label" }), this.label && index.h("span", { key: 'b711afc9977d86decc2f475b457e8a8d6ed507f0', class: "nv-sidebarlogo-title" }, this.label))));
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
NvSidebarlogo.style = nvSidebarlogoCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cfkoz1kc.js');
|
|
4
4
|
|
|
5
5
|
const nvSidebarnavitemCss = () => `nv-sidebarnavitem{display:flex;flex-direction:column;gap:0}nv-sidebarnavitem .nv-sidebarnavitem-trigger{display:flex;align-items:center;gap:var(--sidebar-item-gap-x);padding:var(--sidebar-item-padding-y) var(--sidebar-item-padding-x);border-radius:var(--sidebar-item-radius);cursor:pointer;transition:all 0.15s ease;font-size:var(--sidebar-item-font-size);font-weight:var(--font-weight-medium-emphasis);color:var(--color-content-low-text);background:var(--components-sidebar-background);text-decoration:none;--nv-component-background:var(--components-sidebar-background);--nv-sidebarnavitem-background:var(--components-sidebar-background)}nv-sidebarnavitem .nv-sidebarnavitem-trigger:hover{background-color:var(--color-interaction-container-neutral-background-hover);color:var(--color-content-medium-text);--nv-component-background:var(--color-interaction-container-neutral-background-hover);--nv-sidebarnavitem-background:var(--color-interaction-container-neutral-background-hover)}nv-sidebarnavitem .nv-sidebarnavitem-trigger:focus,nv-sidebarnavitem .nv-sidebarnavitem-trigger:focus-within{outline:none}nv-sidebarnavitem .nv-sidebarnavitem-trigger:focus-visible,nv-sidebarnavitem .nv-sidebarnavitem-trigger:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-sidebarnavitem[active] .nv-sidebarnavitem-trigger{background-color:var(--color-interaction-container-neutral-background-active);color:var(--color-interaction-container-neutral-text-active);font-weight:var(--font-weight-medium-emphasis);--nv-component-background:var(--color-interaction-container-neutral-background-active);--nv-sidebarnavitem-background:var(--color-interaction-container-neutral-background-active)}nv-sidebarnavitem .nv-sidebarnavitem-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;color:inherit;width:var(--sidebar-item-icon-size);height:var(--sidebar-item-icon-size);position:relative}nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-icon{overflow:visible;margin:0;justify-content:center}nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-icon nv-notification-bullet{position:absolute;transform:translate(50%, -50%);z-index:1;--sidebar-notification-bullet-size-reduced:calc( var(--sidebar-item-icon-size) * 0.4 )}nv-sidebarnavitem .nv-sidebarnavitem-content{flex:1;display:flex;align-items:center}nv-sidebarnavitem .nv-sidebarnavitem-content a{color:inherit !important;text-decoration:none !important;font-weight:var(--font-weight-medium-emphasis) !important;flex:1}nv-sidebarnavitem .nv-sidebarnavitem-trailing{display:flex;align-items:center;gap:var(--spacing-2);margin-left:auto}nv-sidebarnavitem .nv-sidebarnavitem-chevron{transition:transform 0.2s ease;color:inherit}nv-sidebarnavitem[open] .nv-sidebarnavitem-chevron{transform:rotate(180deg)}nv-sidebarnavitem .nv-sidebarnavitem-subitems{display:flex;flex-direction:column;gap:0;max-height:0;overflow:hidden;opacity:0;transition:max-height 0.3s ease, opacity 0.2s ease;padding-left:0}nv-sidebarnavitem[open] .nv-sidebarnavitem-subitems{opacity:1;margin-top:var(--spacing-1)}nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-trigger{justify-content:center;gap:0;padding:var(--sidebar-item-padding-y-collapsed) var(--sidebar-item-padding-x-collapsed)}nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-content{display:none}nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-trailing,nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-chevron{display:none}`;
|
|
6
6
|
|
|
@@ -54,9 +54,16 @@ const NvSidebarnavitem = class {
|
|
|
54
54
|
event.preventDefault();
|
|
55
55
|
event.stopPropagation();
|
|
56
56
|
this.open = !this.open;
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
// For non-collapsible items in expanded mode, if the click didn't originate
|
|
60
|
+
// from the link itself (e.g. clicked the icon or padding), trigger the link.
|
|
61
|
+
if (!target.closest('a')) {
|
|
62
|
+
const link = this.el.querySelector('.nv-sidebarnavitem-content a, :scope > a');
|
|
63
|
+
if (link) {
|
|
64
|
+
link.click();
|
|
65
|
+
}
|
|
57
66
|
}
|
|
58
|
-
// For non-collapsible items in expanded mode, let the link handle the navigation
|
|
59
|
-
// Don't prevent default or stop propagation - allow the link to work normally
|
|
60
67
|
};
|
|
61
68
|
this.isAnimating = false;
|
|
62
69
|
this.hasInitializedHeight = false;
|
|
@@ -266,7 +273,7 @@ const NvSidebarnavitem = class {
|
|
|
266
273
|
render() {
|
|
267
274
|
const showNotificationBullet = this.notificationCount !== undefined && this.notificationCount > 0;
|
|
268
275
|
const notificationSize = this.isSidebarCollapsed ? 'reduced' : 'default';
|
|
269
|
-
return (index.h(index.Host, { key: '
|
|
276
|
+
return (index.h(index.Host, { key: '9fe0814616178746b91e3fd1ed085b69a24c5a59', role: "listitem" }, index.h("div", { key: 'ab54bdb0b6ef411626cc7c12656f6dced81f4140', class: "nv-sidebarnavitem-trigger", onClick: this.handleToggle, "aria-expanded": this.collapsible ? String(this.open) : undefined, "aria-current": this.active && !this.collapsible ? 'page' : undefined }, this.icon && (index.h("div", { key: '11c80c2443e30989b15b3439281794ef822b8a1a', class: "nv-sidebarnavitem-icon" }, index.h("nv-icon", { key: '2254b2be9015f66e42f8bf3c7b81d26469d230aa', name: this.icon, size: "md" }), showNotificationBullet && this.isSidebarCollapsed && (index.h("nv-notification-bullet", { key: 'bbf6f175b464a195886d8df1bde3f87fbaa56931', count: this.notificationCount, size: notificationSize, contrastingBorder: true })))), index.h("div", { key: 'a9b148ef62b4a58cb17ef63ab89dd1772ec10334', class: "nv-sidebarnavitem-content" }, index.h("slot", { key: 'ad8cc1679a186eedfe2d04100b5312cca5eab311' })), index.h("div", { key: '0716bcb01d00275d03d3780163d1c404a37bb0d4', class: "nv-sidebarnavitem-trailing" }, index.h("slot", { key: 'c714d7e45b82dbd964d522402a62afc4ca65852d', name: "trailing" }), showNotificationBullet && !this.isSidebarCollapsed && (index.h("nv-notification-bullet", { key: 'd854b2a57aaf1975bf01e5c7688d690ebf0d0b81', count: this.notificationCount, size: notificationSize })), this.collapsible && (index.h("nv-icon", { key: '3bafbebf228375155a6dc010982211cdda6ad455', name: "chevron-down", size: "sm", class: "nv-sidebarnavitem-chevron" })))), this.collapsible && this.hasSubitems && (index.h("div", { key: '710a6a6c3437dc74bd1f380cc5428e23f3fa7967', class: "nv-sidebarnavitem-subitems", ref: el => {
|
|
270
277
|
// Only update ref and initialize if element changed or not yet initialized
|
|
271
278
|
if (el !== this.subitemsRef) {
|
|
272
279
|
this.subitemsRef = el;
|
|
@@ -281,7 +288,7 @@ const NvSidebarnavitem = class {
|
|
|
281
288
|
});
|
|
282
289
|
}
|
|
283
290
|
}
|
|
284
|
-
} }, index.h("slot", { key: '
|
|
291
|
+
} }, index.h("slot", { key: '0fbabb90cc3df4b7cea085eb108dfd7898929a8a', name: "subitems" })))));
|
|
285
292
|
}
|
|
286
293
|
get el() { return index.getElement(this); }
|
|
287
294
|
static get watchers() { return {
|