@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
|
@@ -5,14 +5,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-5910ba06.js');
|
|
6
6
|
const v4 = require('./v4-7014b8b0.js');
|
|
7
7
|
|
|
8
|
-
const nvFielddropdownCss = "nv-fielddropdown{--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}nv-fielddropdown[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-fielddropdown[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)}nv-fielddropdown[required]:not([required=false]) label::after{content:\"*\";color:var(--components-form-text-required);font-weight:700}nv-fielddropdown label{display:flex;align-items:center;gap:var(--form-label-gap);align-self:stretch;color:var(--components-form-text-label-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:500;line-height:var(--form-label-line-height)}nv-fielddropdown nv-popover{width:100%;display:block}nv-fielddropdown nv-popover [data-scope=popover]{width:100%;
|
|
8
|
+
const nvFielddropdownCss = "nv-fielddropdown{--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}nv-fielddropdown[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-fielddropdown[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)}nv-fielddropdown[required]:not([required=false]) label::after{content:\"*\";color:var(--components-form-text-required);font-weight:700}nv-fielddropdown label{display:flex;align-items:center;gap:var(--form-label-gap);align-self:stretch;color:var(--components-form-text-label-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:500;line-height:var(--form-label-line-height)}nv-fielddropdown nv-popover{width:100%;display:block}nv-fielddropdown nv-popover [data-scope=popover]{width:100%;padding:var(--list-dropdown-padding);border-radius:var(--list-dropdown-radius);background-color:var(--components-list-dropdown-background);border:1px solid var(--components-list-dropdown-border)}nv-fielddropdown nv-popover [slot=content]{gap:var(--list-dropdown-gap-y);display:flex;flex-direction:column}nv-fielddropdown nv-popover hr{color:var(--components-list-dropdown-separator)}nv-fielddropdown .input-wrapper{display:flex;flex-wrap:wrap;gap:var(--form-gap-x);align-items:stretch;align-self:stretch;width:100%}nv-fielddropdown .input-container{display:flex;flex-grow:1;padding:calc(var(--form-field-padding-y) - 1px) var(--form-field-padding-x);justify-content:center;align-items:center;gap:var(--form-field-gap);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;position:relative;width:100%;min-height:40px}nv-fielddropdown .input-container:hover{border-color:var(--nv-field-border-hover)}nv-fielddropdown .input-container:focus-within,nv-fielddropdown .input-container:focus-within:hover,nv-fielddropdown .input-container:focus,nv-fielddropdown .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-fielddropdown .input-container:has(input:read-only){opacity:0.5;background-color:var(--components-form-field-background-readonly);border-color:var(--nv-field-border-readonly)}nv-fielddropdown .input-container:has(input:disabled){opacity:0.5;background-color:var(--components-form-field-background-disabled);border-color:var(--nv-field-border-disabled)}nv-fielddropdown .input-container input,nv-fielddropdown .input-container p.non-filterable-text{display:flex;align-items:center;flex:1 0 0;overflow:hidden;background-color:transparent;color:var(--components-form-field-content-text);text-overflow:ellipsis;font-size:var(--form-field-font-size);font-style:normal;font-weight:500;line-height:var(--form-field-line-height);width:100%;padding-right:2rem;flex-grow:1;margin:0;min-height:100%;box-sizing:border-box}nv-fielddropdown .input-container input:focus,nv-fielddropdown .input-container p.non-filterable-text:focus{outline:none}nv-fielddropdown .input-container input::placeholder,nv-fielddropdown .input-container p.non-filterable-text::placeholder{overflow:hidden;color:var(--components-form-field-content-placeholder);text-overflow:ellipsis;font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-field-font-size);font-style:normal;font-weight:400;line-height:var(--form-field-line-height)}nv-fielddropdown .input-container .toggle-dropdown-icon{position:absolute;right:0;top:50%;transform:translateY(-50%)}nv-fielddropdown .input-container nv-icon.validation{color:var(--nv-field-border-default);position:absolute;right:50px}nv-fielddropdown .non-filterable-text{display:block;border-radius:var(--form-field-radius);background-color:var(--nv-field-background);color:var(--components-form-field-content-text);font-size:var(--form-field-font-size);font-weight:500;line-height:var(--form-field-line-height);box-sizing:border-box;cursor:pointer;height:100%;min-height:40px}nv-fielddropdown .non-filterable-text span{display:inline-block;width:100%;overflow:hidden;text-overflow:ellipsis}nv-fielddropdown .description{align-self:stretch;color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;line-height:var(--form-description-line-height)}nv-fielddropdown .error-description{align-self:stretch;color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", 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)}";
|
|
9
9
|
const NvFielddropdownStyle0 = nvFielddropdownCss;
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const NvFielddropdown = class {
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
|
-
this.dropdownItemSelected = index.createEvent(this, "dropdownItemSelected", 7);
|
|
15
14
|
this.valueChanged = index.createEvent(this, "valueChanged", 7);
|
|
15
|
+
this.dropdownItemSelected = index.createEvent(this, "dropdownItemSelected", 7);
|
|
16
16
|
/****************************************************************************/
|
|
17
17
|
//#region PROPERTIES
|
|
18
18
|
/**
|
|
@@ -59,34 +59,35 @@ const NVFieldDropDown = class {
|
|
|
59
59
|
/**
|
|
60
60
|
* The text to display when no items match the filter.
|
|
61
61
|
*/
|
|
62
|
-
this.
|
|
63
|
-
/**
|
|
64
|
-
* The text entered by the user for filtering dropdown items.
|
|
65
|
-
*/
|
|
66
|
-
this.filterText = '';
|
|
62
|
+
this.emptyResult = 'No results found';
|
|
67
63
|
/**
|
|
68
64
|
* Enables or disables the filtering feature for the dropdown items.
|
|
69
65
|
*/
|
|
70
66
|
this.filterable = false;
|
|
67
|
+
/**
|
|
68
|
+
* Applies focus to the input field as soon as the component is mounted. This
|
|
69
|
+
* is equivalent to setting the native autofocus attribute on an <input>
|
|
70
|
+
* element.
|
|
71
|
+
*/
|
|
72
|
+
this.autofocus = false;
|
|
73
|
+
//#endregion PROPERTIES
|
|
74
|
+
/****************************************************************************/
|
|
75
|
+
//#region STATE
|
|
76
|
+
/** The text entered by the user for filtering dropdown items. */
|
|
77
|
+
this.filterText = '';
|
|
71
78
|
this.isFilterable = this.filterable;
|
|
72
79
|
this.selectedValues = new Set();
|
|
73
80
|
/**
|
|
74
81
|
* Options configuration for the dropdown items.
|
|
75
82
|
*/
|
|
76
83
|
this.parsedOptions = [];
|
|
77
|
-
/**
|
|
78
|
-
* Handle click on the input container.
|
|
79
|
-
* @param {MouseEvent} event - The click event.
|
|
80
|
-
*/
|
|
81
84
|
this.handleInputContainerClick = (event) => {
|
|
82
85
|
if (this.disabled || this.readonly) {
|
|
83
|
-
return;
|
|
86
|
+
return;
|
|
84
87
|
}
|
|
85
88
|
const target = event.target;
|
|
86
|
-
// Check if it is the paragraph or another part of the container
|
|
87
89
|
if (target.tagName === 'P' || target.tagName === 'SPAN') {
|
|
88
90
|
this.open = true;
|
|
89
|
-
this.popoverElement.show();
|
|
90
91
|
// Simulate focus to trigger "focus-within" style
|
|
91
92
|
const inputContainer = this.el.querySelector('.input-container');
|
|
92
93
|
if (inputContainer) {
|
|
@@ -100,85 +101,59 @@ const NVFieldDropDown = class {
|
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
};
|
|
103
|
-
/**
|
|
104
|
-
* Handle input change.
|
|
105
|
-
* @param {Event} event - The input event.
|
|
106
|
-
*/
|
|
107
104
|
this.handleInput = (event) => {
|
|
108
105
|
if (!this.filterable)
|
|
109
|
-
return;
|
|
106
|
+
return;
|
|
110
107
|
if (this.disabled || this.readonly) {
|
|
111
|
-
return;
|
|
108
|
+
return;
|
|
112
109
|
}
|
|
113
110
|
const input = event.target;
|
|
114
111
|
this.filterText = input.value.toLowerCase();
|
|
115
|
-
this.
|
|
116
|
-
this.valueChanged.emit(input.value); // Emit an event if needed
|
|
117
|
-
this.filterItems(); // Update the visibility of items
|
|
112
|
+
this.filterItems();
|
|
118
113
|
};
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
if (this.disabled || this.readonly) {
|
|
124
|
-
return; // Do not toggle the state if the dropdown is disabled or read-only
|
|
114
|
+
this.handleClickOutside = (event) => {
|
|
115
|
+
if (this.el.contains(event.target) ||
|
|
116
|
+
(this.inputElement && this.inputElement.contains(event.target))) {
|
|
117
|
+
return;
|
|
125
118
|
}
|
|
126
|
-
this.open =
|
|
119
|
+
this.open = false;
|
|
127
120
|
};
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
// Use a delay to check if the focus is still within the popover
|
|
133
|
-
setTimeout(() => {
|
|
134
|
-
if (!this.el.contains(document.activeElement)) {
|
|
135
|
-
this.open = false;
|
|
136
|
-
this.popoverElement.hide(); // Close the popover if the focus is outside the component
|
|
137
|
-
}
|
|
138
|
-
}, 150);
|
|
121
|
+
this.handleInputFocus = () => {
|
|
122
|
+
if (this.disabled || this.readonly)
|
|
123
|
+
return;
|
|
124
|
+
this.open = true;
|
|
139
125
|
};
|
|
140
|
-
/**
|
|
141
|
-
* Toggle the dropdown popover.
|
|
142
|
-
* @returns {void}
|
|
143
|
-
*/
|
|
144
126
|
this.togglePopover = () => {
|
|
145
|
-
if (this.disabled || this.readonly)
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
127
|
+
if (this.disabled || this.readonly)
|
|
128
|
+
return;
|
|
148
129
|
this.open = !this.open;
|
|
149
|
-
if (this.open) {
|
|
150
|
-
this.
|
|
151
|
-
// If the dropdown is not filterable, focus on the first item
|
|
152
|
-
if (!this.filterable) {
|
|
153
|
-
this.focusFirstItem();
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
this.popoverElement.hide();
|
|
130
|
+
if (this.open && !this.filterable) {
|
|
131
|
+
this.focusFirstItem();
|
|
158
132
|
}
|
|
159
133
|
};
|
|
134
|
+
this.getSelectedLabel = () => {
|
|
135
|
+
var _a, _b, _c;
|
|
136
|
+
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitem'));
|
|
137
|
+
const matchingItem = items.find(item => item.getAttribute('value') === this.value);
|
|
138
|
+
return matchingItem
|
|
139
|
+
? (_c = (_a = matchingItem.label) !== null && _a !== void 0 ? _a : (_b = matchingItem.textContent) === null || _b === void 0 ? void 0 : _b.trim()) !== null && _c !== void 0 ? _c : matchingItem.value
|
|
140
|
+
: '';
|
|
141
|
+
};
|
|
160
142
|
}
|
|
161
|
-
|
|
143
|
+
handleDropdownItemSelected(event) {
|
|
162
144
|
if (this.disabled || this.readonly)
|
|
163
145
|
return;
|
|
164
|
-
// Retrieve all nv-fielddropdownitem elements present in the dropdown.
|
|
165
146
|
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitem'));
|
|
166
|
-
// For each item, remove the 'selected' attribute and the 'selected' class.
|
|
167
147
|
items.forEach(item => {
|
|
168
148
|
if (item !== event.target) {
|
|
169
149
|
item.removeAttribute('selected');
|
|
170
|
-
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
item.setAttribute('selected', 'true');
|
|
171
153
|
}
|
|
172
154
|
});
|
|
173
|
-
// Update the value and emit the event with the selected item.
|
|
174
155
|
this.value = event.detail.value;
|
|
175
|
-
|
|
176
|
-
event.target.classList.add('selected');
|
|
177
|
-
this.dropdownItemSelected.emit(event.detail);
|
|
178
|
-
// Close the popover after selecting.
|
|
179
|
-
if (this.popoverElement) {
|
|
180
|
-
this.popoverElement.hide();
|
|
181
|
-
}
|
|
156
|
+
this.open = false;
|
|
182
157
|
}
|
|
183
158
|
handleOpenChanged(event) {
|
|
184
159
|
this.open = event.detail; // Update `open` based on the popover state
|
|
@@ -192,27 +167,22 @@ const NVFieldDropDown = class {
|
|
|
192
167
|
this.updateSelectedItem(newValue);
|
|
193
168
|
}
|
|
194
169
|
}
|
|
195
|
-
/**
|
|
196
|
-
* Watch for changes in the options prop
|
|
197
|
-
* @param {string} newValue - The new value of the options prop
|
|
198
|
-
*/
|
|
199
170
|
handleOptionsChange(newValue) {
|
|
200
171
|
if (newValue) {
|
|
201
172
|
try {
|
|
202
173
|
const parsedOpts = JSON.parse(newValue);
|
|
203
174
|
this.parsedOptions = [...parsedOpts];
|
|
204
|
-
// Handle pre-selected option
|
|
205
175
|
const selectedOption = this.parsedOptions.find(opt => opt.selected);
|
|
206
176
|
if (selectedOption) {
|
|
207
177
|
this.value = selectedOption.value;
|
|
208
|
-
// Wait for items to be rendered
|
|
209
178
|
requestAnimationFrame(() => {
|
|
179
|
+
// Wait for items to be rendered
|
|
210
180
|
this.updateSelectedItem(selectedOption.value);
|
|
211
181
|
});
|
|
212
182
|
}
|
|
213
183
|
}
|
|
214
184
|
catch (error) {
|
|
215
|
-
console.error('
|
|
185
|
+
console.error('nv-fielddropdown: error parsing options:', error);
|
|
216
186
|
this.parsedOptions = [];
|
|
217
187
|
}
|
|
218
188
|
}
|
|
@@ -220,52 +190,68 @@ const NVFieldDropDown = class {
|
|
|
220
190
|
this.parsedOptions = [];
|
|
221
191
|
}
|
|
222
192
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
// Initialize options if provided
|
|
228
|
-
if (this.options) {
|
|
229
|
-
this.handleOptionsChange(this.options);
|
|
230
|
-
}
|
|
231
|
-
if (this.value) {
|
|
232
|
-
// If an initial value exists, set it as selected
|
|
233
|
-
this.updateSelectedItem(this.value);
|
|
193
|
+
handleBlur(event) {
|
|
194
|
+
const target = event.relatedTarget;
|
|
195
|
+
if (!(target instanceof Node) || !this.el.contains(target)) {
|
|
196
|
+
this.open = false;
|
|
234
197
|
}
|
|
235
198
|
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
199
|
+
handleKeyDown(event) {
|
|
200
|
+
if (!this.open) {
|
|
201
|
+
if (event.key === 'ArrowDown') {
|
|
202
|
+
this.open = true;
|
|
203
|
+
if (!this.filterable) {
|
|
204
|
+
// Focus on the first item if it is not filterable
|
|
205
|
+
this.focusFirstItem();
|
|
206
|
+
}
|
|
207
|
+
event.preventDefault();
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitem:not([data-empty])'));
|
|
213
|
+
if (items.length === 0) {
|
|
214
|
+
console.warn('No dropdown items found to navigate');
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
let currentIndex = items.findIndex(item => item.classList.contains('highlighted'));
|
|
218
|
+
if (event.key === 'ArrowDown') {
|
|
219
|
+
event.preventDefault();
|
|
220
|
+
currentIndex = (currentIndex + 1) % items.length;
|
|
221
|
+
this.updateHighlightedItem(items, currentIndex);
|
|
222
|
+
}
|
|
223
|
+
else if (event.key === 'ArrowUp') {
|
|
224
|
+
event.preventDefault();
|
|
225
|
+
currentIndex = (currentIndex - 1 + items.length) % items.length;
|
|
226
|
+
this.updateHighlightedItem(items, currentIndex);
|
|
227
|
+
}
|
|
228
|
+
else if (event.key === 'Escape') {
|
|
229
|
+
event.preventDefault();
|
|
230
|
+
this.open = false;
|
|
231
|
+
if (this.inputElement) {
|
|
232
|
+
this.inputElement.blur();
|
|
233
|
+
}
|
|
241
234
|
}
|
|
242
235
|
}
|
|
236
|
+
//#endregion EVENTS
|
|
237
|
+
/****************************************************************************/
|
|
238
|
+
//#region METHODS
|
|
243
239
|
/**
|
|
244
|
-
*
|
|
240
|
+
* Retrieves the current filter text entered by the user.
|
|
241
|
+
* @returns {string} The filter text.
|
|
245
242
|
*/
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
// First, reset the filter to ensure all elements are visible
|
|
249
|
-
this.resetFilter();
|
|
250
|
-
// Then, handle the pre-selection
|
|
251
|
-
this.setInitialSelection();
|
|
252
|
-
// Finally, apply the filter if needed
|
|
253
|
-
if (this.filterable && this.filterText) {
|
|
254
|
-
this.filterItems();
|
|
255
|
-
}
|
|
243
|
+
async getFilterText() {
|
|
244
|
+
return this.filterText;
|
|
256
245
|
}
|
|
257
246
|
/**
|
|
258
|
-
* Set the initial selection based on the current value and update the
|
|
247
|
+
* Set the initial selection based on the current value and update the
|
|
248
|
+
* inputElement value.
|
|
259
249
|
*/
|
|
260
250
|
setInitialSelection() {
|
|
261
|
-
|
|
251
|
+
if (!this.value)
|
|
252
|
+
return;
|
|
262
253
|
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitem'));
|
|
263
|
-
const selectedItem = items.find(item =>
|
|
264
|
-
var _a;
|
|
265
|
-
return item.getAttribute('label') === this.value ||
|
|
266
|
-
item.getAttribute('value') === this.value ||
|
|
267
|
-
((_a = item.textContent) === null || _a === void 0 ? void 0 : _a.trim()) === this.value;
|
|
268
|
-
});
|
|
254
|
+
const selectedItem = items.find(item => item.getAttribute('value') === this.value);
|
|
269
255
|
items.forEach(item => {
|
|
270
256
|
item.removeAttribute('selected');
|
|
271
257
|
item.classList.remove('selected');
|
|
@@ -273,11 +259,7 @@ const NVFieldDropDown = class {
|
|
|
273
259
|
if (selectedItem) {
|
|
274
260
|
selectedItem.setAttribute('selected', 'true');
|
|
275
261
|
selectedItem.classList.add('selected');
|
|
276
|
-
this.value =
|
|
277
|
-
selectedItem.getAttribute('label') ||
|
|
278
|
-
selectedItem.getAttribute('value') ||
|
|
279
|
-
((_a = selectedItem.textContent) === null || _a === void 0 ? void 0 : _a.trim()) ||
|
|
280
|
-
'';
|
|
262
|
+
this.value = selectedItem.getAttribute('value');
|
|
281
263
|
if (this.inputElement) {
|
|
282
264
|
this.inputElement.value = this.value;
|
|
283
265
|
}
|
|
@@ -286,12 +268,6 @@ const NVFieldDropDown = class {
|
|
|
286
268
|
console.warn('No matching item found for value:', this.value);
|
|
287
269
|
}
|
|
288
270
|
}
|
|
289
|
-
/**
|
|
290
|
-
* Unsubscribe from click outside event.
|
|
291
|
-
*/
|
|
292
|
-
disconnectedCallback() {
|
|
293
|
-
document.removeEventListener('click', this.handleClickOutside.bind(this));
|
|
294
|
-
}
|
|
295
271
|
/**
|
|
296
272
|
* Filter dropdown items based on the text entered by the user.
|
|
297
273
|
* If no items are found, display a message indicating no results.
|
|
@@ -323,97 +299,26 @@ const NVFieldDropDown = class {
|
|
|
323
299
|
const emptyItem = document.createElement('nv-fielddropdownitem');
|
|
324
300
|
emptyItem.setAttribute('data-empty', 'true');
|
|
325
301
|
emptyItem.setAttribute('disabled', 'true');
|
|
326
|
-
emptyItem.textContent = this.
|
|
302
|
+
emptyItem.textContent = this.emptyResult;
|
|
327
303
|
(_a = this.el.querySelector('ul[slot="content"]')) === null || _a === void 0 ? void 0 : _a.appendChild(emptyItem);
|
|
328
304
|
}
|
|
329
305
|
}
|
|
330
|
-
/**
|
|
331
|
-
* Reset the filter and make all items visible.
|
|
332
|
-
*/
|
|
306
|
+
/** Reset the filter and make all items visible. */
|
|
333
307
|
resetFilter() {
|
|
334
308
|
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitem'));
|
|
335
309
|
items.forEach(item => {
|
|
336
310
|
item.style.display = '';
|
|
337
311
|
});
|
|
338
312
|
}
|
|
339
|
-
/**
|
|
340
|
-
* Retrieves the current filter text entered by the user.
|
|
341
|
-
* @returns {string} The filter text.
|
|
342
|
-
*/
|
|
343
|
-
async getFilterText() {
|
|
344
|
-
return this.filterText;
|
|
345
|
-
}
|
|
346
|
-
/**
|
|
347
|
-
* Handle click outside the component.
|
|
348
|
-
* @param {MouseEvent} event - The click event.
|
|
349
|
-
*/
|
|
350
|
-
handleClickOutside(event) {
|
|
351
|
-
if (this.el.contains(event.target) ||
|
|
352
|
-
(this.inputElement && this.inputElement.contains(event.target))) {
|
|
353
|
-
return;
|
|
354
|
-
}
|
|
355
|
-
this.popoverElement.hide();
|
|
356
|
-
}
|
|
357
|
-
handleKeyDown(event) {
|
|
358
|
-
if (!this.open) {
|
|
359
|
-
if (event.key === 'ArrowDown') {
|
|
360
|
-
this.open = true;
|
|
361
|
-
this.popoverElement.show();
|
|
362
|
-
if (!this.filterable) {
|
|
363
|
-
// Focus on the first item if it is not filterable
|
|
364
|
-
this.focusFirstItem();
|
|
365
|
-
}
|
|
366
|
-
event.preventDefault();
|
|
367
|
-
return;
|
|
368
|
-
}
|
|
369
|
-
return;
|
|
370
|
-
}
|
|
371
|
-
// Verify if the popover is defined before looking for items
|
|
372
|
-
if (!this.popoverElement) {
|
|
373
|
-
console.warn('Popover element is not defined');
|
|
374
|
-
return;
|
|
375
|
-
}
|
|
376
|
-
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitem:not([data-empty])'));
|
|
377
|
-
// Verify if items exist
|
|
378
|
-
if (items.length === 0) {
|
|
379
|
-
console.warn('No dropdown items found to navigate');
|
|
380
|
-
return;
|
|
381
|
-
}
|
|
382
|
-
let currentIndex = items.findIndex(item => item.classList.contains('highlighted'));
|
|
383
|
-
if (event.key === 'ArrowDown') {
|
|
384
|
-
event.preventDefault();
|
|
385
|
-
currentIndex = (currentIndex + 1) % items.length;
|
|
386
|
-
this.updateHighlightedItem(items, currentIndex);
|
|
387
|
-
}
|
|
388
|
-
else if (event.key === 'ArrowUp') {
|
|
389
|
-
event.preventDefault();
|
|
390
|
-
currentIndex = (currentIndex - 1 + items.length) % items.length;
|
|
391
|
-
this.updateHighlightedItem(items, currentIndex);
|
|
392
|
-
}
|
|
393
|
-
else if (event.key === 'Enter' && currentIndex >= 0) {
|
|
394
|
-
event.preventDefault();
|
|
395
|
-
items[currentIndex].click();
|
|
396
|
-
}
|
|
397
|
-
else if (event.key === 'Escape') {
|
|
398
|
-
event.preventDefault();
|
|
399
|
-
this.open = false;
|
|
400
|
-
this.popoverElement.hide();
|
|
401
|
-
if (this.inputElement) {
|
|
402
|
-
this.inputElement.blur();
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
313
|
updateHighlightedItem(items, index) {
|
|
407
314
|
items.forEach((item, i) => {
|
|
408
315
|
if (i === index) {
|
|
409
316
|
item.classList.add('highlighted');
|
|
410
|
-
item.
|
|
411
|
-
item.focus(); // Forcer le focus ici
|
|
317
|
+
item.focus();
|
|
412
318
|
item.scrollIntoView({ block: 'nearest' });
|
|
413
319
|
}
|
|
414
320
|
else {
|
|
415
321
|
item.classList.remove('highlighted');
|
|
416
|
-
item.setAttribute('tabindex', '-1');
|
|
417
322
|
}
|
|
418
323
|
});
|
|
419
324
|
}
|
|
@@ -424,17 +329,11 @@ const NVFieldDropDown = class {
|
|
|
424
329
|
this.updateHighlightedItem(Array.from(this.el.querySelectorAll('nv-fielddropdownitem')), 0);
|
|
425
330
|
}
|
|
426
331
|
else {
|
|
427
|
-
console.warn('
|
|
332
|
+
console.warn('nv-fielddropdown: no first item found to focus');
|
|
428
333
|
}
|
|
429
334
|
}
|
|
430
335
|
updateSelectedItem(value) {
|
|
431
336
|
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitem'));
|
|
432
|
-
// Reset all items
|
|
433
|
-
items.forEach(item => {
|
|
434
|
-
item.removeAttribute('selected');
|
|
435
|
-
item.classList.remove('selected');
|
|
436
|
-
});
|
|
437
|
-
// Find the item matching the value
|
|
438
337
|
const matchingItem = items.find(item => {
|
|
439
338
|
var _a;
|
|
440
339
|
const itemLabel = item.getAttribute('label');
|
|
@@ -442,30 +341,54 @@ const NVFieldDropDown = class {
|
|
|
442
341
|
const itemText = (_a = item.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
|
443
342
|
return itemLabel === value || itemValue === value || itemText === value;
|
|
444
343
|
});
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
this.inputElement.value = value;
|
|
344
|
+
items.forEach(item => {
|
|
345
|
+
if (item === matchingItem) {
|
|
346
|
+
item.setAttribute('selected', '');
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
item.removeAttribute('selected');
|
|
452
350
|
}
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
label: matchingItem.getAttribute('label') || value,
|
|
457
|
-
selected: true,
|
|
458
|
-
disabled: matchingItem.hasAttribute('disabled'),
|
|
459
|
-
});
|
|
351
|
+
});
|
|
352
|
+
if (matchingItem && this.inputElement) {
|
|
353
|
+
this.inputElement.value = value;
|
|
460
354
|
}
|
|
461
355
|
}
|
|
462
356
|
//#endregion METHODS
|
|
463
357
|
/****************************************************************************/
|
|
358
|
+
//#region LIFECYCLE
|
|
359
|
+
connectedCallback() {
|
|
360
|
+
document.addEventListener('click', this.handleClickOutside.bind(this));
|
|
361
|
+
this.resetFilter();
|
|
362
|
+
this.setInitialSelection();
|
|
363
|
+
if (this.filterable && this.filterText) {
|
|
364
|
+
this.filterItems();
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
componentWillLoad() {
|
|
368
|
+
if (this.options) {
|
|
369
|
+
this.handleOptionsChange(this.options);
|
|
370
|
+
}
|
|
371
|
+
if (this.value) {
|
|
372
|
+
this.updateSelectedItem(this.value);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
componentDidLoad() {
|
|
376
|
+
document.addEventListener('click', this.handleClickOutside.bind(this));
|
|
377
|
+
// Check again after complete rendering
|
|
378
|
+
if (this.value) {
|
|
379
|
+
this.updateSelectedItem(this.value);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
disconnectedCallback() {
|
|
383
|
+
document.removeEventListener('click', this.handleClickOutside.bind(this));
|
|
384
|
+
}
|
|
385
|
+
//#endregion LIFECYCLE
|
|
386
|
+
/****************************************************************************/
|
|
464
387
|
//#region RENDER
|
|
465
388
|
render() {
|
|
466
|
-
return (index.h(index.Host, { key: '
|
|
467
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '
|
|
468
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '
|
|
389
|
+
return (index.h(index.Host, { key: '99855b7abf6a00da6e086f2ad69bd95fe096bd50' }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '36453f817c5a428f55b0d3b344848fefb614ad76', htmlFor: this.inputId }, index.h("slot", { key: 'a4373ba2f11246c05926b4c1b42af627edb69418', name: "label" }, this.label))), index.h("nv-popover", { key: '5325f5dbb84f5aab2d52afb0cbf9c2363899c5af', ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, index.h("div", { key: '9925e66e8222adf7471c12eb3c3a94b320f97d4a', class: "input-wrapper", slot: "trigger" }, index.h("slot", { key: 'ec55d54c546beef866e0afe9b0593ad4b0b1af94', name: "before-input" }), index.h("div", { key: '0a0114905e4452ff8a2c7442478d1a0a42c1b058', class: "input-container", onClick: this.handleInputContainerClick }, index.h("slot", { key: 'b8745ddd519c940f95aad372976b4c4b3dd15b10', name: "leading-input" }), this.isFilterable || this.disabled || this.readonly ? (index.h("input", { id: this.inputId, type: "search", ref: e => (this.inputElement = e), autofocus: this.autofocus, autocomplete: this.autocomplete, placeholder: this.placeholder, name: this.name, value: this.getSelectedLabel(), required: this.required, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput, onFocus: this.handleInputFocus, onKeyDown: this.handleKeyDown })) : (index.h("p", { id: this.inputId, class: "non-filterable-text", onClick: this.handleInputContainerClick, tabIndex: this.disabled ? -1 : 0, onKeyDown: this.handleKeyDown, onFocus: this.handleInputFocus }, index.h("span", null, this.getSelectedLabel() || this.value || this.placeholder))), index.h("nv-iconbutton", { key: 'f5b99e6b87c13f131bc212936778e85e5a953788', class: "toggle-dropdown-icon", name: this.open ? 'chevron-top' : 'chevron-down', size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide dropdown' : 'Show dropdown', "aria-pressed": this.open.toString(), onClick: this.togglePopover, tabIndex: this.disabled ? -1 : 0 })), index.h("slot", { key: 'f1f21795ba6f40193c7c57c5c585315b732a13e1', name: "after-input" })), index.h("div", { key: '147ce233da3d6c6e118b476eca1ed943bb20951f', slot: "content" }, this.parsedOptions.length > 0 ? (index.h("ul", null, this.parsedOptions.map(option => (index.h("nv-fielddropdownitem", { label: option.label, value: option.value, disabled: option.disabled, selected: option.value === this.value }))))) : (index.h("slot", { name: "content" })))), (this.description ||
|
|
390
|
+
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '4e5978d880fd207281e9fa2b1f283c851798b25d', class: "description" }, index.h("slot", { key: '8c80ef894500189da8944e7abbba9957ea411820', name: "description" }, this.description))), (this.errorDescription ||
|
|
391
|
+
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '22d0d1c7a84b56978e330c4bb7f073ef221e0fb9', hidden: !this.error, class: "error-description" }, index.h("slot", { key: 'fe4769ff4c96e525b5f0fca55ed0afbe5d837ac3', name: "error-description" }, this.errorDescription)))));
|
|
469
392
|
}
|
|
470
393
|
static get formAssociated() { return true; }
|
|
471
394
|
get el() { return index.getElement(this); }
|
|
@@ -475,8 +398,8 @@ const NVFieldDropDown = class {
|
|
|
475
398
|
"options": ["handleOptionsChange"]
|
|
476
399
|
}; }
|
|
477
400
|
};
|
|
478
|
-
|
|
401
|
+
NvFielddropdown.style = NvFielddropdownStyle0;
|
|
479
402
|
|
|
480
|
-
exports.nv_fielddropdown =
|
|
403
|
+
exports.nv_fielddropdown = NvFielddropdown;
|
|
481
404
|
|
|
482
405
|
//# sourceMappingURL=nv-fielddropdown.cjs.entry.js.map
|