@nova-design-system/nova-react 3.0.0-beta.44 → 3.0.0-beta.45

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 (346) hide show
  1. package/dist/cjs/{index-CIcUUomJ.js → index-S09Gr7Tw.js} +113 -119
  2. package/dist/cjs/index.js +1 -1
  3. package/dist/cjs/{nv-alert.entry-BVY_rxey.js → nv-alert.entry-DH8Qd2s2.js} +1 -1
  4. package/dist/cjs/{nv-avatar.entry-CFgnor0-.js → nv-avatar.entry-B3-elLZC.js} +1 -1
  5. package/dist/cjs/{nv-badge_2.entry-Drgx-565.js → nv-badge_2.entry-D15EDzX0.js} +2 -2
  6. package/dist/cjs/{nv-base.entry-DwtTXK_n.js → nv-base.entry-D-_RUZTX.js} +1 -1
  7. package/dist/cjs/{nv-breadcrumb.entry-B0hIeE83.js → nv-breadcrumb.entry-DG49Nj1L.js} +2 -2
  8. package/dist/cjs/{nv-breadcrumbs.entry-Cq0LsIFs.js → nv-breadcrumbs.entry-BqJO5pbN.js} +1 -1
  9. package/dist/cjs/{nv-button.entry-B3rEQuGV.js → nv-button.entry-CN9kB98T.js} +6 -4
  10. package/dist/cjs/{nv-calendar.entry-NU1TumeS.js → nv-calendar.entry-CMEgSU64.js} +1 -1
  11. package/dist/cjs/{nv-col.entry-B5nCHhbO.js → nv-col.entry-wcZ9HHAb.js} +1 -1
  12. package/dist/cjs/{nv-datagrid.entry-5VIvkJGL.js → nv-datagrid.entry-GCLeN2qT.js} +31 -4
  13. package/dist/cjs/{nv-datagridcolumn.entry-BeGXaBUe.js → nv-datagridcolumn.entry-lgIz71UU.js} +1 -1
  14. package/dist/cjs/{nv-dialog.entry-BgHknrOx.js → nv-dialog.entry-DfY0TaYp.js} +17 -13
  15. package/dist/cjs/{nv-dialogfooter_2.entry-Ck6adFfd.js → nv-dialogfooter_2.entry-OByWsulH.js} +1 -1
  16. package/dist/cjs/{nv-fieldcheckbox.entry-dBYg7CBU.js → nv-fieldcheckbox.entry-Bqpe9BK3.js} +2 -2
  17. package/dist/cjs/{nv-fielddate.entry-DRX2mfZL.js → nv-fielddate.entry-DJePv6tR.js} +1 -1
  18. package/dist/cjs/{nv-fielddaterange.entry-DTLKVIqg.js → nv-fielddaterange.entry--YC750sX.js} +1 -1
  19. package/dist/cjs/{nv-fielddropdown.entry-akfp1Bcy.js → nv-fielddropdown.entry-BPlTlc_S.js} +1 -1
  20. package/dist/cjs/{nv-fielddropdownitem.entry-BscNyhXz.js → nv-fielddropdownitem.entry-zwoGySum.js} +1 -1
  21. package/dist/cjs/{nv-fieldmultiselect.entry-BGzYCJuF.js → nv-fieldmultiselect.entry-Bg_v0LUF.js} +7 -49
  22. package/dist/cjs/{nv-fieldnumber.entry-_UiieYov.js → nv-fieldnumber.entry-BLNaq7yr.js} +1 -1
  23. package/dist/cjs/{nv-fieldpassword.entry-D4a8SnGr.js → nv-fieldpassword.entry-iSEdS5R8.js} +1 -1
  24. package/dist/cjs/{nv-fieldradio.entry-aRAaLwpK.js → nv-fieldradio.entry-Dov4vZkh.js} +1 -1
  25. package/dist/cjs/{nv-fieldselect.entry-sTbv_flF.js → nv-fieldselect.entry-NmpesarX.js} +1 -1
  26. package/dist/cjs/{nv-fieldtext.entry-B1TlZWjU.js → nv-fieldtext.entry-r6oQajRS.js} +1 -1
  27. package/dist/cjs/{nv-fieldtextarea.entry-BwJCUiVW.js → nv-fieldtextarea.entry-CJ2yQkfi.js} +1 -1
  28. package/dist/cjs/{nv-fieldtime.entry-uU-IET2k.js → nv-fieldtime.entry-Bxoj6N53.js} +1 -1
  29. package/dist/cjs/{nv-icon.entry-BfRAl2b6.js → nv-icon.entry-CWKRt8F0.js} +1 -1
  30. package/dist/cjs/{nv-iconbutton_2.entry-D8MI5uzP.js → nv-iconbutton_2.entry-CnbscpNn.js} +1 -1
  31. package/dist/cjs/{nv-menu.entry-D3qvf_0H.js → nv-menu.entry-wC7oSruP.js} +1 -1
  32. package/dist/cjs/{nv-menuitem.entry-DkIG5z-x.js → nv-menuitem.entry-BVSa1vrS.js} +1 -1
  33. package/dist/cjs/{nv-popover.entry-C57rfYUn.js → nv-popover.entry-ChP1we3l.js} +12 -10
  34. package/dist/cjs/{nv-row.entry-Bwzlub3i.js → nv-row.entry-D6FeFpzG.js} +1 -1
  35. package/dist/cjs/{nv-stack.entry-bhess4lQ.js → nv-stack.entry-zjJmztkO.js} +1 -1
  36. package/dist/cjs/{nv-table.entry-mEtRfake.js → nv-table.entry-CGX0jsR3.js} +1 -1
  37. package/dist/cjs/{nv-tablecolumn.entry-BDCw_45v.js → nv-tablecolumn.entry-Cwdmo_RY.js} +1 -1
  38. package/dist/cjs/{nv-toggle.entry-DXpNGkbz.js → nv-toggle.entry-BvToMkI2.js} +2 -2
  39. package/dist/cjs/{nv-tooltip.entry-BuSwME_F.js → nv-tooltip.entry-DZ7_lB-p.js} +1 -1
  40. package/dist/generated/components.js +1 -1
  41. package/dist/types/generated/components.d.ts +1 -1
  42. package/package.json +1 -1
  43. package/dist/cjs/index-BZCQTWfv.js +0 -26372
  44. package/dist/cjs/index-B_VOAJzk.js +0 -26373
  45. package/dist/cjs/index-C8UfzrMI.js +0 -26405
  46. package/dist/cjs/index-CDe7nrrW.js +0 -26373
  47. package/dist/cjs/index-CEWbQ5nh.js +0 -26373
  48. package/dist/cjs/index-CinzsZ8D.js +0 -26405
  49. package/dist/cjs/index-CtI3SivD.js +0 -26373
  50. package/dist/cjs/index-wDACGzKb.js +0 -26373
  51. package/dist/cjs/nv-alert.entry-8esWDUyU.js +0 -173
  52. package/dist/cjs/nv-alert.entry-B-P-Fgdo.js +0 -173
  53. package/dist/cjs/nv-alert.entry-B3NpZh1C.js +0 -173
  54. package/dist/cjs/nv-alert.entry-BU86GY-d.js +0 -173
  55. package/dist/cjs/nv-alert.entry-CwZcD170.js +0 -173
  56. package/dist/cjs/nv-alert.entry-CxSN1zpW.js +0 -173
  57. package/dist/cjs/nv-alert.entry-DsoqN5tQ.js +0 -173
  58. package/dist/cjs/nv-alert.entry-xuY-Lvuj.js +0 -173
  59. package/dist/cjs/nv-avatar.entry-CO6bt4k6.js +0 -67
  60. package/dist/cjs/nv-avatar.entry-DJkpupVT.js +0 -67
  61. package/dist/cjs/nv-avatar.entry-DKXMQPOz.js +0 -67
  62. package/dist/cjs/nv-avatar.entry-DWOADxdQ.js +0 -67
  63. package/dist/cjs/nv-avatar.entry-DjyiGt07.js +0 -67
  64. package/dist/cjs/nv-avatar.entry-DuN1d3Vy.js +0 -67
  65. package/dist/cjs/nv-avatar.entry-pREKtiv2.js +0 -67
  66. package/dist/cjs/nv-avatar.entry-yyLQEqI7.js +0 -67
  67. package/dist/cjs/nv-badge_2.entry-BFURAuBQ.js +0 -195
  68. package/dist/cjs/nv-badge_2.entry-BQXL0ZhP.js +0 -195
  69. package/dist/cjs/nv-badge_2.entry-CJQWS2xG.js +0 -195
  70. package/dist/cjs/nv-badge_2.entry-D0jeqYIQ.js +0 -195
  71. package/dist/cjs/nv-badge_2.entry-DKGHx4c8.js +0 -194
  72. package/dist/cjs/nv-badge_2.entry-im1VnU5f.js +0 -195
  73. package/dist/cjs/nv-badge_2.entry-wDuiCwys.js +0 -195
  74. package/dist/cjs/nv-badge_2.entry-xfXsesV0.js +0 -195
  75. package/dist/cjs/nv-base.entry-9HF044Di.js +0 -71
  76. package/dist/cjs/nv-base.entry-BO-6krwg.js +0 -71
  77. package/dist/cjs/nv-base.entry-BmY-1Lne.js +0 -71
  78. package/dist/cjs/nv-base.entry-BuxI7QmU.js +0 -71
  79. package/dist/cjs/nv-base.entry-CcaAXjnO.js +0 -71
  80. package/dist/cjs/nv-base.entry-Ch8ncPl0.js +0 -71
  81. package/dist/cjs/nv-base.entry-D7gUvPIG.js +0 -71
  82. package/dist/cjs/nv-base.entry-c723sI4Y.js +0 -71
  83. package/dist/cjs/nv-breadcrumb.entry-B9rOxsg_.js +0 -45
  84. package/dist/cjs/nv-breadcrumb.entry-BtM_AHRC.js +0 -45
  85. package/dist/cjs/nv-breadcrumb.entry-C-xHbSJw.js +0 -45
  86. package/dist/cjs/nv-breadcrumb.entry-CL9l0Wkr.js +0 -45
  87. package/dist/cjs/nv-breadcrumb.entry-CxGReUqZ.js +0 -45
  88. package/dist/cjs/nv-breadcrumb.entry-DTwjCmMI.js +0 -45
  89. package/dist/cjs/nv-breadcrumb.entry-LYt0sALP.js +0 -45
  90. package/dist/cjs/nv-breadcrumb.entry-wy-P2BMg.js +0 -45
  91. package/dist/cjs/nv-breadcrumbs.entry-9LlUycIv.js +0 -20
  92. package/dist/cjs/nv-breadcrumbs.entry-B7CaTbBe.js +0 -20
  93. package/dist/cjs/nv-breadcrumbs.entry-BA-TnreZ.js +0 -20
  94. package/dist/cjs/nv-breadcrumbs.entry-CEmZ3yFi.js +0 -20
  95. package/dist/cjs/nv-breadcrumbs.entry-De5lsjQf.js +0 -20
  96. package/dist/cjs/nv-breadcrumbs.entry-_w38BddR.js +0 -20
  97. package/dist/cjs/nv-breadcrumbs.entry-jn5hRjpQ.js +0 -20
  98. package/dist/cjs/nv-breadcrumbs.entry-ubxLcEUH.js +0 -20
  99. package/dist/cjs/nv-button.entry-B5-Wf9hh.js +0 -162
  100. package/dist/cjs/nv-button.entry-CBNfIn-r.js +0 -162
  101. package/dist/cjs/nv-button.entry-D-DPQDNM.js +0 -162
  102. package/dist/cjs/nv-button.entry-DHZX7KH4.js +0 -162
  103. package/dist/cjs/nv-button.entry-DLoECCSK.js +0 -162
  104. package/dist/cjs/nv-button.entry-DaSGnB1L.js +0 -162
  105. package/dist/cjs/nv-button.entry-Dk6DqHG2.js +0 -162
  106. package/dist/cjs/nv-button.entry-DxzA6-My.js +0 -162
  107. package/dist/cjs/nv-calendar.entry-BC6NDsVl.js +0 -1036
  108. package/dist/cjs/nv-calendar.entry-BeCCaAVE.js +0 -1036
  109. package/dist/cjs/nv-calendar.entry-DKz-iBnp.js +0 -1036
  110. package/dist/cjs/nv-calendar.entry-DNyH8T5e.js +0 -1036
  111. package/dist/cjs/nv-calendar.entry-DSWhDnEC.js +0 -1036
  112. package/dist/cjs/nv-calendar.entry-DUHckAh3.js +0 -1036
  113. package/dist/cjs/nv-calendar.entry-UUE6v4YC.js +0 -1036
  114. package/dist/cjs/nv-calendar.entry-ZtfR2qOV.js +0 -1036
  115. package/dist/cjs/nv-col.entry-Bx1VZSMw.js +0 -37
  116. package/dist/cjs/nv-col.entry-C400BeEE.js +0 -37
  117. package/dist/cjs/nv-col.entry-CYjFAVMF.js +0 -37
  118. package/dist/cjs/nv-col.entry-DDEtfCv-.js +0 -37
  119. package/dist/cjs/nv-col.entry-DNUY559i.js +0 -37
  120. package/dist/cjs/nv-col.entry-DqzImLSJ.js +0 -37
  121. package/dist/cjs/nv-col.entry-DtYBQEJz.js +0 -37
  122. package/dist/cjs/nv-col.entry-X7jkNThH.js +0 -37
  123. package/dist/cjs/nv-datagrid.entry-Ba9sfMQp.js +0 -3671
  124. package/dist/cjs/nv-datagrid.entry-Beehe_Sq.js +0 -3671
  125. package/dist/cjs/nv-datagrid.entry-CkD_jV75.js +0 -3671
  126. package/dist/cjs/nv-datagrid.entry-Cp8RCSEv.js +0 -3671
  127. package/dist/cjs/nv-datagrid.entry-D6p67Pa6.js +0 -3671
  128. package/dist/cjs/nv-datagrid.entry-DKqScS8N.js +0 -3671
  129. package/dist/cjs/nv-datagrid.entry-DL-Fyo4l.js +0 -3671
  130. package/dist/cjs/nv-datagrid.entry-ee865R4b.js +0 -3671
  131. package/dist/cjs/nv-datagridcolumn.entry-BodICzof.js +0 -18
  132. package/dist/cjs/nv-datagridcolumn.entry-CR9_1fsZ.js +0 -18
  133. package/dist/cjs/nv-datagridcolumn.entry-C_FtSltZ.js +0 -18
  134. package/dist/cjs/nv-datagridcolumn.entry-CyTG5E7M.js +0 -18
  135. package/dist/cjs/nv-datagridcolumn.entry-D1cyTR_G.js +0 -18
  136. package/dist/cjs/nv-datagridcolumn.entry-DRE7BDkk.js +0 -18
  137. package/dist/cjs/nv-datagridcolumn.entry-Du6-7fjr.js +0 -18
  138. package/dist/cjs/nv-datagridcolumn.entry-N70Aen6Q.js +0 -18
  139. package/dist/cjs/nv-dialog.entry-BjTJ5FFL.js +0 -784
  140. package/dist/cjs/nv-dialog.entry-C1hg-EG1.js +0 -784
  141. package/dist/cjs/nv-dialog.entry-COv2do_O.js +0 -784
  142. package/dist/cjs/nv-dialog.entry-Ck2hU43g.js +0 -784
  143. package/dist/cjs/nv-dialog.entry-Cl8iLrCo.js +0 -784
  144. package/dist/cjs/nv-dialog.entry-Cy71tlWz.js +0 -784
  145. package/dist/cjs/nv-dialog.entry-DdAHZGzm.js +0 -784
  146. package/dist/cjs/nv-dialog.entry-Do_uALC6.js +0 -784
  147. package/dist/cjs/nv-dialogfooter_2.entry-CXvA0O-2.js +0 -134
  148. package/dist/cjs/nv-dialogfooter_2.entry-DHa0SYhR.js +0 -134
  149. package/dist/cjs/nv-dialogfooter_2.entry-DJ8qS9q6.js +0 -134
  150. package/dist/cjs/nv-dialogfooter_2.entry-DJkKzEgO.js +0 -134
  151. package/dist/cjs/nv-dialogfooter_2.entry-DKvzkpt3.js +0 -134
  152. package/dist/cjs/nv-dialogfooter_2.entry-D_VuofBe.js +0 -134
  153. package/dist/cjs/nv-dialogfooter_2.entry-L5tHIb_T.js +0 -134
  154. package/dist/cjs/nv-dialogfooter_2.entry-kEa1K0n5.js +0 -134
  155. package/dist/cjs/nv-fieldcheckbox.entry-B4We4zG2.js +0 -137
  156. package/dist/cjs/nv-fieldcheckbox.entry-BmYyNV4r.js +0 -137
  157. package/dist/cjs/nv-fieldcheckbox.entry-C0DmeqXD.js +0 -137
  158. package/dist/cjs/nv-fieldcheckbox.entry-CBsQsbIA.js +0 -137
  159. package/dist/cjs/nv-fieldcheckbox.entry-DTIebeJR.js +0 -137
  160. package/dist/cjs/nv-fieldcheckbox.entry-DoGQX-5D.js +0 -137
  161. package/dist/cjs/nv-fieldcheckbox.entry-P--9IAJF.js +0 -137
  162. package/dist/cjs/nv-fieldcheckbox.entry-dxhUZiEg.js +0 -137
  163. package/dist/cjs/nv-fielddate.entry-B53E-JaI.js +0 -278
  164. package/dist/cjs/nv-fielddate.entry-Bofdd2rE.js +0 -278
  165. package/dist/cjs/nv-fielddate.entry-CIo_61Dc.js +0 -278
  166. package/dist/cjs/nv-fielddate.entry-CekIFTA0.js +0 -278
  167. package/dist/cjs/nv-fielddate.entry-D-PjbYaA.js +0 -278
  168. package/dist/cjs/nv-fielddate.entry-DgS0X1wI.js +0 -278
  169. package/dist/cjs/nv-fielddate.entry-Do69eqHA.js +0 -278
  170. package/dist/cjs/nv-fielddate.entry-NJ6RAqlG.js +0 -278
  171. package/dist/cjs/nv-fielddaterange.entry-BrC5jKLp.js +0 -355
  172. package/dist/cjs/nv-fielddaterange.entry-BtPwfRw-.js +0 -355
  173. package/dist/cjs/nv-fielddaterange.entry-CxaBrZAX.js +0 -355
  174. package/dist/cjs/nv-fielddaterange.entry-D-6LjhjB.js +0 -355
  175. package/dist/cjs/nv-fielddaterange.entry-D0fq5KFb.js +0 -355
  176. package/dist/cjs/nv-fielddaterange.entry-D2dzD3rW.js +0 -355
  177. package/dist/cjs/nv-fielddaterange.entry-ka3JiDvT.js +0 -355
  178. package/dist/cjs/nv-fielddaterange.entry-w8WXPDuX.js +0 -355
  179. package/dist/cjs/nv-fielddropdown.entry-BAaPyGtB.js +0 -361
  180. package/dist/cjs/nv-fielddropdown.entry-C5kMWmPP.js +0 -361
  181. package/dist/cjs/nv-fielddropdown.entry-CX2Ycn2i.js +0 -361
  182. package/dist/cjs/nv-fielddropdown.entry-CZxQlRNa.js +0 -361
  183. package/dist/cjs/nv-fielddropdown.entry-DUAKFYgw.js +0 -391
  184. package/dist/cjs/nv-fielddropdown.entry-DVl_Uy5A.js +0 -361
  185. package/dist/cjs/nv-fielddropdown.entry-MsUR1kVe.js +0 -391
  186. package/dist/cjs/nv-fielddropdown.entry-hHh_RDC4.js +0 -361
  187. package/dist/cjs/nv-fielddropdownitem.entry-BsbvJERH.js +0 -70
  188. package/dist/cjs/nv-fielddropdownitem.entry-CMWgXP_Z.js +0 -68
  189. package/dist/cjs/nv-fielddropdownitem.entry-CS1Ejbc9.js +0 -68
  190. package/dist/cjs/nv-fielddropdownitem.entry-CW4WMmSZ.js +0 -68
  191. package/dist/cjs/nv-fielddropdownitem.entry-CuQqsz4f.js +0 -68
  192. package/dist/cjs/nv-fielddropdownitem.entry-DRM-Zljt.js +0 -70
  193. package/dist/cjs/nv-fielddropdownitem.entry-Dn2HJc1t.js +0 -68
  194. package/dist/cjs/nv-fielddropdownitem.entry-HK2I5pUG.js +0 -68
  195. package/dist/cjs/nv-fieldmultiselect.entry-5jdK36m6.js +0 -1060
  196. package/dist/cjs/nv-fieldmultiselect.entry-6o1yhNI5.js +0 -1060
  197. package/dist/cjs/nv-fieldmultiselect.entry-BN1ObPi8.js +0 -1060
  198. package/dist/cjs/nv-fieldmultiselect.entry-CuVEYN0v.js +0 -1060
  199. package/dist/cjs/nv-fieldmultiselect.entry-DFr-ZICs.js +0 -1060
  200. package/dist/cjs/nv-fieldmultiselect.entry-DHXJErt4.js +0 -1060
  201. package/dist/cjs/nv-fieldmultiselect.entry-Dr8FfT_W.js +0 -1060
  202. package/dist/cjs/nv-fieldmultiselect.entry-DycRd14V.js +0 -1060
  203. package/dist/cjs/nv-fieldnumber.entry-BHhIsjLK.js +0 -126
  204. package/dist/cjs/nv-fieldnumber.entry-BklKxOFA.js +0 -126
  205. package/dist/cjs/nv-fieldnumber.entry-C8zJkL24.js +0 -126
  206. package/dist/cjs/nv-fieldnumber.entry-C9rKWY_M.js +0 -126
  207. package/dist/cjs/nv-fieldnumber.entry-CEmPQK-3.js +0 -126
  208. package/dist/cjs/nv-fieldnumber.entry-CLhjFlCj.js +0 -126
  209. package/dist/cjs/nv-fieldnumber.entry-DZsM1vmO.js +0 -126
  210. package/dist/cjs/nv-fieldnumber.entry-ezdDvJh_.js +0 -126
  211. package/dist/cjs/nv-fieldpassword.entry-7lS0Msfg.js +0 -115
  212. package/dist/cjs/nv-fieldpassword.entry-B9-QFEsB.js +0 -115
  213. package/dist/cjs/nv-fieldpassword.entry-BIIoIKH4.js +0 -115
  214. package/dist/cjs/nv-fieldpassword.entry-BPhQxjsj.js +0 -115
  215. package/dist/cjs/nv-fieldpassword.entry-Biw__M2W.js +0 -115
  216. package/dist/cjs/nv-fieldpassword.entry-C5vG4jlh.js +0 -115
  217. package/dist/cjs/nv-fieldpassword.entry-C_jsHFJI.js +0 -115
  218. package/dist/cjs/nv-fieldpassword.entry-DZkGQwM8.js +0 -115
  219. package/dist/cjs/nv-fieldradio.entry-BgpmbG9E.js +0 -102
  220. package/dist/cjs/nv-fieldradio.entry-CXR4k3wf.js +0 -102
  221. package/dist/cjs/nv-fieldradio.entry-CnasQlEx.js +0 -102
  222. package/dist/cjs/nv-fieldradio.entry-Co7WX2vI.js +0 -102
  223. package/dist/cjs/nv-fieldradio.entry-DUDPigQb.js +0 -102
  224. package/dist/cjs/nv-fieldradio.entry-DiD7Luxv.js +0 -102
  225. package/dist/cjs/nv-fieldradio.entry-Ili2RVKl.js +0 -102
  226. package/dist/cjs/nv-fieldradio.entry-ZL7KgEZ7.js +0 -102
  227. package/dist/cjs/nv-fieldselect.entry-B94QXSEk.js +0 -365
  228. package/dist/cjs/nv-fieldselect.entry-BwtEjL08.js +0 -365
  229. package/dist/cjs/nv-fieldselect.entry-CFDqeR-D.js +0 -365
  230. package/dist/cjs/nv-fieldselect.entry-CJSu63o5.js +0 -365
  231. package/dist/cjs/nv-fieldselect.entry-CmN1R9ij.js +0 -365
  232. package/dist/cjs/nv-fieldselect.entry-CoDfr4ie.js +0 -365
  233. package/dist/cjs/nv-fieldselect.entry-D6eRsM9T.js +0 -365
  234. package/dist/cjs/nv-fieldselect.entry-DgmnHnOR.js +0 -365
  235. package/dist/cjs/nv-fieldtext.entry-BfQrX8ft.js +0 -119
  236. package/dist/cjs/nv-fieldtext.entry-BrUQu4OD.js +0 -119
  237. package/dist/cjs/nv-fieldtext.entry-CW6P-R-Q.js +0 -119
  238. package/dist/cjs/nv-fieldtext.entry-CyLJxDw6.js +0 -119
  239. package/dist/cjs/nv-fieldtext.entry-DDqDSJp3.js +0 -119
  240. package/dist/cjs/nv-fieldtext.entry-DKdxC2cG.js +0 -119
  241. package/dist/cjs/nv-fieldtext.entry-DRPCH6Sf.js +0 -119
  242. package/dist/cjs/nv-fieldtext.entry-IeIHa3jf.js +0 -119
  243. package/dist/cjs/nv-fieldtextarea.entry-D86SKGIN.js +0 -194
  244. package/dist/cjs/nv-fieldtextarea.entry-Dc_TGlmI.js +0 -194
  245. package/dist/cjs/nv-fieldtextarea.entry-DlFdCv_d.js +0 -194
  246. package/dist/cjs/nv-fieldtextarea.entry-DqzeITCG.js +0 -194
  247. package/dist/cjs/nv-fieldtextarea.entry-TI-bucN-.js +0 -194
  248. package/dist/cjs/nv-fieldtextarea.entry-qMX2O8cX.js +0 -194
  249. package/dist/cjs/nv-fieldtextarea.entry-tTnWQgE4.js +0 -194
  250. package/dist/cjs/nv-fieldtextarea.entry-v6VpnEuH.js +0 -194
  251. package/dist/cjs/nv-fieldtime.entry-CPyLyQfR.js +0 -1011
  252. package/dist/cjs/nv-fieldtime.entry-CXRtpWt1.js +0 -1011
  253. package/dist/cjs/nv-fieldtime.entry-CYmcHY1D.js +0 -1011
  254. package/dist/cjs/nv-fieldtime.entry-DGP1X4wF.js +0 -1011
  255. package/dist/cjs/nv-fieldtime.entry-DLSuRrlr.js +0 -1011
  256. package/dist/cjs/nv-fieldtime.entry-Zbjbmm7_.js +0 -1011
  257. package/dist/cjs/nv-fieldtime.entry-eDVRT6te.js +0 -1011
  258. package/dist/cjs/nv-fieldtime.entry-j-Fliiqj.js +0 -1011
  259. package/dist/cjs/nv-icon.entry-B0Y3rgBQ.js +0 -79
  260. package/dist/cjs/nv-icon.entry-B_wtREWb.js +0 -79
  261. package/dist/cjs/nv-icon.entry-CrKTCqY_.js +0 -79
  262. package/dist/cjs/nv-icon.entry-DRRmcXzh.js +0 -79
  263. package/dist/cjs/nv-icon.entry-Dlj1ko2i.js +0 -79
  264. package/dist/cjs/nv-icon.entry-S7WlK_lO.js +0 -79
  265. package/dist/cjs/nv-icon.entry-iipuvT3D.js +0 -79
  266. package/dist/cjs/nv-icon.entry-xltjoSa2.js +0 -79
  267. package/dist/cjs/nv-iconbutton_2.entry-B02iDUid.js +0 -163
  268. package/dist/cjs/nv-iconbutton_2.entry-BsXvYbCi.js +0 -163
  269. package/dist/cjs/nv-iconbutton_2.entry-C1Legk9t.js +0 -163
  270. package/dist/cjs/nv-iconbutton_2.entry-CUiW6MtK.js +0 -163
  271. package/dist/cjs/nv-iconbutton_2.entry-ClcvupMe.js +0 -163
  272. package/dist/cjs/nv-iconbutton_2.entry-D8hZ51H-.js +0 -163
  273. package/dist/cjs/nv-iconbutton_2.entry-Dx4usGkY.js +0 -163
  274. package/dist/cjs/nv-iconbutton_2.entry-QwaiOoYl.js +0 -163
  275. package/dist/cjs/nv-menu.entry-BfmYkdYY.js +0 -227
  276. package/dist/cjs/nv-menu.entry-CT98WIRF.js +0 -227
  277. package/dist/cjs/nv-menu.entry-CfERF478.js +0 -227
  278. package/dist/cjs/nv-menu.entry-Ci3I7PDt.js +0 -227
  279. package/dist/cjs/nv-menu.entry-DFEYw_KZ.js +0 -227
  280. package/dist/cjs/nv-menu.entry-DtLnsQW-.js +0 -227
  281. package/dist/cjs/nv-menu.entry-Kz5kGi2w.js +0 -227
  282. package/dist/cjs/nv-menu.entry-XdjjbAL6.js +0 -227
  283. package/dist/cjs/nv-menuitem.entry-3t6TixM7.js +0 -58
  284. package/dist/cjs/nv-menuitem.entry-BeTXOtir.js +0 -58
  285. package/dist/cjs/nv-menuitem.entry-C8nXPwP0.js +0 -58
  286. package/dist/cjs/nv-menuitem.entry-C9dsQqqN.js +0 -58
  287. package/dist/cjs/nv-menuitem.entry-Cedg0TCQ.js +0 -58
  288. package/dist/cjs/nv-menuitem.entry-CxCLeNsY.js +0 -58
  289. package/dist/cjs/nv-menuitem.entry-bPnSDq_9.js +0 -58
  290. package/dist/cjs/nv-menuitem.entry-sRx1fD0O.js +0 -58
  291. package/dist/cjs/nv-popover.entry-BGXEOQM6.js +0 -1960
  292. package/dist/cjs/nv-popover.entry-Bv6kuTK_.js +0 -1960
  293. package/dist/cjs/nv-popover.entry-C6HFJJ-m.js +0 -1960
  294. package/dist/cjs/nv-popover.entry-CiGCCbn9.js +0 -1960
  295. package/dist/cjs/nv-popover.entry-CjTPZYkq.js +0 -1960
  296. package/dist/cjs/nv-popover.entry-CtO6pR6l.js +0 -1960
  297. package/dist/cjs/nv-popover.entry-Mo3DNUH6.js +0 -1960
  298. package/dist/cjs/nv-popover.entry-Zt25YeAv.js +0 -1960
  299. package/dist/cjs/nv-row.entry-BEgyuDR-.js +0 -21
  300. package/dist/cjs/nv-row.entry-BM_EcSp4.js +0 -21
  301. package/dist/cjs/nv-row.entry-BPK1Li7w.js +0 -21
  302. package/dist/cjs/nv-row.entry-B_7PiJA7.js +0 -21
  303. package/dist/cjs/nv-row.entry-Ca7LiDAy.js +0 -21
  304. package/dist/cjs/nv-row.entry-Cy9vd2iY.js +0 -21
  305. package/dist/cjs/nv-row.entry-DKoNhAcX.js +0 -21
  306. package/dist/cjs/nv-row.entry-OYGKTXhV.js +0 -21
  307. package/dist/cjs/nv-stack.entry-BNyPxECg.js +0 -30
  308. package/dist/cjs/nv-stack.entry-ByaO-0TJ.js +0 -30
  309. package/dist/cjs/nv-stack.entry-C8ZFDaKn.js +0 -30
  310. package/dist/cjs/nv-stack.entry-CLMAAbkw.js +0 -30
  311. package/dist/cjs/nv-stack.entry-DfRRFeEo.js +0 -30
  312. package/dist/cjs/nv-stack.entry-DiXvhuSS.js +0 -30
  313. package/dist/cjs/nv-stack.entry-lwhqS230.js +0 -30
  314. package/dist/cjs/nv-stack.entry-u3NjC31-.js +0 -30
  315. package/dist/cjs/nv-table.entry-BNy2ALll.js +0 -338
  316. package/dist/cjs/nv-table.entry-BPazUUGA.js +0 -338
  317. package/dist/cjs/nv-table.entry-C7Hd57Iq.js +0 -338
  318. package/dist/cjs/nv-table.entry-COwgRxqz.js +0 -338
  319. package/dist/cjs/nv-table.entry-CTo8cqCN.js +0 -338
  320. package/dist/cjs/nv-table.entry-D3U4dFcw.js +0 -338
  321. package/dist/cjs/nv-table.entry-DzOGLNUx.js +0 -338
  322. package/dist/cjs/nv-table.entry-o525Lfea.js +0 -338
  323. package/dist/cjs/nv-tablecolumn.entry-BESdQMDh.js +0 -18
  324. package/dist/cjs/nv-tablecolumn.entry-BzwWPlLf.js +0 -18
  325. package/dist/cjs/nv-tablecolumn.entry-CuEt5Wgn.js +0 -18
  326. package/dist/cjs/nv-tablecolumn.entry-D3I1dB1X.js +0 -18
  327. package/dist/cjs/nv-tablecolumn.entry-DvJF_QTE.js +0 -18
  328. package/dist/cjs/nv-tablecolumn.entry-DvO0JxdY.js +0 -18
  329. package/dist/cjs/nv-tablecolumn.entry-L4KLlHFu.js +0 -18
  330. package/dist/cjs/nv-tablecolumn.entry-vrmt1Y0L.js +0 -18
  331. package/dist/cjs/nv-toggle.entry-BIclNIeq.js +0 -79
  332. package/dist/cjs/nv-toggle.entry-BTqGH_H0.js +0 -79
  333. package/dist/cjs/nv-toggle.entry-Bv0DrF-x.js +0 -79
  334. package/dist/cjs/nv-toggle.entry-BxKZDHdI.js +0 -79
  335. package/dist/cjs/nv-toggle.entry-DYhnFucd.js +0 -79
  336. package/dist/cjs/nv-toggle.entry-PRWy57Ro.js +0 -79
  337. package/dist/cjs/nv-toggle.entry-fDIAyeVX.js +0 -79
  338. package/dist/cjs/nv-toggle.entry-yqg7e7Qc.js +0 -79
  339. package/dist/cjs/nv-tooltip.entry--TVfBopp.js +0 -44
  340. package/dist/cjs/nv-tooltip.entry-58RCazbO.js +0 -44
  341. package/dist/cjs/nv-tooltip.entry-BBJNnZmj.js +0 -44
  342. package/dist/cjs/nv-tooltip.entry-BDZfrLHv.js +0 -44
  343. package/dist/cjs/nv-tooltip.entry-Bnu7xEl6.js +0 -44
  344. package/dist/cjs/nv-tooltip.entry-BrrSQyMx.js +0 -44
  345. package/dist/cjs/nv-tooltip.entry-ChQpdQn_.js +0 -44
  346. package/dist/cjs/nv-tooltip.entry-CvCZZV88.js +0 -44
@@ -1,365 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-CtI3SivD.js');
4
- var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
5
- require('react');
6
-
7
- const nvFieldselectCss = "nv-fieldselect{--nv-field-border-default:var(--components-form-field-border-default);--nv-field-border-hover:var(--components-form-field-border-hover);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--components-form-field-border-default);--nv-field-border-readonly:var(--components-form-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-brand);--nv-field-background:var(--components-form-field-background-default);display:flex;flex-direction:column;align-items:flex-start;gap:var(--form-gap-y);box-sizing:border-box}nv-fieldselect[readonly]:not([readonly=false]){--nv-field-border-default:var(--components-form-field-border-readonly);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-background:var(--components-form-field-background-readonly)}nv-fieldselect[display-value]:not([display-value=false]){--nv-field-border-default:var(--components-form-field-border-readonly);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-background:var(--components-form-field-background-readonly)}nv-fieldselect[error]:not([error=false]){--nv-field-border-default:var(--components-form-field-border-error);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--nv-field-border-default);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-destructive)}nv-fieldselect[success]:not([success=false]){--nv-field-border-default:var(--components-form-field-border-success);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--nv-field-border-default);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-success)}nv-fieldselect[required]:not([required=false]) label::after{content:\"*\";color:var(--components-form-text-required);font-weight:700}nv-fieldselect[multiple]:not([multiple=false]) .select-wrapper>.select-container>.select-icons{top:var(--form-field-padding-y);right:var(--form-field-padding-x)}nv-fieldselect[multiple]:not([multiple=false]) .select-wrapper>.select-container>select{height:100%;box-sizing:border-box}nv-fieldselect label{display:flex;align-items:center;gap:var(--form-label-gap);align-self:stretch;color:var(--components-form-text-label-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:500;line-height:var(--form-label-line-height)}nv-fieldselect .select-wrapper{display:flex;flex-wrap:wrap;align-items:stretch;align-self:stretch}nv-fieldselect .select-wrapper .select-container{position:relative;display:flex;flex-grow:1;justify-content:center;align-items:center;align-self:stretch;border-radius:var(--form-field-radius);border-width:1px;border-style:solid;border-color:var(--nv-field-border-default);opacity:var(--components-form-opacity-default);background:var(--nv-field-background);transition:all 150ms ease-out}nv-fieldselect .select-wrapper .select-container:hover{border-color:var(--nv-field-border-hover)}nv-fieldselect .select-wrapper .select-container:focus-within{border-color:var(--nv-field-border-focus);box-shadow:0 0 0 var(--focus-field-stroke) var(--nv-field-focus-box-shadow)}nv-fieldselect .select-wrapper .select-container:has(select:disabled){opacity:0.5;background-color:var(--components-form-field-background-disabled);border-color:var(--nv-field-border-disabled)}nv-fieldselect .select-wrapper .select-container>.select-icons{position:absolute;right:0;top:0;pointer-events:none}nv-fieldselect .select-wrapper .select-container>.select-icons>nv-iconbutton{border:0px;border-radius:0px}nv-fieldselect .select-wrapper .select-container>.select-icons>nv-iconbutton:focus-visible{border-radius:var(--button-md-border-radius);outline-offset:-3px}nv-fieldselect .select-wrapper .select-container input{display:flex;align-items:center;flex:1 0 0;overflow:hidden;background-color:transparent;color:var(--components-form-field-content-text);padding:var(--form-field-padding-y) var(--form-field-padding-x);font-size:var(--form-field-font-size);font-style:normal;font-weight:500;line-height:var(--form-field-line-height)}nv-fieldselect .select-wrapper .select-container input:focus{outline:none}nv-fieldselect .select-wrapper .select-container input::placeholder{overflow:hidden;color:var(--components-form-field-content-placeholder);text-overflow:ellipsis;font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-field-font-size);font-style:normal;font-weight:400;line-height:var(--form-field-line-height)}nv-fieldselect .select-wrapper .select-container input:read-only{opacity:0.5;background-color:var(--components-form-field-background-readonly, rgba(0, 0, 0, 0.1));border-color:var(--nv-field-border-readonly)}nv-fieldselect .select-wrapper .select-container select{display:flex;align-items:center;flex:1 0 0;overflow:hidden;background-color:transparent;color:var(--components-form-field-content-text);text-overflow:ellipsis;font-size:var(--form-field-font-size);font-style:normal;font-weight:500;height:var(--form-field-line-height);padding:var(--form-field-padding-y) var(--form-field-padding-x);box-sizing:content-box;-webkit-appearance:none;-moz-appearance:none;cursor:pointer}nv-fieldselect .select-wrapper .select-container select:focus{outline:none}nv-fieldselect .select-wrapper .select-container select::placeholder{overflow:hidden;color:var(--components-form-field-content-placeholder);text-overflow:ellipsis;font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-field-font-size);font-style:normal;font-weight:400;line-height:var(--form-field-line-height)}nv-fieldselect .select-wrapper .select-container select option{font-size:var(--form-field-font-size, 16px);font-style:normal;font-weight:500;line-height:var(--form-field-line-height, 24px)}nv-fieldselect .select-wrapper .select-container select.hidden{display:none}nv-fieldselect .select-wrapper .select-container nv-icon.readonly-icon{color:var(--nv-field-border-default)}nv-fieldselect .select-wrapper .select-container nv-icon.validation{color:var(--nv-field-border-default)}nv-fieldselect .description{align-self:stretch;color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;line-height:var(--form-description-line-height)}nv-fieldselect .error-description{align-self:stretch;color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}";
8
- const NvFieldselectStyle0 = nvFieldselectCss;
9
-
10
- const NvFieldselect = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.valueChanged = index.createEvent(this, "valueChanged");
14
- //#endregion DEPRECATED
15
- /****************************************************************************/
16
- //#region STATES
17
- this.computedDisplayValue = '';
18
- this.internalReadonly = false;
19
- /**
20
- * Parsed options stored internally
21
- */
22
- this.parsedOptions = [];
23
- //#endregion STATES
24
- /****************************************************************************/
25
- //#region PROPERTIES
26
- /**
27
- * Sets the ID for the select element and the for attribute of the associated
28
- * label. If no ID is provided, a random one will be automatically generated
29
- * to ensure unique identification, facilitating proper label association and
30
- * accessibility.
31
- */
32
- this.inputId = v4A79185f4.v4();
33
- /**
34
- * The disabled prop lets you turn off the select field so that users can’t
35
- * choose something. When disabled, the field is grayed out and won’t respond to
36
- * clicks or touches.
37
- */
38
- this.disabled = false;
39
- /**
40
- * Display the select field’s content without allowing users to change it.
41
- * Users can still click on it, select, and copy the text, but they won’t be
42
- * able to change or delete anything.
43
- */
44
- this.readonly = false;
45
- /**
46
- * Marks the select field as required, ensuring that the user must fill it out
47
- * before submitting the form.
48
- */
49
- this.required = false;
50
- /**
51
- * Alters the select field’s appearance to indicate an error, helping users
52
- * identify fields that need correction.
53
- * @validator error
54
- */
55
- this.error = false;
56
- /**
57
- * Changes the select field’s appearance to indicate successful input or
58
- * validation.
59
- */
60
- this.success = false;
61
- /**
62
- * When enabled, allows the select to handle multiple selections.
63
- */
64
- this.multiple = false;
65
- /**
66
- * The value of the select field.
67
- * - If `multiple` is `false`, it's a single string.
68
- * - If `multiple` is `true`, it's a comma-separated string of selected values.
69
- */
70
- this.value = '';
71
- /**
72
- * When enabled, displays the value element instead of the label when readonly.
73
- * By default, the label is displayed in readonly mode. Also it automatically
74
- * sets the component to readonly.
75
- */
76
- this.displayValue = false;
77
- /**
78
- * Applies focus to the input field as soon as the component is mounted. This
79
- * is equivalent to setting the native autofocus attribute on a <select>
80
- * element.
81
- */
82
- this.autofocus = false;
83
- //#endregion WATCHERS
84
- /****************************************************************************/
85
- //#region METHODS
86
- /**
87
- * Handles the change event on the select element. This method is used to
88
- * update the value property when the selected options change. It is also
89
- * used to emit the selectChanged event when the selected value changes.
90
- * @param {Event} event - The change event on the select element.
91
- * @emits selectChanged
92
- */
93
- this.handleSelectChange = (event) => {
94
- const select = event.target;
95
- let selectedValues = Array.from(select.selectedOptions).map(option => option.value);
96
- if (!this.multiple) {
97
- selectedValues = selectedValues.slice(0, 1);
98
- }
99
- this.value = this.multiple
100
- ? selectedValues.join(', ')
101
- : selectedValues[0] || '';
102
- this.valueChanged.emit(this.value);
103
- // Update form value
104
- this.setFormValue();
105
- };
106
- /**
107
- * Handles focus when the select container is clicked.
108
- */
109
- this.handleSelectContainerClick = () => {
110
- if (!this.internalReadonly && this.selectElement) {
111
- this.selectElement.focus();
112
- }
113
- };
114
- }
115
- //#endregion EVENTS
116
- /****************************************************************************/
117
- //#region WATCHERS
118
- /**
119
- * Updates the display value when the value property changes. This watcher is
120
- * used to update the display value when the selected value changes. This is
121
- * necessary for readonly select fields to display the selected value.
122
- * @internal This watcher is not intended to be called outside of the component.
123
- * @param {string} newValue - The new value of the select field.
124
- */
125
- updateDisplayValueWatcher(newValue) {
126
- this.updateDisplayValue();
127
- if (this.selectElement) {
128
- const selectedValues = newValue.split(',').map(val => val.trim());
129
- const options = this.selectElement.options;
130
- if (options) {
131
- Array.from(options).forEach(option => {
132
- option.selected = this.multiple
133
- ? selectedValues.includes(option.value)
134
- : option.value === selectedValues[0];
135
- });
136
- if (!this.multiple) {
137
- this.selectElement.value = newValue; // Only set when not multiple
138
- }
139
- }
140
- else {
141
- this.selectElement.value = selectedValues[0] || '';
142
- }
143
- }
144
- // Update form value
145
- this.setFormValue();
146
- }
147
- /**
148
- * Watcher for the displayValue prop to ensure internalReadonly is true when displayValue is true.
149
- * @param {boolean} newValue - The new value of displayValue.
150
- */
151
- handleDisplayValueChange(newValue) {
152
- this.internalReadonly = newValue; // Set internalReadonly to true if displayValue is true
153
- if (this.readonly) {
154
- this.internalReadonly = true;
155
- }
156
- }
157
- /**
158
- * Watcher for the readonly prop to ensure internalReadonly is true when readonly is true.
159
- * @param {boolean} newValue - The new value of readonly.
160
- */
161
- handleReadonlyChange(newValue) {
162
- this.internalReadonly = newValue; // Set internalReadonly to true if displayValue is true
163
- if (this.displayValue) {
164
- this.internalReadonly = true;
165
- }
166
- }
167
- /**
168
- * Parse options and update the internal state
169
- * @param {string} newValue - The new value of options
170
- */
171
- handleOptionsChange(newValue) {
172
- if (typeof newValue === 'string') {
173
- try {
174
- const parsedOpts = JSON.parse(newValue);
175
- this.parsedOptions = [...parsedOpts];
176
- // Update the value if an option is pre-selected
177
- const selectedOption = parsedOpts.find(opt => opt.selected);
178
- if (selectedOption) {
179
- this.value = selectedOption.value;
180
- }
181
- }
182
- catch (error) {
183
- console.error('Error parsing options:', error);
184
- this.parsedOptions = [];
185
- }
186
- }
187
- }
188
- /**
189
- * Updates the display value of the select field. This method is used to
190
- * update the display value when the selected value changes. This is necessary
191
- * for readonly select fields to display the selected value. This method is
192
- * called in the componentDidLoad lifecycle hook and the updateDisplayValueWatcher
193
- * watcher.
194
- * @internal This method is not intended to be called outside of the component.
195
- */
196
- updateDisplayValue() {
197
- if (this.internalReadonly && !this.displayValue) {
198
- if (this.multiple) {
199
- const selectedLabels = this.value
200
- .split(',')
201
- .map(key => key.trim())
202
- .map(key => this.getLabelFromId(key) || '')
203
- .filter(label => label !== '');
204
- this.computedDisplayValue = selectedLabels.join(', ') || '';
205
- }
206
- else {
207
- this.computedDisplayValue = this.getLabelFromId(this.value) || '';
208
- }
209
- }
210
- else if (this.internalReadonly && this.displayValue) {
211
- this.computedDisplayValue = this.value || '';
212
- }
213
- }
214
- /**
215
- * Retrieves the label from the <option> elements based on the provided key (value).
216
- * This method uses the id or value attribute directly from the <select> options.
217
- * @param {string} key - The key (value) for which to find the corresponding label.
218
- * @returns {string} The label if found; otherwise, an empty string.
219
- */
220
- getLabelFromId(key) {
221
- this.ensureSelectElement();
222
- if (!this.selectElement) {
223
- return '';
224
- }
225
- // Cache the option list
226
- const options = this.selectElement.options;
227
- if (options) {
228
- const option = Array.from(options).find(option => option.value === key);
229
- return option ? option.textContent.trim() || '' : '';
230
- }
231
- else {
232
- return '';
233
- }
234
- }
235
- /**
236
- * Sets the value of the form element for form submission. This method is
237
- * called when the selected value changes or when the value property is set.
238
- * @internal This method is not intended to be called outside of the component.
239
- */
240
- setFormValue() {
241
- this.internals.setFormValue(this.value);
242
- }
243
- /**
244
- * Ensures the select element is available. This method is used to ensure
245
- * the select element is available before attempting to access it.
246
- * @internal This method is not intended to be called outside of the component.
247
- */
248
- ensureSelectElement() {
249
- if (!this.selectElement) {
250
- this.selectElement = this.el.querySelector('select');
251
- }
252
- }
253
- //#endregion METHODS
254
- /****************************************************************************/
255
- //#region LIFECYCLE
256
- componentWillRender() {
257
- this.updateDisplayValue(); // Ensure display value is updated before render
258
- if (this.message) {
259
- this.description = this.message;
260
- }
261
- if (this.validation) {
262
- this.errorDescription = this.validation;
263
- this.error = true;
264
- }
265
- }
266
- /**
267
- * Lifecycle method that is called before the component is rendered. This is
268
- * where the internal state is set up before rendering occurs.
269
- */
270
- componentWillLoad() {
271
- // Set internalReadonly based on the readonly prop
272
- this.internalReadonly = this.readonly;
273
- // Ensure internalReadonly is true if displayValue is true during loading
274
- if (this.displayValue) {
275
- this.internalReadonly = true;
276
- }
277
- if ('attachInternals' in this.el) {
278
- this.internals = this.el.attachInternals();
279
- }
280
- else {
281
- // Fallback logic for browsers without attachInternals support
282
- this.internals = {
283
- setFormValue: (value) => {
284
- const formElement = this.el.closest('form');
285
- if (formElement) {
286
- const input = document.createElement('input');
287
- input.type = 'hidden';
288
- input.name = this.name;
289
- input.value = value;
290
- formElement.appendChild(input);
291
- }
292
- },
293
- };
294
- }
295
- // Initialize value as an empty string if multiple is true
296
- if (this.multiple && typeof this.value !== 'string') {
297
- this.value = '';
298
- }
299
- // Parse initial options if present
300
- if (this.options) {
301
- this.handleOptionsChange(this.options);
302
- }
303
- }
304
- /**
305
- * Lifecycle method that is called after the component has been rendered.
306
- * This is where the display value is updated and the initial select element's
307
- * state is set.
308
- */
309
- componentDidLoad() {
310
- this.updateDisplayValue();
311
- if (this.selectElement) {
312
- // Only set the value for single selection, skip for multiple
313
- if (!this.multiple) {
314
- this.selectElement.value = this.value;
315
- }
316
- const selectedValues = this.multiple
317
- ? this.value.split(',').map(v => v.trim())
318
- : [this.value];
319
- const options = this.selectElement.options;
320
- if (options) {
321
- Array.from(options).forEach(option => {
322
- option.selected = this.multiple
323
- ? selectedValues.includes(option.value)
324
- : option.value === selectedValues[0];
325
- });
326
- }
327
- else {
328
- // Handle case where there are no options
329
- this.selectElement.value = selectedValues[0] || '';
330
- }
331
- }
332
- // Set the initial form value
333
- this.setFormValue();
334
- }
335
- //#endregion LIFECYCLE
336
- /****************************************************************************/
337
- //#region RENDERING
338
- /**
339
- * The render method creates the HTML structure for the component, including
340
- * the label, select element, and any error or description messages. It also
341
- * applies the appropriate CSS classes based on the readonly state and
342
- * displayValue prop. This method is called when the component is rendered.
343
- * @returns {HTMLStencilElement} The HTML element to render.
344
- */
345
- render() {
346
- return (index.h(index.Host, { key: '017364e5a5df156be42741e3acc4457414f8e6ee' }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '2e4b247018a759307ea5e3920a4066a2c1c14e92', htmlFor: this.inputId }, index.h("slot", { key: '1bbad9d0b4be9fc35c0cc63859ba6dcdb4375377', name: "label" }, this.label))), index.h("div", { key: '572073518f738014fd27d8de84fc856a01889636', class: "select-wrapper" }, index.h("slot", { key: '490730d4fc16f78284a8ca40ab952870eb01b503', name: "before-input" }), index.h("div", { key: 'a92ea3295f64ce1c6d8da5cf439d7c796493fdf5', class: "select-container", onClick: this.handleSelectContainerClick }, index.h("slot", { key: 'f80e732415ec42a4c7b02922f1b50d2cf3950e88', name: "leading-input" }), this.internalReadonly && (index.h("input", { key: 'b1ee7e799434d0e36d1f98031338137347bcedea', 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
347
- ? `${this.inputId}-error`
348
- : `${this.inputId}-description` })), index.h("select", { key: '9a8b48a7a41522b09b65a5c76b7e861b5d6eef49', id: this.inputId, ref: el => (this.selectElement = el), name: this.name, autofocus: this.autofocus, disabled: this.disabled, required: this.required, multiple: this.multiple, onChange: this.handleSelectChange, class: this.internalReadonly ? 'hidden' : '', "aria-label": this.label, "aria-describedby": this.error
349
- ? `${this.inputId}-error`
350
- : `${this.inputId}-description` }, this.parsedOptions.length > 0 ? (this.parsedOptions.map(option => (index.h("option", { value: option.value, selected: option.selected, disabled: option.disabled }, option.label)))) : (index.h("slot", null))), index.h("div", { key: '7ecac0a159ca2b4925b8a940c80f8aef94a2ca1d', class: "select-icons" }, this.error && (index.h("nv-icon", { key: 'fd3d75a5c621a49f45550d9596f4910ef01a56b2', name: "alert-circle", class: "validation", size: "md" })), this.success && (index.h("nv-icon", { key: '45b3e11a48f5f700ac9c21ba276ee9c93640d0d9', name: "circle-check", class: "validation", size: "md" })), !this.multiple && (index.h("nv-iconbutton", { key: '07171fbe1fc88f4c7af0513ed718376ce1a1aeb3', name: "chevron-down", size: "md", emphasis: "lower", tabIndex: -1 })))), index.h("slot", { key: '096bf49c55359062fc790d31660b331a5988ad22', name: "after-input" })), (this.description ||
351
- this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '7b292eeb3a1ca29b7cb1b631926b591183ab50fc', class: "description", id: `${this.inputId}-description` }, index.h("slot", { key: 'a2fdc1929f7aa2571cd11d01e2c1ed165afb856c', name: "description" }, this.description))), (this.errorDescription ||
352
- this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '3d189e87ff7cee9a43ccad85c6e84fcdb3343f1f', class: "error-description", id: `${this.inputId}-error` }, index.h("slot", { key: '515059b75c8e2c1e600a28124135cbd7af87ccbf', name: "error-description" }, this.errorDescription)))));
353
- }
354
- static get formAssociated() { return true; }
355
- get el() { return index.getElement(this); }
356
- static get watchers() { return {
357
- "value": ["updateDisplayValueWatcher"],
358
- "displayValue": ["handleDisplayValueChange"],
359
- "readonly": ["handleReadonlyChange"],
360
- "options": ["handleOptionsChange"]
361
- }; }
362
- };
363
- NvFieldselect.style = NvFieldselectStyle0;
364
-
365
- exports.nv_fieldselect = NvFieldselect;