@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-DU3Vhh_k.js';
|
|
2
2
|
import { u as useCollapse } from './collapse.animation-DZDm0vSK.js';
|
|
3
3
|
import './style-value-types.es-xlgmw4x8.js';
|
|
4
4
|
|
|
@@ -191,12 +191,12 @@ const NvAccordionItem = class {
|
|
|
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
|
get el() { return getElement(this); }
|
|
202
202
|
static get watchers() { return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as createEvent, f as forceUpdate, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, a as createEvent, f as forceUpdate, h, d as Host, e as getElement } from './index-DU3Vhh_k.js';
|
|
2
2
|
|
|
3
3
|
const nvAccordionCss = () => `nv-accordion{display:block;border:var(--spacing-px) solid var(--color-content-low-border);border-radius:var(--radius-rounded-lg)}nv-accordion .nv-accordion__footer{padding:var(--spacing-3);background:var(--color-level-05-background);border-radius:0 0 var(--radius-rounded-lg) var(--radius-rounded-lg);margin-top:calc(var(--spacing-px) * -1);border-top:var(--spacing-px) solid var(--color-content-low-border)}nv-accordion .nv-accordion__footer:empty{display:none}`;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-DU3Vhh_k.js';
|
|
2
2
|
import { c as clsx } from './clsx-ChV9xqsO.js';
|
|
3
3
|
import { F as FeedbackColors } from './constants-BReL3Lsa.js';
|
|
4
4
|
import { u as useCollapse } from './collapse.animation-DZDm0vSK.js';
|
|
@@ -158,7 +158,7 @@ const NvAlert = class {
|
|
|
158
158
|
/****************************************************************************/
|
|
159
159
|
//#region RENDER
|
|
160
160
|
render() {
|
|
161
|
-
return (h(Host, { key: '
|
|
161
|
+
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" })))));
|
|
162
162
|
}
|
|
163
163
|
get el() { return getElement(this); }
|
|
164
164
|
static get watchers() { return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-DU3Vhh_k.js';
|
|
2
2
|
import { c as clsx } from './clsx-ChV9xqsO.js';
|
|
3
3
|
import { u as useCollapse } from './collapse.animation-DZDm0vSK.js';
|
|
4
4
|
import { u as useFade } from './fade.animation-DcRL9lcm.js';
|
|
@@ -37,6 +37,7 @@ const NvBadge = class {
|
|
|
37
37
|
this.label = null;
|
|
38
38
|
/**
|
|
39
39
|
* The lead icon of the badge.
|
|
40
|
+
* @icon
|
|
40
41
|
*/
|
|
41
42
|
this.leadIcon = null;
|
|
42
43
|
/**
|
|
@@ -115,7 +116,7 @@ const NvBadge = class {
|
|
|
115
116
|
if (this.dismissal) {
|
|
116
117
|
this.dismissible = this.dismissal;
|
|
117
118
|
}
|
|
118
|
-
if (this.icon != null && this.icon
|
|
119
|
+
if (this.icon != null && this.icon) {
|
|
119
120
|
this.leadIcon = this.icon;
|
|
120
121
|
}
|
|
121
122
|
if (this.hidden) {
|
|
@@ -130,14 +131,14 @@ const NvBadge = class {
|
|
|
130
131
|
/****************************************************************************/
|
|
131
132
|
//#region RENDER
|
|
132
133
|
render() {
|
|
133
|
-
return (h(Host, { key: '
|
|
134
|
+
return (h(Host, { key: '178d7a8500d2b51bff75934f020d68df2548bbb9', class: clsx(`badge-${this.color}`, {
|
|
134
135
|
'has-close': this.dismissible,
|
|
135
136
|
'with-gap': this.dismissible || this.label,
|
|
136
137
|
'visually-hidden': this._isHidden,
|
|
137
138
|
'is-icon-only': this.isIconOnly,
|
|
138
|
-
}) }, h("span", { key: '
|
|
139
|
+
}) }, 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', {
|
|
139
140
|
'visually-hidden': this.isIconOnly,
|
|
140
|
-
}) }, this.label, h("slot", { key: '
|
|
141
|
+
}) }, 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" })))));
|
|
141
142
|
}
|
|
142
143
|
get el() { return getElement(this); }
|
|
143
144
|
static get watchers() { return {
|
|
@@ -154,7 +155,7 @@ const NvBadge = class {
|
|
|
154
155
|
};
|
|
155
156
|
NvBadge.style = nvBadgeCss();
|
|
156
157
|
|
|
157
|
-
const nvFielddropdownitemcheckCss = () => `nv-fielddropdownitemcheck slot-fb,nv-fielddropdownitemcheck span{all:unset}nv-fielddropdownitemcheck{cursor:pointer;display:flex;padding:var(--list-dropdown-item-padding-y) var(--list-dropdown-item-padding-x);border-radius:var(--list-dropdown-item-radius)}nv-fielddropdownitemcheck:hover{background-color:var(--components-list-dropdown-item-background-hover)}`;
|
|
158
|
+
const nvFielddropdownitemcheckCss = () => `nv-fielddropdownitemcheck slot-fb,nv-fielddropdownitemcheck span{all:unset}nv-fielddropdownitemcheck{cursor:pointer;display:flex;padding:var(--list-dropdown-item-padding-y) var(--list-dropdown-item-padding-x);border-radius:var(--list-dropdown-item-radius)}nv-fielddropdownitemcheck:hover,nv-fielddropdownitemcheck[data-state=highlighted]{background-color:var(--components-list-dropdown-item-background-hover)}`;
|
|
158
159
|
|
|
159
160
|
const NvFielddropdownitemcheck = class {
|
|
160
161
|
constructor(hostRef) {
|
|
@@ -205,7 +206,7 @@ const NvFielddropdownitemcheck = class {
|
|
|
205
206
|
/****************************************************************************/
|
|
206
207
|
//#region RENDER
|
|
207
208
|
render() {
|
|
208
|
-
return (h(Host, { key: '
|
|
209
|
+
return (h(Host, { key: '52f3eeee8d22ab9b45723403c58edc3f16905a07', onClick: this.handleClick }, h("nv-fieldcheckbox", { key: 'b06def71aa859fca784140d5c961ffa6cd8cdccc', checked: this.checked, name: this.label || this.value, label: this.label || this.value, labelPlacement: "after", description: this.description, disabled: this.disabled, tabindex: "-1", onCheckedChanged: this.onFieldcheckboxChanged }, h("slot", { key: 'cc53d2732969cb2812d08f978b3d7eeb5cdaa02a' }), h("slot", { key: '67336141a3dcfdab0bdc749e1937797222eaaded', name: "main" }), h("slot", { key: '165a860ee2dbd1783d4bf391c3a07da6756d7013', name: "label" }), h("slot", { key: '27c6e04f85b608a267ef2b280326d125c22dd970', name: "description" }))));
|
|
209
210
|
}
|
|
210
211
|
get el() { return getElement(this); }
|
|
211
212
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, d as Host, e as getElement } from './index-DU3Vhh_k.js';
|
|
2
2
|
import { c as clsx } from './clsx-ChV9xqsO.js';
|
|
3
3
|
|
|
4
4
|
const nvBreadcrumbCss = () => `nv-breadcrumb{display:flex;align-items:center;color:var(--components-breadcrumb-text);font-size:var(--font-size-sm);font-style:normal;font-weight:var(--font-weight-medium-emphasis);line-height:var(--line-height-sm)}nv-breadcrumb.visually-hidden{position:absolute;padding:0;border:0;overflow:hidden;white-space:nowrap;width:1px;height:1px;margin:-1px;clip:rect(0, 0, 0, 0)}nv-breadcrumb ul{display:flex;flex-direction:column;gap:var(--spacing-1-5);padding:var(--spacing-1)}nv-breadcrumb ul a,nv-breadcrumb ul button{display:inline-flex;align-self:center;color:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;text-decoration:none}nv-breadcrumb ul a:focus,nv-breadcrumb ul a:focus-within,nv-breadcrumb ul button:focus,nv-breadcrumb ul button:focus-within{outline:none}nv-breadcrumb ul a:focus-visible,nv-breadcrumb ul a:has(:focus-visible),nv-breadcrumb ul button:focus-visible,nv-breadcrumb ul button:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 0.5) solid var(--components-breadcrumb-text-hover);outline-offset:calc(var(--focus-outline-offset) * 0.3)}nv-breadcrumb ul a:hover,nv-breadcrumb ul button:hover{text-decoration:underline;color:var(--components-breadcrumb-text-hover)}nv-breadcrumb>a,nv-breadcrumb>button{display:inline-flex;align-self:center;color:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;text-decoration:none}nv-breadcrumb>a:focus,nv-breadcrumb>a:focus-within,nv-breadcrumb>button:focus,nv-breadcrumb>button:focus-within{outline:none}nv-breadcrumb>a:focus-visible,nv-breadcrumb>a:has(:focus-visible),nv-breadcrumb>button:focus-visible,nv-breadcrumb>button:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 0.5) solid var(--components-breadcrumb-text-hover);outline-offset:calc(var(--focus-outline-offset) * 0.3)}nv-breadcrumb>a:hover,nv-breadcrumb>button:hover{text-decoration:underline;color:var(--components-breadcrumb-text-hover)}nv-breadcrumb span[data-scope=separator]{display:inline-flex;padding-left:var(--breadcrumb-padding-y)}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, d as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, d as Host } from './index-DU3Vhh_k.js';
|
|
2
2
|
|
|
3
3
|
const nvBreadcrumbsCss = () => `nv-breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:var(--breadcrumb-padding-y)}nv-breadcrumbs nv-breadcrumb:last-child [data-scope=separator],nv-breadcrumbs nv-breadcrumb:last-child [slot=separator]{display:none}`;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, d as Host, e as getElement } from './index-DU3Vhh_k.js';
|
|
2
2
|
import { b as ButtonType, B as ButtonSize } from './constants-BReL3Lsa.js';
|
|
3
3
|
|
|
4
4
|
const nvButtonCss = () => `nv-button{text-decoration:none;display:inline-flex;justify-content:center;align-items:center;font-style:normal;font-weight:var(--font-weight-medium-emphasis);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;transition:background-color 150ms ease-out;user-select:none;cursor:pointer;height:fit-content;width:fit-content}nv-button[size=xs]{padding:var(--button-xs-padding-y) var(--button-xs-padding-x);gap:var(--button-xs-gap);border-radius:var(--button-xs-border-radius);line-height:var(--button-xs-line-height);height:var(--button-xs-height);font-size:var(--button-xs-font-size)}nv-button[size=xs] nv-icon>svg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-button[size=sm]{padding:var(--button-sm-padding-y) var(--button-sm-padding-x);gap:var(--button-sm-gap);border-radius:var(--button-sm-border-radius);line-height:var(--button-sm-line-height);height:var(--button-sm-height);font-size:var(--button-sm-font-size)}nv-button[size=sm] nv-icon>svg{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-button[size=md]{padding:var(--button-md-padding-y) var(--button-md-padding-x);gap:var(--button-md-gap);border-radius:var(--button-md-border-radius);line-height:var(--button-md-line-height);height:var(--button-md-height);font-size:var(--button-md-font-size)}nv-button[size=md] nv-icon>svg{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-button[size=lg]{padding:var(--button-lg-padding-y) var(--button-lg-padding-x);gap:var(--button-lg-gap);border-radius:var(--button-lg-border-radius);line-height:var(--button-lg-line-height);height:var(--button-lg-height);font-size:var(--button-lg-font-size)}nv-button[size=lg] nv-icon>svg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-button[emphasis=high]{background:var(--components-button-high-background);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text)}nv-button[emphasis=high]:hover{background:var(--components-button-high-background-hover);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text-hover)}nv-button[emphasis=high]:active{background:var(--components-button-high-background-active);border:1px solid var(--components-button-high-border-active);color:var(--components-button-high-text-active)}nv-button[emphasis=high]:focus,nv-button[emphasis=high]:focus-within{outline:none}nv-button[emphasis=high]:focus-visible,nv-button[emphasis=high]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=high]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=high][active]:not([active=false]){background:var(--components-button-high-background-active);border:1px solid var(--components-button-high-border-active);color:var(--components-button-high-text-active)}nv-button[emphasis=high][danger]:not([danger=false]){background:var(--components-button-destructive-high-background);border:1px solid transparent;color:var(--components-button-destructive-high-text)}nv-button[emphasis=high][danger]:not([danger=false]):hover{background:var(--components-button-destructive-high-background-hover);border:1px solid transparent;color:var(--components-button-destructive-high-text-hover)}nv-button[emphasis=high][danger]:not([danger=false]):focus,nv-button[emphasis=high][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=high][danger]:not([danger=false]):focus-visible,nv-button[emphasis=high][danger]:not([danger=false]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=medium]{background:var(--components-button-medium-background);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text)}nv-button[emphasis=medium]:hover{background:var(--components-button-medium-background-hover);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text-hover)}nv-button[emphasis=medium]:active{background:var(--components-button-medium-background-active);border:1px solid var(--components-button-medium-border-active);color:var(--components-button-medium-text-active)}nv-button[emphasis=medium]:focus,nv-button[emphasis=medium]:focus-within{outline:none}nv-button[emphasis=medium]:focus-visible,nv-button[emphasis=medium]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=medium]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=medium][active]:not([active=false]){background:var(--components-button-medium-background-active);border:1px solid var(--components-button-medium-border-active);color:var(--components-button-medium-text-active)}nv-button[emphasis=medium][danger]:not([danger=false]){background:var(--components-button-destructive-medium-background);border:1px solid var(--components-button-destructive-medium-border);color:var(--components-button-destructive-medium-text)}nv-button[emphasis=medium][danger]:not([danger=false]):hover{background:var(--components-button-destructive-medium-background-hover);border:1px solid var(--components-button-destructive-medium-border);color:var(--components-button-destructive-medium-text-hover)}nv-button[emphasis=medium][danger]:not([danger=false]):focus,nv-button[emphasis=medium][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=medium][danger]:not([danger=false]):focus-visible,nv-button[emphasis=medium][danger]:not([danger=false]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=low]{background:var(--components-button-low-background);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text)}nv-button[emphasis=low]:hover{background:var(--components-button-low-background-hover);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text-hover)}nv-button[emphasis=low]:active{background:var(--components-button-low-background-active);border:1px solid var(--components-button-low-border-active);color:var(--components-button-low-text-active)}nv-button[emphasis=low]:focus,nv-button[emphasis=low]:focus-within{outline:none}nv-button[emphasis=low]:focus-visible,nv-button[emphasis=low]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=low]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=low][active]:not([active=false]){background:var(--components-button-low-background-active);border:1px solid var(--components-button-low-border-active);color:var(--components-button-low-text-active)}nv-button[emphasis=low][danger]:not([danger=false]){background:var(--components-button-destructive-low-background);border:1px solid var(--components-button-destructive-low-border);color:var(--components-button-destructive-low-text)}nv-button[emphasis=low][danger]:not([danger=false]):hover{background:var(--components-button-destructive-low-background-hover);border:1px solid var(--components-button-destructive-low-border);color:var(--components-button-destructive-low-text-hover)}nv-button[emphasis=low][danger]:not([danger=false]):focus,nv-button[emphasis=low][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=low][danger]:not([danger=false]):focus-visible,nv-button[emphasis=low][danger]:not([danger=false]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=lower]{background:var(--components-button-lower-background);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text)}nv-button[emphasis=lower]:hover{background:var(--components-button-lower-background-hover);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text-hover)}nv-button[emphasis=lower]:active{background:var(--components-button-lower-background-active);border:1px solid var(--components-button-lower-border-active);color:var(--components-button-lower-text-active)}nv-button[emphasis=lower]:focus,nv-button[emphasis=lower]:focus-within{outline:none}nv-button[emphasis=lower]:focus-visible,nv-button[emphasis=lower]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=lower]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=lower][active]:not([active=false]){background:var(--components-button-lower-background-active);border:1px solid var(--components-button-lower-border-active);color:var(--components-button-lower-text-active)}nv-button[emphasis=lower][danger]:not([danger=false]){background:var(--components-button-destructive-lower-background);border:1px solid var(--components-button-destructive-lower-border);color:var(--components-button-destructive-lower-text)}nv-button[emphasis=lower][danger]:not([danger=false]):hover{background:var(--components-button-destructive-lower-background-hover);border:1px solid var(--components-button-destructive-lower-border);color:var(--components-button-destructive-lower-text-hover)}nv-button[emphasis=lower][danger]:not([danger=false]):focus,nv-button[emphasis=lower][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=lower][danger]:not([danger=false]):focus-visible,nv-button[emphasis=lower][danger]:not([danger=false]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[fluid]:not([fluid=false]){width:100%}nv-button[loading]:not([loading=false]) [slot=leading-icon]{display:none}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, r as registerInstance, a as createEvent, d as Host, e as getElement } from './index-
|
|
1
|
+
import { h, r as registerInstance, a as createEvent, d as Host, e as getElement } from './index-DU3Vhh_k.js';
|
|
2
2
|
import { C as CUSTOM_DAY_NAMES, i as CUSTOM_MONTH_NAMES, W as WEEK_ABBREVIATIONS } from './constants-BReL3Lsa.js';
|
|
3
3
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-B85MJLTf.js';
|
|
4
4
|
|
package/dist/esm/nv-col.entry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, d as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, d as Host } from './index-DU3Vhh_k.js';
|
|
2
2
|
import { c as clsx } from './clsx-ChV9xqsO.js';
|
|
3
3
|
|
|
4
4
|
const nvColCss = () => `nv-col{display:block;flex:1 1 0%;padding-left:calc(var(--spacing-4) / 2);padding-right:calc(var(--spacing-4) / 2)}nv-col[class*=w-]{flex:none}nv-col.w-1\\/12{width:calc(100% * 1 / 12)}nv-col.w-2\\/12{width:calc(100% * 2 / 12)}nv-col.w-3\\/12{width:calc(100% * 3 / 12)}nv-col.w-4\\/12{width:calc(100% * 4 / 12)}nv-col.w-5\\/12{width:calc(100% * 5 / 12)}nv-col.w-6\\/12{width:calc(100% * 6 / 12)}nv-col.w-7\\/12{width:calc(100% * 7 / 12)}nv-col.w-8\\/12{width:calc(100% * 8 / 12)}nv-col.w-9\\/12{width:calc(100% * 9 / 12)}nv-col.w-10\\/12{width:calc(100% * 10 / 12)}nv-col.w-11\\/12{width:calc(100% * 11 / 12)}nv-col.w-12\\/12{width:calc(100% * 12 / 12)}`;
|
|
@@ -25,7 +25,7 @@ const NvCol = class {
|
|
|
25
25
|
/****************************************************************************/
|
|
26
26
|
//#region RENDER
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '8170490b65da46794b207e150175c0627ab57b94', class: clsx(this.getColSize()) }, h("slot", { key: '7c4cdb29efdd597af059f7942a6baf89d7d53b34' })));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
NvCol.style = nvColCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-DU3Vhh_k.js';
|
|
2
2
|
import { d as deepCopyElement, e as excludedProps } from './dom.utils-CuXVGECR.js';
|
|
3
3
|
import { h as SortingPossibility } from './constants-BReL3Lsa.js';
|
|
4
4
|
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { r as registerInstance, a as createEvent, h, d as Host } from './index-DU3Vhh_k.js';
|
|
2
|
+
import { p as parseDateOnly, f as formatDateOnly } from './nova-datetime-CyL2J6O4.js';
|
|
3
|
+
|
|
4
|
+
const nvDatetestCss = () => `nv-datetest{display:flex}nv-datetest label{display:flex;flex-direction:column;margin-right:10px;font-weight:bold}nv-datetest input{font-weight:normal;padding:var(--spacing-2);border-radius:var(--spacing-1);border:1px solid #ccc}`;
|
|
5
|
+
|
|
6
|
+
const NvDatetest = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.valueChanged = createEvent(this, "valueChanged", 3);
|
|
10
|
+
this.lastChanged = createEvent(this, "lastChanged", 3);
|
|
11
|
+
this.historyChanged = createEvent(this, "historyChanged", 3);
|
|
12
|
+
this.valueDateChanged = createEvent(this, "valueDateChanged", 3);
|
|
13
|
+
//#endregion PROPERTIES
|
|
14
|
+
/****************************************************************************/
|
|
15
|
+
//#region METHODS
|
|
16
|
+
this.handleStartChange = (event) => {
|
|
17
|
+
const input = event.target;
|
|
18
|
+
const parsed = parseDateOnly(input.value);
|
|
19
|
+
if (!parsed)
|
|
20
|
+
return;
|
|
21
|
+
const newStart = formatDateOnly(parsed);
|
|
22
|
+
this.value = { start: newStart, end: this.value?.end };
|
|
23
|
+
this.lastChange = newStart;
|
|
24
|
+
this.history = [...(this.history ?? []), newStart];
|
|
25
|
+
this.valueChanged.emit(this.value);
|
|
26
|
+
this.lastChanged.emit({ date: this.lastChange });
|
|
27
|
+
this.historyChanged.emit({ dates: this.history });
|
|
28
|
+
this.valueDateChanged.emit({
|
|
29
|
+
start: this.value?.start
|
|
30
|
+
? new Date(this.value.start + 'T00:00:00')
|
|
31
|
+
: undefined,
|
|
32
|
+
end: this.value?.end ? new Date(this.value.end + 'T00:00:00') : undefined,
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
this.handleEndChange = (event) => {
|
|
36
|
+
const input = event.target;
|
|
37
|
+
const parsed = parseDateOnly(input.value);
|
|
38
|
+
if (!parsed)
|
|
39
|
+
return;
|
|
40
|
+
const newEnd = formatDateOnly(parsed);
|
|
41
|
+
this.value = { start: this.value?.start, end: newEnd };
|
|
42
|
+
this.lastChange = newEnd;
|
|
43
|
+
this.history = [...(this.history ?? []), newEnd];
|
|
44
|
+
this.valueChanged.emit(this.value);
|
|
45
|
+
this.lastChanged.emit({ date: this.lastChange });
|
|
46
|
+
this.historyChanged.emit({ dates: this.history });
|
|
47
|
+
this.valueDateChanged.emit({
|
|
48
|
+
start: this.value?.start
|
|
49
|
+
? new Date(this.value.start + 'T00:00:00')
|
|
50
|
+
: undefined,
|
|
51
|
+
end: this.value?.end ? new Date(this.value.end + 'T00:00:00') : undefined,
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
//#endregion EVENTS
|
|
56
|
+
/****************************************************************************/
|
|
57
|
+
//#region RENDER
|
|
58
|
+
render() {
|
|
59
|
+
return (h(Host, { key: '44e383a31e357a45c8ebe011c4ec14641ce43d74' }, h("label", { key: '9be748d4fcbe74b81a7aa03f2a14c806c472f118' }, "Start:", h("input", { key: '262ffa195b8dc8ecaaea00d12b6debe48b375cd1', type: "date", value: this.value?.start ?? '', onInput: this.handleStartChange })), h("label", { key: 'd8934398264595a08eb75f241fd2c5bc50e9f0d2' }, "End:", h("input", { key: '3fdb5b2e410706c6cfedf5244e674fd1dab361a9', type: "date", value: this.value?.end ?? '', onInput: this.handleEndChange })), h("slot", { key: 'bb828cffcff4e2c69a48a314636470644c55d2cc' })));
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
NvDatetest.style = nvDatetestCss();
|
|
63
|
+
|
|
64
|
+
export { NvDatetest as nv_datetest };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { r as registerInstance, a as createEvent, h, d as Host } from './index-DU3Vhh_k.js';
|
|
2
|
+
|
|
3
|
+
const nvDatetimetestCss = () => `nv-datetimetest{display:flex}nv-datetimetest label{display:flex;flex-direction:column;margin-right:10px;font-weight:bold}nv-datetimetest input{font-weight:normal;padding:var(--spacing-2);border-radius:var(--spacing-1);border:1px solid #ccc}`;
|
|
4
|
+
|
|
5
|
+
const NvDatetimetest = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.valueChanged = createEvent(this, "valueChanged", 3);
|
|
9
|
+
this.lastChanged = createEvent(this, "lastChanged", 3);
|
|
10
|
+
this.historyChanged = createEvent(this, "historyChanged", 3);
|
|
11
|
+
//#endregion PROPERTIES
|
|
12
|
+
/****************************************************************************/
|
|
13
|
+
//#region METHODS
|
|
14
|
+
this.handleStartChange = (event) => {
|
|
15
|
+
const input = event.target;
|
|
16
|
+
const newStart = new Date(input.value);
|
|
17
|
+
this.value = { start: newStart, end: this.value?.end };
|
|
18
|
+
this.lastChange = newStart;
|
|
19
|
+
this.history = [...(this.history ?? []), newStart];
|
|
20
|
+
this.valueChanged.emit(this.value);
|
|
21
|
+
this.lastChanged.emit({ date: this.lastChange });
|
|
22
|
+
this.historyChanged.emit({ dates: this.history });
|
|
23
|
+
};
|
|
24
|
+
this.handleEndChange = (event) => {
|
|
25
|
+
const input = event.target;
|
|
26
|
+
const newEnd = new Date(input.value);
|
|
27
|
+
this.value = { start: this.value?.start, end: newEnd };
|
|
28
|
+
this.lastChange = newEnd;
|
|
29
|
+
this.history = [...(this.history ?? []), newEnd];
|
|
30
|
+
this.valueChanged.emit(this.value);
|
|
31
|
+
this.lastChanged.emit({ date: this.lastChange });
|
|
32
|
+
this.historyChanged.emit({ dates: this.history });
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//#endregion EVENTS
|
|
36
|
+
/****************************************************************************/
|
|
37
|
+
//#region RENDER
|
|
38
|
+
render() {
|
|
39
|
+
const formatDate = (date) => {
|
|
40
|
+
if (!date)
|
|
41
|
+
return '';
|
|
42
|
+
const d = new Date(date);
|
|
43
|
+
if (isNaN(d.getTime()))
|
|
44
|
+
return '';
|
|
45
|
+
return d.toISOString().slice(0, 16);
|
|
46
|
+
};
|
|
47
|
+
return (h(Host, null, h("label", null, "Start:", h("input", { type: "datetime-local", value: formatDate(this.value?.start), onInput: this.handleStartChange })), h("label", null, "End:", h("input", { type: "datetime-local", value: formatDate(this.value?.end), onInput: this.handleEndChange })), h("slot", null)));
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
NvDatetimetest.style = nvDatetimetestCss();
|
|
51
|
+
|
|
52
|
+
export { NvDatetimetest as nv_datetimetest };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-DU3Vhh_k.js';
|
|
2
2
|
import { t as tabbable } from './index.esm-D3eWMME9.js';
|
|
3
3
|
import { a as addEventListeners, r as removeEventListeners } from './events.utils-B6GgGra-.js';
|
|
4
4
|
import { u as useFade } from './fade.animation-DcRL9lcm.js';
|
|
@@ -293,7 +293,7 @@ const NvDialog = class {
|
|
|
293
293
|
//#region RENDER
|
|
294
294
|
render() {
|
|
295
295
|
const hasForm = this.form || this.el.querySelector('form');
|
|
296
|
-
return (h(Host, { key: '
|
|
296
|
+
return (h(Host, { key: '8a7bd6c255e68d2950802190764221263eedc794' }, h("slot", { key: '3194aed7aa3e70ca0c7d3a9aa310a5ae12a8c55f', name: "trigger" }), h("dialog", { key: '2eb801ffa547e5159e125631de4973c4072228e6', ref: el => (this.dialogElement = el), onClose: this.handleDialogClose, onPointerDown: this.handleDialogPointerDown, onClick: this.handleDialogClick, role: "dialog", "aria-modal": "true", "aria-labelledby": "dialog-header", "aria-describedby": "dialog-content", class: clsx({ full: this.full }) }, h("div", { key: 'be4754c9b659de5186ceca7a038cfe048e36f7e6', class: "backdrop", ref: el => (this.backdropElement = el) }, h("div", { key: '6dc502fe058efde6220c15fff444a16c5920e524', class: "content", ref: el => (this.contentElement = el) }, !this.undismissable && (h("nv-button", { key: 'b9bbc39d6553e268aaabd8a394209302b4c3129d', class: "close-button", emphasis: "lower", size: "sm", onClick: this.handleDialogClose, "aria-label": "Close dialog" }, h("nv-icon", { key: 'aa8eb0f8ce6d2d5480b8522c470c61e902fb05fd', name: "x", size: "sm" }))), this.headerElement ? (h("slot", { name: "header" })) : (h("nv-dialogheader", { id: "dialog-header" })), h("div", { key: '9e53461c4ff39eb272dfc1042047f43aa9afa4cc', class: "content-body", id: "dialog-content" }, h("slot", { key: '26f5bbe3d31dc0a341cf444dd4116f7ffd51f469' })), this.footerElement ? (h("slot", { name: "footer" })) : (h("nv-dialogfooter", { form: this.form, primaryButtonType: hasForm ? ButtonType.Submit : ButtonType.Button, onDialogCanceled: this.handleDialogClose, undismissable: this.undismissable })))))));
|
|
297
297
|
}
|
|
298
298
|
get el() { return getElement(this); }
|
|
299
299
|
static get watchers() { return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as createEvent, h, F as Fragment, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, a as createEvent, h, F as Fragment, d as Host, e as getElement } from './index-DU3Vhh_k.js';
|
|
2
2
|
import { b as ButtonType } from './constants-BReL3Lsa.js';
|
|
3
3
|
|
|
4
4
|
const nvDialogfooterCss = () => `nv-dialogfooter{display:flex;padding:var(--dialog-footer-padding-top) var(--dialog-footer-padding-x) var(--dialog-footer-padding-bottom) var(--dialog-footer-padding-x);justify-content:flex-end;align-items:flex-end;gap:var(--dialog-footer-gap-y);align-self:stretch}`;
|
|
@@ -28,12 +28,14 @@ const NvDialogfooter = class {
|
|
|
28
28
|
this.undismissable = false;
|
|
29
29
|
/**
|
|
30
30
|
* Sets the leading icon for the primary button.
|
|
31
|
+
* @icon
|
|
31
32
|
*/
|
|
32
|
-
this.leadingIcon =
|
|
33
|
+
this.leadingIcon = null;
|
|
33
34
|
/**
|
|
34
35
|
* Sets the trailing icon for the primary button.
|
|
36
|
+
* @icon
|
|
35
37
|
*/
|
|
36
|
-
this.trailingIcon =
|
|
38
|
+
this.trailingIcon = null;
|
|
37
39
|
/**
|
|
38
40
|
* Sets the danger state for the primary button.
|
|
39
41
|
*/
|
|
@@ -81,7 +83,7 @@ const NvDialogfooter = class {
|
|
|
81
83
|
/****************************************************************************/
|
|
82
84
|
//#region RENDER
|
|
83
85
|
render() {
|
|
84
|
-
return (h(Host, { key: '
|
|
86
|
+
return (h(Host, { key: 'a66631cca8c689b702dbaca327d432013a01d5a9' }, h("slot", { key: 'b11ebee7ba1cf0d54ea14061adfc2aa652a8f320' }, h(Fragment, { key: 'b476090b330740be2903f0f8baaf2af37ce9f4b9' }, !this.undismissable && (h("nv-button", { key: '7fbcf88d375443143b6c51e4374d2c8aab0a138c', onClick: this.handleCancel, emphasis: "low", size: "sm" }, this.cancelLabel)), h("nv-button", { key: '45ea2b382870b4a94033e609b5bc57d0af7cad93', ref: el => (this.primaryButtonRef = el), onClick: this.handlePrimary, disabled: this.disabled, danger: this.danger, size: "sm", emphasis: "high", form: this.form, type: this.primaryButtonType }, this.leadingIcon && (h("nv-icon", { key: 'c021c5db17e94c0fa320824335ad3cf3507fc47e', slot: "leading-icon", name: this.leadingIcon, size: "sm" })), this.primaryLabel, this.trailingIcon && (h("nv-icon", { key: '3b3f4ebf29a35d901228d46ce799ff722a874272', slot: "trailing-icon", name: this.trailingIcon, size: "sm" })))))));
|
|
85
87
|
}
|
|
86
88
|
static get formAssociated() { return true; }
|
|
87
89
|
get el() { return getElement(this); }
|
|
@@ -104,7 +106,7 @@ const NvDialogheader = class {
|
|
|
104
106
|
/****************************************************************************/
|
|
105
107
|
//#region RENDER
|
|
106
108
|
render() {
|
|
107
|
-
return (h(Host, { key: '
|
|
109
|
+
return (h(Host, { key: '791850365cf2de9d1a5395083e01ee927e9fcfac' }, h("slot", { key: '2641c425dc10b7d748365fa0fa3d86a6784e129b' }, h(Fragment, { key: '7c8ef96b9c7e0ba03e374cc7e74d1f8f24d94c5b' }, h("div", { key: '53d09670dc9779101b3e79adea03bc34870df028', class: "heading" }, this.heading), h("div", { key: '624861c0ecac1de23ac1a4b558dea9de6acf5706', class: "subheading" }, this.subheading)))));
|
|
108
110
|
}
|
|
109
111
|
get el() { return getElement(this); }
|
|
110
112
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-DU3Vhh_k.js';
|
|
2
2
|
import { t as tabbable } from './index.esm-D3eWMME9.js';
|
|
3
3
|
import { a as addEventListeners, r as removeEventListeners } from './events.utils-B6GgGra-.js';
|
|
4
4
|
import { u as useFade } from './fade.animation-DcRL9lcm.js';
|
|
@@ -426,7 +426,7 @@ const NvDrawer = class {
|
|
|
426
426
|
render() {
|
|
427
427
|
const hasForm = this.form || this.el.querySelector('form');
|
|
428
428
|
const state = this.open ? 'open' : 'closed';
|
|
429
|
-
return (h(Host, { key: '
|
|
429
|
+
return (h(Host, { key: '6ca026b67705704b891c9bca8293dde501c0dc7d' }, h("slot", { key: 'ce9a79e0fe385b774aeac0106929343d6a053394', name: "trigger" }), h("dialog", { key: '49f9c71fd04de256f05d82d671b7664cf1ab3563', ref: el => (this.dialogElement = el), onClose: this.handleDrawerClose, onClick: this.handleDrawerClick, role: "dialog", "aria-modal": "true", "aria-labelledby": "drawer-header", "aria-describedby": "drawer-content", class: clsx({ [`side-${this.side}`]: true }), "data-state": state }, h("div", { key: '9c113486255925e4c7520c1f040b95ec253625d8', class: "backdrop", ref: el => (this.backdropElement = el) }, h("div", { key: 'e5b32ffe6785c27eef326f37b23478b9993f451a', class: clsx('content', `size-${this.size}`), ref: el => (this.contentElement = el), "data-state": state, "data-side": this.side, style: this.width ? { width: this.width } : {} }, !this.undismissable && (h("nv-button", { key: 'ac89f7d87b1f307fd809e518cfb88ceb82a074af', class: "close-button", emphasis: "lower", size: "sm", onClick: this.handleDrawerClose, "aria-label": "Close drawer" }, h("nv-icon", { key: '47d0888ea54efdf3f82cfd0b39bda5c1141074ba', name: "x", size: "sm" }))), this.headerElement ? (h("slot", { name: "header" })) : (h("nv-drawerheader", { id: "drawer-header" })), h("div", { key: '77a08ee8fcda500d45c9426de8d0b6fb9e960142', class: "content-body", id: "drawer-content" }, h("slot", { key: 'fc40bc3ecb66c95c188b1984431788e8d3bb66e2' })), this.footerElement ? (h("slot", { name: "footer" })) : (h("nv-drawerfooter", { form: this.form, primaryButtonType: hasForm ? ButtonType.Submit : ButtonType.Button, onDrawerCanceled: this.handleDrawerClose, undismissable: this.undismissable })))))));
|
|
430
430
|
}
|
|
431
431
|
get el() { return getElement(this); }
|
|
432
432
|
static get watchers() { return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as createEvent, h, F as Fragment, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, a as createEvent, h, F as Fragment, d as Host, e as getElement } from './index-DU3Vhh_k.js';
|
|
2
2
|
import { b as ButtonType } from './constants-BReL3Lsa.js';
|
|
3
3
|
|
|
4
4
|
const nvDrawerfooterCss = () => `nv-drawerfooter{display:flex;padding:var(--drawer-padding-y, var(--dialog-footer-padding-top)) var(--drawer-padding-x, var(--dialog-footer-padding-x)) var(--drawer-padding-y, var(--dialog-footer-padding-bottom)) var(--drawer-padding-x, var(--dialog-footer-padding-x));justify-content:flex-end;align-items:flex-end;gap:var(--drawer-gap-y, var(--dialog-footer-gap-y));align-self:stretch}`;
|
|
@@ -28,10 +28,12 @@ const NvDrawerfooter = class {
|
|
|
28
28
|
this.undismissable = false;
|
|
29
29
|
/**
|
|
30
30
|
* Sets the leading icon for the primary button.
|
|
31
|
+
* @icon
|
|
31
32
|
*/
|
|
32
33
|
this.leadingIcon = null;
|
|
33
34
|
/**
|
|
34
35
|
* Sets the trailing icon for the primary button.
|
|
36
|
+
* @icon
|
|
35
37
|
*/
|
|
36
38
|
this.trailingIcon = null;
|
|
37
39
|
/**
|
|
@@ -86,7 +88,7 @@ const NvDrawerfooter = class {
|
|
|
86
88
|
/****************************************************************************/
|
|
87
89
|
//#region RENDER
|
|
88
90
|
render() {
|
|
89
|
-
return (h(Host, { key: '
|
|
91
|
+
return (h(Host, { key: '280e30ae22c734269f8181a96ac0418d2c3bd5db' }, h("slot", { key: '9e435bc05507e06906121b49b4b486daff032ade' }, h(Fragment, { key: '1b38093cb1e7af2a16f5c465b9f7d0d79e39ea58' }, !this.undismissable && (h("nv-button", { key: 'a341887eb32885c375c393a8a13064c38b99cd48', onClick: this.handleCancel, emphasis: "low", size: "sm" }, this.cancelLabel)), h("nv-button", { key: '58ec1ef9f3e2e4647cea49bd89455da601976aff', ref: el => (this.primaryButtonRef = el), onClick: this.handlePrimary, disabled: this.disabled, danger: this.danger, size: "sm", emphasis: "high", form: this.form, type: this.primaryButtonType }, this.leadingIcon && (h("nv-icon", { key: '4ade73bea4bf75f845b07418e0dc3f5c032cff2e', slot: "leading-icon", name: this.leadingIcon, size: "sm" })), this.primaryLabel, this.trailingIcon && (h("nv-icon", { key: '02e4cba8e8f39664cf0ee052fe8d5df4ef580949', slot: "trailing-icon", name: this.trailingIcon, size: "sm" })))))));
|
|
90
92
|
}
|
|
91
93
|
static get formAssociated() { return true; }
|
|
92
94
|
get el() { return getElement(this); }
|
|
@@ -113,7 +115,7 @@ const NvDrawerheader = class {
|
|
|
113
115
|
/****************************************************************************/
|
|
114
116
|
//#region RENDER
|
|
115
117
|
render() {
|
|
116
|
-
return (h(Host, { key: '
|
|
118
|
+
return (h(Host, { key: '7f7a5091089b48e34ca8161d37062a760d04cb04' }, h("slot", { key: '32a03c7930e82a38a3e26d6cd1726dd1ac9f246c' }, h(Fragment, { key: 'ef9d6e52ac2918691ec04df4cb7e7703d5e3d0ee' }, h("div", { key: '2a4c59cf0e68d17014b977dbcd15d7b76b63b396', class: "heading" }, this.heading), h("div", { key: '70820933a33c13e39db4bb3178d270ddb780afdf', class: "subheading" }, this.subheading)))));
|
|
117
119
|
}
|
|
118
120
|
get el() { return getElement(this); }
|
|
119
121
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-DU3Vhh_k.js';
|
|
2
2
|
import { c as clsx } from './clsx-ChV9xqsO.js';
|
|
3
3
|
import { v as v4 } from './v4-BdYh22OP.js';
|
|
4
4
|
|
|
@@ -151,15 +151,15 @@ const NvFieldcheckbox = class {
|
|
|
151
151
|
? ariaRequiredAttrValue === 'true' || ariaRequiredAttrValue === ''
|
|
152
152
|
: undefined;
|
|
153
153
|
const useNativeRequired = this.required && (!useAriaRequired || ariaRequiredValue === true);
|
|
154
|
-
return (h(Host, { key: '
|
|
154
|
+
return (h(Host, { key: 'd7af71859fcbf45833c17977e7f524d12d7ec516', class: clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, h("div", { key: 'c636a80f3d538843e76b48f4bc6387064fdbcb6f', class: "input-container" }, h("input", { key: 'd5ca4e3d2166b89cd92aecd2b393f03d0d78b769', type: "checkbox", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly && !useNativeRequired, required: useNativeRequired ? this.required : undefined, tabindex: this.el.tabIndex, ...(ariaRequiredValue !== undefined && {
|
|
155
155
|
'aria-required': String(ariaRequiredValue),
|
|
156
156
|
}), indeterminate: this.indeterminate, ref: el => {
|
|
157
157
|
if (el) {
|
|
158
158
|
el.indeterminate = this.indeterminate;
|
|
159
159
|
}
|
|
160
|
-
} }), h("span", { key: '
|
|
161
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
162
|
-
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '
|
|
160
|
+
} }), h("span", { key: 'b51e2d55382e69519d3764f4f9c7087ccfd24235', class: "icon" }, this.checked && !this.indeterminate && (h("slot", { key: 'cd70b0132a720ebf866fe21d1b53bbab89cda62f', name: "checked-icon" }, h("svg", { key: 'f1a9166fa75cbd37c2a0f1850b937de00f77a51e', xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, h("path", { key: '2886dee16859f19b7dc630a100cbfd110c2e9eb7', d: "M11.6667 3.5L5.25004 9.91667L2.33337 7", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.indeterminate && (h("slot", { key: '68eb14e2bbf5726a27023714f67de50d8e24ad83', name: "indeterminate-icon" }, h("svg", { key: '671dc1afed5b3b9d71efff519009c8384da49ec1', class: "indeterminate-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", fill: "none" }, h("path", { key: '956838789fbac27422e0db8f13c4e2a8abc64c74', d: "M2.9165 7H11.0832", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("slot", { key: 'a93af1189444b1c96ea689eff29b7fa1e5b726c6' }), h("div", { key: '1bd695cb83a2010267d6ce1ce8dc6902dd62adf4', class: "text-container" }, h("slot", { key: 'b4e3088cf9469842b403d0eeb3122a85d08ce710', name: "main" }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: 'f5326d69a430d60577fac4cbb6229cd26292cb6f', htmlFor: this.inputId, class: clsx(this.hideLabel && 'visually-hidden') }, h("slot", { key: '56e52bbf5e0fed0e49b255a23a1c7fdabf69df13', name: "label" }, this.label))), (this.description ||
|
|
161
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: 'ca56f06cc4c3493e27d31de804f695bbe8a77231', class: "description" }, h("slot", { key: '46bd6a8deed8dfa6390b0994776a5c31aca16fdf', name: "description" }, this.description)))), (this.errorDescription ||
|
|
162
|
+
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'c1a5b14f4397a495e6ad340a6ae3a45e9f2c82fa', hidden: !this.error, class: "error-description" }, h("slot", { key: 'b8e10251f26ec1d541a1acad5d6bda0fc57b589d', name: "error-description" }, this.errorDescription))))));
|
|
163
163
|
}
|
|
164
164
|
static get formAssociated() { return true; }
|
|
165
165
|
get el() { return getElement(this); }
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-DU3Vhh_k.js';
|
|
2
2
|
import { I as Inputmask } from './inputmask-CSo292ul.js';
|
|
3
3
|
import { v as v4 } from './v4-BdYh22OP.js';
|
|
4
4
|
import './_commonjsHelpers-B85MJLTf.js';
|
|
5
5
|
|
|
6
|
-
const nvFielddateCss = () => `nv-fieldslider .slider-container .track-container:has(.thumb:hover) .track-range{background:var(--components-slider-track-filled-hover)}nv-fieldslider .slider-container .track-container:has(.thumb:hover) .thumb{border-color:var(--components-slider-track-filled-hover)}nv-fieldslider .slider-container .track-container:has(.thumb:focus) .track-range{background:var(--components-slider-track-filled-focus)}nv-fieldslider .slider-container .track-container:has(.thumb:focus) .thumb{border-color:var(--components-slider-track-filled-focus)}nv-fieldslider[error] .slider-container .track-container .track .track-range{background:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb{border-color:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb:hover{border-color:var(--components-slider-track-filled-error);outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-slider-track-filled-error);outline-offset:calc(var(--focus-outline-offset) * 1);background-color:var(--components-slider-handler-background-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb:focus{border-color:var(--components-slider-track-filled-error);outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-slider-track-filled-error);outline-offset:calc(var(--focus-outline-offset) * 1);background-color:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container:has(.thumb:hover) .track-range{background:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container:has(.thumb:hover) .thumb{border-color:var(--components-slider-track-filled-error)}nv-fielddate{--nv-field-border-default:var(--components-form-field-border-default);--nv-field-border-hover:var(--components-form-field-border-hover);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--components-form-field-border-default);--nv-field-border-readonly:var(--components-form-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-brand);--nv-field-background:var(--components-form-field-background-default);display:flex;flex-direction:column;align-items:flex-start;gap:var(--form-gap-y);box-sizing:border-box;max-width:480px}nv-fielddate[fluid]:not([fluid=false]){max-width:unset}nv-fielddate[readonly]:not([readonly=false]){--nv-field-border-default:var(--components-form-field-border-readonly);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-background:var(--components-form-field-background-readonly)}nv-fielddate[error]:not([error=false]){--nv-field-border-default:var(--components-form-field-border-error);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--nv-field-border-default);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-destructive-in-field)}nv-fielddate[success]:not([success=false]){--nv-field-border-default:var(--components-form-field-border-success);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--nv-field-border-default);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-success)}nv-fielddate[required]:not([required=false]) label::after,nv-fielddate[aria-required=true] label::after{content:"*";color:var(--components-form-text-required);font-weight:var(--font-weight-high-emphasis)}nv-fielddate label{display:flex;align-items:center;gap:var(--form-label-gap);align-self:stretch;color:var(--components-form-text-label-default);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:var(--font-weight-medium-emphasis);line-height:var(--form-label-line-height)}nv-fielddate nv-popover{width:100%;display:block}nv-fielddate nv-popover [data-scope=popover]{padding:0;background-color:var(--components-list-dropdown-background);border:1px solid var(--components-list-dropdown-border);width:auto}nv-fielddate nv-popover [slot=content]{display:block;width:100%}nv-fielddate nv-popover .datepicker-container{border:none}nv-fielddate .input-wrapper{display:flex;flex-wrap:wrap;gap:var(--form-gap-x);align-items:stretch;align-self:stretch;display:flex;align-items:center;gap:8px}nv-fielddate .input-wrapper .input-container{display:flex;flex-grow:1;justify-content:center;align-items:center;align-self:stretch;border-radius:var(--form-field-radius);border-width:1px;border-style:solid;border-color:var(--nv-field-border-default);opacity:var(--components-form-opacity-default, 1);background:var(--nv-field-background);transition:all 150ms ease-out}nv-fielddate .input-wrapper .input-container:hover{border-color:var(--nv-field-border-hover)}nv-fielddate .input-wrapper .input-container:focus-within,nv-fielddate .input-wrapper .input-container:focus-within:hover,nv-fielddate .input-wrapper .input-container:focus,nv-fielddate .input-wrapper .input-container:focus:hover{border-color:var(--nv-field-border-focus);box-shadow:0px 0px 0px var(--focus-field-stroke) var(--nv-field-focus-box-shadow)}nv-fielddate .input-wrapper .input-container:has(input:read-only){background-color:var(--components-form-field-background-readonly);border-color:var(--nv-field-border-readonly)}nv-fielddate .input-wrapper .input-container:has(input:disabled){opacity:0.5;background-color:var(--components-form-field-background-disabled);border-color:var(--nv-field-border-disabled)}nv-fielddate .input-wrapper .input-container input{display:flex;align-items:center;flex:1 0 0;overflow:hidden;background-color:transparent;color:var(--components-form-field-content-text);padding:calc(var(--form-field-padding-y) - 1px) var(--form-field-padding-x);font-size:var(--form-field-font-size);font-style:normal;font-weight:var(--font-weight-medium-emphasis);line-height:var(--form-field-line-height);width:100%}nv-fielddate .input-wrapper .input-container input:focus{outline:none}nv-fielddate .input-wrapper .input-container input::placeholder{overflow:hidden;color:var(--components-form-field-content-placeholder);text-overflow:ellipsis;font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--form-field-font-size);font-style:normal;font-weight:var(--font-weight-low-emphasis);line-height:var(--form-field-line-height)}nv-fielddate .input-wrapper .input-container input{}nv-fielddate .input-wrapper .input-container input[type=password]::-ms-clear,nv-fielddate .input-wrapper .input-container input[type=password]::-ms-reveal{display:none;width:0;height:0}nv-fielddate .input-wrapper .input-container input{font-feature-settings:"tnum";font-family:"TTNorms Pro Mono", monospace}nv-fielddate .input-wrapper .input-container>nv-iconbutton{border:0px;border-radius:0px}nv-fielddate .input-wrapper .input-container>nv-iconbutton:focus-visible{border-radius:var(--button-md-border-radius);outline-offset:-3px}nv-fielddate .input-wrapper .input-container>nv-iconbutton:last-of-type{border-top-right-radius:var(--form-field-radius);border-bottom-right-radius:var(--form-field-radius)}nv-fielddate .input-wrapper .input-container nv-icon.validation{color:var(--nv-field-border-default)}nv-fielddate .description{display:flex;align-items:center;align-self:stretch;gap:var(--spacing-1);color:var(--components-form-text-description-default);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--form-description-font-size);font-style:normal;line-height:var(--form-description-line-height)}nv-fielddate .error-description{display:flex;align-items:center;align-self:stretch;gap:var(--spacing-1);color:var(--components-form-text-description-default);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--form-description-font-size);font-style:normal;line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}`;
|
|
6
|
+
const nvFielddateCss = () => `nv-fieldslider .slider-container .track-container:has(.thumb:hover) .track-range{background:var(--components-slider-track-filled-hover)}nv-fieldslider .slider-container .track-container:has(.thumb:hover) .thumb{border-color:var(--components-slider-track-filled-hover)}nv-fieldslider .slider-container .track-container:has(.thumb:focus) .track-range{background:var(--components-slider-track-filled-focus)}nv-fieldslider .slider-container .track-container:has(.thumb:focus) .thumb{border-color:var(--components-slider-track-filled-focus)}nv-fieldslider[error] .slider-container .track-container .track .track-range{background:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb{border-color:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb:hover{border-color:var(--components-slider-track-filled-error);outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-slider-track-filled-error);outline-offset:calc(var(--focus-outline-offset) * 1);background-color:var(--components-slider-handler-background-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb:focus{border-color:var(--components-slider-track-filled-error);outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-slider-track-filled-error);outline-offset:calc(var(--focus-outline-offset) * 1);background-color:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container:has(.thumb:hover) .track-range{background:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container:has(.thumb:hover) .thumb{border-color:var(--components-slider-track-filled-error)}nv-fielddate{--nv-field-border-default:var(--components-form-field-border-default);--nv-field-border-hover:var(--components-form-field-border-hover);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--components-form-field-border-default);--nv-field-border-readonly:var(--components-form-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-brand);--nv-field-background:var(--components-form-field-background-default);display:flex;flex-direction:column;align-items:flex-start;gap:var(--form-gap-y);box-sizing:border-box;max-width:480px}nv-fielddate[fluid]:not([fluid=false]){max-width:unset}nv-fielddate[readonly]:not([readonly=false]){--nv-field-border-default:var(--components-form-field-border-readonly);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-background:var(--components-form-field-background-readonly)}nv-fielddate[error]:not([error=false]){--nv-field-border-default:var(--components-form-field-border-error);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--nv-field-border-default);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-destructive-in-field)}nv-fielddate[success]:not([success=false]){--nv-field-border-default:var(--components-form-field-border-success);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--nv-field-border-default);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-success)}nv-fielddate[required]:not([required=false]) label::after,nv-fielddate[aria-required=true] label::after{content:"*";color:var(--components-form-text-required);font-weight:var(--font-weight-high-emphasis)}nv-fielddate label{display:flex;align-items:center;gap:var(--form-label-gap);align-self:stretch;color:var(--components-form-text-label-default);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:var(--font-weight-medium-emphasis);line-height:var(--form-label-line-height)}nv-fielddate nv-popover{width:100%;display:block}nv-fielddate nv-popover [data-scope=popover]{padding:0;background-color:var(--components-list-dropdown-background);border:1px solid var(--components-list-dropdown-border);width:auto}nv-fielddate nv-popover [slot=content]{display:block;width:100%}nv-fielddate nv-popover .datepicker-container{border:none}nv-fielddate .input-wrapper{display:flex;flex-wrap:wrap;gap:var(--form-gap-x);align-items:stretch;align-self:stretch;display:flex;align-items:center;gap:8px}nv-fielddate .input-wrapper .input-container{display:flex;flex-grow:1;justify-content:center;align-items:center;align-self:stretch;border-radius:var(--form-field-radius);border-width:1px;border-style:solid;border-color:var(--nv-field-border-default);opacity:var(--components-form-opacity-default, 1);background:var(--nv-field-background);transition:all 150ms ease-out}nv-fielddate .input-wrapper .input-container:hover{border-color:var(--nv-field-border-hover)}nv-fielddate .input-wrapper .input-container:focus-within,nv-fielddate .input-wrapper .input-container:focus-within:hover,nv-fielddate .input-wrapper .input-container:focus,nv-fielddate .input-wrapper .input-container:focus:hover{border-color:var(--nv-field-border-focus);box-shadow:0px 0px 0px var(--focus-field-stroke) var(--nv-field-focus-box-shadow)}nv-fielddate .input-wrapper .input-container:has(input:read-only){background-color:var(--components-form-field-background-readonly);border-color:var(--nv-field-border-readonly)}nv-fielddate .input-wrapper .input-container:has(input:disabled){opacity:0.5;background-color:var(--components-form-field-background-disabled);border-color:var(--nv-field-border-disabled)}nv-fielddate .input-wrapper .input-container input{display:flex;align-items:center;flex:1 0 0;overflow:hidden;background-color:transparent;color:var(--components-form-field-content-text);padding:calc(var(--form-field-padding-y) - 1px) var(--form-field-padding-x);font-size:var(--form-field-font-size);font-style:normal;font-weight:var(--font-weight-medium-emphasis);line-height:var(--form-field-line-height);width:100%}nv-fielddate .input-wrapper .input-container input:focus{outline:none}nv-fielddate .input-wrapper .input-container input::placeholder{overflow:hidden;color:var(--components-form-field-content-placeholder);text-overflow:ellipsis;font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--form-field-font-size);font-style:normal;font-weight:var(--font-weight-low-emphasis);line-height:var(--form-field-line-height)}nv-fielddate .input-wrapper .input-container input{}nv-fielddate .input-wrapper .input-container input[type=password]::-ms-clear,nv-fielddate .input-wrapper .input-container input[type=password]::-ms-reveal{display:none;width:0;height:0}nv-fielddate .input-wrapper .input-container input{font-feature-settings:"tnum";font-family:"TTNorms Pro Mono", monospace}nv-fielddate .input-wrapper .input-container>nv-iconbutton{border:0px;border-radius:0px}nv-fielddate .input-wrapper .input-container>nv-iconbutton:focus-visible{border-radius:var(--button-md-border-radius);outline-offset:-3px}nv-fielddate .input-wrapper .input-container>nv-iconbutton:last-of-type{border-top-right-radius:var(--form-field-radius);border-bottom-right-radius:var(--form-field-radius)}nv-fielddate .input-wrapper .input-container nv-icon.validation{color:var(--nv-field-border-default)}nv-fielddate .description{display:flex;align-items:center;align-self:stretch;gap:var(--spacing-1);color:var(--components-form-text-description-default);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--form-description-font-size);font-style:normal;line-height:var(--form-description-line-height)}nv-fielddate .error-description{display:flex;align-items:center;align-self:stretch;gap:var(--spacing-1);color:var(--components-form-text-description-default);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--form-description-font-size);font-style:normal;line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}nv-fielddate .error-description[hidden]{display:none}`;
|
|
7
7
|
|
|
8
8
|
const NvFielddate = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -399,15 +399,15 @@ const NvFielddate = class {
|
|
|
399
399
|
? ariaRequiredAttrValue === 'true' || ariaRequiredAttrValue === ''
|
|
400
400
|
: undefined;
|
|
401
401
|
const useNativeRequired = this.required && (!useAriaRequired || ariaRequiredValue === true);
|
|
402
|
-
return (h(Host, { key: '
|
|
403
|
-
this.el.querySelector('[slot="label"]')) && (h("label", { key: '
|
|
402
|
+
return (h(Host, { key: '373ddbc08a6b5d6ca6f2ac368f0ec84067539313' }, ((this.label && this.label.length > 0) ||
|
|
403
|
+
this.el.querySelector('[slot="label"]')) && (h("label", { key: '8373d2e38786f41bda23dd8fe9d345d24fb27710', htmlFor: this.inputId }, h("slot", { key: '8ded993892e5eef5caec76081eff5d3ed2db695a', name: "label" }, this.label))), h("nv-popover", { key: '0a394aab113c9a964f7495481d728416b1b7b041', ref: this.setPopoverRef, id: this.popoverId, triggerMode: "controlled", placement: "bottom-start", open: this.open }, h("div", { key: 'ae7e1a4d7454b09969335a4772e77ba137a12389', slot: "trigger", class: "input-wrapper" }, h("slot", { key: '7b744ada5b12dca2ffaca4690f27a9a77240ea55', name: "before-input" }), h("div", { key: '9eb02599b7d7b6ee1835756525d8646d8a50be73', class: "input-container", onClick: this.handleInputContainerClick }, h("slot", { key: '882a358dd1f0865a0c46ca5d9c5f8fe4689de616', name: "leading-input" }), h("input", { key: '2f8603d625b8fbfe8a5287e5512fdb2b7309004b', id: this.inputId, ref: this.setInputRef, placeholder: this.placeholder ||
|
|
404
404
|
this.convertToInputmaskFormat(this.dateFormat), name: this.name, disabled: this.disabled, readOnly: this.readonly, required: useNativeRequired ? this.required : undefined, ...(ariaRequiredValue !== undefined && {
|
|
405
405
|
'aria-required': String(ariaRequiredValue),
|
|
406
|
-
}), autofocus: this.autofocus, onInput: this.handleInput, onFocus: this.handleFocus, "data-scope": "date" }), this.error && (h("nv-icon", { key: '
|
|
406
|
+
}), autofocus: this.autofocus, onInput: this.handleInput, onFocus: this.handleFocus, "data-scope": "date" }), this.error && (h("nv-icon", { key: 'ae611c7990a9ee817fcd8fec5c3c6068b995310d', name: "alert-circle", class: "validation", size: "md" })), this.success && (h("nv-icon", { key: '3fa08699f440d9dcbd9612965a3f1cf88b17a83c', name: "circle-check", class: "validation", size: "md" })), h("nv-iconbutton", { key: 'ee781c688e8bc62d17250dd4ec198e5706641cf7', class: "toggle-calendar-icon", name: "calendar" //{this.open ? 'chevron-top' : 'chevron-down'}
|
|
407
407
|
,
|
|
408
|
-
size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide calendar' : 'Show calendar', onClick: this.toggleCalendar, tabIndex: this.disabled ? -1 : 0 })), h("slot", { key: '
|
|
409
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
410
|
-
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '
|
|
408
|
+
size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide calendar' : 'Show calendar', onClick: this.toggleCalendar, tabIndex: this.disabled ? -1 : 0 })), h("slot", { key: 'ab360fe2a6d5ceb48899ba05e404548995348e96', name: "after-input" })), h("div", { key: '8379e7defd054c642fe0d25cd8f3890c351811b1', slot: "content" }, h("nv-calendar", { key: '316df6f492d8d684ba91429fe5e499330329d0a7', onSingleDateChange: this.handleSingleDateChange.bind(this), dateFormat: this.dateFormat, singleValue: this.singleValue, firstDayOfWeek: this.firstDayOfWeek, numberOfCalendars: this.numberOfCalendars, min: this.min, max: this.max, locale: this.locale, shortcutsPlacement: this.shortcutsPlacement, showActions: this.showActions, shortcuts: this.shortcuts, showWeekNumbers: this.showWeekNumbers, disabledDates: this.disabledDates, onValueChanged: this.handleCalendarValueChanged }))), ((this.description && this.description.length > 0) ||
|
|
409
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: '9bad6d56684e9fea1298b5338ed32c04f3ab364c', class: "description" }, h("slot", { key: '180f3d6aac34ed02bf7ac351319327d701d4a419', name: "description" }, this.description))), (this.errorDescription ||
|
|
410
|
+
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'b62cfbae2fec4d1e4c6d15f3bd3cf8e0936ec28f', hidden: !this.error, class: "error-description" }, this.el.querySelector('[slot="error-description"]') ? (h("slot", { name: "error-description" })) : (this.errorDescription))), h("slot", { key: '6c4f47488a757c5808ed1bbe8bcedaa5dce60da2' })));
|
|
411
411
|
}
|
|
412
412
|
get el() { return getElement(this); }
|
|
413
413
|
static get watchers() { return {
|