@nova-design-system/nova-webcomponents 3.0.0-beta.36 → 3.0.0-beta.38

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.
Files changed (624) hide show
  1. package/dist/blazor-docs.json +6458 -5022
  2. package/dist/cjs/{app-globals-6b0931bc.js → app-globals-bd4d701e.js} +2 -2
  3. package/dist/cjs/{app-globals-6b0931bc.js.map → app-globals-bd4d701e.js.map} +1 -1
  4. package/dist/cjs/{constants-9525a915.js → constants-69b40456.js} +15 -8
  5. package/dist/cjs/constants-69b40456.js.map +1 -0
  6. package/dist/cjs/events.utils-52846a7d.js +32 -0
  7. package/dist/cjs/events.utils-52846a7d.js.map +1 -0
  8. package/dist/cjs/{grow.animation-46e7ae4b.js → grow.animation-a1f0bc22.js} +1 -29
  9. package/dist/cjs/grow.animation-a1f0bc22.js.map +1 -0
  10. package/dist/cjs/{index-ddc37f87.js → index-5910ba06.js} +75 -18
  11. package/dist/{native/p-9b093b92.js.map → cjs/index-5910ba06.js.map} +1 -1
  12. package/dist/cjs/index.cjs.js +27 -3
  13. package/dist/cjs/index.cjs.js.map +1 -1
  14. package/dist/cjs/loader.cjs.js +3 -3
  15. package/dist/cjs/native.cjs.js +3 -3
  16. package/dist/cjs/nv-alert.cjs.entry.js +3 -3
  17. package/dist/cjs/nv-alert.cjs.entry.js.map +1 -1
  18. package/dist/cjs/nv-avatar.cjs.entry.js +2 -2
  19. package/dist/cjs/nv-badge_2.cjs.entry.js +4 -4
  20. package/dist/cjs/nv-badge_2.cjs.entry.js.map +1 -1
  21. package/dist/cjs/nv-base.cjs.entry.js +1 -1
  22. package/dist/cjs/nv-breadcrumb.cjs.entry.js +4 -3
  23. package/dist/cjs/nv-breadcrumb.cjs.entry.js.map +1 -1
  24. package/dist/cjs/nv-breadcrumbs.cjs.entry.js +3 -3
  25. package/dist/cjs/nv-breadcrumbs.cjs.entry.js.map +1 -1
  26. package/dist/cjs/nv-button.cjs.entry.js +24 -4
  27. package/dist/cjs/nv-button.cjs.entry.js.map +1 -1
  28. package/dist/cjs/nv-col.cjs.entry.js +2 -2
  29. package/dist/cjs/nv-datagrid.cjs.entry.js +3 -3
  30. package/dist/cjs/nv-datagrid.cjs.entry.js.map +1 -1
  31. package/dist/cjs/nv-datagridbody.cjs.entry.js +2 -2
  32. package/dist/cjs/nv-datagridcolumn.cjs.entry.js +2 -2
  33. package/dist/cjs/nv-datagriddatacell.cjs.entry.js +2 -2
  34. package/dist/cjs/nv-datagridhead.cjs.entry.js +2 -2
  35. package/dist/cjs/nv-datagridrow.cjs.entry.js +2 -2
  36. package/dist/cjs/nv-dialog.cjs.entry.js +771 -0
  37. package/dist/cjs/nv-dialog.cjs.entry.js.map +1 -0
  38. package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +132 -0
  39. package/dist/cjs/nv-dialogfooter_2.cjs.entry.js.map +1 -0
  40. package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +34 -25
  41. package/dist/cjs/nv-fieldcheckbox.cjs.entry.js.map +1 -1
  42. package/dist/cjs/nv-fielddropdown.cjs.entry.js +53 -16
  43. package/dist/cjs/nv-fielddropdown.cjs.entry.js.map +1 -1
  44. package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +3 -3
  45. package/dist/cjs/nv-fielddropdownitem.cjs.entry.js.map +1 -1
  46. package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +7 -4
  47. package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +1 -1
  48. package/dist/cjs/nv-fieldnumber.cjs.entry.js +13 -13
  49. package/dist/cjs/nv-fieldnumber.cjs.entry.js.map +1 -1
  50. package/dist/cjs/nv-fieldpassword.cjs.entry.js +5 -5
  51. package/dist/cjs/nv-fieldpassword.cjs.entry.js.map +1 -1
  52. package/dist/cjs/nv-fieldradio.cjs.entry.js +5 -5
  53. package/dist/cjs/nv-fieldradio.cjs.entry.js.map +1 -1
  54. package/dist/cjs/nv-fieldselect.cjs.entry.js +49 -18
  55. package/dist/cjs/nv-fieldselect.cjs.entry.js.map +1 -1
  56. package/dist/cjs/nv-fieldtext.cjs.entry.js +9 -6
  57. package/dist/cjs/nv-fieldtext.cjs.entry.js.map +1 -1
  58. package/dist/cjs/nv-fieldtextarea.cjs.entry.js +13 -13
  59. package/dist/cjs/nv-fieldtextarea.cjs.entry.js.map +1 -1
  60. package/dist/cjs/nv-fieldtime.cjs.entry.js +994 -0
  61. package/dist/cjs/nv-fieldtime.cjs.entry.js.map +1 -0
  62. package/dist/cjs/nv-icon.cjs.entry.js +4 -4
  63. package/dist/cjs/nv-icon.cjs.entry.js.map +1 -1
  64. package/dist/cjs/nv-iconbutton.cjs.entry.js +125 -0
  65. package/dist/cjs/nv-iconbutton.cjs.entry.js.map +1 -0
  66. package/dist/cjs/nv-loader.cjs.entry.js +35 -0
  67. package/dist/cjs/nv-loader.cjs.entry.js.map +1 -0
  68. package/dist/cjs/nv-menu.cjs.entry.js +66 -7
  69. package/dist/cjs/nv-menu.cjs.entry.js.map +1 -1
  70. package/dist/cjs/nv-menuitem.cjs.entry.js +2 -2
  71. package/dist/cjs/nv-popover.cjs.entry.js +11 -22
  72. package/dist/cjs/nv-popover.cjs.entry.js.map +1 -1
  73. package/dist/cjs/nv-row.cjs.entry.js +2 -2
  74. package/dist/cjs/nv-stack.cjs.entry.js +2 -2
  75. package/dist/cjs/nv-table.cjs.entry.js +3 -3
  76. package/dist/cjs/nv-table.cjs.entry.js.map +1 -1
  77. package/dist/cjs/nv-tablebody.cjs.entry.js +2 -2
  78. package/dist/cjs/nv-tablecolumn.cjs.entry.js +2 -2
  79. package/dist/cjs/nv-tabledatacell.cjs.entry.js +2 -2
  80. package/dist/cjs/nv-tablehead.cjs.entry.js +2 -2
  81. package/dist/cjs/nv-tablerow.cjs.entry.js +2 -2
  82. package/dist/cjs/nv-toggle.cjs.entry.js +82 -0
  83. package/dist/cjs/nv-toggle.cjs.entry.js.map +1 -0
  84. package/dist/cjs/nv-tooltip.cjs.entry.js +2 -2
  85. package/dist/cjs/string.utils-9c581350.js +25 -0
  86. package/dist/cjs/string.utils-9c581350.js.map +1 -0
  87. package/dist/collection/collection-manifest.json +5 -1
  88. package/dist/collection/components/nv-alert/nv-alert.css +5 -5
  89. package/dist/collection/components/nv-badge/nv-badge.css +10 -10
  90. package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.css +57 -4
  91. package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.js +2 -2
  92. package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.js.map +1 -1
  93. package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.css +1 -1
  94. package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.docs.js +5 -14
  95. package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.docs.js.map +1 -1
  96. package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.js +1 -1
  97. package/dist/collection/components/nv-button/nv-button.docs.js +6 -1
  98. package/dist/collection/components/nv-button/nv-button.docs.js.map +1 -1
  99. package/dist/collection/components/nv-button/nv-button.js +56 -1
  100. package/dist/collection/components/nv-button/nv-button.js.map +1 -1
  101. package/dist/collection/components/nv-button/styles/nv-button.css +50 -10
  102. package/dist/collection/components/nv-col/nv-col.js +1 -1
  103. package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js +1 -0
  104. package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js.map +1 -1
  105. package/dist/collection/components/nv-datagrid/nv-datagrid.js +5 -2
  106. package/dist/collection/components/nv-datagrid/nv-datagrid.js.map +1 -1
  107. package/dist/collection/components/nv-datagridbody/nv-datagridbody.js +1 -1
  108. package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js +1 -1
  109. package/dist/collection/components/nv-datagriddatacell/nv-datagriddatacell.js +1 -1
  110. package/dist/collection/components/nv-datagridhead/nv-datagridhead.js +1 -1
  111. package/dist/collection/components/nv-datagridrow/nv-datagridrow.js +1 -1
  112. package/dist/collection/components/nv-dialog/nv-dialog.css +43 -0
  113. package/dist/collection/components/nv-dialog/nv-dialog.docs.js +79 -0
  114. package/dist/collection/components/nv-dialog/nv-dialog.docs.js.map +1 -0
  115. package/dist/collection/components/nv-dialog/nv-dialog.js +523 -0
  116. package/dist/collection/components/nv-dialog/nv-dialog.js.map +1 -0
  117. package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.css +8 -0
  118. package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.docs.js +6 -0
  119. package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.docs.js.map +1 -0
  120. package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js +267 -0
  121. package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js.map +1 -0
  122. package/dist/collection/components/nv-dialogheader/nv-dialogheader.css +25 -0
  123. package/dist/collection/components/nv-dialogheader/nv-dialogheader.docs.js +6 -0
  124. package/dist/collection/components/nv-dialogheader/nv-dialogheader.docs.js.map +1 -0
  125. package/dist/collection/components/nv-dialogheader/nv-dialogheader.js +87 -0
  126. package/dist/collection/components/nv-dialogheader/nv-dialogheader.js.map +1 -0
  127. package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.css +1 -1
  128. package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js +45 -30
  129. package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js.map +1 -1
  130. package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.css +13 -28
  131. package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js +28 -0
  132. package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js.map +1 -1
  133. package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +87 -22
  134. package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +1 -1
  135. package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.css +7 -6
  136. package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +1 -1
  137. package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.css +7 -7
  138. package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +1 -1
  139. package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.css +36 -17
  140. package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js +7 -1
  141. package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js.map +1 -1
  142. package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +15 -6
  143. package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js.map +1 -1
  144. package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.css +2 -2
  145. package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js +15 -14
  146. package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js.map +1 -1
  147. package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +13 -13
  148. package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js.map +1 -1
  149. package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.css +2 -2
  150. package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.docs.js +1 -0
  151. package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.docs.js.map +1 -1
  152. package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +3 -3
  153. package/dist/collection/components/nv-fieldradio/nv-fieldradio.css +1 -1
  154. package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +6 -6
  155. package/dist/collection/components/nv-fieldradio/nv-fieldradio.js.map +1 -1
  156. package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js +30 -0
  157. package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js.map +1 -1
  158. package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +72 -19
  159. package/dist/collection/components/nv-fieldselect/nv-fieldselect.js.map +1 -1
  160. package/dist/collection/components/nv-fieldtext/nv-fieldtext.css +2 -2
  161. package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +10 -7
  162. package/dist/collection/components/nv-fieldtext/nv-fieldtext.js.map +1 -1
  163. package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +14 -14
  164. package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js.map +1 -1
  165. package/dist/collection/components/nv-fieldtime/nv-fieldtime.css +261 -0
  166. package/dist/collection/components/nv-fieldtime/nv-fieldtime.docs.js +111 -0
  167. package/dist/collection/components/nv-fieldtime/nv-fieldtime.docs.js.map +1 -0
  168. package/dist/collection/components/nv-fieldtime/nv-fieldtime.js +1366 -0
  169. package/dist/collection/components/nv-fieldtime/nv-fieldtime.js.map +1 -0
  170. package/dist/collection/components/nv-icon/nv-icon.js +1 -1
  171. package/dist/collection/components/nv-icon/nv-icons.js +21 -0
  172. package/dist/collection/components/nv-icon/nv-icons.js.map +1 -1
  173. package/dist/collection/components/nv-iconbutton/nv-iconbutton.css +4 -4
  174. package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +1 -1
  175. package/dist/collection/components/nv-loader/nv-loader.js +1 -1
  176. package/dist/collection/components/nv-menu/nv-menu.docs.js +61 -0
  177. package/dist/collection/components/nv-menu/nv-menu.docs.js.map +1 -1
  178. package/dist/collection/components/nv-menu/nv-menu.js +92 -6
  179. package/dist/collection/components/nv-menu/nv-menu.js.map +1 -1
  180. package/dist/collection/components/nv-menuitem/nv-menuitem.js +2 -2
  181. package/dist/collection/components/nv-popover/nv-popover.docs.js +9 -9
  182. package/dist/collection/components/nv-popover/nv-popover.docs.js.map +1 -1
  183. package/dist/collection/components/nv-popover/nv-popover.js +2 -14
  184. package/dist/collection/components/nv-popover/nv-popover.js.map +1 -1
  185. package/dist/collection/components/nv-row/nv-row.js +1 -1
  186. package/dist/collection/components/nv-stack/nv-stack.js +1 -1
  187. package/dist/collection/components/nv-table/nv-table.docs.js +1 -0
  188. package/dist/collection/components/nv-table/nv-table.docs.js.map +1 -1
  189. package/dist/collection/components/nv-table/nv-table.js +5 -2
  190. package/dist/collection/components/nv-table/nv-table.js.map +1 -1
  191. package/dist/collection/components/nv-tablebody/nv-tablebody.js +1 -1
  192. package/dist/collection/components/nv-tablecolumn/nv-tablecolumn.js +1 -1
  193. package/dist/collection/components/nv-tabledatacell/nv-tabledatacell.js +1 -1
  194. package/dist/collection/components/nv-tablehead/nv-tablehead.js +1 -1
  195. package/dist/collection/components/nv-tablerow/nv-tablerow.js +1 -1
  196. package/dist/collection/components/{nv-fieldtoggle/nv-fieldtoggle.css → nv-toggle/nv-toggle.css} +22 -22
  197. package/dist/collection/components/{nv-fieldtoggle/nv-fieldtoggle.docs.js → nv-toggle/nv-toggle.docs.js} +14 -14
  198. package/dist/collection/components/nv-toggle/nv-toggle.docs.js.map +1 -0
  199. package/dist/collection/components/{nv-fieldtoggle/nv-fieldtoggle.js → nv-toggle/nv-toggle.js} +11 -10
  200. package/dist/collection/components/nv-toggle/nv-toggle.js.map +1 -0
  201. package/dist/collection/components/nv-tooltip/nv-tooltip.js +1 -1
  202. package/dist/collection/dev/dev-components.js +1 -1
  203. package/dist/collection/dev/dev-components.js.map +1 -1
  204. package/dist/collection/index.js +2 -0
  205. package/dist/collection/index.js.map +1 -1
  206. package/dist/collection/templates/navigation.docs.js +13 -2
  207. package/dist/collection/templates/navigation.docs.js.map +1 -1
  208. package/dist/collection/utils/constants.js +11 -5
  209. package/dist/collection/utils/constants.js.map +1 -1
  210. package/dist/collection/utils/string.utils.js +14 -0
  211. package/dist/collection/utils/string.utils.js.map +1 -0
  212. package/dist/components/index.js +26 -4
  213. package/dist/components/index.js.map +1 -1
  214. package/dist/components/nv-alert.js +4 -4
  215. package/dist/components/nv-alert.js.map +1 -1
  216. package/dist/components/nv-avatar.js +3 -3
  217. package/dist/components/nv-badge.js +1 -1
  218. package/dist/components/nv-base.js +1 -1
  219. package/dist/components/nv-breadcrumb.js +7 -12
  220. package/dist/components/nv-breadcrumb.js.map +1 -1
  221. package/dist/components/nv-breadcrumbs.js +3 -3
  222. package/dist/components/nv-breadcrumbs.js.map +1 -1
  223. package/dist/components/nv-button.js +1 -141
  224. package/dist/components/nv-button.js.map +1 -1
  225. package/dist/components/nv-col.js +2 -2
  226. package/dist/components/nv-datagrid.js +3 -3
  227. package/dist/components/nv-datagrid.js.map +1 -1
  228. package/dist/components/nv-datagridbody.js +2 -2
  229. package/dist/components/nv-datagridcolumn.js +2 -2
  230. package/dist/components/nv-datagriddatacell.js +2 -2
  231. package/dist/components/nv-datagridhead.js +2 -2
  232. package/dist/components/nv-datagridrow.js +2 -2
  233. package/dist/components/{nv-fieldtoggle.d.ts → nv-dialog.d.ts} +4 -4
  234. package/dist/components/nv-dialog.js +829 -0
  235. package/dist/components/nv-dialog.js.map +1 -0
  236. package/dist/components/nv-dialogfooter.d.ts +11 -0
  237. package/dist/components/nv-dialogfooter.js +8 -0
  238. package/dist/components/nv-dialogfooter.js.map +1 -0
  239. package/dist/components/nv-dialogheader.d.ts +11 -0
  240. package/dist/components/nv-dialogheader.js +8 -0
  241. package/dist/components/nv-dialogheader.js.map +1 -0
  242. package/dist/components/nv-fieldcheckbox.js +1 -1
  243. package/dist/components/nv-fielddropdown.js +62 -22
  244. package/dist/components/nv-fielddropdown.js.map +1 -1
  245. package/dist/components/nv-fielddropdownitem.js +1 -1
  246. package/dist/components/nv-fielddropdownitemcheck.js +1 -1
  247. package/dist/components/nv-fieldmultiselect.js +15 -12
  248. package/dist/components/nv-fieldmultiselect.js.map +1 -1
  249. package/dist/components/nv-fieldnumber.js +14 -14
  250. package/dist/components/nv-fieldnumber.js.map +1 -1
  251. package/dist/components/nv-fieldpassword.js +8 -8
  252. package/dist/components/nv-fieldpassword.js.map +1 -1
  253. package/dist/components/nv-fieldradio.js +5 -5
  254. package/dist/components/nv-fieldradio.js.map +1 -1
  255. package/dist/components/nv-fieldselect.js +55 -21
  256. package/dist/components/nv-fieldselect.js.map +1 -1
  257. package/dist/components/nv-fieldtext.js +10 -7
  258. package/dist/components/nv-fieldtext.js.map +1 -1
  259. package/dist/components/nv-fieldtextarea.js +13 -13
  260. package/dist/components/nv-fieldtextarea.js.map +1 -1
  261. package/dist/components/nv-fieldtime.d.ts +11 -0
  262. package/dist/components/nv-fieldtime.js +1054 -0
  263. package/dist/components/nv-fieldtime.js.map +1 -0
  264. package/dist/components/nv-icon.js +1 -1
  265. package/dist/components/nv-iconbutton.js +1 -1
  266. package/dist/components/nv-loader.js +1 -1
  267. package/dist/components/nv-menu.js +90 -10
  268. package/dist/components/nv-menu.js.map +1 -1
  269. package/dist/components/nv-menuitem.js +1 -80
  270. package/dist/components/nv-menuitem.js.map +1 -1
  271. package/dist/components/nv-popover.js +1 -1
  272. package/dist/components/nv-row.js +2 -2
  273. package/dist/components/nv-stack.js +2 -2
  274. package/dist/components/nv-table.js +3 -3
  275. package/dist/components/nv-table.js.map +1 -1
  276. package/dist/components/nv-tablebody.js +2 -2
  277. package/dist/components/nv-tablecolumn.js +2 -2
  278. package/dist/components/nv-tabledatacell.js +2 -2
  279. package/dist/components/nv-tablehead.js +2 -2
  280. package/dist/components/nv-tablerow.js +2 -2
  281. package/dist/components/nv-toggle.d.ts +11 -0
  282. package/dist/components/nv-toggle.js +109 -0
  283. package/dist/components/nv-toggle.js.map +1 -0
  284. package/dist/components/nv-tooltip.js +1 -1
  285. package/dist/components/{p-7c0db67e.js → p-16badb3b.js} +4 -4
  286. package/dist/components/{p-7c0db67e.js.map → p-16badb3b.js.map} +1 -1
  287. package/dist/components/{p-3a65a05e.js → p-17714233.js} +40 -28
  288. package/dist/components/p-17714233.js.map +1 -0
  289. package/dist/components/{p-0b30dd1b.js → p-18d221e3.js} +3 -3
  290. package/dist/components/{p-0b30dd1b.js.map → p-18d221e3.js.map} +1 -1
  291. package/dist/components/{p-d3b1c116.js → p-1c83f303.js} +6 -6
  292. package/dist/components/{p-d3b1c116.js.map → p-1c83f303.js.map} +1 -1
  293. package/dist/components/p-2768d2c0.js +57 -0
  294. package/dist/components/p-2768d2c0.js.map +1 -0
  295. package/dist/components/{p-74407727.js → p-56f71851.js} +16 -9
  296. package/dist/components/p-56f71851.js.map +1 -0
  297. package/dist/components/{p-3b209e94.js → p-77d0fedc.js} +43 -3
  298. package/dist/components/p-77d0fedc.js.map +1 -0
  299. package/dist/components/{p-2abfadb8.js → p-79bf6acb.js} +4 -4
  300. package/dist/components/{p-2abfadb8.js.map → p-79bf6acb.js.map} +1 -1
  301. package/dist/components/p-802c9204.js +128 -0
  302. package/dist/components/p-802c9204.js.map +1 -0
  303. package/dist/components/p-91bf0cb6.js +166 -0
  304. package/dist/components/p-91bf0cb6.js.map +1 -0
  305. package/dist/components/{p-afa1c98e.js → p-98ff0e5f.js} +37 -28
  306. package/dist/components/p-98ff0e5f.js.map +1 -0
  307. package/dist/components/p-a5c8eee9.js +22 -0
  308. package/dist/components/p-a5c8eee9.js.map +1 -0
  309. package/dist/components/{p-78e7c594.js → p-a9a52105.js} +6 -17
  310. package/dist/components/p-a9a52105.js.map +1 -0
  311. package/dist/components/p-ab87be7f.js +84 -0
  312. package/dist/components/p-ab87be7f.js.map +1 -0
  313. package/dist/components/{p-63afc71f.js → p-b877a150.js} +5 -5
  314. package/dist/components/p-b877a150.js.map +1 -0
  315. package/dist/components/p-d20958c4.js +82 -0
  316. package/dist/components/p-d20958c4.js.map +1 -0
  317. package/dist/components/p-d429a343.js +28 -0
  318. package/dist/components/p-d429a343.js.map +1 -0
  319. package/dist/components/{p-7a19fef7.js → p-dd34b97d.js} +5 -5
  320. package/dist/components/p-dd34b97d.js.map +1 -0
  321. package/dist/docs.json +2160 -758
  322. package/dist/esm/{app-globals-246d6b7c.js → app-globals-0a94217b.js} +2 -2
  323. package/dist/esm/{app-globals-246d6b7c.js.map → app-globals-0a94217b.js.map} +1 -1
  324. package/dist/esm/{constants-7b642e1d.js → constants-0181211f.js} +16 -9
  325. package/dist/esm/constants-0181211f.js.map +1 -0
  326. package/dist/esm/events.utils-fe1d907f.js +28 -0
  327. package/dist/esm/events.utils-fe1d907f.js.map +1 -0
  328. package/dist/esm/{grow.animation-88a8ee8f.js → grow.animation-cac164da.js} +2 -27
  329. package/dist/esm/grow.animation-cac164da.js.map +1 -0
  330. package/dist/esm/{index-cd557d0a.js → index-fac2d5d2.js} +75 -19
  331. package/dist/esm/index-fac2d5d2.js.map +1 -0
  332. package/dist/esm/index.js +25 -3
  333. package/dist/esm/index.js.map +1 -1
  334. package/dist/esm/loader.js +4 -4
  335. package/dist/esm/native.js +4 -4
  336. package/dist/esm/nv-alert.entry.js +3 -3
  337. package/dist/esm/nv-alert.entry.js.map +1 -1
  338. package/dist/esm/nv-avatar.entry.js +2 -2
  339. package/dist/esm/nv-badge_2.entry.js +4 -4
  340. package/dist/esm/nv-badge_2.entry.js.map +1 -1
  341. package/dist/esm/nv-base.entry.js +1 -1
  342. package/dist/esm/nv-breadcrumb.entry.js +4 -3
  343. package/dist/esm/nv-breadcrumb.entry.js.map +1 -1
  344. package/dist/esm/nv-breadcrumbs.entry.js +3 -3
  345. package/dist/esm/nv-breadcrumbs.entry.js.map +1 -1
  346. package/dist/esm/nv-button.entry.js +24 -4
  347. package/dist/esm/nv-button.entry.js.map +1 -1
  348. package/dist/esm/nv-col.entry.js +2 -2
  349. package/dist/esm/nv-datagrid.entry.js +3 -3
  350. package/dist/esm/nv-datagrid.entry.js.map +1 -1
  351. package/dist/esm/nv-datagridbody.entry.js +2 -2
  352. package/dist/esm/nv-datagridcolumn.entry.js +2 -2
  353. package/dist/esm/nv-datagriddatacell.entry.js +2 -2
  354. package/dist/esm/nv-datagridhead.entry.js +2 -2
  355. package/dist/esm/nv-datagridrow.entry.js +2 -2
  356. package/dist/esm/nv-dialog.entry.js +767 -0
  357. package/dist/esm/nv-dialog.entry.js.map +1 -0
  358. package/dist/esm/nv-dialogfooter_2.entry.js +127 -0
  359. package/dist/esm/nv-dialogfooter_2.entry.js.map +1 -0
  360. package/dist/esm/nv-fieldcheckbox.entry.js +34 -25
  361. package/dist/esm/nv-fieldcheckbox.entry.js.map +1 -1
  362. package/dist/esm/nv-fielddropdown.entry.js +53 -16
  363. package/dist/esm/nv-fielddropdown.entry.js.map +1 -1
  364. package/dist/esm/nv-fielddropdownitem.entry.js +3 -3
  365. package/dist/esm/nv-fielddropdownitem.entry.js.map +1 -1
  366. package/dist/esm/nv-fieldmultiselect.entry.js +7 -4
  367. package/dist/esm/nv-fieldmultiselect.entry.js.map +1 -1
  368. package/dist/esm/nv-fieldnumber.entry.js +13 -13
  369. package/dist/esm/nv-fieldnumber.entry.js.map +1 -1
  370. package/dist/esm/nv-fieldpassword.entry.js +5 -5
  371. package/dist/esm/nv-fieldpassword.entry.js.map +1 -1
  372. package/dist/esm/nv-fieldradio.entry.js +5 -5
  373. package/dist/esm/nv-fieldradio.entry.js.map +1 -1
  374. package/dist/esm/nv-fieldselect.entry.js +49 -18
  375. package/dist/esm/nv-fieldselect.entry.js.map +1 -1
  376. package/dist/esm/nv-fieldtext.entry.js +9 -6
  377. package/dist/esm/nv-fieldtext.entry.js.map +1 -1
  378. package/dist/esm/nv-fieldtextarea.entry.js +13 -13
  379. package/dist/esm/nv-fieldtextarea.entry.js.map +1 -1
  380. package/dist/esm/nv-fieldtime.entry.js +990 -0
  381. package/dist/esm/nv-fieldtime.entry.js.map +1 -0
  382. package/dist/esm/nv-icon.entry.js +4 -4
  383. package/dist/esm/nv-icon.entry.js.map +1 -1
  384. package/dist/esm/nv-iconbutton.entry.js +121 -0
  385. package/dist/esm/nv-iconbutton.entry.js.map +1 -0
  386. package/dist/esm/nv-loader.entry.js +31 -0
  387. package/dist/esm/nv-loader.entry.js.map +1 -0
  388. package/dist/esm/nv-menu.entry.js +66 -7
  389. package/dist/esm/nv-menu.entry.js.map +1 -1
  390. package/dist/esm/nv-menuitem.entry.js +2 -2
  391. package/dist/esm/nv-popover.entry.js +5 -16
  392. package/dist/esm/nv-popover.entry.js.map +1 -1
  393. package/dist/esm/nv-row.entry.js +2 -2
  394. package/dist/esm/nv-stack.entry.js +2 -2
  395. package/dist/esm/nv-table.entry.js +3 -3
  396. package/dist/esm/nv-table.entry.js.map +1 -1
  397. package/dist/esm/nv-tablebody.entry.js +2 -2
  398. package/dist/esm/nv-tablecolumn.entry.js +2 -2
  399. package/dist/esm/nv-tabledatacell.entry.js +2 -2
  400. package/dist/esm/nv-tablehead.entry.js +2 -2
  401. package/dist/esm/nv-tablerow.entry.js +2 -2
  402. package/dist/esm/nv-toggle.entry.js +78 -0
  403. package/dist/esm/nv-toggle.entry.js.map +1 -0
  404. package/dist/esm/nv-tooltip.entry.js +2 -2
  405. package/dist/esm/string.utils-16aed4a7.js +22 -0
  406. package/dist/esm/string.utils-16aed4a7.js.map +1 -0
  407. package/dist/native/index.esm.js +1 -1
  408. package/dist/native/index.esm.js.map +1 -1
  409. package/dist/native/native.css +1 -1
  410. package/dist/native/native.esm.js +1 -1
  411. package/dist/native/native.esm.js.map +1 -1
  412. package/dist/native/p-02bb8184.entry.js +2 -0
  413. package/dist/native/p-09850aa9.entry.js +2 -0
  414. package/dist/native/p-09850aa9.entry.js.map +1 -0
  415. package/dist/native/p-0bf35abc.entry.js +2 -0
  416. package/dist/native/p-0bf35abc.entry.js.map +1 -0
  417. package/dist/native/p-10ba289c.entry.js +2 -0
  418. package/dist/native/p-1208abf2.entry.js +2 -0
  419. package/dist/native/p-1208abf2.entry.js.map +1 -0
  420. package/dist/native/p-130f6c47.entry.js +2 -0
  421. package/dist/native/{p-3283505f.entry.js.map → p-130f6c47.entry.js.map} +1 -1
  422. package/dist/native/p-180c45ff.entry.js +2 -0
  423. package/dist/native/p-180c45ff.entry.js.map +1 -0
  424. package/dist/native/p-1bb5a6bd.entry.js +2 -0
  425. package/dist/native/p-1bb5a6bd.entry.js.map +1 -0
  426. package/dist/native/p-211f7b19.entry.js +2 -0
  427. package/dist/native/p-211f7b19.entry.js.map +1 -0
  428. package/dist/native/p-273d55e5.entry.js +2 -0
  429. package/dist/native/p-273d55e5.entry.js.map +1 -0
  430. package/dist/native/p-2aebf31b.entry.js +2 -0
  431. package/dist/native/{p-cd251f91.entry.js → p-2f62f097.entry.js} +2 -2
  432. package/dist/native/p-2f62f097.entry.js.map +1 -0
  433. package/dist/native/{p-6bb2c88f.entry.js → p-3c004551.entry.js} +2 -2
  434. package/dist/native/p-3c004551.entry.js.map +1 -0
  435. package/dist/native/p-46553ffd.entry.js +2 -0
  436. package/dist/native/p-46553ffd.entry.js.map +1 -0
  437. package/dist/native/p-4f11286d.entry.js +2 -0
  438. package/dist/native/{p-40f4828a.entry.js.map → p-4f11286d.entry.js.map} +1 -1
  439. package/dist/native/p-51ad8bcd.entry.js +2 -0
  440. package/dist/native/p-51ad8bcd.entry.js.map +1 -0
  441. package/dist/native/p-5439afb8.js +3 -0
  442. package/dist/native/p-5439afb8.js.map +1 -0
  443. package/dist/native/p-54df2174.entry.js +2 -0
  444. package/dist/native/p-54df2174.entry.js.map +1 -0
  445. package/dist/native/{p-74407727.js → p-56f71851.js} +2 -2
  446. package/dist/native/p-56f71851.js.map +1 -0
  447. package/dist/native/p-5f1a7e6e.entry.js +2 -0
  448. package/dist/native/p-5f1a7e6e.entry.js.map +1 -0
  449. package/dist/native/{p-575ea40b.entry.js → p-61d2cb2e.entry.js} +2 -2
  450. package/dist/native/p-87083363.entry.js +2 -0
  451. package/dist/native/p-87083363.entry.js.map +1 -0
  452. package/dist/native/p-892052c2.entry.js +2 -0
  453. package/dist/native/p-8c1a6aa6.entry.js +2 -0
  454. package/dist/native/p-8c1a6aa6.entry.js.map +1 -0
  455. package/dist/native/p-8ee30013.entry.js +2 -0
  456. package/dist/native/{p-9341cf9d.entry.js.map → p-8ee30013.entry.js.map} +1 -1
  457. package/dist/native/{p-f7db0785.entry.js → p-8f4788b9.entry.js} +3 -3
  458. package/dist/native/{p-f7db0785.entry.js.map → p-8f4788b9.entry.js.map} +1 -1
  459. package/dist/native/{p-788712dd.entry.js → p-96902bb3.entry.js} +2 -2
  460. package/dist/native/p-99e7a452.entry.js +2 -0
  461. package/dist/native/p-99e7a452.entry.js.map +1 -0
  462. package/dist/native/p-a06bafad.entry.js +2 -0
  463. package/dist/native/{p-18b227b5.entry.js.map → p-a06bafad.entry.js.map} +1 -1
  464. package/dist/native/p-a5c8eee9.js +2 -0
  465. package/dist/native/p-a5c8eee9.js.map +1 -0
  466. package/dist/native/{p-552e7ea4.entry.js → p-a998f8df.entry.js} +2 -2
  467. package/dist/native/p-aa2834e2.entry.js +2 -0
  468. package/dist/native/p-ab5a8ce5.entry.js +2 -0
  469. package/dist/native/p-bd6d9237.entry.js +7 -0
  470. package/dist/native/p-bd6d9237.entry.js.map +1 -0
  471. package/dist/native/p-beab7cbd.entry.js +2 -0
  472. package/dist/native/p-c1765831.js +2 -0
  473. package/dist/native/p-c1765831.js.map +1 -0
  474. package/dist/native/p-c398cdb4.entry.js +2 -0
  475. package/dist/native/p-c398cdb4.entry.js.map +1 -0
  476. package/dist/native/{p-2063c768.entry.js → p-d24586ed.entry.js} +2 -2
  477. package/dist/native/p-d429a343.js +2 -0
  478. package/dist/native/p-d429a343.js.map +1 -0
  479. package/dist/native/p-d67b7502.entry.js +2 -0
  480. package/dist/native/p-d67b7502.entry.js.map +1 -0
  481. package/dist/native/p-d776ed48.entry.js +2 -0
  482. package/dist/native/p-d776ed48.entry.js.map +1 -0
  483. package/dist/native/p-dc9dd5a7.entry.js +2 -0
  484. package/dist/native/p-e192c25c.entry.js +2 -0
  485. package/dist/native/p-e192c25c.entry.js.map +1 -0
  486. package/dist/native/p-e3827605.entry.js +2 -0
  487. package/dist/native/{p-5d0dc7c8.entry.js.map → p-e3827605.entry.js.map} +1 -1
  488. package/dist/native/p-e5a7596b.entry.js +2 -0
  489. package/dist/native/p-e6f45df2.entry.js +2 -0
  490. package/dist/native/p-ed47a702.entry.js +2 -0
  491. package/dist/native/p-f30ce086.entry.js +2 -0
  492. package/dist/native/{p-eda8cd9d.entry.js.map → p-f30ce086.entry.js.map} +1 -1
  493. package/dist/native/p-f3fbdea6.js +2 -0
  494. package/dist/types/components/nv-breadcrumb/nv-breadcrumb.d.ts +0 -1
  495. package/dist/types/components/nv-button/nv-button.d.ts +8 -0
  496. package/dist/types/components/nv-datagrid/nv-datagrid.d.ts +3 -0
  497. package/dist/types/components/nv-dialog/nv-dialog.d.ts +132 -0
  498. package/dist/types/components/nv-dialog/nv-dialog.docs.d.ts +4 -0
  499. package/dist/types/components/nv-dialogfooter/nv-dialogfooter.d.ts +63 -0
  500. package/dist/types/components/nv-dialogfooter/nv-dialogfooter.docs.d.ts +4 -0
  501. package/dist/types/components/nv-dialogheader/nv-dialogheader.d.ts +20 -0
  502. package/dist/types/components/nv-dialogheader/nv-dialogheader.docs.d.ts +4 -0
  503. package/dist/types/components/nv-fieldcheckbox/nv-fieldcheckbox.d.ts +14 -10
  504. package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +34 -10
  505. package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.d.ts +6 -2
  506. package/dist/types/components/nv-fieldnumber/nv-fieldnumber.d.ts +4 -4
  507. package/dist/types/components/nv-fieldradio/nv-fieldradio.d.ts +2 -2
  508. package/dist/types/components/nv-fieldselect/nv-fieldselect.d.ts +20 -6
  509. package/dist/types/components/nv-fieldtext/nv-fieldtext.d.ts +5 -4
  510. package/dist/types/components/nv-fieldtextarea/nv-fieldtextarea.d.ts +3 -3
  511. package/dist/types/components/nv-fieldtime/nv-fieldtime.d.ts +156 -0
  512. package/dist/types/components/nv-fieldtime/nv-fieldtime.docs.d.ts +4 -0
  513. package/dist/types/components/nv-icon/nv-icons.d.ts +1 -1
  514. package/dist/types/components/nv-menu/nv-menu.d.ts +20 -0
  515. package/dist/types/components/nv-table/nv-table.d.ts +3 -0
  516. package/dist/types/components/{nv-fieldtoggle/nv-fieldtoggle.d.ts → nv-toggle/nv-toggle.d.ts} +4 -4
  517. package/dist/types/components/nv-toggle/nv-toggle.docs.d.ts +4 -0
  518. package/dist/types/components.d.ts +543 -98
  519. package/dist/types/index.d.ts +1 -0
  520. package/dist/types/nova-docs.d.ts +20 -0
  521. package/dist/types/utils/constants.d.ts +6 -1
  522. package/dist/types/utils/string.utils.d.ts +9 -0
  523. package/dist/vscode-data.json +293 -34
  524. package/hydrate/index.js +2631 -445
  525. package/hydrate/index.mjs +2631 -445
  526. package/package.json +25 -9
  527. package/dist/cjs/constants-9525a915.js.map +0 -1
  528. package/dist/cjs/grow.animation-46e7ae4b.js.map +0 -1
  529. package/dist/cjs/index-ddc37f87.js.map +0 -1
  530. package/dist/cjs/nv-fieldtoggle.cjs.entry.js +0 -81
  531. package/dist/cjs/nv-fieldtoggle.cjs.entry.js.map +0 -1
  532. package/dist/cjs/nv-iconbutton_2.cjs.entry.js +0 -151
  533. package/dist/cjs/nv-iconbutton_2.cjs.entry.js.map +0 -1
  534. package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.docs.js.map +0 -1
  535. package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.js.map +0 -1
  536. package/dist/components/nv-fieldtoggle.js +0 -108
  537. package/dist/components/nv-fieldtoggle.js.map +0 -1
  538. package/dist/components/p-3a65a05e.js.map +0 -1
  539. package/dist/components/p-3b209e94.js.map +0 -1
  540. package/dist/components/p-5b98036c.js +0 -82
  541. package/dist/components/p-5b98036c.js.map +0 -1
  542. package/dist/components/p-63afc71f.js.map +0 -1
  543. package/dist/components/p-74407727.js.map +0 -1
  544. package/dist/components/p-78e7c594.js.map +0 -1
  545. package/dist/components/p-7a19fef7.js.map +0 -1
  546. package/dist/components/p-afa1c98e.js.map +0 -1
  547. package/dist/esm/constants-7b642e1d.js.map +0 -1
  548. package/dist/esm/grow.animation-88a8ee8f.js.map +0 -1
  549. package/dist/esm/index-cd557d0a.js.map +0 -1
  550. package/dist/esm/nv-fieldtoggle.entry.js +0 -77
  551. package/dist/esm/nv-fieldtoggle.entry.js.map +0 -1
  552. package/dist/esm/nv-iconbutton_2.entry.js +0 -146
  553. package/dist/esm/nv-iconbutton_2.entry.js.map +0 -1
  554. package/dist/native/p-0a9a738c.entry.js +0 -2
  555. package/dist/native/p-0a9a738c.entry.js.map +0 -1
  556. package/dist/native/p-0f9262ed.entry.js +0 -2
  557. package/dist/native/p-18b227b5.entry.js +0 -2
  558. package/dist/native/p-1e2bd4e3.entry.js +0 -2
  559. package/dist/native/p-1e2bd4e3.entry.js.map +0 -1
  560. package/dist/native/p-225962f2.entry.js +0 -2
  561. package/dist/native/p-2ac838b8.entry.js +0 -2
  562. package/dist/native/p-3283505f.entry.js +0 -2
  563. package/dist/native/p-38d3eee3.js +0 -2
  564. package/dist/native/p-3adf0c45.entry.js +0 -2
  565. package/dist/native/p-3adf0c45.entry.js.map +0 -1
  566. package/dist/native/p-40f4828a.entry.js +0 -2
  567. package/dist/native/p-44cc8b59.entry.js +0 -2
  568. package/dist/native/p-44cc8b59.entry.js.map +0 -1
  569. package/dist/native/p-4e056cd8.entry.js +0 -2
  570. package/dist/native/p-4e056cd8.entry.js.map +0 -1
  571. package/dist/native/p-4f30312d.entry.js +0 -2
  572. package/dist/native/p-4f30312d.entry.js.map +0 -1
  573. package/dist/native/p-4ffd5c51.entry.js +0 -2
  574. package/dist/native/p-52a7f936.entry.js +0 -2
  575. package/dist/native/p-5d0dc7c8.entry.js +0 -2
  576. package/dist/native/p-5e467b49.entry.js +0 -2
  577. package/dist/native/p-5f160072.entry.js +0 -2
  578. package/dist/native/p-6bb2c88f.entry.js.map +0 -1
  579. package/dist/native/p-6ea62d17.entry.js +0 -2
  580. package/dist/native/p-6ea62d17.entry.js.map +0 -1
  581. package/dist/native/p-74407727.js.map +0 -1
  582. package/dist/native/p-7dfb4a60.entry.js +0 -2
  583. package/dist/native/p-7dfb4a60.entry.js.map +0 -1
  584. package/dist/native/p-826f1d28.entry.js +0 -2
  585. package/dist/native/p-826f1d28.entry.js.map +0 -1
  586. package/dist/native/p-87b93cc2.entry.js +0 -2
  587. package/dist/native/p-8ae9aaf1.entry.js +0 -2
  588. package/dist/native/p-8f0984b0.entry.js +0 -2
  589. package/dist/native/p-8f0984b0.entry.js.map +0 -1
  590. package/dist/native/p-9341cf9d.entry.js +0 -2
  591. package/dist/native/p-967f1aee.entry.js +0 -2
  592. package/dist/native/p-967f1aee.entry.js.map +0 -1
  593. package/dist/native/p-9b093b92.js +0 -3
  594. package/dist/native/p-a37c2ac2.js +0 -2
  595. package/dist/native/p-a37c2ac2.js.map +0 -1
  596. package/dist/native/p-cd251f91.entry.js.map +0 -1
  597. package/dist/native/p-e5fbe545.entry.js +0 -2
  598. package/dist/native/p-e5fbe545.entry.js.map +0 -1
  599. package/dist/native/p-e8d181e6.entry.js +0 -2
  600. package/dist/native/p-eade52d4.entry.js +0 -2
  601. package/dist/native/p-eade52d4.entry.js.map +0 -1
  602. package/dist/native/p-ed825c80.entry.js +0 -2
  603. package/dist/native/p-ed825c80.entry.js.map +0 -1
  604. package/dist/native/p-eda8cd9d.entry.js +0 -2
  605. package/dist/native/p-f79752ca.entry.js +0 -2
  606. package/dist/native/p-f79752ca.entry.js.map +0 -1
  607. package/dist/native/p-fc8cad13.entry.js +0 -2
  608. package/dist/types/components/nv-fieldtoggle/nv-fieldtoggle.docs.d.ts +0 -4
  609. /package/dist/native/{p-e8d181e6.entry.js.map → p-02bb8184.entry.js.map} +0 -0
  610. /package/dist/native/{p-4ffd5c51.entry.js.map → p-10ba289c.entry.js.map} +0 -0
  611. /package/dist/native/{p-52a7f936.entry.js.map → p-2aebf31b.entry.js.map} +0 -0
  612. /package/dist/native/{p-575ea40b.entry.js.map → p-61d2cb2e.entry.js.map} +0 -0
  613. /package/dist/native/{p-fc8cad13.entry.js.map → p-892052c2.entry.js.map} +0 -0
  614. /package/dist/native/{p-788712dd.entry.js.map → p-96902bb3.entry.js.map} +0 -0
  615. /package/dist/native/{p-552e7ea4.entry.js.map → p-a998f8df.entry.js.map} +0 -0
  616. /package/dist/native/{p-5f160072.entry.js.map → p-aa2834e2.entry.js.map} +0 -0
  617. /package/dist/native/{p-225962f2.entry.js.map → p-ab5a8ce5.entry.js.map} +0 -0
  618. /package/dist/native/{p-2ac838b8.entry.js.map → p-beab7cbd.entry.js.map} +0 -0
  619. /package/dist/native/{p-2063c768.entry.js.map → p-d24586ed.entry.js.map} +0 -0
  620. /package/dist/native/{p-5e467b49.entry.js.map → p-dc9dd5a7.entry.js.map} +0 -0
  621. /package/dist/native/{p-0f9262ed.entry.js.map → p-e5a7596b.entry.js.map} +0 -0
  622. /package/dist/native/{p-87b93cc2.entry.js.map → p-e6f45df2.entry.js.map} +0 -0
  623. /package/dist/native/{p-8ae9aaf1.entry.js.map → p-ed47a702.entry.js.map} +0 -0
  624. /package/dist/native/{p-38d3eee3.js.map → p-f3fbdea6.js.map} +0 -0
@@ -11,11 +11,16 @@ import { v4 as uuidv4 } from "uuid";
11
11
  */
12
12
  export class NvFieldselect {
13
13
  constructor() {
14
+ //#endregion DEPRECATED
14
15
  /****************************************************************************/
15
16
  //#region STATES
16
17
  this.computedDisplayValue = '';
17
18
  this.internalReadonly = false;
18
- //#endregion DEPRECATED
19
+ /**
20
+ * Parsed options stored internally
21
+ */
22
+ this.parsedOptions = [];
23
+ //#endregion STATES
19
24
  /****************************************************************************/
20
25
  //#region PROPERTIES
21
26
  /**
@@ -101,16 +106,6 @@ export class NvFieldselect {
101
106
  }
102
107
  };
103
108
  }
104
- componentWillRender() {
105
- this.updateDisplayValue(); // Ensure display value is updated before render
106
- if (this.message) {
107
- this.description = this.message;
108
- }
109
- if (this.validation) {
110
- this.errorDescription = this.validation;
111
- this.error = true;
112
- }
113
- }
114
109
  //#endregion EVENTS
115
110
  /****************************************************************************/
116
111
  //#region WATCHERS
@@ -163,6 +158,27 @@ export class NvFieldselect {
163
158
  this.internalReadonly = true;
164
159
  }
165
160
  }
161
+ /**
162
+ * Parse options and update the internal state
163
+ * @param {string} newValue - The new value of options
164
+ */
165
+ handleOptionsChange(newValue) {
166
+ if (typeof newValue === 'string') {
167
+ try {
168
+ const parsedOpts = JSON.parse(newValue);
169
+ this.parsedOptions = [...parsedOpts];
170
+ // Update the value if an option is pre-selected
171
+ const selectedOption = parsedOpts.find(opt => opt.selected);
172
+ if (selectedOption) {
173
+ this.value = selectedOption.value;
174
+ }
175
+ }
176
+ catch (error) {
177
+ console.error('Error parsing options:', error);
178
+ this.parsedOptions = [];
179
+ }
180
+ }
181
+ }
166
182
  /**
167
183
  * Updates the display value of the select field. This method is used to
168
184
  * update the display value when the selected value changes. This is necessary
@@ -231,6 +247,16 @@ export class NvFieldselect {
231
247
  //#endregion METHODS
232
248
  /****************************************************************************/
233
249
  //#region LIFECYCLE
250
+ componentWillRender() {
251
+ this.updateDisplayValue(); // Ensure display value is updated before render
252
+ if (this.message) {
253
+ this.description = this.message;
254
+ }
255
+ if (this.validation) {
256
+ this.errorDescription = this.validation;
257
+ this.error = true;
258
+ }
259
+ }
234
260
  /**
235
261
  * Lifecycle method that is called before the component is rendered. This is
236
262
  * where the internal state is set up before rendering occurs.
@@ -264,6 +290,10 @@ export class NvFieldselect {
264
290
  if (this.multiple && typeof this.value !== 'string') {
265
291
  this.value = '';
266
292
  }
293
+ // Parse initial options if present
294
+ if (this.options) {
295
+ this.handleOptionsChange(this.options);
296
+ }
267
297
  }
268
298
  /**
269
299
  * Lifecycle method that is called after the component has been rendered.
@@ -307,13 +337,13 @@ export class NvFieldselect {
307
337
  * @returns {HTMLStencilElement} The HTML element to render.
308
338
  */
309
339
  render() {
310
- return (h(Host, { key: '488eabdf0d55be6e34cc726317f2081cd62cd36b' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '8f7a27d3829bb0d794525b3e7cae99d8512bd541', htmlFor: this.inputId }, h("slot", { key: 'd716b5c2d050859dfa2ff640b8c71e9e2e52d167', name: "label" }, this.label))), h("div", { key: '193c698fe743b361df7d51db8242ecd4ac4a845e', class: "select-wrapper" }, h("slot", { key: '8b6d17fb246b1226f0fb0ec682aad0c96256744d', name: "before-input" }), h("div", { key: 'aeba6544e7f59ea79ea9dd69ece2d322d4639d9c', class: "select-container", onClick: this.handleSelectContainerClick }, h("slot", { key: 'a895b3ff375f8b39c7dbfffc7b7e197ead24d756', name: "leading-input" }), this.internalReadonly && (h("input", { key: 'ed6f534b074ee0a9d4c2ceea8fb3501174ffe21d', id: this.inputId + '-readonly', type: "text", value: this.computedDisplayValue, readonly: true, class: "readonly-input", "aria-readonly": "true", "aria-label": this.label, "aria-describedby": this.error
340
+ return (h(Host, { key: 'ace27d52d50f0c22b6f9f54f3da24873f7c474c4' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '96665d80aec4cd4d8d0443c213a527d04a180f18', htmlFor: this.inputId }, h("slot", { key: '829c2f8afee3c36ed9706fc8de20c618334d1ed4', name: "label" }, this.label))), h("div", { key: 'e86b1e70ead3e7417db02d2b61c7df03872e7550', class: "select-wrapper" }, h("slot", { key: 'ab92d514336802ce38524abaac3b0ad4603a827a', name: "before-input" }), h("div", { key: 'ae6a3d57989cf64d8d443c81b02ef69b0421e0cd', class: "select-container", onClick: this.handleSelectContainerClick }, h("slot", { key: '3bb4e745a7b54377033814ecf8a85d2a041d0f83', name: "leading-input" }), this.internalReadonly && (h("input", { key: '7561e654ffd9eb3a50e4964bdca878e884c5fbaa', id: this.inputId + '-readonly', type: "text", value: this.computedDisplayValue, readonly: true, class: "readonly-input", "aria-readonly": "true", "aria-label": this.label, "aria-describedby": this.error
311
341
  ? `${this.inputId}-error`
312
- : `${this.inputId}-description` })), h("select", { key: 'b04cd5dc7a761235bb99bf6dfafc7df460d4015b', id: this.inputId, ref: el => (this.selectElement = el), name: this.name, disabled: this.disabled, required: this.required, multiple: this.multiple, onChange: this.handleSelectChange, class: this.internalReadonly ? 'hidden' : '', "aria-label": this.label, "aria-describedby": this.error
342
+ : `${this.inputId}-description` })), h("select", { key: '85057141cc87b490cb61f57d7b04d2fec9587f7f', id: this.inputId, ref: el => (this.selectElement = el), name: this.name, disabled: this.disabled, required: this.required, multiple: this.multiple, onChange: this.handleSelectChange, class: this.internalReadonly ? 'hidden' : '', "aria-label": this.label, "aria-describedby": this.error
313
343
  ? `${this.inputId}-error`
314
- : `${this.inputId}-description` }, h("slot", { key: '53e76753cce820e5a2e0603e06c3b45213e74665' })), this.internalReadonly && (h("nv-icon", { key: '74de038ef7f426556da9d3366a60a9eac11f06e1', name: "chevron-down", class: "readonly-icon", size: "sm" })), this.error && (h("nv-icon", { key: '354f4ee5153f48e8f0221b27310482c3b046ffa2', name: "alert-circle", class: "validation", size: "sm" })), this.success && (h("nv-icon", { key: '118d5be3c1b859e18b0ebd430763059be07f7416', name: "circle-check", class: "validation", size: "sm" }))), h("slot", { key: 'f30fab6851bef6311e2c0302b70ce779d46baffc', name: "after-input" })), (this.description ||
315
- this.el.querySelector('[slot="description"]')) && (h("div", { key: 'a56d029e8e9d9c5ba3c019ea735b71781641c1fe', class: "description", id: `${this.inputId}-description` }, h("slot", { key: 'fc6315884c44da3092a3cb2536cae28e1d767553', name: "description" }, this.description))), (this.errorDescription ||
316
- this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '92997cdace95b2bc58dfdc41b184c7147e0817e3', class: "error-description", id: `${this.inputId}-error` }, h("slot", { key: '75eefd84cabcfa330eab1453317643a4036dd33d', name: "error-description" }, this.errorDescription)))));
344
+ : `${this.inputId}-description` }, this.parsedOptions.length > 0 ? (this.parsedOptions.map(option => (h("option", { value: option.value, selected: option.selected, disabled: option.disabled }, option.label)))) : (h("slot", null))), this.internalReadonly && (h("nv-icon", { key: '457ce2cf6de8979791e6f5e7c5e1007e91c2cc8a', name: "chevron-down", class: "readonly-icon", size: "sm" })), this.error && (h("nv-icon", { key: '65db640022a44074f0d2a8bad386ca0222f4abd9', name: "alert-circle", class: "validation", size: "sm" })), this.success && (h("nv-icon", { key: 'bed81f83509df49579e727899ecd9ddb4a3aae82', name: "circle-check", class: "validation", size: "sm" }))), h("slot", { key: '080b73f51093d4419eee7e78d66bd8dd61eb10c4', name: "after-input" })), (this.description ||
345
+ this.el.querySelector('[slot="description"]')) && (h("div", { key: 'b4a180bf9df7061db893835f0a9438893f0b89de', class: "description", id: `${this.inputId}-description` }, h("slot", { key: '14b4e339fb55ca87340bfa712b2280a965408935', name: "description" }, this.description))), (this.errorDescription ||
346
+ this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'fd838c220f354e5ad3984780c04c372b540439e1', class: "error-description", id: `${this.inputId}-error` }, h("slot", { key: 'e8c632c8966283d581bd03d69ff9b6cd5e38e14f', name: "error-description" }, this.errorDescription)))));
317
347
  }
318
348
  static get is() { return "nv-fieldselect"; }
319
349
  static get formAssociated() { return true; }
@@ -342,7 +372,7 @@ export class NvFieldselect {
342
372
  "docs": {
343
373
  "tags": [{
344
374
  "name": "deprecated",
345
- "text": "use description instead."
375
+ "text": "Use `description` instead."
346
376
  }],
347
377
  "text": "Message defines a 'hint ' message for the Select Field."
348
378
  },
@@ -364,7 +394,7 @@ export class NvFieldselect {
364
394
  "docs": {
365
395
  "tags": [{
366
396
  "name": "deprecated",
367
- "text": "use errorDescription and set the error prop instead."
397
+ "text": "Use `errorDescription` and set the error prop instead."
368
398
  }],
369
399
  "text": "Add the message to the validation state."
370
400
  },
@@ -373,6 +403,25 @@ export class NvFieldselect {
373
403
  "attribute": "validation",
374
404
  "reflect": false
375
405
  },
406
+ "options": {
407
+ "type": "string",
408
+ "mutable": false,
409
+ "complexType": {
410
+ "original": "string",
411
+ "resolved": "string",
412
+ "references": {}
413
+ },
414
+ "required": false,
415
+ "optional": true,
416
+ "docs": {
417
+ "tags": [],
418
+ "text": "Options to display in the select. Can be passed as a JSON string.\nFormat: [{ label: string, value: string, selected?: boolean, disabled?: boolean }]"
419
+ },
420
+ "getter": false,
421
+ "setter": false,
422
+ "attribute": "options",
423
+ "reflect": false
424
+ },
376
425
  "inputId": {
377
426
  "type": "string",
378
427
  "mutable": false,
@@ -640,7 +689,8 @@ export class NvFieldselect {
640
689
  static get states() {
641
690
  return {
642
691
  "computedDisplayValue": {},
643
- "internalReadonly": {}
692
+ "internalReadonly": {},
693
+ "parsedOptions": {}
644
694
  };
645
695
  }
646
696
  static get events() {
@@ -675,6 +725,9 @@ export class NvFieldselect {
675
725
  }, {
676
726
  "propName": "readonly",
677
727
  "methodName": "handleReadonlyChange"
728
+ }, {
729
+ "propName": "options",
730
+ "methodName": "handleOptionsChange"
678
731
  }];
679
732
  }
680
733
  }
@@ -1 +1 @@
1
- {"version":3,"file":"nv-fieldselect.js","sourceRoot":"","sources":["../../../src/components/nv-fieldselect/nv-fieldselect.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,KAAK,EAEL,KAAK,EACL,OAAO,EACP,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAEpC;;;;;;;;GAQG;AAOH,MAAM,OAAO,aAAa;IAN1B;QAWE,8EAA8E;QAC9E,gBAAgB;QAGR,yBAAoB,GAAW,EAAE,CAAC;QAGlC,qBAAgB,GAAY,KAAK,CAAC;QAiC1C,uBAAuB;QACvB,8EAA8E;QAC9E,oBAAoB;QAEpB;;;;;WAKG;QAEM,YAAO,GAAW,MAAM,EAAE,CAAC;QA2BpC;;;;WAIG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAEnC;;;;WAIG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAEnC;;;WAGG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAEnC;;;;WAIG;QAEH,UAAK,GAAY,KAAK,CAAC;QAWvB;;;WAGG;QAEM,YAAO,GAAY,KAAK,CAAC;QAElC;;WAEG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAEnC;;;;WAIG;QAEH,UAAK,GAAW,EAAE,CAAC;QAEnB;;;;WAIG;QAEM,iBAAY,GAAY,KAAK,CAAC;QA6EvC,qBAAqB;QACrB,8EAA8E;QAC9E,iBAAiB;QAEjB;;;;;;WAMG;QACc,uBAAkB,GAAG,CAAC,KAAY,EAAE,EAAE;YACrD,MAAM,MAAM,GAAG,KAAK,CAAC,MAA2B,CAAC;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,WAAW,CAAQ,CAC9C,CACP;YAEA,CAAC,IAAI,CAAC,gBAAgB;gBACrB,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,4BAA4B,CAAC,CAAC,IAAI,CACxD,4DAAK,KAAK,EAAC,mBAAmB,EAAC,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,QAAQ;gBACxD,6DAAM,IAAI,EAAC,mBAAmB,IAAE,IAAI,CAAC,gBAAgB,CAAQ,CACzD,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n Event,\n EventEmitter,\n Watch,\n Element,\n State,\n} from '@stencil/core';\nimport { v4 as uuidv4 } from 'uuid';\n\n/**\n * @slot default - Content to be placed inside the select element.\n * @slot leading-input - Content to be placed before the select input, within the select container.\n * @slot before-input - Content to be placed before the select input, outside the select container.\n * @slot after-input - Content to be placed after the select input, outside the select container.\n * @slot label - Content to be placed as the label, will override the label prop.\n * @slot description - Content to be placed as the description, will override the description prop.\n * @slot error-description - Content to be placed as the error description, will override the errorDescription prop.\n */\n@Component({\n tag: 'nv-fieldselect',\n shadow: false,\n formAssociated: true,\n styleUrl: 'nv-fieldselect.scss',\n})\nexport class NvFieldselect {\n @Element() el: HTMLNvFieldselectElement;\n private selectElement!: HTMLSelectElement;\n private internals: ElementInternals;\n\n /****************************************************************************/\n //#region STATES\n\n @State()\n private computedDisplayValue: string = '';\n\n @State()\n private internalReadonly: boolean = false;\n\n //#endregion STATES\n /****************************************************************************/\n //#region DEPRECATED\n\n /**\n * Message defines a 'hint ' message for the Select Field.\n * @deprecated use description instead.\n */\n @Prop()\n readonly message: string;\n\n /**\n * Add the message to the validation state.\n * @deprecated use errorDescription and set the error prop instead.\n */\n @Prop()\n readonly validation: string;\n\n componentWillRender() {\n this.updateDisplayValue(); // Ensure display value is updated before render\n\n if (this.message) {\n this.description = this.message;\n }\n\n if (this.validation) {\n this.errorDescription = this.validation;\n this.error = true;\n }\n }\n\n //#endregion DEPRECATED\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Sets the ID for the select element and the for attribute of the associated\n * label. If no ID is provided, a random one will be automatically generated\n * to ensure unique identification, facilitating proper label association and\n * accessibility.\n */\n @Prop({ reflect: true })\n readonly inputId: string = uuidv4();\n\n /**\n * Lets you define the text that explains what users should choose in the\n * select field. It’s a crucial element for making forms clear and\n * user-friendly.\n */\n @Prop({ reflect: true })\n readonly label?: string;\n\n /**\n * Add helpful hints or extra information under the select field. This is\n * where you can clarify what users should choose or provide additional\n * instructions, making the form easier to fill out correctly.\n */\n @Prop({ reflect: true, mutable: true })\n description?: string;\n\n /**\n * Defines the name attribute of the select field, which is crucial for form\n * submission. This value is used as the key in the key-value pair sent to\n * the server, representing the selected data in form submissions. It should be\n * unique within the form to avoid conflicts\n */\n @Prop({ reflect: true })\n readonly name: string;\n\n /**\n * The disabled prop lets you turn off the select field so that users can’t\n * choose something. When disabled, the field is grayed out and won’t respond to\n * clicks or touches.\n */\n @Prop({ reflect: true })\n readonly disabled: boolean = false;\n\n /**\n * Display the select field’s content without allowing users to change it.\n * Users can still click on it, select, and copy the text, but they won’t be\n * able to change or delete anything.\n */\n @Prop({ reflect: true })\n readonly readonly: boolean = false;\n\n /**\n * Marks the select field as required, ensuring that the user must fill it out\n * before submitting the form.\n */\n @Prop({ reflect: true })\n readonly required: boolean = false;\n\n /**\n * Alters the select field’s appearance to indicate an error, helping users\n * identify fields that need correction.\n * @validator error\n */\n @Prop({ reflect: true, mutable: true })\n error: boolean = false;\n\n /**\n * Show a helpful message under the select field when there’s a problem. It\n * explains what’s wrong and how users can fix it, making the error easier to\n * understand and resolve.\n * @validator message\n */\n @Prop({ reflect: true, mutable: true })\n errorDescription: string;\n\n /**\n * Changes the select field’s appearance to indicate successful input or\n * validation.\n */\n @Prop({ reflect: true })\n readonly success: boolean = false;\n\n /**\n * When enabled, allows the select to handle multiple selections.\n */\n @Prop({ reflect: true })\n readonly multiple: boolean = false;\n\n /**\n * The value of the select field.\n * - If `multiple` is `false`, it's a single string.\n * - If `multiple` is `true`, it's a comma-separated string of selected values.\n */\n @Prop({ reflect: true, mutable: true })\n value: string = '';\n\n /**\n * When enabled, displays the value element instead of the label when readonly.\n * By default, the label is displayed in readonly mode. Also it automatically\n * sets the component to readonly.\n */\n @Prop({ reflect: true })\n readonly displayValue: boolean = false;\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Emitted when the selected value changes.\n * @bind value\n */\n @Event()\n valueChanged: EventEmitter<string>; // Emit as a string\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region WATCHERS\n\n /**\n * Updates the display value when the value property changes. This watcher is\n * used to update the display value when the selected value changes. This is\n * necessary for readonly select fields to display the selected value.\n * @internal This watcher is not intended to be called outside of the component.\n * @param {string} newValue - The new value of the select field.\n */\n @Watch('value')\n updateDisplayValueWatcher(newValue: string) {\n this.updateDisplayValue();\n\n if (this.selectElement) {\n const selectedValues = newValue.split(',').map(val => val.trim());\n const options = this.selectElement.options;\n\n if (options) {\n Array.from(options).forEach(option => {\n option.selected = this.multiple\n ? selectedValues.includes(option.value)\n : option.value === selectedValues[0];\n });\n\n if (!this.multiple) {\n this.selectElement.value = newValue; // Only set when not multiple\n }\n } else {\n this.selectElement.value = selectedValues[0] || '';\n }\n }\n\n // Update form value\n this.setFormValue();\n }\n\n /**\n * Watcher for the displayValue prop to ensure internalReadonly is true when displayValue is true.\n * @param {boolean} newValue - The new value of displayValue.\n */\n @Watch('displayValue')\n handleDisplayValueChange(newValue: boolean) {\n this.internalReadonly = newValue; // Set internalReadonly to true if displayValue is true\n\n if (this.readonly) {\n this.internalReadonly = true;\n }\n }\n\n /**\n * Watcher for the readonly prop to ensure internalReadonly is true when readonly is true.\n * @param {boolean} newValue - The new value of readonly.\n */\n @Watch('readonly')\n handleReadonlyChange(newValue: boolean) {\n this.internalReadonly = newValue; // Set internalReadonly to true if displayValue is true\n\n if (this.displayValue) {\n this.internalReadonly = true;\n }\n }\n\n //#endregion WATCHERS\n /****************************************************************************/\n //#region METHODS\n\n /**\n * Handles the change event on the select element. This method is used to\n * update the value property when the selected options change. It is also\n * used to emit the selectChanged event when the selected value changes.\n * @param {Event} event - The change event on the select element.\n * @emits selectChanged\n */\n private readonly handleSelectChange = (event: Event) => {\n const select = event.target as HTMLSelectElement;\n let selectedValues: string[] = Array.from(select.selectedOptions).map(\n option => option.value,\n );\n\n if (!this.multiple) {\n selectedValues = selectedValues.slice(0, 1);\n }\n\n this.value = this.multiple\n ? selectedValues.join(', ')\n : selectedValues[0] || '';\n this.valueChanged.emit(this.value);\n\n // Update form value\n this.setFormValue();\n };\n\n /**\n * Handles focus when the select container is clicked.\n */\n private readonly handleSelectContainerClick = () => {\n if (!this.internalReadonly && this.selectElement) {\n this.selectElement.focus();\n }\n };\n\n /**\n * Updates the display value of the select field. This method is used to\n * update the display value when the selected value changes. This is necessary\n * for readonly select fields to display the selected value. This method is\n * called in the componentDidLoad lifecycle hook and the updateDisplayValueWatcher\n * watcher.\n * @internal This method is not intended to be called outside of the component.\n */\n private updateDisplayValue(): void {\n if (this.internalReadonly && !this.displayValue) {\n if (this.multiple) {\n const selectedLabels = this.value\n .split(',')\n .map(key => key.trim())\n .map(key => this.getLabelFromId(key) || '')\n .filter(label => label !== '');\n this.computedDisplayValue = selectedLabels.join(', ') || '';\n } else {\n this.computedDisplayValue = this.getLabelFromId(this.value) || '';\n }\n } else if (this.internalReadonly && this.displayValue) {\n this.computedDisplayValue = this.value || '';\n }\n }\n\n /**\n * Retrieves the label from the <option> elements based on the provided key (value).\n * This method uses the id or value attribute directly from the <select> options.\n * @param {string} key - The key (value) for which to find the corresponding label.\n * @returns {string} The label if found; otherwise, an empty string.\n */\n private getLabelFromId(key: string): string {\n this.ensureSelectElement();\n if (!this.selectElement) {\n return '';\n }\n\n // Cache the option list\n const options = this.selectElement.options;\n\n if (options) {\n const option = Array.from(options).find(option => option.value === key);\n return option ? option.textContent.trim() || '' : '';\n } else {\n return '';\n }\n }\n\n /**\n * Sets the value of the form element for form submission. This method is\n * called when the selected value changes or when the value property is set.\n * @internal This method is not intended to be called outside of the component.\n */\n private setFormValue(): void {\n this.internals.setFormValue(this.value);\n }\n\n /**\n * Ensures the select element is available. This method is used to ensure\n * the select element is available before attempting to access it.\n * @internal This method is not intended to be called outside of the component.\n */\n private ensureSelectElement(): void {\n if (!this.selectElement) {\n this.selectElement = this.el.querySelector('select') as HTMLSelectElement;\n }\n }\n\n //#endregion METHODS\n /****************************************************************************/\n //#region LIFECYCLE\n\n /**\n * Lifecycle method that is called before the component is rendered. This is\n * where the internal state is set up before rendering occurs.\n */\n componentWillLoad() {\n // Set internalReadonly based on the readonly prop\n this.internalReadonly = this.readonly;\n\n // Ensure internalReadonly is true if displayValue is true during loading\n if (this.displayValue) {\n this.internalReadonly = true;\n }\n\n if ('attachInternals' in this.el) {\n this.internals = (\n this.el as HTMLElement & {\n /**\n * Attach the element to the form internals.\n * @returns {ElementInternals} - The element internals object.\n */\n attachInternals: () => ElementInternals;\n }\n ).attachInternals();\n } else {\n // Fallback logic for browsers without attachInternals support\n this.internals = {\n setFormValue: (value: string) => {\n const formElement = this.el.closest('form');\n if (formElement) {\n const input = document.createElement('input');\n input.type = 'hidden';\n input.name = this.name;\n input.value = value;\n formElement.appendChild(input);\n }\n },\n } as ElementInternals;\n }\n\n // Initialize value as an empty string if multiple is true\n if (this.multiple && typeof this.value !== 'string') {\n this.value = '';\n }\n }\n\n /**\n * Lifecycle method that is called after the component has been rendered.\n * This is where the display value is updated and the initial select element's\n * state is set.\n */\n componentDidLoad() {\n this.updateDisplayValue();\n\n if (this.selectElement) {\n // Only set the value for single selection, skip for multiple\n if (!this.multiple) {\n this.selectElement.value = this.value;\n }\n\n const selectedValues = this.multiple\n ? this.value.split(',').map(v => v.trim())\n : [this.value];\n\n const options = this.selectElement.options;\n\n if (options) {\n Array.from(options).forEach(option => {\n option.selected = this.multiple\n ? selectedValues.includes(option.value)\n : option.value === selectedValues[0];\n });\n } else {\n // Handle case where there are no options\n this.selectElement.value = selectedValues[0] || '';\n }\n }\n\n // Set the initial form value\n this.setFormValue();\n }\n\n //#endregion LIFECYCLE\n /****************************************************************************/\n //#region RENDERING\n\n /**\n * The render method creates the HTML structure for the component, including\n * the label, select element, and any error or description messages. It also\n * applies the appropriate CSS classes based on the readonly state and\n * displayValue prop. This method is called when the component is rendered.\n * @returns {HTMLStencilElement} The HTML element to render.\n */\n render() {\n return (\n <Host>\n {(this.label || this.el.querySelector('[slot=\"label\"]')) && (\n <label htmlFor={this.inputId}>\n <slot name=\"label\">{this.label}</slot>\n </label>\n )}\n\n <div class=\"select-wrapper\">\n <slot name=\"before-input\"></slot>\n\n <div\n class=\"select-container\"\n onClick={this.handleSelectContainerClick}\n >\n <slot name=\"leading-input\"></slot>\n\n {this.internalReadonly && (\n <input\n id={this.inputId + '-readonly'}\n type=\"text\"\n value={this.computedDisplayValue}\n readonly\n class=\"readonly-input\"\n aria-readonly=\"true\"\n aria-label={this.label}\n aria-describedby={\n this.error\n ? `${this.inputId}-error`\n : `${this.inputId}-description`\n }\n />\n )}\n\n <select\n id={this.inputId}\n ref={el => (this.selectElement = el)}\n name={this.name}\n disabled={this.disabled}\n required={this.required}\n multiple={this.multiple}\n onChange={this.handleSelectChange}\n class={this.internalReadonly ? 'hidden' : ''}\n aria-label={this.label}\n aria-describedby={\n this.error\n ? `${this.inputId}-error`\n : `${this.inputId}-description`\n }\n >\n <slot></slot>\n </select>\n\n {this.internalReadonly && (\n <nv-icon name=\"chevron-down\" class=\"readonly-icon\" size=\"sm\" />\n )}\n {this.error && (\n <nv-icon name=\"alert-circle\" class=\"validation\" size=\"sm\" />\n )}\n {this.success && (\n <nv-icon name=\"circle-check\" class=\"validation\" size=\"sm\" />\n )}\n </div>\n\n <slot name=\"after-input\"></slot>\n </div>\n\n {(this.description ||\n this.el.querySelector('[slot=\"description\"]')) && (\n <div class=\"description\" id={`${this.inputId}-description`}>\n <slot name=\"description\">{this.description}</slot>\n </div>\n )}\n\n {(this.errorDescription ||\n this.el.querySelector('[slot=\"error-description\"]')) && (\n <div class=\"error-description\" id={`${this.inputId}-error`}>\n <slot name=\"error-description\">{this.errorDescription}</slot>\n </div>\n )}\n </Host>\n );\n }\n\n //#endregion RENDERING\n}\n"]}
1
+ {"version":3,"file":"nv-fieldselect.js","sourceRoot":"","sources":["../../../src/components/nv-fieldselect/nv-fieldselect.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,KAAK,EAEL,KAAK,EACL,OAAO,EACP,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAEpC;;;;;;;;GAQG;AAOH,MAAM,OAAO,aAAa;IAN1B;QA4BE,uBAAuB;QACvB,8EAA8E;QAC9E,gBAAgB;QAGR,yBAAoB,GAAW,EAAE,CAAC;QAGlC,qBAAgB,GAAY,KAAK,CAAC;QAS1C;;WAEG;QAEK,kBAAa,GAiBhB,EAAE,CAAC;QAER,mBAAmB;QACnB,8EAA8E;QAC9E,oBAAoB;QAEpB;;;;;WAKG;QAEM,YAAO,GAAW,MAAM,EAAE,CAAC;QA2BpC;;;;WAIG;QAEM,aAAQ,GAAY,K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from 'uuid';\n\n/**\n * @slot default - Content to be placed inside the select element.\n * @slot leading-input - Content to be placed before the select input, within the select container.\n * @slot before-input - Content to be placed before the select input, outside the select container.\n * @slot after-input - Content to be placed after the select input, outside the select container.\n * @slot label - Content to be placed as the label, will override the label prop.\n * @slot description - Content to be placed as the description, will override the description prop.\n * @slot error-description - Content to be placed as the error description, will override the errorDescription prop.\n */\n@Component({\n tag: 'nv-fieldselect',\n shadow: false,\n formAssociated: true,\n styleUrl: 'nv-fieldselect.scss',\n})\nexport class NvFieldselect {\n @Element() el: HTMLNvFieldselectElement;\n private selectElement!: HTMLSelectElement;\n private internals: ElementInternals;\n\n /****************************************************************************/\n //#region DEPRECATED\n\n /**\n * Message defines a 'hint ' message for the Select Field.\n * @deprecated Use `description` instead.\n */\n @Prop()\n readonly message: string;\n\n /**\n * Add the message to the validation state.\n * @deprecated Use `errorDescription` and set the error prop instead.\n */\n @Prop()\n readonly validation: string;\n\n //#endregion DEPRECATED\n /****************************************************************************/\n //#region STATES\n\n @State()\n private computedDisplayValue: string = '';\n\n @State()\n private internalReadonly: boolean = false;\n\n /**\n * Options to display in the select. Can be passed as a JSON string.\n * Format: [{ label: string, value: string, selected?: boolean, disabled?: boolean }]\n */\n @Prop()\n readonly options?: string;\n\n /**\n * Parsed options stored internally\n */\n @State()\n private parsedOptions: Array<{\n /**\n * The label of the option\n */\n label: string;\n /**\n * The value of the option\n */\n value: string;\n /**\n * Whether the option is selected\n */\n selected?: boolean;\n /**\n * Whether the option is disabled\n */\n disabled?: boolean;\n }> = [];\n\n //#endregion STATES\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Sets the ID for the select element and the for attribute of the associated\n * label. If no ID is provided, a random one will be automatically generated\n * to ensure unique identification, facilitating proper label association and\n * accessibility.\n */\n @Prop({ reflect: true })\n readonly inputId: string = uuidv4();\n\n /**\n * Lets you define the text that explains what users should choose in the\n * select field. It’s a crucial element for making forms clear and\n * user-friendly.\n */\n @Prop({ reflect: true })\n readonly label?: string;\n\n /**\n * Add helpful hints or extra information under the select field. This is\n * where you can clarify what users should choose or provide additional\n * instructions, making the form easier to fill out correctly.\n */\n @Prop({ reflect: true, mutable: true })\n description?: string;\n\n /**\n * Defines the name attribute of the select field, which is crucial for form\n * submission. This value is used as the key in the key-value pair sent to\n * the server, representing the selected data in form submissions. It should be\n * unique within the form to avoid conflicts\n */\n @Prop({ reflect: true })\n readonly name: string;\n\n /**\n * The disabled prop lets you turn off the select field so that users can’t\n * choose something. When disabled, the field is grayed out and won’t respond to\n * clicks or touches.\n */\n @Prop({ reflect: true })\n readonly disabled: boolean = false;\n\n /**\n * Display the select field’s content without allowing users to change it.\n * Users can still click on it, select, and copy the text, but they won’t be\n * able to change or delete anything.\n */\n @Prop({ reflect: true })\n readonly readonly: boolean = false;\n\n /**\n * Marks the select field as required, ensuring that the user must fill it out\n * before submitting the form.\n */\n @Prop({ reflect: true })\n readonly required: boolean = false;\n\n /**\n * Alters the select field’s appearance to indicate an error, helping users\n * identify fields that need correction.\n * @validator error\n */\n @Prop({ reflect: true, mutable: true })\n error: boolean = false;\n\n /**\n * Show a helpful message under the select field when there’s a problem. It\n * explains what’s wrong and how users can fix it, making the error easier to\n * understand and resolve.\n * @validator message\n */\n @Prop({ reflect: true, mutable: true })\n errorDescription: string;\n\n /**\n * Changes the select field’s appearance to indicate successful input or\n * validation.\n */\n @Prop({ reflect: true })\n readonly success: boolean = false;\n\n /**\n * When enabled, allows the select to handle multiple selections.\n */\n @Prop({ reflect: true })\n readonly multiple: boolean = false;\n\n /**\n * The value of the select field.\n * - If `multiple` is `false`, it's a single string.\n * - If `multiple` is `true`, it's a comma-separated string of selected values.\n */\n @Prop({ reflect: true, mutable: true })\n value: string = '';\n\n /**\n * When enabled, displays the value element instead of the label when readonly.\n * By default, the label is displayed in readonly mode. Also it automatically\n * sets the component to readonly.\n */\n @Prop({ reflect: true })\n readonly displayValue: boolean = false;\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Emitted when the selected value changes.\n * @bind value\n */\n @Event()\n valueChanged: EventEmitter<string>; // Emit as a string\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region WATCHERS\n\n /**\n * Updates the display value when the value property changes. This watcher is\n * used to update the display value when the selected value changes. This is\n * necessary for readonly select fields to display the selected value.\n * @internal This watcher is not intended to be called outside of the component.\n * @param {string} newValue - The new value of the select field.\n */\n @Watch('value')\n updateDisplayValueWatcher(newValue: string) {\n this.updateDisplayValue();\n\n if (this.selectElement) {\n const selectedValues = newValue.split(',').map(val => val.trim());\n const options = this.selectElement.options;\n\n if (options) {\n Array.from(options).forEach(option => {\n option.selected = this.multiple\n ? selectedValues.includes(option.value)\n : option.value === selectedValues[0];\n });\n\n if (!this.multiple) {\n this.selectElement.value = newValue; // Only set when not multiple\n }\n } else {\n this.selectElement.value = selectedValues[0] || '';\n }\n }\n\n // Update form value\n this.setFormValue();\n }\n\n /**\n * Watcher for the displayValue prop to ensure internalReadonly is true when displayValue is true.\n * @param {boolean} newValue - The new value of displayValue.\n */\n @Watch('displayValue')\n handleDisplayValueChange(newValue: boolean) {\n this.internalReadonly = newValue; // Set internalReadonly to true if displayValue is true\n\n if (this.readonly) {\n this.internalReadonly = true;\n }\n }\n\n /**\n * Watcher for the readonly prop to ensure internalReadonly is true when readonly is true.\n * @param {boolean} newValue - The new value of readonly.\n */\n @Watch('readonly')\n handleReadonlyChange(newValue: boolean) {\n this.internalReadonly = newValue; // Set internalReadonly to true if displayValue is true\n\n if (this.displayValue) {\n this.internalReadonly = true;\n }\n }\n\n /**\n * Parse options and update the internal state\n * @param {string} newValue - The new value of options\n */\n @Watch('options')\n handleOptionsChange(newValue: string) {\n if (typeof newValue === 'string') {\n try {\n const parsedOpts = JSON.parse(newValue);\n this.parsedOptions = [...parsedOpts];\n\n // Update the value if an option is pre-selected\n const selectedOption = parsedOpts.find(opt => opt.selected);\n if (selectedOption) {\n this.value = selectedOption.value;\n }\n } catch (error) {\n console.error('Error parsing options:', error);\n this.parsedOptions = [];\n }\n }\n }\n\n //#endregion WATCHERS\n /****************************************************************************/\n //#region METHODS\n\n /**\n * Handles the change event on the select element. This method is used to\n * update the value property when the selected options change. It is also\n * used to emit the selectChanged event when the selected value changes.\n * @param {Event} event - The change event on the select element.\n * @emits selectChanged\n */\n private readonly handleSelectChange = (event: Event) => {\n const select = event.target as HTMLSelectElement;\n let selectedValues: string[] = Array.from(select.selectedOptions).map(\n option => option.value,\n );\n\n if (!this.multiple) {\n selectedValues = selectedValues.slice(0, 1);\n }\n\n this.value = this.multiple\n ? selectedValues.join(', ')\n : selectedValues[0] || '';\n this.valueChanged.emit(this.value);\n\n // Update form value\n this.setFormValue();\n };\n\n /**\n * Handles focus when the select container is clicked.\n */\n private readonly handleSelectContainerClick = () => {\n if (!this.internalReadonly && this.selectElement) {\n this.selectElement.focus();\n }\n };\n\n /**\n * Updates the display value of the select field. This method is used to\n * update the display value when the selected value changes. This is necessary\n * for readonly select fields to display the selected value. This method is\n * called in the componentDidLoad lifecycle hook and the updateDisplayValueWatcher\n * watcher.\n * @internal This method is not intended to be called outside of the component.\n */\n private updateDisplayValue(): void {\n if (this.internalReadonly && !this.displayValue) {\n if (this.multiple) {\n const selectedLabels = this.value\n .split(',')\n .map(key => key.trim())\n .map(key => this.getLabelFromId(key) || '')\n .filter(label => label !== '');\n this.computedDisplayValue = selectedLabels.join(', ') || '';\n } else {\n this.computedDisplayValue = this.getLabelFromId(this.value) || '';\n }\n } else if (this.internalReadonly && this.displayValue) {\n this.computedDisplayValue = this.value || '';\n }\n }\n\n /**\n * Retrieves the label from the <option> elements based on the provided key (value).\n * This method uses the id or value attribute directly from the <select> options.\n * @param {string} key - The key (value) for which to find the corresponding label.\n * @returns {string} The label if found; otherwise, an empty string.\n */\n private getLabelFromId(key: string): string {\n this.ensureSelectElement();\n if (!this.selectElement) {\n return '';\n }\n\n // Cache the option list\n const options = this.selectElement.options;\n\n if (options) {\n const option = Array.from(options).find(option => option.value === key);\n return option ? option.textContent.trim() || '' : '';\n } else {\n return '';\n }\n }\n\n /**\n * Sets the value of the form element for form submission. This method is\n * called when the selected value changes or when the value property is set.\n * @internal This method is not intended to be called outside of the component.\n */\n private setFormValue(): void {\n this.internals.setFormValue(this.value);\n }\n\n /**\n * Ensures the select element is available. This method is used to ensure\n * the select element is available before attempting to access it.\n * @internal This method is not intended to be called outside of the component.\n */\n private ensureSelectElement(): void {\n if (!this.selectElement) {\n this.selectElement = this.el.querySelector('select') as HTMLSelectElement;\n }\n }\n\n //#endregion METHODS\n /****************************************************************************/\n //#region LIFECYCLE\n\n componentWillRender() {\n this.updateDisplayValue(); // Ensure display value is updated before render\n\n if (this.message) {\n this.description = this.message;\n }\n\n if (this.validation) {\n this.errorDescription = this.validation;\n this.error = true;\n }\n }\n\n /**\n * Lifecycle method that is called before the component is rendered. This is\n * where the internal state is set up before rendering occurs.\n */\n componentWillLoad() {\n // Set internalReadonly based on the readonly prop\n this.internalReadonly = this.readonly;\n\n // Ensure internalReadonly is true if displayValue is true during loading\n if (this.displayValue) {\n this.internalReadonly = true;\n }\n\n if ('attachInternals' in this.el) {\n this.internals = (\n this.el as HTMLElement & {\n /**\n * Attach the element to the form internals.\n * @returns {ElementInternals} - The element internals object.\n */\n attachInternals: () => ElementInternals;\n }\n ).attachInternals();\n } else {\n // Fallback logic for browsers without attachInternals support\n this.internals = {\n setFormValue: (value: string) => {\n const formElement = this.el.closest('form');\n if (formElement) {\n const input = document.createElement('input');\n input.type = 'hidden';\n input.name = this.name;\n input.value = value;\n formElement.appendChild(input);\n }\n },\n } as ElementInternals;\n }\n\n // Initialize value as an empty string if multiple is true\n if (this.multiple && typeof this.value !== 'string') {\n this.value = '';\n }\n\n // Parse initial options if present\n if (this.options) {\n this.handleOptionsChange(this.options);\n }\n }\n\n /**\n * Lifecycle method that is called after the component has been rendered.\n * This is where the display value is updated and the initial select element's\n * state is set.\n */\n componentDidLoad() {\n this.updateDisplayValue();\n\n if (this.selectElement) {\n // Only set the value for single selection, skip for multiple\n if (!this.multiple) {\n this.selectElement.value = this.value;\n }\n\n const selectedValues = this.multiple\n ? this.value.split(',').map(v => v.trim())\n : [this.value];\n\n const options = this.selectElement.options;\n\n if (options) {\n Array.from(options).forEach(option => {\n option.selected = this.multiple\n ? selectedValues.includes(option.value)\n : option.value === selectedValues[0];\n });\n } else {\n // Handle case where there are no options\n this.selectElement.value = selectedValues[0] || '';\n }\n }\n\n // Set the initial form value\n this.setFormValue();\n }\n\n //#endregion LIFECYCLE\n /****************************************************************************/\n //#region RENDERING\n\n /**\n * The render method creates the HTML structure for the component, including\n * the label, select element, and any error or description messages. It also\n * applies the appropriate CSS classes based on the readonly state and\n * displayValue prop. This method is called when the component is rendered.\n * @returns {HTMLStencilElement} The HTML element to render.\n */\n render() {\n return (\n <Host>\n {(this.label || this.el.querySelector('[slot=\"label\"]')) && (\n <label htmlFor={this.inputId}>\n <slot name=\"label\">{this.label}</slot>\n </label>\n )}\n\n <div class=\"select-wrapper\">\n <slot name=\"before-input\"></slot>\n\n <div\n class=\"select-container\"\n onClick={this.handleSelectContainerClick}\n >\n <slot name=\"leading-input\"></slot>\n\n {this.internalReadonly && (\n <input\n id={this.inputId + '-readonly'}\n type=\"text\"\n value={this.computedDisplayValue}\n readonly\n class=\"readonly-input\"\n aria-readonly=\"true\"\n aria-label={this.label}\n aria-describedby={\n this.error\n ? `${this.inputId}-error`\n : `${this.inputId}-description`\n }\n />\n )}\n\n <select\n id={this.inputId}\n ref={el => (this.selectElement = el)}\n name={this.name}\n disabled={this.disabled}\n required={this.required}\n multiple={this.multiple}\n onChange={this.handleSelectChange}\n class={this.internalReadonly ? 'hidden' : ''}\n aria-label={this.label}\n aria-describedby={\n this.error\n ? `${this.inputId}-error`\n : `${this.inputId}-description`\n }\n >\n {this.parsedOptions.length > 0 ? (\n this.parsedOptions.map(option => (\n <option\n value={option.value}\n selected={option.selected}\n disabled={option.disabled}\n >\n {option.label}\n </option>\n ))\n ) : (\n <slot />\n )}\n </select>\n\n {this.internalReadonly && (\n <nv-icon name=\"chevron-down\" class=\"readonly-icon\" size=\"sm\" />\n )}\n {this.error && (\n <nv-icon name=\"alert-circle\" class=\"validation\" size=\"sm\" />\n )}\n {this.success && (\n <nv-icon name=\"circle-check\" class=\"validation\" size=\"sm\" />\n )}\n </div>\n\n <slot name=\"after-input\"></slot>\n </div>\n\n {(this.description ||\n this.el.querySelector('[slot=\"description\"]')) && (\n <div class=\"description\" id={`${this.inputId}-description`}>\n <slot name=\"description\">{this.description}</slot>\n </div>\n )}\n\n {(this.errorDescription ||\n this.el.querySelector('[slot=\"error-description\"]')) && (\n <div class=\"error-description\" id={`${this.inputId}-error`}>\n <slot name=\"error-description\">{this.errorDescription}</slot>\n </div>\n )}\n </Host>\n );\n }\n\n //#endregion RENDERING\n}\n"]}
@@ -72,14 +72,14 @@ nv-fieldtext .input-wrapper .input-container {
72
72
  border-width: 1px;
73
73
  border-style: solid;
74
74
  border-color: var(--nv-field-border-default);
75
- opacity: var(--components-form-opacity-default);
75
+ opacity: var(--components-form-opacity-default, 1);
76
76
  background: var(--nv-field-background);
77
77
  transition: all 150ms ease-out;
78
78
  }
79
79
  nv-fieldtext .input-wrapper .input-container:hover {
80
80
  border-color: var(--nv-field-border-hover);
81
81
  }
82
- nv-fieldtext .input-wrapper .input-container:focus-within {
82
+ nv-fieldtext .input-wrapper .input-container:focus-within, nv-fieldtext .input-wrapper .input-container:focus-within:hover, nv-fieldtext .input-wrapper .input-container:focus, nv-fieldtext .input-wrapper .input-container:focus:hover {
83
83
  border-color: var(--nv-field-border-focus);
84
84
  box-shadow: 0px 0px 0px var(--focus-field-stroke) var(--nv-field-focus-box-shadow);
85
85
  }
@@ -81,6 +81,9 @@ export class NvFieldtext {
81
81
  this.inputElement.focus();
82
82
  };
83
83
  }
84
+ //#endregion METHODS
85
+ /****************************************************************************/
86
+ //#region LIFECYCLE
84
87
  componentWillRender() {
85
88
  if (this.textInputType) {
86
89
  this.type = this.textInputType;
@@ -93,13 +96,13 @@ export class NvFieldtext {
93
96
  this.error = true;
94
97
  }
95
98
  }
96
- //#endregion METHODS
99
+ //#endregion LIFECYCLE
97
100
  /****************************************************************************/
98
101
  //#region RENDER
99
102
  render() {
100
- return (h(Host, { key: 'a72abeeb27e5ca2cd99bae24bc82244c804f3139' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '5cc62313402e322db31535acca086c380f457dc6', htmlFor: this.inputId }, h("slot", { key: 'f815f5311aa3ce60fa7f77d29cd90750cb399820', name: "label" }, this.label))), h("div", { key: '1d4c261110faf55ca25b65d86b77a7666dfe8adc', class: "input-wrapper" }, h("slot", { key: '5743bcb174019f5a92c20c5d6336e17842d7bb08', name: "before-input" }), h("div", { key: '7def6d8c23971148763ba6c901e1a07307c1ca9a', class: "input-container", onClick: this.handleInputContainerClick }, h("slot", { key: 'ce53a9e36919808dc3738ee05983e97785585e9f', name: "leading-input" }), h("input", { key: '5f434436a8708c2895bea87a2327ddc6a222d2a6', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, type: this.type, disabled: this.disabled, readOnly: this.readonly, required: this.required, maxlength: this.maxlength, minlength: this.minlength, pattern: this.pattern, autocomplete: this.autocomplete, multiple: this.multiple, value: this.value, onInput: this.handleInput }), this.error && (h("nv-icon", { key: '023814741ab991b0f46e132c243f7a7c513b82c8', name: "alert-circle", class: "validation", size: "sm" })), this.success && (h("nv-icon", { key: '06d572bedac515cb797799bb887d2b624f173cb1', name: "circle-check", class: "validation", size: "sm" }))), h("slot", { key: 'd81a53001f95f60ad44bc8aabd45803d5eca54e6', name: "after-input" })), (this.description ||
101
- this.el.querySelector('[slot="description"]')) && (h("div", { key: 'f0f6afc05adf9493ee5f5eb90a454006b07d131c', class: "description" }, h("slot", { key: '70b93af3c69573b8ba4ca9d8db28773de1a88362', name: "description" }, this.description))), (this.errorDescription ||
102
- this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'ce2b969356c92da9eab40792cba126d15f88250e', hidden: !this.error, class: "error-description" }, h("slot", { key: 'd6aa536ce3fc900bc5dcfbae524458ca925081f6', name: "error-description" }, this.errorDescription)))));
103
+ return (h(Host, { key: '22f5979300679cebfff9a85a1f18604e36fd0374' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: 'fa372b6988a1ff568e72ec3b8a2352a21dc49a16', htmlFor: this.inputId }, h("slot", { key: 'ecddd18263c8ab7f3309173d0ebbf32f3c8d1cde', name: "label" }, this.label))), h("div", { key: '0d93f2b0fdfb4ab92cb272ee1f9da62018524a3d', class: "input-wrapper" }, h("slot", { key: 'a699b48dc7b439699c36596dc9f55382262eef91', name: "before-input" }), h("div", { key: '95d6c530662c5495f505de64dd4538491a6a9b8e', class: "input-container", onClick: this.handleInputContainerClick }, h("slot", { key: 'e3febd47df3ac5dec70dc3b94e39ed6d7e16215d', name: "leading-input" }), h("input", { key: '746258b2a7f87f1e913781e2651d73e30f316006', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, type: this.type, disabled: this.disabled, readOnly: this.readonly, required: this.required, maxlength: this.maxlength, minlength: this.minlength, pattern: this.pattern, autocomplete: this.autocomplete, multiple: this.multiple, value: this.value, onInput: this.handleInput }), this.error && (h("nv-icon", { key: '314149ea256ac09298980d2b1405b23d6084030e', name: "alert-circle", class: "validation", size: "sm" })), this.success && (h("nv-icon", { key: 'ba160abd983eaa494df96fc19d3815479aebc332', name: "circle-check", class: "validation", size: "sm" }))), h("slot", { key: '9f3e7aa524bb5fffbf380307638cd93169bd5912', name: "after-input" })), (this.description ||
104
+ this.el.querySelector('[slot="description"]')) && (h("div", { key: '532613985e992508eaa3b56e2aa8facba4db6962', class: "description" }, h("slot", { key: '5ee29888f417f7c6fce352299a01dcd81169c387', name: "description" }, this.description))), (this.errorDescription ||
105
+ this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '73d6fd4eaf67278462c19812de9355afaf037c18', hidden: !this.error, class: "error-description" }, h("slot", { key: '3ba736958ccef0a3bd32d8e1dff213a2e2a160d6', name: "error-description" }, this.errorDescription)))));
103
106
  }
104
107
  static get is() { return "nv-fieldtext"; }
105
108
  static get formAssociated() { return true; }
@@ -128,7 +131,7 @@ export class NvFieldtext {
128
131
  "docs": {
129
132
  "tags": [{
130
133
  "name": "deprecated",
131
- "text": "use description instead."
134
+ "text": "Use `description` instead."
132
135
  }],
133
136
  "text": "Message defines a 'hint ' message for the Text Field."
134
137
  },
@@ -150,7 +153,7 @@ export class NvFieldtext {
150
153
  "docs": {
151
154
  "tags": [{
152
155
  "name": "deprecated",
153
- "text": "use errorDescription and set the error prop instead."
156
+ "text": "Use `errorDescription` and set the error prop instead."
154
157
  }],
155
158
  "text": "Add the message to the validation state."
156
159
  },
@@ -408,7 +411,7 @@ export class NvFieldtext {
408
411
  "references": {}
409
412
  },
410
413
  "required": false,
411
- "optional": false,
414
+ "optional": true,
412
415
  "docs": {
413
416
  "tags": [{
414
417
  "name": "validator",
@@ -1 +1 @@
1
- {"version":3,"file":"nv-fieldtext.js","sourceRoot":"","sources":["../../../src/components/nv-fieldtext/nv-fieldtext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,KAAK,EAEL,OAAO,GACR,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAIpC;;;;;;;GAOG;AAOH,MAAM,OAAO,WAAW;IANxB;QAiDE,uBAAuB;QACvB,8EAA8E;QAC9E,oBAAoB;QAEpB;;;;;WAKG;QAEM,YAAO,GAAW,MAAM,EAAE,CAAC;QA2CpC;;;;;WAKG;QAEH,SAAI,GAA6B,MAAM,CAAC;QAExC;;;;WAIG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAEnC;;;;WAIG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAEnC;;;WAGG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAEnC;;;;WAIG;QAEH,UAAK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M,IAAI,EAAC,aAAa,IAAE,IAAI,CAAC,WAAW,CAAQ,CAC9C,CACP;YAEA,CAAC,IAAI,CAAC,gBAAgB;gBACrB,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,4BAA4B,CAAC,CAAC,IAAI,CACxD,4DAAK,MAAM,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,EAAC,mBAAmB;gBACjD,6DAAM,IAAI,EAAC,mBAAmB,IAAE,IAAI,CAAC,gBAAgB,CAAQ,CACzD,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n Event,\n EventEmitter,\n Element,\n} from '@stencil/core';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { TextInputAutocomplete } from '../../utils/constants';\n\n/**\n * @slot leading-input - Content to be placed before the input text, within the input container.\n * @slot before-input - Content to be placed before the input text, outside the input container.\n * @slot after-input - Content to be placed after the input text, outside the input container.\n * @slot label - Content to be placed as the label, will override the label prop.\n * @slot description - Content to be placed as the description, will override the description prop.\n * @slot error-description - Content to be placed as the error description, will override the errorDescription prop.\n */\n@Component({\n tag: 'nv-fieldtext',\n shadow: false,\n formAssociated: true,\n styleUrl: 'nv-fieldtext.scss',\n})\nexport class NvFieldtext {\n @Element() el: HTMLNvFieldtextElement;\n private inputElement!: HTMLInputElement;\n\n /****************************************************************************/\n //#region DEPRECATED\n\n /**\n * Message defines a 'hint ' message for the Text Field.\n * @deprecated use description instead.\n */\n @Prop()\n readonly message: string;\n\n /**\n * Add the message to the validation state.\n * @deprecated use errorDescription and set the error prop instead.\n */\n @Prop()\n readonly validation: string;\n\n /**\n * Type of the input.\n * @deprecated use type instead.\n */\n @Prop()\n readonly textInputType: 'text' | 'tel' | 'email';\n\n componentWillRender() {\n if (this.textInputType) {\n this.type = this.textInputType;\n }\n\n if (this.message) {\n this.description = this.message;\n }\n\n if (this.validation) {\n this.errorDescription = this.validation;\n this.error = true;\n }\n }\n\n //#endregion DEPRECATED\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Sets the ID for the input element and the for attribute of the associated\n * label. If no ID is provided, a random one will be automatically generated\n * to ensure unique identification, facilitating proper label association and\n * accessibility.\n */\n @Prop({ reflect: true })\n readonly inputId: string = uuidv4();\n\n /**\n * Lets you define the text that explains what users should enter in the text\n * input field. It’s a crucial element for making forms clear and\n * user-friendly.\n */\n @Prop({ reflect: true })\n readonly label: string;\n\n /**\n * Add helpful hints or extra information under the text input field. This is\n * where you can clarify what users should enter or provide additional\n * instructions, making the form easier to fill out correctly.\n */\n @Prop({ reflect: true, mutable: true })\n description: string;\n\n /**\n * Display temporary text inside the input field to give users a hint about\n * what to type. It’s a great way to provide examples or suggestions directly\n * in the field before they start typing.\n */\n @Prop({ reflect: true })\n readonly placeholder: string;\n\n /**\n * Defines the name attribute of the input field, which is crucial for form\n * submission. This value is used as the key in the key-value pair sent to\n * the server, representing the input’s data in form submissions. It should be\n * unique within the form to avoid conflicts\n */\n @Prop({ reflect: true })\n readonly name: string;\n\n /**\n * Specifies the value of the input field, which determines the text displayed\n * within the field. This prop is typically used in controlled components\n * where the input’s value is managed by the component’s state.\n */\n @Prop({ reflect: true, mutable: true })\n value: string;\n\n /**\n * The type prop lets you specify what kind of information the input field\n * should accept. Choose 'text' for general words or sentences, 'tel' for\n * phone numbers, or 'email' for email addresses. This makes sure users get\n * the right keyboard and validation for what they need to enter.\n */\n @Prop({ reflect: true, mutable: true })\n type: 'text' | 'tel' | 'email' = 'text';\n\n /**\n * The disabled prop lets you turn off the input field so that users can’t\n * type in it. When disabled, the field is grayed out and won’t respond to\n * clicks or touches.\n */\n @Prop({ reflect: true })\n readonly disabled: boolean = false;\n\n /**\n * Display the input field’s content without allowing users to change it.\n * Users can still click on it, select, and copy the text, but they won’t be\n * able to type or delete anything.\n */\n @Prop({ reflect: true })\n readonly readonly: boolean = false;\n\n /**\n * Marks the input field as required, ensuring that the user must fill it out\n * before submitting the form.\n */\n @Prop({ reflect: true })\n readonly required: boolean = false;\n\n /**\n * Alters the input field’s appearance to indicate an error, helping users\n * identify fields that need correction.\n * @validator error\n */\n @Prop({ reflect: true, mutable: true })\n error: boolean = false;\n\n /**\n * A description that appears when there is an error related to the textfield\n * field.\n * @validator message\n */\n @Prop({ reflect: true, mutable: true })\n errorDescription: string;\n\n /**\n * Changes the input field’s appearance to indicate successful input or\n * validation.\n */\n @Prop({ reflect: true })\n readonly success: boolean = false;\n\n /**\n * Limits how many characters users can type into the input field. It’s\n * helpful for making sure users don’t enter too much information, keeping\n * their input within the allowed limit.\n */\n @Prop({ reflect: true })\n readonly maxlength: number;\n\n /**\n * Ensures that users type at least a certain number of characters into the\n * input field. It’s a way to make sure users provide enough information\n * before moving on.\n */\n @Prop({ reflect: true })\n readonly minlength: number;\n\n /**\n * Set rules for how the input should be formatted. For example, you can\n * require that a phone number includes only digits or that an email address\n * has the correct format. If users don’t follow these rules, they’ll get a\n * prompt to correct their input after the form is submitted.\n */\n @Prop({ reflect: true })\n readonly pattern: string;\n\n /**\n * The autocomplete prop helps users fill out the input field faster by\n * suggesting entries they’ve used before, like their email or address.\n * You can turn it on to make forms more convenient or off to ensure users\n * always type in fresh data.\n */\n @Prop({ reflect: true })\n readonly autocomplete: `${TextInputAutocomplete}`;\n\n /**\n * When used with the email input type, this prop enables the field to accept\n * multiple email addresses. Users can enter several addresses, separating\n * each one with a comma, allowing the form to handle multiple recipients.\n */\n @Prop({ reflect: true })\n readonly multiple: boolean = false;\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Emitted when the input value changes.\n * @bind value\n */\n @Event()\n valueChanged: EventEmitter<string>;\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region METHODS\n\n /**\n * Handles the input event on the input element.\n * Emits the inputChanged event with the new value.\n * @param {Event} event - Event object of the input event.\n */\n private handleInput = (event: Event) => {\n const input = event.target as HTMLInputElement;\n this.value = input.value;\n this.valueChanged.emit(input.value);\n };\n\n /**\n * Handles focus when the input container is clicked.\n */\n private handleInputContainerClick = () => {\n this.inputElement.focus();\n };\n\n //#endregion METHODS\n /****************************************************************************/\n //#region RENDER\n\n render() {\n return (\n <Host>\n {(this.label || this.el.querySelector('[slot=\"label\"]')) && (\n <label htmlFor={this.inputId}>\n <slot name=\"label\">{this.label}</slot>\n </label>\n )}\n\n <div class=\"input-wrapper\">\n <slot name=\"before-input\"></slot>\n\n <div class=\"input-container\" onClick={this.handleInputContainerClick}>\n <slot name=\"leading-input\"></slot>\n\n <input\n id={this.inputId}\n ref={e => (this.inputElement = e)}\n placeholder={this.placeholder}\n name={this.name}\n type={this.type}\n disabled={this.disabled}\n readOnly={this.readonly}\n required={this.required}\n maxlength={this.maxlength}\n minlength={this.minlength}\n pattern={this.pattern}\n autocomplete={this.autocomplete}\n multiple={this.multiple}\n value={this.value}\n onInput={this.handleInput}\n />\n\n {this.error && (\n <nv-icon name=\"alert-circle\" class=\"validation\" size=\"sm\" />\n )}\n {this.success && (\n <nv-icon name=\"circle-check\" class=\"validation\" size=\"sm\" />\n )}\n </div>\n\n <slot name=\"after-input\"></slot>\n </div>\n\n {(this.description ||\n this.el.querySelector('[slot=\"description\"]')) && (\n <div class=\"description\">\n <slot name=\"description\">{this.description}</slot>\n </div>\n )}\n\n {(this.errorDescription ||\n this.el.querySelector('[slot=\"error-description\"]')) && (\n <div hidden={!this.error} class=\"error-description\">\n <slot name=\"error-description\">{this.errorDescription}</slot>\n </div>\n )}\n </Host>\n );\n }\n\n //#endregion RENDER\n}\n"]}
1
+ {"version":3,"file":"nv-fieldtext.js","sourceRoot":"","sources":["../../../src/components/nv-fieldtext/nv-fieldtext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,KAAK,EAEL,OAAO,GACR,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAIpC;;;;;;;GAOG;AAOH,MAAM,OAAO,WAAW;IANxB;QAkCE,uBAAuB;QACvB,8EAA8E;QAC9E,oBAAoB;QAEpB;;;;;WAKG;QAEM,YAAO,GAAW,MAAM,EAAE,CAAC;QA2CpC;;;;;WAKG;QAEH,SAAI,GAA6B,MAAM,CAAC;QAExC;;;;WAIG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAEnC;;;;WAIG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAEnC;;;WAGG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAEnC;;;;WAIG;QAEH,UAAK,GAAY,KAAK,CAAC;QAUvB;;;WAGG;QAEM,YAAO,GAAY,KAAK,CAAC;QAoClC;;;;WAIG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAanC,mBAAmB;QACnB,8EAA8E;QAC9E,iBAAiB;QAEjB;;;;WAIG;QACK,gBAAW,GAAG,CAAC,KAAY,EAAE,EAAE;YACrC,MAAM,KAAK,GAAG,KAAK,CAAC,MAA0B,CAAC;YAC/C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;YACzB,IAAI,CAAC,YAA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B,CAAQ,CACzD,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n Event,\n EventEmitter,\n Element,\n} from '@stencil/core';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { TextInputAutocomplete } from '../../utils/constants';\n\n/**\n * @slot leading-input - Content to be placed before the input text, within the input container.\n * @slot before-input - Content to be placed before the input text, outside the input container.\n * @slot after-input - Content to be placed after the input text, outside the input container.\n * @slot label - Content to be placed as the label, will override the label prop.\n * @slot description - Content to be placed as the description, will override the description prop.\n * @slot error-description - Content to be placed as the error description, will override the errorDescription prop.\n */\n@Component({\n tag: 'nv-fieldtext',\n shadow: false,\n formAssociated: true,\n styleUrl: 'nv-fieldtext.scss',\n})\nexport class NvFieldtext {\n @Element() el: HTMLNvFieldtextElement;\n private inputElement!: HTMLInputElement;\n\n /****************************************************************************/\n //#region DEPRECATED\n\n /**\n * Message defines a 'hint ' message for the Text Field.\n * @deprecated Use `description` instead.\n */\n @Prop()\n readonly message: string;\n\n /**\n * Add the message to the validation state.\n * @deprecated Use `errorDescription` and set the error prop instead.\n */\n @Prop()\n readonly validation: string;\n\n /**\n * Type of the input.\n * @deprecated use type instead.\n */\n @Prop()\n readonly textInputType: 'text' | 'tel' | 'email';\n\n //#endregion DEPRECATED\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Sets the ID for the input element and the for attribute of the associated\n * label. If no ID is provided, a random one will be automatically generated\n * to ensure unique identification, facilitating proper label association and\n * accessibility.\n */\n @Prop({ reflect: true })\n readonly inputId: string = uuidv4();\n\n /**\n * Lets you define the text that explains what users should enter in the text\n * input field. It’s a crucial element for making forms clear and\n * user-friendly.\n */\n @Prop({ reflect: true })\n readonly label: string;\n\n /**\n * Add helpful hints or extra information under the text input field. This is\n * where you can clarify what users should enter or provide additional\n * instructions, making the form easier to fill out correctly.\n */\n @Prop({ reflect: true, mutable: true })\n description: string;\n\n /**\n * Display temporary text inside the input field to give users a hint about\n * what to type. It’s a great way to provide examples or suggestions directly\n * in the field before they start typing.\n */\n @Prop({ reflect: true })\n readonly placeholder: string;\n\n /**\n * Defines the name attribute of the input field, which is crucial for form\n * submission. This value is used as the key in the key-value pair sent to\n * the server, representing the input’s data in form submissions. It should be\n * unique within the form to avoid conflicts\n */\n @Prop({ reflect: true })\n readonly name: string;\n\n /**\n * Specifies the value of the input field, which determines the text displayed\n * within the field. This prop is typically used in controlled components\n * where the input’s value is managed by the component’s state.\n */\n @Prop({ reflect: true, mutable: true })\n value: string;\n\n /**\n * The type prop lets you specify what kind of information the input field\n * should accept. Choose 'text' for general words or sentences, 'tel' for\n * phone numbers, or 'email' for email addresses. This makes sure users get\n * the right keyboard and validation for what they need to enter.\n */\n @Prop({ reflect: true, mutable: true })\n type: 'text' | 'tel' | 'email' = 'text';\n\n /**\n * The disabled prop lets you turn off the input field so that users can’t\n * type in it. When disabled, the field is grayed out and won’t respond to\n * clicks or touches.\n */\n @Prop({ reflect: true })\n readonly disabled: boolean = false;\n\n /**\n * Display the input field’s content without allowing users to change it.\n * Users can still click on it, select, and copy the text, but they won’t be\n * able to type or delete anything.\n */\n @Prop({ reflect: true })\n readonly readonly: boolean = false;\n\n /**\n * Marks the input field as required, ensuring that the user must fill it out\n * before submitting the form.\n */\n @Prop({ reflect: true })\n readonly required: boolean = false;\n\n /**\n * Alters the input field’s appearance to indicate an error, helping users\n * identify fields that need correction.\n * @validator error\n */\n @Prop({ reflect: true, mutable: true })\n error: boolean = false;\n\n /**\n * A description that appears when there is an error related to the textfield\n * field.\n * @validator message\n */\n @Prop({ reflect: true, mutable: true })\n errorDescription?: string;\n\n /**\n * Changes the input field’s appearance to indicate successful input or\n * validation.\n */\n @Prop({ reflect: true })\n readonly success: boolean = false;\n\n /**\n * Limits how many characters users can type into the input field. It’s\n * helpful for making sure users don’t enter too much information, keeping\n * their input within the allowed limit.\n */\n @Prop({ reflect: true })\n readonly maxlength: number;\n\n /**\n * Ensures that users type at least a certain number of characters into the\n * input field. It’s a way to make sure users provide enough information\n * before moving on.\n */\n @Prop({ reflect: true })\n readonly minlength: number;\n\n /**\n * Set rules for how the input should be formatted. For example, you can\n * require that a phone number includes only digits or that an email address\n * has the correct format. If users don’t follow these rules, they’ll get a\n * prompt to correct their input after the form is submitted.\n */\n @Prop({ reflect: true })\n readonly pattern: string;\n\n /**\n * The autocomplete prop helps users fill out the input field faster by\n * suggesting entries they’ve used before, like their email or address.\n * You can turn it on to make forms more convenient or off to ensure users\n * always type in fresh data.\n */\n @Prop({ reflect: true })\n readonly autocomplete: `${TextInputAutocomplete}`;\n\n /**\n * When used with the email input type, this prop enables the field to accept\n * multiple email addresses. Users can enter several addresses, separating\n * each one with a comma, allowing the form to handle multiple recipients.\n */\n @Prop({ reflect: true })\n readonly multiple: boolean = false;\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Emitted when the input value changes.\n * @bind value\n */\n @Event()\n valueChanged: EventEmitter<string>;\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region METHODS\n\n /**\n * Handles the input event on the input element.\n * Emits the inputChanged event with the new value.\n * @param {Event} event - Event object of the input event.\n */\n private handleInput = (event: Event) => {\n const input = event.target as HTMLInputElement;\n this.value = input.value;\n this.valueChanged.emit(input.value);\n };\n\n /**\n * Handles focus when the input container is clicked.\n */\n private handleInputContainerClick = () => {\n this.inputElement.focus();\n };\n\n //#endregion METHODS\n /****************************************************************************/\n //#region LIFECYCLE\n\n componentWillRender() {\n if (this.textInputType) {\n this.type = this.textInputType;\n }\n\n if (this.message) {\n this.description = this.message;\n }\n\n if (this.validation) {\n this.errorDescription = this.validation;\n this.error = true;\n }\n }\n\n //#endregion LIFECYCLE\n /****************************************************************************/\n //#region RENDER\n\n render() {\n return (\n <Host>\n {(this.label || this.el.querySelector('[slot=\"label\"]')) && (\n <label htmlFor={this.inputId}>\n <slot name=\"label\">{this.label}</slot>\n </label>\n )}\n\n <div class=\"input-wrapper\">\n <slot name=\"before-input\"></slot>\n\n <div class=\"input-container\" onClick={this.handleInputContainerClick}>\n <slot name=\"leading-input\"></slot>\n\n <input\n id={this.inputId}\n ref={e => (this.inputElement = e)}\n placeholder={this.placeholder}\n name={this.name}\n type={this.type}\n disabled={this.disabled}\n readOnly={this.readonly}\n required={this.required}\n maxlength={this.maxlength}\n minlength={this.minlength}\n pattern={this.pattern}\n autocomplete={this.autocomplete}\n multiple={this.multiple}\n value={this.value}\n onInput={this.handleInput}\n />\n\n {this.error && (\n <nv-icon name=\"alert-circle\" class=\"validation\" size=\"sm\" />\n )}\n {this.success && (\n <nv-icon name=\"circle-check\" class=\"validation\" size=\"sm\" />\n )}\n </div>\n\n <slot name=\"after-input\"></slot>\n </div>\n\n {(this.description ||\n this.el.querySelector('[slot=\"description\"]')) && (\n <div class=\"description\">\n <slot name=\"description\">{this.description}</slot>\n </div>\n )}\n\n {(this.errorDescription ||\n this.el.querySelector('[slot=\"error-description\"]')) && (\n <div hidden={!this.error} class=\"error-description\">\n <slot name=\"error-description\">{this.errorDescription}</slot>\n </div>\n )}\n </Host>\n );\n }\n\n //#endregion RENDER\n}\n"]}
@@ -77,15 +77,6 @@ export class NvFieldtextarea {
77
77
  this.textareaElement.focus();
78
78
  };
79
79
  }
80
- componentWillRender() {
81
- if (this.message) {
82
- this.description = this.message;
83
- }
84
- if (this.validation) {
85
- this.errorDescription = this.validation;
86
- this.error = true;
87
- }
88
- }
89
80
  //#endregion EVENTS
90
81
  /****************************************************************************/
91
82
  //#region WATCHERS
@@ -158,6 +149,15 @@ export class NvFieldtextarea {
158
149
  //#endregion METHODS
159
150
  /****************************************************************************/
160
151
  //#region LIFECYCLE
152
+ componentWillRender() {
153
+ if (this.message) {
154
+ this.description = this.message;
155
+ }
156
+ if (this.validation) {
157
+ this.errorDescription = this.validation;
158
+ this.error = true;
159
+ }
160
+ }
161
161
  componentDidLoad() {
162
162
  if (this.autosize) {
163
163
  this.adjustTextareaHeight();
@@ -167,9 +167,9 @@ export class NvFieldtextarea {
167
167
  /****************************************************************************/
168
168
  //#region RENDER
169
169
  render() {
170
- return (h(Host, { key: '13efbb6d3808652f3b0f3e348338cc770140533b' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '3584c6a3045e5dcf1f3a26af77e9d1d0399ba82c', htmlFor: this.inputId }, h("slot", { key: '7ec834555eec08002bdf5f28d6ab9ee0ec59914d', name: "label" }, this.label))), h("div", { key: '386206a939b02f2ac97bfae21242f98ed4a5a814', class: "textarea-wrapper" }, h("div", { key: 'c1bef6551b677cbad2eef80e8d8a9e04d326a1fc', class: "textarea-container", onClick: this.handleTextareaContainerClick }, h("textarea", { key: 'f519c3ec458df4d91163122277f1b91d1ec21315', id: this.inputId, ref: e => (this.textareaElement = e), placeholder: this.placeholder, name: this.name, disabled: this.disabled, readOnly: this.readonly, required: this.required, maxlength: this.maxlength, minlength: this.minlength, autocomplete: "off", value: this.value, onInput: this.handleTextarea, rows: this.rows, class: clsx(this.resize === 'none' && 'resize-none', this.resize === 'vertical' && 'resize-y', this.resize === 'horizontal' && 'resize-x', this.resize === 'both' && 'resize') }))), (this.description ||
171
- this.el.querySelector('[slot="description"]')) && (h("div", { key: 'd431c988df6f442196c004514b78832ebcf5e0f5', class: "description" }, h("slot", { key: '8830e8ee7b9649fb13dfd86e2d0b7730e23106d6', name: "description" }, this.description))), (this.errorDescription ||
172
- this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'fb8d9b7347f0033faa7b4355817517273351d3af', hidden: !this.error, class: "error-description" }, h("slot", { key: 'f39fbf2ab7e01c1c2a2f611450adaede41632473', name: "error-description" }, this.errorDescription)))));
170
+ return (h(Host, { key: '3ec76c8ddc56c9e438e74bff45ab3e3aeb4a891f' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '7588ee9f4c4b3ca4ecfa255ad6ab56e87542b008', htmlFor: this.inputId }, h("slot", { key: '4f6c5b8d1e02a36c208904e5aa54bd4eebc78efd', name: "label" }, this.label))), h("div", { key: 'd9a2bf3f9ec4c94bbe15c1422a962eb9e84fa76c', class: "textarea-wrapper" }, h("div", { key: 'f822c353ab8ab98405201b690f420069ea3b358a', class: "textarea-container", onClick: this.handleTextareaContainerClick }, h("textarea", { key: '6d105939ceaf1ae29a899a3f5aab1bed84aaa2e7', id: this.inputId, ref: e => (this.textareaElement = e), placeholder: this.placeholder, name: this.name, disabled: this.disabled, readOnly: this.readonly, required: this.required, maxlength: this.maxlength, minlength: this.minlength, autocomplete: "off", value: this.value, onInput: this.handleTextarea, rows: this.rows, class: clsx(this.resize === 'none' && 'resize-none', this.resize === 'vertical' && 'resize-y', this.resize === 'horizontal' && 'resize-x', this.resize === 'both' && 'resize') }))), (this.description ||
171
+ this.el.querySelector('[slot="description"]')) && (h("div", { key: '13b3ad16dc84db2770d411d117f35fec9da7b4de', class: "description" }, h("slot", { key: '7b6f82a8369d09300a57ae8ff0855fc471e5c32b', name: "description" }, this.description))), (this.errorDescription ||
172
+ this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '7fbc2fc5b232b3bb3602104ecf1937fc5f32be60', hidden: !this.error, class: "error-description" }, h("slot", { key: '0d0e539ce9f6cfabfbe73709f6f58b7edeef0210', name: "error-description" }, this.errorDescription)))));
173
173
  }
174
174
  static get is() { return "nv-fieldtextarea"; }
175
175
  static get formAssociated() { return true; }
@@ -198,7 +198,7 @@ export class NvFieldtextarea {
198
198
  "docs": {
199
199
  "tags": [{
200
200
  "name": "deprecated",
201
- "text": "use description instead."
201
+ "text": "Use `description` instead."
202
202
  }],
203
203
  "text": "Message defines a 'hint ' message for the Text Field."
204
204
  },
@@ -220,7 +220,7 @@ export class NvFieldtextarea {
220
220
  "docs": {
221
221
  "tags": [{
222
222
  "name": "deprecated",
223
- "text": "use errorDescription and set the error prop instead."
223
+ "text": "Use `errorDescription` and set the error prop instead."
224
224
  }],
225
225
  "text": "Add the message to the validation state."
226
226
  },