@nova-design-system/nova-webcomponents 3.0.0-beta.17
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/LICENSE.MD +157 -0
- package/dist/blazor-docs.json +9342 -0
- package/dist/cjs/app-globals-2ceecab2.js +11 -0
- package/dist/cjs/app-globals-2ceecab2.js.map +1 -0
- package/dist/cjs/clsx-fc789adc.js +7 -0
- package/dist/cjs/clsx-fc789adc.js.map +1 -0
- package/dist/cjs/constants-33057c89.js +140 -0
- package/dist/cjs/constants-33057c89.js.map +1 -0
- package/dist/cjs/fade.animation-0d33d198.js +1875 -0
- package/dist/cjs/fade.animation-0d33d198.js.map +1 -0
- package/dist/cjs/grow.animation-46e7ae4b.js +119 -0
- package/dist/cjs/grow.animation-46e7ae4b.js.map +1 -0
- package/dist/cjs/index-5d1f2412.js +1984 -0
- package/dist/cjs/index-5d1f2412.js.map +1 -0
- package/dist/cjs/index.cjs.js +494 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/native.cjs.js +48 -0
- package/dist/cjs/native.cjs.js.map +1 -0
- package/dist/cjs/nv-alert.cjs.entry.js +140 -0
- package/dist/cjs/nv-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-avatar.cjs.entry.js +73 -0
- package/dist/cjs/nv-avatar.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-badge.cjs.entry.js +119 -0
- package/dist/cjs/nv-badge.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-base.cjs.entry.js +75 -0
- package/dist/cjs/nv-base.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-button.cjs.entry.js +91 -0
- package/dist/cjs/nv-button.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-col.cjs.entry.js +41 -0
- package/dist/cjs/nv-col.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +94 -0
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +94 -0
- package/dist/cjs/nv-fieldnumber.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +79 -0
- package/dist/cjs/nv-fieldpassword.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldradio.cjs.entry.js +81 -0
- package/dist/cjs/nv-fieldradio.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldselect.cjs.entry.js +290 -0
- package/dist/cjs/nv-fieldselect.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldtext.cjs.entry.js +83 -0
- package/dist/cjs/nv-fieldtext.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +151 -0
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldtoggle.cjs.entry.js +64 -0
- package/dist/cjs/nv-fieldtoggle.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-icon.cjs.entry.js +66 -0
- package/dist/cjs/nv-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-iconbutton.cjs.entry.js +92 -0
- package/dist/cjs/nv-iconbutton.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-loader.cjs.entry.js +29 -0
- package/dist/cjs/nv-loader.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-menu.cjs.entry.js +189 -0
- package/dist/cjs/nv-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-menuitem.cjs.entry.js +30 -0
- package/dist/cjs/nv-menuitem.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-popover.cjs.entry.js +2327 -0
- package/dist/cjs/nv-popover.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-row.cjs.entry.js +24 -0
- package/dist/cjs/nv-row.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-stack.cjs.entry.js +31 -0
- package/dist/cjs/nv-stack.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-tooltip.cjs.entry.js +37 -0
- package/dist/cjs/nv-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/timeline.animation-dbb9c5ea.js +107 -0
- package/dist/cjs/timeline.animation-dbb9c5ea.js.map +1 -0
- package/dist/cjs/v4-7014b8b0.js +67 -0
- package/dist/cjs/v4-7014b8b0.js.map +1 -0
- package/dist/collection/animations/collapse.animation.js +82 -0
- package/dist/collection/animations/collapse.animation.js.map +1 -0
- package/dist/collection/animations/fade.animation.js +66 -0
- package/dist/collection/animations/fade.animation.js.map +1 -0
- package/dist/collection/animations/grow.animation.js +87 -0
- package/dist/collection/animations/grow.animation.js.map +1 -0
- package/dist/collection/animations/index.js +5 -0
- package/dist/collection/animations/index.js.map +1 -0
- package/dist/collection/animations/timeline.animation.js +21 -0
- package/dist/collection/animations/timeline.animation.js.map +1 -0
- package/dist/collection/collection-manifest.json +35 -0
- package/dist/collection/components/nv-alert/nv-alert.css +113 -0
- package/dist/collection/components/nv-alert/nv-alert.docs.js +61 -0
- package/dist/collection/components/nv-alert/nv-alert.docs.js.map +1 -0
- package/dist/collection/components/nv-alert/nv-alert.js +355 -0
- package/dist/collection/components/nv-alert/nv-alert.js.map +1 -0
- package/dist/collection/components/nv-avatar/nv-avatar.css +154 -0
- package/dist/collection/components/nv-avatar/nv-avatar.docs.js +42 -0
- package/dist/collection/components/nv-avatar/nv-avatar.docs.js.map +1 -0
- package/dist/collection/components/nv-avatar/nv-avatar.js +311 -0
- package/dist/collection/components/nv-avatar/nv-avatar.js.map +1 -0
- package/dist/collection/components/nv-badge/nv-badge.css +174 -0
- package/dist/collection/components/nv-badge/nv-badge.docs.js +72 -0
- package/dist/collection/components/nv-badge/nv-badge.docs.js.map +1 -0
- package/dist/collection/components/nv-badge/nv-badge.js +354 -0
- package/dist/collection/components/nv-badge/nv-badge.js.map +1 -0
- package/dist/collection/components/nv-base/nv-base.docs.js +5 -0
- package/dist/collection/components/nv-base/nv-base.docs.js.map +1 -0
- package/dist/collection/components/nv-base/nv-base.js +69 -0
- package/dist/collection/components/nv-base/nv-base.js.map +1 -0
- package/dist/collection/components/nv-button/nv-button.css +259 -0
- package/dist/collection/components/nv-button/nv-button.docs.js +56 -0
- package/dist/collection/components/nv-button/nv-button.docs.js.map +1 -0
- package/dist/collection/components/nv-button/nv-button.js +241 -0
- package/dist/collection/components/nv-button/nv-button.js.map +1 -0
- package/dist/collection/components/nv-col/nv-col.css +45 -0
- package/dist/collection/components/nv-col/nv-col.docs.js +18 -0
- package/dist/collection/components/nv-col/nv-col.docs.js.map +1 -0
- package/dist/collection/components/nv-col/nv-col.js +63 -0
- package/dist/collection/components/nv-col/nv-col.js.map +1 -0
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.css +136 -0
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.docs.js +231 -0
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js +448 -0
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js.map +1 -0
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.css +183 -0
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js +180 -0
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +435 -0
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js.map +1 -0
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.css +149 -0
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.docs.js +189 -0
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +465 -0
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js.map +1 -0
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.css +133 -0
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.docs.js +121 -0
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +347 -0
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js.map +1 -0
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.css +197 -0
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js +157 -0
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +610 -0
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js.map +1 -0
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.css +141 -0
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js +206 -0
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +499 -0
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js.map +1 -0
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.css +141 -0
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.docs.js +175 -0
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +527 -0
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js.map +1 -0
- package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.css +114 -0
- package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.docs.js +65 -0
- package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.js +283 -0
- package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.js.map +1 -0
- package/dist/collection/components/nv-icon/nv-icon.css +32 -0
- package/dist/collection/components/nv-icon/nv-icon.docs.js +31 -0
- package/dist/collection/components/nv-icon/nv-icon.docs.js.map +1 -0
- package/dist/collection/components/nv-icon/nv-icon.js +245 -0
- package/dist/collection/components/nv-icon/nv-icon.js.map +1 -0
- package/dist/collection/components/nv-icon/nv-icons.js +450 -0
- package/dist/collection/components/nv-icon/nv-icons.js.map +1 -0
- package/dist/collection/components/nv-icon/test/nv-icon.test.js +25 -0
- package/dist/collection/components/nv-icon/test/nv-icon.test.js.map +1 -0
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.css +152 -0
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.docs.js +61 -0
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.docs.js.map +1 -0
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +263 -0
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js.map +1 -0
- package/dist/collection/components/nv-loader/nv-loader.css +162 -0
- package/dist/collection/components/nv-loader/nv-loader.docs.js +27 -0
- package/dist/collection/components/nv-loader/nv-loader.docs.js.map +1 -0
- package/dist/collection/components/nv-loader/nv-loader.js +78 -0
- package/dist/collection/components/nv-loader/nv-loader.js.map +1 -0
- package/dist/collection/components/nv-menu/nv-menu.css +61 -0
- package/dist/collection/components/nv-menu/nv-menu.docs.js +40 -0
- package/dist/collection/components/nv-menu/nv-menu.docs.js.map +1 -0
- package/dist/collection/components/nv-menu/nv-menu.js +355 -0
- package/dist/collection/components/nv-menu/nv-menu.js.map +1 -0
- package/dist/collection/components/nv-menuitem/nv-menuitem.css +29 -0
- package/dist/collection/components/nv-menuitem/nv-menuitem.docs.js +6 -0
- package/dist/collection/components/nv-menuitem/nv-menuitem.docs.js.map +1 -0
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +111 -0
- package/dist/collection/components/nv-menuitem/nv-menuitem.js.map +1 -0
- package/dist/collection/components/nv-popover/nv-popover.css +42 -0
- package/dist/collection/components/nv-popover/nv-popover.docs.js +74 -0
- package/dist/collection/components/nv-popover/nv-popover.docs.js.map +1 -0
- package/dist/collection/components/nv-popover/nv-popover.js +587 -0
- package/dist/collection/components/nv-popover/nv-popover.js.map +1 -0
- package/dist/collection/components/nv-row/nv-row.css +7 -0
- package/dist/collection/components/nv-row/nv-row.docs.js +13 -0
- package/dist/collection/components/nv-row/nv-row.docs.js.map +1 -0
- package/dist/collection/components/nv-row/nv-row.js +23 -0
- package/dist/collection/components/nv-row/nv-row.js.map +1 -0
- package/dist/collection/components/nv-stack/nv-stack.css +61 -0
- package/dist/collection/components/nv-stack/nv-stack.docs.js +39 -0
- package/dist/collection/components/nv-stack/nv-stack.docs.js.map +1 -0
- package/dist/collection/components/nv-stack/nv-stack.js +123 -0
- package/dist/collection/components/nv-stack/nv-stack.js.map +1 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.css +22 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.docs.js +38 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.docs.js.map +1 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +102 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.js.map +1 -0
- package/dist/collection/dev/dev-components.js +3 -0
- package/dist/collection/dev/dev-components.js.map +1 -0
- package/dist/collection/dev/dev-forms.js +3 -0
- package/dist/collection/dev/dev-forms.js.map +1 -0
- package/dist/collection/dev/dev-root.js +23 -0
- package/dist/collection/dev/dev-root.js.map +1 -0
- package/dist/collection/dev/dev-utils.js +54 -0
- package/dist/collection/dev/dev-utils.js.map +1 -0
- package/dist/collection/fonts/TT_Norms_Pro_Bold.woff2 +0 -0
- package/dist/collection/fonts/TT_Norms_Pro_Medium.woff2 +0 -0
- package/dist/collection/fonts/TT_Norms_Pro_Mono_Bold.woff2 +0 -0
- package/dist/collection/fonts/TT_Norms_Pro_Mono_Medium.woff2 +0 -0
- package/dist/collection/fonts/TT_Norms_Pro_Mono_Regular.woff2 +0 -0
- package/dist/collection/fonts/TT_Norms_Pro_Regular.woff2 +0 -0
- package/dist/collection/global.js +6 -0
- package/dist/collection/global.js.map +1 -0
- package/dist/collection/index.js +10 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utils/class.utils.js +15 -0
- package/dist/collection/utils/class.utils.js.map +1 -0
- package/dist/collection/utils/constants.js +122 -0
- package/dist/collection/utils/constants.js.map +1 -0
- package/dist/collection/utils/events.utils.js +19 -0
- package/dist/collection/utils/events.utils.js.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +488 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/nv-alert.d.ts +11 -0
- package/dist/components/nv-alert.js +171 -0
- package/dist/components/nv-alert.js.map +1 -0
- package/dist/components/nv-avatar.d.ts +11 -0
- package/dist/components/nv-avatar.js +106 -0
- package/dist/components/nv-avatar.js.map +1 -0
- package/dist/components/nv-badge.d.ts +11 -0
- package/dist/components/nv-badge.js +154 -0
- package/dist/components/nv-badge.js.map +1 -0
- package/dist/components/nv-base.d.ts +11 -0
- package/dist/components/nv-base.js +89 -0
- package/dist/components/nv-base.js.map +1 -0
- package/dist/components/nv-button.d.ts +11 -0
- package/dist/components/nv-button.js +116 -0
- package/dist/components/nv-button.js.map +1 -0
- package/dist/components/nv-col.d.ts +11 -0
- package/dist/components/nv-col.js +57 -0
- package/dist/components/nv-col.js.map +1 -0
- package/dist/components/nv-fieldcheckbox.d.ts +11 -0
- package/dist/components/nv-fieldcheckbox.js +128 -0
- package/dist/components/nv-fieldcheckbox.js.map +1 -0
- package/dist/components/nv-fieldnumber.d.ts +11 -0
- package/dist/components/nv-fieldnumber.js +134 -0
- package/dist/components/nv-fieldnumber.js.map +1 -0
- package/dist/components/nv-fieldpassword.d.ts +11 -0
- package/dist/components/nv-fieldpassword.js +134 -0
- package/dist/components/nv-fieldpassword.js.map +1 -0
- package/dist/components/nv-fieldradio.d.ts +11 -0
- package/dist/components/nv-fieldradio.js +110 -0
- package/dist/components/nv-fieldradio.js.map +1 -0
- package/dist/components/nv-fieldselect.d.ts +11 -0
- package/dist/components/nv-fieldselect.js +332 -0
- package/dist/components/nv-fieldselect.js.map +1 -0
- package/dist/components/nv-fieldtext.d.ts +11 -0
- package/dist/components/nv-fieldtext.js +125 -0
- package/dist/components/nv-fieldtext.js.map +1 -0
- package/dist/components/nv-fieldtextarea.d.ts +11 -0
- package/dist/components/nv-fieldtextarea.js +188 -0
- package/dist/components/nv-fieldtextarea.js.map +1 -0
- package/dist/components/nv-fieldtoggle.d.ts +11 -0
- package/dist/components/nv-fieldtoggle.js +91 -0
- package/dist/components/nv-fieldtoggle.js.map +1 -0
- package/dist/components/nv-icon.d.ts +11 -0
- package/dist/components/nv-icon.js +8 -0
- package/dist/components/nv-icon.js.map +1 -0
- package/dist/components/nv-iconbutton.d.ts +11 -0
- package/dist/components/nv-iconbutton.js +8 -0
- package/dist/components/nv-iconbutton.js.map +1 -0
- package/dist/components/nv-loader.d.ts +11 -0
- package/dist/components/nv-loader.js +8 -0
- package/dist/components/nv-loader.js.map +1 -0
- package/dist/components/nv-menu.d.ts +11 -0
- package/dist/components/nv-menu.js +216 -0
- package/dist/components/nv-menu.js.map +1 -0
- package/dist/components/nv-menuitem.d.ts +11 -0
- package/dist/components/nv-menuitem.js +55 -0
- package/dist/components/nv-menuitem.js.map +1 -0
- package/dist/components/nv-popover.d.ts +11 -0
- package/dist/components/nv-popover.js +8 -0
- package/dist/components/nv-popover.js.map +1 -0
- package/dist/components/nv-row.d.ts +11 -0
- package/dist/components/nv-row.js +38 -0
- package/dist/components/nv-row.js.map +1 -0
- package/dist/components/nv-stack.d.ts +11 -0
- package/dist/components/nv-stack.js +51 -0
- package/dist/components/nv-stack.js.map +1 -0
- package/dist/components/nv-tooltip.d.ts +11 -0
- package/dist/components/nv-tooltip.js +61 -0
- package/dist/components/nv-tooltip.js.map +1 -0
- package/dist/components/p-1daca48a.js +1871 -0
- package/dist/components/p-1daca48a.js.map +1 -0
- package/dist/components/p-42301d8f.js +104 -0
- package/dist/components/p-42301d8f.js.map +1 -0
- package/dist/components/p-50bd2808.js +1198 -0
- package/dist/components/p-50bd2808.js.map +1 -0
- package/dist/components/p-6146d4b0.js +87 -0
- package/dist/components/p-6146d4b0.js.map +1 -0
- package/dist/components/p-632bedb8.js +1730 -0
- package/dist/components/p-632bedb8.js.map +1 -0
- package/dist/components/p-8a1a6e56.js +5 -0
- package/dist/components/p-8a1a6e56.js.map +1 -0
- package/dist/components/p-8da6d9a3.js +43 -0
- package/dist/components/p-8da6d9a3.js.map +1 -0
- package/dist/components/p-a15ddd42.js +138 -0
- package/dist/components/p-a15ddd42.js.map +1 -0
- package/dist/components/p-be79e7bc.js +121 -0
- package/dist/components/p-be79e7bc.js.map +1 -0
- package/dist/components/p-c711fe67.js +2355 -0
- package/dist/components/p-c711fe67.js.map +1 -0
- package/dist/components/p-f5ff676c.js +65 -0
- package/dist/components/p-f5ff676c.js.map +1 -0
- package/dist/docs.d.ts +435 -0
- package/dist/docs.json +9249 -0
- package/dist/esm/app-globals-df0a3c8d.js +9 -0
- package/dist/esm/app-globals-df0a3c8d.js.map +1 -0
- package/dist/esm/clsx-297c1ffe.js +5 -0
- package/dist/esm/clsx-297c1ffe.js.map +1 -0
- package/dist/esm/constants-e9bee611.js +138 -0
- package/dist/esm/constants-e9bee611.js.map +1 -0
- package/dist/esm/fade.animation-2a077983.js +1871 -0
- package/dist/esm/fade.animation-2a077983.js.map +1 -0
- package/dist/esm/grow.animation-88a8ee8f.js +114 -0
- package/dist/esm/grow.animation-88a8ee8f.js.map +1 -0
- package/dist/esm/index-179dfba2.js +1952 -0
- package/dist/esm/index-179dfba2.js.map +1 -0
- package/dist/esm/index.js +487 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/native.js +43 -0
- package/dist/esm/native.js.map +1 -0
- package/dist/esm/nv-alert.entry.js +136 -0
- package/dist/esm/nv-alert.entry.js.map +1 -0
- package/dist/esm/nv-avatar.entry.js +69 -0
- package/dist/esm/nv-avatar.entry.js.map +1 -0
- package/dist/esm/nv-badge.entry.js +115 -0
- package/dist/esm/nv-badge.entry.js.map +1 -0
- package/dist/esm/nv-base.entry.js +71 -0
- package/dist/esm/nv-base.entry.js.map +1 -0
- package/dist/esm/nv-button.entry.js +87 -0
- package/dist/esm/nv-button.entry.js.map +1 -0
- package/dist/esm/nv-col.entry.js +37 -0
- package/dist/esm/nv-col.entry.js.map +1 -0
- package/dist/esm/nv-fieldcheckbox.entry.js +90 -0
- package/dist/esm/nv-fieldcheckbox.entry.js.map +1 -0
- package/dist/esm/nv-fieldnumber.entry.js +90 -0
- package/dist/esm/nv-fieldnumber.entry.js.map +1 -0
- package/dist/esm/nv-fieldpassword.entry.js +75 -0
- package/dist/esm/nv-fieldpassword.entry.js.map +1 -0
- package/dist/esm/nv-fieldradio.entry.js +77 -0
- package/dist/esm/nv-fieldradio.entry.js.map +1 -0
- package/dist/esm/nv-fieldselect.entry.js +286 -0
- package/dist/esm/nv-fieldselect.entry.js.map +1 -0
- package/dist/esm/nv-fieldtext.entry.js +79 -0
- package/dist/esm/nv-fieldtext.entry.js.map +1 -0
- package/dist/esm/nv-fieldtextarea.entry.js +147 -0
- package/dist/esm/nv-fieldtextarea.entry.js.map +1 -0
- package/dist/esm/nv-fieldtoggle.entry.js +60 -0
- package/dist/esm/nv-fieldtoggle.entry.js.map +1 -0
- package/dist/esm/nv-icon.entry.js +62 -0
- package/dist/esm/nv-icon.entry.js.map +1 -0
- package/dist/esm/nv-iconbutton.entry.js +88 -0
- package/dist/esm/nv-iconbutton.entry.js.map +1 -0
- package/dist/esm/nv-loader.entry.js +25 -0
- package/dist/esm/nv-loader.entry.js.map +1 -0
- package/dist/esm/nv-menu.entry.js +185 -0
- package/dist/esm/nv-menu.entry.js.map +1 -0
- package/dist/esm/nv-menuitem.entry.js +26 -0
- package/dist/esm/nv-menuitem.entry.js.map +1 -0
- package/dist/esm/nv-popover.entry.js +2323 -0
- package/dist/esm/nv-popover.entry.js.map +1 -0
- package/dist/esm/nv-row.entry.js +20 -0
- package/dist/esm/nv-row.entry.js.map +1 -0
- package/dist/esm/nv-stack.entry.js +27 -0
- package/dist/esm/nv-stack.entry.js.map +1 -0
- package/dist/esm/nv-tooltip.entry.js +33 -0
- package/dist/esm/nv-tooltip.entry.js.map +1 -0
- package/dist/esm/timeline.animation-1b88f052.js +104 -0
- package/dist/esm/timeline.animation-1b88f052.js.map +1 -0
- package/dist/esm/v4-a79185f4.js +65 -0
- package/dist/esm/v4-a79185f4.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/native/fonts/TT_Norms_Pro_Bold.woff2 +0 -0
- package/dist/native/fonts/TT_Norms_Pro_Medium.woff2 +0 -0
- package/dist/native/fonts/TT_Norms_Pro_Mono_Bold.woff2 +0 -0
- package/dist/native/fonts/TT_Norms_Pro_Mono_Medium.woff2 +0 -0
- package/dist/native/fonts/TT_Norms_Pro_Mono_Regular.woff2 +0 -0
- package/dist/native/fonts/TT_Norms_Pro_Regular.woff2 +0 -0
- package/dist/native/index.esm.js +2 -0
- package/dist/native/index.esm.js.map +1 -0
- package/dist/native/native.css +1 -0
- package/dist/native/native.esm.js +2 -0
- package/dist/native/native.esm.js.map +1 -0
- package/dist/native/p-06f64d05.entry.js +2 -0
- package/dist/native/p-06f64d05.entry.js.map +1 -0
- package/dist/native/p-0aa0193b.entry.js +2 -0
- package/dist/native/p-0aa0193b.entry.js.map +1 -0
- package/dist/native/p-124a7067.entry.js +2 -0
- package/dist/native/p-124a7067.entry.js.map +1 -0
- package/dist/native/p-13d0ab5b.entry.js +2 -0
- package/dist/native/p-13d0ab5b.entry.js.map +1 -0
- package/dist/native/p-14c08510.entry.js +2 -0
- package/dist/native/p-14c08510.entry.js.map +1 -0
- package/dist/native/p-1ceee367.entry.js +2 -0
- package/dist/native/p-1ceee367.entry.js.map +1 -0
- package/dist/native/p-1daca48a.js +16 -0
- package/dist/native/p-1daca48a.js.map +1 -0
- package/dist/native/p-29d482cd.entry.js +2 -0
- package/dist/native/p-29d482cd.entry.js.map +1 -0
- package/dist/native/p-42301d8f.js +2 -0
- package/dist/native/p-42301d8f.js.map +1 -0
- package/dist/native/p-43cd42ca.entry.js +2 -0
- package/dist/native/p-43cd42ca.entry.js.map +1 -0
- package/dist/native/p-519e0f59.entry.js +2 -0
- package/dist/native/p-519e0f59.entry.js.map +1 -0
- package/dist/native/p-617d6a09.entry.js +2 -0
- package/dist/native/p-617d6a09.entry.js.map +1 -0
- package/dist/native/p-6f762ec2.entry.js +2 -0
- package/dist/native/p-6f762ec2.entry.js.map +1 -0
- package/dist/native/p-71d6aad8.entry.js +2 -0
- package/dist/native/p-71d6aad8.entry.js.map +1 -0
- package/dist/native/p-7ce1b712.entry.js +2 -0
- package/dist/native/p-7ce1b712.entry.js.map +1 -0
- package/dist/native/p-80788ddf.js +2 -0
- package/dist/native/p-80788ddf.js.map +1 -0
- package/dist/native/p-830ec54a.entry.js +2 -0
- package/dist/native/p-830ec54a.entry.js.map +1 -0
- package/dist/native/p-89accab1.entry.js +2 -0
- package/dist/native/p-89accab1.entry.js.map +1 -0
- package/dist/native/p-8a1a6e56.js +2 -0
- package/dist/native/p-8a1a6e56.js.map +1 -0
- package/dist/native/p-8b65b16f.entry.js +2 -0
- package/dist/native/p-8b65b16f.entry.js.map +1 -0
- package/dist/native/p-a15ddd42.js +2 -0
- package/dist/native/p-a15ddd42.js.map +1 -0
- package/dist/native/p-a37c2ac2.js +2 -0
- package/dist/native/p-a37c2ac2.js.map +1 -0
- package/dist/native/p-b5e4a9e7.entry.js +2 -0
- package/dist/native/p-b5e4a9e7.entry.js.map +1 -0
- package/dist/native/p-b8eb4c31.entry.js +2 -0
- package/dist/native/p-b8eb4c31.entry.js.map +1 -0
- package/dist/native/p-b99aa075.entry.js +2 -0
- package/dist/native/p-b99aa075.entry.js.map +1 -0
- package/dist/native/p-d5a8b6c4.entry.js +2 -0
- package/dist/native/p-d5a8b6c4.entry.js.map +1 -0
- package/dist/native/p-db2a68f3.js +3 -0
- package/dist/native/p-db2a68f3.js.map +1 -0
- package/dist/native/p-f5acea50.entry.js +2 -0
- package/dist/native/p-f5acea50.entry.js.map +1 -0
- package/dist/native/p-f5ff676c.js +2 -0
- package/dist/native/p-f5ff676c.js.map +1 -0
- package/dist/native/p-f9aac71a.entry.js +2 -0
- package/dist/native/p-f9aac71a.entry.js.map +1 -0
- package/dist/native/p-fb6f42b7.entry.js +2 -0
- package/dist/native/p-fb6f42b7.entry.js.map +1 -0
- package/dist/types/animations/collapse.animation.d.ts +11 -0
- package/dist/types/animations/fade.animation.d.ts +11 -0
- package/dist/types/animations/grow.animation.d.ts +15 -0
- package/dist/types/animations/index.d.ts +4 -0
- package/dist/types/animations/timeline.animation.d.ts +18 -0
- package/dist/types/components/nv-alert/nv-alert.d.ts +85 -0
- package/dist/types/components/nv-alert/nv-alert.docs.d.ts +4 -0
- package/dist/types/components/nv-avatar/nv-avatar.d.ts +75 -0
- package/dist/types/components/nv-avatar/nv-avatar.docs.d.ts +4 -0
- package/dist/types/components/nv-badge/nv-badge.d.ts +93 -0
- package/dist/types/components/nv-badge/nv-badge.docs.d.ts +4 -0
- package/dist/types/components/nv-base/nv-base.d.ts +17 -0
- package/dist/types/components/nv-base/nv-base.docs.d.ts +5 -0
- package/dist/types/components/nv-button/nv-button.d.ts +63 -0
- package/dist/types/components/nv-button/nv-button.docs.d.ts +4 -0
- package/dist/types/components/nv-col/nv-col.d.ts +18 -0
- package/dist/types/components/nv-col/nv-col.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldcheckbox/nv-fieldcheckbox.d.ts +119 -0
- package/dist/types/components/nv-fieldcheckbox/nv-fieldcheckbox.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldnumber/nv-fieldnumber.d.ts +132 -0
- package/dist/types/components/nv-fieldnumber/nv-fieldnumber.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldpassword/nv-fieldpassword.d.ts +145 -0
- package/dist/types/components/nv-fieldpassword/nv-fieldpassword.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldradio/nv-fieldradio.d.ts +101 -0
- package/dist/types/components/nv-fieldradio/nv-fieldradio.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldselect/nv-fieldselect.d.ts +195 -0
- package/dist/types/components/nv-fieldselect/nv-fieldselect.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldtext/nv-fieldtext.d.ts +162 -0
- package/dist/types/components/nv-fieldtext/nv-fieldtext.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldtextarea/nv-fieldtextarea.d.ts +161 -0
- package/dist/types/components/nv-fieldtextarea/nv-fieldtextarea.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldtoggle/nv-fieldtoggle.d.ts +73 -0
- package/dist/types/components/nv-fieldtoggle/nv-fieldtoggle.docs.d.ts +4 -0
- package/dist/types/components/nv-icon/nv-icon.d.ts +51 -0
- package/dist/types/components/nv-icon/nv-icon.docs.d.ts +4 -0
- package/dist/types/components/nv-icon/nv-icons.d.ts +3 -0
- package/dist/types/components/nv-icon/test/nv-icon.test.d.ts +1 -0
- package/dist/types/components/nv-iconbutton/nv-iconbutton.d.ts +70 -0
- package/dist/types/components/nv-iconbutton/nv-iconbutton.docs.d.ts +4 -0
- package/dist/types/components/nv-loader/nv-loader.d.ts +18 -0
- package/dist/types/components/nv-loader/nv-loader.docs.d.ts +4 -0
- package/dist/types/components/nv-menu/nv-menu.d.ts +60 -0
- package/dist/types/components/nv-menu/nv-menu.docs.d.ts +4 -0
- package/dist/types/components/nv-menuitem/nv-menuitem.d.ts +31 -0
- package/dist/types/components/nv-menuitem/nv-menuitem.docs.d.ts +4 -0
- package/dist/types/components/nv-popover/nv-popover.d.ts +114 -0
- package/dist/types/components/nv-popover/nv-popover.docs.d.ts +4 -0
- package/dist/types/components/nv-row/nv-row.d.ts +7 -0
- package/dist/types/components/nv-row/nv-row.docs.d.ts +4 -0
- package/dist/types/components/nv-stack/nv-stack.d.ts +36 -0
- package/dist/types/components/nv-stack/nv-stack.docs.d.ts +4 -0
- package/dist/types/components/nv-tooltip/nv-tooltip.d.ts +32 -0
- package/dist/types/components/nv-tooltip/nv-tooltip.docs.d.ts +4 -0
- package/dist/types/components.d.ts +2412 -0
- package/dist/types/dev/dev-components.d.ts +2 -0
- package/dist/types/dev/dev-forms.d.ts +2 -0
- package/dist/types/dev/dev-root.d.ts +1 -0
- package/dist/types/dev/dev-utils.d.ts +17 -0
- package/dist/types/global.d.ts +1 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/nova-docs.d.ts +32 -0
- package/dist/types/stencil-public-runtime.d.ts +1678 -0
- package/dist/types/utils/class.utils.d.ts +6 -0
- package/dist/types/utils/constants.d.ts +112 -0
- package/dist/types/utils/events.utils.d.ts +15 -0
- package/dist/vscode-data.json +3179 -0
- package/hydrate/index.d.ts +242 -0
- package/hydrate/index.js +24827 -0
- package/hydrate/index.mjs +24819 -0
- package/hydrate/package.json +12 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +197 -0
- package/readme.md +67 -0
|
@@ -0,0 +1,2412 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { ButtonEmphasis, ButtonSize, ButtonType, DeprecatedSemanticColors, FeedbackColors, FieldLabelPlacement, LoaderColors, SemanticSizes, TextInputAutocomplete } from "./utils/constants";
|
|
9
|
+
import { IconName } from "./components/nv-icon/nv-icons";
|
|
10
|
+
import { Placement } from "@floating-ui/dom";
|
|
11
|
+
import { MenuitemSelectedEventDetail } from "./components/nv-menuitem/nv-menuitem";
|
|
12
|
+
import { Element } from "./stencil-public-runtime";
|
|
13
|
+
export { ButtonEmphasis, ButtonSize, ButtonType, DeprecatedSemanticColors, FeedbackColors, FieldLabelPlacement, LoaderColors, SemanticSizes, TextInputAutocomplete } from "./utils/constants";
|
|
14
|
+
export { IconName } from "./components/nv-icon/nv-icons";
|
|
15
|
+
export { Placement } from "@floating-ui/dom";
|
|
16
|
+
export { MenuitemSelectedEventDetail } from "./components/nv-menuitem/nv-menuitem";
|
|
17
|
+
export { Element } from "./stencil-public-runtime";
|
|
18
|
+
export namespace Components {
|
|
19
|
+
interface NvAlert {
|
|
20
|
+
/**
|
|
21
|
+
* Defines color of the alert.
|
|
22
|
+
* @deprecated use feedback instead.
|
|
23
|
+
*/
|
|
24
|
+
"color": `${DeprecatedSemanticColors}`;
|
|
25
|
+
/**
|
|
26
|
+
* Allows the alert to be dismissed via a close button (x). The alert is not dismissible unless explicitly enabled.
|
|
27
|
+
*/
|
|
28
|
+
"dismissible": boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the alert type which determines the color and default icon.
|
|
31
|
+
*/
|
|
32
|
+
"feedback": `${FeedbackColors}`;
|
|
33
|
+
/**
|
|
34
|
+
* Short and concise text for the alert title.
|
|
35
|
+
*/
|
|
36
|
+
"heading": string;
|
|
37
|
+
/**
|
|
38
|
+
* Controls the visibility of the alert. Will animate with fade and collapse.
|
|
39
|
+
*/
|
|
40
|
+
"hidden": boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Icon associated with the alert, defaults vary based on the feedback type.
|
|
43
|
+
*/
|
|
44
|
+
"icon": string;
|
|
45
|
+
/**
|
|
46
|
+
* Main content of the alert. For more complex content, use the default slot instead.
|
|
47
|
+
*/
|
|
48
|
+
"message": string;
|
|
49
|
+
/**
|
|
50
|
+
* When true, the alert does not automatically close upon dismissing. Useful for externally controlled component behavior.
|
|
51
|
+
*/
|
|
52
|
+
"preventAutoClose": boolean;
|
|
53
|
+
}
|
|
54
|
+
interface NvAvatar {
|
|
55
|
+
/**
|
|
56
|
+
* If and image is provided, add an alt tag to describe it.
|
|
57
|
+
*/
|
|
58
|
+
"alt": string;
|
|
59
|
+
/**
|
|
60
|
+
* You can apply different colors on the Avatar. Use a string number between 1 and 10.
|
|
61
|
+
*/
|
|
62
|
+
"color": string;
|
|
63
|
+
/**
|
|
64
|
+
* Initials of the avatar. Usually use two letters When filled with the src parameter, the text will not be rendered.
|
|
65
|
+
*/
|
|
66
|
+
"initials": string;
|
|
67
|
+
/**
|
|
68
|
+
* Set size to Large to the avatar.
|
|
69
|
+
* @deprecated use size instead.
|
|
70
|
+
*/
|
|
71
|
+
"large": boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Set size to Medium to the avatar.
|
|
74
|
+
* @deprecated use size instead.
|
|
75
|
+
*/
|
|
76
|
+
"medium": boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Define the size of the avatar. You can use t-shirt sizes.
|
|
79
|
+
*/
|
|
80
|
+
"size": `${SemanticSizes}`;
|
|
81
|
+
/**
|
|
82
|
+
* Set size to Small to the avatar.
|
|
83
|
+
* @deprecated use size instead.
|
|
84
|
+
*/
|
|
85
|
+
"small": boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Will insert an image into the avatar.
|
|
88
|
+
*/
|
|
89
|
+
"src": string;
|
|
90
|
+
/**
|
|
91
|
+
* Set initials to the avatar.
|
|
92
|
+
* @deprecated use initials instead.
|
|
93
|
+
*/
|
|
94
|
+
"text": string;
|
|
95
|
+
/**
|
|
96
|
+
* Set src to the avatar.
|
|
97
|
+
* @deprecated use src instead.
|
|
98
|
+
*/
|
|
99
|
+
"url": string;
|
|
100
|
+
/**
|
|
101
|
+
* Set size to ExtraLarge to the avatar.
|
|
102
|
+
* @deprecated use size instead.
|
|
103
|
+
*/
|
|
104
|
+
"xlarge": boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Set size to ExtraSmall to the avatar.
|
|
107
|
+
* @deprecated use size instead.
|
|
108
|
+
*/
|
|
109
|
+
"xsmall": boolean;
|
|
110
|
+
}
|
|
111
|
+
interface NvBadge {
|
|
112
|
+
/**
|
|
113
|
+
* The color of the badge. Use a string between 1 to 5
|
|
114
|
+
*/
|
|
115
|
+
"color"?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Whether the badge is dismissible.
|
|
118
|
+
* @deprecated use dismissible instead.
|
|
119
|
+
*/
|
|
120
|
+
"dismissal": boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Whether the badge is dismissible.
|
|
123
|
+
*/
|
|
124
|
+
"dismissible": boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Controls the visibility of the badge. Will animate with fade and collapse.
|
|
127
|
+
*/
|
|
128
|
+
"hidden": boolean;
|
|
129
|
+
/**
|
|
130
|
+
* The icon to display in the badge.
|
|
131
|
+
* @deprecated use leadIcon or slot="leading-icon" instead.
|
|
132
|
+
*/
|
|
133
|
+
"icon": string;
|
|
134
|
+
/**
|
|
135
|
+
* The location of the icon in the badge.
|
|
136
|
+
* @deprecated only leadIcon now.
|
|
137
|
+
*/
|
|
138
|
+
"iconLocation": 'left' | 'right';
|
|
139
|
+
/**
|
|
140
|
+
* Main content of the badge.
|
|
141
|
+
*/
|
|
142
|
+
"label"?: string | null;
|
|
143
|
+
/**
|
|
144
|
+
* The lead icon of the badge.
|
|
145
|
+
*/
|
|
146
|
+
"leadIcon"?: string | null;
|
|
147
|
+
/**
|
|
148
|
+
* When true, the alert does not automatically close upon dismissing. Useful for externally controlled component behavior.
|
|
149
|
+
*/
|
|
150
|
+
"preventAutoClose": boolean;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* @deprecated This is only to help with the migration from v2 to v3. It will be removed in the next major release.
|
|
154
|
+
*/
|
|
155
|
+
interface NvBase {
|
|
156
|
+
}
|
|
157
|
+
interface NvButton {
|
|
158
|
+
/**
|
|
159
|
+
* Applies styling that visually indicates the button represents a dangerous action.
|
|
160
|
+
*/
|
|
161
|
+
"danger": boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Disables the button, preventing user interaction.
|
|
164
|
+
*/
|
|
165
|
+
"disabled": boolean;
|
|
166
|
+
/**
|
|
167
|
+
* Adjusts the button's emphasis to make it more or less visually prominent to users. Use this to draw attention to important actions or reduce focus on less critical ones
|
|
168
|
+
*/
|
|
169
|
+
"emphasis": `${ButtonEmphasis}`;
|
|
170
|
+
/**
|
|
171
|
+
* Allows the button to stretch and fill the entire width of its container.
|
|
172
|
+
*/
|
|
173
|
+
"fluid": boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Set this to true to show a spinner on the button, letting users know that their action is being processed. It helps improve user experience by indicating ongoing activities.
|
|
176
|
+
*/
|
|
177
|
+
"loading": boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Determines how large or small the button appears, allowing for customization of the button's dimensions to fit different design specifications and user needs.
|
|
180
|
+
*/
|
|
181
|
+
"size": `${ButtonSize}`;
|
|
182
|
+
/**
|
|
183
|
+
* Sets the button type to control its function in forms. Use 'submit' to send form data, 'reset' to clear the form, or 'button' for a standard button that doesn’t interact with form submission by default.
|
|
184
|
+
*/
|
|
185
|
+
"type": `${ButtonType}`;
|
|
186
|
+
}
|
|
187
|
+
interface NvCol {
|
|
188
|
+
/**
|
|
189
|
+
* Defines the column size based on a 12 column grid system.
|
|
190
|
+
*/
|
|
191
|
+
"size": number;
|
|
192
|
+
}
|
|
193
|
+
interface NvFieldcheckbox {
|
|
194
|
+
/**
|
|
195
|
+
* Indicates whether the checkbox is checked or not.
|
|
196
|
+
*/
|
|
197
|
+
"checked": boolean;
|
|
198
|
+
/**
|
|
199
|
+
* A description providing additional context or information about the checkbox.
|
|
200
|
+
*/
|
|
201
|
+
"description"?: string;
|
|
202
|
+
/**
|
|
203
|
+
* Disables the checkbox, preventing user interaction.
|
|
204
|
+
*/
|
|
205
|
+
"disabled": boolean;
|
|
206
|
+
/**
|
|
207
|
+
* Signals that there is an error associated with the checkbox, which can trigger visual cues.
|
|
208
|
+
*/
|
|
209
|
+
"error": boolean;
|
|
210
|
+
/**
|
|
211
|
+
* A description that appears when there is an error related to the checkbox.
|
|
212
|
+
*/
|
|
213
|
+
"errorDescription"?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Hides the label visually while still keeping it available for screen readers.
|
|
216
|
+
*/
|
|
217
|
+
"hideLabel": boolean;
|
|
218
|
+
/**
|
|
219
|
+
* Indicates whether the checkbox is in an indeterminate state, typically used for hierarchical checkboxes.
|
|
220
|
+
*/
|
|
221
|
+
"indeterminate": boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Sets the ID for the radio button’s input element and the for attribute of the associated label. If no ID is provided, a random one will be automatically generated to ensure unique identification, facilitating proper label association and accessibility.
|
|
224
|
+
*/
|
|
225
|
+
"inputId": string;
|
|
226
|
+
/**
|
|
227
|
+
* The label displayed next to the checkbox.
|
|
228
|
+
*/
|
|
229
|
+
"label"?: string;
|
|
230
|
+
/**
|
|
231
|
+
* When true, the label will be placed before the checkbox.
|
|
232
|
+
* @deprecated Use `labelPlacement = end` instead.
|
|
233
|
+
*/
|
|
234
|
+
"labelBefore"?: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* Determines the position of the label relative to the checkbox, either 'start' (before) or 'end' (after).
|
|
237
|
+
*/
|
|
238
|
+
"labelPlacement": `${FieldLabelPlacement}`;
|
|
239
|
+
/**
|
|
240
|
+
* Message define a 'hint ' message for the Field.
|
|
241
|
+
* @deprecated Use `description` instead.
|
|
242
|
+
*/
|
|
243
|
+
"message"?: string;
|
|
244
|
+
/**
|
|
245
|
+
* The name attribute for the checkbox input, used to reference the form data after submission.
|
|
246
|
+
*/
|
|
247
|
+
"name"?: string;
|
|
248
|
+
/**
|
|
249
|
+
* Sets the checkbox to read-only, preventing user changes but still allowing focus and selection of text.
|
|
250
|
+
*/
|
|
251
|
+
"readonly": boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Marks the checkbox as required, indicating that it must be checked for form submission.
|
|
254
|
+
*/
|
|
255
|
+
"required": boolean;
|
|
256
|
+
/**
|
|
257
|
+
* The text for the validation message.
|
|
258
|
+
* @deprecated Use `errorDescription` instead.
|
|
259
|
+
*/
|
|
260
|
+
"validation"?: string;
|
|
261
|
+
/**
|
|
262
|
+
* The value attribute of the checkbox input, representing the value sent on form submission when the checkbox is checked. When the form is submitted, the data will consist of a name=value pair.
|
|
263
|
+
*/
|
|
264
|
+
"value"?: string;
|
|
265
|
+
}
|
|
266
|
+
interface NvFieldnumber {
|
|
267
|
+
/**
|
|
268
|
+
* Add helpful hints or extra information under the text input field. This is where you can clarify what users should enter or provide additional instructions, making the form easier to fill out correctly.
|
|
269
|
+
*/
|
|
270
|
+
"description": string;
|
|
271
|
+
/**
|
|
272
|
+
* The disabled prop lets you turn off the input field so that users can’t type in it. When disabled, the field is grayed out and won’t respond to# clicks or touches.
|
|
273
|
+
*/
|
|
274
|
+
"disabled": boolean;
|
|
275
|
+
/**
|
|
276
|
+
* Alters the input field’s appearance to indicate an error, helping users identify fields that need correction.
|
|
277
|
+
* @validator error
|
|
278
|
+
*/
|
|
279
|
+
"error": boolean;
|
|
280
|
+
/**
|
|
281
|
+
* Show a helpful message under the input field when there’s a problem. It explains what’s wrong and how users can fix it, making the error easier to understand and resolve.
|
|
282
|
+
* @validator message
|
|
283
|
+
*/
|
|
284
|
+
"errorDescription": string;
|
|
285
|
+
/**
|
|
286
|
+
* Sets the ID for the input element and the for attribute of the associated label. If no ID is provided, a random one will be automatically generated to ensure unique identification, facilitating proper label association and accessibility.
|
|
287
|
+
*/
|
|
288
|
+
"inputId": string;
|
|
289
|
+
/**
|
|
290
|
+
* Lets you define the text that explains what users should enter in the text input field. It’s a crucial element for making forms clear and user-friendly.
|
|
291
|
+
*/
|
|
292
|
+
"label": string;
|
|
293
|
+
/**
|
|
294
|
+
* The maximum value that the input field can accept. Use this in combination with min to create a range of valid values.
|
|
295
|
+
*/
|
|
296
|
+
"max": number;
|
|
297
|
+
/**
|
|
298
|
+
* Message defines a 'hint ' message for the number field.
|
|
299
|
+
* @deprecated use description instead.
|
|
300
|
+
*/
|
|
301
|
+
"message": string;
|
|
302
|
+
/**
|
|
303
|
+
* The minimum value that the input field can accept. Use this in combination with max to create a range of valid values.
|
|
304
|
+
*/
|
|
305
|
+
"min": number;
|
|
306
|
+
/**
|
|
307
|
+
* Defines the name attribute of the input field, which is crucial for form submission. This value is used as the key in the key-value pair sent to the server, representing the input’s data in form submissions. It should be unique within the form to avoid conflicts
|
|
308
|
+
*/
|
|
309
|
+
"name": string;
|
|
310
|
+
/**
|
|
311
|
+
* Display temporary text inside the input field to give users a hint about what to type. It’s a great way to provide examples or suggestions directly in the field before they start typing.
|
|
312
|
+
*/
|
|
313
|
+
"placeholder": string;
|
|
314
|
+
/**
|
|
315
|
+
* Display the input field’s content without allowing users to change it. Users can still click on it, select, and copy the text, but they won’t be able to type or delete anything.
|
|
316
|
+
*/
|
|
317
|
+
"readonly": boolean;
|
|
318
|
+
/**
|
|
319
|
+
* Marks the input field as required, ensuring that the user must fill it out before submitting the form.
|
|
320
|
+
*/
|
|
321
|
+
"required": boolean;
|
|
322
|
+
/**
|
|
323
|
+
* Define the increment value for the input field. It determines how much the value will increase or decrease when the user clicks the stepper buttons.
|
|
324
|
+
*/
|
|
325
|
+
"step": number;
|
|
326
|
+
/**
|
|
327
|
+
* Changes the input field’s appearance to indicate successful input or validation.
|
|
328
|
+
*/
|
|
329
|
+
"success": boolean;
|
|
330
|
+
/**
|
|
331
|
+
* Add the message to the validation state.
|
|
332
|
+
* @deprecated use errorDescription and set the error prop instead.
|
|
333
|
+
*/
|
|
334
|
+
"validation": string;
|
|
335
|
+
/**
|
|
336
|
+
* The value of the input field. It’s the text that users type in or the value that you set programmatically. This is the main way to interact with the input field, and it’s essential for creating forms that users can fill out.
|
|
337
|
+
*/
|
|
338
|
+
"value": number;
|
|
339
|
+
}
|
|
340
|
+
interface NvFieldpassword {
|
|
341
|
+
/**
|
|
342
|
+
* The autocomplete prop helps users fill out the input field faster by suggesting entries they’ve used before, like their email or address. You can turn it on to make forms more convenient or off to ensure users always type in fresh data.
|
|
343
|
+
*/
|
|
344
|
+
"autocomplete": `${TextInputAutocomplete}`;
|
|
345
|
+
/**
|
|
346
|
+
* Add helpful hints or extra information under the text input field. This is where you can clarify what users should enter or provide additional instructions, making the form easier to fill out correctly.
|
|
347
|
+
*/
|
|
348
|
+
"description": string;
|
|
349
|
+
/**
|
|
350
|
+
* The disabled prop lets you turn off the input field so that users can’t type in it. When disabled, the field is grayed out and won’t respond to# clicks or touches.
|
|
351
|
+
*/
|
|
352
|
+
"disabled": boolean;
|
|
353
|
+
/**
|
|
354
|
+
* Alters the input field’s appearance to indicate an error, helping users identify fields that need correction.
|
|
355
|
+
* @validator error
|
|
356
|
+
*/
|
|
357
|
+
"error": boolean;
|
|
358
|
+
/**
|
|
359
|
+
* A description that appears when there is an error related to the password field.
|
|
360
|
+
* @validator message
|
|
361
|
+
*/
|
|
362
|
+
"errorDescription": string;
|
|
363
|
+
/**
|
|
364
|
+
* Hide the button to show/hide the password.
|
|
365
|
+
*/
|
|
366
|
+
"hidePasswordIcon": boolean;
|
|
367
|
+
/**
|
|
368
|
+
* Sets the ID for the input element and the for attribute of the associated label. If no ID is provided, a random one will be automatically generated to ensure unique identification, facilitating proper label association and accessibility.
|
|
369
|
+
*/
|
|
370
|
+
"inputId": string;
|
|
371
|
+
/**
|
|
372
|
+
* Lets you define the text that explains what users should enter in the text input field. It’s a crucial element for making forms clear and user-friendly.
|
|
373
|
+
*/
|
|
374
|
+
"label": string;
|
|
375
|
+
/**
|
|
376
|
+
* Limits how many characters users can type into the input field. It’s helpful for making sure users don’t enter too much information, keeping their input within the allowed limit.
|
|
377
|
+
*/
|
|
378
|
+
"maxlength": number;
|
|
379
|
+
/**
|
|
380
|
+
* Ensures that users type at least a certain number of characters into the input field. It’s a way to make sure users provide enough information before moving on.
|
|
381
|
+
*/
|
|
382
|
+
"minlength": number;
|
|
383
|
+
/**
|
|
384
|
+
* Defines the type of the input.
|
|
385
|
+
* @default 'text'
|
|
386
|
+
*/
|
|
387
|
+
"mode": 'text' | 'number';
|
|
388
|
+
/**
|
|
389
|
+
* Defines the name attribute of the input field, which is crucial for form submission. This value is used as the key in the key-value pair sent to the server, representing the input’s data in form submissions. It should be unique within the form to avoid conflicts
|
|
390
|
+
*/
|
|
391
|
+
"name": string;
|
|
392
|
+
/**
|
|
393
|
+
* Set rules for how the input should be formatted. For example, you can require that a phone number includes only digits or that an email address has the correct format. If users don’t follow these rules, they’ll get a prompt to correct their input. the rules are applied to the input value via regexes.
|
|
394
|
+
*/
|
|
395
|
+
"pattern": string;
|
|
396
|
+
/**
|
|
397
|
+
* Display temporary text inside the input field to give users a hint about what to type. It’s a great way to provide examples or suggestions directly in the field before they start typing.
|
|
398
|
+
*/
|
|
399
|
+
"placeholder": string;
|
|
400
|
+
/**
|
|
401
|
+
* Display the input field’s content without allowing users to change it. Users can still click on it, select, and copy the text, but they won’t be able to type or delete anything.
|
|
402
|
+
*/
|
|
403
|
+
"readonly": boolean;
|
|
404
|
+
/**
|
|
405
|
+
* Marks the input field as required, ensuring that the user must fill it out before submitting the form.
|
|
406
|
+
*/
|
|
407
|
+
"required": boolean;
|
|
408
|
+
/**
|
|
409
|
+
* Show/hide the password programmatically.
|
|
410
|
+
*/
|
|
411
|
+
"showPassword": boolean;
|
|
412
|
+
/**
|
|
413
|
+
* Changes the input field’s appearance to indicate successful input or validation.
|
|
414
|
+
*/
|
|
415
|
+
"success": boolean;
|
|
416
|
+
/**
|
|
417
|
+
* Specifies the value of the input field, which determines the text displayed within the field. This prop is typically used in controlled components where the input’s value is managed by the component’s state.
|
|
418
|
+
*/
|
|
419
|
+
"value": string;
|
|
420
|
+
}
|
|
421
|
+
interface NvFieldradio {
|
|
422
|
+
/**
|
|
423
|
+
* Controls whether the radio button is selected.
|
|
424
|
+
*/
|
|
425
|
+
"checked": boolean;
|
|
426
|
+
/**
|
|
427
|
+
* Adds a helpful hint message below the label. This description provides extra information or context about the radio button option, assisting users in making more informed choices.
|
|
428
|
+
*/
|
|
429
|
+
"description": string;
|
|
430
|
+
/**
|
|
431
|
+
* Disables the radio button, making it un-selectable.
|
|
432
|
+
*/
|
|
433
|
+
"disabled": boolean;
|
|
434
|
+
/**
|
|
435
|
+
* Highlight the radio button with error styling. It helps users quickly identify which option needs attention, improving their form-filling experience by making issues more visible.
|
|
436
|
+
* @validator error
|
|
437
|
+
*/
|
|
438
|
+
"error": boolean;
|
|
439
|
+
/**
|
|
440
|
+
* A description that appears when there is an error related to the radio button.
|
|
441
|
+
* @validator message
|
|
442
|
+
*/
|
|
443
|
+
"errorDescription": string;
|
|
444
|
+
/**
|
|
445
|
+
* Sets the ID for the radio button’s input element and the for attribute of the associated label. If no ID is provided, a random one will be automatically generated to ensure unique identification, facilitating proper label association and accessibility.
|
|
446
|
+
*/
|
|
447
|
+
"inputId": string;
|
|
448
|
+
/**
|
|
449
|
+
* Sets the text content that is rendered next to the input element of type radio. This label is essential for accessibility and user clarity, as it describes the purpose or option of the radio button.
|
|
450
|
+
*/
|
|
451
|
+
"label": string;
|
|
452
|
+
/**
|
|
453
|
+
* Set the label placement to before the input
|
|
454
|
+
* @deprecated use labelPlacement instead.
|
|
455
|
+
*/
|
|
456
|
+
"labelBefore": boolean;
|
|
457
|
+
/**
|
|
458
|
+
* Defines the position of the label relative to the radio button.
|
|
459
|
+
*/
|
|
460
|
+
"labelPlacement": `${FieldLabelPlacement}`;
|
|
461
|
+
/**
|
|
462
|
+
* Adds a helpful hint message below the label
|
|
463
|
+
* @deprecated use description instead.
|
|
464
|
+
*/
|
|
465
|
+
"message": string;
|
|
466
|
+
/**
|
|
467
|
+
* Use this to assign a group name to your radio buttons. When you have multiple radio buttons with the same name, users will be able to select only one option within that group, making your forms more organized and user-friendly.
|
|
468
|
+
*/
|
|
469
|
+
"name": string;
|
|
470
|
+
/**
|
|
471
|
+
* Defines what data will be sent when the radio button is selected. This helps you identify which option the user has chosen in your form, ensuring accurate data collection. When the form is submitted, the data will consist of a name=value pair.
|
|
472
|
+
*/
|
|
473
|
+
"value": string;
|
|
474
|
+
}
|
|
475
|
+
interface NvFieldselect {
|
|
476
|
+
/**
|
|
477
|
+
* Add helpful hints or extra information under the select field. This is where you can clarify what users should choose or provide additional instructions, making the form easier to fill out correctly.
|
|
478
|
+
*/
|
|
479
|
+
"description"?: string;
|
|
480
|
+
/**
|
|
481
|
+
* The disabled prop lets you turn off the select field so that users can’t choose something. When disabled, the field is grayed out and won’t respond to clicks or touches.
|
|
482
|
+
*/
|
|
483
|
+
"disabled": boolean;
|
|
484
|
+
/**
|
|
485
|
+
* When enabled, displays the value element instead of the label when readonly. By default, the label is displayed in readonly mode. Also it automatically sets the component to readonly.
|
|
486
|
+
*/
|
|
487
|
+
"displayValue": boolean;
|
|
488
|
+
/**
|
|
489
|
+
* Alters the select field’s appearance to indicate an error, helping users identify fields that need correction.
|
|
490
|
+
* @validator error
|
|
491
|
+
*/
|
|
492
|
+
"error": boolean;
|
|
493
|
+
/**
|
|
494
|
+
* Show a helpful message under the select field when there’s a problem. It explains what’s wrong and how users can fix it, making the error easier to understand and resolve.
|
|
495
|
+
* @validator message
|
|
496
|
+
*/
|
|
497
|
+
"errorDescription": string;
|
|
498
|
+
/**
|
|
499
|
+
* Lets you define the text that explains what users should choose in the select field. It’s a crucial element for making forms clear and user-friendly.
|
|
500
|
+
*/
|
|
501
|
+
"label"?: string;
|
|
502
|
+
/**
|
|
503
|
+
* Message defines a 'hint ' message for the Select Field.
|
|
504
|
+
* @deprecated use description instead.
|
|
505
|
+
*/
|
|
506
|
+
"message": string;
|
|
507
|
+
/**
|
|
508
|
+
* When enabled, allows the select to handle multiple selections.
|
|
509
|
+
*/
|
|
510
|
+
"multiple": boolean;
|
|
511
|
+
/**
|
|
512
|
+
* Defines the name attribute of the select field, which is crucial for form submission. This value is used as the key in the key-value pair sent to the server, representing the selected data in form submissions. It should be unique within the form to avoid conflicts
|
|
513
|
+
*/
|
|
514
|
+
"name": string;
|
|
515
|
+
/**
|
|
516
|
+
* Display the select field’s content without allowing users to change it. Users can still click on it, select, and copy the text, but they won’t be able to change or delete anything.
|
|
517
|
+
*/
|
|
518
|
+
"readonly": boolean;
|
|
519
|
+
/**
|
|
520
|
+
* Marks the select field as required, ensuring that the user must fill it out before submitting the form.
|
|
521
|
+
*/
|
|
522
|
+
"required": boolean;
|
|
523
|
+
/**
|
|
524
|
+
* Sets the ID for the select element and the for attribute of the associated label. If no ID is provided, a random one will be automatically generated to ensure unique identification, facilitating proper label association and accessibility.
|
|
525
|
+
*/
|
|
526
|
+
"selectId": string;
|
|
527
|
+
/**
|
|
528
|
+
* Changes the select field’s appearance to indicate successful input or validation.
|
|
529
|
+
*/
|
|
530
|
+
"success": boolean;
|
|
531
|
+
/**
|
|
532
|
+
* Add the message to the validation state.
|
|
533
|
+
* @deprecated use errorDescription and set the error prop instead.
|
|
534
|
+
*/
|
|
535
|
+
"validation": string;
|
|
536
|
+
/**
|
|
537
|
+
* The value of the select field. - If `multiple` is `false`, it's a single string. - If `multiple` is `true`, it's a comma-separated string of selected values.
|
|
538
|
+
*/
|
|
539
|
+
"value": string;
|
|
540
|
+
}
|
|
541
|
+
interface NvFieldtext {
|
|
542
|
+
/**
|
|
543
|
+
* The autocomplete prop helps users fill out the input field faster by suggesting entries they’ve used before, like their email or address. You can turn it on to make forms more convenient or off to ensure users always type in fresh data.
|
|
544
|
+
*/
|
|
545
|
+
"autocomplete": `${TextInputAutocomplete}`;
|
|
546
|
+
/**
|
|
547
|
+
* Add helpful hints or extra information under the text input field. This is where you can clarify what users should enter or provide additional instructions, making the form easier to fill out correctly.
|
|
548
|
+
*/
|
|
549
|
+
"description": string;
|
|
550
|
+
/**
|
|
551
|
+
* The disabled prop lets you turn off the input field so that users can’t type in it. When disabled, the field is grayed out and won’t respond to clicks or touches.
|
|
552
|
+
*/
|
|
553
|
+
"disabled": boolean;
|
|
554
|
+
/**
|
|
555
|
+
* Alters the input field’s appearance to indicate an error, helping users identify fields that need correction.
|
|
556
|
+
* @validator error
|
|
557
|
+
*/
|
|
558
|
+
"error": boolean;
|
|
559
|
+
/**
|
|
560
|
+
* A description that appears when there is an error related to the textfield field.
|
|
561
|
+
* @validator message
|
|
562
|
+
*/
|
|
563
|
+
"errorDescription": string;
|
|
564
|
+
/**
|
|
565
|
+
* Sets the ID for the input element and the for attribute of the associated label. If no ID is provided, a random one will be automatically generated to ensure unique identification, facilitating proper label association and accessibility.
|
|
566
|
+
*/
|
|
567
|
+
"inputId": string;
|
|
568
|
+
/**
|
|
569
|
+
* Lets you define the text that explains what users should enter in the text input field. It’s a crucial element for making forms clear and user-friendly.
|
|
570
|
+
*/
|
|
571
|
+
"label": string;
|
|
572
|
+
/**
|
|
573
|
+
* Limits how many characters users can type into the input field. It’s helpful for making sure users don’t enter too much information, keeping their input within the allowed limit.
|
|
574
|
+
*/
|
|
575
|
+
"maxlength": number;
|
|
576
|
+
/**
|
|
577
|
+
* Message defines a 'hint ' message for the Text Field.
|
|
578
|
+
* @deprecated use description instead.
|
|
579
|
+
*/
|
|
580
|
+
"message": string;
|
|
581
|
+
/**
|
|
582
|
+
* Ensures that users type at least a certain number of characters into the input field. It’s a way to make sure users provide enough information before moving on.
|
|
583
|
+
*/
|
|
584
|
+
"minlength": number;
|
|
585
|
+
/**
|
|
586
|
+
* When used with the email input type, this prop enables the field to accept multiple email addresses. Users can enter several addresses, separating each one with a comma, allowing the form to handle multiple recipients.
|
|
587
|
+
*/
|
|
588
|
+
"multiple": boolean;
|
|
589
|
+
/**
|
|
590
|
+
* Defines the name attribute of the input field, which is crucial for form submission. This value is used as the key in the key-value pair sent to the server, representing the input’s data in form submissions. It should be unique within the form to avoid conflicts
|
|
591
|
+
*/
|
|
592
|
+
"name": string;
|
|
593
|
+
/**
|
|
594
|
+
* Set rules for how the input should be formatted. For example, you can require that a phone number includes only digits or that an email address has the correct format. If users don’t follow these rules, they’ll get a prompt to correct their input.
|
|
595
|
+
*/
|
|
596
|
+
"pattern": string;
|
|
597
|
+
/**
|
|
598
|
+
* Display temporary text inside the input field to give users a hint about what to type. It’s a great way to provide examples or suggestions directly in the field before they start typing.
|
|
599
|
+
*/
|
|
600
|
+
"placeholder": string;
|
|
601
|
+
/**
|
|
602
|
+
* Display the input field’s content without allowing users to change it. Users can still click on it, select, and copy the text, but they won’t be able to type or delete anything.
|
|
603
|
+
*/
|
|
604
|
+
"readonly": boolean;
|
|
605
|
+
/**
|
|
606
|
+
* Marks the input field as required, ensuring that the user must fill it out before submitting the form.
|
|
607
|
+
*/
|
|
608
|
+
"required": boolean;
|
|
609
|
+
/**
|
|
610
|
+
* Changes the input field’s appearance to indicate successful input or validation.
|
|
611
|
+
*/
|
|
612
|
+
"success": boolean;
|
|
613
|
+
/**
|
|
614
|
+
* Type of the input.
|
|
615
|
+
* @deprecated use type instead.
|
|
616
|
+
*/
|
|
617
|
+
"textInputType": 'text' | 'tel' | 'email';
|
|
618
|
+
/**
|
|
619
|
+
* The type prop lets you specify what kind of information the input field should accept. Choose 'text' for general words or sentences, 'tel' for phone numbers, or 'email' for email addresses. This makes sure users get the right keyboard and validation for what they need to enter.
|
|
620
|
+
*/
|
|
621
|
+
"type": 'text' | 'tel' | 'email';
|
|
622
|
+
/**
|
|
623
|
+
* Add the message to the validation state.
|
|
624
|
+
* @deprecated use errorDescription and set the error prop instead.
|
|
625
|
+
*/
|
|
626
|
+
"validation": string;
|
|
627
|
+
/**
|
|
628
|
+
* Specifies the value of the input field, which determines the text displayed within the field. This prop is typically used in controlled components where the input’s value is managed by the component’s state.
|
|
629
|
+
*/
|
|
630
|
+
"value": string;
|
|
631
|
+
}
|
|
632
|
+
interface NvFieldtextarea {
|
|
633
|
+
/**
|
|
634
|
+
* Enable this to make the textarea automatically resize as the user types, adjusting the height to fit the content. For the best experience, avoid vertical resizing, as it’s controlled by this feature. Horizontal resizing can still be allowed if desired.
|
|
635
|
+
*/
|
|
636
|
+
"autosize": boolean;
|
|
637
|
+
/**
|
|
638
|
+
* Add helpful hints or extra information under the text textarea field. This is where you can clarify what users should enter or provide additional instructions, making the form easier to fill out correctly.
|
|
639
|
+
*/
|
|
640
|
+
"description": string;
|
|
641
|
+
/**
|
|
642
|
+
* The disabled prop lets you turn off the textarea field so that users can’t type in it. When disabled, the field is grayed out and won’t respond to# clicks or touches.
|
|
643
|
+
*/
|
|
644
|
+
"disabled": boolean;
|
|
645
|
+
/**
|
|
646
|
+
* Alters the textarea field’s appearance to indicate an error, helping users identify fields that need correction.
|
|
647
|
+
* @validator error
|
|
648
|
+
*/
|
|
649
|
+
"error": boolean;
|
|
650
|
+
/**
|
|
651
|
+
* Show a helpful message under the textarea field when there’s a problem. It explains what’s wrong and how users can fix it, making the error easier to understand and resolve.
|
|
652
|
+
* @validator message
|
|
653
|
+
*/
|
|
654
|
+
"errorDescription": string;
|
|
655
|
+
/**
|
|
656
|
+
* Lets you define the text that explains what users should enter in the text textarea field. It’s a crucial element for making forms clear and user-friendly.
|
|
657
|
+
*/
|
|
658
|
+
"label": string;
|
|
659
|
+
/**
|
|
660
|
+
* Limits how many characters users can type into the textarea field. It’s helpful for making sure users don’t enter too much information, keeping their textarea within the allowed limit.
|
|
661
|
+
*/
|
|
662
|
+
"maxlength": number;
|
|
663
|
+
/**
|
|
664
|
+
* Message defines a 'hint ' message for the Text Field.
|
|
665
|
+
* @deprecated use description instead.
|
|
666
|
+
*/
|
|
667
|
+
"message": string;
|
|
668
|
+
/**
|
|
669
|
+
* Ensures that users type at least a certain number of characters into the textarea field. It’s a way to make sure users provide enough information before moving on.
|
|
670
|
+
*/
|
|
671
|
+
"minlength": number;
|
|
672
|
+
/**
|
|
673
|
+
* Defines the name attribute of the textarea field, which is crucial for form submission. This value is used as the key in the key-value pair sent to the server, representing the textarea’s data in form submissions. It should be unique within the form to avoid conflicts
|
|
674
|
+
*/
|
|
675
|
+
"name": string;
|
|
676
|
+
/**
|
|
677
|
+
* Display temporary text inside the textarea field to give users a hint about what to type. It’s a great way to provide examples or suggestions directly in the field before they start typing.
|
|
678
|
+
*/
|
|
679
|
+
"placeholder": string;
|
|
680
|
+
/**
|
|
681
|
+
* Display the textarea field’s content without allowing users to change it. Users can still click on it, select, and copy the text, but they won’t be able to type or delete anything.
|
|
682
|
+
*/
|
|
683
|
+
"readonly": boolean;
|
|
684
|
+
/**
|
|
685
|
+
* Marks the textarea field as required, ensuring that the user must fill it out before submitting the form.
|
|
686
|
+
*/
|
|
687
|
+
"required": boolean;
|
|
688
|
+
/**
|
|
689
|
+
* Controls the resize property of a textarea. It can be set to none, both, horizontal, or vertical. The default is vertical.
|
|
690
|
+
*/
|
|
691
|
+
"resize": 'none' | 'both' | 'horizontal' | 'vertical';
|
|
692
|
+
/**
|
|
693
|
+
* The number of visible text lines for the control. The default is 3. This can be useful when you want to limit the size of the textarea field or when you want to make the textarea field smaller to fit a specific layout. The textarea field will expand vertically to fit the text as the user types.
|
|
694
|
+
*/
|
|
695
|
+
"rows": number;
|
|
696
|
+
/**
|
|
697
|
+
* Changes the textarea field’s appearance to indicate successful textarea or validation.
|
|
698
|
+
*/
|
|
699
|
+
"success": boolean;
|
|
700
|
+
/**
|
|
701
|
+
* Sets the ID for the textarea element and the for attribute of the associated label. If no ID is provided, a random one will be automatically generated to ensure unique identification, facilitating proper label association and accessibility.
|
|
702
|
+
*/
|
|
703
|
+
"textareaId": string;
|
|
704
|
+
/**
|
|
705
|
+
* Add the message to the validation state.
|
|
706
|
+
* @deprecated use errorDescription and set the error prop instead.
|
|
707
|
+
*/
|
|
708
|
+
"validation": string;
|
|
709
|
+
/**
|
|
710
|
+
* Specifies the value of the textarea field, which determines the text displayed within the field. This prop is typically used in controlled components where the textarea’s value is managed by the component’s state.
|
|
711
|
+
*/
|
|
712
|
+
"value": string;
|
|
713
|
+
}
|
|
714
|
+
interface NvFieldtoggle {
|
|
715
|
+
/**
|
|
716
|
+
* Indicates whether the toggle is checked or not.
|
|
717
|
+
*/
|
|
718
|
+
"checked": boolean;
|
|
719
|
+
/**
|
|
720
|
+
* A description providing additional context or information about the toggle.
|
|
721
|
+
*/
|
|
722
|
+
"description"?: string;
|
|
723
|
+
/**
|
|
724
|
+
* Disables the toggle, preventing user interaction.
|
|
725
|
+
*/
|
|
726
|
+
"disabled": boolean;
|
|
727
|
+
/**
|
|
728
|
+
* Hides the label visually while still keeping it available for screen readers.
|
|
729
|
+
*/
|
|
730
|
+
"hideLabel": boolean;
|
|
731
|
+
/**
|
|
732
|
+
* Sets the ID for the radio button’s input element and the for attribute of the associated label. If no ID is provided, a random one will be automatically generated to ensure unique identification, facilitating proper label association and accessibility.
|
|
733
|
+
*/
|
|
734
|
+
"inputId": string;
|
|
735
|
+
/**
|
|
736
|
+
* The label displayed next to the toggle.
|
|
737
|
+
*/
|
|
738
|
+
"label"?: string;
|
|
739
|
+
/**
|
|
740
|
+
* Determines the position of the label relative to the toggle, either 'start' (before) or 'end' (after).
|
|
741
|
+
*/
|
|
742
|
+
"labelPlacement": `${FieldLabelPlacement}`;
|
|
743
|
+
/**
|
|
744
|
+
* The name attribute for the toggle input, used to reference the form data after submission.
|
|
745
|
+
*/
|
|
746
|
+
"name"?: string;
|
|
747
|
+
/**
|
|
748
|
+
* Sets the toggle to read-only, preventing user changes but still allowing focus and selection of text.
|
|
749
|
+
*/
|
|
750
|
+
"readonly": boolean;
|
|
751
|
+
/**
|
|
752
|
+
* The value attribute of the toggle input, representing the value sent on form submission when the toggle is checked.
|
|
753
|
+
*/
|
|
754
|
+
"value"?: string;
|
|
755
|
+
}
|
|
756
|
+
interface NvIcon {
|
|
757
|
+
/**
|
|
758
|
+
* Set color of the icon.
|
|
759
|
+
* @deprecated use class names instead.
|
|
760
|
+
*/
|
|
761
|
+
"color": `${DeprecatedSemanticColors}`;
|
|
762
|
+
/**
|
|
763
|
+
* Set size to Large.
|
|
764
|
+
* @deprecated use size instead.
|
|
765
|
+
*/
|
|
766
|
+
"large": boolean;
|
|
767
|
+
/**
|
|
768
|
+
* Set size to Medium.
|
|
769
|
+
* @deprecated use size instead.
|
|
770
|
+
*/
|
|
771
|
+
"medium": boolean;
|
|
772
|
+
/**
|
|
773
|
+
* Choose the icon you want to display. This also sets the aria-label for improved accessibility, helping users who rely on screen readers.
|
|
774
|
+
*/
|
|
775
|
+
"name": `${IconName}` | string;
|
|
776
|
+
/**
|
|
777
|
+
* Adjust the size of the icon to fit your design needs.
|
|
778
|
+
*/
|
|
779
|
+
"size": `${SemanticSizes}`;
|
|
780
|
+
/**
|
|
781
|
+
* Set size to Small.
|
|
782
|
+
* @deprecated use size instead.
|
|
783
|
+
*/
|
|
784
|
+
"small": boolean;
|
|
785
|
+
/**
|
|
786
|
+
* Set size to ExtraLarge.
|
|
787
|
+
* @deprecated use size instead.
|
|
788
|
+
*/
|
|
789
|
+
"xlarge": boolean;
|
|
790
|
+
/**
|
|
791
|
+
* Set size to ExtraSmall.
|
|
792
|
+
* @deprecated use size instead.
|
|
793
|
+
*/
|
|
794
|
+
"xsmall": boolean;
|
|
795
|
+
}
|
|
796
|
+
interface NvIconbutton {
|
|
797
|
+
/**
|
|
798
|
+
* Makes the button look active when it’s within a compatible component like a button group.
|
|
799
|
+
*/
|
|
800
|
+
"active": boolean;
|
|
801
|
+
/**
|
|
802
|
+
* Disables the button, preventing user interaction.
|
|
803
|
+
*/
|
|
804
|
+
"disabled": boolean;
|
|
805
|
+
/**
|
|
806
|
+
* Adjusts the button’s emphasis to make it more or less visually prominent to users. Use this to draw attention to important actions or reduce focus on less critical ones.
|
|
807
|
+
*/
|
|
808
|
+
"emphasis": `${ButtonEmphasis}`;
|
|
809
|
+
/**
|
|
810
|
+
* Set this to true to show a spinner on the button, letting users know that their action is being processed. It helps improve user experience by indicating ongoing activities. The icon is not displayed when the button is loading. Also, the button is disabled. If you want to disable the button, it is not possible. It is automatically disabled when loading.
|
|
811
|
+
*/
|
|
812
|
+
"loading": boolean;
|
|
813
|
+
/**
|
|
814
|
+
* Choose the icon you want to display. This also sets the aria-label for improved accessibility, helping users who rely on screen readers. The icon is not displayed when the button is loading.
|
|
815
|
+
*/
|
|
816
|
+
"name": `${IconName}` | string;
|
|
817
|
+
/**
|
|
818
|
+
* Sets the shape of the button. Choose between square and rounded.
|
|
819
|
+
*/
|
|
820
|
+
"shape": 'square' | 'rounded';
|
|
821
|
+
/**
|
|
822
|
+
* Determines how large or small the button appears, allowing for customization of the button's dimensions to fit different design specifications and user needs.
|
|
823
|
+
*/
|
|
824
|
+
"size": `${ButtonSize}`;
|
|
825
|
+
/**
|
|
826
|
+
* Sets the button type to control its function in forms. Use 'submit' to send form data, 'reset' to clear the form, or 'button' for a standard button that doesn’t interact with form submission by default.
|
|
827
|
+
*/
|
|
828
|
+
"type": `${ButtonType}`;
|
|
829
|
+
}
|
|
830
|
+
interface NvLoader {
|
|
831
|
+
/**
|
|
832
|
+
* Choose the color of the loader. Options are primary and white to keep the design consistent and ensure the loader stands out or blends in appropriately with your application’s interface.
|
|
833
|
+
*/
|
|
834
|
+
"color": `${LoaderColors}`;
|
|
835
|
+
/**
|
|
836
|
+
* Choose the size of the loader to best fit your application’s needs, whether it’s a small spinner for subtle loading indicators or a large one for more prominent displays.
|
|
837
|
+
*/
|
|
838
|
+
"size": `${SemanticSizes}`;
|
|
839
|
+
}
|
|
840
|
+
interface NvMenu {
|
|
841
|
+
/**
|
|
842
|
+
* Closes the menu.
|
|
843
|
+
*/
|
|
844
|
+
"close": () => Promise<void>;
|
|
845
|
+
/**
|
|
846
|
+
* Use this to disable the menu from closing automatically when a menu item is selected.
|
|
847
|
+
*/
|
|
848
|
+
"disableCloseOnSelect": boolean;
|
|
849
|
+
/**
|
|
850
|
+
* Use this if the menu is nested inside another menu. This will prevent the parent menu from closing when the child menu is opened.
|
|
851
|
+
*/
|
|
852
|
+
"nested": boolean;
|
|
853
|
+
/**
|
|
854
|
+
* Use this to toggle the initial visibility of the menu, by default the menu is hidden.
|
|
855
|
+
*/
|
|
856
|
+
"open": boolean;
|
|
857
|
+
/**
|
|
858
|
+
* Decides where the menu shows up next to the button it’s linked to (above, below, to the sides). If there isn’t enough room, it will adjust its position on the axis to fit on the screen, so users can always see it.
|
|
859
|
+
*/
|
|
860
|
+
"placement": Placement;
|
|
861
|
+
/**
|
|
862
|
+
* Opens the menu.
|
|
863
|
+
*/
|
|
864
|
+
"show": () => Promise<void>;
|
|
865
|
+
}
|
|
866
|
+
interface NvMenuitem {
|
|
867
|
+
/**
|
|
868
|
+
* Disables the item, preventing user interaction.
|
|
869
|
+
*/
|
|
870
|
+
"disabled": boolean;
|
|
871
|
+
/**
|
|
872
|
+
* If the menu item has a submenu, the a caret icon will be displayed.
|
|
873
|
+
*/
|
|
874
|
+
"hasSubmenu": boolean;
|
|
875
|
+
/**
|
|
876
|
+
* Choose the icon you want to display. This also sets the aria-label for improved accessibility, helping users who rely on screen readers. The icon is not displayed when the button is loading.
|
|
877
|
+
*/
|
|
878
|
+
"icon": `${IconName}`;
|
|
879
|
+
/**
|
|
880
|
+
* Show a shortcut key for the action represented in the menu item.
|
|
881
|
+
*/
|
|
882
|
+
"shortcut": string;
|
|
883
|
+
}
|
|
884
|
+
interface NvPopover {
|
|
885
|
+
/**
|
|
886
|
+
* Disables the automatic flipping of the popover when the trigger element is out of the viewport. The popover will flip automatically by default.
|
|
887
|
+
*/
|
|
888
|
+
"disableFlip": boolean;
|
|
889
|
+
/**
|
|
890
|
+
* Use this to set a delay before the popover appears on hover. If the mouse leaves before this time, the popover won’t show. This only works when the trigger mode is set to `hover`.
|
|
891
|
+
*/
|
|
892
|
+
"enterDelay": number;
|
|
893
|
+
/**
|
|
894
|
+
* Use this to group popovers together so that opening one will not animate the closing of another. This is helpful when popovers are placed close together, preventing animation overlap.
|
|
895
|
+
*/
|
|
896
|
+
"groupName": string;
|
|
897
|
+
/**
|
|
898
|
+
* Use this to decide if the popover should include a small arrow pointing to the trigger element, making the connection between them more clear.
|
|
899
|
+
*/
|
|
900
|
+
"hasArrow": boolean;
|
|
901
|
+
/**
|
|
902
|
+
* Use this method to hide the popover, making it disappear from view.
|
|
903
|
+
*/
|
|
904
|
+
"hide": () => Promise<void>;
|
|
905
|
+
/**
|
|
906
|
+
* Use this to set the popover to be nested inside another popover. This will prevent the parent popover from closing when the child popover is opened.
|
|
907
|
+
*/
|
|
908
|
+
"nested": boolean;
|
|
909
|
+
/**
|
|
910
|
+
* Adjust the gap between the popover and its trigger element by setting how many pixels they should be apart.
|
|
911
|
+
*/
|
|
912
|
+
"offset": number;
|
|
913
|
+
/**
|
|
914
|
+
* Use this prop to toggle the visibility of the popover. Set to true to show the popover and false to hide it.
|
|
915
|
+
*/
|
|
916
|
+
"open": boolean;
|
|
917
|
+
/**
|
|
918
|
+
* Defines where the popover appears relative to the trigger.
|
|
919
|
+
*/
|
|
920
|
+
"placement": Placement;
|
|
921
|
+
/**
|
|
922
|
+
* Sets how many pixels the popover should stay from the edge of the viewport.
|
|
923
|
+
*/
|
|
924
|
+
"shiftPadding": number;
|
|
925
|
+
/**
|
|
926
|
+
* Call this method to show the popover, making it visible on the screen.
|
|
927
|
+
*/
|
|
928
|
+
"show": () => Promise<void>;
|
|
929
|
+
/**
|
|
930
|
+
* Call this method to toggle between showing and hiding the popover, based on its current state.
|
|
931
|
+
*/
|
|
932
|
+
"toggle": () => Promise<void>;
|
|
933
|
+
"triggerElement": Element;
|
|
934
|
+
/**
|
|
935
|
+
* Sets the interaction mode for triggering the popover. Options include: - `hover`: The popover is shown on trigger hover. - `click`: The popover toggles on trigger click. - `controlled`: The visibility is managed manually through methods or the open prop.
|
|
936
|
+
*/
|
|
937
|
+
"triggerMode": 'hover' | 'click' | 'controlled';
|
|
938
|
+
}
|
|
939
|
+
interface NvRow {
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
* @deprecated Please use tailwind classes instead
|
|
943
|
+
*/
|
|
944
|
+
interface NvStack {
|
|
945
|
+
/**
|
|
946
|
+
* Fill will force the children to fill the stack depending of the direction of the stack. In horizontal position, the children take the height of the stack. In vertical position, the children take the width of the stack.
|
|
947
|
+
*/
|
|
948
|
+
"fill": boolean;
|
|
949
|
+
/**
|
|
950
|
+
* Flex will force the children to share the stack between the children depending of the direction of the stack. In horizontal position, the children width will share the width of the stack. In vertical position, the children height will share the height of the stack.
|
|
951
|
+
*/
|
|
952
|
+
"flex": boolean;
|
|
953
|
+
/**
|
|
954
|
+
* Full set the width of the stack to 100%. (same effect as WFull props)
|
|
955
|
+
*/
|
|
956
|
+
"full": boolean;
|
|
957
|
+
/**
|
|
958
|
+
* Gutter refers to the space that exists between children components inside the stack container.
|
|
959
|
+
*/
|
|
960
|
+
"gutter": number;
|
|
961
|
+
/**
|
|
962
|
+
* Display the element of the stack vertically.
|
|
963
|
+
*/
|
|
964
|
+
"vertical": boolean;
|
|
965
|
+
}
|
|
966
|
+
interface NvTooltip {
|
|
967
|
+
/**
|
|
968
|
+
* Controls how long (in milliseconds) the tooltip waits to show after you hover over or focus on an element. If you move away before the delay is up, the tooltip won’t appear.
|
|
969
|
+
*/
|
|
970
|
+
"enterDelay": number;
|
|
971
|
+
/**
|
|
972
|
+
* A string representing the text to be displayed inside the tooltip. This content is shown when the tooltip is activated by the user, such as on hover or focus events.
|
|
973
|
+
*/
|
|
974
|
+
"message": string;
|
|
975
|
+
/**
|
|
976
|
+
* Decides where the tooltip shows up next to the element it’s linked to (above, below, to the sides). If there isn’t enough room, it will adjust it's position on the axis to fit on the screen, so users can always see it.
|
|
977
|
+
*/
|
|
978
|
+
"placement": Placement;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
export interface NvAlertCustomEvent<T> extends CustomEvent<T> {
|
|
982
|
+
detail: T;
|
|
983
|
+
target: HTMLNvAlertElement;
|
|
984
|
+
}
|
|
985
|
+
export interface NvBadgeCustomEvent<T> extends CustomEvent<T> {
|
|
986
|
+
detail: T;
|
|
987
|
+
target: HTMLNvBadgeElement;
|
|
988
|
+
}
|
|
989
|
+
export interface NvFieldcheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
990
|
+
detail: T;
|
|
991
|
+
target: HTMLNvFieldcheckboxElement;
|
|
992
|
+
}
|
|
993
|
+
export interface NvFieldnumberCustomEvent<T> extends CustomEvent<T> {
|
|
994
|
+
detail: T;
|
|
995
|
+
target: HTMLNvFieldnumberElement;
|
|
996
|
+
}
|
|
997
|
+
export interface NvFieldpasswordCustomEvent<T> extends CustomEvent<T> {
|
|
998
|
+
detail: T;
|
|
999
|
+
target: HTMLNvFieldpasswordElement;
|
|
1000
|
+
}
|
|
1001
|
+
export interface NvFieldradioCustomEvent<T> extends CustomEvent<T> {
|
|
1002
|
+
detail: T;
|
|
1003
|
+
target: HTMLNvFieldradioElement;
|
|
1004
|
+
}
|
|
1005
|
+
export interface NvFieldselectCustomEvent<T> extends CustomEvent<T> {
|
|
1006
|
+
detail: T;
|
|
1007
|
+
target: HTMLNvFieldselectElement;
|
|
1008
|
+
}
|
|
1009
|
+
export interface NvFieldtextCustomEvent<T> extends CustomEvent<T> {
|
|
1010
|
+
detail: T;
|
|
1011
|
+
target: HTMLNvFieldtextElement;
|
|
1012
|
+
}
|
|
1013
|
+
export interface NvFieldtextareaCustomEvent<T> extends CustomEvent<T> {
|
|
1014
|
+
detail: T;
|
|
1015
|
+
target: HTMLNvFieldtextareaElement;
|
|
1016
|
+
}
|
|
1017
|
+
export interface NvFieldtoggleCustomEvent<T> extends CustomEvent<T> {
|
|
1018
|
+
detail: T;
|
|
1019
|
+
target: HTMLNvFieldtoggleElement;
|
|
1020
|
+
}
|
|
1021
|
+
export interface NvMenuCustomEvent<T> extends CustomEvent<T> {
|
|
1022
|
+
detail: T;
|
|
1023
|
+
target: HTMLNvMenuElement;
|
|
1024
|
+
}
|
|
1025
|
+
export interface NvPopoverCustomEvent<T> extends CustomEvent<T> {
|
|
1026
|
+
detail: T;
|
|
1027
|
+
target: HTMLNvPopoverElement;
|
|
1028
|
+
}
|
|
1029
|
+
declare global {
|
|
1030
|
+
interface HTMLNvAlertElementEventMap {
|
|
1031
|
+
"hiddenChanged": boolean;
|
|
1032
|
+
"hiddenChangedComplete": boolean;
|
|
1033
|
+
"closeClicked": MouseEvent;
|
|
1034
|
+
}
|
|
1035
|
+
interface HTMLNvAlertElement extends Components.NvAlert, HTMLStencilElement {
|
|
1036
|
+
addEventListener<K extends keyof HTMLNvAlertElementEventMap>(type: K, listener: (this: HTMLNvAlertElement, ev: NvAlertCustomEvent<HTMLNvAlertElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1037
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1038
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1039
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1040
|
+
removeEventListener<K extends keyof HTMLNvAlertElementEventMap>(type: K, listener: (this: HTMLNvAlertElement, ev: NvAlertCustomEvent<HTMLNvAlertElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1041
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1042
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1043
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1044
|
+
}
|
|
1045
|
+
var HTMLNvAlertElement: {
|
|
1046
|
+
prototype: HTMLNvAlertElement;
|
|
1047
|
+
new (): HTMLNvAlertElement;
|
|
1048
|
+
};
|
|
1049
|
+
interface HTMLNvAvatarElement extends Components.NvAvatar, HTMLStencilElement {
|
|
1050
|
+
}
|
|
1051
|
+
var HTMLNvAvatarElement: {
|
|
1052
|
+
prototype: HTMLNvAvatarElement;
|
|
1053
|
+
new (): HTMLNvAvatarElement;
|
|
1054
|
+
};
|
|
1055
|
+
interface HTMLNvBadgeElementEventMap {
|
|
1056
|
+
"closeClicked": MouseEvent;
|
|
1057
|
+
"hiddenChanged": boolean;
|
|
1058
|
+
"hiddenChangedComplete": boolean;
|
|
1059
|
+
}
|
|
1060
|
+
interface HTMLNvBadgeElement extends Components.NvBadge, HTMLStencilElement {
|
|
1061
|
+
addEventListener<K extends keyof HTMLNvBadgeElementEventMap>(type: K, listener: (this: HTMLNvBadgeElement, ev: NvBadgeCustomEvent<HTMLNvBadgeElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1062
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1063
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1064
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1065
|
+
removeEventListener<K extends keyof HTMLNvBadgeElementEventMap>(type: K, listener: (this: HTMLNvBadgeElement, ev: NvBadgeCustomEvent<HTMLNvBadgeElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1066
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1067
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1068
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1069
|
+
}
|
|
1070
|
+
var HTMLNvBadgeElement: {
|
|
1071
|
+
prototype: HTMLNvBadgeElement;
|
|
1072
|
+
new (): HTMLNvBadgeElement;
|
|
1073
|
+
};
|
|
1074
|
+
/**
|
|
1075
|
+
* @deprecated This is only to help with the migration from v2 to v3. It will be removed in the next major release.
|
|
1076
|
+
*/
|
|
1077
|
+
interface HTMLNvBaseElement extends Components.NvBase, HTMLStencilElement {
|
|
1078
|
+
}
|
|
1079
|
+
var HTMLNvBaseElement: {
|
|
1080
|
+
prototype: HTMLNvBaseElement;
|
|
1081
|
+
new (): HTMLNvBaseElement;
|
|
1082
|
+
};
|
|
1083
|
+
interface HTMLNvButtonElement extends Components.NvButton, HTMLStencilElement {
|
|
1084
|
+
}
|
|
1085
|
+
var HTMLNvButtonElement: {
|
|
1086
|
+
prototype: HTMLNvButtonElement;
|
|
1087
|
+
new (): HTMLNvButtonElement;
|
|
1088
|
+
};
|
|
1089
|
+
interface HTMLNvColElement extends Components.NvCol, HTMLStencilElement {
|
|
1090
|
+
}
|
|
1091
|
+
var HTMLNvColElement: {
|
|
1092
|
+
prototype: HTMLNvColElement;
|
|
1093
|
+
new (): HTMLNvColElement;
|
|
1094
|
+
};
|
|
1095
|
+
interface HTMLNvFieldcheckboxElementEventMap {
|
|
1096
|
+
"checkedChanged": boolean;
|
|
1097
|
+
}
|
|
1098
|
+
interface HTMLNvFieldcheckboxElement extends Components.NvFieldcheckbox, HTMLStencilElement {
|
|
1099
|
+
addEventListener<K extends keyof HTMLNvFieldcheckboxElementEventMap>(type: K, listener: (this: HTMLNvFieldcheckboxElement, ev: NvFieldcheckboxCustomEvent<HTMLNvFieldcheckboxElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1100
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1101
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1102
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1103
|
+
removeEventListener<K extends keyof HTMLNvFieldcheckboxElementEventMap>(type: K, listener: (this: HTMLNvFieldcheckboxElement, ev: NvFieldcheckboxCustomEvent<HTMLNvFieldcheckboxElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1104
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1105
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1106
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1107
|
+
}
|
|
1108
|
+
var HTMLNvFieldcheckboxElement: {
|
|
1109
|
+
prototype: HTMLNvFieldcheckboxElement;
|
|
1110
|
+
new (): HTMLNvFieldcheckboxElement;
|
|
1111
|
+
};
|
|
1112
|
+
interface HTMLNvFieldnumberElementEventMap {
|
|
1113
|
+
"valueChanged": number;
|
|
1114
|
+
}
|
|
1115
|
+
interface HTMLNvFieldnumberElement extends Components.NvFieldnumber, HTMLStencilElement {
|
|
1116
|
+
addEventListener<K extends keyof HTMLNvFieldnumberElementEventMap>(type: K, listener: (this: HTMLNvFieldnumberElement, ev: NvFieldnumberCustomEvent<HTMLNvFieldnumberElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1117
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1118
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1119
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1120
|
+
removeEventListener<K extends keyof HTMLNvFieldnumberElementEventMap>(type: K, listener: (this: HTMLNvFieldnumberElement, ev: NvFieldnumberCustomEvent<HTMLNvFieldnumberElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1121
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1122
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1123
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1124
|
+
}
|
|
1125
|
+
var HTMLNvFieldnumberElement: {
|
|
1126
|
+
prototype: HTMLNvFieldnumberElement;
|
|
1127
|
+
new (): HTMLNvFieldnumberElement;
|
|
1128
|
+
};
|
|
1129
|
+
interface HTMLNvFieldpasswordElementEventMap {
|
|
1130
|
+
"valueChanged": string;
|
|
1131
|
+
}
|
|
1132
|
+
interface HTMLNvFieldpasswordElement extends Components.NvFieldpassword, HTMLStencilElement {
|
|
1133
|
+
addEventListener<K extends keyof HTMLNvFieldpasswordElementEventMap>(type: K, listener: (this: HTMLNvFieldpasswordElement, ev: NvFieldpasswordCustomEvent<HTMLNvFieldpasswordElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1134
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1135
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1136
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1137
|
+
removeEventListener<K extends keyof HTMLNvFieldpasswordElementEventMap>(type: K, listener: (this: HTMLNvFieldpasswordElement, ev: NvFieldpasswordCustomEvent<HTMLNvFieldpasswordElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1138
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1139
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1140
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1141
|
+
}
|
|
1142
|
+
var HTMLNvFieldpasswordElement: {
|
|
1143
|
+
prototype: HTMLNvFieldpasswordElement;
|
|
1144
|
+
new (): HTMLNvFieldpasswordElement;
|
|
1145
|
+
};
|
|
1146
|
+
interface HTMLNvFieldradioElementEventMap {
|
|
1147
|
+
"checkedChanged": boolean;
|
|
1148
|
+
}
|
|
1149
|
+
interface HTMLNvFieldradioElement extends Components.NvFieldradio, HTMLStencilElement {
|
|
1150
|
+
addEventListener<K extends keyof HTMLNvFieldradioElementEventMap>(type: K, listener: (this: HTMLNvFieldradioElement, ev: NvFieldradioCustomEvent<HTMLNvFieldradioElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1151
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1152
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1153
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1154
|
+
removeEventListener<K extends keyof HTMLNvFieldradioElementEventMap>(type: K, listener: (this: HTMLNvFieldradioElement, ev: NvFieldradioCustomEvent<HTMLNvFieldradioElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1155
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1156
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1157
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1158
|
+
}
|
|
1159
|
+
var HTMLNvFieldradioElement: {
|
|
1160
|
+
prototype: HTMLNvFieldradioElement;
|
|
1161
|
+
new (): HTMLNvFieldradioElement;
|
|
1162
|
+
};
|
|
1163
|
+
interface HTMLNvFieldselectElementEventMap {
|
|
1164
|
+
"valueChanged": string;
|
|
1165
|
+
}
|
|
1166
|
+
interface HTMLNvFieldselectElement extends Components.NvFieldselect, HTMLStencilElement {
|
|
1167
|
+
addEventListener<K extends keyof HTMLNvFieldselectElementEventMap>(type: K, listener: (this: HTMLNvFieldselectElement, ev: NvFieldselectCustomEvent<HTMLNvFieldselectElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1168
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1169
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1170
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1171
|
+
removeEventListener<K extends keyof HTMLNvFieldselectElementEventMap>(type: K, listener: (this: HTMLNvFieldselectElement, ev: NvFieldselectCustomEvent<HTMLNvFieldselectElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1172
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1173
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1174
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1175
|
+
}
|
|
1176
|
+
var HTMLNvFieldselectElement: {
|
|
1177
|
+
prototype: HTMLNvFieldselectElement;
|
|
1178
|
+
new (): HTMLNvFieldselectElement;
|
|
1179
|
+
};
|
|
1180
|
+
interface HTMLNvFieldtextElementEventMap {
|
|
1181
|
+
"valueChanged": string;
|
|
1182
|
+
}
|
|
1183
|
+
interface HTMLNvFieldtextElement extends Components.NvFieldtext, HTMLStencilElement {
|
|
1184
|
+
addEventListener<K extends keyof HTMLNvFieldtextElementEventMap>(type: K, listener: (this: HTMLNvFieldtextElement, ev: NvFieldtextCustomEvent<HTMLNvFieldtextElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1185
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1186
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1187
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1188
|
+
removeEventListener<K extends keyof HTMLNvFieldtextElementEventMap>(type: K, listener: (this: HTMLNvFieldtextElement, ev: NvFieldtextCustomEvent<HTMLNvFieldtextElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1189
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1190
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1191
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1192
|
+
}
|
|
1193
|
+
var HTMLNvFieldtextElement: {
|
|
1194
|
+
prototype: HTMLNvFieldtextElement;
|
|
1195
|
+
new (): HTMLNvFieldtextElement;
|
|
1196
|
+
};
|
|
1197
|
+
interface HTMLNvFieldtextareaElementEventMap {
|
|
1198
|
+
"valueChanged": string;
|
|
1199
|
+
}
|
|
1200
|
+
interface HTMLNvFieldtextareaElement extends Components.NvFieldtextarea, HTMLStencilElement {
|
|
1201
|
+
addEventListener<K extends keyof HTMLNvFieldtextareaElementEventMap>(type: K, listener: (this: HTMLNvFieldtextareaElement, ev: NvFieldtextareaCustomEvent<HTMLNvFieldtextareaElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1202
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1203
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1204
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1205
|
+
removeEventListener<K extends keyof HTMLNvFieldtextareaElementEventMap>(type: K, listener: (this: HTMLNvFieldtextareaElement, ev: NvFieldtextareaCustomEvent<HTMLNvFieldtextareaElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1206
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1207
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1208
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1209
|
+
}
|
|
1210
|
+
var HTMLNvFieldtextareaElement: {
|
|
1211
|
+
prototype: HTMLNvFieldtextareaElement;
|
|
1212
|
+
new (): HTMLNvFieldtextareaElement;
|
|
1213
|
+
};
|
|
1214
|
+
interface HTMLNvFieldtoggleElementEventMap {
|
|
1215
|
+
"checkedChanged": boolean;
|
|
1216
|
+
}
|
|
1217
|
+
interface HTMLNvFieldtoggleElement extends Components.NvFieldtoggle, HTMLStencilElement {
|
|
1218
|
+
addEventListener<K extends keyof HTMLNvFieldtoggleElementEventMap>(type: K, listener: (this: HTMLNvFieldtoggleElement, ev: NvFieldtoggleCustomEvent<HTMLNvFieldtoggleElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1219
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1220
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1221
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1222
|
+
removeEventListener<K extends keyof HTMLNvFieldtoggleElementEventMap>(type: K, listener: (this: HTMLNvFieldtoggleElement, ev: NvFieldtoggleCustomEvent<HTMLNvFieldtoggleElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1223
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1224
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1225
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1226
|
+
}
|
|
1227
|
+
var HTMLNvFieldtoggleElement: {
|
|
1228
|
+
prototype: HTMLNvFieldtoggleElement;
|
|
1229
|
+
new (): HTMLNvFieldtoggleElement;
|
|
1230
|
+
};
|
|
1231
|
+
interface HTMLNvIconElement extends Components.NvIcon, HTMLStencilElement {
|
|
1232
|
+
}
|
|
1233
|
+
var HTMLNvIconElement: {
|
|
1234
|
+
prototype: HTMLNvIconElement;
|
|
1235
|
+
new (): HTMLNvIconElement;
|
|
1236
|
+
};
|
|
1237
|
+
interface HTMLNvIconbuttonElement extends Components.NvIconbutton, HTMLStencilElement {
|
|
1238
|
+
}
|
|
1239
|
+
var HTMLNvIconbuttonElement: {
|
|
1240
|
+
prototype: HTMLNvIconbuttonElement;
|
|
1241
|
+
new (): HTMLNvIconbuttonElement;
|
|
1242
|
+
};
|
|
1243
|
+
interface HTMLNvLoaderElement extends Components.NvLoader, HTMLStencilElement {
|
|
1244
|
+
}
|
|
1245
|
+
var HTMLNvLoaderElement: {
|
|
1246
|
+
prototype: HTMLNvLoaderElement;
|
|
1247
|
+
new (): HTMLNvLoaderElement;
|
|
1248
|
+
};
|
|
1249
|
+
interface HTMLNvMenuElementEventMap {
|
|
1250
|
+
"menuitemSelected": MenuitemSelectedEventDetail;
|
|
1251
|
+
}
|
|
1252
|
+
interface HTMLNvMenuElement extends Components.NvMenu, HTMLStencilElement {
|
|
1253
|
+
addEventListener<K extends keyof HTMLNvMenuElementEventMap>(type: K, listener: (this: HTMLNvMenuElement, ev: NvMenuCustomEvent<HTMLNvMenuElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1254
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1255
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1256
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1257
|
+
removeEventListener<K extends keyof HTMLNvMenuElementEventMap>(type: K, listener: (this: HTMLNvMenuElement, ev: NvMenuCustomEvent<HTMLNvMenuElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1258
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1259
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1260
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1261
|
+
}
|
|
1262
|
+
var HTMLNvMenuElement: {
|
|
1263
|
+
prototype: HTMLNvMenuElement;
|
|
1264
|
+
new (): HTMLNvMenuElement;
|
|
1265
|
+
};
|
|
1266
|
+
interface HTMLNvMenuitemElement extends Components.NvMenuitem, HTMLStencilElement {
|
|
1267
|
+
}
|
|
1268
|
+
var HTMLNvMenuitemElement: {
|
|
1269
|
+
prototype: HTMLNvMenuitemElement;
|
|
1270
|
+
new (): HTMLNvMenuitemElement;
|
|
1271
|
+
};
|
|
1272
|
+
interface HTMLNvPopoverElementEventMap {
|
|
1273
|
+
"openChanged": boolean;
|
|
1274
|
+
}
|
|
1275
|
+
interface HTMLNvPopoverElement extends Components.NvPopover, HTMLStencilElement {
|
|
1276
|
+
addEventListener<K extends keyof HTMLNvPopoverElementEventMap>(type: K, listener: (this: HTMLNvPopoverElement, ev: NvPopoverCustomEvent<HTMLNvPopoverElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1277
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1278
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1279
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1280
|
+
removeEventListener<K extends keyof HTMLNvPopoverElementEventMap>(type: K, listener: (this: HTMLNvPopoverElement, ev: NvPopoverCustomEvent<HTMLNvPopoverElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1281
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1282
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1283
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1284
|
+
}
|
|
1285
|
+
var HTMLNvPopoverElement: {
|
|
1286
|
+
prototype: HTMLNvPopoverElement;
|
|
1287
|
+
new (): HTMLNvPopoverElement;
|
|
1288
|
+
};
|
|
1289
|
+
interface HTMLNvRowElement extends Components.NvRow, HTMLStencilElement {
|
|
1290
|
+
}
|
|
1291
|
+
var HTMLNvRowElement: {
|
|
1292
|
+
prototype: HTMLNvRowElement;
|
|
1293
|
+
new (): HTMLNvRowElement;
|
|
1294
|
+
};
|
|
1295
|
+
/**
|
|
1296
|
+
* @deprecated Please use tailwind classes instead
|
|
1297
|
+
*/
|
|
1298
|
+
interface HTMLNvStackElement extends Components.NvStack, HTMLStencilElement {
|
|
1299
|
+
}
|
|
1300
|
+
var HTMLNvStackElement: {
|
|
1301
|
+
prototype: HTMLNvStackElement;
|
|
1302
|
+
new (): HTMLNvStackElement;
|
|
1303
|
+
};
|
|
1304
|
+
interface HTMLNvTooltipElement extends Components.NvTooltip, HTMLStencilElement {
|
|
1305
|
+
}
|
|
1306
|
+
var HTMLNvTooltipElement: {
|
|
1307
|
+
prototype: HTMLNvTooltipElement;
|
|
1308
|
+
new (): HTMLNvTooltipElement;
|
|
1309
|
+
};
|
|
1310
|
+
interface HTMLElementTagNameMap {
|
|
1311
|
+
"nv-alert": HTMLNvAlertElement;
|
|
1312
|
+
"nv-avatar": HTMLNvAvatarElement;
|
|
1313
|
+
"nv-badge": HTMLNvBadgeElement;
|
|
1314
|
+
"nv-base": HTMLNvBaseElement;
|
|
1315
|
+
"nv-button": HTMLNvButtonElement;
|
|
1316
|
+
"nv-col": HTMLNvColElement;
|
|
1317
|
+
"nv-fieldcheckbox": HTMLNvFieldcheckboxElement;
|
|
1318
|
+
"nv-fieldnumber": HTMLNvFieldnumberElement;
|
|
1319
|
+
"nv-fieldpassword": HTMLNvFieldpasswordElement;
|
|
1320
|
+
"nv-fieldradio": HTMLNvFieldradioElement;
|
|
1321
|
+
"nv-fieldselect": HTMLNvFieldselectElement;
|
|
1322
|
+
"nv-fieldtext": HTMLNvFieldtextElement;
|
|
1323
|
+
"nv-fieldtextarea": HTMLNvFieldtextareaElement;
|
|
1324
|
+
"nv-fieldtoggle": HTMLNvFieldtoggleElement;
|
|
1325
|
+
"nv-icon": HTMLNvIconElement;
|
|
1326
|
+
"nv-iconbutton": HTMLNvIconbuttonElement;
|
|
1327
|
+
"nv-loader": HTMLNvLoaderElement;
|
|
1328
|
+
"nv-menu": HTMLNvMenuElement;
|
|
1329
|
+
"nv-menuitem": HTMLNvMenuitemElement;
|
|
1330
|
+
"nv-popover": HTMLNvPopoverElement;
|
|
1331
|
+
"nv-row": HTMLNvRowElement;
|
|
1332
|
+
"nv-stack": HTMLNvStackElement;
|
|
1333
|
+
"nv-tooltip": HTMLNvTooltipElement;
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
declare namespace LocalJSX {
|
|
1337
|
+
interface NvAlert {
|
|
1338
|
+
/**
|
|
1339
|
+
* Defines color of the alert.
|
|
1340
|
+
* @deprecated use feedback instead.
|
|
1341
|
+
*/
|
|
1342
|
+
"color"?: `${DeprecatedSemanticColors}`;
|
|
1343
|
+
/**
|
|
1344
|
+
* Allows the alert to be dismissed via a close button (x). The alert is not dismissible unless explicitly enabled.
|
|
1345
|
+
*/
|
|
1346
|
+
"dismissible"?: boolean;
|
|
1347
|
+
/**
|
|
1348
|
+
* Specifies the alert type which determines the color and default icon.
|
|
1349
|
+
*/
|
|
1350
|
+
"feedback"?: `${FeedbackColors}`;
|
|
1351
|
+
/**
|
|
1352
|
+
* Short and concise text for the alert title.
|
|
1353
|
+
*/
|
|
1354
|
+
"heading"?: string;
|
|
1355
|
+
/**
|
|
1356
|
+
* Controls the visibility of the alert. Will animate with fade and collapse.
|
|
1357
|
+
*/
|
|
1358
|
+
"hidden"?: boolean;
|
|
1359
|
+
/**
|
|
1360
|
+
* Icon associated with the alert, defaults vary based on the feedback type.
|
|
1361
|
+
*/
|
|
1362
|
+
"icon"?: string;
|
|
1363
|
+
/**
|
|
1364
|
+
* Main content of the alert. For more complex content, use the default slot instead.
|
|
1365
|
+
*/
|
|
1366
|
+
"message"?: string;
|
|
1367
|
+
/**
|
|
1368
|
+
* Emitted when the close button is clicked.
|
|
1369
|
+
*/
|
|
1370
|
+
"onCloseClicked"?: (event: NvAlertCustomEvent<MouseEvent>) => void;
|
|
1371
|
+
/**
|
|
1372
|
+
* Emits when the 'hidden' prop changes, reflecting a change in visibility. Passes hidden value to the detail.
|
|
1373
|
+
* @bind hidden
|
|
1374
|
+
*/
|
|
1375
|
+
"onHiddenChanged"?: (event: NvAlertCustomEvent<boolean>) => void;
|
|
1376
|
+
/**
|
|
1377
|
+
* Emitted when the animations complete, detail includes the hidden value.
|
|
1378
|
+
*/
|
|
1379
|
+
"onHiddenChangedComplete"?: (event: NvAlertCustomEvent<boolean>) => void;
|
|
1380
|
+
/**
|
|
1381
|
+
* When true, the alert does not automatically close upon dismissing. Useful for externally controlled component behavior.
|
|
1382
|
+
*/
|
|
1383
|
+
"preventAutoClose"?: boolean;
|
|
1384
|
+
}
|
|
1385
|
+
interface NvAvatar {
|
|
1386
|
+
/**
|
|
1387
|
+
* If and image is provided, add an alt tag to describe it.
|
|
1388
|
+
*/
|
|
1389
|
+
"alt"?: string;
|
|
1390
|
+
/**
|
|
1391
|
+
* You can apply different colors on the Avatar. Use a string number between 1 and 10.
|
|
1392
|
+
*/
|
|
1393
|
+
"color"?: string;
|
|
1394
|
+
/**
|
|
1395
|
+
* Initials of the avatar. Usually use two letters When filled with the src parameter, the text will not be rendered.
|
|
1396
|
+
*/
|
|
1397
|
+
"initials"?: string;
|
|
1398
|
+
/**
|
|
1399
|
+
* Set size to Large to the avatar.
|
|
1400
|
+
* @deprecated use size instead.
|
|
1401
|
+
*/
|
|
1402
|
+
"large"?: boolean;
|
|
1403
|
+
/**
|
|
1404
|
+
* Set size to Medium to the avatar.
|
|
1405
|
+
* @deprecated use size instead.
|
|
1406
|
+
*/
|
|
1407
|
+
"medium"?: boolean;
|
|
1408
|
+
/**
|
|
1409
|
+
* Define the size of the avatar. You can use t-shirt sizes.
|
|
1410
|
+
*/
|
|
1411
|
+
"size"?: `${SemanticSizes}`;
|
|
1412
|
+
/**
|
|
1413
|
+
* Set size to Small to the avatar.
|
|
1414
|
+
* @deprecated use size instead.
|
|
1415
|
+
*/
|
|
1416
|
+
"small"?: boolean;
|
|
1417
|
+
/**
|
|
1418
|
+
* Will insert an image into the avatar.
|
|
1419
|
+
*/
|
|
1420
|
+
"src"?: string;
|
|
1421
|
+
/**
|
|
1422
|
+
* Set initials to the avatar.
|
|
1423
|
+
* @deprecated use initials instead.
|
|
1424
|
+
*/
|
|
1425
|
+
"text"?: string;
|
|
1426
|
+
/**
|
|
1427
|
+
* Set src to the avatar.
|
|
1428
|
+
* @deprecated use src instead.
|
|
1429
|
+
*/
|
|
1430
|
+
"url"?: string;
|
|
1431
|
+
/**
|
|
1432
|
+
* Set size to ExtraLarge to the avatar.
|
|
1433
|
+
* @deprecated use size instead.
|
|
1434
|
+
*/
|
|
1435
|
+
"xlarge"?: boolean;
|
|
1436
|
+
/**
|
|
1437
|
+
* Set size to ExtraSmall to the avatar.
|
|
1438
|
+
* @deprecated use size instead.
|
|
1439
|
+
*/
|
|
1440
|
+
"xsmall"?: boolean;
|
|
1441
|
+
}
|
|
1442
|
+
interface NvBadge {
|
|
1443
|
+
/**
|
|
1444
|
+
* The color of the badge. Use a string between 1 to 5
|
|
1445
|
+
*/
|
|
1446
|
+
"color"?: string;
|
|
1447
|
+
/**
|
|
1448
|
+
* Whether the badge is dismissible.
|
|
1449
|
+
* @deprecated use dismissible instead.
|
|
1450
|
+
*/
|
|
1451
|
+
"dismissal"?: boolean;
|
|
1452
|
+
/**
|
|
1453
|
+
* Whether the badge is dismissible.
|
|
1454
|
+
*/
|
|
1455
|
+
"dismissible"?: boolean;
|
|
1456
|
+
/**
|
|
1457
|
+
* Controls the visibility of the badge. Will animate with fade and collapse.
|
|
1458
|
+
*/
|
|
1459
|
+
"hidden"?: boolean;
|
|
1460
|
+
/**
|
|
1461
|
+
* The icon to display in the badge.
|
|
1462
|
+
* @deprecated use leadIcon or slot="leading-icon" instead.
|
|
1463
|
+
*/
|
|
1464
|
+
"icon"?: string;
|
|
1465
|
+
/**
|
|
1466
|
+
* The location of the icon in the badge.
|
|
1467
|
+
* @deprecated only leadIcon now.
|
|
1468
|
+
*/
|
|
1469
|
+
"iconLocation"?: 'left' | 'right';
|
|
1470
|
+
/**
|
|
1471
|
+
* Main content of the badge.
|
|
1472
|
+
*/
|
|
1473
|
+
"label"?: string | null;
|
|
1474
|
+
/**
|
|
1475
|
+
* The lead icon of the badge.
|
|
1476
|
+
*/
|
|
1477
|
+
"leadIcon"?: string | null;
|
|
1478
|
+
/**
|
|
1479
|
+
* Emitted when the badge is dismissed.
|
|
1480
|
+
*/
|
|
1481
|
+
"onCloseClicked"?: (event: NvBadgeCustomEvent<MouseEvent>) => void;
|
|
1482
|
+
/**
|
|
1483
|
+
* Emits when the 'hidden' prop changes, reflecting a change in visibility. Passes hidden value to the detail.
|
|
1484
|
+
*/
|
|
1485
|
+
"onHiddenChanged"?: (event: NvBadgeCustomEvent<boolean>) => void;
|
|
1486
|
+
/**
|
|
1487
|
+
* Emitted when the animations complete, detail includes the hidden value.
|
|
1488
|
+
*/
|
|
1489
|
+
"onHiddenChangedComplete"?: (event: NvBadgeCustomEvent<boolean>) => void;
|
|
1490
|
+
/**
|
|
1491
|
+
* When true, the alert does not automatically close upon dismissing. Useful for externally controlled component behavior.
|
|
1492
|
+
*/
|
|
1493
|
+
"preventAutoClose"?: boolean;
|
|
1494
|
+
}
|
|
1495
|
+
/**
|
|
1496
|
+
* @deprecated This is only to help with the migration from v2 to v3. It will be removed in the next major release.
|
|
1497
|
+
*/
|
|
1498
|
+
interface NvBase {
|
|
1499
|
+
}
|
|
1500
|
+
interface NvButton {
|
|
1501
|
+
/**
|
|
1502
|
+
* Applies styling that visually indicates the button represents a dangerous action.
|
|
1503
|
+
*/
|
|
1504
|
+
"danger"?: boolean;
|
|
1505
|
+
/**
|
|
1506
|
+
* Disables the button, preventing user interaction.
|
|
1507
|
+
*/
|
|
1508
|
+
"disabled"?: boolean;
|
|
1509
|
+
/**
|
|
1510
|
+
* Adjusts the button's emphasis to make it more or less visually prominent to users. Use this to draw attention to important actions or reduce focus on less critical ones
|
|
1511
|
+
*/
|
|
1512
|
+
"emphasis"?: `${ButtonEmphasis}`;
|
|
1513
|
+
/**
|
|
1514
|
+
* Allows the button to stretch and fill the entire width of its container.
|
|
1515
|
+
*/
|
|
1516
|
+
"fluid"?: boolean;
|
|
1517
|
+
/**
|
|
1518
|
+
* Set this to true to show a spinner on the button, letting users know that their action is being processed. It helps improve user experience by indicating ongoing activities.
|
|
1519
|
+
*/
|
|
1520
|
+
"loading"?: boolean;
|
|
1521
|
+
/**
|
|
1522
|
+
* Determines how large or small the button appears, allowing for customization of the button's dimensions to fit different design specifications and user needs.
|
|
1523
|
+
*/
|
|
1524
|
+
"size"?: `${ButtonSize}`;
|
|
1525
|
+
/**
|
|
1526
|
+
* Sets the button type to control its function in forms. Use 'submit' to send form data, 'reset' to clear the form, or 'button' for a standard button that doesn’t interact with form submission by default.
|
|
1527
|
+
*/
|
|
1528
|
+
"type"?: `${ButtonType}`;
|
|
1529
|
+
}
|
|
1530
|
+
interface NvCol {
|
|
1531
|
+
/**
|
|
1532
|
+
* Defines the column size based on a 12 column grid system.
|
|
1533
|
+
*/
|
|
1534
|
+
"size"?: number;
|
|
1535
|
+
}
|
|
1536
|
+
interface NvFieldcheckbox {
|
|
1537
|
+
/**
|
|
1538
|
+
* Indicates whether the checkbox is checked or not.
|
|
1539
|
+
*/
|
|
1540
|
+
"checked"?: boolean;
|
|
1541
|
+
/**
|
|
1542
|
+
* A description providing additional context or information about the checkbox.
|
|
1543
|
+
*/
|
|
1544
|
+
"description"?: string;
|
|
1545
|
+
/**
|
|
1546
|
+
* Disables the checkbox, preventing user interaction.
|
|
1547
|
+
*/
|
|
1548
|
+
"disabled"?: boolean;
|
|
1549
|
+
/**
|
|
1550
|
+
* Signals that there is an error associated with the checkbox, which can trigger visual cues.
|
|
1551
|
+
*/
|
|
1552
|
+
"error"?: boolean;
|
|
1553
|
+
/**
|
|
1554
|
+
* A description that appears when there is an error related to the checkbox.
|
|
1555
|
+
*/
|
|
1556
|
+
"errorDescription"?: string;
|
|
1557
|
+
/**
|
|
1558
|
+
* Hides the label visually while still keeping it available for screen readers.
|
|
1559
|
+
*/
|
|
1560
|
+
"hideLabel"?: boolean;
|
|
1561
|
+
/**
|
|
1562
|
+
* Indicates whether the checkbox is in an indeterminate state, typically used for hierarchical checkboxes.
|
|
1563
|
+
*/
|
|
1564
|
+
"indeterminate"?: boolean;
|
|
1565
|
+
/**
|
|
1566
|
+
* Sets the ID for the radio button’s input element and the for attribute of the associated label. If no ID is provided, a random one will be automatically generated to ensure unique identification, facilitating proper label association and accessibility.
|
|
1567
|
+
*/
|
|
1568
|
+
"inputId"?: string;
|
|
1569
|
+
/**
|
|
1570
|
+
* The label displayed next to the checkbox.
|
|
1571
|
+
*/
|
|
1572
|
+
"label"?: string;
|
|
1573
|
+
/**
|
|
1574
|
+
* When true, the label will be placed before the checkbox.
|
|
1575
|
+
* @deprecated Use `labelPlacement = end` instead.
|
|
1576
|
+
*/
|
|
1577
|
+
"labelBefore"?: boolean;
|
|
1578
|
+
/**
|
|
1579
|
+
* Determines the position of the label relative to the checkbox, either 'start' (before) or 'end' (after).
|
|
1580
|
+
*/
|
|
1581
|
+
"labelPlacement"?: `${FieldLabelPlacement}`;
|
|
1582
|
+
/**
|
|
1583
|
+
* Message define a 'hint ' message for the Field.
|
|
1584
|
+
* @deprecated Use `description` instead.
|
|
1585
|
+
*/
|
|
1586
|
+
"message"?: string;
|
|
1587
|
+
/**
|
|
1588
|
+
* The name attribute for the checkbox input, used to reference the form data after submission.
|
|
1589
|
+
*/
|
|
1590
|
+
"name"?: string;
|
|
1591
|
+
/**
|
|
1592
|
+
* Emits when the checked state changes.
|
|
1593
|
+
* @bind checked
|
|
1594
|
+
*/
|
|
1595
|
+
"onCheckedChanged"?: (event: NvFieldcheckboxCustomEvent<boolean>) => void;
|
|
1596
|
+
/**
|
|
1597
|
+
* Sets the checkbox to read-only, preventing user changes but still allowing focus and selection of text.
|
|
1598
|
+
*/
|
|
1599
|
+
"readonly"?: boolean;
|
|
1600
|
+
/**
|
|
1601
|
+
* Marks the checkbox as required, indicating that it must be checked for form submission.
|
|
1602
|
+
*/
|
|
1603
|
+
"required"?: boolean;
|
|
1604
|
+
/**
|
|
1605
|
+
* The text for the validation message.
|
|
1606
|
+
* @deprecated Use `errorDescription` instead.
|
|
1607
|
+
*/
|
|
1608
|
+
"validation"?: string;
|
|
1609
|
+
/**
|
|
1610
|
+
* The value attribute of the checkbox input, representing the value sent on form submission when the checkbox is checked. When the form is submitted, the data will consist of a name=value pair.
|
|
1611
|
+
*/
|
|
1612
|
+
"value"?: string;
|
|
1613
|
+
}
|
|
1614
|
+
interface NvFieldnumber {
|
|
1615
|
+
/**
|
|
1616
|
+
* Add helpful hints or extra information under the text input field. This is where you can clarify what users should enter or provide additional instructions, making the form easier to fill out correctly.
|
|
1617
|
+
*/
|
|
1618
|
+
"description"?: string;
|
|
1619
|
+
/**
|
|
1620
|
+
* The disabled prop lets you turn off the input field so that users can’t type in it. When disabled, the field is grayed out and won’t respond to# clicks or touches.
|
|
1621
|
+
*/
|
|
1622
|
+
"disabled"?: boolean;
|
|
1623
|
+
/**
|
|
1624
|
+
* Alters the input field’s appearance to indicate an error, helping users identify fields that need correction.
|
|
1625
|
+
* @validator error
|
|
1626
|
+
*/
|
|
1627
|
+
"error"?: boolean;
|
|
1628
|
+
/**
|
|
1629
|
+
* Show a helpful message under the input field when there’s a problem. It explains what’s wrong and how users can fix it, making the error easier to understand and resolve.
|
|
1630
|
+
* @validator message
|
|
1631
|
+
*/
|
|
1632
|
+
"errorDescription"?: string;
|
|
1633
|
+
/**
|
|
1634
|
+
* Sets the ID for the input element and the for attribute of the associated label. If no ID is provided, a random one will be automatically generated to ensure unique identification, facilitating proper label association and accessibility.
|
|
1635
|
+
*/
|
|
1636
|
+
"inputId"?: string;
|
|
1637
|
+
/**
|
|
1638
|
+
* Lets you define the text that explains what users should enter in the text input field. It’s a crucial element for making forms clear and user-friendly.
|
|
1639
|
+
*/
|
|
1640
|
+
"label"?: string;
|
|
1641
|
+
/**
|
|
1642
|
+
* The maximum value that the input field can accept. Use this in combination with min to create a range of valid values.
|
|
1643
|
+
*/
|
|
1644
|
+
"max"?: number;
|
|
1645
|
+
/**
|
|
1646
|
+
* Message defines a 'hint ' message for the number field.
|
|
1647
|
+
* @deprecated use description instead.
|
|
1648
|
+
*/
|
|
1649
|
+
"message"?: string;
|
|
1650
|
+
/**
|
|
1651
|
+
* The minimum value that the input field can accept. Use this in combination with max to create a range of valid values.
|
|
1652
|
+
*/
|
|
1653
|
+
"min"?: number;
|
|
1654
|
+
/**
|
|
1655
|
+
* Defines the name attribute of the input field, which is crucial for form submission. This value is used as the key in the key-value pair sent to the server, representing the input’s data in form submissions. It should be unique within the form to avoid conflicts
|
|
1656
|
+
*/
|
|
1657
|
+
"name"?: string;
|
|
1658
|
+
/**
|
|
1659
|
+
* Emitted when the input value changes.
|
|
1660
|
+
* @bind value
|
|
1661
|
+
*/
|
|
1662
|
+
"onValueChanged"?: (event: NvFieldnumberCustomEvent<number>) => void;
|
|
1663
|
+
/**
|
|
1664
|
+
* Display temporary text inside the input field to give users a hint about what to type. It’s a great way to provide examples or suggestions directly in the field before they start typing.
|
|
1665
|
+
*/
|
|
1666
|
+
"placeholder"?: string;
|
|
1667
|
+
/**
|
|
1668
|
+
* Display the input field’s content without allowing users to change it. Users can still click on it, select, and copy the text, but they won’t be able to type or delete anything.
|
|
1669
|
+
*/
|
|
1670
|
+
"readonly"?: boolean;
|
|
1671
|
+
/**
|
|
1672
|
+
* Marks the input field as required, ensuring that the user must fill it out before submitting the form.
|
|
1673
|
+
*/
|
|
1674
|
+
"required"?: boolean;
|
|
1675
|
+
/**
|
|
1676
|
+
* Define the increment value for the input field. It determines how much the value will increase or decrease when the user clicks the stepper buttons.
|
|
1677
|
+
*/
|
|
1678
|
+
"step"?: number;
|
|
1679
|
+
/**
|
|
1680
|
+
* Changes the input field’s appearance to indicate successful input or validation.
|
|
1681
|
+
*/
|
|
1682
|
+
"success"?: boolean;
|
|
1683
|
+
/**
|
|
1684
|
+
* Add the message to the validation state.
|
|
1685
|
+
* @deprecated use errorDescription and set the error prop instead.
|
|
1686
|
+
*/
|
|
1687
|
+
"validation"?: string;
|
|
1688
|
+
/**
|
|
1689
|
+
* The value of the input field. It’s the text that users type in or the value that you set programmatically. This is the main way to interact with the input field, and it’s essential for creating forms that users can fill out.
|
|
1690
|
+
*/
|
|
1691
|
+
"value"?: number;
|
|
1692
|
+
}
|
|
1693
|
+
interface NvFieldpassword {
|
|
1694
|
+
/**
|
|
1695
|
+
* The autocomplete prop helps users fill out the input field faster by suggesting entries they’ve used before, like their email or address. You can turn it on to make forms more convenient or off to ensure users always type in fresh data.
|
|
1696
|
+
*/
|
|
1697
|
+
"autocomplete"?: `${TextInputAutocomplete}`;
|
|
1698
|
+
/**
|
|
1699
|
+
* Add helpful hints or extra information under the text input field. This is where you can clarify what users should enter or provide additional instructions, making the form easier to fill out correctly.
|
|
1700
|
+
*/
|
|
1701
|
+
"description"?: string;
|
|
1702
|
+
/**
|
|
1703
|
+
* The disabled prop lets you turn off the input field so that users can’t type in it. When disabled, the field is grayed out and won’t respond to# clicks or touches.
|
|
1704
|
+
*/
|
|
1705
|
+
"disabled"?: boolean;
|
|
1706
|
+
/**
|
|
1707
|
+
* Alters the input field’s appearance to indicate an error, helping users identify fields that need correction.
|
|
1708
|
+
* @validator error
|
|
1709
|
+
*/
|
|
1710
|
+
"error"?: boolean;
|
|
1711
|
+
/**
|
|
1712
|
+
* A description that appears when there is an error related to the password field.
|
|
1713
|
+
* @validator message
|
|
1714
|
+
*/
|
|
1715
|
+
"errorDescription"?: string;
|
|
1716
|
+
/**
|
|
1717
|
+
* Hide the button to show/hide the password.
|
|
1718
|
+
*/
|
|
1719
|
+
"hidePasswordIcon"?: boolean;
|
|
1720
|
+
/**
|
|
1721
|
+
* Sets the ID for the input element and the for attribute of the associated label. If no ID is provided, a random one will be automatically generated to ensure unique identification, facilitating proper label association and accessibility.
|
|
1722
|
+
*/
|
|
1723
|
+
"inputId"?: string;
|
|
1724
|
+
/**
|
|
1725
|
+
* Lets you define the text that explains what users should enter in the text input field. It’s a crucial element for making forms clear and user-friendly.
|
|
1726
|
+
*/
|
|
1727
|
+
"label"?: string;
|
|
1728
|
+
/**
|
|
1729
|
+
* Limits how many characters users can type into the input field. It’s helpful for making sure users don’t enter too much information, keeping their input within the allowed limit.
|
|
1730
|
+
*/
|
|
1731
|
+
"maxlength"?: number;
|
|
1732
|
+
/**
|
|
1733
|
+
* Ensures that users type at least a certain number of characters into the input field. It’s a way to make sure users provide enough information before moving on.
|
|
1734
|
+
*/
|
|
1735
|
+
"minlength"?: number;
|
|
1736
|
+
/**
|
|
1737
|
+
* Defines the type of the input.
|
|
1738
|
+
* @default 'text'
|
|
1739
|
+
*/
|
|
1740
|
+
"mode"?: 'text' | 'number';
|
|
1741
|
+
/**
|
|
1742
|
+
* Defines the name attribute of the input field, which is crucial for form submission. This value is used as the key in the key-value pair sent to the server, representing the input’s data in form submissions. It should be unique within the form to avoid conflicts
|
|
1743
|
+
*/
|
|
1744
|
+
"name"?: string;
|
|
1745
|
+
/**
|
|
1746
|
+
* Emitted when the input value changes.
|
|
1747
|
+
* @bind value
|
|
1748
|
+
*/
|
|
1749
|
+
"onValueChanged"?: (event: NvFieldpasswordCustomEvent<string>) => void;
|
|
1750
|
+
/**
|
|
1751
|
+
* Set rules for how the input should be formatted. For example, you can require that a phone number includes only digits or that an email address has the correct format. If users don’t follow these rules, they’ll get a prompt to correct their input. the rules are applied to the input value via regexes.
|
|
1752
|
+
*/
|
|
1753
|
+
"pattern"?: string;
|
|
1754
|
+
/**
|
|
1755
|
+
* Display temporary text inside the input field to give users a hint about what to type. It’s a great way to provide examples or suggestions directly in the field before they start typing.
|
|
1756
|
+
*/
|
|
1757
|
+
"placeholder"?: string;
|
|
1758
|
+
/**
|
|
1759
|
+
* Display the input field’s content without allowing users to change it. Users can still click on it, select, and copy the text, but they won’t be able to type or delete anything.
|
|
1760
|
+
*/
|
|
1761
|
+
"readonly"?: boolean;
|
|
1762
|
+
/**
|
|
1763
|
+
* Marks the input field as required, ensuring that the user must fill it out before submitting the form.
|
|
1764
|
+
*/
|
|
1765
|
+
"required"?: boolean;
|
|
1766
|
+
/**
|
|
1767
|
+
* Show/hide the password programmatically.
|
|
1768
|
+
*/
|
|
1769
|
+
"showPassword"?: boolean;
|
|
1770
|
+
/**
|
|
1771
|
+
* Changes the input field’s appearance to indicate successful input or validation.
|
|
1772
|
+
*/
|
|
1773
|
+
"success"?: boolean;
|
|
1774
|
+
/**
|
|
1775
|
+
* Specifies the value of the input field, which determines the text displayed within the field. This prop is typically used in controlled components where the input’s value is managed by the component’s state.
|
|
1776
|
+
*/
|
|
1777
|
+
"value"?: string;
|
|
1778
|
+
}
|
|
1779
|
+
interface NvFieldradio {
|
|
1780
|
+
/**
|
|
1781
|
+
* Controls whether the radio button is selected.
|
|
1782
|
+
*/
|
|
1783
|
+
"checked"?: boolean;
|
|
1784
|
+
/**
|
|
1785
|
+
* Adds a helpful hint message below the label. This description provides extra information or context about the radio button option, assisting users in making more informed choices.
|
|
1786
|
+
*/
|
|
1787
|
+
"description"?: string;
|
|
1788
|
+
/**
|
|
1789
|
+
* Disables the radio button, making it un-selectable.
|
|
1790
|
+
*/
|
|
1791
|
+
"disabled"?: boolean;
|
|
1792
|
+
/**
|
|
1793
|
+
* Highlight the radio button with error styling. It helps users quickly identify which option needs attention, improving their form-filling experience by making issues more visible.
|
|
1794
|
+
* @validator error
|
|
1795
|
+
*/
|
|
1796
|
+
"error"?: boolean;
|
|
1797
|
+
/**
|
|
1798
|
+
* A description that appears when there is an error related to the radio button.
|
|
1799
|
+
* @validator message
|
|
1800
|
+
*/
|
|
1801
|
+
"errorDescription"?: string;
|
|
1802
|
+
/**
|
|
1803
|
+
* Sets the ID for the radio button’s input element and the for attribute of the associated label. If no ID is provided, a random one will be automatically generated to ensure unique identification, facilitating proper label association and accessibility.
|
|
1804
|
+
*/
|
|
1805
|
+
"inputId"?: string;
|
|
1806
|
+
/**
|
|
1807
|
+
* Sets the text content that is rendered next to the input element of type radio. This label is essential for accessibility and user clarity, as it describes the purpose or option of the radio button.
|
|
1808
|
+
*/
|
|
1809
|
+
"label"?: string;
|
|
1810
|
+
/**
|
|
1811
|
+
* Set the label placement to before the input
|
|
1812
|
+
* @deprecated use labelPlacement instead.
|
|
1813
|
+
*/
|
|
1814
|
+
"labelBefore"?: boolean;
|
|
1815
|
+
/**
|
|
1816
|
+
* Defines the position of the label relative to the radio button.
|
|
1817
|
+
*/
|
|
1818
|
+
"labelPlacement"?: `${FieldLabelPlacement}`;
|
|
1819
|
+
/**
|
|
1820
|
+
* Adds a helpful hint message below the label
|
|
1821
|
+
* @deprecated use description instead.
|
|
1822
|
+
*/
|
|
1823
|
+
"message"?: string;
|
|
1824
|
+
/**
|
|
1825
|
+
* Use this to assign a group name to your radio buttons. When you have multiple radio buttons with the same name, users will be able to select only one option within that group, making your forms more organized and user-friendly.
|
|
1826
|
+
*/
|
|
1827
|
+
"name"?: string;
|
|
1828
|
+
/**
|
|
1829
|
+
* Emits when the checked state changes.
|
|
1830
|
+
* @bind checked
|
|
1831
|
+
*/
|
|
1832
|
+
"onCheckedChanged"?: (event: NvFieldradioCustomEvent<boolean>) => void;
|
|
1833
|
+
/**
|
|
1834
|
+
* Defines what data will be sent when the radio button is selected. This helps you identify which option the user has chosen in your form, ensuring accurate data collection. When the form is submitted, the data will consist of a name=value pair.
|
|
1835
|
+
*/
|
|
1836
|
+
"value"?: string;
|
|
1837
|
+
}
|
|
1838
|
+
interface NvFieldselect {
|
|
1839
|
+
/**
|
|
1840
|
+
* Add helpful hints or extra information under the select field. This is where you can clarify what users should choose or provide additional instructions, making the form easier to fill out correctly.
|
|
1841
|
+
*/
|
|
1842
|
+
"description"?: string;
|
|
1843
|
+
/**
|
|
1844
|
+
* The disabled prop lets you turn off the select field so that users can’t choose something. When disabled, the field is grayed out and won’t respond to clicks or touches.
|
|
1845
|
+
*/
|
|
1846
|
+
"disabled"?: boolean;
|
|
1847
|
+
/**
|
|
1848
|
+
* When enabled, displays the value element instead of the label when readonly. By default, the label is displayed in readonly mode. Also it automatically sets the component to readonly.
|
|
1849
|
+
*/
|
|
1850
|
+
"displayValue"?: boolean;
|
|
1851
|
+
/**
|
|
1852
|
+
* Alters the select field’s appearance to indicate an error, helping users identify fields that need correction.
|
|
1853
|
+
* @validator error
|
|
1854
|
+
*/
|
|
1855
|
+
"error"?: boolean;
|
|
1856
|
+
/**
|
|
1857
|
+
* Show a helpful message under the select field when there’s a problem. It explains what’s wrong and how users can fix it, making the error easier to understand and resolve.
|
|
1858
|
+
* @validator message
|
|
1859
|
+
*/
|
|
1860
|
+
"errorDescription"?: string;
|
|
1861
|
+
/**
|
|
1862
|
+
* Lets you define the text that explains what users should choose in the select field. It’s a crucial element for making forms clear and user-friendly.
|
|
1863
|
+
*/
|
|
1864
|
+
"label"?: string;
|
|
1865
|
+
/**
|
|
1866
|
+
* Message defines a 'hint ' message for the Select Field.
|
|
1867
|
+
* @deprecated use description instead.
|
|
1868
|
+
*/
|
|
1869
|
+
"message"?: string;
|
|
1870
|
+
/**
|
|
1871
|
+
* When enabled, allows the select to handle multiple selections.
|
|
1872
|
+
*/
|
|
1873
|
+
"multiple"?: boolean;
|
|
1874
|
+
/**
|
|
1875
|
+
* Defines the name attribute of the select field, which is crucial for form submission. This value is used as the key in the key-value pair sent to the server, representing the selected data in form submissions. It should be unique within the form to avoid conflicts
|
|
1876
|
+
*/
|
|
1877
|
+
"name"?: string;
|
|
1878
|
+
/**
|
|
1879
|
+
* Emitted when the selected value changes.
|
|
1880
|
+
* @bind value
|
|
1881
|
+
*/
|
|
1882
|
+
"onValueChanged"?: (event: NvFieldselectCustomEvent<string>) => void;
|
|
1883
|
+
/**
|
|
1884
|
+
* Display the select field’s content without allowing users to change it. Users can still click on it, select, and copy the text, but they won’t be able to change or delete anything.
|
|
1885
|
+
*/
|
|
1886
|
+
"readonly"?: boolean;
|
|
1887
|
+
/**
|
|
1888
|
+
* Marks the select field as required, ensuring that the user must fill it out before submitting the form.
|
|
1889
|
+
*/
|
|
1890
|
+
"required"?: boolean;
|
|
1891
|
+
/**
|
|
1892
|
+
* Sets the ID for the select element and the for attribute of the associated label. If no ID is provided, a random one will be automatically generated to ensure unique identification, facilitating proper label association and accessibility.
|
|
1893
|
+
*/
|
|
1894
|
+
"selectId"?: string;
|
|
1895
|
+
/**
|
|
1896
|
+
* Changes the select field’s appearance to indicate successful input or validation.
|
|
1897
|
+
*/
|
|
1898
|
+
"success"?: boolean;
|
|
1899
|
+
/**
|
|
1900
|
+
* Add the message to the validation state.
|
|
1901
|
+
* @deprecated use errorDescription and set the error prop instead.
|
|
1902
|
+
*/
|
|
1903
|
+
"validation"?: string;
|
|
1904
|
+
/**
|
|
1905
|
+
* The value of the select field. - If `multiple` is `false`, it's a single string. - If `multiple` is `true`, it's a comma-separated string of selected values.
|
|
1906
|
+
*/
|
|
1907
|
+
"value"?: string;
|
|
1908
|
+
}
|
|
1909
|
+
interface NvFieldtext {
|
|
1910
|
+
/**
|
|
1911
|
+
* The autocomplete prop helps users fill out the input field faster by suggesting entries they’ve used before, like their email or address. You can turn it on to make forms more convenient or off to ensure users always type in fresh data.
|
|
1912
|
+
*/
|
|
1913
|
+
"autocomplete"?: `${TextInputAutocomplete}`;
|
|
1914
|
+
/**
|
|
1915
|
+
* Add helpful hints or extra information under the text input field. This is where you can clarify what users should enter or provide additional instructions, making the form easier to fill out correctly.
|
|
1916
|
+
*/
|
|
1917
|
+
"description"?: string;
|
|
1918
|
+
/**
|
|
1919
|
+
* The disabled prop lets you turn off the input field so that users can’t type in it. When disabled, the field is grayed out and won’t respond to clicks or touches.
|
|
1920
|
+
*/
|
|
1921
|
+
"disabled"?: boolean;
|
|
1922
|
+
/**
|
|
1923
|
+
* Alters the input field’s appearance to indicate an error, helping users identify fields that need correction.
|
|
1924
|
+
* @validator error
|
|
1925
|
+
*/
|
|
1926
|
+
"error"?: boolean;
|
|
1927
|
+
/**
|
|
1928
|
+
* A description that appears when there is an error related to the textfield field.
|
|
1929
|
+
* @validator message
|
|
1930
|
+
*/
|
|
1931
|
+
"errorDescription"?: string;
|
|
1932
|
+
/**
|
|
1933
|
+
* Sets the ID for the input element and the for attribute of the associated label. If no ID is provided, a random one will be automatically generated to ensure unique identification, facilitating proper label association and accessibility.
|
|
1934
|
+
*/
|
|
1935
|
+
"inputId"?: string;
|
|
1936
|
+
/**
|
|
1937
|
+
* Lets you define the text that explains what users should enter in the text input field. It’s a crucial element for making forms clear and user-friendly.
|
|
1938
|
+
*/
|
|
1939
|
+
"label"?: string;
|
|
1940
|
+
/**
|
|
1941
|
+
* Limits how many characters users can type into the input field. It’s helpful for making sure users don’t enter too much information, keeping their input within the allowed limit.
|
|
1942
|
+
*/
|
|
1943
|
+
"maxlength"?: number;
|
|
1944
|
+
/**
|
|
1945
|
+
* Message defines a 'hint ' message for the Text Field.
|
|
1946
|
+
* @deprecated use description instead.
|
|
1947
|
+
*/
|
|
1948
|
+
"message"?: string;
|
|
1949
|
+
/**
|
|
1950
|
+
* Ensures that users type at least a certain number of characters into the input field. It’s a way to make sure users provide enough information before moving on.
|
|
1951
|
+
*/
|
|
1952
|
+
"minlength"?: number;
|
|
1953
|
+
/**
|
|
1954
|
+
* When used with the email input type, this prop enables the field to accept multiple email addresses. Users can enter several addresses, separating each one with a comma, allowing the form to handle multiple recipients.
|
|
1955
|
+
*/
|
|
1956
|
+
"multiple"?: boolean;
|
|
1957
|
+
/**
|
|
1958
|
+
* Defines the name attribute of the input field, which is crucial for form submission. This value is used as the key in the key-value pair sent to the server, representing the input’s data in form submissions. It should be unique within the form to avoid conflicts
|
|
1959
|
+
*/
|
|
1960
|
+
"name"?: string;
|
|
1961
|
+
/**
|
|
1962
|
+
* Emitted when the input value changes.
|
|
1963
|
+
* @bind value
|
|
1964
|
+
*/
|
|
1965
|
+
"onValueChanged"?: (event: NvFieldtextCustomEvent<string>) => void;
|
|
1966
|
+
/**
|
|
1967
|
+
* Set rules for how the input should be formatted. For example, you can require that a phone number includes only digits or that an email address has the correct format. If users don’t follow these rules, they’ll get a prompt to correct their input.
|
|
1968
|
+
*/
|
|
1969
|
+
"pattern"?: string;
|
|
1970
|
+
/**
|
|
1971
|
+
* Display temporary text inside the input field to give users a hint about what to type. It’s a great way to provide examples or suggestions directly in the field before they start typing.
|
|
1972
|
+
*/
|
|
1973
|
+
"placeholder"?: string;
|
|
1974
|
+
/**
|
|
1975
|
+
* Display the input field’s content without allowing users to change it. Users can still click on it, select, and copy the text, but they won’t be able to type or delete anything.
|
|
1976
|
+
*/
|
|
1977
|
+
"readonly"?: boolean;
|
|
1978
|
+
/**
|
|
1979
|
+
* Marks the input field as required, ensuring that the user must fill it out before submitting the form.
|
|
1980
|
+
*/
|
|
1981
|
+
"required"?: boolean;
|
|
1982
|
+
/**
|
|
1983
|
+
* Changes the input field’s appearance to indicate successful input or validation.
|
|
1984
|
+
*/
|
|
1985
|
+
"success"?: boolean;
|
|
1986
|
+
/**
|
|
1987
|
+
* Type of the input.
|
|
1988
|
+
* @deprecated use type instead.
|
|
1989
|
+
*/
|
|
1990
|
+
"textInputType"?: 'text' | 'tel' | 'email';
|
|
1991
|
+
/**
|
|
1992
|
+
* The type prop lets you specify what kind of information the input field should accept. Choose 'text' for general words or sentences, 'tel' for phone numbers, or 'email' for email addresses. This makes sure users get the right keyboard and validation for what they need to enter.
|
|
1993
|
+
*/
|
|
1994
|
+
"type"?: 'text' | 'tel' | 'email';
|
|
1995
|
+
/**
|
|
1996
|
+
* Add the message to the validation state.
|
|
1997
|
+
* @deprecated use errorDescription and set the error prop instead.
|
|
1998
|
+
*/
|
|
1999
|
+
"validation"?: string;
|
|
2000
|
+
/**
|
|
2001
|
+
* Specifies the value of the input field, which determines the text displayed within the field. This prop is typically used in controlled components where the input’s value is managed by the component’s state.
|
|
2002
|
+
*/
|
|
2003
|
+
"value"?: string;
|
|
2004
|
+
}
|
|
2005
|
+
interface NvFieldtextarea {
|
|
2006
|
+
/**
|
|
2007
|
+
* Enable this to make the textarea automatically resize as the user types, adjusting the height to fit the content. For the best experience, avoid vertical resizing, as it’s controlled by this feature. Horizontal resizing can still be allowed if desired.
|
|
2008
|
+
*/
|
|
2009
|
+
"autosize"?: boolean;
|
|
2010
|
+
/**
|
|
2011
|
+
* Add helpful hints or extra information under the text textarea field. This is where you can clarify what users should enter or provide additional instructions, making the form easier to fill out correctly.
|
|
2012
|
+
*/
|
|
2013
|
+
"description"?: string;
|
|
2014
|
+
/**
|
|
2015
|
+
* The disabled prop lets you turn off the textarea field so that users can’t type in it. When disabled, the field is grayed out and won’t respond to# clicks or touches.
|
|
2016
|
+
*/
|
|
2017
|
+
"disabled"?: boolean;
|
|
2018
|
+
/**
|
|
2019
|
+
* Alters the textarea field’s appearance to indicate an error, helping users identify fields that need correction.
|
|
2020
|
+
* @validator error
|
|
2021
|
+
*/
|
|
2022
|
+
"error"?: boolean;
|
|
2023
|
+
/**
|
|
2024
|
+
* Show a helpful message under the textarea field when there’s a problem. It explains what’s wrong and how users can fix it, making the error easier to understand and resolve.
|
|
2025
|
+
* @validator message
|
|
2026
|
+
*/
|
|
2027
|
+
"errorDescription"?: string;
|
|
2028
|
+
/**
|
|
2029
|
+
* Lets you define the text that explains what users should enter in the text textarea field. It’s a crucial element for making forms clear and user-friendly.
|
|
2030
|
+
*/
|
|
2031
|
+
"label"?: string;
|
|
2032
|
+
/**
|
|
2033
|
+
* Limits how many characters users can type into the textarea field. It’s helpful for making sure users don’t enter too much information, keeping their textarea within the allowed limit.
|
|
2034
|
+
*/
|
|
2035
|
+
"maxlength"?: number;
|
|
2036
|
+
/**
|
|
2037
|
+
* Message defines a 'hint ' message for the Text Field.
|
|
2038
|
+
* @deprecated use description instead.
|
|
2039
|
+
*/
|
|
2040
|
+
"message"?: string;
|
|
2041
|
+
/**
|
|
2042
|
+
* Ensures that users type at least a certain number of characters into the textarea field. It’s a way to make sure users provide enough information before moving on.
|
|
2043
|
+
*/
|
|
2044
|
+
"minlength"?: number;
|
|
2045
|
+
/**
|
|
2046
|
+
* Defines the name attribute of the textarea field, which is crucial for form submission. This value is used as the key in the key-value pair sent to the server, representing the textarea’s data in form submissions. It should be unique within the form to avoid conflicts
|
|
2047
|
+
*/
|
|
2048
|
+
"name"?: string;
|
|
2049
|
+
/**
|
|
2050
|
+
* Emitted when the textarea value changes.
|
|
2051
|
+
* @bind value
|
|
2052
|
+
*/
|
|
2053
|
+
"onValueChanged"?: (event: NvFieldtextareaCustomEvent<string>) => void;
|
|
2054
|
+
/**
|
|
2055
|
+
* Display temporary text inside the textarea field to give users a hint about what to type. It’s a great way to provide examples or suggestions directly in the field before they start typing.
|
|
2056
|
+
*/
|
|
2057
|
+
"placeholder"?: string;
|
|
2058
|
+
/**
|
|
2059
|
+
* Display the textarea field’s content without allowing users to change it. Users can still click on it, select, and copy the text, but they won’t be able to type or delete anything.
|
|
2060
|
+
*/
|
|
2061
|
+
"readonly"?: boolean;
|
|
2062
|
+
/**
|
|
2063
|
+
* Marks the textarea field as required, ensuring that the user must fill it out before submitting the form.
|
|
2064
|
+
*/
|
|
2065
|
+
"required"?: boolean;
|
|
2066
|
+
/**
|
|
2067
|
+
* Controls the resize property of a textarea. It can be set to none, both, horizontal, or vertical. The default is vertical.
|
|
2068
|
+
*/
|
|
2069
|
+
"resize"?: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
2070
|
+
/**
|
|
2071
|
+
* The number of visible text lines for the control. The default is 3. This can be useful when you want to limit the size of the textarea field or when you want to make the textarea field smaller to fit a specific layout. The textarea field will expand vertically to fit the text as the user types.
|
|
2072
|
+
*/
|
|
2073
|
+
"rows"?: number;
|
|
2074
|
+
/**
|
|
2075
|
+
* Changes the textarea field’s appearance to indicate successful textarea or validation.
|
|
2076
|
+
*/
|
|
2077
|
+
"success"?: boolean;
|
|
2078
|
+
/**
|
|
2079
|
+
* Sets the ID for the textarea element and the for attribute of the associated label. If no ID is provided, a random one will be automatically generated to ensure unique identification, facilitating proper label association and accessibility.
|
|
2080
|
+
*/
|
|
2081
|
+
"textareaId"?: string;
|
|
2082
|
+
/**
|
|
2083
|
+
* Add the message to the validation state.
|
|
2084
|
+
* @deprecated use errorDescription and set the error prop instead.
|
|
2085
|
+
*/
|
|
2086
|
+
"validation"?: string;
|
|
2087
|
+
/**
|
|
2088
|
+
* Specifies the value of the textarea field, which determines the text displayed within the field. This prop is typically used in controlled components where the textarea’s value is managed by the component’s state.
|
|
2089
|
+
*/
|
|
2090
|
+
"value"?: string;
|
|
2091
|
+
}
|
|
2092
|
+
interface NvFieldtoggle {
|
|
2093
|
+
/**
|
|
2094
|
+
* Indicates whether the toggle is checked or not.
|
|
2095
|
+
*/
|
|
2096
|
+
"checked"?: boolean;
|
|
2097
|
+
/**
|
|
2098
|
+
* A description providing additional context or information about the toggle.
|
|
2099
|
+
*/
|
|
2100
|
+
"description"?: string;
|
|
2101
|
+
/**
|
|
2102
|
+
* Disables the toggle, preventing user interaction.
|
|
2103
|
+
*/
|
|
2104
|
+
"disabled"?: boolean;
|
|
2105
|
+
/**
|
|
2106
|
+
* Hides the label visually while still keeping it available for screen readers.
|
|
2107
|
+
*/
|
|
2108
|
+
"hideLabel"?: boolean;
|
|
2109
|
+
/**
|
|
2110
|
+
* Sets the ID for the radio button’s input element and the for attribute of the associated label. If no ID is provided, a random one will be automatically generated to ensure unique identification, facilitating proper label association and accessibility.
|
|
2111
|
+
*/
|
|
2112
|
+
"inputId"?: string;
|
|
2113
|
+
/**
|
|
2114
|
+
* The label displayed next to the toggle.
|
|
2115
|
+
*/
|
|
2116
|
+
"label"?: string;
|
|
2117
|
+
/**
|
|
2118
|
+
* Determines the position of the label relative to the toggle, either 'start' (before) or 'end' (after).
|
|
2119
|
+
*/
|
|
2120
|
+
"labelPlacement"?: `${FieldLabelPlacement}`;
|
|
2121
|
+
/**
|
|
2122
|
+
* The name attribute for the toggle input, used to reference the form data after submission.
|
|
2123
|
+
*/
|
|
2124
|
+
"name"?: string;
|
|
2125
|
+
/**
|
|
2126
|
+
* Emits when the checked state changes.
|
|
2127
|
+
* @bind checked
|
|
2128
|
+
*/
|
|
2129
|
+
"onCheckedChanged"?: (event: NvFieldtoggleCustomEvent<boolean>) => void;
|
|
2130
|
+
/**
|
|
2131
|
+
* Sets the toggle to read-only, preventing user changes but still allowing focus and selection of text.
|
|
2132
|
+
*/
|
|
2133
|
+
"readonly"?: boolean;
|
|
2134
|
+
/**
|
|
2135
|
+
* The value attribute of the toggle input, representing the value sent on form submission when the toggle is checked.
|
|
2136
|
+
*/
|
|
2137
|
+
"value"?: string;
|
|
2138
|
+
}
|
|
2139
|
+
interface NvIcon {
|
|
2140
|
+
/**
|
|
2141
|
+
* Set color of the icon.
|
|
2142
|
+
* @deprecated use class names instead.
|
|
2143
|
+
*/
|
|
2144
|
+
"color"?: `${DeprecatedSemanticColors}`;
|
|
2145
|
+
/**
|
|
2146
|
+
* Set size to Large.
|
|
2147
|
+
* @deprecated use size instead.
|
|
2148
|
+
*/
|
|
2149
|
+
"large"?: boolean;
|
|
2150
|
+
/**
|
|
2151
|
+
* Set size to Medium.
|
|
2152
|
+
* @deprecated use size instead.
|
|
2153
|
+
*/
|
|
2154
|
+
"medium"?: boolean;
|
|
2155
|
+
/**
|
|
2156
|
+
* Choose the icon you want to display. This also sets the aria-label for improved accessibility, helping users who rely on screen readers.
|
|
2157
|
+
*/
|
|
2158
|
+
"name"?: `${IconName}` | string;
|
|
2159
|
+
/**
|
|
2160
|
+
* Adjust the size of the icon to fit your design needs.
|
|
2161
|
+
*/
|
|
2162
|
+
"size"?: `${SemanticSizes}`;
|
|
2163
|
+
/**
|
|
2164
|
+
* Set size to Small.
|
|
2165
|
+
* @deprecated use size instead.
|
|
2166
|
+
*/
|
|
2167
|
+
"small"?: boolean;
|
|
2168
|
+
/**
|
|
2169
|
+
* Set size to ExtraLarge.
|
|
2170
|
+
* @deprecated use size instead.
|
|
2171
|
+
*/
|
|
2172
|
+
"xlarge"?: boolean;
|
|
2173
|
+
/**
|
|
2174
|
+
* Set size to ExtraSmall.
|
|
2175
|
+
* @deprecated use size instead.
|
|
2176
|
+
*/
|
|
2177
|
+
"xsmall"?: boolean;
|
|
2178
|
+
}
|
|
2179
|
+
interface NvIconbutton {
|
|
2180
|
+
/**
|
|
2181
|
+
* Makes the button look active when it’s within a compatible component like a button group.
|
|
2182
|
+
*/
|
|
2183
|
+
"active"?: boolean;
|
|
2184
|
+
/**
|
|
2185
|
+
* Disables the button, preventing user interaction.
|
|
2186
|
+
*/
|
|
2187
|
+
"disabled"?: boolean;
|
|
2188
|
+
/**
|
|
2189
|
+
* Adjusts the button’s emphasis to make it more or less visually prominent to users. Use this to draw attention to important actions or reduce focus on less critical ones.
|
|
2190
|
+
*/
|
|
2191
|
+
"emphasis"?: `${ButtonEmphasis}`;
|
|
2192
|
+
/**
|
|
2193
|
+
* Set this to true to show a spinner on the button, letting users know that their action is being processed. It helps improve user experience by indicating ongoing activities. The icon is not displayed when the button is loading. Also, the button is disabled. If you want to disable the button, it is not possible. It is automatically disabled when loading.
|
|
2194
|
+
*/
|
|
2195
|
+
"loading"?: boolean;
|
|
2196
|
+
/**
|
|
2197
|
+
* Choose the icon you want to display. This also sets the aria-label for improved accessibility, helping users who rely on screen readers. The icon is not displayed when the button is loading.
|
|
2198
|
+
*/
|
|
2199
|
+
"name"?: `${IconName}` | string;
|
|
2200
|
+
/**
|
|
2201
|
+
* Sets the shape of the button. Choose between square and rounded.
|
|
2202
|
+
*/
|
|
2203
|
+
"shape"?: 'square' | 'rounded';
|
|
2204
|
+
/**
|
|
2205
|
+
* Determines how large or small the button appears, allowing for customization of the button's dimensions to fit different design specifications and user needs.
|
|
2206
|
+
*/
|
|
2207
|
+
"size"?: `${ButtonSize}`;
|
|
2208
|
+
/**
|
|
2209
|
+
* Sets the button type to control its function in forms. Use 'submit' to send form data, 'reset' to clear the form, or 'button' for a standard button that doesn’t interact with form submission by default.
|
|
2210
|
+
*/
|
|
2211
|
+
"type"?: `${ButtonType}`;
|
|
2212
|
+
}
|
|
2213
|
+
interface NvLoader {
|
|
2214
|
+
/**
|
|
2215
|
+
* Choose the color of the loader. Options are primary and white to keep the design consistent and ensure the loader stands out or blends in appropriately with your application’s interface.
|
|
2216
|
+
*/
|
|
2217
|
+
"color"?: `${LoaderColors}`;
|
|
2218
|
+
/**
|
|
2219
|
+
* Choose the size of the loader to best fit your application’s needs, whether it’s a small spinner for subtle loading indicators or a large one for more prominent displays.
|
|
2220
|
+
*/
|
|
2221
|
+
"size"?: `${SemanticSizes}`;
|
|
2222
|
+
}
|
|
2223
|
+
interface NvMenu {
|
|
2224
|
+
/**
|
|
2225
|
+
* Use this to disable the menu from closing automatically when a menu item is selected.
|
|
2226
|
+
*/
|
|
2227
|
+
"disableCloseOnSelect"?: boolean;
|
|
2228
|
+
/**
|
|
2229
|
+
* Use this if the menu is nested inside another menu. This will prevent the parent menu from closing when the child menu is opened.
|
|
2230
|
+
*/
|
|
2231
|
+
"nested"?: boolean;
|
|
2232
|
+
/**
|
|
2233
|
+
* Emitted from nv-menuitem elements with the corresponding id when the menu item is selected.
|
|
2234
|
+
*/
|
|
2235
|
+
"onMenuitemSelected"?: (event: NvMenuCustomEvent<MenuitemSelectedEventDetail>) => void;
|
|
2236
|
+
/**
|
|
2237
|
+
* Use this to toggle the initial visibility of the menu, by default the menu is hidden.
|
|
2238
|
+
*/
|
|
2239
|
+
"open"?: boolean;
|
|
2240
|
+
/**
|
|
2241
|
+
* Decides where the menu shows up next to the button it’s linked to (above, below, to the sides). If there isn’t enough room, it will adjust its position on the axis to fit on the screen, so users can always see it.
|
|
2242
|
+
*/
|
|
2243
|
+
"placement"?: Placement;
|
|
2244
|
+
}
|
|
2245
|
+
interface NvMenuitem {
|
|
2246
|
+
/**
|
|
2247
|
+
* Disables the item, preventing user interaction.
|
|
2248
|
+
*/
|
|
2249
|
+
"disabled"?: boolean;
|
|
2250
|
+
/**
|
|
2251
|
+
* If the menu item has a submenu, the a caret icon will be displayed.
|
|
2252
|
+
*/
|
|
2253
|
+
"hasSubmenu"?: boolean;
|
|
2254
|
+
/**
|
|
2255
|
+
* Choose the icon you want to display. This also sets the aria-label for improved accessibility, helping users who rely on screen readers. The icon is not displayed when the button is loading.
|
|
2256
|
+
*/
|
|
2257
|
+
"icon"?: `${IconName}`;
|
|
2258
|
+
/**
|
|
2259
|
+
* Show a shortcut key for the action represented in the menu item.
|
|
2260
|
+
*/
|
|
2261
|
+
"shortcut"?: string;
|
|
2262
|
+
}
|
|
2263
|
+
interface NvPopover {
|
|
2264
|
+
/**
|
|
2265
|
+
* Disables the automatic flipping of the popover when the trigger element is out of the viewport. The popover will flip automatically by default.
|
|
2266
|
+
*/
|
|
2267
|
+
"disableFlip"?: boolean;
|
|
2268
|
+
/**
|
|
2269
|
+
* Use this to set a delay before the popover appears on hover. If the mouse leaves before this time, the popover won’t show. This only works when the trigger mode is set to `hover`.
|
|
2270
|
+
*/
|
|
2271
|
+
"enterDelay"?: number;
|
|
2272
|
+
/**
|
|
2273
|
+
* Use this to group popovers together so that opening one will not animate the closing of another. This is helpful when popovers are placed close together, preventing animation overlap.
|
|
2274
|
+
*/
|
|
2275
|
+
"groupName"?: string;
|
|
2276
|
+
/**
|
|
2277
|
+
* Use this to decide if the popover should include a small arrow pointing to the trigger element, making the connection between them more clear.
|
|
2278
|
+
*/
|
|
2279
|
+
"hasArrow"?: boolean;
|
|
2280
|
+
/**
|
|
2281
|
+
* Use this to set the popover to be nested inside another popover. This will prevent the parent popover from closing when the child popover is opened.
|
|
2282
|
+
*/
|
|
2283
|
+
"nested"?: boolean;
|
|
2284
|
+
/**
|
|
2285
|
+
* Adjust the gap between the popover and its trigger element by setting how many pixels they should be apart.
|
|
2286
|
+
*/
|
|
2287
|
+
"offset"?: number;
|
|
2288
|
+
/**
|
|
2289
|
+
* Emitted when the popover is toggled.
|
|
2290
|
+
* @bind open
|
|
2291
|
+
*/
|
|
2292
|
+
"onOpenChanged"?: (event: NvPopoverCustomEvent<boolean>) => void;
|
|
2293
|
+
/**
|
|
2294
|
+
* Use this prop to toggle the visibility of the popover. Set to true to show the popover and false to hide it.
|
|
2295
|
+
*/
|
|
2296
|
+
"open"?: boolean;
|
|
2297
|
+
/**
|
|
2298
|
+
* Defines where the popover appears relative to the trigger.
|
|
2299
|
+
*/
|
|
2300
|
+
"placement"?: Placement;
|
|
2301
|
+
/**
|
|
2302
|
+
* Sets how many pixels the popover should stay from the edge of the viewport.
|
|
2303
|
+
*/
|
|
2304
|
+
"shiftPadding"?: number;
|
|
2305
|
+
/**
|
|
2306
|
+
* Sets the interaction mode for triggering the popover. Options include: - `hover`: The popover is shown on trigger hover. - `click`: The popover toggles on trigger click. - `controlled`: The visibility is managed manually through methods or the open prop.
|
|
2307
|
+
*/
|
|
2308
|
+
"triggerMode"?: 'hover' | 'click' | 'controlled';
|
|
2309
|
+
}
|
|
2310
|
+
interface NvRow {
|
|
2311
|
+
}
|
|
2312
|
+
/**
|
|
2313
|
+
* @deprecated Please use tailwind classes instead
|
|
2314
|
+
*/
|
|
2315
|
+
interface NvStack {
|
|
2316
|
+
/**
|
|
2317
|
+
* Fill will force the children to fill the stack depending of the direction of the stack. In horizontal position, the children take the height of the stack. In vertical position, the children take the width of the stack.
|
|
2318
|
+
*/
|
|
2319
|
+
"fill"?: boolean;
|
|
2320
|
+
/**
|
|
2321
|
+
* Flex will force the children to share the stack between the children depending of the direction of the stack. In horizontal position, the children width will share the width of the stack. In vertical position, the children height will share the height of the stack.
|
|
2322
|
+
*/
|
|
2323
|
+
"flex"?: boolean;
|
|
2324
|
+
/**
|
|
2325
|
+
* Full set the width of the stack to 100%. (same effect as WFull props)
|
|
2326
|
+
*/
|
|
2327
|
+
"full"?: boolean;
|
|
2328
|
+
/**
|
|
2329
|
+
* Gutter refers to the space that exists between children components inside the stack container.
|
|
2330
|
+
*/
|
|
2331
|
+
"gutter"?: number;
|
|
2332
|
+
/**
|
|
2333
|
+
* Display the element of the stack vertically.
|
|
2334
|
+
*/
|
|
2335
|
+
"vertical"?: boolean;
|
|
2336
|
+
}
|
|
2337
|
+
interface NvTooltip {
|
|
2338
|
+
/**
|
|
2339
|
+
* Controls how long (in milliseconds) the tooltip waits to show after you hover over or focus on an element. If you move away before the delay is up, the tooltip won’t appear.
|
|
2340
|
+
*/
|
|
2341
|
+
"enterDelay"?: number;
|
|
2342
|
+
/**
|
|
2343
|
+
* A string representing the text to be displayed inside the tooltip. This content is shown when the tooltip is activated by the user, such as on hover or focus events.
|
|
2344
|
+
*/
|
|
2345
|
+
"message"?: string;
|
|
2346
|
+
/**
|
|
2347
|
+
* Decides where the tooltip shows up next to the element it’s linked to (above, below, to the sides). If there isn’t enough room, it will adjust it's position on the axis to fit on the screen, so users can always see it.
|
|
2348
|
+
*/
|
|
2349
|
+
"placement"?: Placement;
|
|
2350
|
+
}
|
|
2351
|
+
interface IntrinsicElements {
|
|
2352
|
+
"nv-alert": NvAlert;
|
|
2353
|
+
"nv-avatar": NvAvatar;
|
|
2354
|
+
"nv-badge": NvBadge;
|
|
2355
|
+
"nv-base": NvBase;
|
|
2356
|
+
"nv-button": NvButton;
|
|
2357
|
+
"nv-col": NvCol;
|
|
2358
|
+
"nv-fieldcheckbox": NvFieldcheckbox;
|
|
2359
|
+
"nv-fieldnumber": NvFieldnumber;
|
|
2360
|
+
"nv-fieldpassword": NvFieldpassword;
|
|
2361
|
+
"nv-fieldradio": NvFieldradio;
|
|
2362
|
+
"nv-fieldselect": NvFieldselect;
|
|
2363
|
+
"nv-fieldtext": NvFieldtext;
|
|
2364
|
+
"nv-fieldtextarea": NvFieldtextarea;
|
|
2365
|
+
"nv-fieldtoggle": NvFieldtoggle;
|
|
2366
|
+
"nv-icon": NvIcon;
|
|
2367
|
+
"nv-iconbutton": NvIconbutton;
|
|
2368
|
+
"nv-loader": NvLoader;
|
|
2369
|
+
"nv-menu": NvMenu;
|
|
2370
|
+
"nv-menuitem": NvMenuitem;
|
|
2371
|
+
"nv-popover": NvPopover;
|
|
2372
|
+
"nv-row": NvRow;
|
|
2373
|
+
"nv-stack": NvStack;
|
|
2374
|
+
"nv-tooltip": NvTooltip;
|
|
2375
|
+
}
|
|
2376
|
+
}
|
|
2377
|
+
export { LocalJSX as JSX };
|
|
2378
|
+
declare module "@stencil/core" {
|
|
2379
|
+
export namespace JSX {
|
|
2380
|
+
interface IntrinsicElements {
|
|
2381
|
+
"nv-alert": LocalJSX.NvAlert & JSXBase.HTMLAttributes<HTMLNvAlertElement>;
|
|
2382
|
+
"nv-avatar": LocalJSX.NvAvatar & JSXBase.HTMLAttributes<HTMLNvAvatarElement>;
|
|
2383
|
+
"nv-badge": LocalJSX.NvBadge & JSXBase.HTMLAttributes<HTMLNvBadgeElement>;
|
|
2384
|
+
/**
|
|
2385
|
+
* @deprecated This is only to help with the migration from v2 to v3. It will be removed in the next major release.
|
|
2386
|
+
*/
|
|
2387
|
+
"nv-base": LocalJSX.NvBase & JSXBase.HTMLAttributes<HTMLNvBaseElement>;
|
|
2388
|
+
"nv-button": LocalJSX.NvButton & JSXBase.HTMLAttributes<HTMLNvButtonElement>;
|
|
2389
|
+
"nv-col": LocalJSX.NvCol & JSXBase.HTMLAttributes<HTMLNvColElement>;
|
|
2390
|
+
"nv-fieldcheckbox": LocalJSX.NvFieldcheckbox & JSXBase.HTMLAttributes<HTMLNvFieldcheckboxElement>;
|
|
2391
|
+
"nv-fieldnumber": LocalJSX.NvFieldnumber & JSXBase.HTMLAttributes<HTMLNvFieldnumberElement>;
|
|
2392
|
+
"nv-fieldpassword": LocalJSX.NvFieldpassword & JSXBase.HTMLAttributes<HTMLNvFieldpasswordElement>;
|
|
2393
|
+
"nv-fieldradio": LocalJSX.NvFieldradio & JSXBase.HTMLAttributes<HTMLNvFieldradioElement>;
|
|
2394
|
+
"nv-fieldselect": LocalJSX.NvFieldselect & JSXBase.HTMLAttributes<HTMLNvFieldselectElement>;
|
|
2395
|
+
"nv-fieldtext": LocalJSX.NvFieldtext & JSXBase.HTMLAttributes<HTMLNvFieldtextElement>;
|
|
2396
|
+
"nv-fieldtextarea": LocalJSX.NvFieldtextarea & JSXBase.HTMLAttributes<HTMLNvFieldtextareaElement>;
|
|
2397
|
+
"nv-fieldtoggle": LocalJSX.NvFieldtoggle & JSXBase.HTMLAttributes<HTMLNvFieldtoggleElement>;
|
|
2398
|
+
"nv-icon": LocalJSX.NvIcon & JSXBase.HTMLAttributes<HTMLNvIconElement>;
|
|
2399
|
+
"nv-iconbutton": LocalJSX.NvIconbutton & JSXBase.HTMLAttributes<HTMLNvIconbuttonElement>;
|
|
2400
|
+
"nv-loader": LocalJSX.NvLoader & JSXBase.HTMLAttributes<HTMLNvLoaderElement>;
|
|
2401
|
+
"nv-menu": LocalJSX.NvMenu & JSXBase.HTMLAttributes<HTMLNvMenuElement>;
|
|
2402
|
+
"nv-menuitem": LocalJSX.NvMenuitem & JSXBase.HTMLAttributes<HTMLNvMenuitemElement>;
|
|
2403
|
+
"nv-popover": LocalJSX.NvPopover & JSXBase.HTMLAttributes<HTMLNvPopoverElement>;
|
|
2404
|
+
"nv-row": LocalJSX.NvRow & JSXBase.HTMLAttributes<HTMLNvRowElement>;
|
|
2405
|
+
/**
|
|
2406
|
+
* @deprecated Please use tailwind classes instead
|
|
2407
|
+
*/
|
|
2408
|
+
"nv-stack": LocalJSX.NvStack & JSXBase.HTMLAttributes<HTMLNvStackElement>;
|
|
2409
|
+
"nv-tooltip": LocalJSX.NvTooltip & JSXBase.HTMLAttributes<HTMLNvTooltipElement>;
|
|
2410
|
+
}
|
|
2411
|
+
}
|
|
2412
|
+
}
|