@nova-design-system/nova-webcomponents 3.0.0-beta.30 → 3.0.0-beta.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blazor-docs.json +1320 -1743
- package/dist/cjs/{app-globals-d8cbb987.js → app-globals-6b0931bc.js} +2 -2
- package/dist/cjs/app-globals-6b0931bc.js.map +1 -0
- package/dist/cjs/{constants-33057c89.js → constants-9525a915.js} +7 -1
- package/dist/cjs/constants-9525a915.js.map +1 -0
- package/dist/cjs/{index-c50face0.js → index-ddc37f87.js} +866 -495
- package/dist/cjs/index-ddc37f87.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/native.cjs.js +4 -4
- package/dist/cjs/native.cjs.js.map +1 -1
- package/dist/cjs/nv-alert.cjs.entry.js +24 -11
- package/dist/cjs/nv-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-avatar.cjs.entry.js +11 -14
- package/dist/cjs/nv-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-badge.cjs.entry.js +145 -0
- package/dist/cjs/nv-badge.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-base.cjs.entry.js +2 -3
- package/dist/cjs/nv-base.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-breadcrumb.cjs.entry.js +47 -0
- package/dist/cjs/nv-breadcrumb.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-breadcrumbs.cjs.entry.js +23 -0
- package/dist/cjs/nv-breadcrumbs.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-button.cjs.entry.js +43 -11
- package/dist/cjs/nv-button.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-col.cjs.entry.js +2 -3
- package/dist/cjs/nv-col.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-datagrid.cjs.entry.js +34 -8
- package/dist/cjs/nv-datagrid.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-datagridbody.cjs.entry.js +2 -2
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js +2 -4
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-datagriddatacell.cjs.entry.js +2 -3
- package/dist/cjs/nv-datagriddatacell.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-datagridhead.cjs.entry.js +2 -2
- package/dist/cjs/nv-datagridrow.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +44 -13
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +121 -43
- package/dist/cjs/nv-fielddropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +13 -7
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +48 -22
- package/dist/cjs/nv-fieldnumber.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +65 -24
- package/dist/cjs/nv-fieldpassword.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldradio.cjs.entry.js +29 -11
- package/dist/cjs/nv-fieldradio.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldselect.cjs.entry.js +67 -26
- package/dist/cjs/nv-fieldselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtext.cjs.entry.js +55 -25
- package/dist/cjs/nv-fieldtext.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +103 -63
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtoggle.cjs.entry.js +21 -8
- package/dist/cjs/nv-fieldtoggle.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-icon.cjs.entry.js +6 -11
- package/dist/cjs/nv-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/{nv-iconbutton_2.cjs.entry.js → nv-iconbutton.cjs.entry.js} +45 -32
- package/dist/cjs/nv-iconbutton.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-loader.cjs.entry.js +35 -0
- package/dist/cjs/nv-loader.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-menu.cjs.entry.js +26 -44
- package/dist/cjs/nv-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-menuitem.cjs.entry.js +36 -5
- package/dist/cjs/nv-menuitem.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-popover.cjs.entry.js +68 -18
- package/dist/cjs/nv-popover.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-row.cjs.entry.js +2 -2
- package/dist/cjs/nv-stack.cjs.entry.js +8 -6
- package/dist/cjs/nv-stack.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-table.cjs.entry.js +28 -7
- package/dist/cjs/nv-table.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-tablebody.cjs.entry.js +2 -2
- package/dist/cjs/nv-tablecolumn.cjs.entry.js +16 -5
- package/dist/cjs/nv-tablecolumn.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-tabledatacell.cjs.entry.js +18 -3
- package/dist/cjs/nv-tabledatacell.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-tablehead.cjs.entry.js +2 -2
- package/dist/cjs/nv-tablerow.cjs.entry.js +2 -2
- package/dist/cjs/nv-tooltip.cjs.entry.js +16 -6
- package/dist/cjs/nv-tooltip.cjs.entry.js.map +1 -1
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/nv-alert/nv-alert.js +38 -9
- package/dist/collection/components/nv-alert/nv-alert.js.map +1 -1
- package/dist/collection/components/nv-avatar/nv-avatar.css +0 -33
- package/dist/collection/components/nv-avatar/nv-avatar.js +32 -11
- package/dist/collection/components/nv-avatar/nv-avatar.js.map +1 -1
- package/dist/collection/components/nv-badge/nv-badge.css +20 -53
- package/dist/collection/components/nv-badge/nv-badge.js +56 -12
- package/dist/collection/components/nv-badge/nv-badge.js.map +1 -1
- package/dist/collection/components/nv-base/nv-base.js +1 -2
- package/dist/collection/components/nv-base/nv-base.js.map +1 -1
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.css +14 -0
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.docs.js +6 -0
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.docs.js.map +1 -0
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.js +111 -0
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.js.map +1 -0
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.css +12 -0
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.docs.js +34 -0
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.docs.js.map +1 -0
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.js +22 -0
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.js.map +1 -0
- package/dist/collection/components/nv-button/nv-button.docs.js +5 -0
- package/dist/collection/components/nv-button/nv-button.docs.js.map +1 -1
- package/dist/collection/components/nv-button/nv-button.js +56 -10
- package/dist/collection/components/nv-button/nv-button.js.map +1 -1
- package/dist/collection/components/nv-button/{nv-button.css → styles/nv-button.css} +25 -60
- package/dist/collection/components/nv-col/nv-col.js +3 -4
- package/dist/collection/components/nv-col/nv-col.js.map +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js +45 -7
- package/dist/collection/components/nv-datagrid/nv-datagrid.js.map +1 -1
- package/dist/collection/components/nv-datagridbody/nv-datagridbody.js +1 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js +5 -5
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js.map +1 -1
- package/dist/collection/components/nv-datagriddatacell/nv-datagriddatacell.js +3 -4
- package/dist/collection/components/nv-datagriddatacell/nv-datagriddatacell.js.map +1 -1
- package/dist/collection/components/nv-datagridhead/nv-datagridhead.js +1 -1
- package/dist/collection/components/nv-datagridrow/nv-datagridrow.js +1 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js +77 -12
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.css +17 -2
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js +8 -19
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +150 -42
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +1 -1
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.css +9 -17
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +19 -5
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js.map +1 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.css +1 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +80 -20
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js.map +1 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +104 -25
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js.map +1 -1
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +52 -10
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js.map +1 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.css +1 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +97 -26
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js.map +1 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js +1 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +98 -26
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js.map +1 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +144 -64
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js.map +1 -1
- package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.js +40 -7
- package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.js.map +1 -1
- package/dist/collection/components/nv-icon/nv-icon.js +22 -11
- package/dist/collection/components/nv-icon/nv-icon.js.map +1 -1
- package/dist/collection/components/nv-icon/{nv-icon.css → styles/nv-icon.css} +0 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +67 -12
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js.map +1 -1
- package/dist/collection/components/nv-loader/nv-loader.js +12 -2
- package/dist/collection/components/nv-loader/nv-loader.js.map +1 -1
- package/dist/collection/components/nv-menu/nv-menu.js +38 -48
- package/dist/collection/components/nv-menu/nv-menu.js.map +1 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +102 -6
- package/dist/collection/components/nv-menuitem/nv-menuitem.js.map +1 -1
- package/dist/collection/components/nv-popover/nv-popover.js +91 -19
- package/dist/collection/components/nv-popover/nv-popover.js.map +1 -1
- package/dist/collection/components/nv-row/nv-row.js +1 -1
- package/dist/collection/components/nv-stack/nv-stack.js +17 -5
- package/dist/collection/components/nv-stack/nv-stack.js.map +1 -1
- package/dist/collection/components/nv-table/nv-table.js +39 -6
- package/dist/collection/components/nv-table/nv-table.js.map +1 -1
- package/dist/collection/components/nv-tablebody/nv-tablebody.js +1 -1
- package/dist/collection/components/nv-tablecolumn/nv-tablecolumn.js +25 -4
- package/dist/collection/components/nv-tablecolumn/nv-tablecolumn.js.map +1 -1
- package/dist/collection/components/nv-tabledatacell/nv-tabledatacell.js +23 -2
- package/dist/collection/components/nv-tabledatacell/nv-tabledatacell.js.map +1 -1
- package/dist/collection/components/nv-tablehead/nv-tablehead.js +1 -1
- package/dist/collection/components/nv-tablerow/nv-tablerow.js +1 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +47 -5
- package/dist/collection/components/nv-tooltip/nv-tooltip.js.map +1 -1
- package/dist/collection/dev/dev-components.js +1 -1
- package/dist/collection/dev/dev-components.js.map +1 -1
- package/dist/collection/templates/navigation.docs.js +13 -0
- package/dist/collection/templates/navigation.docs.js.map +1 -0
- package/dist/collection/utils/constants.js +5 -0
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/components/index.js +4 -4
- package/dist/components/nv-alert.js +25 -12
- package/dist/components/nv-alert.js.map +1 -1
- package/dist/components/nv-avatar.js +12 -15
- package/dist/components/nv-avatar.js.map +1 -1
- package/dist/components/nv-badge.js +173 -1
- package/dist/components/nv-badge.js.map +1 -1
- package/dist/components/nv-base.js +2 -3
- package/dist/components/nv-base.js.map +1 -1
- package/dist/components/{nv-fieldmultiselect.d.ts → nv-breadcrumb.d.ts} +4 -4
- package/dist/components/nv-breadcrumb.js +83 -0
- package/dist/components/nv-breadcrumb.js.map +1 -0
- package/dist/components/nv-breadcrumbs.d.ts +11 -0
- package/dist/components/nv-breadcrumbs.js +37 -0
- package/dist/components/nv-breadcrumbs.js.map +1 -0
- package/dist/components/nv-button.js +44 -12
- package/dist/components/nv-button.js.map +1 -1
- package/dist/components/nv-col.js +2 -3
- package/dist/components/nv-col.js.map +1 -1
- package/dist/components/nv-datagrid.js +34 -8
- package/dist/components/nv-datagrid.js.map +1 -1
- package/dist/components/nv-datagridbody.js +2 -2
- package/dist/components/nv-datagridcolumn.js +2 -4
- package/dist/components/nv-datagridcolumn.js.map +1 -1
- package/dist/components/nv-datagriddatacell.js +2 -3
- package/dist/components/nv-datagriddatacell.js.map +1 -1
- package/dist/components/nv-datagridhead.js +2 -2
- package/dist/components/nv-datagridrow.js +2 -2
- package/dist/components/nv-fieldcheckbox.js +152 -1
- package/dist/components/nv-fieldcheckbox.js.map +1 -1
- package/dist/components/nv-fielddropdown.js +126 -48
- package/dist/components/nv-fielddropdown.js.map +1 -1
- package/dist/components/nv-fielddropdownitem.js +1 -1
- package/dist/components/nv-fieldnumber.js +49 -23
- package/dist/components/nv-fieldnumber.js.map +1 -1
- package/dist/components/nv-fieldpassword.js +68 -27
- package/dist/components/nv-fieldpassword.js.map +1 -1
- package/dist/components/nv-fieldradio.js +29 -11
- package/dist/components/nv-fieldradio.js.map +1 -1
- package/dist/components/nv-fieldselect.js +69 -28
- package/dist/components/nv-fieldselect.js.map +1 -1
- package/dist/components/nv-fieldtext.js +56 -26
- package/dist/components/nv-fieldtext.js.map +1 -1
- package/dist/components/nv-fieldtextarea.js +106 -65
- package/dist/components/nv-fieldtextarea.js.map +1 -1
- package/dist/components/nv-fieldtoggle.js +21 -8
- package/dist/components/nv-fieldtoggle.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 +28 -46
- package/dist/components/nv-menu.js.map +1 -1
- package/dist/components/nv-menuitem.js +40 -8
- package/dist/components/nv-menuitem.js.map +1 -1
- package/dist/components/nv-popover.js +1 -1
- package/dist/components/nv-row.js +2 -2
- package/dist/components/nv-stack.js +8 -6
- package/dist/components/nv-stack.js.map +1 -1
- package/dist/components/nv-table.js +28 -7
- package/dist/components/nv-table.js.map +1 -1
- package/dist/components/nv-tablebody.js +2 -2
- package/dist/components/nv-tablecolumn.js +16 -5
- package/dist/components/nv-tablecolumn.js.map +1 -1
- package/dist/components/nv-tabledatacell.js +18 -3
- package/dist/components/nv-tabledatacell.js.map +1 -1
- package/dist/components/nv-tablehead.js +2 -2
- package/dist/components/nv-tablerow.js +2 -2
- package/dist/components/nv-tooltip.js +1 -54
- package/dist/components/nv-tooltip.js.map +1 -1
- package/dist/components/{p-b12abc99.js → p-09a2a880.js} +15 -9
- package/dist/components/p-09a2a880.js.map +1 -0
- package/dist/components/{p-8bec002e.js → p-0cdf2cc7.js} +47 -14
- package/dist/components/{p-8bec002e.js.map → p-0cdf2cc7.js.map} +1 -1
- package/dist/components/{p-ae6a0d80.js → p-3a65a05e.js} +211 -172
- package/dist/components/p-3a65a05e.js.map +1 -0
- package/dist/components/{p-d506ae63.js → p-3b209e94.js} +851 -492
- package/dist/components/p-3b209e94.js.map +1 -0
- package/dist/components/{p-a15ddd42.js → p-74407727.js} +7 -1
- package/dist/components/p-74407727.js.map +1 -0
- package/dist/components/{p-d70df149.js → p-a61d9ce8.js} +7 -12
- package/dist/components/p-a61d9ce8.js.map +1 -0
- package/dist/components/{p-a1aa8970.js → p-b7462fc2.js} +10 -4
- package/dist/components/p-b7462fc2.js.map +1 -0
- package/dist/components/{p-d5dd3def.js → p-ce67d70c.js} +70 -20
- package/dist/components/p-ce67d70c.js.map +1 -0
- package/dist/components/p-e7131c30.js +69 -0
- package/dist/components/p-e7131c30.js.map +1 -0
- package/dist/docs.d.ts +8 -0
- package/dist/docs.json +1321 -1736
- package/dist/esm/{app-globals-eea8674a.js → app-globals-246d6b7c.js} +2 -2
- package/dist/esm/app-globals-246d6b7c.js.map +1 -0
- package/dist/esm/{constants-e9bee611.js → constants-7b642e1d.js} +7 -1
- package/dist/esm/constants-7b642e1d.js.map +1 -0
- package/dist/esm/{index-e7b35c14.js → index-cd557d0a.js} +866 -495
- package/dist/esm/index-cd557d0a.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/native.js +5 -5
- package/dist/esm/native.js.map +1 -1
- package/dist/esm/nv-alert.entry.js +24 -11
- package/dist/esm/nv-alert.entry.js.map +1 -1
- package/dist/esm/nv-avatar.entry.js +11 -14
- package/dist/esm/nv-avatar.entry.js.map +1 -1
- package/dist/esm/nv-badge.entry.js +141 -0
- package/dist/esm/nv-badge.entry.js.map +1 -0
- package/dist/esm/nv-base.entry.js +2 -3
- package/dist/esm/nv-base.entry.js.map +1 -1
- package/dist/esm/nv-breadcrumb.entry.js +43 -0
- package/dist/esm/nv-breadcrumb.entry.js.map +1 -0
- package/dist/esm/nv-breadcrumbs.entry.js +19 -0
- package/dist/esm/nv-breadcrumbs.entry.js.map +1 -0
- package/dist/esm/nv-button.entry.js +43 -11
- package/dist/esm/nv-button.entry.js.map +1 -1
- package/dist/esm/nv-col.entry.js +2 -3
- package/dist/esm/nv-col.entry.js.map +1 -1
- package/dist/esm/nv-datagrid.entry.js +34 -8
- package/dist/esm/nv-datagrid.entry.js.map +1 -1
- package/dist/esm/nv-datagridbody.entry.js +2 -2
- package/dist/esm/nv-datagridcolumn.entry.js +2 -4
- package/dist/esm/nv-datagridcolumn.entry.js.map +1 -1
- package/dist/esm/nv-datagriddatacell.entry.js +2 -3
- package/dist/esm/nv-datagriddatacell.entry.js.map +1 -1
- package/dist/esm/nv-datagridhead.entry.js +2 -2
- package/dist/esm/nv-datagridrow.entry.js +2 -2
- package/dist/esm/nv-fieldcheckbox.entry.js +44 -13
- package/dist/esm/nv-fieldcheckbox.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdown.entry.js +121 -43
- package/dist/esm/nv-fielddropdown.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdownitem.entry.js +13 -7
- package/dist/esm/nv-fielddropdownitem.entry.js.map +1 -1
- package/dist/esm/nv-fieldnumber.entry.js +48 -22
- package/dist/esm/nv-fieldnumber.entry.js.map +1 -1
- package/dist/esm/nv-fieldpassword.entry.js +65 -24
- package/dist/esm/nv-fieldpassword.entry.js.map +1 -1
- package/dist/esm/nv-fieldradio.entry.js +29 -11
- package/dist/esm/nv-fieldradio.entry.js.map +1 -1
- package/dist/esm/nv-fieldselect.entry.js +67 -26
- package/dist/esm/nv-fieldselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldtext.entry.js +55 -25
- package/dist/esm/nv-fieldtext.entry.js.map +1 -1
- package/dist/esm/nv-fieldtextarea.entry.js +103 -63
- package/dist/esm/nv-fieldtextarea.entry.js.map +1 -1
- package/dist/esm/nv-fieldtoggle.entry.js +21 -8
- package/dist/esm/nv-fieldtoggle.entry.js.map +1 -1
- package/dist/esm/nv-icon.entry.js +6 -11
- package/dist/esm/nv-icon.entry.js.map +1 -1
- package/dist/esm/{nv-iconbutton_2.entry.js → nv-iconbutton.entry.js} +46 -32
- package/dist/esm/nv-iconbutton.entry.js.map +1 -0
- package/dist/esm/nv-loader.entry.js +31 -0
- package/dist/esm/nv-loader.entry.js.map +1 -0
- package/dist/esm/nv-menu.entry.js +26 -44
- package/dist/esm/nv-menu.entry.js.map +1 -1
- package/dist/esm/nv-menuitem.entry.js +36 -5
- package/dist/esm/nv-menuitem.entry.js.map +1 -1
- package/dist/esm/nv-popover.entry.js +69 -19
- package/dist/esm/nv-popover.entry.js.map +1 -1
- package/dist/esm/nv-row.entry.js +2 -2
- package/dist/esm/nv-stack.entry.js +8 -6
- package/dist/esm/nv-stack.entry.js.map +1 -1
- package/dist/esm/nv-table.entry.js +28 -7
- package/dist/esm/nv-table.entry.js.map +1 -1
- package/dist/esm/nv-tablebody.entry.js +2 -2
- package/dist/esm/nv-tablecolumn.entry.js +16 -5
- package/dist/esm/nv-tablecolumn.entry.js.map +1 -1
- package/dist/esm/nv-tabledatacell.entry.js +18 -3
- package/dist/esm/nv-tabledatacell.entry.js.map +1 -1
- package/dist/esm/nv-tablehead.entry.js +2 -2
- package/dist/esm/nv-tablerow.entry.js +2 -2
- package/dist/esm/nv-tooltip.entry.js +16 -6
- package/dist/esm/nv-tooltip.entry.js.map +1 -1
- package/dist/native/index.esm.js +1 -1
- package/dist/native/native.css +1 -1
- package/dist/native/native.esm.js +1 -1
- package/dist/native/native.esm.js.map +1 -1
- package/dist/native/p-0710efd7.entry.js +2 -0
- package/dist/native/p-0710efd7.entry.js.map +1 -0
- package/dist/native/p-0f9262ed.entry.js +2 -0
- package/dist/native/p-10a06059.entry.js +2 -0
- package/dist/native/p-10a06059.entry.js.map +1 -0
- package/dist/native/p-132b8588.entry.js +2 -0
- package/dist/native/p-132b8588.entry.js.map +1 -0
- package/dist/native/p-2063c768.entry.js +2 -0
- package/dist/native/p-2063c768.entry.js.map +1 -0
- package/dist/native/p-2ac838b8.entry.js +2 -0
- package/dist/native/p-2ac838b8.entry.js.map +1 -0
- package/dist/native/p-38d3eee3.js +2 -0
- package/dist/native/p-38d3eee3.js.map +1 -0
- package/dist/native/{p-5b4bdbe2.entry.js → p-3e9521a0.entry.js} +2 -2
- package/dist/native/p-3e9521a0.entry.js.map +1 -0
- package/dist/native/{p-69ca8c88.entry.js → p-40f4828a.entry.js} +2 -2
- package/dist/native/p-40f4828a.entry.js.map +1 -0
- package/dist/native/p-44cc8b59.entry.js +2 -0
- package/dist/native/p-44cc8b59.entry.js.map +1 -0
- package/dist/native/p-45aa0c68.entry.js +2 -0
- package/dist/native/p-45aa0c68.entry.js.map +1 -0
- package/dist/native/p-4f30312d.entry.js +2 -0
- package/dist/native/p-4f30312d.entry.js.map +1 -0
- package/dist/native/p-52a7f936.entry.js +2 -0
- package/dist/native/{p-671699bf.entry.js.map → p-52a7f936.entry.js.map} +1 -1
- package/dist/native/{p-13070761.entry.js → p-5d0dc7c8.entry.js} +2 -2
- package/dist/native/p-5d0dc7c8.entry.js.map +1 -0
- package/dist/native/p-5d67a825.entry.js +2 -0
- package/dist/native/p-5d67a825.entry.js.map +1 -0
- package/dist/native/p-5e467b49.entry.js +2 -0
- package/dist/native/{p-982e474f.entry.js.map → p-5e467b49.entry.js.map} +1 -1
- package/dist/native/p-6c1b9c89.entry.js +2 -0
- package/dist/native/{p-589eb477.entry.js.map → p-6c1b9c89.entry.js.map} +1 -1
- package/dist/native/p-74407727.js +2 -0
- package/dist/native/p-74407727.js.map +1 -0
- package/dist/native/{p-65ad60eb.entry.js → p-74778f5f.entry.js} +2 -2
- package/dist/native/p-74778f5f.entry.js.map +1 -0
- package/dist/native/p-87b93cc2.entry.js +2 -0
- package/dist/native/p-8f0984b0.entry.js +2 -0
- package/dist/native/p-8f0984b0.entry.js.map +1 -0
- package/dist/native/p-907c3eda.entry.js +2 -0
- package/dist/native/p-91d4b4d7.entry.js +2 -0
- package/dist/native/p-91d4b4d7.entry.js.map +1 -0
- package/dist/native/p-9341cf9d.entry.js +2 -0
- package/dist/native/{p-2fca31c0.entry.js.map → p-9341cf9d.entry.js.map} +1 -1
- package/dist/native/p-9b093b92.js +3 -0
- package/dist/native/p-9b093b92.js.map +1 -0
- package/dist/native/{p-91d30cd7.entry.js → p-9cef006d.entry.js} +2 -2
- package/dist/native/p-9cef006d.entry.js.map +1 -0
- package/dist/native/p-a9b6461b.entry.js +2 -0
- package/dist/native/p-a9b6461b.entry.js.map +1 -0
- package/dist/native/{p-7b2d8b8c.entry.js → p-b902c7c0.entry.js} +2 -2
- package/dist/native/p-b902c7c0.entry.js.map +1 -0
- package/dist/native/p-bbc45099.entry.js +2 -0
- package/dist/native/{p-12eaebd6.entry.js → p-c59e3500.entry.js} +2 -2
- package/dist/native/p-c59e3500.entry.js.map +1 -0
- package/dist/native/{p-305951e4.entry.js → p-d0f83d1f.entry.js} +2 -2
- package/dist/native/p-d0f83d1f.entry.js.map +1 -0
- package/dist/native/{p-7b3a4cbf.entry.js → p-e390557d.entry.js} +2 -2
- package/dist/native/p-e390557d.entry.js.map +1 -0
- package/dist/native/p-e56d3715.entry.js +2 -0
- package/dist/native/p-e56d3715.entry.js.map +1 -0
- package/dist/native/p-e5fbe545.entry.js +2 -0
- package/dist/native/p-e5fbe545.entry.js.map +1 -0
- package/dist/native/p-eade52d4.entry.js +2 -0
- package/dist/native/p-eade52d4.entry.js.map +1 -0
- package/dist/native/p-eda8cd9d.entry.js +2 -0
- package/dist/native/{p-e842220b.entry.js.map → p-eda8cd9d.entry.js.map} +1 -1
- package/dist/native/p-ee78addb.entry.js +2 -0
- package/dist/native/p-ee78addb.entry.js.map +1 -0
- package/dist/native/p-f1545844.entry.js +2 -0
- package/dist/native/p-f1545844.entry.js.map +1 -0
- package/dist/native/{p-92e3e334.entry.js → p-f2ea8aa9.entry.js} +2 -2
- package/dist/native/p-f2ea8aa9.entry.js.map +1 -0
- package/dist/native/p-f42e87b5.entry.js +2 -0
- package/dist/native/p-f4ecacf6.entry.js +2 -0
- package/dist/native/p-f4ecacf6.entry.js.map +1 -0
- package/dist/native/{p-36d5158c.entry.js → p-f7db0785.entry.js} +3 -3
- package/dist/native/p-f7db0785.entry.js.map +1 -0
- package/dist/types/components/nv-base/nv-base.docs.d.ts +1 -1
- package/dist/types/components/nv-breadcrumb/nv-breadcrumb.d.ts +30 -0
- package/dist/types/components/nv-breadcrumb/nv-breadcrumb.docs.d.ts +4 -0
- package/dist/types/components/nv-breadcrumbs/nv-breadcrumbs.d.ts +6 -0
- package/dist/types/components/nv-breadcrumbs/nv-breadcrumbs.docs.d.ts +4 -0
- package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +4 -1
- package/dist/types/components/nv-fieldpassword/nv-fieldpassword.d.ts +1 -1
- package/dist/types/components/nv-fieldselect/nv-fieldselect.d.ts +1 -1
- package/dist/types/components/nv-fieldtext/nv-fieldtext.d.ts +1 -1
- package/dist/types/components/nv-fieldtextarea/nv-fieldtextarea.d.ts +7 -11
- package/dist/types/components/nv-iconbutton/nv-iconbutton.d.ts +2 -2
- package/dist/types/components/nv-menu/nv-menu.d.ts +4 -5
- package/dist/types/components/nv-menuitem/nv-menuitem.d.ts +25 -1
- package/dist/types/components/nv-popover/nv-popover.d.ts +7 -0
- package/dist/types/components/nv-tooltip/nv-tooltip.d.ts +6 -1
- package/dist/types/components.d.ts +105 -354
- package/dist/types/nova-docs.d.ts +46 -24
- package/dist/types/templates/navigation.docs.d.ts +3 -0
- package/dist/types/utils/constants.d.ts +4 -0
- package/dist/vscode-data.json +117 -400
- package/hydrate/index.js +2116 -2339
- package/hydrate/index.mjs +2116 -2339
- package/package.json +17 -15
- package/dist/cjs/app-globals-d8cbb987.js.map +0 -1
- package/dist/cjs/constants-33057c89.js.map +0 -1
- package/dist/cjs/index-c50face0.js.map +0 -1
- package/dist/cjs/nv-badge_2.cjs.entry.js +0 -159
- package/dist/cjs/nv-badge_2.cjs.entry.js.map +0 -1
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +0 -1038
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +0 -1
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.css +0 -12
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js +0 -6
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +0 -171
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js.map +0 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.css +0 -201
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js +0 -257
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +0 -1578
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js.map +0 -1
- package/dist/collection/components/nv-icon/test/nv-icon.test.js +0 -25
- package/dist/collection/components/nv-icon/test/nv-icon.test.js.map +0 -1
- package/dist/components/nv-fielddropdownitemcheck.d.ts +0 -11
- package/dist/components/nv-fielddropdownitemcheck.js +0 -8
- package/dist/components/nv-fielddropdownitemcheck.js.map +0 -1
- package/dist/components/nv-fieldmultiselect.js +0 -1129
- package/dist/components/nv-fieldmultiselect.js.map +0 -1
- package/dist/components/p-5ce661bd.js +0 -125
- package/dist/components/p-5ce661bd.js.map +0 -1
- package/dist/components/p-a15ddd42.js.map +0 -1
- package/dist/components/p-a1aa8970.js.map +0 -1
- package/dist/components/p-a4802979.js +0 -151
- package/dist/components/p-a4802979.js.map +0 -1
- package/dist/components/p-ae6a0d80.js.map +0 -1
- package/dist/components/p-b12abc99.js.map +0 -1
- package/dist/components/p-d506ae63.js.map +0 -1
- package/dist/components/p-d5dd3def.js.map +0 -1
- package/dist/components/p-d70df149.js.map +0 -1
- package/dist/components/p-e4641c41.js +0 -72
- package/dist/components/p-e4641c41.js.map +0 -1
- package/dist/esm/app-globals-eea8674a.js.map +0 -1
- package/dist/esm/constants-e9bee611.js.map +0 -1
- package/dist/esm/index-e7b35c14.js.map +0 -1
- package/dist/esm/nv-badge_2.entry.js +0 -154
- package/dist/esm/nv-badge_2.entry.js.map +0 -1
- package/dist/esm/nv-fieldmultiselect.entry.js +0 -1034
- package/dist/esm/nv-fieldmultiselect.entry.js.map +0 -1
- package/dist/esm/nv-iconbutton_2.entry.js.map +0 -1
- package/dist/native/p-0fbb962b.entry.js +0 -2
- package/dist/native/p-0fbb962b.entry.js.map +0 -1
- package/dist/native/p-12eaebd6.entry.js.map +0 -1
- package/dist/native/p-13070761.entry.js.map +0 -1
- package/dist/native/p-1aaee302.entry.js +0 -2
- package/dist/native/p-1aaee302.entry.js.map +0 -1
- package/dist/native/p-1c689ec7.entry.js +0 -2
- package/dist/native/p-1c689ec7.entry.js.map +0 -1
- package/dist/native/p-20c7fc4d.entry.js +0 -2
- package/dist/native/p-20c7fc4d.entry.js.map +0 -1
- package/dist/native/p-2fca31c0.entry.js +0 -2
- package/dist/native/p-305951e4.entry.js.map +0 -1
- package/dist/native/p-306d1f04.entry.js +0 -2
- package/dist/native/p-306d1f04.entry.js.map +0 -1
- package/dist/native/p-330c929d.entry.js +0 -2
- package/dist/native/p-330c929d.entry.js.map +0 -1
- package/dist/native/p-36d5158c.entry.js.map +0 -1
- package/dist/native/p-39dbb15b.entry.js +0 -2
- package/dist/native/p-39dbb15b.entry.js.map +0 -1
- package/dist/native/p-3f912745.entry.js +0 -2
- package/dist/native/p-3f912745.entry.js.map +0 -1
- package/dist/native/p-4e351d8e.entry.js +0 -2
- package/dist/native/p-4e351d8e.entry.js.map +0 -1
- package/dist/native/p-589eb477.entry.js +0 -2
- package/dist/native/p-5b4bdbe2.entry.js.map +0 -1
- package/dist/native/p-65ad60eb.entry.js.map +0 -1
- package/dist/native/p-671699bf.entry.js +0 -2
- package/dist/native/p-69ca8c88.entry.js.map +0 -1
- package/dist/native/p-7a7b9b95.entry.js +0 -2
- package/dist/native/p-7b2d8b8c.entry.js.map +0 -1
- package/dist/native/p-7b3a4cbf.entry.js.map +0 -1
- package/dist/native/p-91d30cd7.entry.js.map +0 -1
- package/dist/native/p-92e3e334.entry.js.map +0 -1
- package/dist/native/p-982e474f.entry.js +0 -2
- package/dist/native/p-a03df637.entry.js +0 -2
- package/dist/native/p-a03df637.entry.js.map +0 -1
- package/dist/native/p-a15ddd42.js +0 -2
- package/dist/native/p-a15ddd42.js.map +0 -1
- package/dist/native/p-a5582014.entry.js +0 -2
- package/dist/native/p-a5582014.entry.js.map +0 -1
- package/dist/native/p-a59ec107.entry.js +0 -2
- package/dist/native/p-a59ec107.entry.js.map +0 -1
- package/dist/native/p-a7a3c45f.entry.js +0 -2
- package/dist/native/p-a7be7540.entry.js +0 -2
- package/dist/native/p-a7be7540.entry.js.map +0 -1
- package/dist/native/p-a8c0fefa.entry.js +0 -2
- package/dist/native/p-a8c0fefa.entry.js.map +0 -1
- package/dist/native/p-b4aea326.js +0 -3
- package/dist/native/p-b4aea326.js.map +0 -1
- package/dist/native/p-c8f36510.entry.js +0 -2
- package/dist/native/p-c8f36510.entry.js.map +0 -1
- package/dist/native/p-d3d682a7.entry.js +0 -2
- package/dist/native/p-d4c0a1e0.entry.js +0 -2
- package/dist/native/p-dbade286.entry.js +0 -2
- package/dist/native/p-dbade286.entry.js.map +0 -1
- package/dist/native/p-e842220b.entry.js +0 -2
- package/dist/native/p-eeb6a3dc.js +0 -2
- package/dist/native/p-eeb6a3dc.js.map +0 -1
- package/dist/native/p-f7b96c42.entry.js +0 -2
- package/dist/types/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.d.ts +0 -52
- package/dist/types/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.d.ts +0 -4
- package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.d.ts +0 -405
- package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.d.ts +0 -4
- package/dist/types/components/nv-icon/test/nv-icon.test.d.ts +0 -1
- /package/dist/native/{p-7a7b9b95.entry.js.map → p-0f9262ed.entry.js.map} +0 -0
- /package/dist/native/{p-f7b96c42.entry.js.map → p-87b93cc2.entry.js.map} +0 -0
- /package/dist/native/{p-a7a3c45f.entry.js.map → p-907c3eda.entry.js.map} +0 -0
- /package/dist/native/{p-d4c0a1e0.entry.js.map → p-bbc45099.entry.js.map} +0 -0
- /package/dist/native/{p-d3d682a7.entry.js.map → p-f42e87b5.entry.js.map} +0 -0
|
@@ -10,6 +10,57 @@ import { v4 as uuidv4 } from "uuid";
|
|
|
10
10
|
*/
|
|
11
11
|
export class NvFieldtext {
|
|
12
12
|
constructor() {
|
|
13
|
+
//#endregion DEPRECATED
|
|
14
|
+
/****************************************************************************/
|
|
15
|
+
//#region PROPERTIES
|
|
16
|
+
/**
|
|
17
|
+
* Sets the ID for the input element and the for attribute of the associated
|
|
18
|
+
* label. If no ID is provided, a random one will be automatically generated
|
|
19
|
+
* to ensure unique identification, facilitating proper label association and
|
|
20
|
+
* accessibility.
|
|
21
|
+
*/
|
|
22
|
+
this.inputId = uuidv4();
|
|
23
|
+
/**
|
|
24
|
+
* The type prop lets you specify what kind of information the input field
|
|
25
|
+
* should accept. Choose 'text' for general words or sentences, 'tel' for
|
|
26
|
+
* phone numbers, or 'email' for email addresses. This makes sure users get
|
|
27
|
+
* the right keyboard and validation for what they need to enter.
|
|
28
|
+
*/
|
|
29
|
+
this.type = 'text';
|
|
30
|
+
/**
|
|
31
|
+
* The disabled prop lets you turn off the input field so that users can’t
|
|
32
|
+
* type in it. When disabled, the field is grayed out and won’t respond to
|
|
33
|
+
* clicks or touches.
|
|
34
|
+
*/
|
|
35
|
+
this.disabled = false;
|
|
36
|
+
/**
|
|
37
|
+
* Display the input field’s content without allowing users to change it.
|
|
38
|
+
* Users can still click on it, select, and copy the text, but they won’t be
|
|
39
|
+
* able to type or delete anything.
|
|
40
|
+
*/
|
|
41
|
+
this.readonly = false;
|
|
42
|
+
/**
|
|
43
|
+
* Marks the input field as required, ensuring that the user must fill it out
|
|
44
|
+
* before submitting the form.
|
|
45
|
+
*/
|
|
46
|
+
this.required = 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
|
+
* Changes the input field’s appearance to indicate successful input or
|
|
55
|
+
* validation.
|
|
56
|
+
*/
|
|
57
|
+
this.success = false;
|
|
58
|
+
/**
|
|
59
|
+
* When used with the email input type, this prop enables the field to accept
|
|
60
|
+
* multiple email addresses. Users can enter several addresses, separating
|
|
61
|
+
* each one with a comma, allowing the form to handle multiple recipients.
|
|
62
|
+
*/
|
|
63
|
+
this.multiple = false;
|
|
13
64
|
//#endregion EVENTS
|
|
14
65
|
/****************************************************************************/
|
|
15
66
|
//#region METHODS
|
|
@@ -29,27 +80,6 @@ export class NvFieldtext {
|
|
|
29
80
|
this.handleInputContainerClick = () => {
|
|
30
81
|
this.inputElement.focus();
|
|
31
82
|
};
|
|
32
|
-
this.message = undefined;
|
|
33
|
-
this.validation = undefined;
|
|
34
|
-
this.textInputType = undefined;
|
|
35
|
-
this.inputId = uuidv4();
|
|
36
|
-
this.label = undefined;
|
|
37
|
-
this.description = undefined;
|
|
38
|
-
this.placeholder = undefined;
|
|
39
|
-
this.name = undefined;
|
|
40
|
-
this.value = undefined;
|
|
41
|
-
this.type = 'text';
|
|
42
|
-
this.disabled = false;
|
|
43
|
-
this.readonly = false;
|
|
44
|
-
this.required = false;
|
|
45
|
-
this.error = false;
|
|
46
|
-
this.errorDescription = undefined;
|
|
47
|
-
this.success = false;
|
|
48
|
-
this.maxlength = undefined;
|
|
49
|
-
this.minlength = undefined;
|
|
50
|
-
this.pattern = undefined;
|
|
51
|
-
this.autocomplete = undefined;
|
|
52
|
-
this.multiple = false;
|
|
53
83
|
}
|
|
54
84
|
componentWillRender() {
|
|
55
85
|
if (this.textInputType) {
|
|
@@ -67,9 +97,9 @@ export class NvFieldtext {
|
|
|
67
97
|
/****************************************************************************/
|
|
68
98
|
//#region RENDER
|
|
69
99
|
render() {
|
|
70
|
-
return (h(Host, { key: '
|
|
71
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
72
|
-
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '
|
|
100
|
+
return (h(Host, { key: '515758fdb12fd8df454fb1d1113356b20fc1600b' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: 'fc24e70454352dfbf2df977f3287fba276c67cd1', htmlFor: this.inputId }, h("slot", { key: '422c1c9bd42de0a998b8fc45e000c6a30d9a49f3', name: "label" }, this.label))), h("div", { key: 'b1ad372ab559d8245ce184c6abceafa468e449f0', class: "input-wrapper" }, h("slot", { key: 'e30624a7b5db6510db337a408bc069de37bbdbea', name: "before-input" }), h("div", { key: '13657397c9ac78dc97f9b94b8fdbd46126aceb16', class: "input-container", onClick: this.handleInputContainerClick }, h("slot", { key: 'edf3ee8cc920870aa907f1bbbeaca6cc8d38219c', name: "leading-input" }), h("input", { key: 'afab7a4f2575e5e8a1e675aee9b21e90803db7a6', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, type: this.type, disabled: this.disabled, readOnly: this.readonly, required: this.required, maxlength: this.maxlength, minlength: this.minlength, pattern: this.pattern, autocomplete: this.autocomplete, multiple: this.multiple, value: this.value, onInput: this.handleInput }), this.error && (h("nv-icon", { key: '8f9746766d8ca61d34671e7957b46a256a54e726', name: "alert-circle", class: "validation", size: "sm" })), this.success && (h("nv-icon", { key: '99abc485edd96a5d772f83339d02141896e99dd9', name: "circle-check", class: "validation", size: "sm" }))), h("slot", { key: '4a0bc519345614a07968e3e7c5d25efc9ba40a02', name: "after-input" })), (this.description ||
|
|
101
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: 'd46001bfd7c7a485a9c4dcfa93beafb65dda7b5c', class: "description" }, h("slot", { key: '7580203ed856a803d5dc6d264e10c72c3714de06', name: "description" }, this.description))), (this.errorDescription ||
|
|
102
|
+
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '52ee56aa45e9876b075237f3ddb89618a34567e9', hidden: !this.error, class: "error-description" }, h("slot", { key: '8ee7a5a7cbbcce96e8a94651c140e163a0545286', name: "error-description" }, this.errorDescription)))));
|
|
73
103
|
}
|
|
74
104
|
static get is() { return "nv-fieldtext"; }
|
|
75
105
|
static get formAssociated() { return true; }
|
|
@@ -102,6 +132,8 @@ export class NvFieldtext {
|
|
|
102
132
|
}],
|
|
103
133
|
"text": "Message defines a 'hint ' message for the Text Field."
|
|
104
134
|
},
|
|
135
|
+
"getter": false,
|
|
136
|
+
"setter": false,
|
|
105
137
|
"attribute": "message",
|
|
106
138
|
"reflect": false
|
|
107
139
|
},
|
|
@@ -122,6 +154,8 @@ export class NvFieldtext {
|
|
|
122
154
|
}],
|
|
123
155
|
"text": "Add the message to the validation state."
|
|
124
156
|
},
|
|
157
|
+
"getter": false,
|
|
158
|
+
"setter": false,
|
|
125
159
|
"attribute": "validation",
|
|
126
160
|
"reflect": false
|
|
127
161
|
},
|
|
@@ -142,6 +176,8 @@ export class NvFieldtext {
|
|
|
142
176
|
}],
|
|
143
177
|
"text": "Type of the input."
|
|
144
178
|
},
|
|
179
|
+
"getter": false,
|
|
180
|
+
"setter": false,
|
|
145
181
|
"attribute": "text-input-type",
|
|
146
182
|
"reflect": false
|
|
147
183
|
},
|
|
@@ -159,6 +195,8 @@ export class NvFieldtext {
|
|
|
159
195
|
"tags": [],
|
|
160
196
|
"text": "Sets the ID for the input element and the for attribute of the associated\nlabel. If no ID is provided, a random one will be automatically generated\nto ensure unique identification, facilitating proper label association and\naccessibility."
|
|
161
197
|
},
|
|
198
|
+
"getter": false,
|
|
199
|
+
"setter": false,
|
|
162
200
|
"attribute": "input-id",
|
|
163
201
|
"reflect": true,
|
|
164
202
|
"defaultValue": "uuidv4()"
|
|
@@ -177,6 +215,8 @@ export class NvFieldtext {
|
|
|
177
215
|
"tags": [],
|
|
178
216
|
"text": "Lets you define the text that explains what users should enter in the text\ninput field. It\u2019s a crucial element for making forms clear and\nuser-friendly."
|
|
179
217
|
},
|
|
218
|
+
"getter": false,
|
|
219
|
+
"setter": false,
|
|
180
220
|
"attribute": "label",
|
|
181
221
|
"reflect": true
|
|
182
222
|
},
|
|
@@ -194,6 +234,8 @@ export class NvFieldtext {
|
|
|
194
234
|
"tags": [],
|
|
195
235
|
"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."
|
|
196
236
|
},
|
|
237
|
+
"getter": false,
|
|
238
|
+
"setter": false,
|
|
197
239
|
"attribute": "description",
|
|
198
240
|
"reflect": true
|
|
199
241
|
},
|
|
@@ -211,6 +253,8 @@ export class NvFieldtext {
|
|
|
211
253
|
"tags": [],
|
|
212
254
|
"text": "Display temporary text inside the input field to give users a hint about\nwhat to type. It\u2019s a great way to provide examples or suggestions directly\nin the field before they start typing."
|
|
213
255
|
},
|
|
256
|
+
"getter": false,
|
|
257
|
+
"setter": false,
|
|
214
258
|
"attribute": "placeholder",
|
|
215
259
|
"reflect": true
|
|
216
260
|
},
|
|
@@ -228,6 +272,8 @@ export class NvFieldtext {
|
|
|
228
272
|
"tags": [],
|
|
229
273
|
"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\u2019s data in form submissions. It should be\nunique within the form to avoid conflicts"
|
|
230
274
|
},
|
|
275
|
+
"getter": false,
|
|
276
|
+
"setter": false,
|
|
231
277
|
"attribute": "name",
|
|
232
278
|
"reflect": true
|
|
233
279
|
},
|
|
@@ -245,6 +291,8 @@ export class NvFieldtext {
|
|
|
245
291
|
"tags": [],
|
|
246
292
|
"text": "Specifies the value of the input field, which determines the text displayed\nwithin the field. This prop is typically used in controlled components\nwhere the input\u2019s value is managed by the component\u2019s state."
|
|
247
293
|
},
|
|
294
|
+
"getter": false,
|
|
295
|
+
"setter": false,
|
|
248
296
|
"attribute": "value",
|
|
249
297
|
"reflect": true
|
|
250
298
|
},
|
|
@@ -262,6 +310,8 @@ export class NvFieldtext {
|
|
|
262
310
|
"tags": [],
|
|
263
311
|
"text": "The type prop lets you specify what kind of information the input field\nshould accept. Choose 'text' for general words or sentences, 'tel' for\nphone numbers, or 'email' for email addresses. This makes sure users get\nthe right keyboard and validation for what they need to enter."
|
|
264
312
|
},
|
|
313
|
+
"getter": false,
|
|
314
|
+
"setter": false,
|
|
265
315
|
"attribute": "type",
|
|
266
316
|
"reflect": true,
|
|
267
317
|
"defaultValue": "'text'"
|
|
@@ -280,6 +330,8 @@ export class NvFieldtext {
|
|
|
280
330
|
"tags": [],
|
|
281
331
|
"text": "The disabled prop lets you turn off the input field so that users can\u2019t\ntype in it. When disabled, the field is grayed out and won\u2019t respond to\nclicks or touches."
|
|
282
332
|
},
|
|
333
|
+
"getter": false,
|
|
334
|
+
"setter": false,
|
|
283
335
|
"attribute": "disabled",
|
|
284
336
|
"reflect": true,
|
|
285
337
|
"defaultValue": "false"
|
|
@@ -298,6 +350,8 @@ export class NvFieldtext {
|
|
|
298
350
|
"tags": [],
|
|
299
351
|
"text": "Display the input field\u2019s content without allowing users to change it.\nUsers can still click on it, select, and copy the text, but they won\u2019t be\nable to type or delete anything."
|
|
300
352
|
},
|
|
353
|
+
"getter": false,
|
|
354
|
+
"setter": false,
|
|
301
355
|
"attribute": "readonly",
|
|
302
356
|
"reflect": true,
|
|
303
357
|
"defaultValue": "false"
|
|
@@ -316,6 +370,8 @@ export class NvFieldtext {
|
|
|
316
370
|
"tags": [],
|
|
317
371
|
"text": "Marks the input field as required, ensuring that the user must fill it out\nbefore submitting the form."
|
|
318
372
|
},
|
|
373
|
+
"getter": false,
|
|
374
|
+
"setter": false,
|
|
319
375
|
"attribute": "required",
|
|
320
376
|
"reflect": true,
|
|
321
377
|
"defaultValue": "false"
|
|
@@ -337,6 +393,8 @@ export class NvFieldtext {
|
|
|
337
393
|
}],
|
|
338
394
|
"text": "Alters the input field\u2019s appearance to indicate an error, helping users\nidentify fields that need correction."
|
|
339
395
|
},
|
|
396
|
+
"getter": false,
|
|
397
|
+
"setter": false,
|
|
340
398
|
"attribute": "error",
|
|
341
399
|
"reflect": true,
|
|
342
400
|
"defaultValue": "false"
|
|
@@ -358,6 +416,8 @@ export class NvFieldtext {
|
|
|
358
416
|
}],
|
|
359
417
|
"text": "A description that appears when there is an error related to the textfield\nfield."
|
|
360
418
|
},
|
|
419
|
+
"getter": false,
|
|
420
|
+
"setter": false,
|
|
361
421
|
"attribute": "error-description",
|
|
362
422
|
"reflect": true
|
|
363
423
|
},
|
|
@@ -375,6 +435,8 @@ export class NvFieldtext {
|
|
|
375
435
|
"tags": [],
|
|
376
436
|
"text": "Changes the input field\u2019s appearance to indicate successful input or\nvalidation."
|
|
377
437
|
},
|
|
438
|
+
"getter": false,
|
|
439
|
+
"setter": false,
|
|
378
440
|
"attribute": "success",
|
|
379
441
|
"reflect": true,
|
|
380
442
|
"defaultValue": "false"
|
|
@@ -393,6 +455,8 @@ export class NvFieldtext {
|
|
|
393
455
|
"tags": [],
|
|
394
456
|
"text": "Limits how many characters users can type into the input field. It\u2019s\nhelpful for making sure users don\u2019t enter too much information, keeping\ntheir input within the allowed limit."
|
|
395
457
|
},
|
|
458
|
+
"getter": false,
|
|
459
|
+
"setter": false,
|
|
396
460
|
"attribute": "maxlength",
|
|
397
461
|
"reflect": true
|
|
398
462
|
},
|
|
@@ -410,6 +474,8 @@ export class NvFieldtext {
|
|
|
410
474
|
"tags": [],
|
|
411
475
|
"text": "Ensures that users type at least a certain number of characters into the\ninput field. It\u2019s a way to make sure users provide enough information\nbefore moving on."
|
|
412
476
|
},
|
|
477
|
+
"getter": false,
|
|
478
|
+
"setter": false,
|
|
413
479
|
"attribute": "minlength",
|
|
414
480
|
"reflect": true
|
|
415
481
|
},
|
|
@@ -425,8 +491,10 @@ export class NvFieldtext {
|
|
|
425
491
|
"optional": false,
|
|
426
492
|
"docs": {
|
|
427
493
|
"tags": [],
|
|
428
|
-
"text": "Set rules for how the input should be formatted. For example, you can\nrequire that a phone number includes only digits or that an email address\nhas the correct format. If users don\u2019t follow these rules, they\u2019ll get a\nprompt to correct their input."
|
|
494
|
+
"text": "Set rules for how the input should be formatted. For example, you can\nrequire that a phone number includes only digits or that an email address\nhas the correct format. If users don\u2019t follow these rules, they\u2019ll get a\nprompt to correct their input after the form is submitted."
|
|
429
495
|
},
|
|
496
|
+
"getter": false,
|
|
497
|
+
"setter": false,
|
|
430
498
|
"attribute": "pattern",
|
|
431
499
|
"reflect": true
|
|
432
500
|
},
|
|
@@ -435,7 +503,7 @@ export class NvFieldtext {
|
|
|
435
503
|
"mutable": false,
|
|
436
504
|
"complexType": {
|
|
437
505
|
"original": "`${TextInputAutocomplete}`",
|
|
438
|
-
"resolved": "\"on\" | \"off\" | \"
|
|
506
|
+
"resolved": "\"on\" | \"off\" | \"home\" | \"section-*\" | \"shipping\" | \"billing\" | \"work\" | \"mobile\" | \"fax\" | \"pager\" | \"tel\" | \"tel-country-code\" | \"tel-national\" | \"tel-area-code\" | \"tel-local\" | \"tel-local-prefix\" | \"tel-local-suffix\" | \"tel-extension\" | \"email\" | \"impp\" | \"name\" | \"honorific-prefix\" | \"given-name\" | \"additional-name\" | \"family-name\" | \"honorific-suffix\" | \"nickname\" | \"username\" | \"new-password\" | \"current-password\" | \"one-time-code\" | \"organization-title\" | \"organization\" | \"street-address\" | \"address-line1\" | \"address-line2\" | \"address-line3\" | \"address-level4\" | \"address-level3\" | \"address-level2\" | \"address-level1\" | \"country\" | \"country-name\" | \"postal-code\" | \"cc-name\" | \"cc-given-name\" | \"cc-additional-name\" | \"cc-family-name\" | \"cc-number\" | \"cc-exp\" | \"cc-exp-month\" | \"cc-exp-year\" | \"cc-csc\" | \"cc-type\" | \"transaction-currency\" | \"transaction-amount\" | \"language\" | \"bday\" | \"bday-day\" | \"bday-month\" | \"bday-year\" | \"sex\" | \"url\" | \"photo\"",
|
|
439
507
|
"references": {
|
|
440
508
|
"TextInputAutocomplete": {
|
|
441
509
|
"location": "import",
|
|
@@ -450,6 +518,8 @@ export class NvFieldtext {
|
|
|
450
518
|
"tags": [],
|
|
451
519
|
"text": "The autocomplete prop helps users fill out the input field faster by\nsuggesting entries they\u2019ve used before, like their email or address.\nYou can turn it on to make forms more convenient or off to ensure users\nalways type in fresh data."
|
|
452
520
|
},
|
|
521
|
+
"getter": false,
|
|
522
|
+
"setter": false,
|
|
453
523
|
"attribute": "autocomplete",
|
|
454
524
|
"reflect": true
|
|
455
525
|
},
|
|
@@ -467,6 +537,8 @@ export class NvFieldtext {
|
|
|
467
537
|
"tags": [],
|
|
468
538
|
"text": "When used with the email input type, this prop enables the field to accept\nmultiple email addresses. Users can enter several addresses, separating\neach one with a comma, allowing the form to handle multiple recipients."
|
|
469
539
|
},
|
|
540
|
+
"getter": false,
|
|
541
|
+
"setter": false,
|
|
470
542
|
"attribute": "multiple",
|
|
471
543
|
"reflect": true,
|
|
472
544
|
"defaultValue": "false"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nv-fieldtext.js","sourceRoot":"","sources":["../../../src/components/nv-fieldtext/nv-fieldtext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,KAAK,EAEL,OAAO,GACR,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAIpC;;;;;;;GAOG;AAOH,MAAM,OAAO,WAAW;;QA6MtB,mBAAmB;QACnB,8EAA8E;QAC9E,iBAAiB;QAEjB;;;;WAIG;QACK,gBAAW,GAAG,CAAC,KAAY,EAAE,EAAE;YACrC,MAAM,KAAK,GAAG,KAAK,CAAC,MAA0B,CAAC;YAC/C,IAAI,CAAC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AAC,IAAI,CACxD,4DAAK,MAAM,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,EAAC,mBAAmB;gBACjD,6DAAM,IAAI,EAAC,mBAAmB,IAAE,IAAI,CAAC,gBAAgB,CAAQ,CACzD,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n Event,\n EventEmitter,\n Element,\n} from '@stencil/core';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { TextInputAutocomplete } from '../../utils/constants';\n\n/**\n * @slot leading-input - Content to be placed before the input text, within the input container.\n * @slot before-input - Content to be placed before the input text, outside the input container.\n * @slot after-input - Content to be placed after the input text, outside the input container.\n * @slot label - Content to be placed as the label, will override the label prop.\n * @slot description - Content to be placed as the description, will override the description prop.\n * @slot error-description - Content to be placed as the error description, will override the errorDescription prop.\n */\n@Component({\n tag: 'nv-fieldtext',\n shadow: false,\n formAssociated: true,\n styleUrl: 'nv-fieldtext.scss',\n})\nexport class NvFieldtext {\n @Element() el: HTMLNvFieldtextElement;\n private inputElement!: HTMLInputElement;\n\n /****************************************************************************/\n //#region DEPRECATED\n\n /**\n * Message defines a 'hint ' message for the Text Field.\n * @deprecated use description instead.\n */\n @Prop()\n readonly message: string;\n\n /**\n * Add the message to the validation state.\n * @deprecated use errorDescription and set the error prop instead.\n */\n @Prop()\n readonly validation: string;\n\n /**\n * Type of the input.\n * @deprecated use type instead.\n */\n @Prop()\n readonly textInputType: 'text' | 'tel' | 'email';\n\n componentWillRender() {\n if (this.textInputType) {\n this.type = this.textInputType;\n }\n\n if (this.message) {\n this.description = this.message;\n }\n\n if (this.validation) {\n this.errorDescription = this.validation;\n this.error = true;\n }\n }\n\n //#endregion DEPRECATED\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Sets the ID for the input element and the for attribute of the associated\n * label. If no ID is provided, a random one will be automatically generated\n * to ensure unique identification, facilitating proper label association and\n * accessibility.\n */\n @Prop({ reflect: true })\n readonly inputId: string = uuidv4();\n\n /**\n * Lets you define the text that explains what users should enter in the text\n * input field. It’s a crucial element for making forms clear and\n * user-friendly.\n */\n @Prop({ reflect: true })\n readonly label: string;\n\n /**\n * Add helpful hints or extra information under the text input field. This is\n * where you can clarify what users should enter or provide additional\n * instructions, making the form easier to fill out correctly.\n */\n @Prop({ reflect: true, mutable: true })\n description: string;\n\n /**\n * Display temporary text inside the input field to give users a hint about\n * what to type. It’s a great way to provide examples or suggestions directly\n * in the field before they start typing.\n */\n @Prop({ reflect: true })\n readonly placeholder: string;\n\n /**\n * Defines the name attribute of the input field, which is crucial for form\n * submission. This value is used as the key in the key-value pair sent to\n * the server, representing the input’s data in form submissions. It should be\n * unique within the form to avoid conflicts\n */\n @Prop({ reflect: true })\n readonly name: string;\n\n /**\n * Specifies the value of the input field, which determines the text displayed\n * within the field. This prop is typically used in controlled components\n * where the input’s value is managed by the component’s state.\n */\n @Prop({ reflect: true, mutable: true })\n value: string;\n\n /**\n * The type prop lets you specify what kind of information the input field\n * should accept. Choose 'text' for general words or sentences, 'tel' for\n * phone numbers, or 'email' for email addresses. This makes sure users get\n * the right keyboard and validation for what they need to enter.\n */\n @Prop({ reflect: true, mutable: true })\n type: 'text' | 'tel' | 'email' = 'text';\n\n /**\n * The disabled prop lets you turn off the input field so that users can’t\n * type in it. When disabled, the field is grayed out and won’t respond to\n * clicks or touches.\n */\n @Prop({ reflect: true })\n readonly disabled: boolean = false;\n\n /**\n * Display the input field’s content without allowing users to change it.\n * Users can still click on it, select, and copy the text, but they won’t be\n * able to type or delete anything.\n */\n @Prop({ reflect: true })\n readonly readonly: boolean = false;\n\n /**\n * Marks the input field as required, ensuring that the user must fill it out\n * before submitting the form.\n */\n @Prop({ reflect: true })\n readonly required: boolean = false;\n\n /**\n * Alters the input field’s appearance to indicate an error, helping users\n * identify fields that need correction.\n * @validator error\n */\n @Prop({ reflect: true, mutable: true })\n error: boolean = false;\n\n /**\n * A description that appears when there is an error related to the textfield\n * field.\n * @validator message\n */\n @Prop({ reflect: true, mutable: true })\n errorDescription: string;\n\n /**\n * Changes the input field’s appearance to indicate successful input or\n * validation.\n */\n @Prop({ reflect: true })\n readonly success: boolean = false;\n\n /**\n * Limits how many characters users can type into the input field. It’s\n * helpful for making sure users don’t enter too much information, keeping\n * their input within the allowed limit.\n */\n @Prop({ reflect: true })\n readonly maxlength: number;\n\n /**\n * Ensures that users type at least a certain number of characters into the\n * input field. It’s a way to make sure users provide enough information\n * before moving on.\n */\n @Prop({ reflect: true })\n readonly minlength: number;\n\n /**\n * Set rules for how the input should be formatted. For example, you can\n * require that a phone number includes only digits or that an email address\n * has the correct format. If users don’t follow these rules, they’ll get a\n * prompt to correct their input.\n */\n @Prop({ reflect: true })\n readonly pattern: string;\n\n /**\n * The autocomplete prop helps users fill out the input field faster by\n * suggesting entries they’ve used before, like their email or address.\n * You can turn it on to make forms more convenient or off to ensure users\n * always type in fresh data.\n */\n @Prop({ reflect: true })\n readonly autocomplete: `${TextInputAutocomplete}`;\n\n /**\n * When used with the email input type, this prop enables the field to accept\n * multiple email addresses. Users can enter several addresses, separating\n * each one with a comma, allowing the form to handle multiple recipients.\n */\n @Prop({ reflect: true })\n readonly multiple: boolean = false;\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Emitted when the input value changes.\n * @bind value\n */\n @Event()\n valueChanged: EventEmitter<string>;\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region METHODS\n\n /**\n * Handles the input event on the input element.\n * Emits the inputChanged event with the new value.\n * @param {Event} event - Event object of the input event.\n */\n private handleInput = (event: Event) => {\n const input = event.target as HTMLInputElement;\n this.value = input.value;\n this.valueChanged.emit(input.value);\n };\n\n /**\n * Handles focus when the input container is clicked.\n */\n private handleInputContainerClick = () => {\n this.inputElement.focus();\n };\n\n //#endregion METHODS\n /****************************************************************************/\n //#region RENDER\n\n render() {\n return (\n <Host>\n {(this.label || this.el.querySelector('[slot=\"label\"]')) && (\n <label htmlFor={this.inputId}>\n <slot name=\"label\">{this.label}</slot>\n </label>\n )}\n\n <div class=\"input-wrapper\">\n <slot name=\"before-input\"></slot>\n\n <div class=\"input-container\" onClick={this.handleInputContainerClick}>\n <slot name=\"leading-input\"></slot>\n\n <input\n id={this.inputId}\n ref={e => (this.inputElement = e)}\n placeholder={this.placeholder}\n name={this.name}\n type={this.type}\n disabled={this.disabled}\n readOnly={this.readonly}\n required={this.required}\n maxlength={this.maxlength}\n minlength={this.minlength}\n pattern={this.pattern}\n autocomplete={this.autocomplete}\n multiple={this.multiple}\n value={this.value}\n onInput={this.handleInput}\n />\n\n {this.error && (\n <nv-icon name=\"alert-circle\" class=\"validation\" size=\"sm\" />\n )}\n {this.success && (\n <nv-icon name=\"circle-check\" class=\"validation\" size=\"sm\" />\n )}\n </div>\n\n <slot name=\"after-input\"></slot>\n </div>\n\n {(this.description ||\n this.el.querySelector('[slot=\"description\"]')) && (\n <div class=\"description\">\n <slot name=\"description\">{this.description}</slot>\n </div>\n )}\n\n {(this.errorDescription ||\n this.el.querySelector('[slot=\"error-description\"]')) && (\n <div hidden={!this.error} class=\"error-description\">\n <slot name=\"error-description\">{this.errorDescription}</slot>\n </div>\n )}\n </Host>\n );\n }\n\n //#endregion RENDER\n}\n"]}
|
|
1
|
+
{"version":3,"file":"nv-fieldtext.js","sourceRoot":"","sources":["../../../src/components/nv-fieldtext/nv-fieldtext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,KAAK,EAEL,OAAO,GACR,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAIpC;;;;;;;GAOG;AAOH,MAAM,OAAO,WAAW;IANxB;QAiDE,uBAAuB;QACvB,8EAA8E;QAC9E,oBAAoB;QAEpB;;;;;WAKG;QAEM,YAAO,GAAW,MAAM,EAAE,CAAC;QA2CpC;;;;;WAKG;QAEH,SAAI,GAA6B,MAAM,CAAC;QAExC;;;;WAIG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAEnC;;;;WAIG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAEnC;;;WAGG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAEnC;;;;WAIG;QAEH,UAAK,GAAY,KAAK,CAAC;QAUvB;;;WAGG;QAEM,YAAO,GAAY,KAAK,CAAC;QAoClC;;;;WAIG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAanC,mBAAmB;QACnB,8EAA8E;QAC9E,iBAAiB;QAEjB;;;;WAIG;QACK,gBAAW,GAAG,CAAC,KAAY,EAAE,EAAE;YACrC,MAAM,KAAK,GAAG,KAAK,CAAC,MAA0B,CAAC;YAC/C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;YACzB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACtC,CAAC,CAAC;QAEF;;WAEG;QACK,8BAAyB,GAAG,GAAG,EAAE;YACvC,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;QAC5B,CAAC,CAAC;KAoEH;IAzQC,mBAAmB;QACj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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n Event,\n EventEmitter,\n Element,\n} from '@stencil/core';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { TextInputAutocomplete } from '../../utils/constants';\n\n/**\n * @slot leading-input - Content to be placed before the input text, within the input container.\n * @slot before-input - Content to be placed before the input text, outside the input container.\n * @slot after-input - Content to be placed after the input text, outside the input container.\n * @slot label - Content to be placed as the label, will override the label prop.\n * @slot description - Content to be placed as the description, will override the description prop.\n * @slot error-description - Content to be placed as the error description, will override the errorDescription prop.\n */\n@Component({\n tag: 'nv-fieldtext',\n shadow: false,\n formAssociated: true,\n styleUrl: 'nv-fieldtext.scss',\n})\nexport class NvFieldtext {\n @Element() el: HTMLNvFieldtextElement;\n private inputElement!: HTMLInputElement;\n\n /****************************************************************************/\n //#region DEPRECATED\n\n /**\n * Message defines a 'hint ' message for the Text Field.\n * @deprecated use description instead.\n */\n @Prop()\n readonly message: string;\n\n /**\n * Add the message to the validation state.\n * @deprecated use errorDescription and set the error prop instead.\n */\n @Prop()\n readonly validation: string;\n\n /**\n * Type of the input.\n * @deprecated use type instead.\n */\n @Prop()\n readonly textInputType: 'text' | 'tel' | 'email';\n\n componentWillRender() {\n if (this.textInputType) {\n this.type = this.textInputType;\n }\n\n if (this.message) {\n this.description = this.message;\n }\n\n if (this.validation) {\n this.errorDescription = this.validation;\n this.error = true;\n }\n }\n\n //#endregion DEPRECATED\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Sets the ID for the input element and the for attribute of the associated\n * label. If no ID is provided, a random one will be automatically generated\n * to ensure unique identification, facilitating proper label association and\n * accessibility.\n */\n @Prop({ reflect: true })\n readonly inputId: string = uuidv4();\n\n /**\n * Lets you define the text that explains what users should enter in the text\n * input field. It’s a crucial element for making forms clear and\n * user-friendly.\n */\n @Prop({ reflect: true })\n readonly label: string;\n\n /**\n * Add helpful hints or extra information under the text input field. This is\n * where you can clarify what users should enter or provide additional\n * instructions, making the form easier to fill out correctly.\n */\n @Prop({ reflect: true, mutable: true })\n description: string;\n\n /**\n * Display temporary text inside the input field to give users a hint about\n * what to type. It’s a great way to provide examples or suggestions directly\n * in the field before they start typing.\n */\n @Prop({ reflect: true })\n readonly placeholder: string;\n\n /**\n * Defines the name attribute of the input field, which is crucial for form\n * submission. This value is used as the key in the key-value pair sent to\n * the server, representing the input’s data in form submissions. It should be\n * unique within the form to avoid conflicts\n */\n @Prop({ reflect: true })\n readonly name: string;\n\n /**\n * Specifies the value of the input field, which determines the text displayed\n * within the field. This prop is typically used in controlled components\n * where the input’s value is managed by the component’s state.\n */\n @Prop({ reflect: true, mutable: true })\n value: string;\n\n /**\n * The type prop lets you specify what kind of information the input field\n * should accept. Choose 'text' for general words or sentences, 'tel' for\n * phone numbers, or 'email' for email addresses. This makes sure users get\n * the right keyboard and validation for what they need to enter.\n */\n @Prop({ reflect: true, mutable: true })\n type: 'text' | 'tel' | 'email' = 'text';\n\n /**\n * The disabled prop lets you turn off the input field so that users can’t\n * type in it. When disabled, the field is grayed out and won’t respond to\n * clicks or touches.\n */\n @Prop({ reflect: true })\n readonly disabled: boolean = false;\n\n /**\n * Display the input field’s content without allowing users to change it.\n * Users can still click on it, select, and copy the text, but they won’t be\n * able to type or delete anything.\n */\n @Prop({ reflect: true })\n readonly readonly: boolean = false;\n\n /**\n * Marks the input field as required, ensuring that the user must fill it out\n * before submitting the form.\n */\n @Prop({ reflect: true })\n readonly required: boolean = false;\n\n /**\n * Alters the input field’s appearance to indicate an error, helping users\n * identify fields that need correction.\n * @validator error\n */\n @Prop({ reflect: true, mutable: true })\n error: boolean = false;\n\n /**\n * A description that appears when there is an error related to the textfield\n * field.\n * @validator message\n */\n @Prop({ reflect: true, mutable: true })\n errorDescription: string;\n\n /**\n * Changes the input field’s appearance to indicate successful input or\n * validation.\n */\n @Prop({ reflect: true })\n readonly success: boolean = false;\n\n /**\n * Limits how many characters users can type into the input field. It’s\n * helpful for making sure users don’t enter too much information, keeping\n * their input within the allowed limit.\n */\n @Prop({ reflect: true })\n readonly maxlength: number;\n\n /**\n * Ensures that users type at least a certain number of characters into the\n * input field. It’s a way to make sure users provide enough information\n * before moving on.\n */\n @Prop({ reflect: true })\n readonly minlength: number;\n\n /**\n * Set rules for how the input should be formatted. For example, you can\n * require that a phone number includes only digits or that an email address\n * has the correct format. If users don’t follow these rules, they’ll get a\n * prompt to correct their input after the form is submitted.\n */\n @Prop({ reflect: true })\n readonly pattern: string;\n\n /**\n * The autocomplete prop helps users fill out the input field faster by\n * suggesting entries they’ve used before, like their email or address.\n * You can turn it on to make forms more convenient or off to ensure users\n * always type in fresh data.\n */\n @Prop({ reflect: true })\n readonly autocomplete: `${TextInputAutocomplete}`;\n\n /**\n * When used with the email input type, this prop enables the field to accept\n * multiple email addresses. Users can enter several addresses, separating\n * each one with a comma, allowing the form to handle multiple recipients.\n */\n @Prop({ reflect: true })\n readonly multiple: boolean = false;\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Emitted when the input value changes.\n * @bind value\n */\n @Event()\n valueChanged: EventEmitter<string>;\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region METHODS\n\n /**\n * Handles the input event on the input element.\n * Emits the inputChanged event with the new value.\n * @param {Event} event - Event object of the input event.\n */\n private handleInput = (event: Event) => {\n const input = event.target as HTMLInputElement;\n this.value = input.value;\n this.valueChanged.emit(input.value);\n };\n\n /**\n * Handles focus when the input container is clicked.\n */\n private handleInputContainerClick = () => {\n this.inputElement.focus();\n };\n\n //#endregion METHODS\n /****************************************************************************/\n //#region RENDER\n\n render() {\n return (\n <Host>\n {(this.label || this.el.querySelector('[slot=\"label\"]')) && (\n <label htmlFor={this.inputId}>\n <slot name=\"label\">{this.label}</slot>\n </label>\n )}\n\n <div class=\"input-wrapper\">\n <slot name=\"before-input\"></slot>\n\n <div class=\"input-container\" onClick={this.handleInputContainerClick}>\n <slot name=\"leading-input\"></slot>\n\n <input\n id={this.inputId}\n ref={e => (this.inputElement = e)}\n placeholder={this.placeholder}\n name={this.name}\n type={this.type}\n disabled={this.disabled}\n readOnly={this.readonly}\n required={this.required}\n maxlength={this.maxlength}\n minlength={this.minlength}\n pattern={this.pattern}\n autocomplete={this.autocomplete}\n multiple={this.multiple}\n value={this.value}\n onInput={this.handleInput}\n />\n\n {this.error && (\n <nv-icon name=\"alert-circle\" class=\"validation\" size=\"sm\" />\n )}\n {this.success && (\n <nv-icon name=\"circle-check\" class=\"validation\" size=\"sm\" />\n )}\n </div>\n\n <slot name=\"after-input\"></slot>\n </div>\n\n {(this.description ||\n this.el.querySelector('[slot=\"description\"]')) && (\n <div class=\"description\">\n <slot name=\"description\">{this.description}</slot>\n </div>\n )}\n\n {(this.errorDescription ||\n this.el.querySelector('[slot=\"error-description\"]')) && (\n <div hidden={!this.error} class=\"error-description\">\n <slot name=\"error-description\">{this.errorDescription}</slot>\n </div>\n )}\n </Host>\n );\n }\n\n //#endregion RENDER\n}\n"]}
|