@nova-design-system/nova-webcomponents 3.0.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{constants-bcd6b2e2.js → constants-8fb8ccc0.js} +14 -1
- package/dist/cjs/constants-8fb8ccc0.js.map +1 -0
- package/dist/cjs/{index-9bda5507.js → index-108ddff0.js} +22 -6
- package/dist/cjs/index-108ddff0.js.map +1 -0
- package/dist/cjs/index.cjs.js +5 -471
- 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 +6 -6
- package/dist/cjs/nv-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-avatar.cjs.entry.js +2 -2
- package/dist/cjs/nv-badge_2.cjs.entry.js +18 -9
- package/dist/cjs/nv-badge_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/nv-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/nv-button.cjs.entry.js +2 -2
- package/dist/cjs/nv-calendar.cjs.entry.js +821 -843
- package/dist/cjs/nv-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-col.cjs.entry.js +1 -1
- package/dist/cjs/nv-datagrid.cjs.entry.js +423 -94
- package/dist/cjs/nv-datagrid.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js +2 -2
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-dialog.cjs.entry.js +19 -13
- 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 +1 -1
- package/dist/cjs/nv-fielddate.cjs.entry.js +9 -18
- package/dist/cjs/nv-fielddate.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddaterange.cjs.entry.js +85 -32
- package/dist/cjs/nv-fielddaterange.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +88 -57
- package/dist/cjs/nv-fielddropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +122 -104
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +9 -5
- package/dist/cjs/nv-fieldnumber.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +9 -5
- package/dist/cjs/nv-fieldpassword.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldradio.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldselect.cjs.entry.js +11 -7
- package/dist/cjs/nv-fieldselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldslider.cjs.entry.js +663 -0
- package/dist/cjs/nv-fieldslider.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldtext.cjs.entry.js +9 -5
- package/dist/cjs/nv-fieldtext.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +9 -5
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtime.cjs.entry.js +16 -13
- package/dist/cjs/nv-fieldtime.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-icon.cjs.entry.js +4 -4
- package/dist/cjs/nv-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js +3 -3
- package/dist/cjs/nv-menu.cjs.entry.js +4 -2
- package/dist/cjs/nv-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-menuitem.cjs.entry.js +2 -2
- package/dist/cjs/nv-popover.cjs.entry.js +2 -2
- package/dist/cjs/nv-row.cjs.entry.js +2 -2
- package/dist/cjs/nv-stack.cjs.entry.js +2 -2
- package/dist/cjs/nv-table.cjs.entry.js +3 -3
- package/dist/cjs/nv-table.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-tablecolumn.cjs.entry.js +1 -1
- package/dist/cjs/nv-toggle.cjs.entry.js +3 -3
- package/dist/cjs/nv-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/nv-tooltip.cjs.entry.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/nv-alert/nv-alert.css +3 -0
- package/dist/collection/components/nv-alert/nv-alert.js +6 -11
- package/dist/collection/components/nv-alert/nv-alert.js.map +1 -1
- package/dist/collection/components/nv-badge/nv-badge.css +181 -1
- package/dist/collection/components/nv-badge/nv-badge.docs.js +20 -1
- package/dist/collection/components/nv-badge/nv-badge.docs.js.map +1 -1
- package/dist/collection/components/nv-badge/nv-badge.js +39 -15
- package/dist/collection/components/nv-badge/nv-badge.js.map +1 -1
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.docs.js +0 -1
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.docs.js.map +1 -1
- package/dist/collection/components/nv-calendar/nv-calendar.css +25 -2
- package/dist/collection/components/nv-calendar/nv-calendar.docs.js +33 -38
- package/dist/collection/components/nv-calendar/nv-calendar.docs.js.map +1 -1
- package/dist/collection/components/nv-calendar/nv-calendar.js +659 -897
- package/dist/collection/components/nv-calendar/nv-calendar.js.map +1 -1
- package/dist/collection/components/nv-calendar/nv-calendar.utils.js +202 -0
- package/dist/collection/components/nv-calendar/nv-calendar.utils.js.map +1 -0
- package/dist/collection/components/nv-calendar/test/nv-calendar.utils.test.js +667 -0
- package/dist/collection/components/nv-calendar/test/nv-calendar.utils.test.js.map +1 -0
- package/dist/collection/components/nv-datagrid/nv-datagrid.css +98 -0
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js +232 -51
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js.map +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js +437 -160
- package/dist/collection/components/nv-datagrid/nv-datagrid.js.map +1 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js +20 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js.map +1 -1
- package/dist/collection/components/nv-dialog/nv-dialog.css +29 -5
- package/dist/collection/components/nv-dialog/nv-dialog.docs.js +0 -1
- package/dist/collection/components/nv-dialog/nv-dialog.docs.js.map +1 -1
- package/dist/collection/components/nv-dialog/nv-dialog.js +16 -10
- package/dist/collection/components/nv-dialog/nv-dialog.js.map +1 -1
- package/dist/collection/components/nv-fielddate/nv-fielddate.docs.js +16 -8
- package/dist/collection/components/nv-fielddate/nv-fielddate.docs.js.map +1 -1
- package/dist/collection/components/nv-fielddate/nv-fielddate.js +48 -39
- package/dist/collection/components/nv-fielddate/nv-fielddate.js.map +1 -1
- package/dist/collection/components/nv-fielddate/styles/nv-fielddate.css +14 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.docs.js +12 -15
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.docs.js.map +1 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js +147 -68
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js.map +1 -1
- package/dist/collection/components/nv-fielddaterange/styles/nv-fielddaterange.css +20 -12
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js +16 -0
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +197 -103
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/styles/nv-fielddropdown.css +36 -1
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +1 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +1 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js +8 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +228 -190
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js.map +1 -1
- package/dist/collection/components/nv-fieldmultiselect/{nv-fieldmultiselect.css → styles/nv-fieldmultiselect.css} +36 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.css +12 -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 +27 -3
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js.map +1 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.css +12 -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 +27 -3
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js.map +1 -1
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +3 -3
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.css +12 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js +8 -0
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +29 -5
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js.map +1 -1
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.docs.js +264 -0
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.js +1035 -0
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.js.map +1 -0
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.utils.js +77 -0
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.utils.js.map +1 -0
- package/dist/collection/components/nv-fieldslider/partials/field-input.js +33 -0
- package/dist/collection/components/nv-fieldslider/partials/field-input.js.map +1 -0
- package/dist/collection/components/nv-fieldslider/partials/range-thumb.js +34 -0
- package/dist/collection/components/nv-fieldslider/partials/range-thumb.js.map +1 -0
- package/dist/collection/components/nv-fieldslider/partials/single-thumb.js +18 -0
- package/dist/collection/components/nv-fieldslider/partials/single-thumb.js.map +1 -0
- package/dist/collection/components/nv-fieldslider/partials/tick-marks.js +18 -0
- package/dist/collection/components/nv-fieldslider/partials/tick-marks.js.map +1 -0
- package/dist/collection/components/nv-fieldslider/styles/nv-fieldslider.css +267 -0
- package/dist/collection/components/nv-fieldslider/test/nv-fieldslider.utils.test.js +159 -0
- package/dist/collection/components/nv-fieldslider/test/nv-fieldslider.utils.test.js.map +1 -0
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.css +20 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js +17 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +28 -3
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js.map +1 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.css +30 -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 +27 -3
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js.map +1 -1
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js +13 -10
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js.map +1 -1
- package/dist/collection/components/nv-fieldtime/styles/nv-fieldtime.css +26 -3
- package/dist/collection/components/nv-icon/nv-icon.js +1 -1
- package/dist/collection/components/nv-icon/nv-icons.js +4 -470
- 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 +3 -1
- package/dist/collection/components/nv-menu/nv-menu.js.map +1 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +2 -2
- 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 +8 -11
- package/dist/collection/components/nv-table/nv-table.js.map +1 -1
- package/dist/collection/components/nv-toggle/nv-toggle.js +2 -2
- package/dist/collection/components/nv-tooltip/nv-tooltip.css +1 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/interfaces/Column.js.map +1 -1
- package/dist/collection/templates/navigation.docs.js +0 -1
- package/dist/collection/templates/navigation.docs.js.map +1 -1
- package/dist/collection/utils/constants.js +11 -0
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/components/index.js +6 -472
- package/dist/components/index.js.map +1 -1
- package/dist/components/nv-alert.js +7 -7
- package/dist/components/nv-alert.js.map +1 -1
- package/dist/components/nv-avatar.js +3 -3
- package/dist/components/nv-badge.js +1 -1
- package/dist/components/nv-breadcrumb.js +3 -3
- package/dist/components/nv-breadcrumbs.js +1 -1
- package/dist/components/nv-button.js +1 -1
- package/dist/components/nv-calendar.js +1 -1
- package/dist/components/nv-col.js +1 -1
- package/dist/components/nv-datagrid.js +447 -102
- package/dist/components/nv-datagrid.js.map +1 -1
- package/dist/components/nv-datagridcolumn.js +4 -3
- package/dist/components/nv-datagridcolumn.js.map +1 -1
- package/dist/components/nv-dialog.js +24 -18
- package/dist/components/nv-dialog.js.map +1 -1
- package/dist/components/nv-dialogfooter.js +1 -1
- package/dist/components/nv-dialogheader.js +1 -1
- package/dist/components/nv-fieldcheckbox.js +1 -1
- package/dist/components/nv-fielddate.js +19 -27
- package/dist/components/nv-fielddate.js.map +1 -1
- package/dist/components/nv-fielddaterange.js +99 -44
- package/dist/components/nv-fielddaterange.js.map +1 -1
- package/dist/components/nv-fielddropdown.js +103 -69
- 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 +139 -120
- package/dist/components/nv-fieldmultiselect.js.map +1 -1
- package/dist/components/nv-fieldnumber.js +14 -9
- package/dist/components/nv-fieldnumber.js.map +1 -1
- package/dist/components/nv-fieldpassword.js +13 -8
- package/dist/components/nv-fieldpassword.js.map +1 -1
- package/dist/components/nv-fieldradio.js +4 -4
- package/dist/components/nv-fieldselect.js +15 -10
- package/dist/components/nv-fieldselect.js.map +1 -1
- package/dist/components/nv-fieldslider.d.ts +11 -0
- package/dist/components/nv-fieldslider.js +726 -0
- package/dist/components/nv-fieldslider.js.map +1 -0
- package/dist/components/nv-fieldtext.js +1 -158
- package/dist/components/nv-fieldtext.js.map +1 -1
- package/dist/components/nv-fieldtextarea.js +11 -6
- package/dist/components/nv-fieldtextarea.js.map +1 -1
- package/dist/components/nv-fieldtime.js +20 -17
- 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 +7 -5
- package/dist/components/nv-menu.js.map +1 -1
- package/dist/components/nv-menuitem.js +1 -1
- package/dist/components/nv-popover.js +1 -1
- package/dist/components/nv-row.js +2 -2
- package/dist/components/nv-stack.js +2 -2
- package/dist/components/nv-table.js +3 -3
- package/dist/components/nv-table.js.map +1 -1
- package/dist/components/nv-tablecolumn.js +1 -1
- package/dist/components/nv-toggle.js +3 -3
- package/dist/components/nv-tooltip.js +1 -1
- package/dist/components/{p-dc3faba3.js → p-04cb3a6f.js} +5 -5
- package/dist/components/{p-dc3faba3.js.map → p-04cb3a6f.js.map} +1 -1
- package/dist/components/p-07a89754.js +187 -0
- package/dist/components/p-07a89754.js.map +1 -0
- package/dist/components/{p-b7b78e64.js → p-0ab80d95.js} +3 -3
- package/dist/components/{p-b7b78e64.js.map → p-0ab80d95.js.map} +1 -1
- package/dist/components/{p-8348db09.js → p-1f505531.js} +15 -2
- package/dist/components/p-1f505531.js.map +1 -0
- package/dist/components/{p-02752770.js → p-33e231f4.js} +2 -2
- package/dist/components/{p-02752770.js.map → p-33e231f4.js.map} +1 -1
- package/dist/components/p-4656efae.js +1111 -0
- package/dist/components/p-4656efae.js.map +1 -0
- package/dist/components/{p-2012b8ba.js → p-581e67cc.js} +4 -4
- package/dist/components/{p-2012b8ba.js.map → p-581e67cc.js.map} +1 -1
- package/dist/components/{p-1c45c0f2.js → p-679e0fa9.js} +16 -4
- package/dist/components/p-679e0fa9.js.map +1 -0
- package/dist/components/p-76a30bf1.js +88 -0
- package/dist/components/p-76a30bf1.js.map +1 -0
- package/dist/components/{p-150daf68.js → p-83c8873a.js} +3 -3
- package/dist/components/{p-150daf68.js.map → p-83c8873a.js.map} +1 -1
- package/dist/components/{p-c14f6b8e.js → p-c0a91091.js} +5 -5
- package/dist/components/p-c0a91091.js.map +1 -0
- package/dist/components/{p-6c364a23.js → p-cbdc2c8b.js} +6 -6
- package/dist/components/{p-6c364a23.js.map → p-cbdc2c8b.js.map} +1 -1
- package/dist/components/{p-2d9ba7d3.js → p-cbe9521f.js} +4 -4
- package/dist/components/{p-2d9ba7d3.js.map → p-cbe9521f.js.map} +1 -1
- package/dist/components/{p-a30b55fc.js → p-d19b41d2.js} +2 -2
- package/dist/components/{p-a30b55fc.js.map → p-d19b41d2.js.map} +1 -1
- package/dist/components/{p-4d3ec142.js → p-d63f1cbe.js} +4 -4
- package/dist/components/{p-4d3ec142.js.map → p-d63f1cbe.js.map} +1 -1
- package/dist/components/{p-e00cbb8a.js → p-dd2273a3.js} +2 -2
- package/dist/components/{p-e00cbb8a.js.map → p-dd2273a3.js.map} +1 -1
- package/dist/components/p-f0a5e7e4.js +167 -0
- package/dist/components/p-f0a5e7e4.js.map +1 -0
- package/dist/components/{p-f4d86795.js → p-f1859ddc.js} +4 -4
- package/dist/components/{p-f4d86795.js.map → p-f1859ddc.js.map} +1 -1
- package/dist/esm/{constants-98e2dcc2.js → constants-b97e736d.js} +15 -2
- package/dist/esm/constants-b97e736d.js.map +1 -0
- package/dist/esm/{index-1fb7a9a6.js → index-8f0e5f19.js} +22 -6
- package/dist/esm/index-8f0e5f19.js.map +1 -0
- package/dist/esm/index.js +5 -471
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/native.js +3 -3
- package/dist/esm/nv-alert.entry.js +6 -6
- package/dist/esm/nv-alert.entry.js.map +1 -1
- package/dist/esm/nv-avatar.entry.js +2 -2
- package/dist/esm/nv-badge_2.entry.js +18 -9
- package/dist/esm/nv-badge_2.entry.js.map +1 -1
- package/dist/esm/nv-breadcrumb.entry.js +1 -1
- package/dist/esm/nv-breadcrumbs.entry.js +1 -1
- package/dist/esm/nv-button.entry.js +2 -2
- package/dist/esm/nv-calendar.entry.js +821 -843
- package/dist/esm/nv-calendar.entry.js.map +1 -1
- package/dist/esm/nv-col.entry.js +1 -1
- package/dist/esm/nv-datagrid.entry.js +423 -94
- package/dist/esm/nv-datagrid.entry.js.map +1 -1
- package/dist/esm/nv-datagridcolumn.entry.js +2 -2
- package/dist/esm/nv-datagridcolumn.entry.js.map +1 -1
- package/dist/esm/nv-dialog.entry.js +19 -13
- 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 +1 -1
- package/dist/esm/nv-fielddate.entry.js +9 -18
- package/dist/esm/nv-fielddate.entry.js.map +1 -1
- package/dist/esm/nv-fielddaterange.entry.js +85 -32
- package/dist/esm/nv-fielddaterange.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdown.entry.js +88 -57
- package/dist/esm/nv-fielddropdown.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdownitem.entry.js +2 -2
- package/dist/esm/nv-fieldmultiselect.entry.js +122 -104
- package/dist/esm/nv-fieldmultiselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldnumber.entry.js +9 -5
- package/dist/esm/nv-fieldnumber.entry.js.map +1 -1
- package/dist/esm/nv-fieldpassword.entry.js +9 -5
- package/dist/esm/nv-fieldpassword.entry.js.map +1 -1
- package/dist/esm/nv-fieldradio.entry.js +4 -4
- package/dist/esm/nv-fieldselect.entry.js +11 -7
- package/dist/esm/nv-fieldselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldslider.entry.js +659 -0
- package/dist/esm/nv-fieldslider.entry.js.map +1 -0
- package/dist/esm/nv-fieldtext.entry.js +9 -5
- package/dist/esm/nv-fieldtext.entry.js.map +1 -1
- package/dist/esm/nv-fieldtextarea.entry.js +9 -5
- package/dist/esm/nv-fieldtextarea.entry.js.map +1 -1
- package/dist/esm/nv-fieldtime.entry.js +16 -13
- package/dist/esm/nv-fieldtime.entry.js.map +1 -1
- package/dist/esm/nv-icon.entry.js +4 -4
- package/dist/esm/nv-icon.entry.js.map +1 -1
- package/dist/esm/nv-iconbutton_2.entry.js +3 -3
- package/dist/esm/nv-menu.entry.js +4 -2
- package/dist/esm/nv-menu.entry.js.map +1 -1
- package/dist/esm/nv-menuitem.entry.js +2 -2
- package/dist/esm/nv-popover.entry.js +2 -2
- package/dist/esm/nv-row.entry.js +2 -2
- package/dist/esm/nv-stack.entry.js +2 -2
- package/dist/esm/nv-table.entry.js +3 -3
- package/dist/esm/nv-table.entry.js.map +1 -1
- package/dist/esm/nv-tablecolumn.entry.js +1 -1
- package/dist/esm/nv-toggle.entry.js +3 -3
- package/dist/esm/nv-tooltip.entry.js +3 -3
- package/dist/esm/nv-tooltip.entry.js.map +1 -1
- 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-6b348684.entry.js → p-0323daf6.entry.js} +2 -2
- package/dist/native/{p-d5cbf5c8.entry.js → p-05d95d4d.entry.js} +2 -2
- package/dist/native/{p-fb5bddba.entry.js → p-0ec1e2e3.entry.js} +2 -2
- package/dist/native/{p-c7b201cd.entry.js → p-16a4cdf3.entry.js} +2 -2
- package/dist/native/p-19fb0fd0.entry.js +2 -0
- package/dist/native/p-19fb0fd0.entry.js.map +1 -0
- package/dist/native/p-1e3d3374.entry.js +2 -0
- package/dist/native/{p-9135fdf5.entry.js.map → p-1e3d3374.entry.js.map} +1 -1
- package/dist/native/p-21e7132f.entry.js +2 -0
- package/dist/native/p-21e7132f.entry.js.map +1 -0
- package/dist/native/p-221b8f72.entry.js +2 -0
- package/dist/native/p-221b8f72.entry.js.map +1 -0
- package/dist/native/p-2805f9f2.entry.js +2 -0
- package/dist/native/p-2805f9f2.entry.js.map +1 -0
- package/dist/native/p-3f2b6a22.entry.js +2 -0
- package/dist/native/p-3f2b6a22.entry.js.map +1 -0
- package/dist/native/{p-0245863d.entry.js → p-407fc32d.entry.js} +2 -2
- package/dist/native/{p-63e6aed3.entry.js → p-4c0d81b0.entry.js} +2 -2
- package/dist/native/p-4c0d81b0.entry.js.map +1 -0
- package/dist/native/{p-39bb95ff.entry.js → p-519b4819.entry.js} +2 -2
- package/dist/native/{p-fa77a591.entry.js → p-5382eab2.entry.js} +2 -2
- package/dist/native/p-5ba3fc3c.entry.js +2 -0
- package/dist/native/p-5ba3fc3c.entry.js.map +1 -0
- package/dist/native/{p-bad11367.entry.js → p-60b204ac.entry.js} +2 -2
- package/dist/native/p-60b204ac.entry.js.map +1 -0
- package/dist/native/p-7092a675.entry.js +2 -0
- package/dist/native/p-711a7778.js +3 -0
- package/dist/native/p-711a7778.js.map +1 -0
- package/dist/native/p-759c9ce4.entry.js +2 -0
- package/dist/native/p-759c9ce4.entry.js.map +1 -0
- package/dist/native/{p-d7a76400.entry.js → p-7c676f2c.entry.js} +2 -2
- package/dist/native/p-7c6edd1c.entry.js +2 -0
- package/dist/native/p-7c6edd1c.entry.js.map +1 -0
- package/dist/native/p-987c79d8.entry.js +2 -0
- package/dist/native/p-987c79d8.entry.js.map +1 -0
- package/dist/native/{p-f85aca27.entry.js → p-9fba8663.entry.js} +2 -2
- package/dist/native/{p-b094296d.entry.js → p-a2c0f1a7.entry.js} +2 -2
- package/dist/native/p-aa86af25.entry.js +2 -0
- package/dist/native/p-aa86af25.entry.js.map +1 -0
- package/dist/native/p-adc96c3a.entry.js +2 -0
- package/dist/native/p-adc96c3a.entry.js.map +1 -0
- package/dist/native/p-b0fc08e7.entry.js +2 -0
- package/dist/native/p-b0fc08e7.entry.js.map +1 -0
- package/dist/native/{p-6ff228da.entry.js → p-c930adb7.entry.js} +2 -2
- package/dist/native/{p-701b5557.entry.js → p-cfe0a6c6.entry.js} +2 -2
- package/dist/native/p-d07ab618.entry.js +2 -0
- package/dist/native/p-dac0089b.entry.js +2 -0
- package/dist/native/p-dac0089b.entry.js.map +1 -0
- package/dist/native/p-de2c07a6.entry.js +13 -0
- package/dist/native/p-de2c07a6.entry.js.map +1 -0
- package/dist/native/p-ed488498.entry.js +7 -0
- package/dist/native/p-ed488498.entry.js.map +1 -0
- package/dist/native/p-ef76178b.entry.js +2 -0
- package/dist/native/p-ef76178b.entry.js.map +1 -0
- package/dist/native/{p-e5de64d5.entry.js → p-f0ddf60b.entry.js} +2 -2
- package/dist/native/p-f39803d9.entry.js +2 -0
- package/dist/native/p-f39803d9.entry.js.map +1 -0
- package/dist/native/{p-59768ee5.js → p-f85c08f1.js} +2 -2
- package/dist/native/p-f85c08f1.js.map +1 -0
- package/dist/native/p-fb897f7d.entry.js +2 -0
- package/dist/native/p-fb897f7d.entry.js.map +1 -0
- package/dist/native/{p-244f56ac.entry.js → p-fc3bea07.entry.js} +2 -2
- package/dist/types/components/nv-alert/nv-alert.d.ts +1 -1
- package/dist/types/components/nv-badge/nv-badge.d.ts +11 -3
- package/dist/types/components/nv-calendar/nv-calendar.d.ts +70 -112
- package/dist/types/components/nv-calendar/nv-calendar.utils.d.ts +60 -0
- package/dist/types/components/nv-calendar/test/nv-calendar.utils.test.d.ts +1 -0
- package/dist/types/components/nv-datagrid/nv-datagrid.d.ts +47 -26
- package/dist/types/components/nv-datagridcolumn/nv-datagridcolumn.d.ts +4 -0
- package/dist/types/components/nv-dialog/nv-dialog.d.ts +4 -0
- package/dist/types/components/nv-fielddate/nv-fielddate.d.ts +6 -7
- package/dist/types/components/nv-fielddaterange/nv-fielddaterange.d.ts +23 -12
- package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +51 -26
- package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.d.ts +65 -55
- package/dist/types/components/nv-fieldnumber/nv-fieldnumber.d.ts +4 -0
- package/dist/types/components/nv-fieldpassword/nv-fieldpassword.d.ts +4 -0
- package/dist/types/components/nv-fieldselect/nv-fieldselect.d.ts +4 -0
- package/dist/types/components/nv-fieldslider/nv-fieldslider.d.ts +230 -0
- package/dist/types/components/nv-fieldslider/nv-fieldslider.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldslider/nv-fieldslider.utils.d.ts +46 -0
- package/dist/types/components/nv-fieldslider/partials/field-input.d.ts +45 -0
- package/dist/types/components/nv-fieldslider/partials/range-thumb.d.ts +37 -0
- package/dist/types/components/nv-fieldslider/partials/single-thumb.d.ts +35 -0
- package/dist/types/components/nv-fieldslider/partials/tick-marks.d.ts +28 -0
- package/dist/types/components/nv-fieldslider/test/nv-fieldslider.utils.test.d.ts +1 -0
- package/dist/types/components/nv-fieldtext/nv-fieldtext.d.ts +5 -0
- package/dist/types/components/nv-fieldtextarea/nv-fieldtextarea.d.ts +4 -0
- package/dist/types/components/nv-icon/nv-icons.d.ts +1 -1
- package/dist/types/components/nv-table/nv-table.d.ts +13 -2
- package/dist/types/components.d.ts +656 -154
- package/dist/types/index.d.ts +0 -2
- package/dist/types/interfaces/Column.d.ts +5 -1
- package/dist/types/utils/constants.d.ts +9 -0
- package/dist/vscode-data.json +292 -1546
- package/hydrate/index.js +2715 -1533
- package/hydrate/index.mjs +2715 -1533
- package/package.json +6 -2
- package/dist/cjs/constants-bcd6b2e2.js.map +0 -1
- package/dist/cjs/index-9bda5507.js.map +0 -1
- package/dist/collection/interfaces/actionEvent.js +0 -2
- package/dist/collection/interfaces/actionEvent.js.map +0 -1
- package/dist/collection/interfaces/calendarShortcut.js +0 -2
- package/dist/collection/interfaces/calendarShortcut.js.map +0 -1
- package/dist/collection/interfaces/dateRange.js +0 -2
- package/dist/collection/interfaces/dateRange.js.map +0 -1
- package/dist/components/p-1c45c0f2.js.map +0 -1
- package/dist/components/p-373926aa.js +0 -177
- package/dist/components/p-373926aa.js.map +0 -1
- package/dist/components/p-591730e7.js +0 -88
- package/dist/components/p-591730e7.js.map +0 -1
- package/dist/components/p-8348db09.js.map +0 -1
- package/dist/components/p-c14f6b8e.js.map +0 -1
- package/dist/components/p-f331117c.js +0 -1133
- package/dist/components/p-f331117c.js.map +0 -1
- package/dist/esm/constants-98e2dcc2.js.map +0 -1
- package/dist/esm/index-1fb7a9a6.js.map +0 -1
- package/dist/native/p-0ee428d5.entry.js +0 -2
- package/dist/native/p-0ee428d5.entry.js.map +0 -1
- package/dist/native/p-2691e02d.entry.js +0 -2
- package/dist/native/p-37f0210e.entry.js +0 -2
- package/dist/native/p-37f0210e.entry.js.map +0 -1
- package/dist/native/p-4a440970.entry.js +0 -2
- package/dist/native/p-4a440970.entry.js.map +0 -1
- package/dist/native/p-4ae26462.entry.js +0 -7
- package/dist/native/p-4ae26462.entry.js.map +0 -1
- package/dist/native/p-4d9c4618.entry.js +0 -2
- package/dist/native/p-4d9c4618.entry.js.map +0 -1
- package/dist/native/p-4dc1d036.entry.js +0 -2
- package/dist/native/p-59768ee5.js.map +0 -1
- package/dist/native/p-59e0bd2b.entry.js +0 -2
- package/dist/native/p-59e0bd2b.entry.js.map +0 -1
- package/dist/native/p-5c00f092.entry.js +0 -2
- package/dist/native/p-5c00f092.entry.js.map +0 -1
- package/dist/native/p-63e6aed3.entry.js.map +0 -1
- package/dist/native/p-7f5eb2ac.entry.js +0 -2
- package/dist/native/p-7f5eb2ac.entry.js.map +0 -1
- package/dist/native/p-84a73e2a.entry.js +0 -2
- package/dist/native/p-84a73e2a.entry.js.map +0 -1
- package/dist/native/p-9135fdf5.entry.js +0 -2
- package/dist/native/p-93dc2f47.entry.js +0 -2
- package/dist/native/p-93dc2f47.entry.js.map +0 -1
- package/dist/native/p-9a267f16.entry.js +0 -13
- package/dist/native/p-9a267f16.entry.js.map +0 -1
- package/dist/native/p-9d6431c7.entry.js +0 -2
- package/dist/native/p-9d6431c7.entry.js.map +0 -1
- package/dist/native/p-ab002252.js +0 -3
- package/dist/native/p-ab002252.js.map +0 -1
- package/dist/native/p-b2ce83ad.entry.js +0 -2
- package/dist/native/p-b2ce83ad.entry.js.map +0 -1
- package/dist/native/p-bad11367.entry.js.map +0 -1
- package/dist/native/p-e1a4f776.entry.js +0 -2
- package/dist/native/p-e1a4f776.entry.js.map +0 -1
- package/dist/native/p-e49bbd02.entry.js +0 -2
- package/dist/native/p-e49bbd02.entry.js.map +0 -1
- package/dist/native/p-eee01062.entry.js +0 -2
- package/dist/native/p-eee01062.entry.js.map +0 -1
- package/dist/native/p-f6bdc270.entry.js +0 -2
- package/dist/native/p-f6bdc270.entry.js.map +0 -1
- package/dist/types/interfaces/actionEvent.d.ts +0 -13
- package/dist/types/interfaces/calendarShortcut.d.ts +0 -17
- package/dist/types/interfaces/dateRange.d.ts +0 -13
- /package/dist/native/{p-6b348684.entry.js.map → p-0323daf6.entry.js.map} +0 -0
- /package/dist/native/{p-d5cbf5c8.entry.js.map → p-05d95d4d.entry.js.map} +0 -0
- /package/dist/native/{p-fb5bddba.entry.js.map → p-0ec1e2e3.entry.js.map} +0 -0
- /package/dist/native/{p-c7b201cd.entry.js.map → p-16a4cdf3.entry.js.map} +0 -0
- /package/dist/native/{p-0245863d.entry.js.map → p-407fc32d.entry.js.map} +0 -0
- /package/dist/native/{p-39bb95ff.entry.js.map → p-519b4819.entry.js.map} +0 -0
- /package/dist/native/{p-fa77a591.entry.js.map → p-5382eab2.entry.js.map} +0 -0
- /package/dist/native/{p-2691e02d.entry.js.map → p-7092a675.entry.js.map} +0 -0
- /package/dist/native/{p-d7a76400.entry.js.map → p-7c676f2c.entry.js.map} +0 -0
- /package/dist/native/{p-f85aca27.entry.js.map → p-9fba8663.entry.js.map} +0 -0
- /package/dist/native/{p-b094296d.entry.js.map → p-a2c0f1a7.entry.js.map} +0 -0
- /package/dist/native/{p-6ff228da.entry.js.map → p-c930adb7.entry.js.map} +0 -0
- /package/dist/native/{p-701b5557.entry.js.map → p-cfe0a6c6.entry.js.map} +0 -0
- /package/dist/native/{p-4dc1d036.entry.js.map → p-d07ab618.entry.js.map} +0 -0
- /package/dist/native/{p-e5de64d5.entry.js.map → p-f0ddf60b.entry.js.map} +0 -0
- /package/dist/native/{p-244f56ac.entry.js.map → p-fc3bea07.entry.js.map} +0 -0
|
@@ -20,10 +20,6 @@ export class NvFielddropdown {
|
|
|
20
20
|
* accessibility.
|
|
21
21
|
*/
|
|
22
22
|
this.inputId = uuidv4();
|
|
23
|
-
/**
|
|
24
|
-
* State of the dropdown popover.
|
|
25
|
-
*/
|
|
26
|
-
this.open = false;
|
|
27
23
|
/**
|
|
28
24
|
* The autocomplete prop helps users fill out the input field faster by
|
|
29
25
|
* suggesting entries they've used before, like their email or address.
|
|
@@ -36,12 +32,6 @@ export class NvFielddropdown {
|
|
|
36
32
|
* before submitting the form.
|
|
37
33
|
*/
|
|
38
34
|
this.required = false;
|
|
39
|
-
/**
|
|
40
|
-
* Alters the input field's appearance to indicate an error, helping users
|
|
41
|
-
* identify fields that need correction.
|
|
42
|
-
* @validator error
|
|
43
|
-
*/
|
|
44
|
-
this.error = false;
|
|
45
35
|
/**
|
|
46
36
|
* Display the input field's content without allowing users to change it.
|
|
47
37
|
* Users can still click on it, select, and copy the text, but they won't be
|
|
@@ -54,6 +44,20 @@ export class NvFielddropdown {
|
|
|
54
44
|
* clicks or touches.
|
|
55
45
|
*/
|
|
56
46
|
this.disabled = false;
|
|
47
|
+
/**
|
|
48
|
+
* Alters the input field's appearance to indicate an error, helping users
|
|
49
|
+
* identify fields that need correction.
|
|
50
|
+
* @validator error
|
|
51
|
+
*/
|
|
52
|
+
this.error = false;
|
|
53
|
+
/**
|
|
54
|
+
* Defines the maximum height of the multiselect list when open.
|
|
55
|
+
*/
|
|
56
|
+
this.maxHeight = '';
|
|
57
|
+
/**
|
|
58
|
+
* State of the dropdown popover.
|
|
59
|
+
*/
|
|
60
|
+
this.open = false;
|
|
57
61
|
/**
|
|
58
62
|
* The text to display when no items match the filter.
|
|
59
63
|
*/
|
|
@@ -62,16 +66,27 @@ export class NvFielddropdown {
|
|
|
62
66
|
* Enables or disables the filtering feature for the dropdown items.
|
|
63
67
|
*/
|
|
64
68
|
this.filterable = false;
|
|
69
|
+
/**
|
|
70
|
+
* Delay in milliseconds before the search is triggered when typing in the filter input.
|
|
71
|
+
* @default 300
|
|
72
|
+
*/
|
|
73
|
+
this.debounceDelay = 300;
|
|
65
74
|
/**
|
|
66
75
|
* Applies focus to the input field as soon as the component is mounted. This
|
|
67
76
|
* is equivalent to setting the native autofocus attribute on an <input>
|
|
68
77
|
* element.
|
|
69
78
|
*/
|
|
70
79
|
this.autofocus = false;
|
|
80
|
+
/**
|
|
81
|
+
* Allows the field to stretch and fill the entire width of its container.
|
|
82
|
+
*/
|
|
83
|
+
this.fluid = false;
|
|
71
84
|
//#endregion PROPERTIES
|
|
72
85
|
/****************************************************************************/
|
|
73
86
|
//#region STATE
|
|
74
|
-
/**
|
|
87
|
+
/**
|
|
88
|
+
* The text entered by the user for filtering dropdown items.
|
|
89
|
+
*/
|
|
75
90
|
this.filterText = '';
|
|
76
91
|
this.selectedValues = new Set();
|
|
77
92
|
this.handleInputContainerClick = (event) => {
|
|
@@ -102,8 +117,15 @@ export class NvFielddropdown {
|
|
|
102
117
|
}
|
|
103
118
|
const input = event.target;
|
|
104
119
|
this.open = true;
|
|
105
|
-
|
|
106
|
-
this.
|
|
120
|
+
// Clear any existing timer
|
|
121
|
+
if (this.debounceTimer) {
|
|
122
|
+
window.clearTimeout(this.debounceTimer);
|
|
123
|
+
}
|
|
124
|
+
// Set a new timer for filtering
|
|
125
|
+
this.debounceTimer = window.setTimeout(() => {
|
|
126
|
+
this.filterText = input.value.toLowerCase();
|
|
127
|
+
this.filterItems();
|
|
128
|
+
}, this.debounceDelay);
|
|
107
129
|
};
|
|
108
130
|
this.handleInputFocus = () => {
|
|
109
131
|
if (this.disabled || this.readonly)
|
|
@@ -139,6 +161,31 @@ export class NvFielddropdown {
|
|
|
139
161
|
this.filterItems();
|
|
140
162
|
};
|
|
141
163
|
}
|
|
164
|
+
//#endregion EVENTS
|
|
165
|
+
/****************************************************************************/
|
|
166
|
+
//#region WATCHERS
|
|
167
|
+
handleOptionsChange(newValue) {
|
|
168
|
+
var _a;
|
|
169
|
+
if (!newValue)
|
|
170
|
+
return;
|
|
171
|
+
if (!this.value) {
|
|
172
|
+
const defaultValue = newValue.find(option => option.selected);
|
|
173
|
+
this.value = (_a = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value) !== null && _a !== void 0 ? _a : '';
|
|
174
|
+
this.updateSelectedItem(this.value);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
watchValueHandler(newValue) {
|
|
178
|
+
this.valueChanged.emit(newValue);
|
|
179
|
+
}
|
|
180
|
+
//#endregion WATCHERS
|
|
181
|
+
/****************************************************************************/
|
|
182
|
+
//#region LISTENERS
|
|
183
|
+
handleOpenChanged(event) {
|
|
184
|
+
// Stop propagation to prevent the event from affecting parent components like dialogs
|
|
185
|
+
event.stopPropagation();
|
|
186
|
+
// Update `open` based on the popover state
|
|
187
|
+
this.open = event.detail;
|
|
188
|
+
}
|
|
142
189
|
handleDropdownItemSelected(event) {
|
|
143
190
|
if (this.disabled || this.readonly)
|
|
144
191
|
return;
|
|
@@ -155,22 +202,6 @@ export class NvFielddropdown {
|
|
|
155
202
|
this.value = event.detail.value;
|
|
156
203
|
this.open = false;
|
|
157
204
|
}
|
|
158
|
-
handleOpenChanged(event) {
|
|
159
|
-
this.open = event.detail; // Update `open` based on the popover state
|
|
160
|
-
}
|
|
161
|
-
watchValueHandler(newValue) {
|
|
162
|
-
this.valueChanged.emit(newValue);
|
|
163
|
-
}
|
|
164
|
-
handleOptionsChange(newValue) {
|
|
165
|
-
var _a;
|
|
166
|
-
if (!newValue)
|
|
167
|
-
return;
|
|
168
|
-
if (!this.value) {
|
|
169
|
-
const defaultValue = newValue.find(option => option.selected);
|
|
170
|
-
this.value = (_a = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value) !== null && _a !== void 0 ? _a : '';
|
|
171
|
-
this.updateSelectedItem(this.value);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
205
|
handleBlur(event) {
|
|
175
206
|
const target = event.relatedTarget;
|
|
176
207
|
if (!(target instanceof Node) || !this.el.contains(target)) {
|
|
@@ -212,7 +243,27 @@ export class NvFielddropdown {
|
|
|
212
243
|
this.open = false;
|
|
213
244
|
}
|
|
214
245
|
}
|
|
215
|
-
//#endregion
|
|
246
|
+
//#endregion LISTENERS
|
|
247
|
+
/****************************************************************************/
|
|
248
|
+
//#region LIFECYCLE
|
|
249
|
+
componentWillLoad() {
|
|
250
|
+
this.resetFilter();
|
|
251
|
+
if (this.filterable && this.filterText) {
|
|
252
|
+
this.filterItems();
|
|
253
|
+
}
|
|
254
|
+
if (this.options) {
|
|
255
|
+
this.handleOptionsChange(this.options);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
componentDidLoad() {
|
|
259
|
+
if (this.value) {
|
|
260
|
+
this.updateSelectedItem(this.value);
|
|
261
|
+
}
|
|
262
|
+
if (this.inputElement) {
|
|
263
|
+
this.inputElement.value = this.getSelectedLabel();
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
//#endregion LIFECYCLE
|
|
216
267
|
/****************************************************************************/
|
|
217
268
|
//#region METHODS
|
|
218
269
|
/**
|
|
@@ -301,32 +352,12 @@ export class NvFielddropdown {
|
|
|
301
352
|
}
|
|
302
353
|
//#endregion METHODS
|
|
303
354
|
/****************************************************************************/
|
|
304
|
-
//#region LIFECYCLE
|
|
305
|
-
componentWillLoad() {
|
|
306
|
-
this.resetFilter();
|
|
307
|
-
if (this.filterable && this.filterText) {
|
|
308
|
-
this.filterItems();
|
|
309
|
-
}
|
|
310
|
-
if (this.options) {
|
|
311
|
-
this.handleOptionsChange(this.options);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
componentDidLoad() {
|
|
315
|
-
if (this.value) {
|
|
316
|
-
this.updateSelectedItem(this.value);
|
|
317
|
-
}
|
|
318
|
-
if (this.inputElement) {
|
|
319
|
-
this.inputElement.value = this.getSelectedLabel();
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
//#endregion LIFECYCLE
|
|
323
|
-
/****************************************************************************/
|
|
324
355
|
//#region RENDER
|
|
325
356
|
render() {
|
|
326
357
|
var _a;
|
|
327
|
-
return (h(Host, { key: '
|
|
328
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
329
|
-
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '
|
|
358
|
+
return (h(Host, { key: '3864f366575665c4730dde8fd0d8e37c4ee11d82', role: "combobox", "aria-expanded": this.open.toString(), "aria-haspopup": "listbox", "aria-label": this.label }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '8ce42f691251468c6c054464ee3695e2bea90bd5', htmlFor: this.inputId }, h("slot", { key: '7e779704e1c3f9f6ee71455679c0e1d5d4ee8795', name: "label" }, this.label))), h("nv-popover", { key: '82cdd318e195ef44513684afba0e9c9772cad448', ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, h("div", { key: '1189c8fd06db511cb51721ac14cdc54ef286691c', class: "input-wrapper", slot: "trigger" }, h("slot", { key: '9069907e055d77a19c30c045e29eaf4bf998f9a0', name: "before-input" }), h("div", { key: '2c57f017b25754d4b5baf44e3457e95256dfdccf', class: "input-container", onClick: this.handleInputContainerClick }, h("slot", { key: '939e749473e4df95a28fcf98e8b6d455408bff71', name: "leading-input" }), this.filterable || this.disabled || this.readonly ? (h("input", { "data-scope": "focusable", 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, onClick: this.handleInputFocus, onKeyDown: this.handleKeyDown })) : (h("p", { "data-scope": "focusable", id: this.inputId, class: "non-filterable-text", onClick: this.handleInputContainerClick, tabIndex: this.disabled ? -1 : 0, onKeyDown: this.handleKeyDown, onFocus: this.handleInputFocus }, this.getSelectedLabel() || this.value || this.placeholder)), this.filterable && this.filterText && this.open && (h("nv-iconbutton", { key: 'dcf54042b261665e5317ac122a93ca12fcedd9bc', name: "x", size: "md", emphasis: "lower", class: "clear-button", onClick: this.clearFilter, "aria-label": "Clear input" })), this.error && (h("nv-icon", { key: '3551957d94021648d731f97c1ba7ecdc8a325c15', name: "alert-circle", class: "validation", size: "md" })), h("nv-iconbutton", { key: 'e8576d20f760219f236aa9ba52a34f762cc8d23e', "data-scope": "toggle-dropdown", 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 })), h("slot", { key: '48e9ae570e34cde3d20594a3f6518298ebbad02e', name: "after-input" })), h("div", { key: 'cec0a670f4158ca91aa45dcee7a5c25a584226f9', slot: "content", style: this.maxHeight ? { maxHeight: this.maxHeight } : {} }, ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0 ? (h("ul", null, this.options.map(option => (h("nv-fielddropdownitem", { label: option.label, value: option.value, disabled: option.disabled, selected: option.value === this.value }))))) : (h("slot", { name: "content" })))), (this.description ||
|
|
359
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: 'e24dbfc170fb20e48ca2a474508a7c9beac6b87e', class: "description" }, h("slot", { key: '3b4429e2dd0b4f070309b00c6cba94cd343e7165', name: "description" }, this.description))), (this.errorDescription ||
|
|
360
|
+
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'b59ecbf446b142840f5c5933c505900abf126378', hidden: !this.error, class: "error-description" }, h("slot", { key: 'bf3c16d6a9fdc7a10741518153465a736eff808c', name: "error-description" }, this.errorDescription)))));
|
|
330
361
|
}
|
|
331
362
|
static get is() { return "nv-fielddropdown"; }
|
|
332
363
|
static get formAssociated() { return true; }
|
|
@@ -362,7 +393,7 @@ export class NvFielddropdown {
|
|
|
362
393
|
"reflect": true,
|
|
363
394
|
"defaultValue": "uuidv4()"
|
|
364
395
|
},
|
|
365
|
-
"
|
|
396
|
+
"name": {
|
|
366
397
|
"type": "string",
|
|
367
398
|
"mutable": false,
|
|
368
399
|
"complexType": {
|
|
@@ -374,14 +405,14 @@ export class NvFielddropdown {
|
|
|
374
405
|
"optional": false,
|
|
375
406
|
"docs": {
|
|
376
407
|
"tags": [],
|
|
377
|
-
"text": "
|
|
408
|
+
"text": "Defines the name attribute of the input field, which is crucial for form\nsubmission. This value is used as the key in the key-value pair sent to\nthe server, representing the input's data in form submissions. It should be\nunique within the form to avoid conflicts."
|
|
378
409
|
},
|
|
379
410
|
"getter": false,
|
|
380
411
|
"setter": false,
|
|
381
|
-
"attribute": "
|
|
412
|
+
"attribute": "name",
|
|
382
413
|
"reflect": true
|
|
383
414
|
},
|
|
384
|
-
"
|
|
415
|
+
"label": {
|
|
385
416
|
"type": "string",
|
|
386
417
|
"mutable": false,
|
|
387
418
|
"complexType": {
|
|
@@ -393,14 +424,14 @@ export class NvFielddropdown {
|
|
|
393
424
|
"optional": false,
|
|
394
425
|
"docs": {
|
|
395
426
|
"tags": [],
|
|
396
|
-
"text": "
|
|
427
|
+
"text": "Lets you define the text that explains what users should enter in the text\ninput field. It's a crucial element for making forms clear and\nuser-friendly."
|
|
397
428
|
},
|
|
398
429
|
"getter": false,
|
|
399
430
|
"setter": false,
|
|
400
|
-
"attribute": "
|
|
431
|
+
"attribute": "label",
|
|
401
432
|
"reflect": true
|
|
402
433
|
},
|
|
403
|
-
"
|
|
434
|
+
"description": {
|
|
404
435
|
"type": "string",
|
|
405
436
|
"mutable": false,
|
|
406
437
|
"complexType": {
|
|
@@ -412,14 +443,14 @@ export class NvFielddropdown {
|
|
|
412
443
|
"optional": false,
|
|
413
444
|
"docs": {
|
|
414
445
|
"tags": [],
|
|
415
|
-
"text": "
|
|
446
|
+
"text": "Add helpful hints or extra information under the text input field. This is\nwhere you can clarify what users should enter or provide additional\ninstructions, making the form easier to fill out correctly."
|
|
416
447
|
},
|
|
417
448
|
"getter": false,
|
|
418
449
|
"setter": false,
|
|
419
|
-
"attribute": "
|
|
450
|
+
"attribute": "description",
|
|
420
451
|
"reflect": true
|
|
421
452
|
},
|
|
422
|
-
"
|
|
453
|
+
"placeholder": {
|
|
423
454
|
"type": "string",
|
|
424
455
|
"mutable": false,
|
|
425
456
|
"complexType": {
|
|
@@ -431,33 +462,13 @@ export class NvFielddropdown {
|
|
|
431
462
|
"optional": false,
|
|
432
463
|
"docs": {
|
|
433
464
|
"tags": [],
|
|
434
|
-
"text": "
|
|
465
|
+
"text": "Display temporary text inside the input field to give users a hint about\nwhat to type. It's a great way to provide examples or suggestions directly\nin the field before they start typing.\nThe placeholder is displayed only when the filterable option is enabled."
|
|
435
466
|
},
|
|
436
467
|
"getter": false,
|
|
437
468
|
"setter": false,
|
|
438
|
-
"attribute": "
|
|
469
|
+
"attribute": "placeholder",
|
|
439
470
|
"reflect": true
|
|
440
471
|
},
|
|
441
|
-
"open": {
|
|
442
|
-
"type": "boolean",
|
|
443
|
-
"mutable": true,
|
|
444
|
-
"complexType": {
|
|
445
|
-
"original": "boolean",
|
|
446
|
-
"resolved": "boolean",
|
|
447
|
-
"references": {}
|
|
448
|
-
},
|
|
449
|
-
"required": false,
|
|
450
|
-
"optional": false,
|
|
451
|
-
"docs": {
|
|
452
|
-
"tags": [],
|
|
453
|
-
"text": "State of the dropdown popover."
|
|
454
|
-
},
|
|
455
|
-
"getter": false,
|
|
456
|
-
"setter": false,
|
|
457
|
-
"attribute": "open",
|
|
458
|
-
"reflect": true,
|
|
459
|
-
"defaultValue": "false"
|
|
460
|
-
},
|
|
461
472
|
"autocomplete": {
|
|
462
473
|
"type": "string",
|
|
463
474
|
"mutable": false,
|
|
@@ -523,6 +534,46 @@ export class NvFielddropdown {
|
|
|
523
534
|
"reflect": true,
|
|
524
535
|
"defaultValue": "false"
|
|
525
536
|
},
|
|
537
|
+
"readonly": {
|
|
538
|
+
"type": "boolean",
|
|
539
|
+
"mutable": false,
|
|
540
|
+
"complexType": {
|
|
541
|
+
"original": "boolean",
|
|
542
|
+
"resolved": "boolean",
|
|
543
|
+
"references": {}
|
|
544
|
+
},
|
|
545
|
+
"required": false,
|
|
546
|
+
"optional": false,
|
|
547
|
+
"docs": {
|
|
548
|
+
"tags": [],
|
|
549
|
+
"text": "Display the input field's content without allowing users to change it.\nUsers can still click on it, select, and copy the text, but they won't be\nable to type or delete anything."
|
|
550
|
+
},
|
|
551
|
+
"getter": false,
|
|
552
|
+
"setter": false,
|
|
553
|
+
"attribute": "readonly",
|
|
554
|
+
"reflect": true,
|
|
555
|
+
"defaultValue": "false"
|
|
556
|
+
},
|
|
557
|
+
"disabled": {
|
|
558
|
+
"type": "boolean",
|
|
559
|
+
"mutable": false,
|
|
560
|
+
"complexType": {
|
|
561
|
+
"original": "boolean",
|
|
562
|
+
"resolved": "boolean",
|
|
563
|
+
"references": {}
|
|
564
|
+
},
|
|
565
|
+
"required": false,
|
|
566
|
+
"optional": false,
|
|
567
|
+
"docs": {
|
|
568
|
+
"tags": [],
|
|
569
|
+
"text": "The disabled prop lets you turn off the input field so that users can't\ntype in it. When disabled, the field is grayed out and won't respond to\nclicks or touches."
|
|
570
|
+
},
|
|
571
|
+
"getter": false,
|
|
572
|
+
"setter": false,
|
|
573
|
+
"attribute": "disabled",
|
|
574
|
+
"reflect": true,
|
|
575
|
+
"defaultValue": "false"
|
|
576
|
+
},
|
|
526
577
|
"error": {
|
|
527
578
|
"type": "boolean",
|
|
528
579
|
"mutable": false,
|
|
@@ -568,29 +619,29 @@ export class NvFielddropdown {
|
|
|
568
619
|
"attribute": "error-description",
|
|
569
620
|
"reflect": true
|
|
570
621
|
},
|
|
571
|
-
"
|
|
572
|
-
"type": "
|
|
622
|
+
"maxHeight": {
|
|
623
|
+
"type": "string",
|
|
573
624
|
"mutable": false,
|
|
574
625
|
"complexType": {
|
|
575
|
-
"original": "
|
|
576
|
-
"resolved": "
|
|
626
|
+
"original": "string",
|
|
627
|
+
"resolved": "string",
|
|
577
628
|
"references": {}
|
|
578
629
|
},
|
|
579
630
|
"required": false,
|
|
580
631
|
"optional": false,
|
|
581
632
|
"docs": {
|
|
582
633
|
"tags": [],
|
|
583
|
-
"text": "
|
|
634
|
+
"text": "Defines the maximum height of the multiselect list when open."
|
|
584
635
|
},
|
|
585
636
|
"getter": false,
|
|
586
637
|
"setter": false,
|
|
587
|
-
"attribute": "
|
|
638
|
+
"attribute": "max-height",
|
|
588
639
|
"reflect": true,
|
|
589
|
-
"defaultValue": "
|
|
640
|
+
"defaultValue": "''"
|
|
590
641
|
},
|
|
591
|
-
"
|
|
642
|
+
"open": {
|
|
592
643
|
"type": "boolean",
|
|
593
|
-
"mutable":
|
|
644
|
+
"mutable": true,
|
|
594
645
|
"complexType": {
|
|
595
646
|
"original": "boolean",
|
|
596
647
|
"resolved": "boolean",
|
|
@@ -600,11 +651,11 @@ export class NvFielddropdown {
|
|
|
600
651
|
"optional": false,
|
|
601
652
|
"docs": {
|
|
602
653
|
"tags": [],
|
|
603
|
-
"text": "
|
|
654
|
+
"text": "State of the dropdown popover."
|
|
604
655
|
},
|
|
605
656
|
"getter": false,
|
|
606
657
|
"setter": false,
|
|
607
|
-
"attribute": "
|
|
658
|
+
"attribute": "open",
|
|
608
659
|
"reflect": true,
|
|
609
660
|
"defaultValue": "false"
|
|
610
661
|
},
|
|
@@ -668,6 +719,29 @@ export class NvFielddropdown {
|
|
|
668
719
|
"getter": false,
|
|
669
720
|
"setter": false
|
|
670
721
|
},
|
|
722
|
+
"debounceDelay": {
|
|
723
|
+
"type": "number",
|
|
724
|
+
"mutable": false,
|
|
725
|
+
"complexType": {
|
|
726
|
+
"original": "number",
|
|
727
|
+
"resolved": "number",
|
|
728
|
+
"references": {}
|
|
729
|
+
},
|
|
730
|
+
"required": false,
|
|
731
|
+
"optional": false,
|
|
732
|
+
"docs": {
|
|
733
|
+
"tags": [{
|
|
734
|
+
"name": "default",
|
|
735
|
+
"text": "300"
|
|
736
|
+
}],
|
|
737
|
+
"text": "Delay in milliseconds before the search is triggered when typing in the filter input."
|
|
738
|
+
},
|
|
739
|
+
"getter": false,
|
|
740
|
+
"setter": false,
|
|
741
|
+
"attribute": "debounce-delay",
|
|
742
|
+
"reflect": true,
|
|
743
|
+
"defaultValue": "300"
|
|
744
|
+
},
|
|
671
745
|
"autofocus": {
|
|
672
746
|
"type": "boolean",
|
|
673
747
|
"mutable": false,
|
|
@@ -687,6 +761,26 @@ export class NvFielddropdown {
|
|
|
687
761
|
"attribute": "autofocus",
|
|
688
762
|
"reflect": true,
|
|
689
763
|
"defaultValue": "false"
|
|
764
|
+
},
|
|
765
|
+
"fluid": {
|
|
766
|
+
"type": "boolean",
|
|
767
|
+
"mutable": false,
|
|
768
|
+
"complexType": {
|
|
769
|
+
"original": "boolean",
|
|
770
|
+
"resolved": "boolean",
|
|
771
|
+
"references": {}
|
|
772
|
+
},
|
|
773
|
+
"required": false,
|
|
774
|
+
"optional": false,
|
|
775
|
+
"docs": {
|
|
776
|
+
"tags": [],
|
|
777
|
+
"text": "Allows the field to stretch and fill the entire width of its container."
|
|
778
|
+
},
|
|
779
|
+
"getter": false,
|
|
780
|
+
"setter": false,
|
|
781
|
+
"attribute": "fluid",
|
|
782
|
+
"reflect": true,
|
|
783
|
+
"defaultValue": "false"
|
|
690
784
|
}
|
|
691
785
|
};
|
|
692
786
|
}
|
|
@@ -764,23 +858,23 @@ export class NvFielddropdown {
|
|
|
764
858
|
static get elementRef() { return "el"; }
|
|
765
859
|
static get watchers() {
|
|
766
860
|
return [{
|
|
767
|
-
"propName": "value",
|
|
768
|
-
"methodName": "watchValueHandler"
|
|
769
|
-
}, {
|
|
770
861
|
"propName": "options",
|
|
771
862
|
"methodName": "handleOptionsChange"
|
|
863
|
+
}, {
|
|
864
|
+
"propName": "value",
|
|
865
|
+
"methodName": "watchValueHandler"
|
|
772
866
|
}];
|
|
773
867
|
}
|
|
774
868
|
static get listeners() {
|
|
775
869
|
return [{
|
|
776
|
-
"name": "
|
|
777
|
-
"method": "
|
|
870
|
+
"name": "openChanged",
|
|
871
|
+
"method": "handleOpenChanged",
|
|
778
872
|
"target": undefined,
|
|
779
873
|
"capture": false,
|
|
780
874
|
"passive": false
|
|
781
875
|
}, {
|
|
782
|
-
"name": "
|
|
783
|
-
"method": "
|
|
876
|
+
"name": "dropdownItemSelected",
|
|
877
|
+
"method": "handleDropdownItemSelected",
|
|
784
878
|
"target": undefined,
|
|
785
879
|
"capture": false,
|
|
786
880
|
"passive": false
|