@nova-design-system/nova-webcomponents 3.21.0 → 3.21.1-beta.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/{grow.animation-f1cef0ad.js → grow.animation-69832995.js} +29 -1
- package/dist/cjs/grow.animation-69832995.js.map +1 -0
- package/dist/cjs/index-93d3b2f8.js +40 -0
- package/dist/cjs/index.cjs.js +2 -3
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/native.cjs.js +1 -1
- package/dist/cjs/nv-badge_2.cjs.entry.js +1 -1
- package/dist/cjs/nv-dialog.cjs.entry.js +53 -19
- package/dist/cjs/nv-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +4 -4
- package/dist/cjs/nv-fielddate.cjs.entry.js +14 -17
- package/dist/cjs/nv-fielddate.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddaterange.cjs.entry.js +7 -9
- package/dist/cjs/nv-fielddaterange.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +14 -5
- package/dist/cjs/nv-fielddropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +2 -2
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldradio.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldselect.cjs.entry.js +5 -5
- package/dist/cjs/nv-fieldslider.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldtext.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldtime.cjs.entry.js +3 -3
- package/dist/cjs/nv-icon.cjs.entry.js +1 -1
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js +2 -2
- package/dist/cjs/nv-menu.cjs.entry.js +1 -1
- package/dist/cjs/nv-menuitem.cjs.entry.js +1 -1
- package/dist/cjs/nv-notification-bullet.cjs.entry.js +79 -0
- package/dist/cjs/nv-notification-bullet.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-notification.cjs.entry.js +1 -1
- package/dist/cjs/nv-notificationcontainer.cjs.entry.js +1 -1
- package/dist/cjs/nv-popover.cjs.entry.js +10 -11
- package/dist/cjs/nv-popover.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-row.cjs.entry.js +1 -1
- package/dist/cjs/nv-sidebar.cjs.entry.js +179 -0
- package/dist/cjs/nv-sidebar.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-sidebarcontent.cjs.entry.js +24 -0
- package/dist/cjs/nv-sidebarcontent.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-sidebardivider.cjs.entry.js +24 -0
- package/dist/cjs/nv-sidebardivider.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-sidebarfooter.cjs.entry.js +24 -0
- package/dist/cjs/nv-sidebarfooter.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-sidebargroup.cjs.entry.js +25 -0
- package/dist/cjs/nv-sidebargroup.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-sidebarheader.cjs.entry.js +24 -0
- package/dist/cjs/nv-sidebarheader.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-sidebarlogo.cjs.entry.js +34 -0
- package/dist/cjs/nv-sidebarlogo.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-sidebarnavitem.cjs.entry.js +299 -0
- package/dist/cjs/nv-sidebarnavitem.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-sidebarnavsubitem.cjs.entry.js +37 -0
- package/dist/cjs/nv-sidebarnavsubitem.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-split.cjs.entry.js +1 -1
- package/dist/cjs/nv-stack.cjs.entry.js +1 -1
- package/dist/cjs/nv-table.cjs.entry.js +1 -1
- package/dist/cjs/nv-tableheader.cjs.entry.js +1 -1
- package/dist/cjs/nv-toggle.cjs.entry.js +2 -2
- package/dist/cjs/nv-togglebutton.cjs.entry.js +1 -1
- package/dist/cjs/nv-togglebuttongroup.cjs.entry.js +1 -1
- package/dist/cjs/nv-tooltip.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/collection/components/nv-dialog/nv-dialog.css +29 -22
- package/dist/collection/components/nv-dialog/nv-dialog.docs.js +14 -1
- package/dist/collection/components/nv-dialog/nv-dialog.docs.js.map +1 -1
- package/dist/collection/components/nv-dialog/nv-dialog.js +47 -21
- package/dist/collection/components/nv-dialog/nv-dialog.js.map +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-fieldcheckbox/nv-fieldcheckbox.js +4 -4
- package/dist/collection/components/nv-fielddate/nv-fielddate.js +20 -17
- package/dist/collection/components/nv-fielddate/nv-fielddate.js.map +1 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js +7 -9
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +13 -4
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/styles/nv-fielddropdown.css +24 -18
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +1 -1
- package/dist/collection/components/nv-fielddropdownitem/styles/nv-fielddropdownitem.css +5 -3
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +1 -1
- package/dist/collection/components/nv-fieldmultiselect/styles/nv-fieldmultiselect.css +3 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +3 -3
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +3 -3
- 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 +3 -3
- 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-notification-bullet/nv-notification-bullet.docs.js +68 -0
- package/dist/collection/components/nv-notification-bullet/nv-notification-bullet.docs.js.map +1 -0
- package/dist/collection/components/nv-notification-bullet/nv-notification-bullet.js +189 -0
- package/dist/collection/components/nv-notification-bullet/nv-notification-bullet.js.map +1 -0
- package/dist/collection/components/nv-notification-bullet/styles/nv-notification-bullet.css +80 -0
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.js +1 -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 +37 -0
- package/dist/collection/components/nv-sidebar/nv-sidebar.docs.js.map +1 -0
- package/dist/collection/components/nv-sidebar/nv-sidebar.js +309 -0
- package/dist/collection/components/nv-sidebar/nv-sidebar.js.map +1 -0
- package/dist/collection/components/nv-sidebar/styles/nv-sidebar.css +73 -0
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.css +7 -0
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.docs.js +6 -0
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.docs.js.map +1 -0
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.js +24 -0
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.js.map +1 -0
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.css +6 -0
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.docs.js +6 -0
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.docs.js.map +1 -0
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.js +23 -0
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.js.map +1 -0
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.css +4 -0
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.docs.js +6 -0
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.docs.js.map +1 -0
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.js +25 -0
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.js.map +1 -0
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.css +17 -0
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.docs.js +6 -0
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.docs.js.map +1 -0
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.js +48 -0
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.js.map +1 -0
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.css +3 -0
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.docs.js +6 -0
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.docs.js.map +1 -0
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.js +25 -0
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.js.map +1 -0
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.docs.js +6 -0
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.docs.js.map +1 -0
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.js +97 -0
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.js.map +1 -0
- package/dist/collection/components/nv-sidebarlogo/styles/nv-sidebarlogo.css +47 -0
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.docs.js +6 -0
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.docs.js.map +1 -0
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.js +422 -0
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.js.map +1 -0
- package/dist/collection/components/nv-sidebarnavitem/styles/nv-sidebarnavitem.css +114 -0
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.docs.js +6 -0
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.docs.js.map +1 -0
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.js +64 -0
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.js.map +1 -0
- package/dist/collection/components/nv-sidebarnavsubitem/styles/nv-sidebarnavsubitem.css +73 -0
- package/dist/collection/components/nv-split/nv-split.js +1 -1
- package/dist/collection/components/nv-stack/nv-stack.js +1 -1
- package/dist/collection/components/nv-table/nv-table.js +1 -1
- package/dist/collection/components/nv-tableheader/nv-tableheader.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/components/index.js +2 -2
- package/dist/components/nv-accordion-item.js +1 -1
- package/dist/components/nv-accordion.js +4 -4
- 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 +2 -2
- package/dist/components/nv-button.js +1 -1
- package/dist/components/nv-datagrid.js +2 -2
- package/dist/components/nv-dialog.js +57 -23
- package/dist/components/nv-dialog.js.map +1 -1
- package/dist/components/nv-dialogfooter.js +1 -1
- package/dist/components/nv-dialogheader.js +1 -1
- package/dist/components/nv-fieldcheckbox.js +1 -1
- package/dist/components/nv-fielddate.js +19 -22
- package/dist/components/nv-fielddate.js.map +1 -1
- package/dist/components/nv-fielddaterange.js +11 -13
- package/dist/components/nv-fielddaterange.js.map +1 -1
- package/dist/components/nv-fielddropdown.js +19 -10
- package/dist/components/nv-fielddropdown.js.map +1 -1
- package/dist/components/nv-fielddropdownitem.js +1 -1
- package/dist/components/nv-fielddropdownitemcheck.js +1 -1
- package/dist/components/nv-fieldmultiselect.js +8 -8
- package/dist/components/nv-fieldmultiselect.js.map +1 -1
- package/dist/components/nv-fieldnumber.js +1 -1
- package/dist/components/nv-fieldpassword.js +6 -6
- package/dist/components/nv-fieldradio.js +3 -3
- package/dist/components/nv-fieldselect.js +8 -8
- package/dist/components/nv-fieldslider.js +7 -7
- package/dist/components/nv-fieldtext.js +1 -1
- package/dist/components/nv-fieldtextarea.js +3 -3
- package/dist/components/nv-fieldtime.js +7 -7
- 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 +4 -4
- package/dist/components/nv-menuitem.js +1 -1
- package/dist/components/nv-notification-bullet.d.ts +11 -0
- package/dist/components/nv-notification-bullet.js +8 -0
- package/dist/components/nv-notification-bullet.js.map +1 -0
- package/dist/components/nv-notification.js +2 -2
- package/dist/components/nv-notificationcontainer.js +1 -1
- package/dist/components/nv-popover.js +1 -1
- package/dist/components/nv-row.js +1 -1
- package/dist/components/nv-sidebar.d.ts +11 -0
- package/dist/components/nv-sidebar.js +208 -0
- package/dist/components/nv-sidebar.js.map +1 -0
- package/dist/components/nv-sidebarcontent.d.ts +11 -0
- package/dist/components/nv-sidebarcontent.js +38 -0
- package/dist/components/nv-sidebarcontent.js.map +1 -0
- package/dist/components/nv-sidebardivider.d.ts +11 -0
- package/dist/components/nv-sidebardivider.js +38 -0
- package/dist/components/nv-sidebardivider.js.map +1 -0
- package/dist/components/nv-sidebarfooter.d.ts +11 -0
- package/dist/components/nv-sidebarfooter.js +38 -0
- package/dist/components/nv-sidebarfooter.js.map +1 -0
- package/dist/components/nv-sidebargroup.d.ts +11 -0
- package/dist/components/nv-sidebargroup.js +41 -0
- package/dist/components/nv-sidebargroup.js.map +1 -0
- package/dist/components/nv-sidebarheader.d.ts +11 -0
- package/dist/components/nv-sidebarheader.js +38 -0
- package/dist/components/nv-sidebarheader.js.map +1 -0
- package/dist/components/nv-sidebarlogo.d.ts +11 -0
- package/dist/components/nv-sidebarlogo.js +52 -0
- package/dist/components/nv-sidebarlogo.js.map +1 -0
- package/dist/components/nv-sidebarnavitem.d.ts +11 -0
- package/dist/components/nv-sidebarnavitem.js +335 -0
- package/dist/components/nv-sidebarnavitem.js.map +1 -0
- package/dist/components/nv-sidebarnavsubitem.d.ts +11 -0
- package/dist/components/nv-sidebarnavsubitem.js +53 -0
- package/dist/components/nv-sidebarnavsubitem.js.map +1 -0
- 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 +4 -4
- package/dist/components/nv-toggle.js +2 -2
- 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-61382072.js → p-20a1c769.js} +2 -2
- package/dist/components/{p-61382072.js.map → p-20a1c769.js.map} +1 -1
- package/dist/components/{p-a6c29711.js → p-2d7d3aa2.js} +3 -3
- package/dist/components/{p-a6c29711.js.map → p-2d7d3aa2.js.map} +1 -1
- package/dist/components/{p-643d7802.js → p-439c38c3.js} +3 -3
- package/dist/components/{p-643d7802.js.map → p-439c38c3.js.map} +1 -1
- package/dist/components/{p-429e01f3.js → p-583b3d89.js} +2 -2
- package/dist/components/{p-429e01f3.js.map → p-583b3d89.js.map} +1 -1
- package/dist/components/{p-c4d20cc9.js → p-5f78a78f.js} +3 -3
- package/dist/components/{p-c4d20cc9.js.map → p-5f78a78f.js.map} +1 -1
- package/dist/components/{p-4799b6c3.js → p-62f91b46.js} +3 -4
- package/dist/components/p-62f91b46.js.map +1 -0
- package/dist/components/{p-5c6b5444.js → p-7214f13f.js} +4 -4
- package/dist/components/{p-5c6b5444.js.map → p-7214f13f.js.map} +1 -1
- package/dist/components/{p-0bfe8a47.js → p-743b3452.js} +2 -2
- package/dist/components/{p-0bfe8a47.js.map → p-743b3452.js.map} +1 -1
- package/dist/components/p-82c9b7cc.js +96 -0
- package/dist/components/p-82c9b7cc.js.map +1 -0
- package/dist/components/{p-00347aae.js → p-94ad267c.js} +5 -5
- package/dist/components/{p-00347aae.js.map → p-94ad267c.js.map} +1 -1
- package/dist/components/{p-222136c2.js → p-996438a2.js} +2 -2
- package/dist/components/{p-222136c2.js.map → p-996438a2.js.map} +1 -1
- package/dist/components/{p-4697bd56.js → p-996ed843.js} +27 -2
- package/dist/components/p-996ed843.js.map +1 -0
- package/dist/components/{p-2062ba39.js → p-af663ff5.js} +2 -2
- package/dist/components/{p-2062ba39.js.map → p-af663ff5.js.map} +1 -1
- package/dist/components/{p-c69f5a37.js → p-bcf9d309.js} +5 -5
- package/dist/components/{p-c69f5a37.js.map → p-bcf9d309.js.map} +1 -1
- package/dist/components/{p-d1d4cc45.js → p-cc77f8fe.js} +7 -7
- package/dist/components/{p-d1d4cc45.js.map → p-cc77f8fe.js.map} +1 -1
- package/dist/components/{p-8ce28cff.js → p-d9c1cd97.js} +4 -4
- package/dist/components/{p-8ce28cff.js.map → p-d9c1cd97.js.map} +1 -1
- package/dist/components/{p-0d5ed1d7.js → p-e1f82896.js} +5 -5
- package/dist/components/{p-0d5ed1d7.js.map → p-e1f82896.js.map} +1 -1
- package/dist/components/{p-86588fba.js → p-f6ffffd9.js} +4 -4
- package/dist/components/{p-86588fba.js.map → p-f6ffffd9.js.map} +1 -1
- package/dist/esm/{grow.animation-03fa5c19.js → grow.animation-24ad5cf8.js} +27 -2
- package/dist/esm/grow.animation-24ad5cf8.js.map +1 -0
- package/dist/esm/index-dc2723f3.js +40 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/native.js +1 -1
- package/dist/esm/nv-badge_2.entry.js +1 -1
- package/dist/esm/nv-dialog.entry.js +51 -17
- package/dist/esm/nv-dialog.entry.js.map +1 -1
- package/dist/esm/nv-dialogfooter_2.entry.js +2 -2
- package/dist/esm/nv-fieldcheckbox.entry.js +4 -4
- package/dist/esm/nv-fielddate.entry.js +14 -17
- package/dist/esm/nv-fielddate.entry.js.map +1 -1
- package/dist/esm/nv-fielddaterange.entry.js +7 -9
- package/dist/esm/nv-fielddaterange.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdown.entry.js +14 -5
- package/dist/esm/nv-fielddropdown.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdownitem.entry.js +2 -2
- package/dist/esm/nv-fielddropdownitem.entry.js.map +1 -1
- package/dist/esm/nv-fieldmultiselect.entry.js +1 -1
- package/dist/esm/nv-fieldmultiselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldnumber.entry.js +3 -3
- package/dist/esm/nv-fieldpassword.entry.js +3 -3
- package/dist/esm/nv-fieldradio.entry.js +3 -3
- package/dist/esm/nv-fieldselect.entry.js +5 -5
- package/dist/esm/nv-fieldslider.entry.js +3 -3
- package/dist/esm/nv-fieldtext.entry.js +3 -3
- package/dist/esm/nv-fieldtextarea.entry.js +3 -3
- package/dist/esm/nv-fieldtime.entry.js +3 -3
- package/dist/esm/nv-icon.entry.js +1 -1
- package/dist/esm/nv-iconbutton_2.entry.js +2 -2
- package/dist/esm/nv-menu.entry.js +1 -1
- package/dist/esm/nv-menuitem.entry.js +1 -1
- package/dist/esm/nv-notification-bullet.entry.js +75 -0
- package/dist/esm/nv-notification-bullet.entry.js.map +1 -0
- package/dist/esm/nv-notification.entry.js +1 -1
- package/dist/esm/nv-notificationcontainer.entry.js +1 -1
- package/dist/esm/nv-popover.entry.js +2 -3
- package/dist/esm/nv-popover.entry.js.map +1 -1
- package/dist/esm/nv-row.entry.js +1 -1
- package/dist/esm/nv-sidebar.entry.js +175 -0
- package/dist/esm/nv-sidebar.entry.js.map +1 -0
- package/dist/esm/nv-sidebarcontent.entry.js +20 -0
- package/dist/esm/nv-sidebarcontent.entry.js.map +1 -0
- package/dist/esm/nv-sidebardivider.entry.js +20 -0
- package/dist/esm/nv-sidebardivider.entry.js.map +1 -0
- package/dist/esm/nv-sidebarfooter.entry.js +20 -0
- package/dist/esm/nv-sidebarfooter.entry.js.map +1 -0
- package/dist/esm/nv-sidebargroup.entry.js +21 -0
- package/dist/esm/nv-sidebargroup.entry.js.map +1 -0
- package/dist/esm/nv-sidebarheader.entry.js +20 -0
- package/dist/esm/nv-sidebarheader.entry.js.map +1 -0
- package/dist/esm/nv-sidebarlogo.entry.js +30 -0
- package/dist/esm/nv-sidebarlogo.entry.js.map +1 -0
- package/dist/esm/nv-sidebarnavitem.entry.js +295 -0
- package/dist/esm/nv-sidebarnavitem.entry.js.map +1 -0
- package/dist/esm/nv-sidebarnavsubitem.entry.js +33 -0
- package/dist/esm/nv-sidebarnavsubitem.entry.js.map +1 -0
- package/dist/esm/nv-split.entry.js +1 -1
- package/dist/esm/nv-stack.entry.js +1 -1
- package/dist/esm/nv-table.entry.js +1 -1
- package/dist/esm/nv-tableheader.entry.js +1 -1
- package/dist/esm/nv-toggle.entry.js +2 -2
- package/dist/esm/nv-togglebutton.entry.js +1 -1
- package/dist/esm/nv-togglebuttongroup.entry.js +1 -1
- package/dist/esm/nv-tooltip.entry.js +1 -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/native.esm.js.map +1 -1
- package/dist/native/p-02debfd0.entry.js +2 -0
- package/dist/native/p-02debfd0.entry.js.map +1 -0
- package/dist/native/{p-859bf9ad.entry.js → p-1ee225be.entry.js} +2 -2
- package/dist/native/p-1ee225be.entry.js.map +1 -0
- package/dist/native/p-21dde805.entry.js +2 -0
- package/dist/native/{p-56ed7306.entry.js → p-242cdeac.entry.js} +2 -2
- package/dist/native/p-2ba7b6f2.entry.js +2 -0
- package/dist/native/p-2ba7b6f2.entry.js.map +1 -0
- package/dist/native/{p-b4382c94.entry.js → p-2d363bd9.entry.js} +2 -2
- package/dist/native/{p-b02c896a.entry.js → p-31a61359.entry.js} +2 -2
- package/dist/native/p-32c16132.entry.js +2 -0
- package/dist/native/p-32c16132.entry.js.map +1 -0
- package/dist/native/p-35263b61.entry.js +2 -0
- package/dist/native/p-35263b61.entry.js.map +1 -0
- package/dist/native/{p-9950e075.entry.js → p-3df31ed5.entry.js} +2 -2
- package/dist/native/{p-c901693d.entry.js → p-4bf63654.entry.js} +2 -2
- package/dist/native/p-6005ff69.entry.js +2 -0
- package/dist/native/p-6005ff69.entry.js.map +1 -0
- package/dist/native/p-63348887.entry.js +2 -0
- package/dist/native/p-63348887.entry.js.map +1 -0
- package/dist/native/{p-587d94f3.entry.js → p-6fb6b9e4.entry.js} +2 -2
- package/dist/native/{p-a2f58133.entry.js → p-7a2f37e2.entry.js} +2 -2
- package/dist/native/{p-973f5db2.entry.js → p-7b7bbac7.entry.js} +2 -2
- package/dist/native/{p-4de8697c.entry.js → p-87deff5a.entry.js} +2 -2
- package/dist/native/p-8bee34e6.entry.js +2 -0
- package/dist/native/p-8bee34e6.entry.js.map +1 -0
- package/dist/native/{p-6a418ec4.entry.js → p-93d80b03.entry.js} +2 -2
- package/dist/native/{p-ae5be175.entry.js → p-98cab7d2.entry.js} +2 -2
- package/dist/native/p-996ed843.js +2 -0
- package/dist/native/p-996ed843.js.map +1 -0
- package/dist/native/{p-fa3e588e.entry.js → p-9e36eebc.entry.js} +2 -2
- package/dist/native/{p-2a7f80f4.entry.js → p-a4a0021c.entry.js} +2 -2
- package/dist/native/{p-17666092.entry.js → p-a6d8d9a1.entry.js} +2 -2
- package/dist/native/{p-eb74feb7.entry.js → p-a9a7f1b8.entry.js} +2 -2
- package/dist/native/p-ad5e12d2.entry.js +2 -0
- package/dist/native/{p-e6f24210.entry.js.map → p-ad5e12d2.entry.js.map} +1 -1
- package/dist/native/{p-fffbd3c1.entry.js → p-aefd32f0.entry.js} +2 -2
- package/dist/native/{p-2b4cf4b8.entry.js → p-b369a073.entry.js} +2 -2
- package/dist/native/p-b3d6e9f4.entry.js +2 -0
- package/dist/native/{p-c9fea0df.entry.js.map → p-b3d6e9f4.entry.js.map} +1 -1
- package/dist/native/{p-c4baad6e.entry.js → p-b4128eb5.entry.js} +2 -2
- package/dist/native/p-b5e752f5.entry.js +2 -0
- package/dist/native/p-b5e752f5.entry.js.map +1 -0
- package/dist/native/p-b860d0d3.entry.js +7 -0
- package/dist/native/p-b860d0d3.entry.js.map +1 -0
- package/dist/native/{p-9c432751.entry.js → p-b97f392a.entry.js} +2 -2
- package/dist/native/{p-d63689da.entry.js → p-bd91e0bb.entry.js} +2 -2
- package/dist/native/p-bd91e0bb.entry.js.map +1 -0
- package/dist/native/{p-a026654f.entry.js → p-c37ab530.entry.js} +2 -2
- package/dist/native/{p-533e2530.entry.js → p-c4cd2860.entry.js} +2 -2
- package/dist/native/{p-bd9bf6a1.entry.js → p-d22a503b.entry.js} +2 -2
- package/dist/native/{p-f3c73492.entry.js → p-da76357c.entry.js} +2 -2
- package/dist/native/{p-d0db5e72.entry.js → p-dac1537a.entry.js} +2 -2
- package/dist/native/p-e688c905.entry.js +2 -0
- package/dist/native/{p-218135b1.entry.js.map → p-e688c905.entry.js.map} +1 -1
- package/dist/native/p-e7fdcb83.entry.js +2 -0
- package/dist/native/p-e7fdcb83.entry.js.map +1 -0
- package/dist/native/{p-0177409b.entry.js → p-e887bbf5.entry.js} +2 -2
- package/dist/native/p-f22ac722.entry.js +2 -0
- package/dist/native/p-f22ac722.entry.js.map +1 -0
- package/dist/native/p-f8a099a5.entry.js +2 -0
- package/dist/native/p-f8a099a5.entry.js.map +1 -0
- package/dist/types/components/nv-dialog/nv-dialog.d.ts +4 -2
- package/dist/types/components/nv-fielddate/nv-fielddate.d.ts +1 -1
- package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +1 -0
- package/dist/types/components/nv-notification-bullet/nv-notification-bullet.d.ts +44 -0
- package/dist/types/components/nv-notification-bullet/nv-notification-bullet.docs.d.ts +4 -0
- package/dist/types/components/nv-sidebar/nv-sidebar.d.ts +64 -0
- package/dist/types/components/nv-sidebar/nv-sidebar.docs.d.ts +4 -0
- package/dist/types/components/nv-sidebarcontent/nv-sidebarcontent.d.ts +8 -0
- package/dist/types/components/nv-sidebarcontent/nv-sidebarcontent.docs.d.ts +4 -0
- package/dist/types/components/nv-sidebardivider/nv-sidebardivider.d.ts +7 -0
- package/dist/types/components/nv-sidebardivider/nv-sidebardivider.docs.d.ts +4 -0
- package/dist/types/components/nv-sidebarfooter/nv-sidebarfooter.d.ts +9 -0
- package/dist/types/components/nv-sidebarfooter/nv-sidebarfooter.docs.d.ts +4 -0
- package/dist/types/components/nv-sidebargroup/nv-sidebargroup.d.ts +13 -0
- package/dist/types/components/nv-sidebargroup/nv-sidebargroup.docs.d.ts +4 -0
- package/dist/types/components/nv-sidebarheader/nv-sidebarheader.d.ts +9 -0
- package/dist/types/components/nv-sidebarheader/nv-sidebarheader.docs.d.ts +4 -0
- package/dist/types/components/nv-sidebarlogo/nv-sidebarlogo.d.ts +26 -0
- package/dist/types/components/nv-sidebarlogo/nv-sidebarlogo.docs.d.ts +4 -0
- package/dist/types/components/nv-sidebarnavitem/nv-sidebarnavitem.d.ts +62 -0
- package/dist/types/components/nv-sidebarnavitem/nv-sidebarnavitem.docs.d.ts +4 -0
- package/dist/types/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.d.ts +15 -0
- package/dist/types/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.docs.d.ts +4 -0
- package/dist/types/components.d.ts +502 -0
- package/dist/vscode-data.json +1758 -0
- package/hydrate/index.js +960 -103
- package/hydrate/index.mjs +960 -103
- package/package.json +41 -5
- package/dist/cjs/events.utils-52846a7d.js +0 -32
- package/dist/cjs/events.utils-52846a7d.js.map +0 -1
- package/dist/cjs/grow.animation-f1cef0ad.js.map +0 -1
- package/dist/components/p-4697bd56.js.map +0 -1
- package/dist/components/p-4799b6c3.js.map +0 -1
- package/dist/components/p-d429a343.js +0 -28
- package/dist/components/p-d429a343.js.map +0 -1
- package/dist/esm/events.utils-fe1d907f.js +0 -28
- package/dist/esm/events.utils-fe1d907f.js.map +0 -1
- package/dist/esm/grow.animation-03fa5c19.js.map +0 -1
- package/dist/native/p-144d0f8a.entry.js +0 -2
- package/dist/native/p-144d0f8a.entry.js.map +0 -1
- package/dist/native/p-218135b1.entry.js +0 -2
- package/dist/native/p-44ba73dc.entry.js +0 -7
- package/dist/native/p-44ba73dc.entry.js.map +0 -1
- package/dist/native/p-4697bd56.js +0 -2
- package/dist/native/p-4697bd56.js.map +0 -1
- package/dist/native/p-57420a2f.entry.js +0 -2
- package/dist/native/p-859bf9ad.entry.js.map +0 -1
- package/dist/native/p-c9fea0df.entry.js +0 -2
- package/dist/native/p-d429a343.js +0 -2
- package/dist/native/p-d429a343.js.map +0 -1
- package/dist/native/p-d63689da.entry.js.map +0 -1
- package/dist/native/p-e6f24210.entry.js +0 -2
- /package/dist/native/{p-57420a2f.entry.js.map → p-21dde805.entry.js.map} +0 -0
- /package/dist/native/{p-56ed7306.entry.js.map → p-242cdeac.entry.js.map} +0 -0
- /package/dist/native/{p-b4382c94.entry.js.map → p-2d363bd9.entry.js.map} +0 -0
- /package/dist/native/{p-b02c896a.entry.js.map → p-31a61359.entry.js.map} +0 -0
- /package/dist/native/{p-9950e075.entry.js.map → p-3df31ed5.entry.js.map} +0 -0
- /package/dist/native/{p-c901693d.entry.js.map → p-4bf63654.entry.js.map} +0 -0
- /package/dist/native/{p-587d94f3.entry.js.map → p-6fb6b9e4.entry.js.map} +0 -0
- /package/dist/native/{p-a2f58133.entry.js.map → p-7a2f37e2.entry.js.map} +0 -0
- /package/dist/native/{p-973f5db2.entry.js.map → p-7b7bbac7.entry.js.map} +0 -0
- /package/dist/native/{p-4de8697c.entry.js.map → p-87deff5a.entry.js.map} +0 -0
- /package/dist/native/{p-6a418ec4.entry.js.map → p-93d80b03.entry.js.map} +0 -0
- /package/dist/native/{p-ae5be175.entry.js.map → p-98cab7d2.entry.js.map} +0 -0
- /package/dist/native/{p-fa3e588e.entry.js.map → p-9e36eebc.entry.js.map} +0 -0
- /package/dist/native/{p-2a7f80f4.entry.js.map → p-a4a0021c.entry.js.map} +0 -0
- /package/dist/native/{p-17666092.entry.js.map → p-a6d8d9a1.entry.js.map} +0 -0
- /package/dist/native/{p-eb74feb7.entry.js.map → p-a9a7f1b8.entry.js.map} +0 -0
- /package/dist/native/{p-fffbd3c1.entry.js.map → p-aefd32f0.entry.js.map} +0 -0
- /package/dist/native/{p-2b4cf4b8.entry.js.map → p-b369a073.entry.js.map} +0 -0
- /package/dist/native/{p-c4baad6e.entry.js.map → p-b4128eb5.entry.js.map} +0 -0
- /package/dist/native/{p-9c432751.entry.js.map → p-b97f392a.entry.js.map} +0 -0
- /package/dist/native/{p-a026654f.entry.js.map → p-c37ab530.entry.js.map} +0 -0
- /package/dist/native/{p-533e2530.entry.js.map → p-c4cd2860.entry.js.map} +0 -0
- /package/dist/native/{p-bd9bf6a1.entry.js.map → p-d22a503b.entry.js.map} +0 -0
- /package/dist/native/{p-f3c73492.entry.js.map → p-da76357c.entry.js.map} +0 -0
- /package/dist/native/{p-d0db5e72.entry.js.map → p-dac1537a.entry.js.map} +0 -0
- /package/dist/native/{p-0177409b.entry.js.map → p-e887bbf5.entry.js.map} +0 -0
|
@@ -14,7 +14,7 @@ const NvRow = class {
|
|
|
14
14
|
/****************************************************************************/
|
|
15
15
|
//#region RENDER
|
|
16
16
|
render() {
|
|
17
|
-
return (index.h(index.Host, { key: '
|
|
17
|
+
return (index.h(index.Host, { key: '8415bdad0106bd3d836996c617a749294e0c19e2' }, index.h("slot", { key: '77c069ced0dc25c4169945877c388f30d27fdc4f' })));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
NvRow.style = NvRowStyle0;
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-93d3b2f8.js');
|
|
6
|
+
|
|
7
|
+
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(--color-level-00-background);border-right:var(--sidebar-primary-separator-size) solid var(--color-content-low-border);transition:width 0.3s ease;width:var(--sidebar-width)}nv-sidebar[collapsed]{width:var(--sidebar-reduced-max-width)}nv-sidebar[collapsed] [data-hide-on-collapsed]{display:none !important}nv-sidebar[collapsed] .nv-sidebar-container{padding:var(--spacing-6) var(--spacing-5)}nv-sidebar .nv-sidebar-container{display:flex;flex-direction:column;flex:1;overflow:hidden;padding:var(--spacing-6);gap:var(--sidebar-gap-y)}nv-sidebar .nv-sidebar-toggle{position:absolute;top:var(--spacing-8);right:calc(var(--spacing-8) / -2);display:flex;align-items:center;justify-content:center;width:var(--spacing-8);height:var(--spacing-8);padding:var(--sidebar-collapsible-button-padding);background-color:var(--color-level-00-background);border:var(--sidebar-primary-separator-size) 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-level-10-background)}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)}";
|
|
8
|
+
const NvSidebarStyle0 = nvSidebarCss;
|
|
9
|
+
|
|
10
|
+
const NvSidebar = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.openChanged = index.createEvent(this, "openChanged", 7);
|
|
14
|
+
/****************************************************************************/
|
|
15
|
+
//#region PROPERTIES
|
|
16
|
+
/**
|
|
17
|
+
* The type of sidebar behavior.
|
|
18
|
+
* - collapsible: Can be toggled open/closed
|
|
19
|
+
* - persistent: Always visible
|
|
20
|
+
*/
|
|
21
|
+
this.type = 'persistent';
|
|
22
|
+
/**
|
|
23
|
+
* Whether the sidebar is currently open (only applies to collapsible type).
|
|
24
|
+
*/
|
|
25
|
+
// eslint-disable-next-line @stencil-community/ban-default-true
|
|
26
|
+
this.open = true;
|
|
27
|
+
/**
|
|
28
|
+
* Determines the type of notification bullets in the sidebar.
|
|
29
|
+
* - neutral: Uses neutral colors (gray)
|
|
30
|
+
* - brand: Uses brand colors (orange/teal depending on theme)
|
|
31
|
+
*/
|
|
32
|
+
this.notificationIntention = 'brand';
|
|
33
|
+
/**
|
|
34
|
+
* Determines the emphasis of notification bullets in the sidebar.
|
|
35
|
+
* - high: More prominent appearance
|
|
36
|
+
* - low: Less prominent appearance
|
|
37
|
+
*/
|
|
38
|
+
this.notificationEmphasis = 'high';
|
|
39
|
+
//#endregion EVENTS
|
|
40
|
+
/****************************************************************************/
|
|
41
|
+
//#region METHODS
|
|
42
|
+
this.handleToggle = () => {
|
|
43
|
+
if (this.type === 'collapsible') {
|
|
44
|
+
// Changing open will trigger @Watch which emits the event
|
|
45
|
+
this.open = !this.open;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Sets the active state of navigation items based on activePath
|
|
50
|
+
*/
|
|
51
|
+
this.setActiveNavItems = () => {
|
|
52
|
+
if (!this.activePath)
|
|
53
|
+
return;
|
|
54
|
+
// First, check all subitems to find if any matches exactly
|
|
55
|
+
const activeSubitemHrefs = new Set();
|
|
56
|
+
this.el.querySelectorAll('nv-sidebarnavsubitem').forEach(subItem => {
|
|
57
|
+
const link = subItem.querySelector('a');
|
|
58
|
+
const href = link === null || link === void 0 ? void 0 : link.getAttribute('href');
|
|
59
|
+
if (href) {
|
|
60
|
+
const isActive = this.activePath === href;
|
|
61
|
+
subItem.active = isActive;
|
|
62
|
+
if (isActive) {
|
|
63
|
+
activeSubitemHrefs.add(href);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
// Then, set nav items active only if:
|
|
68
|
+
// 1. Exact match with activePath AND no subitem matches
|
|
69
|
+
// 2. OR the navitem has no subitems and activePath starts with its href
|
|
70
|
+
this.el.querySelectorAll('nv-sidebarnavitem').forEach(navItem => {
|
|
71
|
+
const link = navItem.querySelector(':scope > a, :scope > .nv-sidebarnavitem-trigger a, .nv-sidebarnavitem-content > a');
|
|
72
|
+
const href = link === null || link === void 0 ? void 0 : link.getAttribute('href');
|
|
73
|
+
const hasSubitems = navItem.querySelector('nv-sidebarnavsubitem') !== null;
|
|
74
|
+
if (href) {
|
|
75
|
+
if (hasSubitems) {
|
|
76
|
+
// Parent with subitems: only active if exact match (not when subitem is active)
|
|
77
|
+
navItem.active = this.activePath === href;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
// Item without subitems: active on exact match
|
|
81
|
+
navItem.active = this.activePath === href;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
this.pendingActiveUpdate = null;
|
|
87
|
+
/**
|
|
88
|
+
* Sets up the MutationObserver to watch for changes in child elements.
|
|
89
|
+
* Only triggers on new nav items being added, not on attribute changes.
|
|
90
|
+
*/
|
|
91
|
+
this.setupMutationObserver = () => {
|
|
92
|
+
this.mutationObserver = new MutationObserver(mutations => {
|
|
93
|
+
// Only react to new nav items being added, ignore other mutations
|
|
94
|
+
const hasNewNavItems = mutations.some(mutation => {
|
|
95
|
+
if (mutation.type !== 'childList')
|
|
96
|
+
return false;
|
|
97
|
+
return Array.from(mutation.addedNodes).some(node => {
|
|
98
|
+
if (node.nodeType !== Node.ELEMENT_NODE)
|
|
99
|
+
return false;
|
|
100
|
+
const el = node;
|
|
101
|
+
return (el.tagName.toLowerCase() === 'nv-sidebarnavitem' ||
|
|
102
|
+
el.tagName.toLowerCase() === 'nv-sidebarnavsubitem' ||
|
|
103
|
+
el.querySelector('nv-sidebarnavitem, nv-sidebarnavsubitem'));
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
if (hasNewNavItems) {
|
|
107
|
+
// Debounce to prevent multiple rapid calls
|
|
108
|
+
if (this.pendingActiveUpdate) {
|
|
109
|
+
clearTimeout(this.pendingActiveUpdate);
|
|
110
|
+
}
|
|
111
|
+
this.pendingActiveUpdate = window.setTimeout(() => {
|
|
112
|
+
this.setActiveNavItems();
|
|
113
|
+
this.pendingActiveUpdate = null;
|
|
114
|
+
}, 50);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
this.mutationObserver.observe(this.el, {
|
|
118
|
+
childList: true,
|
|
119
|
+
subtree: true,
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
handleCollapsedSideEffects(isCollapsed) {
|
|
124
|
+
if (!isCollapsed) {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
this.el.querySelectorAll('nv-sidebarnavitem[open]').forEach(navItem => {
|
|
128
|
+
navItem.open = false;
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
//#endregion METHODS
|
|
132
|
+
/****************************************************************************/
|
|
133
|
+
//#region WATCHERS
|
|
134
|
+
onActivePathChanged() {
|
|
135
|
+
this.setActiveNavItems();
|
|
136
|
+
}
|
|
137
|
+
//#endregion WATCHERS
|
|
138
|
+
/****************************************************************************/
|
|
139
|
+
//#region LIFECYCLE
|
|
140
|
+
componentWillLoad() {
|
|
141
|
+
this.setActiveNavItems();
|
|
142
|
+
this.setupMutationObserver();
|
|
143
|
+
this.handleCollapsedSideEffects(this.type === 'collapsible' && !this.open);
|
|
144
|
+
}
|
|
145
|
+
onOpenChanged(newValue, oldValue) {
|
|
146
|
+
this.handleCollapsedSideEffects(this.type === 'collapsible' && !newValue);
|
|
147
|
+
// Only emit event when open state actually changes (not on re-render with same value)
|
|
148
|
+
if (this.type === 'collapsible' && newValue !== oldValue) {
|
|
149
|
+
this.openChanged.emit(newValue);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
disconnectedCallback() {
|
|
153
|
+
if (this.mutationObserver) {
|
|
154
|
+
this.mutationObserver.disconnect();
|
|
155
|
+
}
|
|
156
|
+
if (this.pendingActiveUpdate) {
|
|
157
|
+
clearTimeout(this.pendingActiveUpdate);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
//#endregion LIFECYCLE
|
|
161
|
+
/****************************************************************************/
|
|
162
|
+
//#region RENDER
|
|
163
|
+
render() {
|
|
164
|
+
const isCollapsed = this.type === 'collapsible' && !this.open;
|
|
165
|
+
return (index.h(index.Host, { key: 'af78cae6f6cd895dbef098e549e63ac8baace243', 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: '28a2ec38d36308d803362d361a243dc5c1b6083e', class: "nv-sidebar-container" }, index.h("slot", { key: 'c4d85987d256e89508392b6e28fdb74be9140ccb' })), this.type === 'collapsible' && (index.h("button", { key: 'a34c2b6a0be9b1bd494ac542db3ed096c81e32f9', class: "nv-sidebar-toggle", onClick: this.handleToggle, "aria-label": this.open ? 'Collapse sidebar' : 'Expand sidebar' }, index.h("nv-icon", { key: '8905351a55b339106a4c7bb5cf61582a98dd31a5', name: this.open
|
|
166
|
+
? 'layout-sidebar-left-collapse'
|
|
167
|
+
: 'layout-sidebar-right-collapse', size: "sm" })))));
|
|
168
|
+
}
|
|
169
|
+
get el() { return index.getElement(this); }
|
|
170
|
+
static get watchers() { return {
|
|
171
|
+
"activePath": ["onActivePathChanged"],
|
|
172
|
+
"open": ["onOpenChanged"]
|
|
173
|
+
}; }
|
|
174
|
+
};
|
|
175
|
+
NvSidebar.style = NvSidebarStyle0;
|
|
176
|
+
|
|
177
|
+
exports.nv_sidebar = NvSidebar;
|
|
178
|
+
|
|
179
|
+
//# sourceMappingURL=nv-sidebar.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"nv-sidebar.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,YAAY,GAAG,o/DAAo/D,CAAC;AAC1gE,wBAAe,YAAY;;MCmBd,SAAS;IALtB;;;;;;;;;;QAiBW,SAAI,GAAiC,YAAY,CAAC;;;;;QAO3D,SAAI,GAAY,IAAI,CAAC;;;;;;QAeZ,0BAAqB,GAAwB,OAAO,CAAC;;;;;;QAQrD,yBAAoB,GAAmB,MAAM,CAAC;;;;QAa/C,iBAAY,GAAG;YACrB,IAAI,IAAI,CAAC,IAAI,KAAK,aAAa,EAAE;;gBAE/B,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;aACxB;SACF,CAAC;;;;QAeM,sBAAiB,GAAG;YAC1B,IAAI,CAAC,IAAI,CAAC,UAAU;gBAAE,OAAO;;YAG7B,MAAM,kBAAkB,GAAG,IAAI,GAAG,EAAU,CAAC;YAC7C,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,CAAC,OAAO,CAAC,OAAO;gBAC9D,MAAM,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;gBACxC,MAAM,IAAI,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,YAAY,CAAC,MAAM,CAAC,CAAC;gBAExC,IAAI,IAAI,EAAE;oBACR,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC;oBAC1C,OAAO,CAAC,MAAM,GAAG,QAAQ,CAAC;oBAC1B,IAAI,QAAQ,EAAE;wBACZ,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;qBAC9B;iBACF;aACF,CAAC,CAAC;;;;YAKH,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,OAAO;gBAC3D,MAAM,IAAI,GAAG,OAAO,CAAC,aAAa,CAChC,mFAAmF,CACpF,CAAC;gBACF,MAAM,IAAI,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,YAAY,CAAC,MAAM,CAAC,CAAC;gBACxC,MAAM,WAAW,GACf,OAAO,CAAC,aAAa,CAAC,sBAAsB,CAAC,KAAK,IAAI,CAAC;gBAEzD,IAAI,IAAI,EAAE;oBACR,IAAI,WAAW,EAAE;;wBAEf,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC;qBAC3C;yBAAM;;wBAEL,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC;qBAC3C;iBACF;aACF,CAAC,CAAC;SACJ,CAAC;QAEM,wBAAmB,GAAkB,IAAI,CAAC;;;;;QAM1C,0BAAqB,GAAG;YAC9B,IAAI,CAAC,gBAAgB,GAAG,IAAI,gBAAgB,CAAC,SAAS;;gBAEpD,MAAM,cAAc,GAAG,SAAS,CAAC,IAAI,CAAC,QAAQ;oBAC5C,IAAI,QAAQ,CAAC,IAAI,KAAK,WAAW;wBAAE,OAAO,KAAK,CAAC;oBAChD,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI;wBAC9C,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY;4BAAE,OAAO,KAAK,CAAC;wBACtD,MAAM,EAAE,GAAG,IAAe,CAAC;wBAC3B,QACE,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,mBAAmB;4BAChD,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,sBAAsB;4BACnD,EAAE,CAAC,aAAa,CAAC,yCAAyC,CAAC,EAC3D;qBACH,CAAC,CAAC;iBACJ,CAAC,CAAC;gBAEH,IAAI,cAAc,EAAE;;oBAElB,IAAI,IAAI,CAAC,mBAAmB,EAAE;wBAC5B,YAAY,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;qBACxC;oBACD,IAAI,CAAC,mBAAmB,GAAG,MAAM,CAAC,UAAU,CAAC;wBAC3C,IAAI,CAAC,iBAAiB,EAAE,CAAC;wBACzB,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC;qBACjC,EAAE,EAAE,CAAC,CAAC;iBACR;aACF,CAAC,CAAC;YAEH,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE;gBACrC,SAAS,EAAE,IAAI;gBACf,OAAO,EAAE,IAAI;aACd,CAAC,CAAC;SACJ,CAAC;KAyEH;IArKS,0BAA0B,CAAC,WAAoB;QACrD,IAAI,CAAC,WAAW,EAAE;YAChB,OAAO;SACR;QAED,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,CAAC,OAAO,CAAC,OAAO;YAChE,OAAuC,CAAC,IAAI,GAAG,KAAK,CAAC;SACvD,CAAC,CAAC;KACJ;;;;IAyFD,mBAAmB;QACjB,IAAI,CAAC,iBAAiB,EAAE,CAAC;KAC1B;;;;IAID,iBAAiB;QACf,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC7B,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,IAAI,KAAK,aAAa,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC5E;IAGS,aAAa,CAAC,QAAiB,EAAE,QAAiB;QAC1D,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,IAAI,KAAK,aAAa,IAAI,CAAC,QAAQ,CAAC,CAAC;;QAE1E,IAAI,IAAI,CAAC,IAAI,KAAK,aAAa,IAAI,QAAQ,KAAK,QAAQ,EAAE;YACxD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACjC;KACF;IAED,oBAAoB;QAClB,IAAI,IAAI,CAAC,gBAAgB,EAAE;YACzB,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,mBAAmB,EAAE;YAC5B,YAAY,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;SACxC;KACF;;;;IAID,MAAM;QACJ,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,KAAK,aAAa,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;QAE9D,QACEA,QAACC,UAAI,qDACH,IAAI,EAAC,YAAY,EACjB,SAAS,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,4BACjB,IAAI,CAAC,qBAAqB,2BAC3B,IAAI,CAAC,oBAAoB,mBAE9C,IAAI,CAAC,IAAI,KAAK,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,SAAS,IAG7DD,kEAAK,KAAK,EAAC,sBAAsB,IAC/BA,oEAAa,CACT,EACL,IAAI,CAAC,IAAI,KAAK,aAAa,KAC1BA,qEACE,KAAK,EAAC,mBAAmB,EACzB,OAAO,EAAE,IAAI,CAAC,YAAY,gBACd,IAAI,CAAC,IAAI,GAAG,kBAAkB,GAAG,gBAAgB,IAE7DA,sEACE,IAAI,EACF,IAAI,CAAC,IAAI;kBACL,8BAA8B;kBAC9B,+BAA+B,EAErC,IAAI,EAAC,IAAI,GACA,CACJ,CACV,CACI,EACP;KACH;;;;;;;;;;;","names":["h","Host"],"sources":["src/components/nv-sidebar/styles/nv-sidebar.scss?tag=nv-sidebar","src/components/nv-sidebar/nv-sidebar.tsx"],"sourcesContent":["@use \"./mixins\" as *;\n@use \"./global-overrides\";\n\nnv-sidebar {\n @include sidebar-container();\n @include sidebar-width(\"expanded\");\n\n &[collapsed] {\n @include sidebar-width(\"collapsed\");\n\n [data-hide-on-collapsed] {\n display: none !important;\n }\n\n // Collapsed mode: different padding (spacing-6 top/bottom, spacing-5 left/right) (figma rules)\n .nv-sidebar-container {\n padding: var(--spacing-6) var(--spacing-5);\n }\n }\n\n .nv-sidebar-container {\n @include sidebar-inner-container();\n }\n\n .nv-sidebar-toggle {\n @include sidebar-toggle-button();\n }\n}\n","import {\n Component,\n Host,\n Prop,\n Event,\n EventEmitter,\n Element,\n Watch,\n h,\n} from '@stencil/core';\n\n/**\n * Main sidebar container for navigation. Supports collapsible and persistent modes.\n * @slot default - All sidebar components (logo, header, content, footer).\n */\n@Component({\n tag: 'nv-sidebar',\n styleUrl: 'styles/nv-sidebar.scss',\n shadow: false,\n})\nexport class NvSidebar {\n @Element() el!: HTMLNvSidebarElement;\n private mutationObserver: MutationObserver;\n\n /****************************************************************************/\n //#region PROPERTIES\n /**\n * The type of sidebar behavior.\n * - collapsible: Can be toggled open/closed\n * - persistent: Always visible\n */\n @Prop({ reflect: true })\n readonly type: 'collapsible' | 'persistent' = 'persistent';\n\n /**\n * Whether the sidebar is currently open (only applies to collapsible type).\n */\n // eslint-disable-next-line @stencil-community/ban-default-true\n @Prop({ reflect: true, mutable: true })\n open: boolean = true;\n\n /**\n * The current active path. Used to automatically set the active state of nav items.\n * Example: \"/dashboard\" or \"/settings/profile\"\n */\n @Prop({ reflect: true })\n readonly activePath?: string;\n\n /**\n * Determines the type of notification bullets in the sidebar.\n * - neutral: Uses neutral colors (gray)\n * - brand: Uses brand colors (orange/teal depending on theme)\n */\n @Prop({ reflect: true })\n readonly notificationIntention: 'neutral' | 'brand' = 'brand';\n\n /**\n * Determines the emphasis of notification bullets in the sidebar.\n * - high: More prominent appearance\n * - low: Less prominent appearance\n */\n @Prop({ reflect: true })\n readonly notificationEmphasis: 'high' | 'low' = 'high';\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region EVENTS\n /**\n * Emitted when the open state changes.\n * @bind open\n */\n @Event()\n openChanged: EventEmitter<boolean>;\n //#endregion EVENTS\n /****************************************************************************/\n //#region METHODS\n private handleToggle = () => {\n if (this.type === 'collapsible') {\n // Changing open will trigger @Watch which emits the event\n this.open = !this.open;\n }\n };\n\n private handleCollapsedSideEffects(isCollapsed: boolean) {\n if (!isCollapsed) {\n return;\n }\n\n this.el.querySelectorAll('nv-sidebarnavitem[open]').forEach(navItem => {\n (navItem as HTMLNvSidebarnavitemElement).open = false;\n });\n }\n\n /**\n * Sets the active state of navigation items based on activePath\n */\n private setActiveNavItems = () => {\n if (!this.activePath) return;\n\n // First, check all subitems to find if any matches exactly\n const activeSubitemHrefs = new Set<string>();\n this.el.querySelectorAll('nv-sidebarnavsubitem').forEach(subItem => {\n const link = subItem.querySelector('a');\n const href = link?.getAttribute('href');\n\n if (href) {\n const isActive = this.activePath === href;\n subItem.active = isActive;\n if (isActive) {\n activeSubitemHrefs.add(href);\n }\n }\n });\n\n // Then, set nav items active only if:\n // 1. Exact match with activePath AND no subitem matches\n // 2. OR the navitem has no subitems and activePath starts with its href\n this.el.querySelectorAll('nv-sidebarnavitem').forEach(navItem => {\n const link = navItem.querySelector(\n ':scope > a, :scope > .nv-sidebarnavitem-trigger a, .nv-sidebarnavitem-content > a',\n );\n const href = link?.getAttribute('href');\n const hasSubitems =\n navItem.querySelector('nv-sidebarnavsubitem') !== null;\n\n if (href) {\n if (hasSubitems) {\n // Parent with subitems: only active if exact match (not when subitem is active)\n navItem.active = this.activePath === href;\n } else {\n // Item without subitems: active on exact match\n navItem.active = this.activePath === href;\n }\n }\n });\n };\n\n private pendingActiveUpdate: number | null = null;\n\n /**\n * Sets up the MutationObserver to watch for changes in child elements.\n * Only triggers on new nav items being added, not on attribute changes.\n */\n private setupMutationObserver = (): void => {\n this.mutationObserver = new MutationObserver(mutations => {\n // Only react to new nav items being added, ignore other mutations\n const hasNewNavItems = mutations.some(mutation => {\n if (mutation.type !== 'childList') return false;\n return Array.from(mutation.addedNodes).some(node => {\n if (node.nodeType !== Node.ELEMENT_NODE) return false;\n const el = node as Element;\n return (\n el.tagName.toLowerCase() === 'nv-sidebarnavitem' ||\n el.tagName.toLowerCase() === 'nv-sidebarnavsubitem' ||\n el.querySelector('nv-sidebarnavitem, nv-sidebarnavsubitem')\n );\n });\n });\n\n if (hasNewNavItems) {\n // Debounce to prevent multiple rapid calls\n if (this.pendingActiveUpdate) {\n clearTimeout(this.pendingActiveUpdate);\n }\n this.pendingActiveUpdate = window.setTimeout(() => {\n this.setActiveNavItems();\n this.pendingActiveUpdate = null;\n }, 50);\n }\n });\n\n this.mutationObserver.observe(this.el, {\n childList: true,\n subtree: true,\n });\n };\n //#endregion METHODS\n /****************************************************************************/\n //#region WATCHERS\n @Watch('activePath')\n onActivePathChanged() {\n this.setActiveNavItems();\n }\n //#endregion WATCHERS\n /****************************************************************************/\n //#region LIFECYCLE\n componentWillLoad() {\n this.setActiveNavItems();\n this.setupMutationObserver();\n this.handleCollapsedSideEffects(this.type === 'collapsible' && !this.open);\n }\n\n @Watch('open')\n protected onOpenChanged(newValue: boolean, oldValue: boolean) {\n this.handleCollapsedSideEffects(this.type === 'collapsible' && !newValue);\n // Only emit event when open state actually changes (not on re-render with same value)\n if (this.type === 'collapsible' && newValue !== oldValue) {\n this.openChanged.emit(newValue);\n }\n }\n\n disconnectedCallback() {\n if (this.mutationObserver) {\n this.mutationObserver.disconnect();\n }\n if (this.pendingActiveUpdate) {\n clearTimeout(this.pendingActiveUpdate);\n }\n }\n //#endregion LIFECYCLE\n /****************************************************************************/\n //#region RENDER\n render() {\n const isCollapsed = this.type === 'collapsible' && !this.open;\n\n return (\n <Host\n role=\"navigation\"\n collapsed={isCollapsed ? true : undefined}\n notification-intention={this.notificationIntention}\n notification-emphasis={this.notificationEmphasis}\n aria-expanded={\n this.type === 'collapsible' ? String(this.open) : undefined\n }\n >\n <div class=\"nv-sidebar-container\">\n <slot></slot>\n </div>\n {this.type === 'collapsible' && (\n <button\n class=\"nv-sidebar-toggle\"\n onClick={this.handleToggle}\n aria-label={this.open ? 'Collapse sidebar' : 'Expand sidebar'}\n >\n <nv-icon\n name={\n this.open\n ? 'layout-sidebar-left-collapse'\n : 'layout-sidebar-right-collapse'\n }\n size=\"sm\"\n ></nv-icon>\n </button>\n )}\n </Host>\n );\n }\n //#endregion RENDER\n}\n"],"version":3}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-93d3b2f8.js');
|
|
6
|
+
|
|
7
|
+
const nvSidebarcontentCss = "nv-sidebarcontent{display:flex;flex-direction:column;flex:1;overflow-y:auto;overflow-x:hidden}";
|
|
8
|
+
const NvSidebarcontentStyle0 = nvSidebarcontentCss;
|
|
9
|
+
|
|
10
|
+
const NvSidebarcontent = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
}
|
|
14
|
+
/****************************************************************************/
|
|
15
|
+
//#region RENDER
|
|
16
|
+
render() {
|
|
17
|
+
return (index.h(index.Host, { key: 'd960a2c2abe06db605980bf35d2c7cc74f4e0dba', role: "list" }, index.h("slot", { key: '7c0b0ad872d1afc279bfd9c9d381097207f055e2' })));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
NvSidebarcontent.style = NvSidebarcontentStyle0;
|
|
21
|
+
|
|
22
|
+
exports.nv_sidebarcontent = NvSidebarcontent;
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=nv-sidebarcontent.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"nv-sidebarcontent.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,mBAAmB,GAAG,gGAAgG,CAAC;AAC7H,+BAAe,mBAAmB;;MCUrB,gBAAgB;;;;;;IAG3B,MAAM;QACJ,QACEA,QAACC,UAAI,qDAAC,IAAI,EAAC,MAAM,IACfD,oEAAa,CACR,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/nv-sidebarcontent/nv-sidebarcontent.scss?tag=nv-sidebarcontent","src/components/nv-sidebarcontent/nv-sidebarcontent.tsx"],"sourcesContent":["nv-sidebarcontent {\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow-y: auto;\n overflow-x: hidden;\n}","import { Component, Host, h } from '@stencil/core';\n\n/**\n * Scrollable main content area of the sidebar containing navigation groups and items.\n * @slot default - Navigation groups, items, and dividers.\n */\n@Component({\n tag: 'nv-sidebarcontent',\n styleUrl: 'nv-sidebarcontent.scss',\n shadow: false,\n})\nexport class NvSidebarcontent {\n /****************************************************************************/\n //#region RENDER\n render() {\n return (\n <Host role=\"list\">\n <slot></slot>\n </Host>\n );\n }\n //#endregion RENDER\n}\n"],"version":3}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-93d3b2f8.js');
|
|
6
|
+
|
|
7
|
+
const nvSidebardividerCss = "nv-sidebardivider{display:block;height:var(--sidebar-primary-separator-size);background-color:var(--color-content-low-border);margin:var(--spacing-2) 0}";
|
|
8
|
+
const NvSidebardividerStyle0 = nvSidebardividerCss;
|
|
9
|
+
|
|
10
|
+
const NvSidebardivider = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
}
|
|
14
|
+
/****************************************************************************/
|
|
15
|
+
//#region RENDER
|
|
16
|
+
render() {
|
|
17
|
+
return index.h(index.Host, { key: 'a4328b357b750232920c8b5e24e91503bba7e235', role: "separator", "aria-orientation": "horizontal" });
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
NvSidebardivider.style = NvSidebardividerStyle0;
|
|
21
|
+
|
|
22
|
+
exports.nv_sidebardivider = NvSidebardivider;
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=nv-sidebardivider.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"nv-sidebardivider.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,mBAAmB,GAAG,0JAA0J,CAAC;AACvL,+BAAe,mBAAmB;;MCSrB,gBAAgB;;;;;;IAG3B,MAAM;QACJ,OAAOA,QAACC,UAAI,qDAAC,IAAI,EAAC,WAAW,sBAAkB,YAAY,GAAQ,CAAC;KACrE;;;;;;","names":["h","Host"],"sources":["src/components/nv-sidebardivider/nv-sidebardivider.scss?tag=nv-sidebardivider","src/components/nv-sidebardivider/nv-sidebardivider.tsx"],"sourcesContent":["nv-sidebardivider {\n display: block;\n height: var(--sidebar-primary-separator-size);\n background-color: var(--color-content-low-border);\n margin: var(--spacing-2) 0;\n}\n","import { Component, Host, h } from '@stencil/core';\n\n/**\n * A horizontal divider for separating sidebar navigation groups.\n */\n@Component({\n tag: 'nv-sidebardivider',\n styleUrl: 'nv-sidebardivider.scss',\n shadow: false,\n})\nexport class NvSidebardivider {\n /****************************************************************************/\n //#region RENDER\n render() {\n return <Host role=\"separator\" aria-orientation=\"horizontal\"></Host>;\n }\n //#endregion RENDER\n}\n"],"version":3}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-93d3b2f8.js');
|
|
6
|
+
|
|
7
|
+
const nvSidebarfooterCss = "nv-sidebarfooter{display:block;margin-top:auto}";
|
|
8
|
+
const NvSidebarfooterStyle0 = nvSidebarfooterCss;
|
|
9
|
+
|
|
10
|
+
const NvSidebarfooter = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
}
|
|
14
|
+
/****************************************************************************/
|
|
15
|
+
//#region RENDER
|
|
16
|
+
render() {
|
|
17
|
+
return (index.h(index.Host, { key: '73ce5246f93d982caf0d65f2cde8156dfbe565da' }, index.h("slot", { key: '92a297a59988ce6e70875eedd50227cdf011d4bf' })));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
NvSidebarfooter.style = NvSidebarfooterStyle0;
|
|
21
|
+
|
|
22
|
+
exports.nv_sidebarfooter = NvSidebarfooter;
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=nv-sidebarfooter.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"nv-sidebarfooter.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,kBAAkB,GAAG,iDAAiD,CAAC;AAC7E,8BAAe,kBAAkB;;MCWpB,eAAe;;;;;;IAG1B,MAAM;QACJ,QACEA,QAACC,UAAI,uDACHD,oEAAa,CACR,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/nv-sidebarfooter/nv-sidebarfooter.scss?tag=nv-sidebarfooter","src/components/nv-sidebarfooter/nv-sidebarfooter.tsx"],"sourcesContent":["nv-sidebarfooter {\n display: block;\n margin-top: auto;\n}","import { Component, Host, h } from '@stencil/core';\n\n/**\n * Optional footer container for the sidebar. Use this to display custom elements\n * like user settings, logout buttons, or version information at the bottom of the sidebar.\n * @slot default - Custom content to display in the footer.\n */\n@Component({\n tag: 'nv-sidebarfooter',\n styleUrl: 'nv-sidebarfooter.scss',\n shadow: false,\n})\nexport class NvSidebarfooter {\n /****************************************************************************/\n //#region RENDER\n render() {\n return (\n <Host>\n <slot></slot>\n </Host>\n );\n }\n //#endregion RENDER\n}\n"],"version":3}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-93d3b2f8.js');
|
|
6
|
+
|
|
7
|
+
const nvSidebargroupCss = "nv-sidebargroup{display:flex;flex-direction:column;gap:var(--spacing-1)}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-primary-title-padding-y) var(--sidebar-primary-title-padding-x)}nv-sidebar[collapsed] nv-sidebargroup .nv-sidebargroup-label{display:none}";
|
|
8
|
+
const NvSidebargroupStyle0 = nvSidebargroupCss;
|
|
9
|
+
|
|
10
|
+
const NvSidebargroup = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
}
|
|
14
|
+
//#endregion PROPERTIES
|
|
15
|
+
/****************************************************************************/
|
|
16
|
+
//#region RENDER
|
|
17
|
+
render() {
|
|
18
|
+
return (index.h(index.Host, { key: 'c7b4e34d8237dc93adaa33f12d7cfda36a8ac269', role: "group", "aria-label": this.label }, this.label && index.h("div", { key: '7cafdf840b12c89604efda7895b764331c8054b7', class: "nv-sidebargroup-label" }, this.label), index.h("slot", { key: 'b6567a223f7cc05ce2874a632d38d6665c255659' })));
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
NvSidebargroup.style = NvSidebargroupStyle0;
|
|
22
|
+
|
|
23
|
+
exports.nv_sidebargroup = NvSidebargroup;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=nv-sidebargroup.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"nv-sidebargroup.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,iBAAiB,GAAG,qcAAqc,CAAC;AAChe,6BAAe,iBAAiB;;MCUnB,cAAc;;;;;;;IAWzB,MAAM;QACJ,QACEA,QAACC,UAAI,qDAAC,IAAI,EAAC,OAAO,gBAAa,IAAI,CAAC,KAAK,IACtC,IAAI,CAAC,KAAK,IAAID,kEAAK,KAAK,EAAC,uBAAuB,IAAE,IAAI,CAAC,KAAK,CAAO,EACpEA,oEAAa,CACR,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/nv-sidebargroup/nv-sidebargroup.scss?tag=nv-sidebargroup","src/components/nv-sidebargroup/nv-sidebargroup.tsx"],"sourcesContent":["nv-sidebargroup {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-1);\n\n .nv-sidebargroup-label {\n display: block;\n font-size: var(--font-size-sm);\n line-height: var(--line-height-sm);\n font-weight: var(--font-weight-medium-emphasis);\n color: var(--color-content-lower-text);\n letter-spacing: 0;\n padding: var(--sidebar-primary-title-padding-y) var(--sidebar-primary-title-padding-x);\n }\n\n nv-sidebar[collapsed] & {\n .nv-sidebargroup-label {\n display: none;\n }\n }\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\n\n/**\n * Groups navigation items together with an optional label.\n * @slot default - Navigation items (nv-sidebarnavitem) to display in this group.\n */\n@Component({\n tag: 'nv-sidebargroup',\n styleUrl: 'nv-sidebargroup.scss',\n shadow: false,\n})\nexport class NvSidebargroup {\n /****************************************************************************/\n //#region PROPERTIES\n /**\n * Optional label to display above the navigation group.\n */\n @Prop({ reflect: true })\n readonly label?: string;\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region RENDER\n render() {\n return (\n <Host role=\"group\" aria-label={this.label}>\n {this.label && <div class=\"nv-sidebargroup-label\">{this.label}</div>}\n <slot></slot>\n </Host>\n );\n }\n //#endregion RENDER\n}\n"],"version":3}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-93d3b2f8.js');
|
|
6
|
+
|
|
7
|
+
const nvSidebarheaderCss = "nv-sidebarheader{display:block}";
|
|
8
|
+
const NvSidebarheaderStyle0 = nvSidebarheaderCss;
|
|
9
|
+
|
|
10
|
+
const NvSidebarheader = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
}
|
|
14
|
+
/****************************************************************************/
|
|
15
|
+
//#region RENDER
|
|
16
|
+
render() {
|
|
17
|
+
return (index.h(index.Host, { key: '42d91f8325df19e8208ab045a057657c97bf3ff4' }, index.h("slot", { key: '42b4e5952fd55b95fe2934297929cef3bd1b226c' })));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
NvSidebarheader.style = NvSidebarheaderStyle0;
|
|
21
|
+
|
|
22
|
+
exports.nv_sidebarheader = NvSidebarheader;
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=nv-sidebarheader.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"nv-sidebarheader.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,kBAAkB,GAAG,iCAAiC,CAAC;AAC7D,8BAAe,kBAAkB;;MCWpB,eAAe;;;;;;IAG1B,MAAM;QACJ,QACEA,QAACC,UAAI,uDACHD,oEAAa,CACR,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/nv-sidebarheader/nv-sidebarheader.scss?tag=nv-sidebarheader","src/components/nv-sidebarheader/nv-sidebarheader.tsx"],"sourcesContent":["nv-sidebarheader {\n display: block;\n}","import { Component, Host, h } from '@stencil/core';\n\n/**\n * Optional header container for the sidebar. Use this to display custom elements\n * like search bars, user profiles, or action buttons at the top of the sidebar.\n * @slot default - Custom content to display in the header.\n */\n@Component({\n tag: 'nv-sidebarheader',\n styleUrl: 'nv-sidebarheader.scss',\n shadow: false,\n})\nexport class NvSidebarheader {\n /****************************************************************************/\n //#region RENDER\n render() {\n return (\n <Host>\n <slot></slot>\n </Host>\n );\n }\n //#endregion RENDER\n}\n"],"version":3}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-93d3b2f8.js');
|
|
6
|
+
|
|
7
|
+
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}";
|
|
8
|
+
const NvSidebarlogoStyle0 = nvSidebarlogoCss;
|
|
9
|
+
|
|
10
|
+
const NvSidebarlogo = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
//#endregion PROPERTIES
|
|
14
|
+
/****************************************************************************/
|
|
15
|
+
//#region CONSTANTS
|
|
16
|
+
// Default Nova logo SVG (expanded - icon only, text comes from label prop)
|
|
17
|
+
this.defaultLogo = 'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"%3E%3Cstyle%3E.cls-1{fill:%23f0801a;}%3C/style%3E%3Cpath class="cls-1" d="M25.71,2.13l-5.08,11.39c-.39.88-.38,1.92.13,2.73.74,1.17,2.19,1.59,3.42,1.07l14.26-6-3.14-2.27-10.89,4.66c-.15.06-.3-.09-.23-.24l4.34-9.31-2.81-2.03Z"/%3E%3Cpath class="cls-1" d="M4.29,10l9.22,8.4c.71.65,1.7.97,2.63.73,1.34-.34,2.2-1.58,2.09-2.91l-1.22-15.43-3.14,2.27,1.01,11.8c.01.16-.18.26-.3.15l-7.48-7.04-2.81,2.03Z"/%3E%3Cpath class="cls-1" d="M26.95,39.15l-2.59-12.2c-.2-.94-.82-1.78-1.71-2.13-1.29-.51-2.71,0-3.4,1.14l-8.01,13.24h3.87s6.07-10.18,6.07-10.18c.08-.14.3-.1.33.06l1.97,10.08h3.47Z"/%3E%3Cpath class="cls-1" d="M4.85,32.76l10.82-6.19c.83-.48,1.44-1.32,1.5-2.28.09-1.38-.83-2.58-2.13-2.89L0,17.82l1.2,3.68,11.54,2.67c.16.04.19.25.05.33l-9,4.96,1.07,3.3Z"/%3E%3Cpath class="cls-1" d="M40,20.11l-12.4-1.35c-.95-.1-1.94.22-2.56.96-.89,1.07-.84,2.58.03,3.58l10.08,11.74,1.2-3.69-7.77-8.94c-.11-.12,0-.32.16-.3l10.19,1.28,1.07-3.3Z"/%3E%3C/svg%3E';
|
|
18
|
+
// Default Nova icon (collapsed - same logo but will be displayed smaller)
|
|
19
|
+
this.defaultCollapsedLogo = 'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"%3E%3Cstyle%3E.cls-1{fill:%23f0801a;}%3C/style%3E%3Cpath class="cls-1" d="M25.71,2.13l-5.08,11.39c-.39.88-.38,1.92.13,2.73.74,1.17,2.19,1.59,3.42,1.07l14.26-6-3.14-2.27-10.89,4.66c-.15.06-.3-.09-.23-.24l4.34-9.31-2.81-2.03Z"/%3E%3Cpath class="cls-1" d="M4.29,10l9.22,8.4c.71.65,1.7.97,2.63.73,1.34-.34,2.2-1.58,2.09-2.91l-1.22-15.43-3.14,2.27,1.01,11.8c.01.16-.18.26-.3.15l-7.48-7.04-2.81,2.03Z"/%3E%3Cpath class="cls-1" d="M26.95,39.15l-2.59-12.2c-.2-.94-.82-1.78-1.71-2.13-1.29-.51-2.71,0-3.4,1.14l-8.01,13.24h3.87s6.07-10.18,6.07-10.18c.08-.14.3-.1.33.06l1.97,10.08h3.47Z"/%3E%3Cpath class="cls-1" d="M4.85,32.76l10.82-6.19c.83-.48,1.44-1.32,1.5-2.28.09-1.38-.83-2.58-2.13-2.89L0,17.82l1.2,3.68,11.54,2.67c.16.04.19.25.05.33l-9,4.96,1.07,3.3Z"/%3E%3Cpath class="cls-1" d="M40,20.11l-12.4-1.35c-.95-.1-1.94.22-2.56.96-.89,1.07-.84,2.58.03,3.58l10.08,11.74,1.2-3.69-7.77-8.94c-.11-.12,0-.32.16-.3l10.19,1.28,1.07-3.3Z"/%3E%3C/svg%3E';
|
|
20
|
+
}
|
|
21
|
+
//#endregion CONSTANTS
|
|
22
|
+
/****************************************************************************/
|
|
23
|
+
//#region RENDER
|
|
24
|
+
render() {
|
|
25
|
+
const logoSrc = this.logo || this.defaultLogo;
|
|
26
|
+
const collapsedLogoSrc = this.collapsedLogo || this.defaultCollapsedLogo;
|
|
27
|
+
return (index.h(index.Host, { key: 'ec2aba08293e4def2fe083c311b69cafe005cf5e' }, index.h("div", { key: '3a24d832a0bb5aa44264fe1fc3091878556649bd', class: "nv-sidebarlogo-container" }, index.h("img", { key: 'a9a08e7c5dd51902d9ffbda0d9216a4ffb186756', src: logoSrc, alt: this.label || 'Logo', class: "nv-sidebarlogo-full" }), index.h("img", { key: 'daef311e11c8d5ee6b823a4896be36ea5bd696cc', src: collapsedLogoSrc, alt: this.label || 'Logo', class: "nv-sidebarlogo-collapsed" }), this.label && index.h("span", { key: '9685e4c110e7bb7356f5d49b615105033a32a736', class: "nv-sidebarlogo-title" }, this.label))));
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
NvSidebarlogo.style = NvSidebarlogoStyle0;
|
|
31
|
+
|
|
32
|
+
exports.nv_sidebarlogo = NvSidebarlogo;
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=nv-sidebarlogo.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"nv-sidebarlogo.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,gBAAgB,GAAG,gmCAAgmC,CAAC;AAC1nC,4BAAe,gBAAgB;;MCUlB,aAAa;IAL1B;;;;;;QA+BmB,gBAAW,GAC1B,u/BAAu/B,CAAC;;QAGz+B,yBAAoB,GACnC,u/BAAu/B,CAAC;KA2B3/B;;;;IAvBC,MAAM;QACJ,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC;QAC9C,MAAM,gBAAgB,GAAG,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,oBAAoB,CAAC;QAEzE,QACEA,QAACC,UAAI,uDACHD,kEAAK,KAAK,EAAC,0BAA0B,IACnCA,kEACE,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,IAAI,CAAC,KAAK,IAAI,MAAM,EACzB,KAAK,EAAC,qBAAqB,GAC3B,EACFA,kEACE,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,IAAI,CAAC,KAAK,IAAI,MAAM,EACzB,KAAK,EAAC,0BAA0B,GAChC,EACD,IAAI,CAAC,KAAK,IAAIA,mEAAM,KAAK,EAAC,sBAAsB,IAAE,IAAI,CAAC,KAAK,CAAQ,CACjE,CACD,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/nv-sidebarlogo/styles/nv-sidebarlogo.scss?tag=nv-sidebarlogo","src/components/nv-sidebarlogo/nv-sidebarlogo.tsx"],"sourcesContent":["@use \"./mixins\" as *;\n\nnv-sidebarlogo {\n @include logo-container-styles();\n\n .nv-sidebarlogo-container {\n @include logo-inner-container();\n }\n\n .nv-sidebarlogo-full,\n .nv-sidebarlogo-collapsed {\n @include logo-image();\n }\n\n .nv-sidebarlogo-collapsed {\n @include logo-collapsed-hidden();\n }\n\n .nv-sidebarlogo-title {\n @include logo-title();\n }\n\n nv-sidebar[collapsed] & {\n .nv-sidebarlogo-full {\n @include logo-collapsed-hidden();\n }\n\n .nv-sidebarlogo-collapsed {\n @include logo-collapsed-visible();\n }\n\n .nv-sidebarlogo-title {\n @include logo-title-collapsed();\n }\n\n .nv-sidebarlogo-container {\n @include logo-collapsed-centered();\n }\n }\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\n\n/**\n * Displays the logo and title at the top of the sidebar.\n * Automatically switches between full and collapsed logos based on the sidebar state.\n */\n@Component({\n tag: 'nv-sidebarlogo',\n styleUrl: 'styles/nv-sidebarlogo.scss',\n shadow: false,\n})\nexport class NvSidebarlogo {\n /****************************************************************************/\n //#region PROPERTIES\n /**\n * The label/name to display next to the logo.\n */\n @Prop({ reflect: true })\n readonly label?: string;\n\n /**\n * URL of the full logo image (shown when sidebar is expanded).\n * If not provided, uses a default Nova logo.\n */\n @Prop({ reflect: true })\n readonly logo?: string;\n\n /**\n * URL of the collapsed logo image (shown when sidebar is collapsed).\n * If not provided, uses a default Nova icon.\n */\n @Prop({ reflect: true })\n readonly collapsedLogo?: string;\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region CONSTANTS\n // Default Nova logo SVG (expanded - icon only, text comes from label prop)\n private readonly defaultLogo =\n 'data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\"%3E%3Cstyle%3E.cls-1{fill:%23f0801a;}%3C/style%3E%3Cpath class=\"cls-1\" d=\"M25.71,2.13l-5.08,11.39c-.39.88-.38,1.92.13,2.73.74,1.17,2.19,1.59,3.42,1.07l14.26-6-3.14-2.27-10.89,4.66c-.15.06-.3-.09-.23-.24l4.34-9.31-2.81-2.03Z\"/%3E%3Cpath class=\"cls-1\" d=\"M4.29,10l9.22,8.4c.71.65,1.7.97,2.63.73,1.34-.34,2.2-1.58,2.09-2.91l-1.22-15.43-3.14,2.27,1.01,11.8c.01.16-.18.26-.3.15l-7.48-7.04-2.81,2.03Z\"/%3E%3Cpath class=\"cls-1\" d=\"M26.95,39.15l-2.59-12.2c-.2-.94-.82-1.78-1.71-2.13-1.29-.51-2.71,0-3.4,1.14l-8.01,13.24h3.87s6.07-10.18,6.07-10.18c.08-.14.3-.1.33.06l1.97,10.08h3.47Z\"/%3E%3Cpath class=\"cls-1\" d=\"M4.85,32.76l10.82-6.19c.83-.48,1.44-1.32,1.5-2.28.09-1.38-.83-2.58-2.13-2.89L0,17.82l1.2,3.68,11.54,2.67c.16.04.19.25.05.33l-9,4.96,1.07,3.3Z\"/%3E%3Cpath class=\"cls-1\" d=\"M40,20.11l-12.4-1.35c-.95-.1-1.94.22-2.56.96-.89,1.07-.84,2.58.03,3.58l10.08,11.74,1.2-3.69-7.77-8.94c-.11-.12,0-.32.16-.3l10.19,1.28,1.07-3.3Z\"/%3E%3C/svg%3E';\n\n // Default Nova icon (collapsed - same logo but will be displayed smaller)\n private readonly defaultCollapsedLogo =\n 'data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\"%3E%3Cstyle%3E.cls-1{fill:%23f0801a;}%3C/style%3E%3Cpath class=\"cls-1\" d=\"M25.71,2.13l-5.08,11.39c-.39.88-.38,1.92.13,2.73.74,1.17,2.19,1.59,3.42,1.07l14.26-6-3.14-2.27-10.89,4.66c-.15.06-.3-.09-.23-.24l4.34-9.31-2.81-2.03Z\"/%3E%3Cpath class=\"cls-1\" d=\"M4.29,10l9.22,8.4c.71.65,1.7.97,2.63.73,1.34-.34,2.2-1.58,2.09-2.91l-1.22-15.43-3.14,2.27,1.01,11.8c.01.16-.18.26-.3.15l-7.48-7.04-2.81,2.03Z\"/%3E%3Cpath class=\"cls-1\" d=\"M26.95,39.15l-2.59-12.2c-.2-.94-.82-1.78-1.71-2.13-1.29-.51-2.71,0-3.4,1.14l-8.01,13.24h3.87s6.07-10.18,6.07-10.18c.08-.14.3-.1.33.06l1.97,10.08h3.47Z\"/%3E%3Cpath class=\"cls-1\" d=\"M4.85,32.76l10.82-6.19c.83-.48,1.44-1.32,1.5-2.28.09-1.38-.83-2.58-2.13-2.89L0,17.82l1.2,3.68,11.54,2.67c.16.04.19.25.05.33l-9,4.96,1.07,3.3Z\"/%3E%3Cpath class=\"cls-1\" d=\"M40,20.11l-12.4-1.35c-.95-.1-1.94.22-2.56.96-.89,1.07-.84,2.58.03,3.58l10.08,11.74,1.2-3.69-7.77-8.94c-.11-.12,0-.32.16-.3l10.19,1.28,1.07-3.3Z\"/%3E%3C/svg%3E';\n //#endregion CONSTANTS\n /****************************************************************************/\n //#region RENDER\n render() {\n const logoSrc = this.logo || this.defaultLogo;\n const collapsedLogoSrc = this.collapsedLogo || this.defaultCollapsedLogo;\n\n return (\n <Host>\n <div class=\"nv-sidebarlogo-container\">\n <img\n src={logoSrc}\n alt={this.label || 'Logo'}\n class=\"nv-sidebarlogo-full\"\n />\n <img\n src={collapsedLogoSrc}\n alt={this.label || 'Logo'}\n class=\"nv-sidebarlogo-collapsed\"\n />\n {this.label && <span class=\"nv-sidebarlogo-title\">{this.label}</span>}\n </div>\n </Host>\n );\n }\n //#endregion RENDER\n}\n"],"version":3}
|