@nova-design-system/nova-webcomponents 3.1.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/{index-9bda5507.js → index-108ddff0.js} +20 -4
- package/dist/cjs/index-108ddff0.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -0
- 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-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/nv-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/nv-button.cjs.entry.js +1 -1
- package/dist/cjs/nv-calendar.cjs.entry.js +16 -37
- 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 +95 -103
- 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 +1 -1
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +1 -1
- package/dist/cjs/nv-fielddate.cjs.entry.js +2 -2
- package/dist/cjs/nv-fielddate.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddaterange.cjs.entry.js +73 -18
- package/dist/cjs/nv-fielddaterange.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +84 -60
- package/dist/cjs/nv-fielddropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +116 -104
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldnumber.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldpassword.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldradio.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldselect.cjs.entry.js +2 -2
- 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 +5 -5
- package/dist/cjs/nv-fieldtext.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +5 -5
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtime.cjs.entry.js +11 -11
- package/dist/cjs/nv-fieldtime.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-icon.cjs.entry.js +3 -3
- 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 +2 -2
- 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-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-calendar/nv-calendar.css +6 -2
- package/dist/collection/components/nv-calendar/nv-calendar.js +14 -35
- package/dist/collection/components/nv-calendar/nv-calendar.js.map +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js +131 -48
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js.map +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js +94 -152
- 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-fielddate/styles/nv-fielddate.css +7 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js +85 -17
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js.map +1 -1
- package/dist/collection/components/nv-fielddaterange/styles/nv-fielddaterange.css +7 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js +8 -0
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +173 -106
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/styles/nv-fielddropdown.css +31 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +202 -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} +15 -4
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.css +7 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.css +7 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.css +7 -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 +15 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js +9 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +4 -3
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js.map +1 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.css +7 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +3 -3
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js +9 -9
- package/dist/collection/components/nv-fieldtime/styles/nv-fieldtime.css +7 -1
- package/dist/collection/components/nv-icon/nv-icon.js +1 -1
- package/dist/collection/components/nv-icon/nv-icons.js +1 -0
- 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.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-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/interfaces/Column.js.map +1 -1
- package/dist/components/index.js +2 -1
- 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 +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 +97 -109
- 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 +6 -6
- 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 +9 -9
- package/dist/components/nv-fielddate.js.map +1 -1
- package/dist/components/nv-fielddaterange.js +83 -27
- package/dist/components/nv-fielddaterange.js.map +1 -1
- package/dist/components/nv-fielddropdown.js +98 -72
- 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 +132 -120
- package/dist/components/nv-fieldmultiselect.js.map +1 -1
- package/dist/components/nv-fieldnumber.js +5 -5
- package/dist/components/nv-fieldnumber.js.map +1 -1
- package/dist/components/nv-fieldpassword.js +5 -5
- package/dist/components/nv-fieldpassword.js.map +1 -1
- package/dist/components/nv-fieldradio.js +1 -1
- package/dist/components/nv-fieldselect.js +5 -5
- 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 -1
- package/dist/components/nv-fieldtextarea.js +5 -5
- package/dist/components/nv-fieldtextarea.js.map +1 -1
- package/dist/components/nv-fieldtime.js +15 -15
- 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 +5 -5
- 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-tablecolumn.js +1 -1
- package/dist/components/nv-toggle.js +3 -3
- package/dist/components/nv-tooltip.js +1 -1
- package/dist/components/{p-10faa938.js → p-04cb3a6f.js} +5 -5
- package/dist/components/{p-10faa938.js.map → p-04cb3a6f.js.map} +1 -1
- package/dist/components/{p-0a0f6daf.js → p-07a89754.js} +3 -3
- package/dist/components/{p-0a0f6daf.js.map → p-07a89754.js.map} +1 -1
- package/dist/components/{p-10b37876.js → p-0ab80d95.js} +3 -3
- package/dist/components/{p-10b37876.js.map → p-0ab80d95.js.map} +1 -1
- 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-854c32dc.js → p-4656efae.js} +21 -42
- package/dist/components/p-4656efae.js.map +1 -0
- package/dist/components/{p-35a70c5e.js → p-581e67cc.js} +3 -3
- package/dist/components/{p-35a70c5e.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-f5cb0a63.js → p-83c8873a.js} +3 -3
- package/dist/components/{p-f5cb0a63.js.map → p-83c8873a.js.map} +1 -1
- package/dist/components/{p-f76bb0c3.js → p-c0a91091.js} +5 -5
- package/dist/components/p-c0a91091.js.map +1 -0
- package/dist/components/{p-41c56ddc.js → p-cbdc2c8b.js} +5 -5
- package/dist/components/{p-41c56ddc.js.map → p-cbdc2c8b.js.map} +1 -1
- package/dist/components/{p-a2527411.js → p-cbe9521f.js} +3 -3
- package/dist/components/{p-a2527411.js.map → p-cbe9521f.js.map} +1 -1
- package/dist/components/{p-608eb9da.js → p-d19b41d2.js} +2 -2
- package/dist/components/{p-608eb9da.js.map → p-d19b41d2.js.map} +1 -1
- package/dist/components/{p-eb632278.js → p-d63f1cbe.js} +3 -3
- package/dist/components/{p-eb632278.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-9decffb6.js → p-f0a5e7e4.js} +7 -7
- package/dist/components/p-f0a5e7e4.js.map +1 -0
- package/dist/components/{p-b48d5a94.js → p-f1859ddc.js} +4 -4
- package/dist/components/{p-b48d5a94.js.map → p-f1859ddc.js.map} +1 -1
- package/dist/esm/{index-1fb7a9a6.js → index-8f0e5f19.js} +20 -4
- package/dist/esm/index-8f0e5f19.js.map +1 -0
- package/dist/esm/index.js +1 -0
- 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 +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-breadcrumb.entry.js +1 -1
- package/dist/esm/nv-breadcrumbs.entry.js +1 -1
- package/dist/esm/nv-button.entry.js +1 -1
- package/dist/esm/nv-calendar.entry.js +16 -37
- 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 +95 -103
- 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 +1 -1
- package/dist/esm/nv-dialogfooter_2.entry.js +1 -1
- package/dist/esm/nv-fieldcheckbox.entry.js +1 -1
- package/dist/esm/nv-fielddate.entry.js +2 -2
- package/dist/esm/nv-fielddate.entry.js.map +1 -1
- package/dist/esm/nv-fielddaterange.entry.js +73 -18
- package/dist/esm/nv-fielddaterange.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdown.entry.js +84 -60
- package/dist/esm/nv-fielddropdown.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdownitem.entry.js +1 -1
- package/dist/esm/nv-fieldmultiselect.entry.js +116 -104
- package/dist/esm/nv-fieldmultiselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldnumber.entry.js +2 -2
- package/dist/esm/nv-fieldnumber.entry.js.map +1 -1
- package/dist/esm/nv-fieldpassword.entry.js +2 -2
- package/dist/esm/nv-fieldpassword.entry.js.map +1 -1
- package/dist/esm/nv-fieldradio.entry.js +1 -1
- package/dist/esm/nv-fieldselect.entry.js +2 -2
- 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 +5 -5
- package/dist/esm/nv-fieldtext.entry.js.map +1 -1
- package/dist/esm/nv-fieldtextarea.entry.js +5 -5
- package/dist/esm/nv-fieldtextarea.entry.js.map +1 -1
- package/dist/esm/nv-fieldtime.entry.js +11 -11
- package/dist/esm/nv-fieldtime.entry.js.map +1 -1
- package/dist/esm/nv-icon.entry.js +3 -3
- 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 +2 -2
- 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-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-7fd4d13d.entry.js → p-0323daf6.entry.js} +2 -2
- package/dist/native/{p-14c07207.entry.js → p-05d95d4d.entry.js} +2 -2
- package/dist/native/{p-90e6d9dd.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-1da72182.entry.js → p-19fb0fd0.entry.js} +2 -2
- 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-ae7ab110.entry.js.map → p-21e7132f.entry.js.map} +1 -1
- package/dist/native/{p-c0f79bac.entry.js → p-221b8f72.entry.js} +2 -2
- package/dist/native/p-2805f9f2.entry.js +2 -0
- package/dist/native/{p-5d21532a.entry.js.map → p-2805f9f2.entry.js.map} +1 -1
- 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-3cd77d82.entry.js → p-4c0d81b0.entry.js} +2 -2
- package/dist/native/{p-615947e7.entry.js → p-519b4819.entry.js} +2 -2
- package/dist/native/{p-7042ba8a.entry.js → p-5382eab2.entry.js} +2 -2
- package/dist/native/p-5ba3fc3c.entry.js +2 -0
- package/dist/native/{p-b94d9f0b.entry.js.map → p-5ba3fc3c.entry.js.map} +1 -1
- package/dist/native/{p-656c56f0.entry.js → p-60b204ac.entry.js} +2 -2
- 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-efe6a46c.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-b8b6875d.entry.js → p-9fba8663.entry.js} +2 -2
- package/dist/native/{p-08a75cfa.entry.js → p-a2c0f1a7.entry.js} +2 -2
- package/dist/native/p-aa86af25.entry.js +2 -0
- package/dist/native/{p-49cac014.entry.js.map → p-aa86af25.entry.js.map} +1 -1
- package/dist/native/p-adc96c3a.entry.js +2 -0
- package/dist/native/{p-4d164ed6.entry.js.map → p-adc96c3a.entry.js.map} +1 -1
- package/dist/native/p-b0fc08e7.entry.js +2 -0
- package/dist/native/p-b0fc08e7.entry.js.map +1 -0
- package/dist/native/{p-c67186f8.entry.js → p-c930adb7.entry.js} +2 -2
- package/dist/native/{p-3b7ef609.entry.js → p-cfe0a6c6.entry.js} +2 -2
- package/dist/native/p-d07ab618.entry.js +2 -0
- package/dist/native/{p-7e154bfd.entry.js → p-dac0089b.entry.js} +2 -2
- package/dist/native/p-dac0089b.entry.js.map +1 -0
- package/dist/native/{p-470588c2.entry.js → p-de2c07a6.entry.js} +3 -3
- package/dist/native/p-de2c07a6.entry.js.map +1 -0
- package/dist/native/{p-3953464e.entry.js → p-ed488498.entry.js} +2 -2
- 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-fb897f7d.entry.js +2 -0
- package/dist/native/{p-fc97f071.entry.js.map → p-fb897f7d.entry.js.map} +1 -1
- package/dist/native/{p-244f56ac.entry.js → p-fc3bea07.entry.js} +2 -2
- package/dist/types/components/nv-calendar/nv-calendar.d.ts +1 -5
- package/dist/types/components/nv-datagrid/nv-datagrid.d.ts +0 -16
- package/dist/types/components/nv-datagridcolumn/nv-datagridcolumn.d.ts +4 -0
- package/dist/types/components/nv-fielddaterange/nv-fielddaterange.d.ts +11 -1
- package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +47 -26
- package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.d.ts +61 -55
- 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 +1 -0
- package/dist/types/components/nv-icon/nv-icons.d.ts +1 -1
- package/dist/types/components.d.ts +387 -38
- package/dist/types/interfaces/Column.d.ts +5 -1
- package/dist/vscode-data.json +121 -9
- package/hydrate/index.js +1172 -393
- package/hydrate/index.mjs +1172 -393
- package/package.json +6 -2
- package/dist/cjs/index-9bda5507.js.map +0 -1
- package/dist/components/p-1c45c0f2.js.map +0 -1
- package/dist/components/p-76646ce9.js +0 -88
- package/dist/components/p-76646ce9.js.map +0 -1
- package/dist/components/p-854c32dc.js.map +0 -1
- package/dist/components/p-9decffb6.js.map +0 -1
- package/dist/components/p-f76bb0c3.js.map +0 -1
- package/dist/esm/index-1fb7a9a6.js.map +0 -1
- package/dist/native/p-2523eead.entry.js +0 -2
- package/dist/native/p-2523eead.entry.js.map +0 -1
- package/dist/native/p-470588c2.entry.js.map +0 -1
- package/dist/native/p-49cac014.entry.js +0 -2
- package/dist/native/p-4d164ed6.entry.js +0 -2
- package/dist/native/p-4dc1d036.entry.js +0 -2
- package/dist/native/p-4e635fa7.entry.js +0 -2
- package/dist/native/p-4e635fa7.entry.js.map +0 -1
- package/dist/native/p-5d21532a.entry.js +0 -2
- package/dist/native/p-7e154bfd.entry.js.map +0 -1
- package/dist/native/p-7eba904e.entry.js +0 -2
- package/dist/native/p-7eba904e.entry.js.map +0 -1
- package/dist/native/p-9135fdf5.entry.js +0 -2
- package/dist/native/p-ab002252.js +0 -3
- package/dist/native/p-ab002252.js.map +0 -1
- package/dist/native/p-ae7ab110.entry.js +0 -2
- package/dist/native/p-b94d9f0b.entry.js +0 -2
- package/dist/native/p-c71c6f23.entry.js +0 -2
- package/dist/native/p-c71c6f23.entry.js.map +0 -1
- package/dist/native/p-d9a52884.entry.js +0 -2
- package/dist/native/p-d9a52884.entry.js.map +0 -1
- package/dist/native/p-f2ef6771.entry.js +0 -2
- package/dist/native/p-f5f68992.entry.js +0 -2
- package/dist/native/p-f5f68992.entry.js.map +0 -1
- package/dist/native/p-fc97f071.entry.js +0 -2
- /package/dist/native/{p-7fd4d13d.entry.js.map → p-0323daf6.entry.js.map} +0 -0
- /package/dist/native/{p-14c07207.entry.js.map → p-05d95d4d.entry.js.map} +0 -0
- /package/dist/native/{p-90e6d9dd.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-1da72182.entry.js.map → p-19fb0fd0.entry.js.map} +0 -0
- /package/dist/native/{p-c0f79bac.entry.js.map → p-221b8f72.entry.js.map} +0 -0
- /package/dist/native/{p-0245863d.entry.js.map → p-407fc32d.entry.js.map} +0 -0
- /package/dist/native/{p-3cd77d82.entry.js.map → p-4c0d81b0.entry.js.map} +0 -0
- /package/dist/native/{p-615947e7.entry.js.map → p-519b4819.entry.js.map} +0 -0
- /package/dist/native/{p-7042ba8a.entry.js.map → p-5382eab2.entry.js.map} +0 -0
- /package/dist/native/{p-656c56f0.entry.js.map → p-60b204ac.entry.js.map} +0 -0
- /package/dist/native/{p-f2ef6771.entry.js.map → p-7092a675.entry.js.map} +0 -0
- /package/dist/native/{p-efe6a46c.entry.js.map → p-7c676f2c.entry.js.map} +0 -0
- /package/dist/native/{p-b8b6875d.entry.js.map → p-9fba8663.entry.js.map} +0 -0
- /package/dist/native/{p-08a75cfa.entry.js.map → p-a2c0f1a7.entry.js.map} +0 -0
- /package/dist/native/{p-c67186f8.entry.js.map → p-c930adb7.entry.js.map} +0 -0
- /package/dist/native/{p-3b7ef609.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-3953464e.entry.js.map → p-ed488498.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
|
@@ -13,6 +13,14 @@ export declare class NvFielddropdown {
|
|
|
13
13
|
el: HTMLNvFielddropdownElement;
|
|
14
14
|
private inputElement;
|
|
15
15
|
private popoverElement;
|
|
16
|
+
/**
|
|
17
|
+
* Timer for debouncing input events.
|
|
18
|
+
* Private property preferred over @State as it:
|
|
19
|
+
* - Doesn't need to trigger re-renders
|
|
20
|
+
* - Is purely for internal logic
|
|
21
|
+
* - Improves performance by avoiding Stencil's reactivity system
|
|
22
|
+
*/
|
|
23
|
+
private debounceTimer;
|
|
16
24
|
/****************************************************************************/
|
|
17
25
|
/**
|
|
18
26
|
* Sets the ID for the input element and the for attribute of the associated
|
|
@@ -21,6 +29,13 @@ export declare class NvFielddropdown {
|
|
|
21
29
|
* accessibility.
|
|
22
30
|
*/
|
|
23
31
|
readonly inputId: string;
|
|
32
|
+
/**
|
|
33
|
+
* Defines the name attribute of the input field, which is crucial for form
|
|
34
|
+
* submission. This value is used as the key in the key-value pair sent to
|
|
35
|
+
* the server, representing the input's data in form submissions. It should be
|
|
36
|
+
* unique within the form to avoid conflicts.
|
|
37
|
+
*/
|
|
38
|
+
readonly name: string;
|
|
24
39
|
/**
|
|
25
40
|
* Lets you define the text that explains what users should enter in the text
|
|
26
41
|
* input field. It's a crucial element for making forms clear and
|
|
@@ -40,17 +55,6 @@ export declare class NvFielddropdown {
|
|
|
40
55
|
* The placeholder is displayed only when the filterable option is enabled.
|
|
41
56
|
*/
|
|
42
57
|
readonly placeholder: string;
|
|
43
|
-
/**
|
|
44
|
-
* Defines the name attribute of the input field, which is crucial for form
|
|
45
|
-
* submission. This value is used as the key in the key-value pair sent to
|
|
46
|
-
* the server, representing the input's data in form submissions. It should be
|
|
47
|
-
* unique within the form to avoid conflicts.
|
|
48
|
-
*/
|
|
49
|
-
readonly name: string;
|
|
50
|
-
/**
|
|
51
|
-
* State of the dropdown popover.
|
|
52
|
-
*/
|
|
53
|
-
open: boolean;
|
|
54
58
|
/**
|
|
55
59
|
* The autocomplete prop helps users fill out the input field faster by
|
|
56
60
|
* suggesting entries they've used before, like their email or address.
|
|
@@ -69,6 +73,18 @@ export declare class NvFielddropdown {
|
|
|
69
73
|
* before submitting the form.
|
|
70
74
|
*/
|
|
71
75
|
readonly required: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Display the input field's content without allowing users to change it.
|
|
78
|
+
* Users can still click on it, select, and copy the text, but they won't be
|
|
79
|
+
* able to type or delete anything.
|
|
80
|
+
*/
|
|
81
|
+
readonly readonly: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* The disabled prop lets you turn off the input field so that users can't
|
|
84
|
+
* type in it. When disabled, the field is grayed out and won't respond to
|
|
85
|
+
* clicks or touches.
|
|
86
|
+
*/
|
|
87
|
+
readonly disabled: boolean;
|
|
72
88
|
/**
|
|
73
89
|
* Alters the input field's appearance to indicate an error, helping users
|
|
74
90
|
* identify fields that need correction.
|
|
@@ -82,17 +98,13 @@ export declare class NvFielddropdown {
|
|
|
82
98
|
*/
|
|
83
99
|
readonly errorDescription: string;
|
|
84
100
|
/**
|
|
85
|
-
*
|
|
86
|
-
* Users can still click on it, select, and copy the text, but they won't be
|
|
87
|
-
* able to type or delete anything.
|
|
101
|
+
* Defines the maximum height of the multiselect list when open.
|
|
88
102
|
*/
|
|
89
|
-
readonly
|
|
103
|
+
readonly maxHeight: string;
|
|
90
104
|
/**
|
|
91
|
-
*
|
|
92
|
-
* type in it. When disabled, the field is grayed out and won't respond to
|
|
93
|
-
* clicks or touches.
|
|
105
|
+
* State of the dropdown popover.
|
|
94
106
|
*/
|
|
95
|
-
|
|
107
|
+
open: boolean;
|
|
96
108
|
/**
|
|
97
109
|
* The text to display when no items match the filter.
|
|
98
110
|
*/
|
|
@@ -126,6 +138,11 @@ export declare class NvFielddropdown {
|
|
|
126
138
|
/** Whether this option is pre-selected */
|
|
127
139
|
selected?: boolean;
|
|
128
140
|
}[];
|
|
141
|
+
/**
|
|
142
|
+
* Delay in milliseconds before the search is triggered when typing in the filter input.
|
|
143
|
+
* @default 300
|
|
144
|
+
*/
|
|
145
|
+
readonly debounceDelay: number;
|
|
129
146
|
/**
|
|
130
147
|
* Applies focus to the input field as soon as the component is mounted. This
|
|
131
148
|
* is equivalent to setting the native autofocus attribute on an <input>
|
|
@@ -137,7 +154,9 @@ export declare class NvFielddropdown {
|
|
|
137
154
|
*/
|
|
138
155
|
readonly fluid: boolean;
|
|
139
156
|
/****************************************************************************/
|
|
140
|
-
/**
|
|
157
|
+
/**
|
|
158
|
+
* The text entered by the user for filtering dropdown items.
|
|
159
|
+
*/
|
|
141
160
|
filterText: string;
|
|
142
161
|
selectedValues: Set<string>;
|
|
143
162
|
/****************************************************************************/
|
|
@@ -150,13 +169,18 @@ export declare class NvFielddropdown {
|
|
|
150
169
|
* Event emitted when an item is clicked.
|
|
151
170
|
*/
|
|
152
171
|
dropdownItemSelected: EventEmitter<HTMLNvFielddropdownitemElementEventMap['dropdownItemSelected']>;
|
|
153
|
-
|
|
154
|
-
handleOpenChanged(event: CustomEvent<boolean>): void;
|
|
155
|
-
watchValueHandler(newValue: typeof this.value): void;
|
|
172
|
+
/****************************************************************************/
|
|
156
173
|
handleOptionsChange(newValue: typeof this.options): void;
|
|
174
|
+
watchValueHandler(newValue: typeof this.value): void;
|
|
175
|
+
/****************************************************************************/
|
|
176
|
+
handleOpenChanged(event: CustomEvent<boolean>): void;
|
|
177
|
+
handleDropdownItemSelected(event: CustomEvent<HTMLNvFielddropdownitemElementEventMap['dropdownItemSelected']>): void;
|
|
157
178
|
handleBlur(event: FocusEvent): void;
|
|
158
179
|
handleKeyDown(event: KeyboardEvent): void;
|
|
159
180
|
/****************************************************************************/
|
|
181
|
+
componentWillLoad(): void;
|
|
182
|
+
componentDidLoad(): void;
|
|
183
|
+
/****************************************************************************/
|
|
160
184
|
/**
|
|
161
185
|
* Retrieves the current filter text entered by the user.
|
|
162
186
|
* @returns {string} The filter text.
|
|
@@ -178,8 +202,5 @@ export declare class NvFielddropdown {
|
|
|
178
202
|
private clearFilter;
|
|
179
203
|
private updateSelectedItem;
|
|
180
204
|
/****************************************************************************/
|
|
181
|
-
componentWillLoad(): void;
|
|
182
|
-
componentDidLoad(): void;
|
|
183
|
-
/****************************************************************************/
|
|
184
205
|
render(): any;
|
|
185
206
|
}
|
|
@@ -50,21 +50,28 @@ export declare class NvFieldmultiselect {
|
|
|
50
50
|
*/
|
|
51
51
|
readonly placeholder: string;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* The autocomplete prop helps users fill out the input field faster by
|
|
54
|
+
* suggesting entries they've used before, like their email or address.
|
|
55
|
+
* You can turn it on to make forms more convenient or off to ensure users
|
|
56
|
+
* always type in fresh data.
|
|
54
57
|
*/
|
|
55
|
-
readonly
|
|
56
|
-
/**
|
|
57
|
-
* Text for the badge showing the number of selected items.
|
|
58
|
-
*/
|
|
59
|
-
readonly badgeLabel: string;
|
|
58
|
+
readonly autocomplete: `${TextInputAutocomplete}`;
|
|
60
59
|
/**
|
|
61
|
-
*
|
|
60
|
+
* Specifies the value of the input field.
|
|
62
61
|
*/
|
|
63
|
-
|
|
62
|
+
value: string;
|
|
64
63
|
/**
|
|
65
64
|
* Marks the input field as required.
|
|
66
65
|
*/
|
|
67
66
|
readonly required: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Display the input field's content without allowing users to change it.
|
|
69
|
+
*/
|
|
70
|
+
readonly readonly: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Disables the input field.
|
|
73
|
+
*/
|
|
74
|
+
readonly disabled: boolean;
|
|
68
75
|
/**
|
|
69
76
|
* Alters the input field's appearance to indicate an error, helping users
|
|
70
77
|
* identify fields that need correction.
|
|
@@ -78,29 +85,21 @@ export declare class NvFieldmultiselect {
|
|
|
78
85
|
*/
|
|
79
86
|
readonly errorDescription: string;
|
|
80
87
|
/**
|
|
81
|
-
*
|
|
88
|
+
* Defines the maximum height of the multiselect list when open.
|
|
82
89
|
*/
|
|
83
|
-
readonly
|
|
90
|
+
readonly maxHeight: string;
|
|
84
91
|
/**
|
|
85
|
-
*
|
|
92
|
+
* State of the multiselect popover.
|
|
86
93
|
*/
|
|
87
|
-
|
|
94
|
+
open: boolean;
|
|
88
95
|
/**
|
|
89
|
-
* The
|
|
96
|
+
* The text to display when no items match the filter.
|
|
90
97
|
*/
|
|
91
|
-
readonly
|
|
98
|
+
readonly emptyResult: string;
|
|
92
99
|
/**
|
|
93
100
|
* Enables or disables the filtering feature for the multiselect items.
|
|
94
101
|
*/
|
|
95
102
|
readonly filterable: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Specifies the value of the input field.
|
|
98
|
-
*/
|
|
99
|
-
value: string;
|
|
100
|
-
/**
|
|
101
|
-
* State of the multiselect popover.
|
|
102
|
-
*/
|
|
103
|
-
open: boolean;
|
|
104
103
|
/**
|
|
105
104
|
* List of options used to automatically generate dropdown items. This
|
|
106
105
|
* provides an alternative to using the slot manually.
|
|
@@ -129,31 +128,11 @@ export declare class NvFieldmultiselect {
|
|
|
129
128
|
/** Whether this option is pre-checked */
|
|
130
129
|
checked?: boolean;
|
|
131
130
|
}[];
|
|
132
|
-
/**
|
|
133
|
-
* List of selected values in the multiselect.
|
|
134
|
-
*/
|
|
135
|
-
selectedValues: string[];
|
|
136
|
-
/**
|
|
137
|
-
* Sorted options for display.
|
|
138
|
-
*/
|
|
139
|
-
sortedOptions: Array<{
|
|
140
|
-
/** Label to display for the option */
|
|
141
|
-
label: string;
|
|
142
|
-
/** Value associated with the option */
|
|
143
|
-
value: string;
|
|
144
|
-
/** Whether this option is a divider */
|
|
145
|
-
isDivider?: boolean;
|
|
146
|
-
}>;
|
|
147
|
-
/**
|
|
148
|
-
* The text entered by the user for filtering multiselect items.
|
|
149
|
-
*/
|
|
150
|
-
filterText: string;
|
|
151
131
|
/**
|
|
152
132
|
* Delay in milliseconds before the search is triggered when typing in the filter input.
|
|
153
133
|
* @default 300
|
|
154
134
|
*/
|
|
155
135
|
readonly debounceDelay: number;
|
|
156
|
-
private isHandlingEscape;
|
|
157
136
|
/**
|
|
158
137
|
* Applies focus to the input field as soon as the component is mounted. This
|
|
159
138
|
* is equivalent to setting the native autofocus attribute on an <input>
|
|
@@ -164,23 +143,31 @@ export declare class NvFieldmultiselect {
|
|
|
164
143
|
* Allows the field to stretch and fill the entire width of its container.
|
|
165
144
|
*/
|
|
166
145
|
readonly fluid: boolean;
|
|
167
|
-
/****************************************************************************/
|
|
168
146
|
/**
|
|
169
|
-
*
|
|
147
|
+
* Text for the badge showing the number of selected items.
|
|
170
148
|
*/
|
|
171
|
-
|
|
149
|
+
readonly badgeLabel: string;
|
|
150
|
+
/****************************************************************************/
|
|
172
151
|
/**
|
|
173
|
-
*
|
|
152
|
+
* The text entered by the user for filtering multiselect items.
|
|
174
153
|
*/
|
|
175
|
-
|
|
154
|
+
filterText: string;
|
|
176
155
|
/**
|
|
177
|
-
*
|
|
156
|
+
* List of selected values in the multiselect.
|
|
178
157
|
*/
|
|
179
|
-
|
|
158
|
+
selectedValues: string[];
|
|
180
159
|
/**
|
|
181
|
-
*
|
|
160
|
+
* Sorted options for display.
|
|
182
161
|
*/
|
|
183
|
-
|
|
162
|
+
sortedOptions: Array<{
|
|
163
|
+
/** Label to display for the option */
|
|
164
|
+
label: string;
|
|
165
|
+
/** Value associated with the option */
|
|
166
|
+
value: string;
|
|
167
|
+
/** Whether this option is a divider */
|
|
168
|
+
isDivider?: boolean;
|
|
169
|
+
}>;
|
|
170
|
+
private isHandlingEscape;
|
|
184
171
|
/****************************************************************************/
|
|
185
172
|
/**
|
|
186
173
|
* Emitted when the input value changes.
|
|
@@ -192,6 +179,13 @@ export declare class NvFieldmultiselect {
|
|
|
192
179
|
* Emits the current list of selected values.
|
|
193
180
|
*/
|
|
194
181
|
multiselectChange: EventEmitter<string[]>;
|
|
182
|
+
/****************************************************************************/
|
|
183
|
+
handleOptionsChange(newValue: typeof this.options): void;
|
|
184
|
+
/**
|
|
185
|
+
* Emitted when the value changes.
|
|
186
|
+
*/
|
|
187
|
+
watchValueHandler(): void;
|
|
188
|
+
/****************************************************************************/
|
|
195
189
|
/**
|
|
196
190
|
* Emitted when the input loses focus.
|
|
197
191
|
* @param {CustomEvent<boolean>} event - The event object containing the focus state.
|
|
@@ -207,12 +201,24 @@ export declare class NvFieldmultiselect {
|
|
|
207
201
|
/** Whether this option is checked */
|
|
208
202
|
checked: boolean;
|
|
209
203
|
}>): void;
|
|
210
|
-
|
|
204
|
+
handleSlotChange(event: Event): void;
|
|
205
|
+
/****************************************************************************/
|
|
211
206
|
/**
|
|
212
|
-
*
|
|
207
|
+
* Subscribe to click outside event.
|
|
213
208
|
*/
|
|
214
|
-
|
|
215
|
-
|
|
209
|
+
connectedCallback(): void;
|
|
210
|
+
/**
|
|
211
|
+
* Set the mode state and handle options change.
|
|
212
|
+
*/
|
|
213
|
+
componentWillLoad(): void;
|
|
214
|
+
/**
|
|
215
|
+
* Force reorder if options mode in componentDidLoad because of the initial render not trigger @watch
|
|
216
|
+
*/
|
|
217
|
+
componentDidLoad(): void;
|
|
218
|
+
/**
|
|
219
|
+
* Unsubscribe from click outside event.
|
|
220
|
+
*/
|
|
221
|
+
disconnectedCallback(): void;
|
|
216
222
|
/****************************************************************************/
|
|
217
223
|
/**
|
|
218
224
|
* Retrieves the current filter text entered by the user.
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated [EXPERIMENTAL]
|
|
4
|
+
* @experimental This component is still in development and subject to change in future releases.
|
|
5
|
+
* @slot label - Content to be placed as the label, will override the label prop.
|
|
6
|
+
* @slot description - Content to be placed as the description, will override the description prop.
|
|
7
|
+
* @slot error-description - Content to be placed as the error description, will override the errorDescription prop.
|
|
8
|
+
*/
|
|
9
|
+
export declare class NvFieldslider {
|
|
10
|
+
el: HTMLNvFieldsliderElement;
|
|
11
|
+
/****************************************************************************/
|
|
12
|
+
/**
|
|
13
|
+
* Sets the ID for the start input element and the for attribute of the associated
|
|
14
|
+
* label. If no ID is provided, a random one will be automatically generated.
|
|
15
|
+
*/
|
|
16
|
+
readonly startInputId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Sets the ID for the end input element and the for attribute of the associated
|
|
19
|
+
* label. If no ID is provided, a random one will be automatically generated.
|
|
20
|
+
*/
|
|
21
|
+
readonly endInputId: string;
|
|
22
|
+
/**
|
|
23
|
+
* Provides a textual description of the slider's function, helping users
|
|
24
|
+
* understand what the control adjusts. It also supports accessibility by
|
|
25
|
+
* serving as the accessible name for the component.
|
|
26
|
+
*/
|
|
27
|
+
readonly label: string;
|
|
28
|
+
/**
|
|
29
|
+
* Keeps the interface clean by removing visible labels, but still announces
|
|
30
|
+
* the label to screen readers so users relying on assistive tech aren't left
|
|
31
|
+
* guessing.
|
|
32
|
+
*/
|
|
33
|
+
readonly hideLabel: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Add helpful hints or extra information under the slider. This is where you
|
|
36
|
+
* can clarify what users should enter or provide additional instructions,
|
|
37
|
+
* making the form easier to fill out correctly.
|
|
38
|
+
*/
|
|
39
|
+
readonly description: string;
|
|
40
|
+
/**
|
|
41
|
+
* Enables an optional numeric input field alongside the slider, allowing
|
|
42
|
+
* users to type a value directly instead of—or in addition to—using the
|
|
43
|
+
* slider handle.
|
|
44
|
+
*/
|
|
45
|
+
readonly hasField: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Allows the slider to display two thumbs, enabling users to select a
|
|
48
|
+
* continuous range between a minimum and maximum value. Ideal for use cases
|
|
49
|
+
* like filtering by price or time.
|
|
50
|
+
*/
|
|
51
|
+
readonly range: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Disables user interaction with the slider and its associated input fields.
|
|
54
|
+
*/
|
|
55
|
+
readonly disabled: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Makes the slider and input non-editable while keeping them focusable and
|
|
58
|
+
* included in form submissions.
|
|
59
|
+
*/
|
|
60
|
+
readonly readonly: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Alters the slider's appearance to indicate an error, helping users
|
|
63
|
+
* identify fields that need correction.
|
|
64
|
+
* @validator error
|
|
65
|
+
*/
|
|
66
|
+
readonly error: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* A description that appears when there is an error related to the slider.
|
|
69
|
+
* @validator message
|
|
70
|
+
*/
|
|
71
|
+
readonly errorDescription: string;
|
|
72
|
+
/**
|
|
73
|
+
* Changes the slider's appearance to indicate successful input or validation.
|
|
74
|
+
*/
|
|
75
|
+
readonly success: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Numeric value of the slider as a string, if range mode is on, the values
|
|
78
|
+
* will be a comma-separated string.
|
|
79
|
+
*/
|
|
80
|
+
value: string;
|
|
81
|
+
/**
|
|
82
|
+
* Defines the interval between selectable values on the slider. Controls how
|
|
83
|
+
* much the value increases or decreases with each keyboard interaction, drag
|
|
84
|
+
* movement, or direct input.
|
|
85
|
+
*/
|
|
86
|
+
readonly step: number;
|
|
87
|
+
/**
|
|
88
|
+
* Controls whether the slider handle should visually snap to step values
|
|
89
|
+
* during dragging. When false, the handle can be positioned at any point
|
|
90
|
+
* along the track while dragging, but the actual value will still snap to the
|
|
91
|
+
* nearest step value. When true, the handle will visually snap to the nearest
|
|
92
|
+
* step value during dragging.
|
|
93
|
+
*/
|
|
94
|
+
readonly snap: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* When true and custom ticks are provided, the slider will snap to the nearest
|
|
97
|
+
* tick value during dragging, instead of using the step value. This is useful
|
|
98
|
+
* when you have custom ticks at specific values that don't align with regular step intervals.
|
|
99
|
+
*/
|
|
100
|
+
readonly snapTicks: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Name attribute for the form input element. Required for form submission.
|
|
103
|
+
* For range sliders, this will be used for the start value input and add -end
|
|
104
|
+
* to the end input name.
|
|
105
|
+
*/
|
|
106
|
+
readonly name: string;
|
|
107
|
+
/**
|
|
108
|
+
* Name attribute for the end value input when using range mode.
|
|
109
|
+
* If not provided, the name attribute will be used with '-end' appended.
|
|
110
|
+
*/
|
|
111
|
+
readonly endName: string;
|
|
112
|
+
/**
|
|
113
|
+
* Defines the minimum allowed value for the slider. The thumb cannot move
|
|
114
|
+
* below this value, and manual input is also constrained accordingly.
|
|
115
|
+
*/
|
|
116
|
+
readonly min: number;
|
|
117
|
+
/**
|
|
118
|
+
* Defines the maximum allowed value for the slider. The thumb cannot move
|
|
119
|
+
* above this value, and manual input is also constrained accordingly.
|
|
120
|
+
*/
|
|
121
|
+
readonly max: number;
|
|
122
|
+
/**
|
|
123
|
+
* Controls the visibility of tick marks on the slider. When enabled, all
|
|
124
|
+
* visual ticks that indicate step points along the track are shown. If custom
|
|
125
|
+
* ticks are provided, they are always shown regardless of this setting.
|
|
126
|
+
*/
|
|
127
|
+
readonly showTicks: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Allows you to specify custom tick marks at specific values along the
|
|
130
|
+
* slider. Each tick can optionally display a label to provide additional
|
|
131
|
+
* context or guidance for users.
|
|
132
|
+
*/
|
|
133
|
+
readonly ticks: {
|
|
134
|
+
/** The numeric value of the tick */
|
|
135
|
+
value: number;
|
|
136
|
+
/** The label of the tick */
|
|
137
|
+
label?: string;
|
|
138
|
+
}[];
|
|
139
|
+
/**
|
|
140
|
+
* Allows the field to stretch and fill the entire width of its container.
|
|
141
|
+
*/
|
|
142
|
+
readonly fluid: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Use this to automatically show a label, like “~” for approximate values,
|
|
145
|
+
* before the slider’s value in the tooltip or input, giving users quick
|
|
146
|
+
* context about the number.
|
|
147
|
+
*/
|
|
148
|
+
readonly labelBeforeValue: string;
|
|
149
|
+
/**
|
|
150
|
+
* Use this to automatically show a label, like “$” or “kg,” after the value
|
|
151
|
+
* on the slider’s tooltip or input, helping users better understand the
|
|
152
|
+
* number.
|
|
153
|
+
*/
|
|
154
|
+
readonly labelAfterValue: string;
|
|
155
|
+
/****************************************************************************/
|
|
156
|
+
isDragging: boolean;
|
|
157
|
+
activeDragThumb: 'left' | 'right' | 'single';
|
|
158
|
+
internalTicks: typeof this.ticks;
|
|
159
|
+
rawPosition: number;
|
|
160
|
+
rawRangePosition: [number, number];
|
|
161
|
+
valueInternal: number;
|
|
162
|
+
rangeValueInternal: [number, number];
|
|
163
|
+
/****************************************************************************/
|
|
164
|
+
/**
|
|
165
|
+
* Ensures value is valid and within bounds.
|
|
166
|
+
* @param {number} val - The value to validate
|
|
167
|
+
* @returns {number} The validated and snapped value
|
|
168
|
+
*/
|
|
169
|
+
private validateValue;
|
|
170
|
+
/**
|
|
171
|
+
* Parses the value string into a number or array of numbers for internal use.
|
|
172
|
+
*/
|
|
173
|
+
private parseValue;
|
|
174
|
+
/**
|
|
175
|
+
* Handles value changes from slider interaction.
|
|
176
|
+
* @param {number | number[]} newValue - The new value or range values
|
|
177
|
+
*/
|
|
178
|
+
private handleValueChange;
|
|
179
|
+
/**
|
|
180
|
+
* Generates the ticks to display based on props and state.
|
|
181
|
+
*/
|
|
182
|
+
private generateDisplayTicks;
|
|
183
|
+
/**
|
|
184
|
+
* Handles pointer events on the track.
|
|
185
|
+
* @param {PointerEvent} event - The pointer event
|
|
186
|
+
*/
|
|
187
|
+
private onTrackInteraction;
|
|
188
|
+
/**
|
|
189
|
+
* Handles pointer move events during drag.
|
|
190
|
+
* @param {PointerEvent} event - The pointer event
|
|
191
|
+
*/
|
|
192
|
+
private onPointerMove;
|
|
193
|
+
/**
|
|
194
|
+
* Handles the end of a drag operation.
|
|
195
|
+
*/
|
|
196
|
+
private onPointerUp;
|
|
197
|
+
/**
|
|
198
|
+
* Registers global events for tracking pointer movement.
|
|
199
|
+
*/
|
|
200
|
+
private registerGlobalEvents;
|
|
201
|
+
/**
|
|
202
|
+
* Removes global events when tracking ends.
|
|
203
|
+
*/
|
|
204
|
+
private removeGlobalEvents;
|
|
205
|
+
/**
|
|
206
|
+
* Handles keydown events for keyboard accessibility.
|
|
207
|
+
* @param {KeyboardEvent} event - The keyboard event
|
|
208
|
+
*/
|
|
209
|
+
private onKeyDown;
|
|
210
|
+
/**
|
|
211
|
+
* Handles field input value changes.
|
|
212
|
+
* @param {Event} event - The input event
|
|
213
|
+
*/
|
|
214
|
+
private handleFieldChange;
|
|
215
|
+
/****************************************************************************/
|
|
216
|
+
onValueChange(): void;
|
|
217
|
+
onConfigChange(): void;
|
|
218
|
+
onRangeChange(newValue: boolean): void;
|
|
219
|
+
/****************************************************************************/
|
|
220
|
+
connectedCallback(): void;
|
|
221
|
+
disconnectedCallback(): void;
|
|
222
|
+
/****************************************************************************/
|
|
223
|
+
/**
|
|
224
|
+
* Emitted when the slider values change.
|
|
225
|
+
* @bind value
|
|
226
|
+
*/
|
|
227
|
+
valueChanged: EventEmitter<string>;
|
|
228
|
+
/****************************************************************************/
|
|
229
|
+
render(): any;
|
|
230
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for nv-fieldslider.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Clamp a value between min and max.
|
|
6
|
+
* @param {number} value - The value to clamp
|
|
7
|
+
* @param {number} min - The minimum boundary
|
|
8
|
+
* @param {number} max - The maximum boundary
|
|
9
|
+
* @returns {number} The clamped value
|
|
10
|
+
*/
|
|
11
|
+
export declare function clamp(value: number, min: number, max: number): number;
|
|
12
|
+
/**
|
|
13
|
+
* Calculate the percentage position of a value within a range.
|
|
14
|
+
* @param {number} value - The value to convert to percentage
|
|
15
|
+
* @param {number} min - The minimum value of the range
|
|
16
|
+
* @param {number} max - The maximum value of the range
|
|
17
|
+
* @returns {number} The percentage (0-100)
|
|
18
|
+
*/
|
|
19
|
+
export declare function valueToPercent(value: number, min: number, max: number): number;
|
|
20
|
+
/**
|
|
21
|
+
* Snap a value to the nearest step.
|
|
22
|
+
* @param {number} value - The value to snap
|
|
23
|
+
* @param {number} min - The minimum boundary
|
|
24
|
+
* @param {number} max - The maximum boundary
|
|
25
|
+
* @param {number} step - The step size
|
|
26
|
+
* @returns {number} The snapped value
|
|
27
|
+
*/
|
|
28
|
+
export declare function snapToStep(value: number, min: number, max: number, step: number): number;
|
|
29
|
+
/**
|
|
30
|
+
* Generate tick values for the slider.
|
|
31
|
+
* @param {number} min - The minimum value
|
|
32
|
+
* @param {number} max - The maximum value
|
|
33
|
+
* @param {number} step - The step size
|
|
34
|
+
* @returns {number[]} Array of tick values
|
|
35
|
+
*/
|
|
36
|
+
export declare function generateTicks(min: number, max: number, step: number): number[];
|
|
37
|
+
/**
|
|
38
|
+
* Snap a value to the nearest tick mark.
|
|
39
|
+
* @param {number} value - The value to snap
|
|
40
|
+
* @param {object[]} ticks - Array of tick objects
|
|
41
|
+
* @returns {number} The value of the closest tick
|
|
42
|
+
*/
|
|
43
|
+
export declare function snapToTicks(value: number, ticks: {
|
|
44
|
+
/** The value of the tick */
|
|
45
|
+
value: number;
|
|
46
|
+
}[]): number;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { FunctionalComponent } from '../../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the FieldInput component
|
|
4
|
+
*/
|
|
5
|
+
interface FieldInputProps {
|
|
6
|
+
/** Whether this is a range slider */
|
|
7
|
+
range: boolean;
|
|
8
|
+
/** Whether to show the input field */
|
|
9
|
+
hasField: boolean;
|
|
10
|
+
/** The value for single mode */
|
|
11
|
+
value: number;
|
|
12
|
+
/** The values for range mode [min, max] */
|
|
13
|
+
rangeValue: number[];
|
|
14
|
+
/** Index (0 or 1) for range mode, ignored in single mode */
|
|
15
|
+
index?: number;
|
|
16
|
+
/** ID for the input field */
|
|
17
|
+
inputId: string;
|
|
18
|
+
/** Minimum allowed value */
|
|
19
|
+
min: number;
|
|
20
|
+
/** Maximum allowed value */
|
|
21
|
+
max: number;
|
|
22
|
+
/** Step size */
|
|
23
|
+
step: number;
|
|
24
|
+
/** Whether the slider is disabled */
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
/** Whether the slider is readonly */
|
|
27
|
+
readonly: boolean;
|
|
28
|
+
/** Handler for input changes */
|
|
29
|
+
onInput: (event: Event) => void;
|
|
30
|
+
/** Label to display before the value */
|
|
31
|
+
labelBeforeValue?: string;
|
|
32
|
+
/** Label to display after the value */
|
|
33
|
+
labelAfterValue?: string;
|
|
34
|
+
/** Name attribute for the input field (for form submission) */
|
|
35
|
+
name?: string;
|
|
36
|
+
/** Name attribute for the end input field (when in range mode) */
|
|
37
|
+
endName?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Renders field input for direct value entry
|
|
41
|
+
* @param {FieldInputProps} props - Component properties
|
|
42
|
+
* @returns {JSX.Element} JSX element representing the field input
|
|
43
|
+
*/
|
|
44
|
+
export declare const FieldInput: FunctionalComponent<FieldInputProps>;
|
|
45
|
+
export {};
|