@nova-design-system/nova-webcomponents 3.27.0 → 3.29.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-Cfkoz1kc.js → index-eLt3bBQs.js} +13 -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 +3 -3
- package/dist/cjs/nv-accordion.cjs.entry.js +1 -1
- package/dist/cjs/nv-alert.cjs.entry.js +2 -2
- package/dist/cjs/nv-avatar.cjs.entry.js +1 -1
- package/dist/cjs/nv-badge_2.cjs.entry.js +8 -7
- 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 +2 -2
- 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 +2 -2
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +7 -5
- package/dist/cjs/nv-drawer.cjs.entry.js +2 -2
- package/dist/cjs/nv-drawerfooter_2.cjs.entry.js +5 -3
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +5 -5
- package/dist/cjs/nv-fielddate.cjs.entry.js +8 -8
- package/dist/cjs/nv-fielddaterange.cjs.entry.js +8 -8
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +6 -6
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +115 -86
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +6 -6
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +6 -6
- package/dist/cjs/nv-fieldradio.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldselect.cjs.entry.js +7 -7
- package/dist/cjs/nv-fieldslider.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldtext.cjs.entry.js +6 -6
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +5 -5
- package/dist/cjs/nv-fieldtime.cjs.entry.js +15 -12
- 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 +2 -2
- 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 +3 -3
- package/dist/cjs/nv-sidebarnavsubitem.cjs.entry.js +2 -2
- package/dist/cjs/nv-split.cjs.entry.js +2 -2
- package/dist/cjs/nv-stack.cjs.entry.js +2 -2
- package/dist/cjs/nv-table.cjs.entry.js +3 -3
- 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 +3 -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-accordion-item/nv-accordion-item.js +2 -2
- package/dist/collection/components/nv-alert/nv-alert.docs.js +1 -0
- package/dist/collection/components/nv-alert/nv-alert.js +15 -5
- 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-badge/nv-badge.js +32 -11
- 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 +2 -0
- package/dist/collection/components/nv-col/nv-col.js +2 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js +3 -2
- 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 +1 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.docs.js +9 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js +35 -13
- 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 +31 -9
- 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-fielddate/styles/nv-fielddate.css +3 -0
- 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-fielddaterange/styles/nv-fielddaterange.css +3 -0
- 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-fielddropdown/styles/nv-fielddropdown.css +3 -0
- 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.css +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-fieldmultiselect/nv-fieldmultiselect.js +119 -84
- package/dist/collection/components/nv-fieldmultiselect/styles/nv-fieldmultiselect.css +13 -2
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.css +3 -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.css +3 -0
- 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-fieldselect/styles/nv-fieldselect.css +3 -0
- 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.css +3 -0
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js +3 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +4 -4
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.css +3 -0
- 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 +13 -10
- package/dist/collection/components/nv-fieldtime/styles/nv-fieldtime.css +3 -0
- package/dist/collection/components/nv-icon/nv-icon.docs.js +1 -0
- package/dist/collection/components/nv-icon/nv-icon.js +7 -4
- 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 +7 -4
- 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 +6 -3
- package/dist/collection/components/nv-notification/nv-notification.docs.js +1 -0
- package/dist/collection/components/nv-notification/nv-notification.js +15 -5
- 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.js +1 -1
- 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 +2 -0
- package/dist/collection/components/nv-row/nv-row.js +2 -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 +1 -1
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.docs.js +16 -1
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.js +8 -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-table/styles/nv-table.css +19 -2
- 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.js +1 -1
- package/dist/components/nv-paginationtable.js +1 -1
- package/dist/components/nv-popover.js +1 -1
- package/dist/components/nv-row.js +1 -1
- package/dist/components/nv-sidebar.js +1 -1
- package/dist/components/nv-sidebarcontent.js +1 -1
- package/dist/components/nv-sidebardivider.js +1 -1
- package/dist/components/nv-sidebarfooter.js +1 -1
- package/dist/components/nv-sidebargroup.js +1 -1
- package/dist/components/nv-sidebarheader.js +1 -1
- package/dist/components/nv-sidebarlogo.js +1 -1
- package/dist/components/nv-sidebarnavitem.js +1 -1
- package/dist/components/nv-sidebarnavsubitem.js +1 -1
- package/dist/components/nv-split.js +1 -1
- package/dist/components/nv-stack.js +1 -1
- package/dist/components/nv-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-CAGzfU3O.js → p-Bl7rc9YV.js} +1 -1
- package/dist/components/{p-BBy1Mdgv.js → p-Bytxo1iR.js} +1 -1
- package/dist/components/p-C47vpaBp.js +1 -0
- package/dist/components/{p-BMpkyzCW.js → p-C99g_PrG.js} +1 -1
- package/dist/components/{p-BvxuoODv.js → p-CBlrNW6n.js} +1 -1
- package/dist/components/{p-DlOgBZa8.js → p-CD12QIMB.js} +2 -2
- package/dist/components/{p-Ho_7-x5W.js → p-CT782LKx.js} +1 -1
- package/dist/components/{p-D-MnI-R8.js → p-CUjRfVPl.js} +1 -1
- package/dist/components/{p-kMTGXpRx.js → p-CfOVizcp.js} +1 -1
- package/dist/components/{p-S18SgvAW.js → p-CgufQqes.js} +1 -1
- package/dist/components/p-ChVdX6FG.js +1 -0
- package/dist/components/{p-Ba1zVklG.js → p-Cnlbk416.js} +1 -1
- package/dist/components/p-Cr_-lRNo.js +1 -0
- package/dist/components/{p-BwYt1BAb.js → p-Cuq_uNwY.js} +1 -1
- package/dist/components/p-CyL2J6O4.js +74 -0
- package/dist/components/p-D1psKXwD.js +1 -0
- package/dist/components/{p-T-bBxAoT.js → p-D3JDACHw.js} +1 -1
- package/dist/components/p-DKgmDzJ1.js +1 -0
- package/dist/components/p-DdcXhR3I.js +1 -0
- package/dist/components/p-EV8CtE4q.js +1 -0
- package/dist/components/{p-DrgqO3gF.js → p-RYxAzR3m.js} +1 -1
- package/dist/components/{p-Db4JZxyy.js → p-_zOMJBOq.js} +1 -1
- package/dist/components/{p-6nAIGZFL.js → p-flcatmxD.js} +1 -1
- package/dist/components/p-p1ofW2Cs.js +1 -0
- package/dist/esm/{index-BCjiE1MF.js → index-DU3Vhh_k.js} +13 -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 +3 -3
- package/dist/esm/nv-accordion.entry.js +1 -1
- package/dist/esm/nv-alert.entry.js +2 -2
- package/dist/esm/nv-avatar.entry.js +1 -1
- package/dist/esm/nv-badge_2.entry.js +8 -7
- 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 +2 -2
- 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 +2 -2
- package/dist/esm/nv-dialogfooter_2.entry.js +7 -5
- package/dist/esm/nv-drawer.entry.js +2 -2
- package/dist/esm/nv-drawerfooter_2.entry.js +5 -3
- package/dist/esm/nv-fieldcheckbox.entry.js +5 -5
- package/dist/esm/nv-fielddate.entry.js +8 -8
- package/dist/esm/nv-fielddaterange.entry.js +8 -8
- package/dist/esm/nv-fielddropdown.entry.js +6 -6
- package/dist/esm/nv-fielddropdownitem.entry.js +2 -2
- package/dist/esm/nv-fieldmultiselect.entry.js +115 -86
- package/dist/esm/nv-fieldnumber.entry.js +6 -6
- package/dist/esm/nv-fieldpassword.entry.js +6 -6
- package/dist/esm/nv-fieldradio.entry.js +4 -4
- package/dist/esm/nv-fieldselect.entry.js +7 -7
- package/dist/esm/nv-fieldslider.entry.js +4 -4
- package/dist/esm/nv-fieldtext.entry.js +6 -6
- package/dist/esm/nv-fieldtextarea.entry.js +5 -5
- package/dist/esm/nv-fieldtime.entry.js +15 -12
- 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 +2 -2
- 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 +3 -3
- package/dist/esm/nv-sidebarnavsubitem.entry.js +2 -2
- package/dist/esm/nv-split.entry.js +2 -2
- package/dist/esm/nv-stack.entry.js +2 -2
- package/dist/esm/nv-table.entry.js +3 -3
- 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 +11 -2
- 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-04e40a1e.entry.js +1 -0
- package/dist/native/p-0770997b.entry.js +1 -0
- package/dist/native/p-07f3200b.entry.js +1 -0
- package/dist/native/{p-a6b3256b.entry.js → p-0a17050f.entry.js} +1 -1
- package/dist/native/{p-7d49e88d.entry.js → p-0d03b6ed.entry.js} +1 -1
- package/dist/native/p-0d3ab890.entry.js +1 -0
- package/dist/native/{p-b3964a1c.entry.js → p-0f59cb66.entry.js} +1 -1
- package/dist/native/{p-87758615.entry.js → p-0f9a284e.entry.js} +1 -1
- package/dist/native/{p-90b8b889.entry.js → p-12269ed5.entry.js} +1 -1
- package/dist/native/{p-fd5e27ae.entry.js → p-1450d746.entry.js} +1 -1
- package/dist/native/{p-f9612edf.entry.js → p-16600d93.entry.js} +1 -1
- package/dist/native/{p-1e0ca4df.entry.js → p-1bc76216.entry.js} +1 -1
- package/dist/native/p-1ea2a804.entry.js +1 -0
- package/dist/native/{p-24ce0c8d.entry.js → p-26c0c34b.entry.js} +1 -1
- package/dist/native/{p-9709c7d5.entry.js → p-27ecae3c.entry.js} +1 -1
- package/dist/native/{p-5a7e46ad.entry.js → p-2b1efb98.entry.js} +1 -1
- package/dist/native/{p-927b655d.entry.js → p-2d37df11.entry.js} +1 -1
- package/dist/native/{p-eb8ba7a2.entry.js → p-2d5189eb.entry.js} +1 -1
- package/dist/native/{p-157c5ac8.entry.js → p-2e40d5d9.entry.js} +1 -1
- package/dist/native/{p-0fe84123.entry.js → p-2e932ca4.entry.js} +1 -1
- package/dist/native/{p-5c003e50.entry.js → p-336d63c4.entry.js} +1 -1
- package/dist/native/p-3afa34d1.entry.js +1 -0
- package/dist/native/{p-24f69387.entry.js → p-3ddc967e.entry.js} +1 -1
- package/dist/native/p-48c1bab4.entry.js +1 -0
- package/dist/native/{p-6742f88f.entry.js → p-49c6d122.entry.js} +1 -1
- package/dist/native/{p-8a0dc37b.entry.js → p-4badca4e.entry.js} +1 -1
- package/dist/native/{p-bb43a3b4.entry.js → p-4bb9b387.entry.js} +1 -1
- package/dist/native/{p-39366f18.entry.js → p-568fbdac.entry.js} +1 -1
- package/dist/native/{p-8f76e030.entry.js → p-59ecaf60.entry.js} +1 -1
- package/dist/native/p-5cefca3c.entry.js +1 -0
- package/dist/native/{p-148c1d3e.entry.js → p-5f6e45ca.entry.js} +1 -1
- package/dist/native/{p-fb34fc7d.entry.js → p-6f1213fb.entry.js} +1 -1
- package/dist/native/{p-5ce3d30b.entry.js → p-6f91712c.entry.js} +1 -1
- package/dist/native/{p-1aea6fe0.entry.js → p-706eeea4.entry.js} +1 -1
- package/dist/native/{p-d6e2e120.entry.js → p-7126f67e.entry.js} +1 -1
- package/dist/native/{p-1f8cc03a.entry.js → p-748661f0.entry.js} +1 -1
- package/dist/native/{p-6f3c3e2a.entry.js → p-7b545176.entry.js} +1 -1
- package/dist/native/{p-ecce3e66.entry.js → p-7bb2536f.entry.js} +1 -1
- package/dist/native/{p-a16f8a14.entry.js → p-7fd6f0b0.entry.js} +1 -1
- package/dist/native/p-803759ef.entry.js +1 -0
- package/dist/native/{p-d12a2841.entry.js → p-8e05077a.entry.js} +1 -1
- package/dist/native/{p-25ef7329.entry.js → p-92539825.entry.js} +1 -1
- package/dist/native/p-943a4dfd.entry.js +1 -0
- package/dist/native/{p-7ec28d5d.entry.js → p-96078a63.entry.js} +1 -1
- package/dist/native/{p-56593bf0.entry.js → p-9a05395d.entry.js} +1 -1
- package/dist/native/{p-f9e4daf7.entry.js → p-9b8478a7.entry.js} +1 -1
- package/dist/native/p-CyL2J6O4.js +74 -0
- package/dist/native/{p-BCjiE1MF.js → p-DU3Vhh_k.js} +1 -1
- package/dist/native/{p-67e0680e.entry.js → p-a5e39524.entry.js} +1 -1
- package/dist/native/{p-31ba86b3.entry.js → p-b7436a14.entry.js} +1 -1
- package/dist/native/{p-9fda1976.entry.js → p-bff549dd.entry.js} +1 -1
- package/dist/native/p-c20e0b5f.entry.js +1 -0
- package/dist/native/p-ca4ab8a5.entry.js +1 -0
- package/dist/native/{p-591f3dcc.entry.js → p-d468c445.entry.js} +1 -1
- package/dist/native/p-d5060f92.entry.js +1 -0
- package/dist/native/{p-539c04ad.entry.js → p-d5e931c9.entry.js} +1 -1
- package/dist/native/p-dc647a64.entry.js +1 -0
- package/dist/native/p-df5c6b0c.entry.js +1 -0
- package/dist/native/p-e8569a99.entry.js +1 -0
- package/dist/native/p-eb737344.entry.js +1 -0
- package/dist/native/{p-ebff7ddb.entry.js → p-f078f10a.entry.js} +1 -1
- package/dist/native/p-f3756dfd.entry.js +1 -0
- package/dist/native/p-f3ded7e8.entry.js +1 -0
- package/dist/native/{p-3a35cf46.entry.js → p-f7fdca43.entry.js} +1 -1
- package/dist/types/components/nv-alert/nv-alert.d.ts +3 -1
- package/dist/types/components/nv-badge/nv-badge.d.ts +6 -3
- package/dist/types/components/nv-col/nv-col.d.ts +1 -0
- 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-dialogfooter/nv-dialogfooter.d.ts +5 -2
- package/dist/types/components/nv-drawerfooter/nv-drawerfooter.d.ts +5 -2
- package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.d.ts +16 -11
- package/dist/types/components/nv-icon/nv-icon.d.ts +2 -1
- package/dist/types/components/nv-icon/nv-icons.d.ts +1 -1
- package/dist/types/components/nv-iconbutton/nv-iconbutton.d.ts +2 -1
- package/dist/types/components/nv-menuitem/nv-menuitem.d.ts +1 -0
- package/dist/types/components/nv-notification/nv-notification.d.ts +3 -1
- package/dist/types/components/nv-notificationcontainer/nv-notificationcontainer.d.ts +0 -6
- package/dist/types/components/nv-row/nv-row.d.ts +1 -0
- package/dist/types/components/nv-sidebarnavitem/nv-sidebarnavitem.d.ts +2 -1
- 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 +349 -44
- 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 +18259 -2581
- package/hydrate/index.js +11008 -219
- package/hydrate/index.mjs +11008 -219
- package/package.json +14 -1
- package/dist/components/p-CV12ukSl.js +0 -1
- package/dist/components/p-CZkFkVd8.js +0 -1
- package/dist/components/p-CcmfuwSa.js +0 -1
- package/dist/components/p-CqJqzGJS.js +0 -1
- package/dist/components/p-D0bGRzSN.js +0 -1
- package/dist/components/p-DC_2597n.js +0 -1
- package/dist/components/p-IzPWk8zx.js +0 -1
- package/dist/components/p-uAXqRBhx.js +0 -1
- package/dist/native/p-03cc1f2c.entry.js +0 -1
- package/dist/native/p-18bdc07a.entry.js +0 -1
- package/dist/native/p-1c97c353.entry.js +0 -1
- package/dist/native/p-23f0ca96.entry.js +0 -1
- package/dist/native/p-34e19b6e.entry.js +0 -1
- package/dist/native/p-46267895.entry.js +0 -1
- package/dist/native/p-597cac0f.entry.js +0 -1
- package/dist/native/p-5f42a7f1.entry.js +0 -1
- package/dist/native/p-7aac0b1a.entry.js +0 -1
- package/dist/native/p-855f7be1.entry.js +0 -1
- package/dist/native/p-99726dd4.entry.js +0 -1
- package/dist/native/p-c0b05d6f.entry.js +0 -1
- package/dist/native/p-c214e4af.entry.js +0 -1
- package/dist/native/p-c29dc907.entry.js +0 -1
- package/dist/native/p-d46bd21a.entry.js +0 -1
- package/dist/native/p-ddedc9c1.entry.js +0 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-eLt3bBQs.js');
|
|
4
|
+
var novaDatetime = require('./nova-datetime-DOtVgYBB.js');
|
|
5
|
+
|
|
6
|
+
const nvTimetestCss = () => `nv-timetest{display:flex}nv-timetest label{display:flex;flex-direction:column;margin-right:10px;font-weight:bold}nv-timetest input{font-weight:normal;padding:var(--spacing-2);border-radius:var(--spacing-1);border:1px solid #ccc}`;
|
|
7
|
+
|
|
8
|
+
const NvTimetest = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
this.valueChanged = index.createEvent(this, "valueChanged", 3);
|
|
12
|
+
this.lastChanged = index.createEvent(this, "lastChanged", 3);
|
|
13
|
+
this.historyChanged = index.createEvent(this, "historyChanged", 3);
|
|
14
|
+
this.valueDateChanged = index.createEvent(this, "valueDateChanged", 3);
|
|
15
|
+
//#endregion PROPERTIES
|
|
16
|
+
/****************************************************************************/
|
|
17
|
+
//#region METHODS
|
|
18
|
+
this.handleStartChange = (event) => {
|
|
19
|
+
const input = event.target;
|
|
20
|
+
const parsed = novaDatetime.parseTimeOnly(input.value);
|
|
21
|
+
if (!parsed)
|
|
22
|
+
return;
|
|
23
|
+
const newStart = novaDatetime.formatTimeOnly(parsed);
|
|
24
|
+
this.value = { start: newStart, end: this.value?.end };
|
|
25
|
+
this.lastChange = newStart;
|
|
26
|
+
this.history = [...(this.history ?? []), newStart];
|
|
27
|
+
this.valueChanged.emit(this.value);
|
|
28
|
+
this.lastChanged.emit({ time: this.lastChange });
|
|
29
|
+
this.historyChanged.emit({ times: this.history });
|
|
30
|
+
const todayDate = novaDatetime.LocalDate.now().toString();
|
|
31
|
+
this.valueDateChanged.emit({
|
|
32
|
+
start: this.value?.start
|
|
33
|
+
? new Date(todayDate + 'T' + this.value.start)
|
|
34
|
+
: undefined,
|
|
35
|
+
end: this.value?.end
|
|
36
|
+
? new Date(todayDate + 'T' + this.value.end)
|
|
37
|
+
: undefined,
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
this.handleEndChange = (event) => {
|
|
41
|
+
const input = event.target;
|
|
42
|
+
const parsed = novaDatetime.parseTimeOnly(input.value);
|
|
43
|
+
if (!parsed)
|
|
44
|
+
return;
|
|
45
|
+
const newEnd = novaDatetime.formatTimeOnly(parsed);
|
|
46
|
+
this.value = { start: this.value?.start, end: newEnd };
|
|
47
|
+
this.lastChange = newEnd;
|
|
48
|
+
this.history = [...(this.history ?? []), newEnd];
|
|
49
|
+
this.valueChanged.emit(this.value);
|
|
50
|
+
this.lastChanged.emit({ time: this.lastChange });
|
|
51
|
+
this.historyChanged.emit({ times: this.history });
|
|
52
|
+
const todayDate = novaDatetime.LocalDate.now().toString();
|
|
53
|
+
this.valueDateChanged.emit({
|
|
54
|
+
start: this.value?.start
|
|
55
|
+
? new Date(todayDate + 'T' + this.value.start)
|
|
56
|
+
: undefined,
|
|
57
|
+
end: this.value?.end
|
|
58
|
+
? new Date(todayDate + 'T' + this.value.end)
|
|
59
|
+
: undefined,
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
//#endregion EVENTS
|
|
64
|
+
/****************************************************************************/
|
|
65
|
+
//#region RENDER
|
|
66
|
+
render() {
|
|
67
|
+
return (index.h(index.Host, { key: '85d3773d49a180e5bc9b5bc0962cc3b709a474b0' }, index.h("label", { key: 'c0d5c262578e6aa1555ded8c542e2eef7e42d491' }, "Start:", index.h("input", { key: '31fe9447be14efd87aab1161dbc01593a30328dc', type: "time", step: "1", value: this.value?.start ?? '', onInput: this.handleStartChange })), index.h("label", { key: '0959b432f53169c425765b94c098ca5ecc8d6ede' }, "End:", index.h("input", { key: 'ccc50a80dfea2ab7eb627d11840dd5626ca25f88', type: "time", step: "1", value: this.value?.end ?? '', onInput: this.handleEndChange })), index.h("slot", { key: 'd4c6a017d41102a245e1f8472d676bc866382c00' })));
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
NvTimetest.style = nvTimetestCss();
|
|
71
|
+
|
|
72
|
+
exports.nv_timetest = NvTimetest;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-eLt3bBQs.js');
|
|
4
4
|
var clsx = require('./clsx-BtxeOLZW.js');
|
|
5
5
|
var v4 = require('./v4-C1vaJ4yP.js');
|
|
6
6
|
|
|
@@ -63,8 +63,8 @@ const NvToggle = class {
|
|
|
63
63
|
/****************************************************************************/
|
|
64
64
|
//#region RENDER
|
|
65
65
|
render() {
|
|
66
|
-
return (index.h(index.Host, { key: '
|
|
67
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '
|
|
66
|
+
return (index.h(index.Host, { key: '39ad1374bbf8cd5393a99dc4c18fa28091dc5e90', class: clsx.clsx(this.labelPlacement === 'before' && 'label-placement-before') }, index.h("div", { key: '3a8be2405404975398f1a0dae05c0855b913245f', class: "input-container" }, index.h("input", { key: 'b589b9faa5801f99e698d0e664e0a35779a1271f', type: "checkbox", id: this.inputId, name: this.name, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly })), index.h("div", { key: 'a3308782b02b1c0eca3d6a1b87509674b9bc5c13', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '854b2ffe7bf61423512154ffe8b3b0351a2950a4', htmlFor: this.inputId, class: clsx.clsx(this.hideLabel && 'visually-hidden') }, index.h("slot", { key: '933bf88b7841f3b2ed24c3bb86fb24159eaac900', name: "label" }, this.label))), (this.description ||
|
|
67
|
+
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '5a04358d1be3b935239bb23e1466cc22ed2f3b48', class: "description" }, index.h("slot", { key: 'f5c1513eff6ee42bc171b0088baec634f8458197', name: "description" }, this.description))))));
|
|
68
68
|
}
|
|
69
69
|
static get formAssociated() { return true; }
|
|
70
70
|
get el() { return index.getElement(this); }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-eLt3bBQs.js');
|
|
4
4
|
|
|
5
5
|
const nvTogglebuttonCss = () => `nv-togglebutton{display:inline-flex;justify-content:center;align-items:center}nv-togglebutton:focus-visible,nv-togglebutton:has(:focus-visible){z-index:1}nv-togglebutton[size=xs]{padding:var(--button-xs-padding-y) var(--button-xs-padding-x);gap:var(--button-xs-gap);border-radius:var(--button-xs-border-radius);line-height:var(--button-xs-line-height);height:var(--button-xs-height);font-size:var(--button-xs-font-size)}nv-togglebutton[size=xs] nv-icon>svg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-togglebutton[size=xs]{padding-top:calc(var(--togglegroup-xs-button-padding-y) - var(--togglegroup-stroke));padding-bottom:calc(var(--togglegroup-xs-button-padding-y) - var(--togglegroup-stroke));border-radius:var(--togglegroup-xs-button-radius);height:calc((var(--togglegroup-xs-height)) - var(--togglegroup-inner-space));border-width:0}nv-togglebutton[size=sm]{padding:var(--button-sm-padding-y) var(--button-sm-padding-x);gap:var(--button-sm-gap);border-radius:var(--button-sm-border-radius);line-height:var(--button-sm-line-height);height:var(--button-sm-height);font-size:var(--button-sm-font-size)}nv-togglebutton[size=sm] nv-icon>svg{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-togglebutton[size=sm]{padding-top:calc(var(--togglegroup-sm-button-padding-y) - var(--togglegroup-stroke));padding-bottom:calc(var(--togglegroup-sm-button-padding-y) - var(--togglegroup-stroke));border-radius:calc(var(--togglegroup-sm-button-radius) + 1px);height:calc((var(--togglegroup-sm-height)) - var(--togglegroup-inner-space));border-width:0}nv-togglebutton[size=md]{padding:var(--button-md-padding-y) var(--button-md-padding-x);gap:var(--button-md-gap);border-radius:var(--button-md-border-radius);line-height:var(--button-md-line-height);height:var(--button-md-height);font-size:var(--button-md-font-size)}nv-togglebutton[size=md] nv-icon>svg{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-togglebutton[size=md]{padding-top:calc(var(--togglegroup-md-button-padding-y) - var(--togglegroup-stroke));padding-bottom:calc(var(--togglegroup-md-button-padding-y) - var(--togglegroup-stroke));border-radius:calc(var(--togglegroup-md-button-radius) + 1px);height:calc((var(--togglegroup-md-height)) - var(--togglegroup-inner-space));border-width:0}nv-togglebutton[size=lg]{padding:var(--button-lg-padding-y) var(--button-lg-padding-x);gap:var(--button-lg-gap);border-radius:var(--button-lg-border-radius);line-height:var(--button-lg-line-height);height:var(--button-lg-height);font-size:var(--button-lg-font-size)}nv-togglebutton[size=lg] nv-icon>svg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-togglebutton[size=lg]{padding-top:calc(var(--togglegroup-lg-button-padding-y) - var(--togglegroup-stroke));padding-bottom:calc(var(--togglegroup-lg-button-padding-y) - var(--togglegroup-stroke));border-radius:calc(var(--togglegroup-lg-button-radius) + 1px);height:calc((var(--togglegroup-lg-height)) - var(--togglegroup-inner-space));border-width:0}nv-togglebutton[emphasis=high]{background:var(--components-button-low-background);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text)}nv-togglebutton[emphasis=high]:hover{background:var(--components-button-low-background-hover);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text-hover)}nv-togglebutton[emphasis=high]:active{background:var(--components-button-low-background-active);border:1px solid var(--components-button-low-border-active);color:var(--components-button-low-text-active)}nv-togglebutton[emphasis=high]:focus,nv-togglebutton[emphasis=high]:focus-within{outline:none}nv-togglebutton[emphasis=high]:focus-visible,nv-togglebutton[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-togglebutton[emphasis=high]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-togglebutton[emphasis=high][active]:not([active=false]){background:var(--components-button-low-background-active);border:1px solid var(--components-button-low-border-active);color:var(--components-button-low-text-active)}nv-togglebutton[emphasis=low]{background:var(--components-button-lower-background);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text)}nv-togglebutton[emphasis=low]:hover{background:var(--components-button-lower-background-hover);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text-hover)}nv-togglebutton[emphasis=low]:active{background:var(--components-button-lower-background-active);border:1px solid var(--components-button-lower-border-active);color:var(--components-button-lower-text-active)}nv-togglebutton[emphasis=low]:focus,nv-togglebutton[emphasis=low]:focus-within{outline:none}nv-togglebutton[emphasis=low]:focus-visible,nv-togglebutton[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-togglebutton[emphasis=low]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-togglebutton[emphasis=low][active]:not([active=false]),nv-togglebutton[emphasis=low]:active{background:var(--components-button-lower-background-hover);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text-hover)}`;
|
|
6
6
|
|
|
@@ -54,7 +54,7 @@ const NvTogglebutton = class {
|
|
|
54
54
|
/****************************************************************************/
|
|
55
55
|
//#region RENDER
|
|
56
56
|
render() {
|
|
57
|
-
return (index.h(index.Host, { key: '
|
|
57
|
+
return (index.h(index.Host, { key: '8e700d38ba155b977d4efa0d9e01b41e73fc4413', role: "button", tabindex: "0", "aria-pressed": String(this.active), onClick: this.handleClick }, index.h("slot", { key: '92427015839f98b0d9238b8df6af8e08ee511153' })));
|
|
58
58
|
}
|
|
59
59
|
get el() { return index.getElement(this); }
|
|
60
60
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-eLt3bBQs.js');
|
|
4
4
|
|
|
5
5
|
const nvTogglebuttongroupCss = () => `nv-togglebuttongroup{display:flex;gap:var(--togglegroup-lg-gap);border-radius:var(--togglegroup-lg-radius);width:fit-content;padding:var(--togglegroup-lg-gap)}nv-togglebuttongroup[emphasis=high]{border:1px solid var(--components-togglegroup-high-border)}nv-togglebuttongroup[emphasis=low]{border:1px solid var(--components-togglegroup-low-border)}nv-togglebuttongroup[size=xs]{padding:calc(var(--togglegroup-xs-padding) - 1px);gap:var(--togglegroup-xs-gap);border-radius:var(--togglegroup-xs-radius);height:var(--togglegroup-xs-height)}nv-togglebuttongroup[size=sm]{padding:calc(var(--togglegroup-sm-padding) - 1px);gap:var(--togglegroup-sm-gap);border-radius:var(--togglegroup-sm-radius);height:var(--togglegroup-sm-height)}nv-togglebuttongroup[size=md]{padding:calc(var(--togglegroup-md-padding) - 1px);gap:var(--togglegroup-md-gap);border-radius:var(--togglegroup-md-radius);height:var(--togglegroup-md-height)}nv-togglebuttongroup[size=lg]{padding:calc(var(--togglegroup-lg-padding) - 1px);gap:var(--togglegroup-lg-gap);border-radius:var(--togglegroup-lg-radius);height:var(--togglegroup-lg-height)}`;
|
|
6
6
|
|
|
@@ -153,7 +153,7 @@ const NvTogglebuttongroup = class {
|
|
|
153
153
|
/****************************************************************************/
|
|
154
154
|
//#region RENDER
|
|
155
155
|
render() {
|
|
156
|
-
return (index.h(index.Host, { key: '
|
|
156
|
+
return (index.h(index.Host, { key: '2026cb95db8b57f2a1cd4ea53608f336843b63fe' }, index.h("slot", { key: '5c06ab59d6c99e789c3a1c3a8a4842a0772ca3a2' })));
|
|
157
157
|
}
|
|
158
158
|
get el() { return index.getElement(this); }
|
|
159
159
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-eLt3bBQs.js');
|
|
4
4
|
|
|
5
5
|
const nvTooltipCss = () => `nv-tooltip{display:inline-block;vertical-align:top;position:relative;user-select:none}nv-tooltip:has([fluid]:not([fluid=false])){display:block}nv-tooltip nv-popover{display:block;height:0;min-height:0;overflow:visible}nv-tooltip nv-popover>[data-scope=popover]{background:var(--components-tooltip-background);color:var(--components-tooltip-text);font-weight:var(--font-weight-medium-emphasis);padding:var(--tooltip-padding-y) var(--tooltip-padding-x);font-size:var(--tooltip-font-size);border-radius:var(--tooltip-radius);border:none;box-shadow:0px var(--shadow-y-axis-lg-1) var(--shadow-blur-lg-1) var(--shadow-spread-lg-1) var(--shadow-color-opacity-1), 0px var(--shadow-y-axis-lg-2) var(--shadow-blur-lg-2) var(--shadow-spread-lg-2) var(--shadow-color-opacity-2)}nv-tooltip nv-popover>[data-scope=popover] [data-scope=arrow]{background:var(--components-tooltip-background);box-shadow:none;border:none}`;
|
|
6
6
|
|
|
@@ -36,15 +36,20 @@ const NvTooltip = class {
|
|
|
36
36
|
/****************************************************************************/
|
|
37
37
|
//#region LIFECYCLE
|
|
38
38
|
componentDidRender() {
|
|
39
|
-
if (
|
|
39
|
+
if (!this.popoverElement)
|
|
40
40
|
return;
|
|
41
|
-
|
|
41
|
+
const trigger = this.triggerElement ??
|
|
42
|
+
this.defaultSlot?.nextElementSibling ??
|
|
43
|
+
this.el.querySelector(':scope > :not(nv-popover):not(slot):not([slot])');
|
|
44
|
+
if (trigger && this.popoverElement.triggerElement !== trigger) {
|
|
45
|
+
this.popoverElement.triggerElement = trigger;
|
|
46
|
+
}
|
|
42
47
|
}
|
|
43
48
|
//#endregion LIFECYCLE
|
|
44
49
|
/****************************************************************************/
|
|
45
50
|
//#region RENDER
|
|
46
51
|
render() {
|
|
47
|
-
return (index.h(index.Host, { key: '
|
|
52
|
+
return (index.h(index.Host, { key: '8285fbb412cb45cc7baf2936f0405c0438395c8d' }, index.h("nv-popover", { key: '29d70e9baa826de35d2cdca88f48610d70ec55e4', ref: el => (this.popoverElement = el), triggerMode: "hover", hasArrow: true, placement: this.placement, strategy: this.strategy, groupName: 'tooltip', enterDelay: this.enterDelay, onOpenChanged: e => this.openChanged.emit(e.detail) }, index.h("p", { key: 'a9c907fa96f9c4108a8d84cec53981218c060811', slot: "content" }, this.message), index.h("slot", { key: 'af1b7ac8069071fe2d41e925f1c0090f8b6aaab5', name: "content" })), index.h("slot", { key: 'e5d3c6d16fb7e4a682b66e0016d9e4e30e5647e0', ref: el => (this.defaultSlot = el) })));
|
|
48
53
|
}
|
|
49
54
|
get el() { return index.getElement(this); }
|
|
50
55
|
};
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
"components/nv-col/nv-col.js",
|
|
14
14
|
"components/nv-datagrid/nv-datagrid.js",
|
|
15
15
|
"components/nv-datagridcolumn/nv-datagridcolumn.js",
|
|
16
|
+
"components/nv-datetest/nv-datetest.js",
|
|
17
|
+
"components/nv-datetimetest/nv-datetimetest.js",
|
|
16
18
|
"components/nv-dialog/nv-dialog.js",
|
|
17
19
|
"components/nv-dialogfooter/nv-dialogfooter.js",
|
|
18
20
|
"components/nv-dialogheader/nv-dialogheader.js",
|
|
@@ -59,6 +61,7 @@
|
|
|
59
61
|
"components/nv-stack/nv-stack.js",
|
|
60
62
|
"components/nv-table/nv-table.js",
|
|
61
63
|
"components/nv-tableheader/nv-tableheader.js",
|
|
64
|
+
"components/nv-timetest/nv-timetest.js",
|
|
62
65
|
"components/nv-toggle/nv-toggle.js",
|
|
63
66
|
"components/nv-togglebutton/nv-togglebutton.js",
|
|
64
67
|
"components/nv-togglebuttongroup/nv-togglebuttongroup.js",
|
|
@@ -2,6 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { nameof } from "../../utils/class.utils";
|
|
3
3
|
const NvAccordionDocs = {
|
|
4
4
|
component: 'nv-accordion',
|
|
5
|
+
parentGroup: 'Accordion',
|
|
5
6
|
subcomponents: ['nv-accordion-item', 'nv-icon', 'nv-button', 'nv-badge'],
|
|
6
7
|
stories: [
|
|
7
8
|
// Default
|
|
@@ -1,5 +1,73 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { nameof } from "../../utils/class.utils";
|
|
1
3
|
const NvAccordionItemDocs = {
|
|
2
4
|
component: 'nv-accordion-item',
|
|
3
|
-
|
|
5
|
+
parentGroup: 'Accordion',
|
|
6
|
+
subcomponents: ['nv-accordion', 'nv-icon', 'nv-badge'],
|
|
7
|
+
stories: [
|
|
8
|
+
// Default
|
|
9
|
+
{
|
|
10
|
+
name: 'Default',
|
|
11
|
+
description: 'Basic accordion item with title and content',
|
|
12
|
+
args: {
|
|
13
|
+
itemTitle: 'Accordion Item Title',
|
|
14
|
+
},
|
|
15
|
+
template: (h("nv-accordion", null, h("nv-accordion-item", { "data-storybook-args": true }, h("div", { slot: "content" }, "This is the content of the accordion item.")))),
|
|
16
|
+
},
|
|
17
|
+
// itemTitle
|
|
18
|
+
{
|
|
19
|
+
name: nameof(x => x.itemTitle),
|
|
20
|
+
description: 'Accordion item with custom title',
|
|
21
|
+
args: {
|
|
22
|
+
itemTitle: 'Custom Title',
|
|
23
|
+
},
|
|
24
|
+
template: (h("nv-accordion", null, h("nv-accordion-item", { "data-storybook-args": true }, h("div", { slot: "content" }, "Content with a custom title.")))),
|
|
25
|
+
},
|
|
26
|
+
// subtitle
|
|
27
|
+
{
|
|
28
|
+
name: nameof(x => x.subtitle),
|
|
29
|
+
description: 'Accordion item with title and subtitle',
|
|
30
|
+
args: {
|
|
31
|
+
itemTitle: 'Main Title',
|
|
32
|
+
subtitle: 'Additional subtitle text',
|
|
33
|
+
},
|
|
34
|
+
template: (h("nv-accordion", null, h("nv-accordion-item", { "data-storybook-args": true }, h("div", { slot: "content" }, "Content with title and subtitle.")))),
|
|
35
|
+
},
|
|
36
|
+
// disabled
|
|
37
|
+
{
|
|
38
|
+
name: nameof(x => x.disabled),
|
|
39
|
+
description: 'Disabled accordion item that cannot be opened',
|
|
40
|
+
args: {
|
|
41
|
+
itemTitle: 'Disabled Item',
|
|
42
|
+
disabled: true,
|
|
43
|
+
},
|
|
44
|
+
template: (h("nv-accordion", null, h("nv-accordion-item", { "data-storybook-args": true }, h("div", { slot: "content" }, "This content is not accessible.")))),
|
|
45
|
+
},
|
|
46
|
+
// open
|
|
47
|
+
{
|
|
48
|
+
name: nameof(x => x.open),
|
|
49
|
+
description: 'Accordion item that is open by default',
|
|
50
|
+
args: {
|
|
51
|
+
itemTitle: 'Pre-opened Item',
|
|
52
|
+
open: true,
|
|
53
|
+
},
|
|
54
|
+
template: (h("nv-accordion", null, h("nv-accordion-item", { "data-storybook-args": true }, h("div", { slot: "content" }, "This item starts in an open state.")))),
|
|
55
|
+
},
|
|
56
|
+
// CustomHeader
|
|
57
|
+
{
|
|
58
|
+
name: 'CustomHeader',
|
|
59
|
+
description: 'Accordion item with custom header using slots',
|
|
60
|
+
args: {
|
|
61
|
+
open: true,
|
|
62
|
+
},
|
|
63
|
+
template: (h("nv-accordion", null, h("nv-accordion-item", { "data-storybook-args": true }, h("div", { slot: "header" }, h("div", { "data-class": "flex items-center justify-between w-full" }, h("div", { "data-class": "flex flex-col border-r border-[#E3E3E3] pr-4 mr-4" }, h("span", { "data-class": "nv-accordion-item__title" }, "EC-308"), h("span", { "data-class": "nv-accordion-item__subtitle" }, "Connection point")), h("nv-badge", { color: "success", label: "Running" }, h("nv-icon", { slot: "leading-icon", name: "check", size: "sm" })))), h("div", { slot: "content" }, h("p", null, "Custom header with badge and icon"))))),
|
|
64
|
+
},
|
|
65
|
+
// MultipleItems
|
|
66
|
+
{
|
|
67
|
+
name: 'MultipleItems',
|
|
68
|
+
description: 'Multiple accordion items together',
|
|
69
|
+
template: (h("nv-accordion", null, h("nv-accordion-item", { "item-title": "First Item", open: true }, h("div", { slot: "content" }, "Content of the first item.")), h("nv-accordion-item", { "item-title": "Second Item" }, h("div", { slot: "content" }, "Content of the second item.")), h("nv-accordion-item", { "item-title": "Third Item", disabled: true }, h("div", { slot: "content" }, "This item is disabled.")))),
|
|
70
|
+
},
|
|
71
|
+
],
|
|
4
72
|
};
|
|
5
73
|
export default NvAccordionItemDocs;
|
|
@@ -191,12 +191,12 @@ export class NvAccordionItem {
|
|
|
191
191
|
/****************************************************************************/
|
|
192
192
|
//#region RENDER
|
|
193
193
|
render() {
|
|
194
|
-
return (h(Host, { key: '
|
|
194
|
+
return (h(Host, { key: '2db3307c8665cf2d4b05c963cc8ca3147347876f', class: {
|
|
195
195
|
'nv-accordion-item': true,
|
|
196
196
|
'is-open': this.currentOpenState,
|
|
197
197
|
'is-disabled': this.disabled,
|
|
198
198
|
'is-animating': this.isAnimating,
|
|
199
|
-
}, role: "listitem", "aria-expanded": this.currentOpenState ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, h("div", { key: '
|
|
199
|
+
}, role: "listitem", "aria-expanded": this.currentOpenState ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, h("div", { key: '993d96a9f61a5d1b8373108da93ff2fb3c99743e', class: "nv-accordion-item__header", onClick: this.handleHeaderClick, "aria-controls": "content" }, h("slot", { key: '8f38e7f8e97f654cbb11e22f8e0d300a15f62d82', name: "header" }, h("div", { key: '586b7a7555d874d014952393f217086d15863105', class: "nv-accordion-item__header-content" }, this.itemTitle && (h("span", { key: 'c94820fb1701aac71316e07282514db4ae91ddec', class: "nv-accordion-item__title" }, this.itemTitle)), this.subtitle && (h("span", { key: '76421e64254eb9b3d3a4f61f10e850c99c2b647c', class: "nv-accordion-item__subtitle" }, this.subtitle)))), h("nv-iconbutton", { key: '5f440c0313ebabcf0f0cab34d9e94212d250268f', emphasis: "low", size: "sm", shape: "square", name: this.chevronIconName, tabindex: this.disabled ? -1 : 0, onClick: this.handleIconClick, onKeyDown: this.handleHeaderKeyDown, "aria-controls": "content", "aria-label": this.currentOpenState ? 'Close the section' : 'Open the section' })), h("div", { key: '6c83b26f4da8112146a5dc76c7b2a28e69241fae', id: "content", class: "nv-accordion-item__content", ref: el => (this.contentRef = el) }, h("div", { key: '0d8fba56bcf5487b45ce1bfac5a8fd68500817cc', class: "nv-accordion-item__content-inner" }, h("slot", { key: '2238e8f467f9253e1a9e7e54d1a66593373cec47', name: "content" })))));
|
|
200
200
|
}
|
|
201
201
|
static get is() { return "nv-accordion-item"; }
|
|
202
202
|
static get originalStyleUrls() {
|
|
@@ -151,7 +151,7 @@ export class NvAlert {
|
|
|
151
151
|
/****************************************************************************/
|
|
152
152
|
//#region RENDER
|
|
153
153
|
render() {
|
|
154
|
-
return (h(Host, { key: '
|
|
154
|
+
return (h(Host, { key: '9a8ab30a8653a1369de135474a7c3772fa48e34b', role: "alert", class: clsx('root', `feedback-${this.feedback}`) }, h("nv-icon", { key: '3f6789afa52b52b583256a9534297f20cdb638d6', name: this.icon ?? this.getDefaultIcon(), class: `icon-${this.feedback}`, size: "md" }), h("div", { key: '6ef7b204125af6c249db995159a76e540285e0e6', class: "content" }, this.heading && h("p", { key: '0a1622512986eb61003df3690d1e1317ef4a4152', class: "heading" }, this.heading), this.message && h("p", { key: '985884d07932a356af1c124edab0524cd4539521', class: "message" }, this.message), h("slot", { key: 'cec75763902869e019b6fbc1b793106534a8bbda' })), this.dismissible && (h("button", { key: '9df0c2b641a00a174f8e8a090e0c7d6e48ca97ea', class: "close", type: "button", onClick: this.handleDismiss }, h("nv-icon", { key: '973eeb6af6df7f07ce6d7e6965b42b89fa283b83', name: "x", size: "sm" })))));
|
|
155
155
|
}
|
|
156
156
|
static get is() { return "nv-alert"; }
|
|
157
157
|
static get originalStyleUrls() {
|
|
@@ -264,14 +264,24 @@ export class NvAlert {
|
|
|
264
264
|
"type": "string",
|
|
265
265
|
"mutable": false,
|
|
266
266
|
"complexType": {
|
|
267
|
-
"original": "
|
|
268
|
-
"resolved": "
|
|
269
|
-
"references": {
|
|
267
|
+
"original": "`${IconName}`",
|
|
268
|
+
"resolved": "\"access-point\" | \"access-point-off\" | \"accessible\" | \"activity\" | \"address-book\" | \"adjustments\" | \"adjustments-horizontal\" | \"adjustments-up\" | \"affiliate\" | \"air-conditioning\" | \"alert-circle\" | \"alert-square-rounded\" | \"alert-triangle\" | \"align-center\" | \"align-left\" | \"align-right\" | \"app-window\" | \"apps\" | \"archive\" | \"areas\" | \"arrow-back\" | \"arrow-back-up\" | \"arrow-down\" | \"arrow-down-left\" | \"arrow-down-right\" | \"arrow-forward\" | \"arrow-forward-up\" | \"arrow-left\" | \"arrow-right\" | \"arrow-up\" | \"arrow-up-left\" | \"arrow-up-right\" | \"arrows-diagonal\" | \"arrows-exchange\" | \"arrows-maximize\" | \"arrows-minimize\" | \"arrows-move\" | \"aspect-ratio\" | \"atom\" | \"ban\" | \"basket\" | \"battery\" | \"battery-1\" | \"battery-2\" | \"battery-3\" | \"battery-4\" | \"battery-automotive\" | \"battery-charging\" | \"battery-eco\" | \"battery-off\" | \"bell\" | \"bell-bolt\" | \"bell-off\" | \"bell-ringing\" | \"bike\" | \"bluetooth\" | \"bluetooth-connected\" | \"bluetooth-off\" | \"bolt\" | \"bolt-off\" | \"book\" | \"bookmark\" | \"bookmark-off\" | \"bookmarks\" | \"box-align-top\" | \"box-multiple\" | \"brand-facebook\" | \"brand-instagram\" | \"brand-linkedin\" | \"brand-x\" | \"brand-youtube\" | \"briefcase\" | \"brightness-down\" | \"brightness-up\" | \"browser\" | \"browser-check\" | \"browser-plus\" | \"browser-x\" | \"brush\" | \"building\" | \"building-bank\" | \"building-factory\" | \"building-lighthouse\" | \"building-store\" | \"bulb\" | \"bulb-off\" | \"cake\" | \"calendar\" | \"calendar-time\" | \"calendar-week\" | \"camera\" | \"camera-off\" | \"car\" | \"car-crane\" | \"caravan\" | \"cash\" | \"cash-banknote\" | \"cast\" | \"cell\" | \"charging-pile\" | \"chart-arcs\" | \"chart-area\" | \"chart-area-line\" | \"chart-arrows\" | \"chart-arrows-vertical\" | \"chart-bar\" | \"chart-bubble\" | \"chart-circles\" | \"chart-donut\" | \"chart-dots\" | \"chart-line\" | \"chart-pie\" | \"chart-radar\" | \"check\" | \"checkbox\" | \"checklist\" | \"checks\" | \"chevron-down\" | \"chevron-left\" | \"chevron-right\" | \"chevron-top\" | \"chevrons-left\" | \"chevrons-right\" | \"circle-caret-right\" | \"circle-check\" | \"circle-minus\" | \"circle-x\" | \"circuit-alternate\" | \"circuit-ground-digital\" | \"clipboard\" | \"clipboard-check\" | \"clipboard-list\" | \"clipboard-plus\" | \"clipboard-text\" | \"clipboard-x\" | \"clock\" | \"clock-edit\" | \"cloud\" | \"cloud-data-connection\" | \"cloud-download\" | \"cloud-rain\" | \"cloud-snow\" | \"cloud-upload\" | \"color-picker\" | \"color-swatch\" | \"columns-1\" | \"columns-2\" | \"columns-3\" | \"compass\" | \"contract\" | \"cookie\" | \"copy\" | \"cpu\" | \"crane\" | \"credit-card\" | \"crop\" | \"cross\" | \"crown\" | \"currency-bitcoin\" | \"currency-dollar\" | \"currency-ethereum\" | \"currency-euro\" | \"cut\" | \"dashboard\" | \"database\" | \"device-desktop\" | \"device-floppy\" | \"device-gamepad\" | \"device-laptop\" | \"device-mobile\" | \"device-mobile-rotated\" | \"device-tablet\" | \"device-watch\" | \"devices\" | \"dialpad\" | \"direction\" | \"direction-horizontal\" | \"direction-sign\" | \"discount\" | \"door-enter\" | \"door-exit\" | \"door-off\" | \"dots\" | \"dots-vertical\" | \"download\" | \"drone\" | \"droplet\" | \"droplet-filled\" | \"droplet-half\" | \"droplets\" | \"edit\" | \"empty\" | \"engine\" | \"equal-not\" | \"eraser\" | \"eraser-off\" | \"external-link\" | \"eye\" | \"eye-check\" | \"eye-off\" | \"eyeglass2\" | \"face-id\" | \"feather\" | \"file\" | \"file-alert\" | \"file-analytics\" | \"file-check\" | \"file-code\" | \"file-download\" | \"file-export\" | \"file-horizontal\" | \"file-import\" | \"file-plus\" | \"file-search\" | \"file-text\" | \"file-text-bookmark\" | \"file-type-bmp\" | \"file-type-css\" | \"file-type-csv\" | \"file-type-doc\" | \"file-type-html\" | \"file-type-jpg\" | \"file-type-js\" | \"file-type-pdf\" | \"file-type-png\" | \"file-type-ppt\" | \"file-type-xls\" | \"file-type-xml\" | \"file-type-zip\" | \"file-upload\" | \"file-x\" | \"file-zip\" | \"files\" | \"files-off\" | \"filter\" | \"filter-off\" | \"filter-sort\" | \"fingerprint\" | \"fire-extinguisher\" | \"flag\" | \"flame\" | \"flip-horizontal\" | \"flip-vertical\" | \"folder\" | \"folder-minus\" | \"folder-off\" | \"folder-plus\" | \"folder-x\" | \"folders\" | \"frame\" | \"gas-station\" | \"gauge\" | \"gauge-off\" | \"gift\" | \"git-branch\" | \"git-branch-delete\" | \"git-cherry-pick\" | \"git-commit\" | \"git-compare\" | \"git-fork\" | \"git-merge\" | \"git-pull-request\" | \"git-pull-request-closed\" | \"git-pull-request-draft\" | \"gps\" | \"grid-dots\" | \"grip-horizontal\" | \"grip-vertical\" | \"hand-stop\" | \"hand-waving\" | \"hash\" | \"haze\" | \"headphones\" | \"headphones-off\" | \"headset\" | \"heart\" | \"heart-off\" | \"heartbeat\" | \"helicopter\" | \"helmet\" | \"helmet-swopp\" | \"help\" | \"history\" | \"home\" | \"hourglass\" | \"hourglass-empty\" | \"hourglass-high\" | \"hourglass-low\" | \"hourglass-off\" | \"inbox\" | \"info-circle\" | \"keyboard\" | \"keyboard-hide\" | \"keyboard-show\" | \"layers-intersect\" | \"layers-off\" | \"layout\" | \"layout-board-split\" | \"layout-dashboard\" | \"layout-grid\" | \"layout-sidebar-left-collapse\" | \"layout-sidebar-left-expand\" | \"layout-sidebar-right-collapse\" | \"layout-sidebar-right-expand\" | \"leaf\" | \"lifebuoy\" | \"link\" | \"list\" | \"list-search\" | \"loader\" | \"location\" | \"lock\" | \"lock-off\" | \"lock-open\" | \"login\" | \"logout\" | \"mail\" | \"mail-forward\" | \"mail-opened\" | \"map\" | \"map-pin\" | \"map-pin-2\" | \"map-pin-off\" | \"master-data\" | \"menu\" | \"message\" | \"message-dots\" | \"message-off\" | \"messages\" | \"microphone\" | \"microphone-off\" | \"minus\" | \"mist\" | \"moon\" | \"motorbike\" | \"mouse\" | \"movie\" | \"network\" | \"news\" | \"note\" | \"notebook\" | \"notes\" | \"offshore-station\" | \"package\" | \"palette\" | \"paperclip\" | \"pencil\" | \"phone\" | \"phone-call\" | \"phone-calling\" | \"phone-check\" | \"phone-incoming\" | \"phone-off\" | \"phone-outgoing\" | \"photo\" | \"photo-off\" | \"pig\" | \"pin\" | \"pinned\" | \"pinned-off\" | \"plane\" | \"plane-off\" | \"plant\" | \"player-pause\" | \"player-play\" | \"player-skip-back\" | \"player-skip-forward\" | \"player-stop\" | \"player-track-next\" | \"player-track-prev\" | \"plug\" | \"plug-connected\" | \"plus\" | \"power\" | \"power-ac\" | \"power-dc\" | \"presentation\" | \"presentation-analytics\" | \"printer\" | \"propeller\" | \"published\" | \"puzzle\" | \"puzzle-2\" | \"pylon\" | \"qrcode\" | \"quotes\" | \"quotes-open\" | \"radar\" | \"radio\" | \"radioactive\" | \"receipt\" | \"receipt-dollar\" | \"receipt-euro\" | \"recharging\" | \"recycle\" | \"refresh\" | \"refresh-alert\" | \"refresh-off\" | \"repeat\" | \"repeat-once\" | \"replace\" | \"report\" | \"report-analytics\" | \"report-medical\" | \"report-search\" | \"ripple\" | \"ripple-off\" | \"rocket\" | \"rotate\" | \"rotate-2\" | \"rotate-clockwise\" | \"rotate-clockwise-2\" | \"rotate-dot\" | \"router\" | \"ruler-measure\" | \"sailboat\" | \"satellite\" | \"scale\" | \"school\" | \"scissors\" | \"scooter-electric\" | \"screenshot\" | \"search\" | \"seeding\" | \"select\" | \"selector\" | \"send\" | \"server\" | \"settings\" | \"shape\" | \"share\" | \"share-2\" | \"shield\" | \"shield-check\" | \"shield-lock\" | \"shield-off\" | \"shield-x\" | \"ship\" | \"ship-off\" | \"shopping-cart\" | \"sitemap\" | \"slash\" | \"smart-home\" | \"snowflake\" | \"solar-panel\" | \"sort-ascending-letters\" | \"sort-ascending-numbers\" | \"sort-descending-letters\" | \"sort-descending-numbers\" | \"spacing-horizontal\" | \"spacing-vertical\" | \"sparkles\" | \"speakerphone\" | \"stack\" | \"stairs\" | \"star\" | \"sun\" | \"sunrise\" | \"sunset\" | \"switch-horizontal\" | \"switch-vertical\" | \"table\" | \"tag\" | \"tank-empty-fill\" | \"tank-full-fill\" | \"tank-medium-fill\" | \"temperature\" | \"temperature-off\" | \"template\" | \"terminal\" | \"text\" | \"text-size\" | \"thumb-down\" | \"thumb-up\" | \"ticket\" | \"timeline\" | \"tir\" | \"tool\" | \"tools\" | \"train\" | \"trash\" | \"trash-off\" | \"tree\" | \"trees\" | \"truck\" | \"truck-delivery\" | \"umbrella\" | \"unlink\" | \"upload\" | \"user\" | \"user-circle\" | \"user-exclamation\" | \"user-minus\" | \"user-off\" | \"user-plus\" | \"user-worker\" | \"users\" | \"versions\" | \"video\" | \"video-minus\" | \"video-off\" | \"video-plus\" | \"volume\" | \"volume-2\" | \"volume-3\" | \"wallet\" | \"wand\" | \"wave\" | \"waves\" | \"wifi\" | \"wifi-off\" | \"wind\" | \"wind-direction\" | \"windmill\" | \"wood\" | \"world\" | \"world-code\" | \"writing\" | \"x\" | \"zoom-reset\"",
|
|
269
|
+
"references": {
|
|
270
|
+
"IconName": {
|
|
271
|
+
"location": "import",
|
|
272
|
+
"path": "../nv-icon/nv-icons",
|
|
273
|
+
"id": "src/components/nv-icon/nv-icons.ts::IconName",
|
|
274
|
+
"referenceLocation": "IconName"
|
|
275
|
+
}
|
|
276
|
+
}
|
|
270
277
|
},
|
|
271
278
|
"required": false,
|
|
272
279
|
"optional": false,
|
|
273
280
|
"docs": {
|
|
274
|
-
"tags": [
|
|
281
|
+
"tags": [{
|
|
282
|
+
"name": "icon",
|
|
283
|
+
"text": undefined
|
|
284
|
+
}],
|
|
275
285
|
"text": "Icon associated with the alert, defaults vary based on the feedback type."
|
|
276
286
|
},
|
|
277
287
|
"getter": false,
|
|
@@ -31,6 +31,7 @@ export class NvBadge {
|
|
|
31
31
|
this.label = null;
|
|
32
32
|
/**
|
|
33
33
|
* The lead icon of the badge.
|
|
34
|
+
* @icon
|
|
34
35
|
*/
|
|
35
36
|
this.leadIcon = null;
|
|
36
37
|
/**
|
|
@@ -109,7 +110,7 @@ export class NvBadge {
|
|
|
109
110
|
if (this.dismissal) {
|
|
110
111
|
this.dismissible = this.dismissal;
|
|
111
112
|
}
|
|
112
|
-
if (this.icon != null && this.icon
|
|
113
|
+
if (this.icon != null && this.icon) {
|
|
113
114
|
this.leadIcon = this.icon;
|
|
114
115
|
}
|
|
115
116
|
if (this.hidden) {
|
|
@@ -124,14 +125,14 @@ export class NvBadge {
|
|
|
124
125
|
/****************************************************************************/
|
|
125
126
|
//#region RENDER
|
|
126
127
|
render() {
|
|
127
|
-
return (h(Host, { key: '
|
|
128
|
+
return (h(Host, { key: '178d7a8500d2b51bff75934f020d68df2548bbb9', class: clsx(`badge-${this.color}`, {
|
|
128
129
|
'has-close': this.dismissible,
|
|
129
130
|
'with-gap': this.dismissible || this.label,
|
|
130
131
|
'visually-hidden': this._isHidden,
|
|
131
132
|
'is-icon-only': this.isIconOnly,
|
|
132
|
-
}) }, h("span", { key: '
|
|
133
|
+
}) }, h("span", { key: '67dec92be67c5f2a8e75c348fd8e5d30da8a8a46', class: "nv-badge-leading" }, this.leadIcon && h("nv-icon", { key: '19f2acbecb7be8ea62f7656d2e2e79c2f03baebd', name: this.leadIcon, size: "sm" }), h("slot", { key: '9bbb8b139c5c38d635ecf6947a860a5ac08da316', name: "leading-icon" })), h("span", { key: '07ba9cba9bbcff4b9539f1e6af80a0440fca4afb', class: clsx('nv-badge-label', {
|
|
133
134
|
'visually-hidden': this.isIconOnly,
|
|
134
|
-
}) }, this.label, h("slot", { key: '
|
|
135
|
+
}) }, this.label, h("slot", { key: '807224b100e753cb07e4af338bfb90054df7ac97' })), this.dismissible && (h("button", { key: '6e2f9d6f81bbfe8529deed31dbd59274cd1ea51e', onClick: this.handleClose, class: "close", type: "button" }, h("nv-icon", { key: 'e0e3c0c6400893a70db61558b13e7e619fa576cc', name: "x", size: "sm" })))));
|
|
135
136
|
}
|
|
136
137
|
static get is() { return "nv-badge"; }
|
|
137
138
|
static get originalStyleUrls() {
|
|
@@ -173,9 +174,16 @@ export class NvBadge {
|
|
|
173
174
|
"type": "string",
|
|
174
175
|
"mutable": false,
|
|
175
176
|
"complexType": {
|
|
176
|
-
"original": "
|
|
177
|
-
"resolved": "
|
|
178
|
-
"references": {
|
|
177
|
+
"original": "`${IconName}`",
|
|
178
|
+
"resolved": "\"access-point\" | \"access-point-off\" | \"accessible\" | \"activity\" | \"address-book\" | \"adjustments\" | \"adjustments-horizontal\" | \"adjustments-up\" | \"affiliate\" | \"air-conditioning\" | \"alert-circle\" | \"alert-square-rounded\" | \"alert-triangle\" | \"align-center\" | \"align-left\" | \"align-right\" | \"app-window\" | \"apps\" | \"archive\" | \"areas\" | \"arrow-back\" | \"arrow-back-up\" | \"arrow-down\" | \"arrow-down-left\" | \"arrow-down-right\" | \"arrow-forward\" | \"arrow-forward-up\" | \"arrow-left\" | \"arrow-right\" | \"arrow-up\" | \"arrow-up-left\" | \"arrow-up-right\" | \"arrows-diagonal\" | \"arrows-exchange\" | \"arrows-maximize\" | \"arrows-minimize\" | \"arrows-move\" | \"aspect-ratio\" | \"atom\" | \"ban\" | \"basket\" | \"battery\" | \"battery-1\" | \"battery-2\" | \"battery-3\" | \"battery-4\" | \"battery-automotive\" | \"battery-charging\" | \"battery-eco\" | \"battery-off\" | \"bell\" | \"bell-bolt\" | \"bell-off\" | \"bell-ringing\" | \"bike\" | \"bluetooth\" | \"bluetooth-connected\" | \"bluetooth-off\" | \"bolt\" | \"bolt-off\" | \"book\" | \"bookmark\" | \"bookmark-off\" | \"bookmarks\" | \"box-align-top\" | \"box-multiple\" | \"brand-facebook\" | \"brand-instagram\" | \"brand-linkedin\" | \"brand-x\" | \"brand-youtube\" | \"briefcase\" | \"brightness-down\" | \"brightness-up\" | \"browser\" | \"browser-check\" | \"browser-plus\" | \"browser-x\" | \"brush\" | \"building\" | \"building-bank\" | \"building-factory\" | \"building-lighthouse\" | \"building-store\" | \"bulb\" | \"bulb-off\" | \"cake\" | \"calendar\" | \"calendar-time\" | \"calendar-week\" | \"camera\" | \"camera-off\" | \"car\" | \"car-crane\" | \"caravan\" | \"cash\" | \"cash-banknote\" | \"cast\" | \"cell\" | \"charging-pile\" | \"chart-arcs\" | \"chart-area\" | \"chart-area-line\" | \"chart-arrows\" | \"chart-arrows-vertical\" | \"chart-bar\" | \"chart-bubble\" | \"chart-circles\" | \"chart-donut\" | \"chart-dots\" | \"chart-line\" | \"chart-pie\" | \"chart-radar\" | \"check\" | \"checkbox\" | \"checklist\" | \"checks\" | \"chevron-down\" | \"chevron-left\" | \"chevron-right\" | \"chevron-top\" | \"chevrons-left\" | \"chevrons-right\" | \"circle-caret-right\" | \"circle-check\" | \"circle-minus\" | \"circle-x\" | \"circuit-alternate\" | \"circuit-ground-digital\" | \"clipboard\" | \"clipboard-check\" | \"clipboard-list\" | \"clipboard-plus\" | \"clipboard-text\" | \"clipboard-x\" | \"clock\" | \"clock-edit\" | \"cloud\" | \"cloud-data-connection\" | \"cloud-download\" | \"cloud-rain\" | \"cloud-snow\" | \"cloud-upload\" | \"color-picker\" | \"color-swatch\" | \"columns-1\" | \"columns-2\" | \"columns-3\" | \"compass\" | \"contract\" | \"cookie\" | \"copy\" | \"cpu\" | \"crane\" | \"credit-card\" | \"crop\" | \"cross\" | \"crown\" | \"currency-bitcoin\" | \"currency-dollar\" | \"currency-ethereum\" | \"currency-euro\" | \"cut\" | \"dashboard\" | \"database\" | \"device-desktop\" | \"device-floppy\" | \"device-gamepad\" | \"device-laptop\" | \"device-mobile\" | \"device-mobile-rotated\" | \"device-tablet\" | \"device-watch\" | \"devices\" | \"dialpad\" | \"direction\" | \"direction-horizontal\" | \"direction-sign\" | \"discount\" | \"door-enter\" | \"door-exit\" | \"door-off\" | \"dots\" | \"dots-vertical\" | \"download\" | \"drone\" | \"droplet\" | \"droplet-filled\" | \"droplet-half\" | \"droplets\" | \"edit\" | \"empty\" | \"engine\" | \"equal-not\" | \"eraser\" | \"eraser-off\" | \"external-link\" | \"eye\" | \"eye-check\" | \"eye-off\" | \"eyeglass2\" | \"face-id\" | \"feather\" | \"file\" | \"file-alert\" | \"file-analytics\" | \"file-check\" | \"file-code\" | \"file-download\" | \"file-export\" | \"file-horizontal\" | \"file-import\" | \"file-plus\" | \"file-search\" | \"file-text\" | \"file-text-bookmark\" | \"file-type-bmp\" | \"file-type-css\" | \"file-type-csv\" | \"file-type-doc\" | \"file-type-html\" | \"file-type-jpg\" | \"file-type-js\" | \"file-type-pdf\" | \"file-type-png\" | \"file-type-ppt\" | \"file-type-xls\" | \"file-type-xml\" | \"file-type-zip\" | \"file-upload\" | \"file-x\" | \"file-zip\" | \"files\" | \"files-off\" | \"filter\" | \"filter-off\" | \"filter-sort\" | \"fingerprint\" | \"fire-extinguisher\" | \"flag\" | \"flame\" | \"flip-horizontal\" | \"flip-vertical\" | \"folder\" | \"folder-minus\" | \"folder-off\" | \"folder-plus\" | \"folder-x\" | \"folders\" | \"frame\" | \"gas-station\" | \"gauge\" | \"gauge-off\" | \"gift\" | \"git-branch\" | \"git-branch-delete\" | \"git-cherry-pick\" | \"git-commit\" | \"git-compare\" | \"git-fork\" | \"git-merge\" | \"git-pull-request\" | \"git-pull-request-closed\" | \"git-pull-request-draft\" | \"gps\" | \"grid-dots\" | \"grip-horizontal\" | \"grip-vertical\" | \"hand-stop\" | \"hand-waving\" | \"hash\" | \"haze\" | \"headphones\" | \"headphones-off\" | \"headset\" | \"heart\" | \"heart-off\" | \"heartbeat\" | \"helicopter\" | \"helmet\" | \"helmet-swopp\" | \"help\" | \"history\" | \"home\" | \"hourglass\" | \"hourglass-empty\" | \"hourglass-high\" | \"hourglass-low\" | \"hourglass-off\" | \"inbox\" | \"info-circle\" | \"keyboard\" | \"keyboard-hide\" | \"keyboard-show\" | \"layers-intersect\" | \"layers-off\" | \"layout\" | \"layout-board-split\" | \"layout-dashboard\" | \"layout-grid\" | \"layout-sidebar-left-collapse\" | \"layout-sidebar-left-expand\" | \"layout-sidebar-right-collapse\" | \"layout-sidebar-right-expand\" | \"leaf\" | \"lifebuoy\" | \"link\" | \"list\" | \"list-search\" | \"loader\" | \"location\" | \"lock\" | \"lock-off\" | \"lock-open\" | \"login\" | \"logout\" | \"mail\" | \"mail-forward\" | \"mail-opened\" | \"map\" | \"map-pin\" | \"map-pin-2\" | \"map-pin-off\" | \"master-data\" | \"menu\" | \"message\" | \"message-dots\" | \"message-off\" | \"messages\" | \"microphone\" | \"microphone-off\" | \"minus\" | \"mist\" | \"moon\" | \"motorbike\" | \"mouse\" | \"movie\" | \"network\" | \"news\" | \"note\" | \"notebook\" | \"notes\" | \"offshore-station\" | \"package\" | \"palette\" | \"paperclip\" | \"pencil\" | \"phone\" | \"phone-call\" | \"phone-calling\" | \"phone-check\" | \"phone-incoming\" | \"phone-off\" | \"phone-outgoing\" | \"photo\" | \"photo-off\" | \"pig\" | \"pin\" | \"pinned\" | \"pinned-off\" | \"plane\" | \"plane-off\" | \"plant\" | \"player-pause\" | \"player-play\" | \"player-skip-back\" | \"player-skip-forward\" | \"player-stop\" | \"player-track-next\" | \"player-track-prev\" | \"plug\" | \"plug-connected\" | \"plus\" | \"power\" | \"power-ac\" | \"power-dc\" | \"presentation\" | \"presentation-analytics\" | \"printer\" | \"propeller\" | \"published\" | \"puzzle\" | \"puzzle-2\" | \"pylon\" | \"qrcode\" | \"quotes\" | \"quotes-open\" | \"radar\" | \"radio\" | \"radioactive\" | \"receipt\" | \"receipt-dollar\" | \"receipt-euro\" | \"recharging\" | \"recycle\" | \"refresh\" | \"refresh-alert\" | \"refresh-off\" | \"repeat\" | \"repeat-once\" | \"replace\" | \"report\" | \"report-analytics\" | \"report-medical\" | \"report-search\" | \"ripple\" | \"ripple-off\" | \"rocket\" | \"rotate\" | \"rotate-2\" | \"rotate-clockwise\" | \"rotate-clockwise-2\" | \"rotate-dot\" | \"router\" | \"ruler-measure\" | \"sailboat\" | \"satellite\" | \"scale\" | \"school\" | \"scissors\" | \"scooter-electric\" | \"screenshot\" | \"search\" | \"seeding\" | \"select\" | \"selector\" | \"send\" | \"server\" | \"settings\" | \"shape\" | \"share\" | \"share-2\" | \"shield\" | \"shield-check\" | \"shield-lock\" | \"shield-off\" | \"shield-x\" | \"ship\" | \"ship-off\" | \"shopping-cart\" | \"sitemap\" | \"slash\" | \"smart-home\" | \"snowflake\" | \"solar-panel\" | \"sort-ascending-letters\" | \"sort-ascending-numbers\" | \"sort-descending-letters\" | \"sort-descending-numbers\" | \"spacing-horizontal\" | \"spacing-vertical\" | \"sparkles\" | \"speakerphone\" | \"stack\" | \"stairs\" | \"star\" | \"sun\" | \"sunrise\" | \"sunset\" | \"switch-horizontal\" | \"switch-vertical\" | \"table\" | \"tag\" | \"tank-empty-fill\" | \"tank-full-fill\" | \"tank-medium-fill\" | \"temperature\" | \"temperature-off\" | \"template\" | \"terminal\" | \"text\" | \"text-size\" | \"thumb-down\" | \"thumb-up\" | \"ticket\" | \"timeline\" | \"tir\" | \"tool\" | \"tools\" | \"train\" | \"trash\" | \"trash-off\" | \"tree\" | \"trees\" | \"truck\" | \"truck-delivery\" | \"umbrella\" | \"unlink\" | \"upload\" | \"user\" | \"user-circle\" | \"user-exclamation\" | \"user-minus\" | \"user-off\" | \"user-plus\" | \"user-worker\" | \"users\" | \"versions\" | \"video\" | \"video-minus\" | \"video-off\" | \"video-plus\" | \"volume\" | \"volume-2\" | \"volume-3\" | \"wallet\" | \"wand\" | \"wave\" | \"waves\" | \"wifi\" | \"wifi-off\" | \"wind\" | \"wind-direction\" | \"windmill\" | \"wood\" | \"world\" | \"world-code\" | \"writing\" | \"x\" | \"zoom-reset\"",
|
|
179
|
+
"references": {
|
|
180
|
+
"IconName": {
|
|
181
|
+
"location": "import",
|
|
182
|
+
"path": "../nv-icon/nv-icons",
|
|
183
|
+
"id": "src/components/nv-icon/nv-icons.ts::IconName",
|
|
184
|
+
"referenceLocation": "IconName"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
179
187
|
},
|
|
180
188
|
"required": false,
|
|
181
189
|
"optional": false,
|
|
@@ -183,6 +191,9 @@ export class NvBadge {
|
|
|
183
191
|
"tags": [{
|
|
184
192
|
"name": "deprecated",
|
|
185
193
|
"text": "use leadIcon or slot=\"leading-icon\" instead."
|
|
194
|
+
}, {
|
|
195
|
+
"name": "icon",
|
|
196
|
+
"text": undefined
|
|
186
197
|
}],
|
|
187
198
|
"text": "The icon to display in the badge."
|
|
188
199
|
},
|
|
@@ -257,14 +268,24 @@ export class NvBadge {
|
|
|
257
268
|
"type": "string",
|
|
258
269
|
"mutable": true,
|
|
259
270
|
"complexType": {
|
|
260
|
-
"original": "
|
|
261
|
-
"resolved": "
|
|
262
|
-
"references": {
|
|
271
|
+
"original": "`${IconName}` | null",
|
|
272
|
+
"resolved": "\"access-point\" | \"access-point-off\" | \"accessible\" | \"activity\" | \"address-book\" | \"adjustments\" | \"adjustments-horizontal\" | \"adjustments-up\" | \"affiliate\" | \"air-conditioning\" | \"alert-circle\" | \"alert-square-rounded\" | \"alert-triangle\" | \"align-center\" | \"align-left\" | \"align-right\" | \"app-window\" | \"apps\" | \"archive\" | \"areas\" | \"arrow-back\" | \"arrow-back-up\" | \"arrow-down\" | \"arrow-down-left\" | \"arrow-down-right\" | \"arrow-forward\" | \"arrow-forward-up\" | \"arrow-left\" | \"arrow-right\" | \"arrow-up\" | \"arrow-up-left\" | \"arrow-up-right\" | \"arrows-diagonal\" | \"arrows-exchange\" | \"arrows-maximize\" | \"arrows-minimize\" | \"arrows-move\" | \"aspect-ratio\" | \"atom\" | \"ban\" | \"basket\" | \"battery\" | \"battery-1\" | \"battery-2\" | \"battery-3\" | \"battery-4\" | \"battery-automotive\" | \"battery-charging\" | \"battery-eco\" | \"battery-off\" | \"bell\" | \"bell-bolt\" | \"bell-off\" | \"bell-ringing\" | \"bike\" | \"bluetooth\" | \"bluetooth-connected\" | \"bluetooth-off\" | \"bolt\" | \"bolt-off\" | \"book\" | \"bookmark\" | \"bookmark-off\" | \"bookmarks\" | \"box-align-top\" | \"box-multiple\" | \"brand-facebook\" | \"brand-instagram\" | \"brand-linkedin\" | \"brand-x\" | \"brand-youtube\" | \"briefcase\" | \"brightness-down\" | \"brightness-up\" | \"browser\" | \"browser-check\" | \"browser-plus\" | \"browser-x\" | \"brush\" | \"building\" | \"building-bank\" | \"building-factory\" | \"building-lighthouse\" | \"building-store\" | \"bulb\" | \"bulb-off\" | \"cake\" | \"calendar\" | \"calendar-time\" | \"calendar-week\" | \"camera\" | \"camera-off\" | \"car\" | \"car-crane\" | \"caravan\" | \"cash\" | \"cash-banknote\" | \"cast\" | \"cell\" | \"charging-pile\" | \"chart-arcs\" | \"chart-area\" | \"chart-area-line\" | \"chart-arrows\" | \"chart-arrows-vertical\" | \"chart-bar\" | \"chart-bubble\" | \"chart-circles\" | \"chart-donut\" | \"chart-dots\" | \"chart-line\" | \"chart-pie\" | \"chart-radar\" | \"check\" | \"checkbox\" | \"checklist\" | \"checks\" | \"chevron-down\" | \"chevron-left\" | \"chevron-right\" | \"chevron-top\" | \"chevrons-left\" | \"chevrons-right\" | \"circle-caret-right\" | \"circle-check\" | \"circle-minus\" | \"circle-x\" | \"circuit-alternate\" | \"circuit-ground-digital\" | \"clipboard\" | \"clipboard-check\" | \"clipboard-list\" | \"clipboard-plus\" | \"clipboard-text\" | \"clipboard-x\" | \"clock\" | \"clock-edit\" | \"cloud\" | \"cloud-data-connection\" | \"cloud-download\" | \"cloud-rain\" | \"cloud-snow\" | \"cloud-upload\" | \"color-picker\" | \"color-swatch\" | \"columns-1\" | \"columns-2\" | \"columns-3\" | \"compass\" | \"contract\" | \"cookie\" | \"copy\" | \"cpu\" | \"crane\" | \"credit-card\" | \"crop\" | \"cross\" | \"crown\" | \"currency-bitcoin\" | \"currency-dollar\" | \"currency-ethereum\" | \"currency-euro\" | \"cut\" | \"dashboard\" | \"database\" | \"device-desktop\" | \"device-floppy\" | \"device-gamepad\" | \"device-laptop\" | \"device-mobile\" | \"device-mobile-rotated\" | \"device-tablet\" | \"device-watch\" | \"devices\" | \"dialpad\" | \"direction\" | \"direction-horizontal\" | \"direction-sign\" | \"discount\" | \"door-enter\" | \"door-exit\" | \"door-off\" | \"dots\" | \"dots-vertical\" | \"download\" | \"drone\" | \"droplet\" | \"droplet-filled\" | \"droplet-half\" | \"droplets\" | \"edit\" | \"empty\" | \"engine\" | \"equal-not\" | \"eraser\" | \"eraser-off\" | \"external-link\" | \"eye\" | \"eye-check\" | \"eye-off\" | \"eyeglass2\" | \"face-id\" | \"feather\" | \"file\" | \"file-alert\" | \"file-analytics\" | \"file-check\" | \"file-code\" | \"file-download\" | \"file-export\" | \"file-horizontal\" | \"file-import\" | \"file-plus\" | \"file-search\" | \"file-text\" | \"file-text-bookmark\" | \"file-type-bmp\" | \"file-type-css\" | \"file-type-csv\" | \"file-type-doc\" | \"file-type-html\" | \"file-type-jpg\" | \"file-type-js\" | \"file-type-pdf\" | \"file-type-png\" | \"file-type-ppt\" | \"file-type-xls\" | \"file-type-xml\" | \"file-type-zip\" | \"file-upload\" | \"file-x\" | \"file-zip\" | \"files\" | \"files-off\" | \"filter\" | \"filter-off\" | \"filter-sort\" | \"fingerprint\" | \"fire-extinguisher\" | \"flag\" | \"flame\" | \"flip-horizontal\" | \"flip-vertical\" | \"folder\" | \"folder-minus\" | \"folder-off\" | \"folder-plus\" | \"folder-x\" | \"folders\" | \"frame\" | \"gas-station\" | \"gauge\" | \"gauge-off\" | \"gift\" | \"git-branch\" | \"git-branch-delete\" | \"git-cherry-pick\" | \"git-commit\" | \"git-compare\" | \"git-fork\" | \"git-merge\" | \"git-pull-request\" | \"git-pull-request-closed\" | \"git-pull-request-draft\" | \"gps\" | \"grid-dots\" | \"grip-horizontal\" | \"grip-vertical\" | \"hand-stop\" | \"hand-waving\" | \"hash\" | \"haze\" | \"headphones\" | \"headphones-off\" | \"headset\" | \"heart\" | \"heart-off\" | \"heartbeat\" | \"helicopter\" | \"helmet\" | \"helmet-swopp\" | \"help\" | \"history\" | \"home\" | \"hourglass\" | \"hourglass-empty\" | \"hourglass-high\" | \"hourglass-low\" | \"hourglass-off\" | \"inbox\" | \"info-circle\" | \"keyboard\" | \"keyboard-hide\" | \"keyboard-show\" | \"layers-intersect\" | \"layers-off\" | \"layout\" | \"layout-board-split\" | \"layout-dashboard\" | \"layout-grid\" | \"layout-sidebar-left-collapse\" | \"layout-sidebar-left-expand\" | \"layout-sidebar-right-collapse\" | \"layout-sidebar-right-expand\" | \"leaf\" | \"lifebuoy\" | \"link\" | \"list\" | \"list-search\" | \"loader\" | \"location\" | \"lock\" | \"lock-off\" | \"lock-open\" | \"login\" | \"logout\" | \"mail\" | \"mail-forward\" | \"mail-opened\" | \"map\" | \"map-pin\" | \"map-pin-2\" | \"map-pin-off\" | \"master-data\" | \"menu\" | \"message\" | \"message-dots\" | \"message-off\" | \"messages\" | \"microphone\" | \"microphone-off\" | \"minus\" | \"mist\" | \"moon\" | \"motorbike\" | \"mouse\" | \"movie\" | \"network\" | \"news\" | \"note\" | \"notebook\" | \"notes\" | \"offshore-station\" | \"package\" | \"palette\" | \"paperclip\" | \"pencil\" | \"phone\" | \"phone-call\" | \"phone-calling\" | \"phone-check\" | \"phone-incoming\" | \"phone-off\" | \"phone-outgoing\" | \"photo\" | \"photo-off\" | \"pig\" | \"pin\" | \"pinned\" | \"pinned-off\" | \"plane\" | \"plane-off\" | \"plant\" | \"player-pause\" | \"player-play\" | \"player-skip-back\" | \"player-skip-forward\" | \"player-stop\" | \"player-track-next\" | \"player-track-prev\" | \"plug\" | \"plug-connected\" | \"plus\" | \"power\" | \"power-ac\" | \"power-dc\" | \"presentation\" | \"presentation-analytics\" | \"printer\" | \"propeller\" | \"published\" | \"puzzle\" | \"puzzle-2\" | \"pylon\" | \"qrcode\" | \"quotes\" | \"quotes-open\" | \"radar\" | \"radio\" | \"radioactive\" | \"receipt\" | \"receipt-dollar\" | \"receipt-euro\" | \"recharging\" | \"recycle\" | \"refresh\" | \"refresh-alert\" | \"refresh-off\" | \"repeat\" | \"repeat-once\" | \"replace\" | \"report\" | \"report-analytics\" | \"report-medical\" | \"report-search\" | \"ripple\" | \"ripple-off\" | \"rocket\" | \"rotate\" | \"rotate-2\" | \"rotate-clockwise\" | \"rotate-clockwise-2\" | \"rotate-dot\" | \"router\" | \"ruler-measure\" | \"sailboat\" | \"satellite\" | \"scale\" | \"school\" | \"scissors\" | \"scooter-electric\" | \"screenshot\" | \"search\" | \"seeding\" | \"select\" | \"selector\" | \"send\" | \"server\" | \"settings\" | \"shape\" | \"share\" | \"share-2\" | \"shield\" | \"shield-check\" | \"shield-lock\" | \"shield-off\" | \"shield-x\" | \"ship\" | \"ship-off\" | \"shopping-cart\" | \"sitemap\" | \"slash\" | \"smart-home\" | \"snowflake\" | \"solar-panel\" | \"sort-ascending-letters\" | \"sort-ascending-numbers\" | \"sort-descending-letters\" | \"sort-descending-numbers\" | \"spacing-horizontal\" | \"spacing-vertical\" | \"sparkles\" | \"speakerphone\" | \"stack\" | \"stairs\" | \"star\" | \"sun\" | \"sunrise\" | \"sunset\" | \"switch-horizontal\" | \"switch-vertical\" | \"table\" | \"tag\" | \"tank-empty-fill\" | \"tank-full-fill\" | \"tank-medium-fill\" | \"temperature\" | \"temperature-off\" | \"template\" | \"terminal\" | \"text\" | \"text-size\" | \"thumb-down\" | \"thumb-up\" | \"ticket\" | \"timeline\" | \"tir\" | \"tool\" | \"tools\" | \"train\" | \"trash\" | \"trash-off\" | \"tree\" | \"trees\" | \"truck\" | \"truck-delivery\" | \"umbrella\" | \"unlink\" | \"upload\" | \"user\" | \"user-circle\" | \"user-exclamation\" | \"user-minus\" | \"user-off\" | \"user-plus\" | \"user-worker\" | \"users\" | \"versions\" | \"video\" | \"video-minus\" | \"video-off\" | \"video-plus\" | \"volume\" | \"volume-2\" | \"volume-3\" | \"wallet\" | \"wand\" | \"wave\" | \"waves\" | \"wifi\" | \"wifi-off\" | \"wind\" | \"wind-direction\" | \"windmill\" | \"wood\" | \"world\" | \"world-code\" | \"writing\" | \"x\" | \"zoom-reset\"",
|
|
273
|
+
"references": {
|
|
274
|
+
"IconName": {
|
|
275
|
+
"location": "import",
|
|
276
|
+
"path": "../nv-icon/nv-icons",
|
|
277
|
+
"id": "src/components/nv-icon/nv-icons.ts::IconName",
|
|
278
|
+
"referenceLocation": "IconName"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
263
281
|
},
|
|
264
282
|
"required": false,
|
|
265
283
|
"optional": true,
|
|
266
284
|
"docs": {
|
|
267
|
-
"tags": [
|
|
285
|
+
"tags": [{
|
|
286
|
+
"name": "icon",
|
|
287
|
+
"text": undefined
|
|
288
|
+
}],
|
|
268
289
|
"text": "The lead icon of the badge."
|
|
269
290
|
},
|
|
270
291
|
"getter": false,
|
|
@@ -1,5 +1,40 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { nameof } from "../../utils/class.utils";
|
|
1
3
|
const NvBreadcrumbDocs = {
|
|
2
4
|
component: 'nv-breadcrumb',
|
|
3
|
-
|
|
5
|
+
parentGroup: 'Breadcrumbs',
|
|
6
|
+
subcomponents: ['nv-breadcrumbs', 'nv-icon', 'nv-tooltip', 'nv-popover'],
|
|
7
|
+
stories: [
|
|
8
|
+
// Default
|
|
9
|
+
{
|
|
10
|
+
name: 'Default',
|
|
11
|
+
template: (h("nv-breadcrumbs", null, h("nv-breadcrumb", { "data-storybook-args": true }, h("a", { href: "#" }, "Breadcrumb Item")))),
|
|
12
|
+
},
|
|
13
|
+
// type
|
|
14
|
+
{
|
|
15
|
+
name: nameof(x => x.type),
|
|
16
|
+
description: 'The type of breadcrumb. Use "collapsed" to house multiple breadcrumbs in a dropdown.',
|
|
17
|
+
template: (h("div", null, h("nv-breadcrumbs", { "data-class": "mb-5" }, h("nv-breadcrumb", null, h("a", { href: "#" }, "Home")), h("nv-breadcrumb", { "data-storybook-args": true, type: "default" }, h("a", { href: "#" }, "Default")), h("nv-breadcrumb", null, h("a", { href: "#" }, "Current"))), h("nv-breadcrumbs", { "data-class": "mb-20" }, h("nv-breadcrumb", null, h("a", { href: "#" }, "Home")), h("nv-breadcrumb", { "data-storybook-args": true, type: "collapsed", tooltip: "Click to expand" }, h("li", null, h("nv-breadcrumb", null, h("a", { href: "#" }, "Products"))), h("li", null, h("nv-breadcrumb", null, h("a", { href: "#" }, "Electronics")))), h("nv-breadcrumb", null, h("a", { href: "#" }, "Laptops"))))),
|
|
18
|
+
},
|
|
19
|
+
// tooltip
|
|
20
|
+
{
|
|
21
|
+
name: nameof(x => x.tooltip),
|
|
22
|
+
args: { tooltip: 'Go to Home' },
|
|
23
|
+
template: (h("nv-breadcrumbs", null, h("nv-breadcrumb", { "data-storybook-args": true }, h("a", { href: "#" }, "Home")), h("nv-breadcrumb", null, h("a", { href: "#" }, "Products")))),
|
|
24
|
+
},
|
|
25
|
+
// current
|
|
26
|
+
{
|
|
27
|
+
name: nameof(x => x.current),
|
|
28
|
+
description: 'Highlights the breadcrumb as the current page. When true, the breadcrumb is visually hidden but remains accessible to screen readers with aria-current="location".',
|
|
29
|
+
args: { current: true },
|
|
30
|
+
template: (h("div", null, h("nv-breadcrumbs", { "data-class": "mb-2" }, h("nv-breadcrumb", null, h("a", { href: "#" }, "Home")), h("nv-breadcrumb", null, h("a", { href: "#" }, "User Account")), h("nv-breadcrumb", { "data-storybook-args": true }, h("a", { href: "#" }, "Authorization"))), h("h2", null, "Authorization"))),
|
|
31
|
+
},
|
|
32
|
+
// SlotDefault
|
|
33
|
+
{
|
|
34
|
+
name: 'SlotDefault',
|
|
35
|
+
description: 'Pass an icon, a link, or text to render the breadcrumb content.',
|
|
36
|
+
template: (h("div", null, h("nv-breadcrumbs", { "data-class": "mb-4" }, h("nv-breadcrumb", { "data-storybook-args": true }, h("a", { href: "#" }, h("nv-icon", { name: "home" }), h("span", null, "Home"))), h("nv-breadcrumb", null, h("a", { href: "#" }, "Products"))), h("nv-breadcrumbs", { "data-class": "mb-4" }, h("nv-breadcrumb", { "data-storybook-args": true }, h("a", { href: "#" }, "Simple Text")), h("nv-breadcrumb", null, h("a", { href: "#" }, "Another Item"))))),
|
|
37
|
+
},
|
|
38
|
+
],
|
|
4
39
|
};
|
|
5
40
|
export default NvBreadcrumbDocs;
|