@nova-design-system/nova-webcomponents 3.0.0-beta.38 → 3.0.0-beta.39
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/blazor-docs.json +928 -198
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/{constants-69b40456.js → constants-2ae3d9eb.js} +22 -2
- package/dist/cjs/constants-2ae3d9eb.js.map +1 -0
- package/dist/cjs/index-5910ba06.js +8 -4
- package/dist/cjs/index.cjs.js +3 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/native.cjs.js +2 -2
- package/dist/cjs/nv-alert.cjs.entry.js +1 -1
- package/dist/cjs/nv-avatar.cjs.entry.js +1 -1
- package/dist/cjs/nv-badge_2.cjs.entry.js +1 -1
- package/dist/cjs/nv-button.cjs.entry.js +1 -1
- package/dist/cjs/nv-calendar.cjs.entry.js +984 -0
- package/dist/cjs/nv-calendar.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-col.cjs.entry.js +1 -1
- package/dist/cjs/nv-datagrid.cjs.entry.js +2 -2
- package/dist/cjs/nv-datagridbody.cjs.entry.js +1 -1
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js +1 -1
- package/dist/cjs/nv-datagriddatacell.cjs.entry.js +1 -1
- package/dist/cjs/nv-datagridhead.cjs.entry.js +1 -1
- package/dist/cjs/nv-datagridrow.cjs.entry.js +1 -1
- package/dist/cjs/nv-dialog.cjs.entry.js +2 -2
- package/dist/cjs/nv-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +10 -4
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +146 -223
- package/dist/cjs/nv-fielddropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +37 -32
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +12 -11
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +9 -3
- package/dist/cjs/nv-fieldnumber.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +9 -3
- package/dist/cjs/nv-fieldpassword.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldradio.cjs.entry.js +9 -3
- package/dist/cjs/nv-fieldradio.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldselect.cjs.entry.js +11 -5
- package/dist/cjs/nv-fieldselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtext.cjs.entry.js +9 -3
- package/dist/cjs/nv-fieldtext.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +9 -3
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtime.cjs.entry.js +20 -12
- package/dist/cjs/nv-fieldtime.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-icon.cjs.entry.js +19 -12
- package/dist/cjs/nv-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-iconbutton.cjs.entry.js +1 -1
- package/dist/cjs/nv-loader.cjs.entry.js +1 -1
- package/dist/cjs/nv-menu.cjs.entry.js +1 -1
- package/dist/cjs/nv-menuitem.cjs.entry.js +1 -1
- package/dist/cjs/nv-popover.cjs.entry.js +2 -2
- package/dist/cjs/nv-popover.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-row.cjs.entry.js +1 -1
- package/dist/cjs/nv-stack.cjs.entry.js +1 -1
- package/dist/cjs/nv-table.cjs.entry.js +2 -2
- package/dist/cjs/nv-tablebody.cjs.entry.js +1 -1
- package/dist/cjs/nv-tablecolumn.cjs.entry.js +1 -1
- package/dist/cjs/nv-tabledatacell.cjs.entry.js +1 -1
- package/dist/cjs/nv-tablehead.cjs.entry.js +1 -1
- package/dist/cjs/nv-tablerow.cjs.entry.js +1 -1
- package/dist/cjs/nv-toggle.cjs.entry.js +2 -2
- package/dist/cjs/nv-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/uri.utils-8523ad2b.js +26 -0
- package/dist/cjs/uri.utils-8523ad2b.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/nv-calendar/nv-calendar.css +341 -0
- package/dist/collection/components/nv-calendar/nv-calendar.docs.js +401 -0
- package/dist/collection/components/nv-calendar/nv-calendar.docs.js.map +1 -0
- package/dist/collection/components/nv-calendar/nv-calendar.js +1328 -0
- package/dist/collection/components/nv-calendar/nv-calendar.js.map +1 -0
- package/dist/collection/components/nv-col/nv-col.js +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js +2 -2
- package/dist/collection/components/nv-datagridbody/nv-datagridbody.js +1 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js +1 -1
- package/dist/collection/components/nv-datagriddatacell/nv-datagriddatacell.js +1 -1
- package/dist/collection/components/nv-datagridhead/nv-datagridhead.js +1 -1
- package/dist/collection/components/nv-datagridrow/nv-datagridrow.js +1 -1
- package/dist/collection/components/nv-dialog/nv-dialog.css +2 -0
- package/dist/collection/components/nv-dialog/nv-dialog.js +1 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js +1 -1
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.js +1 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.docs.js +8 -0
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js +30 -4
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js +11 -3
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +197 -252
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/{nv-fielddropdown.css → styles/nv-fielddropdown.css} +0 -3
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +55 -47
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js.map +1 -1
- package/dist/collection/components/nv-fielddropdownitem/{nv-fielddropdownitem.css → styles/nv-fielddropdownitem.css} +5 -3
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +1 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.css +0 -2
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js +10 -2
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +34 -33
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js.map +1 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js +8 -0
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +29 -3
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js.map +1 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.docs.js +8 -0
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +30 -4
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js.map +1 -1
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.docs.js +8 -0
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +29 -3
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js.map +1 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js +8 -19
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +31 -5
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js.map +1 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js +8 -0
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +30 -4
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js.map +1 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.docs.js +8 -0
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +29 -3
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js.map +1 -1
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.css +20 -17
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.docs.js +8 -0
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js +38 -10
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js.map +1 -1
- package/dist/collection/components/nv-icon/nv-icon.js +19 -17
- package/dist/collection/components/nv-icon/nv-icon.js.map +1 -1
- package/dist/collection/components/nv-icon/nv-icons.js.map +1 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +1 -1
- package/dist/collection/components/nv-loader/nv-loader.js +1 -1
- package/dist/collection/components/nv-menu/nv-menu.js +1 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +2 -2
- package/dist/collection/components/nv-popover/nv-popover.css +3 -0
- package/dist/collection/components/nv-popover/nv-popover.js +1 -1
- package/dist/collection/components/nv-row/nv-row.js +1 -1
- package/dist/collection/components/nv-stack/nv-stack.js +1 -1
- package/dist/collection/components/nv-table/nv-table.js +2 -2
- package/dist/collection/components/nv-tablebody/nv-tablebody.js +1 -1
- package/dist/collection/components/nv-tablecolumn/nv-tablecolumn.js +1 -1
- package/dist/collection/components/nv-tabledatacell/nv-tabledatacell.js +1 -1
- package/dist/collection/components/nv-tablehead/nv-tablehead.js +1 -1
- package/dist/collection/components/nv-tablerow/nv-tablerow.js +1 -1
- package/dist/collection/components/nv-toggle/nv-toggle.js +2 -2
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +1 -1
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/interfaces/calendarShortcut.js +2 -0
- package/dist/collection/interfaces/calendarShortcut.js.map +1 -0
- package/dist/collection/interfaces/dateRange.js +2 -0
- package/dist/collection/interfaces/dateRange.js.map +1 -0
- package/dist/collection/interfaces/localization.js +2 -0
- package/dist/collection/interfaces/localization.js.map +1 -0
- package/dist/collection/templates/navigation.docs.js +5 -0
- package/dist/collection/templates/navigation.docs.js.map +1 -1
- package/dist/collection/utils/constants.js +18 -0
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/collection/utils/test/uri.utils.test.js +21 -0
- package/dist/collection/utils/test/uri.utils.test.js.map +1 -0
- package/dist/collection/utils/uri.utils.js +15 -0
- package/dist/collection/utils/uri.utils.js.map +1 -0
- package/dist/components/index.js +3 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/nv-alert.js +2 -2
- package/dist/components/nv-avatar.js +2 -2
- package/dist/components/nv-badge.js +1 -1
- package/dist/components/nv-breadcrumb.js +2 -2
- package/dist/components/nv-button.js +1 -1
- package/dist/components/nv-calendar.d.ts +11 -0
- package/dist/components/nv-calendar.js +1046 -0
- package/dist/components/nv-calendar.js.map +1 -0
- package/dist/components/nv-col.js +1 -1
- package/dist/components/nv-datagrid.js +2 -2
- package/dist/components/nv-datagridbody.js +1 -1
- package/dist/components/nv-datagridcolumn.js +1 -1
- package/dist/components/nv-datagriddatacell.js +1 -1
- package/dist/components/nv-datagridhead.js +1 -1
- package/dist/components/nv-datagridrow.js +1 -1
- package/dist/components/nv-dialog.js +7 -7
- package/dist/components/nv-dialog.js.map +1 -1
- package/dist/components/nv-dialogfooter.js +1 -1
- package/dist/components/nv-dialogheader.js +1 -1
- package/dist/components/nv-fieldcheckbox.js +1 -1
- package/dist/components/nv-fielddropdown.js +154 -230
- package/dist/components/nv-fielddropdown.js.map +1 -1
- package/dist/components/nv-fielddropdownitem.js +1 -1
- package/dist/components/nv-fielddropdownitemcheck.js +1 -1
- package/dist/components/nv-fieldmultiselect.js +21 -19
- package/dist/components/nv-fieldmultiselect.js.map +1 -1
- package/dist/components/nv-fieldnumber.js +12 -5
- package/dist/components/nv-fieldnumber.js.map +1 -1
- package/dist/components/nv-fieldpassword.js +13 -6
- package/dist/components/nv-fieldpassword.js.map +1 -1
- package/dist/components/nv-fieldradio.js +11 -4
- package/dist/components/nv-fieldradio.js.map +1 -1
- package/dist/components/nv-fieldselect.js +13 -6
- package/dist/components/nv-fieldselect.js.map +1 -1
- package/dist/components/nv-fieldtext.js +12 -5
- package/dist/components/nv-fieldtext.js.map +1 -1
- package/dist/components/nv-fieldtextarea.js +11 -4
- package/dist/components/nv-fieldtextarea.js.map +1 -1
- package/dist/components/nv-fieldtime.js +25 -16
- package/dist/components/nv-fieldtime.js.map +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 +4 -4
- package/dist/components/nv-menuitem.js +1 -1
- package/dist/components/nv-popover.js +1 -1
- package/dist/components/nv-row.js +1 -1
- package/dist/components/nv-stack.js +1 -1
- package/dist/components/nv-table.js +2 -2
- package/dist/components/nv-tablebody.js +1 -1
- package/dist/components/nv-tablecolumn.js +1 -1
- package/dist/components/nv-tabledatacell.js +1 -1
- package/dist/components/nv-tablehead.js +1 -1
- package/dist/components/nv-tablerow.js +1 -1
- package/dist/components/nv-toggle.js +2 -2
- package/dist/components/nv-tooltip.js +1 -1
- package/dist/components/{p-802c9204.js → p-17b6705f.js} +5 -5
- package/dist/components/{p-802c9204.js.map → p-17b6705f.js.map} +1 -1
- package/dist/components/{p-2768d2c0.js → p-33e07c91.js} +2 -2
- package/dist/components/{p-2768d2c0.js.map → p-33e07c91.js.map} +1 -1
- package/dist/components/{p-b877a150.js → p-48317c2c.js} +3 -3
- package/dist/components/{p-b877a150.js.map → p-48317c2c.js.map} +1 -1
- package/dist/components/{p-a9a52105.js → p-492ad81d.js} +1178 -5
- package/dist/components/p-492ad81d.js.map +1 -0
- package/dist/components/{p-d20958c4.js → p-5f5e2bf2.js} +21 -15
- package/dist/components/p-5f5e2bf2.js.map +1 -0
- package/dist/components/{p-1c83f303.js → p-659a5ae4.js} +4 -4
- package/dist/components/{p-1c83f303.js.map → p-659a5ae4.js.map} +1 -1
- package/dist/components/{p-18d221e3.js → p-73e703a1.js} +2 -2
- package/dist/components/{p-18d221e3.js.map → p-73e703a1.js.map} +1 -1
- package/dist/components/p-7e58e7d1.js +23 -0
- package/dist/components/p-7e58e7d1.js.map +1 -0
- package/dist/components/{p-16badb3b.js → p-83e1177b.js} +3 -3
- package/dist/components/{p-16badb3b.js.map → p-83e1177b.js.map} +1 -1
- package/dist/components/{p-ab87be7f.js → p-842afd9a.js} +3 -3
- package/dist/components/{p-ab87be7f.js.map → p-842afd9a.js.map} +1 -1
- package/dist/components/{p-79bf6acb.js → p-88165c0e.js} +2 -2
- package/dist/components/{p-79bf6acb.js.map → p-88165c0e.js.map} +1 -1
- package/dist/components/{p-91bf0cb6.js → p-8d7a57d1.js} +3 -3
- package/dist/components/{p-91bf0cb6.js.map → p-8d7a57d1.js.map} +1 -1
- package/dist/components/p-c1765831.js +89 -0
- package/dist/components/p-c1765831.js.map +1 -0
- package/dist/components/p-f40a7e2f.js +95 -0
- package/dist/components/p-f40a7e2f.js.map +1 -0
- package/dist/{esm/constants-0181211f.js → components/p-fd65c51f.js} +22 -3
- package/dist/components/p-fd65c51f.js.map +1 -0
- package/dist/components/{p-98ff0e5f.js → p-fdf57d25.js} +13 -6
- package/dist/components/p-fdf57d25.js.map +1 -0
- package/dist/docs.json +868 -145
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/{components/p-56f71851.js → esm/constants-8243d2ea.js} +22 -3
- package/dist/esm/constants-8243d2ea.js.map +1 -0
- package/dist/esm/index-fac2d5d2.js +8 -4
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/native.js +2 -2
- package/dist/esm/nv-alert.entry.js +1 -1
- package/dist/esm/nv-avatar.entry.js +1 -1
- package/dist/esm/nv-badge_2.entry.js +1 -1
- package/dist/esm/nv-button.entry.js +1 -1
- package/dist/esm/nv-calendar.entry.js +980 -0
- package/dist/esm/nv-calendar.entry.js.map +1 -0
- package/dist/esm/nv-col.entry.js +1 -1
- package/dist/esm/nv-datagrid.entry.js +2 -2
- package/dist/esm/nv-datagridbody.entry.js +1 -1
- package/dist/esm/nv-datagridcolumn.entry.js +1 -1
- package/dist/esm/nv-datagriddatacell.entry.js +1 -1
- package/dist/esm/nv-datagridhead.entry.js +1 -1
- package/dist/esm/nv-datagridrow.entry.js +1 -1
- package/dist/esm/nv-dialog.entry.js +2 -2
- package/dist/esm/nv-dialog.entry.js.map +1 -1
- package/dist/esm/nv-dialogfooter_2.entry.js +2 -2
- package/dist/esm/nv-fieldcheckbox.entry.js +10 -4
- package/dist/esm/nv-fieldcheckbox.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdown.entry.js +146 -223
- package/dist/esm/nv-fielddropdown.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdownitem.entry.js +37 -32
- package/dist/esm/nv-fielddropdownitem.entry.js.map +1 -1
- package/dist/esm/nv-fieldmultiselect.entry.js +12 -11
- package/dist/esm/nv-fieldmultiselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldnumber.entry.js +9 -3
- package/dist/esm/nv-fieldnumber.entry.js.map +1 -1
- package/dist/esm/nv-fieldpassword.entry.js +9 -3
- package/dist/esm/nv-fieldpassword.entry.js.map +1 -1
- package/dist/esm/nv-fieldradio.entry.js +9 -3
- package/dist/esm/nv-fieldradio.entry.js.map +1 -1
- package/dist/esm/nv-fieldselect.entry.js +11 -5
- package/dist/esm/nv-fieldselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldtext.entry.js +9 -3
- package/dist/esm/nv-fieldtext.entry.js.map +1 -1
- package/dist/esm/nv-fieldtextarea.entry.js +9 -3
- package/dist/esm/nv-fieldtextarea.entry.js.map +1 -1
- package/dist/esm/nv-fieldtime.entry.js +20 -12
- package/dist/esm/nv-fieldtime.entry.js.map +1 -1
- package/dist/esm/nv-icon.entry.js +19 -12
- package/dist/esm/nv-icon.entry.js.map +1 -1
- package/dist/esm/nv-iconbutton.entry.js +1 -1
- package/dist/esm/nv-loader.entry.js +1 -1
- package/dist/esm/nv-menu.entry.js +1 -1
- package/dist/esm/nv-menuitem.entry.js +1 -1
- package/dist/esm/nv-popover.entry.js +2 -2
- package/dist/esm/nv-popover.entry.js.map +1 -1
- package/dist/esm/nv-row.entry.js +1 -1
- package/dist/esm/nv-stack.entry.js +1 -1
- package/dist/esm/nv-table.entry.js +2 -2
- package/dist/esm/nv-tablebody.entry.js +1 -1
- package/dist/esm/nv-tablecolumn.entry.js +1 -1
- package/dist/esm/nv-tabledatacell.entry.js +1 -1
- package/dist/esm/nv-tablehead.entry.js +1 -1
- package/dist/esm/nv-tablerow.entry.js +1 -1
- package/dist/esm/nv-toggle.entry.js +2 -2
- package/dist/esm/nv-tooltip.entry.js +1 -1
- package/dist/esm/uri.utils-4c2a1e4c.js +23 -0
- package/dist/esm/uri.utils-4c2a1e4c.js.map +1 -0
- package/dist/native/index.esm.js +1 -1
- package/dist/native/index.esm.js.map +1 -1
- package/dist/native/native.css +1 -1
- package/dist/native/native.esm.js +1 -1
- package/dist/native/native.esm.js.map +1 -1
- package/dist/native/{p-8f4788b9.entry.js → p-1bae8cdd.entry.js} +2 -2
- package/dist/native/{p-8c1a6aa6.entry.js → p-1ca72f74.entry.js} +2 -2
- package/dist/native/{p-d67b7502.entry.js → p-2151f564.entry.js} +2 -2
- package/dist/native/{p-87083363.entry.js → p-2b99e720.entry.js} +2 -2
- package/dist/native/{p-87083363.entry.js.map → p-2b99e720.entry.js.map} +1 -1
- package/dist/native/p-3422397d.entry.js +2 -0
- package/dist/native/{p-e3827605.entry.js → p-39b4ec02.entry.js} +2 -2
- package/dist/native/p-39b4ec02.entry.js.map +1 -0
- package/dist/native/{p-a06bafad.entry.js → p-3b2c7871.entry.js} +2 -2
- package/dist/native/{p-51ad8bcd.entry.js → p-3bfd5a30.entry.js} +2 -2
- package/dist/native/p-3bfd5a30.entry.js.map +1 -0
- package/dist/native/p-44e7e3e8.entry.js +2 -0
- package/dist/native/p-44e7e3e8.entry.js.map +1 -0
- package/dist/native/p-46c9aa04.entry.js +2 -0
- package/dist/native/p-46c9aa04.entry.js.map +1 -0
- package/dist/native/p-4a7fa613.entry.js +2 -0
- package/dist/native/{p-96902bb3.entry.js.map → p-4a7fa613.entry.js.map} +1 -1
- package/dist/native/{p-e192c25c.entry.js → p-4db7add6.entry.js} +2 -2
- package/dist/native/{p-a998f8df.entry.js → p-4eacd598.entry.js} +2 -2
- package/dist/native/p-51e0c5d3.entry.js +2 -0
- package/dist/native/{p-2aebf31b.entry.js.map → p-51e0c5d3.entry.js.map} +1 -1
- package/dist/native/p-57513eb0.entry.js +2 -0
- package/dist/native/{p-ab5a8ce5.entry.js.map → p-57513eb0.entry.js.map} +1 -1
- package/dist/native/p-5851fbed.entry.js +2 -0
- package/dist/native/{p-61d2cb2e.entry.js → p-634b49fe.entry.js} +2 -2
- package/dist/native/{p-211f7b19.entry.js → p-63c894f0.entry.js} +2 -2
- package/dist/native/{p-130f6c47.entry.js → p-6acbf729.entry.js} +2 -2
- package/dist/native/p-6acbf729.entry.js.map +1 -0
- package/dist/native/{p-bd6d9237.entry.js → p-7211a3cb.entry.js} +2 -2
- package/dist/native/{p-bd6d9237.entry.js.map → p-7211a3cb.entry.js.map} +1 -1
- package/dist/native/p-79765c7d.entry.js +2 -0
- package/dist/native/p-7e58e7d1.js +2 -0
- package/dist/native/p-7e58e7d1.js.map +1 -0
- package/dist/native/{p-3c004551.entry.js → p-833af1bf.entry.js} +2 -2
- package/dist/native/p-833af1bf.entry.js.map +1 -0
- package/dist/native/p-87bd53df.entry.js +2 -0
- package/dist/native/p-87bd53df.entry.js.map +1 -0
- package/dist/native/p-8b323a15.entry.js +2 -0
- package/dist/native/{p-10ba289c.entry.js.map → p-8b323a15.entry.js.map} +1 -1
- package/dist/native/p-943a19a5.entry.js +2 -0
- package/dist/native/{p-8ee30013.entry.js.map → p-943a19a5.entry.js.map} +1 -1
- package/dist/native/{p-2f62f097.entry.js → p-9c8eadde.entry.js} +2 -2
- package/dist/native/p-ac81e143.entry.js +2 -0
- package/dist/native/p-ac81e143.entry.js.map +1 -0
- package/dist/native/{p-99e7a452.entry.js → p-afc16010.entry.js} +2 -2
- package/dist/native/p-afc16010.entry.js.map +1 -0
- package/dist/native/{p-54df2174.entry.js → p-b13b2663.entry.js} +2 -2
- package/dist/native/p-b13b2663.entry.js.map +1 -0
- package/dist/native/p-b2ace8e9.entry.js +2 -0
- package/dist/native/p-b2ace8e9.entry.js.map +1 -0
- package/dist/native/{p-4f11286d.entry.js → p-bac62e20.entry.js} +2 -2
- package/dist/native/{p-46553ffd.entry.js → p-bfb6e22c.entry.js} +2 -2
- package/dist/native/p-c29be15d.entry.js +2 -0
- package/dist/native/{p-aa2834e2.entry.js.map → p-c29be15d.entry.js.map} +1 -1
- package/dist/native/{p-1bb5a6bd.entry.js → p-cba14168.entry.js} +2 -2
- package/dist/native/p-cba14168.entry.js.map +1 -0
- package/dist/native/p-dbb89408.entry.js +2 -0
- package/dist/native/p-e1255160.js +2 -0
- package/dist/native/p-e1255160.js.map +1 -0
- package/dist/native/p-e1b22ca7.entry.js +2 -0
- package/dist/native/p-e1b22ca7.entry.js.map +1 -0
- package/dist/native/{p-d776ed48.entry.js → p-ef9b66d4.entry.js} +2 -2
- package/dist/native/p-f867541d.entry.js +2 -0
- package/dist/native/p-f954a077.entry.js +2 -0
- package/dist/native/{p-f30ce086.entry.js.map → p-f954a077.entry.js.map} +1 -1
- package/dist/native/{p-d24586ed.entry.js → p-fa33ec18.entry.js} +2 -2
- package/dist/native/{p-56f71851.js → p-fd65c51f.js} +2 -2
- package/dist/native/p-fd65c51f.js.map +1 -0
- package/dist/native/p-ff7eea0e.entry.js +2 -0
- package/dist/types/components/nv-calendar/nv-calendar.d.ts +383 -0
- package/dist/types/components/nv-calendar/nv-calendar.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldcheckbox/nv-fieldcheckbox.d.ts +6 -0
- package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +45 -62
- package/dist/types/components/nv-fielddropdownitem/nv-fielddropdownitem.d.ts +27 -13
- package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.d.ts +7 -10
- package/dist/types/components/nv-fieldnumber/nv-fieldnumber.d.ts +6 -0
- package/dist/types/components/nv-fieldpassword/nv-fieldpassword.d.ts +6 -0
- package/dist/types/components/nv-fieldradio/nv-fieldradio.d.ts +6 -0
- package/dist/types/components/nv-fieldselect/nv-fieldselect.d.ts +6 -0
- package/dist/types/components/nv-fieldtext/nv-fieldtext.d.ts +6 -0
- package/dist/types/components/nv-fieldtextarea/nv-fieldtextarea.d.ts +6 -0
- package/dist/types/components/nv-fieldtime/nv-fieldtime.d.ts +6 -0
- package/dist/types/components/nv-icon/nv-icon.d.ts +6 -4
- package/dist/types/components.d.ts +292 -28
- package/dist/types/index.d.ts +4 -0
- package/dist/types/interfaces/calendarShortcut.d.ts +17 -0
- package/dist/types/interfaces/dateRange.d.ts +13 -0
- package/dist/types/interfaces/localization.d.ts +9 -0
- package/dist/types/utils/constants.d.ts +2 -0
- package/dist/types/utils/uri.utils.d.ts +6 -0
- package/dist/vscode-data.json +180 -56
- package/hydrate/index.js +2104 -1085
- package/hydrate/index.mjs +2104 -1085
- package/package.json +7 -3
- package/dist/cjs/app-globals-bd4d701e.js +0 -11
- package/dist/cjs/app-globals-bd4d701e.js.map +0 -1
- package/dist/cjs/constants-69b40456.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitem/DropdownItemSelectedEventDetail.js +0 -2
- package/dist/collection/components/nv-fielddropdownitem/DropdownItemSelectedEventDetail.js.map +0 -1
- package/dist/collection/dev/dev-components.js +0 -3
- package/dist/collection/dev/dev-components.js.map +0 -1
- package/dist/collection/dev/dev-forms.js +0 -3
- package/dist/collection/dev/dev-forms.js.map +0 -1
- package/dist/collection/dev/dev-root.js +0 -23
- package/dist/collection/dev/dev-root.js.map +0 -1
- package/dist/collection/dev/dev-utils.js +0 -54
- package/dist/collection/dev/dev-utils.js.map +0 -1
- package/dist/collection/global.js +0 -6
- package/dist/collection/global.js.map +0 -1
- package/dist/components/p-17714233.js +0 -1263
- package/dist/components/p-17714233.js.map +0 -1
- package/dist/components/p-56f71851.js.map +0 -1
- package/dist/components/p-98ff0e5f.js.map +0 -1
- package/dist/components/p-a9a52105.js.map +0 -1
- package/dist/components/p-d20958c4.js.map +0 -1
- package/dist/components/p-dd34b97d.js +0 -90
- package/dist/components/p-dd34b97d.js.map +0 -1
- package/dist/esm/app-globals-0a94217b.js +0 -9
- package/dist/esm/app-globals-0a94217b.js.map +0 -1
- package/dist/esm/constants-0181211f.js.map +0 -1
- package/dist/native/p-02bb8184.entry.js +0 -2
- package/dist/native/p-09850aa9.entry.js +0 -2
- package/dist/native/p-09850aa9.entry.js.map +0 -1
- package/dist/native/p-10ba289c.entry.js +0 -2
- package/dist/native/p-1208abf2.entry.js +0 -2
- package/dist/native/p-1208abf2.entry.js.map +0 -1
- package/dist/native/p-130f6c47.entry.js.map +0 -1
- package/dist/native/p-180c45ff.entry.js +0 -2
- package/dist/native/p-180c45ff.entry.js.map +0 -1
- package/dist/native/p-1bb5a6bd.entry.js.map +0 -1
- package/dist/native/p-273d55e5.entry.js +0 -2
- package/dist/native/p-273d55e5.entry.js.map +0 -1
- package/dist/native/p-2aebf31b.entry.js +0 -2
- package/dist/native/p-3c004551.entry.js.map +0 -1
- package/dist/native/p-51ad8bcd.entry.js.map +0 -1
- package/dist/native/p-54df2174.entry.js.map +0 -1
- package/dist/native/p-56f71851.js.map +0 -1
- package/dist/native/p-892052c2.entry.js +0 -2
- package/dist/native/p-8ee30013.entry.js +0 -2
- package/dist/native/p-96902bb3.entry.js +0 -2
- package/dist/native/p-99e7a452.entry.js.map +0 -1
- package/dist/native/p-aa2834e2.entry.js +0 -2
- package/dist/native/p-ab5a8ce5.entry.js +0 -2
- package/dist/native/p-c398cdb4.entry.js +0 -2
- package/dist/native/p-c398cdb4.entry.js.map +0 -1
- package/dist/native/p-dc9dd5a7.entry.js +0 -2
- package/dist/native/p-e3827605.entry.js.map +0 -1
- package/dist/native/p-e5a7596b.entry.js +0 -2
- package/dist/native/p-e6f45df2.entry.js +0 -2
- package/dist/native/p-ed47a702.entry.js +0 -2
- package/dist/native/p-f30ce086.entry.js +0 -2
- package/dist/native/p-f3fbdea6.js +0 -2
- package/dist/native/p-f3fbdea6.js.map +0 -1
- package/dist/types/components/nv-fielddropdownitem/DropdownItemSelectedEventDetail.d.ts +0 -21
- package/dist/types/dev/dev-components.d.ts +0 -2
- package/dist/types/dev/dev-forms.d.ts +0 -2
- package/dist/types/dev/dev-utils.d.ts +0 -17
- package/dist/types/global.d.ts +0 -1
- /package/dist/native/{p-8f4788b9.entry.js.map → p-1bae8cdd.entry.js.map} +0 -0
- /package/dist/native/{p-8c1a6aa6.entry.js.map → p-1ca72f74.entry.js.map} +0 -0
- /package/dist/native/{p-d67b7502.entry.js.map → p-2151f564.entry.js.map} +0 -0
- /package/dist/native/{p-dc9dd5a7.entry.js.map → p-3422397d.entry.js.map} +0 -0
- /package/dist/native/{p-a06bafad.entry.js.map → p-3b2c7871.entry.js.map} +0 -0
- /package/dist/native/{p-e192c25c.entry.js.map → p-4db7add6.entry.js.map} +0 -0
- /package/dist/native/{p-a998f8df.entry.js.map → p-4eacd598.entry.js.map} +0 -0
- /package/dist/native/{p-e5a7596b.entry.js.map → p-5851fbed.entry.js.map} +0 -0
- /package/dist/native/{p-61d2cb2e.entry.js.map → p-634b49fe.entry.js.map} +0 -0
- /package/dist/native/{p-211f7b19.entry.js.map → p-63c894f0.entry.js.map} +0 -0
- /package/dist/native/{p-e6f45df2.entry.js.map → p-79765c7d.entry.js.map} +0 -0
- /package/dist/native/{p-2f62f097.entry.js.map → p-9c8eadde.entry.js.map} +0 -0
- /package/dist/native/{p-4f11286d.entry.js.map → p-bac62e20.entry.js.map} +0 -0
- /package/dist/native/{p-46553ffd.entry.js.map → p-bfb6e22c.entry.js.map} +0 -0
- /package/dist/native/{p-02bb8184.entry.js.map → p-dbb89408.entry.js.map} +0 -0
- /package/dist/native/{p-d776ed48.entry.js.map → p-ef9b66d4.entry.js.map} +0 -0
- /package/dist/native/{p-ed47a702.entry.js.map → p-f867541d.entry.js.map} +0 -0
- /package/dist/native/{p-d24586ed.entry.js.map → p-fa33ec18.entry.js.map} +0 -0
- /package/dist/native/{p-892052c2.entry.js.map → p-ff7eea0e.entry.js.map} +0 -0
- /package/dist/types/{dev/dev-root.d.ts → utils/test/uri.utils.test.d.ts} +0 -0
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { DateRange } from '../../interfaces/dateRange';
|
|
3
|
+
/**
|
|
4
|
+
* @slot default - Child content of the component.
|
|
5
|
+
* @slot actions - Child content of the component.
|
|
6
|
+
*/
|
|
7
|
+
export declare class NvCalendar {
|
|
8
|
+
el: HTMLNvCalendarElement;
|
|
9
|
+
/****************************************************************************/
|
|
10
|
+
/**
|
|
11
|
+
* First day of the week (0 = Sunday, 1 = Monday, etc.)
|
|
12
|
+
* @default 0
|
|
13
|
+
*/
|
|
14
|
+
readonly firstDayOfWeek: number;
|
|
15
|
+
/**
|
|
16
|
+
* Number of calendars to display
|
|
17
|
+
* @default 1
|
|
18
|
+
*/
|
|
19
|
+
numberOfCalendars: number;
|
|
20
|
+
/**
|
|
21
|
+
* Selected date (ISO string format)
|
|
22
|
+
* ex: "2025-03-15"
|
|
23
|
+
*/
|
|
24
|
+
singleValue: string;
|
|
25
|
+
/**
|
|
26
|
+
* Selected date range
|
|
27
|
+
* format: { start: ISO string, end: ISO string }
|
|
28
|
+
* ex: { start: "2025-03-15", end: "2025-03-20" }
|
|
29
|
+
*/
|
|
30
|
+
rangeValue: string;
|
|
31
|
+
/**
|
|
32
|
+
* Minimum date for selection (ISO string format, ex: "2025-01-01")
|
|
33
|
+
*/
|
|
34
|
+
readonly min?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Maximum date for selection (ISO string format, ex: "2025-12-31")
|
|
37
|
+
*/
|
|
38
|
+
readonly max?: string;
|
|
39
|
+
/** Disabled dates (ISO string array)
|
|
40
|
+
* @default '[]'
|
|
41
|
+
*/
|
|
42
|
+
readonly disabledDates: string;
|
|
43
|
+
/** Locale for date formatting
|
|
44
|
+
* @default 'en-BE'
|
|
45
|
+
*/
|
|
46
|
+
readonly locale: string;
|
|
47
|
+
/** Date format (ex: 'YYYY-MM-DD', 'DD-MM-YYYY', etc.)
|
|
48
|
+
* @default 'YYYY-MM-DD'
|
|
49
|
+
* @note If the date format is in UTC mode, the date will be displayed in UTC time.
|
|
50
|
+
* @note If the date format is not in UTC mode, the date will be displayed in the local time.
|
|
51
|
+
*/
|
|
52
|
+
readonly dateFormat: string;
|
|
53
|
+
/**
|
|
54
|
+
* Footer placement
|
|
55
|
+
* @default 'bottom'
|
|
56
|
+
*/
|
|
57
|
+
readonly shortcutsPlacement: 'bottom' | 'left' | 'right';
|
|
58
|
+
/**
|
|
59
|
+
* Selection type (single date or date range)
|
|
60
|
+
* @default 'single'
|
|
61
|
+
*/
|
|
62
|
+
readonly selectionType: 'single' | 'range';
|
|
63
|
+
/**
|
|
64
|
+
* Show action buttons
|
|
65
|
+
* @default false
|
|
66
|
+
*/
|
|
67
|
+
readonly showActions: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Custom actions to display in the footer
|
|
70
|
+
* JSON array of objects with the following properties:
|
|
71
|
+
* - label: string
|
|
72
|
+
* - onClick: function
|
|
73
|
+
* @default '[]'
|
|
74
|
+
*/
|
|
75
|
+
readonly shortcuts: string;
|
|
76
|
+
/**
|
|
77
|
+
* Show week numbers
|
|
78
|
+
* @default true
|
|
79
|
+
*/
|
|
80
|
+
readonly showWeekNumbers: boolean;
|
|
81
|
+
/** Cache for parsed disabled dates */
|
|
82
|
+
private parsedDisabledDates;
|
|
83
|
+
/****************************************************************************/
|
|
84
|
+
/** Current date */
|
|
85
|
+
currentDate: Date;
|
|
86
|
+
/** Selected date */
|
|
87
|
+
selectedDate: Date | null;
|
|
88
|
+
/** Start date */
|
|
89
|
+
startDate: Date | null;
|
|
90
|
+
/** End date */
|
|
91
|
+
endDate: Date | null;
|
|
92
|
+
/** List of formatted months for the selector */
|
|
93
|
+
private months;
|
|
94
|
+
/****************************************************************************/
|
|
95
|
+
/**
|
|
96
|
+
* Emitted when a single date is selected
|
|
97
|
+
*/
|
|
98
|
+
singleDateChange: EventEmitter<string>;
|
|
99
|
+
/**
|
|
100
|
+
* Emitted when a date range is selected
|
|
101
|
+
*/
|
|
102
|
+
rangeDateChange: EventEmitter<DateRange>;
|
|
103
|
+
/****************************************************************************/
|
|
104
|
+
componentWillLoad(): void;
|
|
105
|
+
/****************************************************************************/
|
|
106
|
+
/**
|
|
107
|
+
* Change the displayed month
|
|
108
|
+
* @param {number} offset - Month offset (-1 for previous, 1 for next)
|
|
109
|
+
* @param {number} calendarOffset - Month offset for the calendar (0 by default)
|
|
110
|
+
*/
|
|
111
|
+
private changeMonth;
|
|
112
|
+
/**
|
|
113
|
+
* Handles date selection based on the mode
|
|
114
|
+
* @param {Date} date - Selected date
|
|
115
|
+
*/
|
|
116
|
+
private handleDateSelection;
|
|
117
|
+
/**
|
|
118
|
+
* Handles single date selection
|
|
119
|
+
* @param {Date} date - Selected date
|
|
120
|
+
*/
|
|
121
|
+
private handleSingleSelection;
|
|
122
|
+
/**
|
|
123
|
+
* Handles range date selection
|
|
124
|
+
* @param {Date} date - Selected date
|
|
125
|
+
*/
|
|
126
|
+
private handleRangeSelection;
|
|
127
|
+
/**
|
|
128
|
+
* Calculates the ISO week number
|
|
129
|
+
* @param {Date} date - Date to calculate
|
|
130
|
+
* @returns {number} Week number
|
|
131
|
+
*/
|
|
132
|
+
private getWeekNumber;
|
|
133
|
+
/**
|
|
134
|
+
* Checks if a date is disabled.
|
|
135
|
+
* Disabled if:
|
|
136
|
+
* - The date is before min (if defined)
|
|
137
|
+
* - The date is after max (if defined)
|
|
138
|
+
* - The date is in the disabledDates array
|
|
139
|
+
* @param {Date} date - Date to check
|
|
140
|
+
* @returns {boolean} true if the date is disabled
|
|
141
|
+
*/
|
|
142
|
+
private isDateDisabled;
|
|
143
|
+
/**
|
|
144
|
+
* Checks if a date is in the selected range
|
|
145
|
+
* @param {Date} date - Date to check
|
|
146
|
+
* @returns {boolean} true if the date is in the range
|
|
147
|
+
*/
|
|
148
|
+
private isDateInRange;
|
|
149
|
+
/**
|
|
150
|
+
* Retrieves the localized day names
|
|
151
|
+
* @returns {string[]} Array of short day names
|
|
152
|
+
*/
|
|
153
|
+
private getDayNames;
|
|
154
|
+
/**
|
|
155
|
+
* Generates the days of the current month
|
|
156
|
+
* @param {number} offset - Month offset (0 by default)
|
|
157
|
+
* @param {number} totalCalendars - Number of calendars to display (1 by default)
|
|
158
|
+
* @returns {Array<{ dayOfMonth: number | null, date: Date | null, isSelected: boolean, isDisabled: boolean }>} Array of formatted days
|
|
159
|
+
*/
|
|
160
|
+
private getDaysInMonth;
|
|
161
|
+
/** Initializes the list of formatted months according to the locale */
|
|
162
|
+
private initializeMonths;
|
|
163
|
+
/**
|
|
164
|
+
* Retrieves the localized abbreviation for "week"
|
|
165
|
+
* @returns {string} Localized abbreviation for "week"
|
|
166
|
+
*/
|
|
167
|
+
private getLocalizedWeekText;
|
|
168
|
+
/**
|
|
169
|
+
* Handles month change in the selector
|
|
170
|
+
* @param {Event} event - Month change event
|
|
171
|
+
* @param {number} calendarOffset - Calendar offset (0 by default)
|
|
172
|
+
*/
|
|
173
|
+
private handleMonthChange;
|
|
174
|
+
/**
|
|
175
|
+
* Handles year change in the numeric entry
|
|
176
|
+
* @param {Event} event - Year change event
|
|
177
|
+
* @param {number} calendarOffset - Calendar offset (0 by default)
|
|
178
|
+
*/
|
|
179
|
+
private handleYearChange;
|
|
180
|
+
/**
|
|
181
|
+
* Handles week selection
|
|
182
|
+
* @param {Date[]} weekDays - Selected week days
|
|
183
|
+
* @param {number} calendarIndex - Calendar index from which the selection is made
|
|
184
|
+
*/
|
|
185
|
+
private handleWeekSelection;
|
|
186
|
+
/**
|
|
187
|
+
* Checks if a date corresponds to today
|
|
188
|
+
* @param {Date} date - Date to check
|
|
189
|
+
* @returns {boolean} true if the date is today
|
|
190
|
+
*/
|
|
191
|
+
private isToday;
|
|
192
|
+
/**
|
|
193
|
+
* Watches the changes of the number of calendars
|
|
194
|
+
* @watch numberOfCalendars
|
|
195
|
+
* @param {number} newValue - New number of calendars
|
|
196
|
+
*/
|
|
197
|
+
validateNumberOfCalendars(newValue: number): void;
|
|
198
|
+
/**
|
|
199
|
+
* Watches the changes of the selected date range
|
|
200
|
+
* @watch rangeValue
|
|
201
|
+
* @param {Object} newValue - New rangeValue value
|
|
202
|
+
* @param {string} newValue.start - Start date
|
|
203
|
+
* @param {string} newValue.end - End date
|
|
204
|
+
*/
|
|
205
|
+
onRangeValueChange(newValue: string): void;
|
|
206
|
+
/**
|
|
207
|
+
* Watches the changes of the disabled dates
|
|
208
|
+
* @watch disabledDates
|
|
209
|
+
* @description Watches the changes of the disabled dates
|
|
210
|
+
*/
|
|
211
|
+
handleDisabledDatesChange(): void;
|
|
212
|
+
/**
|
|
213
|
+
* Convert a date string/Date to a Date without timezone offset
|
|
214
|
+
* @param {string | Date} dateInput - Date under string or Date object form
|
|
215
|
+
* @returns {Date} Date in Date form without timezone offset
|
|
216
|
+
*/
|
|
217
|
+
private parseDate;
|
|
218
|
+
/**
|
|
219
|
+
* Formats a date to a string according to the format
|
|
220
|
+
* @param {Date} date - Date to format
|
|
221
|
+
* @returns {string} Formatted date
|
|
222
|
+
*/
|
|
223
|
+
private formatDate;
|
|
224
|
+
/**
|
|
225
|
+
* Parse and cache the disabled dates
|
|
226
|
+
* @description Parse and cache the disabled dates
|
|
227
|
+
*/
|
|
228
|
+
private parseDisabledDates;
|
|
229
|
+
/**
|
|
230
|
+
* Checks if two dates are identical
|
|
231
|
+
* @param {Date | null} date1 - First date
|
|
232
|
+
* @param {Date | null} date2 - Second date
|
|
233
|
+
* @returns {boolean} true if the dates are identical
|
|
234
|
+
*/
|
|
235
|
+
private isSameDate;
|
|
236
|
+
/**
|
|
237
|
+
* Checks if a date is identical or after another date
|
|
238
|
+
* @param {Date} date - Date to check
|
|
239
|
+
* @param {Date} compareDate - Reference date
|
|
240
|
+
* @returns {boolean} true if `date` >= `compareDate`
|
|
241
|
+
*/
|
|
242
|
+
private isSameOrAfter;
|
|
243
|
+
/**
|
|
244
|
+
* Checks if a date is identical or before another date
|
|
245
|
+
* @param {Date} date - Date to check
|
|
246
|
+
* @param {Date} compareDate - Reference date
|
|
247
|
+
* @returns {boolean} true if `date` <= `compareDate`
|
|
248
|
+
*/
|
|
249
|
+
private isSameOrBefore;
|
|
250
|
+
/**
|
|
251
|
+
* Applies a shortcut selection
|
|
252
|
+
* @param {Object} shortcut - Shortcut to apply
|
|
253
|
+
* @param {string | Date} shortcut.singleValue - Selected date value
|
|
254
|
+
* @param {Object} shortcut.rangeValue - Start and end date values
|
|
255
|
+
* @param {string | Date} shortcut.rangeValue.start - Start date value
|
|
256
|
+
* @param {string | Date} shortcut.rangeValue.end - End date value
|
|
257
|
+
* @param {string} shortcut.label - Label
|
|
258
|
+
*/
|
|
259
|
+
private applyShortcut;
|
|
260
|
+
/**
|
|
261
|
+
* Method to force the complete calendar update (and fix the persistent hover problem)
|
|
262
|
+
* @param {Date} newDate - Date to force
|
|
263
|
+
*/
|
|
264
|
+
private forceCalendarUpdate;
|
|
265
|
+
/**
|
|
266
|
+
* Function to reset the touch effect (Mobile fix)
|
|
267
|
+
*/
|
|
268
|
+
private clearTouchState;
|
|
269
|
+
/**
|
|
270
|
+
* Handles month change with an offset
|
|
271
|
+
* @param {number} direction - Direction (-1 for previous, 1 for next)
|
|
272
|
+
* @param {number} offset - Month offset (0 by default)
|
|
273
|
+
* @returns {Function} Change month handler
|
|
274
|
+
*/
|
|
275
|
+
private getChangeMonthHandler;
|
|
276
|
+
/**
|
|
277
|
+
* Handles month change from an event (ex: dropdown)
|
|
278
|
+
* @param {number} offset - Month offset (0 by default)
|
|
279
|
+
* @returns {Function} Change month handler
|
|
280
|
+
*/
|
|
281
|
+
private getHandleMonthChange;
|
|
282
|
+
/**
|
|
283
|
+
* Handles year change from an event (ex: dropdown)
|
|
284
|
+
* @param {number} offset - Year offset (0 by default)
|
|
285
|
+
* @returns {Function} Change year handler
|
|
286
|
+
*/
|
|
287
|
+
private getHandleYearChange;
|
|
288
|
+
/**
|
|
289
|
+
* Handles day click
|
|
290
|
+
* @param {Date} date - Date to handle
|
|
291
|
+
* @param {boolean} isDisabled - Whether the date is disabled
|
|
292
|
+
* @returns {Function} Day click handler
|
|
293
|
+
*/
|
|
294
|
+
private getDayClickHandler;
|
|
295
|
+
/**
|
|
296
|
+
* Handles shortcut selection
|
|
297
|
+
* @param {Object} shortcut - Shortcut to handle
|
|
298
|
+
* @param {string | Date} shortcut.singleValue - Selected date value
|
|
299
|
+
* @param {Object} shortcut.rangeValue - Start and end date values
|
|
300
|
+
* @param {string | Date} shortcut.rangeValue.start - Start date value
|
|
301
|
+
* @param {string | Date} shortcut.rangeValue.end - End date value
|
|
302
|
+
* @param {string} shortcut.label - Label
|
|
303
|
+
* @returns {Function} Shortcut selection handler
|
|
304
|
+
*/
|
|
305
|
+
private getShortcutHandler;
|
|
306
|
+
/**
|
|
307
|
+
* Handles week selection
|
|
308
|
+
* @param {Date[]} dates - Dates to handle
|
|
309
|
+
* @param {number} index - Calendar index
|
|
310
|
+
* @returns {Function} Week selection handler
|
|
311
|
+
*/
|
|
312
|
+
private getWeekSelectionHandler;
|
|
313
|
+
private parsedShortcuts;
|
|
314
|
+
/**
|
|
315
|
+
* Checks if the date format is in UTC mode
|
|
316
|
+
* @returns {boolean} true if the date format is in UTC mode
|
|
317
|
+
*/
|
|
318
|
+
private get isUTCMode();
|
|
319
|
+
/**
|
|
320
|
+
* Checks if shortcuts are visible
|
|
321
|
+
* @returns {boolean} true if shortcuts are visible
|
|
322
|
+
*/
|
|
323
|
+
private get hasShortcuts();
|
|
324
|
+
/**
|
|
325
|
+
* Checks if actions are visible
|
|
326
|
+
* @returns {boolean} true if actions are visible
|
|
327
|
+
*/
|
|
328
|
+
private get hasActions();
|
|
329
|
+
/**
|
|
330
|
+
* Resets the current selection
|
|
331
|
+
*/
|
|
332
|
+
private resetSelection;
|
|
333
|
+
/**
|
|
334
|
+
* Confirms the current selection
|
|
335
|
+
*/
|
|
336
|
+
private confirmSelection;
|
|
337
|
+
/****************************************************************************/
|
|
338
|
+
/**
|
|
339
|
+
* Renders the header
|
|
340
|
+
* @param {number} offset - Month offset
|
|
341
|
+
* @param {number} index - Calendar index
|
|
342
|
+
* @returns {JSX.Element} Header
|
|
343
|
+
* @description Renders the header of the calendar
|
|
344
|
+
*/
|
|
345
|
+
private renderHeader;
|
|
346
|
+
/**
|
|
347
|
+
* Renders the week numbers
|
|
348
|
+
* @param {Array<{date: Date}>} weeks - Weeks to render
|
|
349
|
+
* @param {number} index - Calendar index
|
|
350
|
+
* @returns {JSX.Element} Week numbers
|
|
351
|
+
* @description Renders the week numbers of the calendar
|
|
352
|
+
*/
|
|
353
|
+
private renderWeekNumbers;
|
|
354
|
+
private renderDaysGrid;
|
|
355
|
+
/**
|
|
356
|
+
* Renders the calendar
|
|
357
|
+
* @param {number} index - Calendar index
|
|
358
|
+
* @param {number} offset - Month offset
|
|
359
|
+
* @returns {JSX.Element} Calendar
|
|
360
|
+
* @description Renders the calendar of the calendar
|
|
361
|
+
*/
|
|
362
|
+
private renderCalendar;
|
|
363
|
+
/**
|
|
364
|
+
* Renders the shortcuts
|
|
365
|
+
* @returns {JSX.Element} Shortcuts
|
|
366
|
+
* @description Renders the shortcuts of the calendar
|
|
367
|
+
*/
|
|
368
|
+
private renderShortcuts;
|
|
369
|
+
/**
|
|
370
|
+
* Renders the actions
|
|
371
|
+
* @returns {JSX.Element} Actions
|
|
372
|
+
* @description Renders the actions of the calendar
|
|
373
|
+
* @slot actions - Child content of the component.
|
|
374
|
+
*/
|
|
375
|
+
private renderActions;
|
|
376
|
+
/**
|
|
377
|
+
* Renders the datepicker
|
|
378
|
+
* @returns {JSX.Element} Datepicker
|
|
379
|
+
* @description Renders the datepicker of the calendar
|
|
380
|
+
* @slot default - Child content of the component.
|
|
381
|
+
*/
|
|
382
|
+
render(): any;
|
|
383
|
+
}
|
|
@@ -97,6 +97,12 @@ export declare class NvFieldcheckbox {
|
|
|
97
97
|
* form submission.
|
|
98
98
|
*/
|
|
99
99
|
readonly required: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Applies focus to the input field as soon as the component is mounted. This
|
|
102
|
+
* is equivalent to setting the native autofocus attribute on an <input>
|
|
103
|
+
* element.
|
|
104
|
+
*/
|
|
105
|
+
readonly autofocus: boolean;
|
|
100
106
|
/****************************************************************************/
|
|
101
107
|
/**
|
|
102
108
|
* Emits when the checked state changes.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { TextInputAutocomplete } from '../../utils/constants';
|
|
3
|
-
import { DropdownItemSelectedEventDetail } from '../nv-fielddropdownitem/DropdownItemSelectedEventDetail';
|
|
4
3
|
/**
|
|
5
4
|
* @slot content - Use a <ul></ul> tag for the slot, and place <nv-dropdownitem> elements inside.
|
|
6
5
|
* @slot leading-input - Content to be placed before the input text, within the input container.
|
|
@@ -10,7 +9,7 @@ import { DropdownItemSelectedEventDetail } from '../nv-fielddropdownitem/Dropdow
|
|
|
10
9
|
* @slot description - Content to be placed as the description, will override the description prop.
|
|
11
10
|
* @slot error-description - Content to be placed as the error description, will override the errorDescription prop.
|
|
12
11
|
*/
|
|
13
|
-
export declare class
|
|
12
|
+
export declare class NvFielddropdown {
|
|
14
13
|
el: HTMLNvFielddropdownElement;
|
|
15
14
|
private inputElement;
|
|
16
15
|
private popoverElement;
|
|
@@ -97,23 +96,38 @@ export declare class NVFieldDropDown {
|
|
|
97
96
|
/**
|
|
98
97
|
* The text to display when no items match the filter.
|
|
99
98
|
*/
|
|
100
|
-
readonly
|
|
101
|
-
/**
|
|
102
|
-
* The text entered by the user for filtering dropdown items.
|
|
103
|
-
*/
|
|
104
|
-
filterText: string;
|
|
99
|
+
readonly emptyResult: string;
|
|
105
100
|
/**
|
|
106
101
|
* Enables or disables the filtering feature for the dropdown items.
|
|
107
102
|
*/
|
|
108
103
|
filterable: boolean;
|
|
109
|
-
isFilterable: boolean;
|
|
110
|
-
selectedValues: Set<string>;
|
|
111
104
|
/**
|
|
112
|
-
* List of options available in the dropdown.
|
|
113
|
-
*
|
|
114
|
-
*
|
|
105
|
+
* List of options available in the dropdown. The options are passed as a JSON
|
|
106
|
+
* string.
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* options=[{
|
|
110
|
+
* "label": "Option 1",
|
|
111
|
+
* "value": "option1",
|
|
112
|
+
* "selected": true
|
|
113
|
+
* },
|
|
114
|
+
* {
|
|
115
|
+
* "label": "Option 2",
|
|
116
|
+
* "value": "option2"
|
|
117
|
+
* }]
|
|
115
118
|
*/
|
|
116
119
|
readonly options?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Applies focus to the input field as soon as the component is mounted. This
|
|
122
|
+
* is equivalent to setting the native autofocus attribute on an <input>
|
|
123
|
+
* element.
|
|
124
|
+
*/
|
|
125
|
+
readonly autofocus: boolean;
|
|
126
|
+
/****************************************************************************/
|
|
127
|
+
/** The text entered by the user for filtering dropdown items. */
|
|
128
|
+
filterText: string;
|
|
129
|
+
isFilterable: boolean;
|
|
130
|
+
selectedValues: Set<string>;
|
|
117
131
|
/**
|
|
118
132
|
* Options configuration for the dropdown items.
|
|
119
133
|
*/
|
|
@@ -128,85 +142,54 @@ export declare class NVFieldDropDown {
|
|
|
128
142
|
selected?: boolean;
|
|
129
143
|
}>;
|
|
130
144
|
/****************************************************************************/
|
|
131
|
-
/**
|
|
132
|
-
* Event emitted when an item is selected.
|
|
133
|
-
*/
|
|
134
|
-
dropdownItemSelected: EventEmitter<DropdownItemSelectedEventDetail>;
|
|
135
|
-
handleItemSelected(event: CustomEvent<DropdownItemSelectedEventDetail>): void;
|
|
136
145
|
/**
|
|
137
146
|
* Emitted when the input value changes.
|
|
138
147
|
* @bind value
|
|
139
148
|
*/
|
|
140
149
|
valueChanged: EventEmitter<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Event emitted when an item is clicked.
|
|
152
|
+
*/
|
|
153
|
+
dropdownItemSelected: EventEmitter<HTMLNvFielddropdownitemElementEventMap['dropdownItemSelected']>;
|
|
154
|
+
handleDropdownItemSelected(event: CustomEvent<HTMLNvFielddropdownitemElementEventMap['dropdownItemSelected']>): void;
|
|
141
155
|
handleOpenChanged(event: CustomEvent<boolean>): void;
|
|
142
156
|
watchFilterableHandler(newValue: boolean): void;
|
|
143
157
|
watchValueHandler(newValue: string): void;
|
|
144
|
-
/**
|
|
145
|
-
* Watch for changes in the options prop
|
|
146
|
-
* @param {string} newValue - The new value of the options prop
|
|
147
|
-
*/
|
|
148
158
|
handleOptionsChange(newValue: string): void;
|
|
159
|
+
handleBlur(event: FocusEvent): void;
|
|
160
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
149
161
|
/****************************************************************************/
|
|
150
|
-
componentWillLoad(): void;
|
|
151
|
-
componentDidLoad(): void;
|
|
152
162
|
/**
|
|
153
|
-
*
|
|
163
|
+
* Retrieves the current filter text entered by the user.
|
|
164
|
+
* @returns {string} The filter text.
|
|
154
165
|
*/
|
|
155
|
-
|
|
166
|
+
getFilterText(): Promise<string>;
|
|
156
167
|
/**
|
|
157
|
-
* Set the initial selection based on the current value and update the
|
|
168
|
+
* Set the initial selection based on the current value and update the
|
|
169
|
+
* inputElement value.
|
|
158
170
|
*/
|
|
159
171
|
private setInitialSelection;
|
|
160
|
-
/**
|
|
161
|
-
* Unsubscribe from click outside event.
|
|
162
|
-
*/
|
|
163
|
-
disconnectedCallback(): void;
|
|
164
|
-
/**
|
|
165
|
-
* Handle click on the input container.
|
|
166
|
-
* @param {MouseEvent} event - The click event.
|
|
167
|
-
*/
|
|
168
172
|
private handleInputContainerClick;
|
|
169
|
-
/**
|
|
170
|
-
* Handle input change.
|
|
171
|
-
* @param {Event} event - The input event.
|
|
172
|
-
*/
|
|
173
173
|
private handleInput;
|
|
174
174
|
/**
|
|
175
175
|
* Filter dropdown items based on the text entered by the user.
|
|
176
176
|
* If no items are found, display a message indicating no results.
|
|
177
177
|
*/
|
|
178
178
|
private filterItems;
|
|
179
|
-
/**
|
|
180
|
-
* Reset the filter and make all items visible.
|
|
181
|
-
*/
|
|
179
|
+
/** Reset the filter and make all items visible. */
|
|
182
180
|
private resetFilter;
|
|
183
|
-
/**
|
|
184
|
-
* Retrieves the current filter text entered by the user.
|
|
185
|
-
* @returns {string} The filter text.
|
|
186
|
-
*/
|
|
187
|
-
getFilterText(): Promise<string>;
|
|
188
|
-
/**
|
|
189
|
-
* Handle click outside the component.
|
|
190
|
-
* @param {MouseEvent} event - The click event.
|
|
191
|
-
*/
|
|
192
181
|
private handleClickOutside;
|
|
193
|
-
/**
|
|
194
|
-
* Handle input focus.
|
|
195
|
-
*/
|
|
196
182
|
private handleInputFocus;
|
|
197
|
-
/**
|
|
198
|
-
* Handle input blur.
|
|
199
|
-
*/
|
|
200
|
-
private handleInputBlur;
|
|
201
|
-
/**
|
|
202
|
-
* Toggle the dropdown popover.
|
|
203
|
-
* @returns {void}
|
|
204
|
-
*/
|
|
205
183
|
private togglePopover;
|
|
206
|
-
handleKeyDown(event: KeyboardEvent): void;
|
|
207
184
|
private updateHighlightedItem;
|
|
208
185
|
private focusFirstItem;
|
|
209
186
|
private updateSelectedItem;
|
|
187
|
+
private getSelectedLabel;
|
|
188
|
+
/****************************************************************************/
|
|
189
|
+
connectedCallback(): void;
|
|
190
|
+
componentWillLoad(): void;
|
|
191
|
+
componentDidLoad(): void;
|
|
192
|
+
disconnectedCallback(): void;
|
|
210
193
|
/****************************************************************************/
|
|
211
194
|
render(): any;
|
|
212
195
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { DropdownItemSelectedEventDetail } from './DropdownItemSelectedEventDetail';
|
|
3
2
|
/**
|
|
4
3
|
* @slot default - The content to be displayed inside the dropdown item.
|
|
5
4
|
*/
|
|
6
5
|
export declare class NvFielddropdownitem {
|
|
7
6
|
el: HTMLNvFielddropdownitemElement;
|
|
7
|
+
private composed;
|
|
8
8
|
/****************************************************************************/
|
|
9
9
|
/**
|
|
10
10
|
* Disables the item, preventing any user interaction.
|
|
@@ -15,26 +15,40 @@ export declare class NvFielddropdownitem {
|
|
|
15
15
|
*/
|
|
16
16
|
selected: boolean;
|
|
17
17
|
/**
|
|
18
|
-
* Value associated with the item.
|
|
18
|
+
* Value associated with the item. This is recommended and required for proper
|
|
19
|
+
* form management.
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
|
+
value?: string;
|
|
21
22
|
/**
|
|
22
|
-
*
|
|
23
|
+
* Specifies the text label for the dropdown item.
|
|
24
|
+
*
|
|
25
|
+
* When no default slot is provided, this label is rendered as the item's
|
|
26
|
+
* visible text. If the default slot is supplied, the label isn’t directly
|
|
27
|
+
* displayed but is used as the selected text (on the dropdown trigger). If
|
|
28
|
+
* no label is explicitly set, the component will automatically derive the
|
|
29
|
+
* label from the text content of the default slot.
|
|
23
30
|
*/
|
|
24
31
|
readonly label?: string;
|
|
25
32
|
/****************************************************************************/
|
|
26
33
|
/**
|
|
27
|
-
* Event emitted when
|
|
34
|
+
* Event emitted when the dropdown item is selected.
|
|
28
35
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
36
|
+
dropdownItemSelected: EventEmitter<{
|
|
37
|
+
/** The value associated with the item. */
|
|
38
|
+
label?: string;
|
|
39
|
+
/** The value associated with the item. */
|
|
40
|
+
value: string;
|
|
41
|
+
/** Indicates if the item is selected. */
|
|
42
|
+
selected: boolean;
|
|
43
|
+
/** Disables the item, preventing any user interaction. */
|
|
44
|
+
disabled: boolean;
|
|
45
|
+
}>;
|
|
46
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
31
47
|
/****************************************************************************/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
*/
|
|
37
|
-
private isNullOrEmptyOrWhitespace;
|
|
48
|
+
private handleSelected;
|
|
49
|
+
/****************************************************************************/
|
|
50
|
+
componentWillLoad(): void;
|
|
51
|
+
componentDidLoad(): void;
|
|
38
52
|
/****************************************************************************/
|
|
39
53
|
render(): any;
|
|
40
54
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { TextInputAutocomplete } from '../../utils/constants';
|
|
3
|
-
import { DropdownItemSelectedEventDetail } from '../nv-fielddropdownitem/DropdownItemSelectedEventDetail';
|
|
4
3
|
/**
|
|
5
4
|
* @slot content - The content of the list.
|
|
6
5
|
* @slot leading-input - Content to be placed before the input text, within the input container.
|
|
@@ -61,7 +60,7 @@ export declare class NvFieldmultiselect {
|
|
|
61
60
|
/**
|
|
62
61
|
* The text to display when no items match the filter.
|
|
63
62
|
*/
|
|
64
|
-
readonly
|
|
63
|
+
readonly emptyResult: string;
|
|
65
64
|
/**
|
|
66
65
|
* Marks the input field as required.
|
|
67
66
|
*/
|
|
@@ -165,6 +164,12 @@ export declare class NvFieldmultiselect {
|
|
|
165
164
|
*/
|
|
166
165
|
modeState: 'options' | 'slots';
|
|
167
166
|
private isHandlingEscape;
|
|
167
|
+
/**
|
|
168
|
+
* Applies focus to the input field as soon as the component is mounted. This
|
|
169
|
+
* is equivalent to setting the native autofocus attribute on an <input>
|
|
170
|
+
* element.
|
|
171
|
+
*/
|
|
172
|
+
readonly autofocus: boolean;
|
|
168
173
|
/****************************************************************************/
|
|
169
174
|
/**
|
|
170
175
|
* Subscribe to click outside event.
|
|
@@ -183,10 +188,6 @@ export declare class NvFieldmultiselect {
|
|
|
183
188
|
*/
|
|
184
189
|
disconnectedCallback(): void;
|
|
185
190
|
/****************************************************************************/
|
|
186
|
-
/**
|
|
187
|
-
* Event emitted when an item is selected.
|
|
188
|
-
*/
|
|
189
|
-
dropdownItemSelected: EventEmitter<DropdownItemSelectedEventDetail>;
|
|
190
191
|
/**
|
|
191
192
|
* Emitted when the input value changes.
|
|
192
193
|
* @bind value
|
|
@@ -305,10 +306,6 @@ export declare class NvFieldmultiselect {
|
|
|
305
306
|
* @see {@link https://en.wikipedia.org/wiki/Unicode_equivalence#Normal_forms} - More info about Unicode normalization forms
|
|
306
307
|
*/
|
|
307
308
|
private normalizeText;
|
|
308
|
-
/**
|
|
309
|
-
* Handle click outside the component.
|
|
310
|
-
* @param {MouseEvent} event - The click event.
|
|
311
|
-
*/
|
|
312
309
|
private handleClickOutside;
|
|
313
310
|
/**
|
|
314
311
|
* Handle popover close
|