@nova-design-system/nova-react 3.0.0-beta.44 → 3.0.0-beta.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-wDACGzKb.js → index-BgDhK4Po.js} +183 -171
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/{nv-alert.entry-BVY_rxey.js → nv-alert.entry-C9DnCn0Q.js} +1 -1
- package/dist/cjs/{nv-avatar.entry-CFgnor0-.js → nv-avatar.entry-Cj_bK7KY.js} +1 -1
- package/dist/cjs/{nv-badge_2.entry-BFURAuBQ.js → nv-badge_2.entry-H664ASUM.js} +5 -5
- package/dist/cjs/{nv-base.entry-9HF044Di.js → nv-base.entry-DdLnS1hF.js} +1 -1
- package/dist/cjs/{nv-breadcrumb.entry-CL9l0Wkr.js → nv-breadcrumb.entry-BOyjRSxM.js} +2 -2
- package/dist/cjs/{nv-breadcrumbs.entry-9LlUycIv.js → nv-breadcrumbs.entry-DkffTj6Z.js} +1 -1
- package/dist/cjs/{nv-button.entry-B3rEQuGV.js → nv-button.entry-Dv4bG9oE.js} +6 -4
- package/dist/cjs/{nv-calendar.entry-DSWhDnEC.js → nv-calendar.entry-DSoKDy9Q.js} +1 -1
- package/dist/cjs/{nv-col.entry-DDEtfCv-.js → nv-col.entry-CGNiCKta.js} +1 -1
- package/dist/cjs/{nv-datagrid.entry-5VIvkJGL.js → nv-datagrid.entry-YSL7aTz5.js} +67 -7
- package/dist/cjs/nv-datagridcolumn.entry-7whgB5iS.js +22 -0
- package/dist/cjs/{nv-dialog.entry-BgHknrOx.js → nv-dialog.entry-CLANnPw3.js} +17 -13
- package/dist/cjs/{nv-dialogfooter_2.entry-CXvA0O-2.js → nv-dialogfooter_2.entry-cHevwuGs.js} +1 -1
- package/dist/cjs/{nv-fieldcheckbox.entry-DTIebeJR.js → nv-fieldcheckbox.entry-BV8M8SyS.js} +2 -2
- package/dist/cjs/{nv-fielddate.entry-CIo_61Dc.js → nv-fielddate.entry--KEcXuio.js} +1 -1
- package/dist/cjs/{nv-fielddaterange.entry-D0fq5KFb.js → nv-fielddaterange.entry-Bctzvr40.js} +1 -1
- package/dist/cjs/{nv-fielddropdown.entry-BAaPyGtB.js → nv-fielddropdown.entry-DJPARQ0F.js} +4 -10
- package/dist/cjs/{nv-fielddropdownitem.entry-CW4WMmSZ.js → nv-fielddropdownitem.entry-DAlnhF7-.js} +1 -1
- package/dist/cjs/{nv-fieldmultiselect.entry-BGzYCJuF.js → nv-fieldmultiselect.entry-DDKtC-sR.js} +10 -65
- package/dist/cjs/{nv-fieldnumber.entry-C8zJkL24.js → nv-fieldnumber.entry-FzcOQMWp.js} +1 -1
- package/dist/cjs/{nv-fieldpassword.entry-7lS0Msfg.js → nv-fieldpassword.entry-ZgJKgEWo.js} +10 -8
- package/dist/cjs/{nv-fieldradio.entry-BgpmbG9E.js → nv-fieldradio.entry-B6vwI0oH.js} +1 -1
- package/dist/cjs/{nv-fieldselect.entry-CFDqeR-D.js → nv-fieldselect.entry-Dpb1RR2D.js} +2 -2
- package/dist/cjs/{nv-fieldtext.entry-DDqDSJp3.js → nv-fieldtext.entry-WhMFksEn.js} +1 -1
- package/dist/cjs/{nv-fieldtextarea.entry-DqzeITCG.js → nv-fieldtextarea.entry-Cpqi_pE7.js} +1 -1
- package/dist/cjs/{nv-fieldtime.entry-CPyLyQfR.js → nv-fieldtime.entry-BApGHC9K.js} +1 -1
- package/dist/cjs/{nv-icon.entry-B0Y3rgBQ.js → nv-icon.entry-DTbgrNDQ.js} +1 -1
- package/dist/cjs/{nv-iconbutton_2.entry-B02iDUid.js → nv-iconbutton_2.entry-D5Wjr6mr.js} +1 -1
- package/dist/cjs/{nv-menu.entry-BfmYkdYY.js → nv-menu.entry-4P44Bom1.js} +4 -4
- package/dist/cjs/{nv-menuitem.entry-Cedg0TCQ.js → nv-menuitem.entry-pYkLIeY9.js} +1 -1
- package/dist/cjs/{nv-popover.entry-C57rfYUn.js → nv-popover.entry-DJzEjs-d.js} +12 -10
- package/dist/cjs/{nv-row.entry-Ca7LiDAy.js → nv-row.entry-AQGhBTGs.js} +1 -1
- package/dist/cjs/{nv-stack.entry-BNyPxECg.js → nv-stack.entry-Bb6k4Yob.js} +1 -1
- package/dist/cjs/{nv-table.entry-DzOGLNUx.js → nv-table.entry-C4DY5CRF.js} +1 -1
- package/dist/cjs/{nv-tablecolumn.entry-BDCw_45v.js → nv-tablecolumn.entry-jJAoHJnt.js} +1 -1
- package/dist/cjs/{nv-toggle.entry-BIclNIeq.js → nv-toggle.entry-P76L0fsx.js} +2 -2
- package/dist/cjs/{nv-tooltip.entry--TVfBopp.js → nv-tooltip.entry-DC7XngcD.js} +1 -1
- package/dist/generated/components.js +1 -1
- package/dist/types/generated/components.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/index-BZCQTWfv.js +0 -26372
- package/dist/cjs/index-B_VOAJzk.js +0 -26373
- package/dist/cjs/index-C8UfzrMI.js +0 -26405
- package/dist/cjs/index-CDe7nrrW.js +0 -26373
- package/dist/cjs/index-CEWbQ5nh.js +0 -26373
- package/dist/cjs/index-CIcUUomJ.js +0 -26373
- package/dist/cjs/index-CinzsZ8D.js +0 -26405
- package/dist/cjs/index-CtI3SivD.js +0 -26373
- package/dist/cjs/nv-alert.entry-8esWDUyU.js +0 -173
- package/dist/cjs/nv-alert.entry-B-P-Fgdo.js +0 -173
- package/dist/cjs/nv-alert.entry-B3NpZh1C.js +0 -173
- package/dist/cjs/nv-alert.entry-BU86GY-d.js +0 -173
- package/dist/cjs/nv-alert.entry-CwZcD170.js +0 -173
- package/dist/cjs/nv-alert.entry-CxSN1zpW.js +0 -173
- package/dist/cjs/nv-alert.entry-DsoqN5tQ.js +0 -173
- package/dist/cjs/nv-alert.entry-xuY-Lvuj.js +0 -173
- package/dist/cjs/nv-avatar.entry-CO6bt4k6.js +0 -67
- package/dist/cjs/nv-avatar.entry-DJkpupVT.js +0 -67
- package/dist/cjs/nv-avatar.entry-DKXMQPOz.js +0 -67
- package/dist/cjs/nv-avatar.entry-DWOADxdQ.js +0 -67
- package/dist/cjs/nv-avatar.entry-DjyiGt07.js +0 -67
- package/dist/cjs/nv-avatar.entry-DuN1d3Vy.js +0 -67
- package/dist/cjs/nv-avatar.entry-pREKtiv2.js +0 -67
- package/dist/cjs/nv-avatar.entry-yyLQEqI7.js +0 -67
- package/dist/cjs/nv-badge_2.entry-BQXL0ZhP.js +0 -195
- package/dist/cjs/nv-badge_2.entry-CJQWS2xG.js +0 -195
- package/dist/cjs/nv-badge_2.entry-D0jeqYIQ.js +0 -195
- package/dist/cjs/nv-badge_2.entry-DKGHx4c8.js +0 -194
- package/dist/cjs/nv-badge_2.entry-Drgx-565.js +0 -195
- package/dist/cjs/nv-badge_2.entry-im1VnU5f.js +0 -195
- package/dist/cjs/nv-badge_2.entry-wDuiCwys.js +0 -195
- package/dist/cjs/nv-badge_2.entry-xfXsesV0.js +0 -195
- package/dist/cjs/nv-base.entry-BO-6krwg.js +0 -71
- package/dist/cjs/nv-base.entry-BmY-1Lne.js +0 -71
- package/dist/cjs/nv-base.entry-BuxI7QmU.js +0 -71
- package/dist/cjs/nv-base.entry-CcaAXjnO.js +0 -71
- package/dist/cjs/nv-base.entry-Ch8ncPl0.js +0 -71
- package/dist/cjs/nv-base.entry-D7gUvPIG.js +0 -71
- package/dist/cjs/nv-base.entry-DwtTXK_n.js +0 -71
- package/dist/cjs/nv-base.entry-c723sI4Y.js +0 -71
- package/dist/cjs/nv-breadcrumb.entry-B0hIeE83.js +0 -45
- package/dist/cjs/nv-breadcrumb.entry-B9rOxsg_.js +0 -45
- package/dist/cjs/nv-breadcrumb.entry-BtM_AHRC.js +0 -45
- package/dist/cjs/nv-breadcrumb.entry-C-xHbSJw.js +0 -45
- package/dist/cjs/nv-breadcrumb.entry-CxGReUqZ.js +0 -45
- package/dist/cjs/nv-breadcrumb.entry-DTwjCmMI.js +0 -45
- package/dist/cjs/nv-breadcrumb.entry-LYt0sALP.js +0 -45
- package/dist/cjs/nv-breadcrumb.entry-wy-P2BMg.js +0 -45
- package/dist/cjs/nv-breadcrumbs.entry-B7CaTbBe.js +0 -20
- package/dist/cjs/nv-breadcrumbs.entry-BA-TnreZ.js +0 -20
- package/dist/cjs/nv-breadcrumbs.entry-CEmZ3yFi.js +0 -20
- package/dist/cjs/nv-breadcrumbs.entry-Cq0LsIFs.js +0 -20
- package/dist/cjs/nv-breadcrumbs.entry-De5lsjQf.js +0 -20
- package/dist/cjs/nv-breadcrumbs.entry-_w38BddR.js +0 -20
- package/dist/cjs/nv-breadcrumbs.entry-jn5hRjpQ.js +0 -20
- package/dist/cjs/nv-breadcrumbs.entry-ubxLcEUH.js +0 -20
- package/dist/cjs/nv-button.entry-B5-Wf9hh.js +0 -162
- package/dist/cjs/nv-button.entry-CBNfIn-r.js +0 -162
- package/dist/cjs/nv-button.entry-D-DPQDNM.js +0 -162
- package/dist/cjs/nv-button.entry-DHZX7KH4.js +0 -162
- package/dist/cjs/nv-button.entry-DLoECCSK.js +0 -162
- package/dist/cjs/nv-button.entry-DaSGnB1L.js +0 -162
- package/dist/cjs/nv-button.entry-Dk6DqHG2.js +0 -162
- package/dist/cjs/nv-button.entry-DxzA6-My.js +0 -162
- package/dist/cjs/nv-calendar.entry-BC6NDsVl.js +0 -1036
- package/dist/cjs/nv-calendar.entry-BeCCaAVE.js +0 -1036
- package/dist/cjs/nv-calendar.entry-DKz-iBnp.js +0 -1036
- package/dist/cjs/nv-calendar.entry-DNyH8T5e.js +0 -1036
- package/dist/cjs/nv-calendar.entry-DUHckAh3.js +0 -1036
- package/dist/cjs/nv-calendar.entry-NU1TumeS.js +0 -1036
- package/dist/cjs/nv-calendar.entry-UUE6v4YC.js +0 -1036
- package/dist/cjs/nv-calendar.entry-ZtfR2qOV.js +0 -1036
- package/dist/cjs/nv-col.entry-B5nCHhbO.js +0 -37
- package/dist/cjs/nv-col.entry-Bx1VZSMw.js +0 -37
- package/dist/cjs/nv-col.entry-C400BeEE.js +0 -37
- package/dist/cjs/nv-col.entry-CYjFAVMF.js +0 -37
- package/dist/cjs/nv-col.entry-DNUY559i.js +0 -37
- package/dist/cjs/nv-col.entry-DqzImLSJ.js +0 -37
- package/dist/cjs/nv-col.entry-DtYBQEJz.js +0 -37
- package/dist/cjs/nv-col.entry-X7jkNThH.js +0 -37
- package/dist/cjs/nv-datagrid.entry-Ba9sfMQp.js +0 -3671
- package/dist/cjs/nv-datagrid.entry-Beehe_Sq.js +0 -3671
- package/dist/cjs/nv-datagrid.entry-CkD_jV75.js +0 -3671
- package/dist/cjs/nv-datagrid.entry-Cp8RCSEv.js +0 -3671
- package/dist/cjs/nv-datagrid.entry-D6p67Pa6.js +0 -3671
- package/dist/cjs/nv-datagrid.entry-DKqScS8N.js +0 -3671
- package/dist/cjs/nv-datagrid.entry-DL-Fyo4l.js +0 -3671
- package/dist/cjs/nv-datagrid.entry-ee865R4b.js +0 -3671
- package/dist/cjs/nv-datagridcolumn.entry-BeGXaBUe.js +0 -18
- package/dist/cjs/nv-datagridcolumn.entry-BodICzof.js +0 -18
- package/dist/cjs/nv-datagridcolumn.entry-CR9_1fsZ.js +0 -18
- package/dist/cjs/nv-datagridcolumn.entry-C_FtSltZ.js +0 -18
- package/dist/cjs/nv-datagridcolumn.entry-CyTG5E7M.js +0 -18
- package/dist/cjs/nv-datagridcolumn.entry-D1cyTR_G.js +0 -18
- package/dist/cjs/nv-datagridcolumn.entry-DRE7BDkk.js +0 -18
- package/dist/cjs/nv-datagridcolumn.entry-Du6-7fjr.js +0 -18
- package/dist/cjs/nv-datagridcolumn.entry-N70Aen6Q.js +0 -18
- package/dist/cjs/nv-dialog.entry-BjTJ5FFL.js +0 -784
- package/dist/cjs/nv-dialog.entry-C1hg-EG1.js +0 -784
- package/dist/cjs/nv-dialog.entry-COv2do_O.js +0 -784
- package/dist/cjs/nv-dialog.entry-Ck2hU43g.js +0 -784
- package/dist/cjs/nv-dialog.entry-Cl8iLrCo.js +0 -784
- package/dist/cjs/nv-dialog.entry-Cy71tlWz.js +0 -784
- package/dist/cjs/nv-dialog.entry-DdAHZGzm.js +0 -784
- package/dist/cjs/nv-dialog.entry-Do_uALC6.js +0 -784
- package/dist/cjs/nv-dialogfooter_2.entry-Ck6adFfd.js +0 -134
- package/dist/cjs/nv-dialogfooter_2.entry-DHa0SYhR.js +0 -134
- package/dist/cjs/nv-dialogfooter_2.entry-DJ8qS9q6.js +0 -134
- package/dist/cjs/nv-dialogfooter_2.entry-DJkKzEgO.js +0 -134
- package/dist/cjs/nv-dialogfooter_2.entry-DKvzkpt3.js +0 -134
- package/dist/cjs/nv-dialogfooter_2.entry-D_VuofBe.js +0 -134
- package/dist/cjs/nv-dialogfooter_2.entry-L5tHIb_T.js +0 -134
- package/dist/cjs/nv-dialogfooter_2.entry-kEa1K0n5.js +0 -134
- package/dist/cjs/nv-fieldcheckbox.entry-B4We4zG2.js +0 -137
- package/dist/cjs/nv-fieldcheckbox.entry-BmYyNV4r.js +0 -137
- package/dist/cjs/nv-fieldcheckbox.entry-C0DmeqXD.js +0 -137
- package/dist/cjs/nv-fieldcheckbox.entry-CBsQsbIA.js +0 -137
- package/dist/cjs/nv-fieldcheckbox.entry-DoGQX-5D.js +0 -137
- package/dist/cjs/nv-fieldcheckbox.entry-P--9IAJF.js +0 -137
- package/dist/cjs/nv-fieldcheckbox.entry-dBYg7CBU.js +0 -137
- package/dist/cjs/nv-fieldcheckbox.entry-dxhUZiEg.js +0 -137
- package/dist/cjs/nv-fielddate.entry-B53E-JaI.js +0 -278
- package/dist/cjs/nv-fielddate.entry-Bofdd2rE.js +0 -278
- package/dist/cjs/nv-fielddate.entry-CekIFTA0.js +0 -278
- package/dist/cjs/nv-fielddate.entry-D-PjbYaA.js +0 -278
- package/dist/cjs/nv-fielddate.entry-DRX2mfZL.js +0 -278
- package/dist/cjs/nv-fielddate.entry-DgS0X1wI.js +0 -278
- package/dist/cjs/nv-fielddate.entry-Do69eqHA.js +0 -278
- package/dist/cjs/nv-fielddate.entry-NJ6RAqlG.js +0 -278
- package/dist/cjs/nv-fielddaterange.entry-BrC5jKLp.js +0 -355
- package/dist/cjs/nv-fielddaterange.entry-BtPwfRw-.js +0 -355
- package/dist/cjs/nv-fielddaterange.entry-CxaBrZAX.js +0 -355
- package/dist/cjs/nv-fielddaterange.entry-D-6LjhjB.js +0 -355
- package/dist/cjs/nv-fielddaterange.entry-D2dzD3rW.js +0 -355
- package/dist/cjs/nv-fielddaterange.entry-DTLKVIqg.js +0 -355
- package/dist/cjs/nv-fielddaterange.entry-ka3JiDvT.js +0 -355
- package/dist/cjs/nv-fielddaterange.entry-w8WXPDuX.js +0 -355
- package/dist/cjs/nv-fielddropdown.entry-C5kMWmPP.js +0 -361
- package/dist/cjs/nv-fielddropdown.entry-CX2Ycn2i.js +0 -361
- package/dist/cjs/nv-fielddropdown.entry-CZxQlRNa.js +0 -361
- package/dist/cjs/nv-fielddropdown.entry-DUAKFYgw.js +0 -391
- package/dist/cjs/nv-fielddropdown.entry-DVl_Uy5A.js +0 -361
- package/dist/cjs/nv-fielddropdown.entry-MsUR1kVe.js +0 -391
- package/dist/cjs/nv-fielddropdown.entry-akfp1Bcy.js +0 -361
- package/dist/cjs/nv-fielddropdown.entry-hHh_RDC4.js +0 -361
- package/dist/cjs/nv-fielddropdownitem.entry-BsbvJERH.js +0 -70
- package/dist/cjs/nv-fielddropdownitem.entry-BscNyhXz.js +0 -68
- package/dist/cjs/nv-fielddropdownitem.entry-CMWgXP_Z.js +0 -68
- package/dist/cjs/nv-fielddropdownitem.entry-CS1Ejbc9.js +0 -68
- package/dist/cjs/nv-fielddropdownitem.entry-CuQqsz4f.js +0 -68
- package/dist/cjs/nv-fielddropdownitem.entry-DRM-Zljt.js +0 -70
- package/dist/cjs/nv-fielddropdownitem.entry-Dn2HJc1t.js +0 -68
- package/dist/cjs/nv-fielddropdownitem.entry-HK2I5pUG.js +0 -68
- package/dist/cjs/nv-fieldmultiselect.entry-5jdK36m6.js +0 -1060
- package/dist/cjs/nv-fieldmultiselect.entry-6o1yhNI5.js +0 -1060
- package/dist/cjs/nv-fieldmultiselect.entry-BN1ObPi8.js +0 -1060
- package/dist/cjs/nv-fieldmultiselect.entry-CuVEYN0v.js +0 -1060
- package/dist/cjs/nv-fieldmultiselect.entry-DFr-ZICs.js +0 -1060
- package/dist/cjs/nv-fieldmultiselect.entry-DHXJErt4.js +0 -1060
- package/dist/cjs/nv-fieldmultiselect.entry-Dr8FfT_W.js +0 -1060
- package/dist/cjs/nv-fieldmultiselect.entry-DycRd14V.js +0 -1060
- package/dist/cjs/nv-fieldnumber.entry-BHhIsjLK.js +0 -126
- package/dist/cjs/nv-fieldnumber.entry-BklKxOFA.js +0 -126
- package/dist/cjs/nv-fieldnumber.entry-C9rKWY_M.js +0 -126
- package/dist/cjs/nv-fieldnumber.entry-CEmPQK-3.js +0 -126
- package/dist/cjs/nv-fieldnumber.entry-CLhjFlCj.js +0 -126
- package/dist/cjs/nv-fieldnumber.entry-DZsM1vmO.js +0 -126
- package/dist/cjs/nv-fieldnumber.entry-_UiieYov.js +0 -126
- package/dist/cjs/nv-fieldnumber.entry-ezdDvJh_.js +0 -126
- package/dist/cjs/nv-fieldpassword.entry-B9-QFEsB.js +0 -115
- package/dist/cjs/nv-fieldpassword.entry-BIIoIKH4.js +0 -115
- package/dist/cjs/nv-fieldpassword.entry-BPhQxjsj.js +0 -115
- package/dist/cjs/nv-fieldpassword.entry-Biw__M2W.js +0 -115
- package/dist/cjs/nv-fieldpassword.entry-C5vG4jlh.js +0 -115
- package/dist/cjs/nv-fieldpassword.entry-C_jsHFJI.js +0 -115
- package/dist/cjs/nv-fieldpassword.entry-D4a8SnGr.js +0 -115
- package/dist/cjs/nv-fieldpassword.entry-DZkGQwM8.js +0 -115
- package/dist/cjs/nv-fieldradio.entry-CXR4k3wf.js +0 -102
- package/dist/cjs/nv-fieldradio.entry-CnasQlEx.js +0 -102
- package/dist/cjs/nv-fieldradio.entry-Co7WX2vI.js +0 -102
- package/dist/cjs/nv-fieldradio.entry-DUDPigQb.js +0 -102
- package/dist/cjs/nv-fieldradio.entry-DiD7Luxv.js +0 -102
- package/dist/cjs/nv-fieldradio.entry-Ili2RVKl.js +0 -102
- package/dist/cjs/nv-fieldradio.entry-ZL7KgEZ7.js +0 -102
- package/dist/cjs/nv-fieldradio.entry-aRAaLwpK.js +0 -102
- package/dist/cjs/nv-fieldselect.entry-B94QXSEk.js +0 -365
- package/dist/cjs/nv-fieldselect.entry-BwtEjL08.js +0 -365
- package/dist/cjs/nv-fieldselect.entry-CJSu63o5.js +0 -365
- package/dist/cjs/nv-fieldselect.entry-CmN1R9ij.js +0 -365
- package/dist/cjs/nv-fieldselect.entry-CoDfr4ie.js +0 -365
- package/dist/cjs/nv-fieldselect.entry-D6eRsM9T.js +0 -365
- package/dist/cjs/nv-fieldselect.entry-DgmnHnOR.js +0 -365
- package/dist/cjs/nv-fieldselect.entry-sTbv_flF.js +0 -365
- package/dist/cjs/nv-fieldtext.entry-B1TlZWjU.js +0 -119
- package/dist/cjs/nv-fieldtext.entry-BfQrX8ft.js +0 -119
- package/dist/cjs/nv-fieldtext.entry-BrUQu4OD.js +0 -119
- package/dist/cjs/nv-fieldtext.entry-CW6P-R-Q.js +0 -119
- package/dist/cjs/nv-fieldtext.entry-CyLJxDw6.js +0 -119
- package/dist/cjs/nv-fieldtext.entry-DKdxC2cG.js +0 -119
- package/dist/cjs/nv-fieldtext.entry-DRPCH6Sf.js +0 -119
- package/dist/cjs/nv-fieldtext.entry-IeIHa3jf.js +0 -119
- package/dist/cjs/nv-fieldtextarea.entry-BwJCUiVW.js +0 -194
- package/dist/cjs/nv-fieldtextarea.entry-D86SKGIN.js +0 -194
- package/dist/cjs/nv-fieldtextarea.entry-Dc_TGlmI.js +0 -194
- package/dist/cjs/nv-fieldtextarea.entry-DlFdCv_d.js +0 -194
- package/dist/cjs/nv-fieldtextarea.entry-TI-bucN-.js +0 -194
- package/dist/cjs/nv-fieldtextarea.entry-qMX2O8cX.js +0 -194
- package/dist/cjs/nv-fieldtextarea.entry-tTnWQgE4.js +0 -194
- package/dist/cjs/nv-fieldtextarea.entry-v6VpnEuH.js +0 -194
- package/dist/cjs/nv-fieldtime.entry-CXRtpWt1.js +0 -1011
- package/dist/cjs/nv-fieldtime.entry-CYmcHY1D.js +0 -1011
- package/dist/cjs/nv-fieldtime.entry-DGP1X4wF.js +0 -1011
- package/dist/cjs/nv-fieldtime.entry-DLSuRrlr.js +0 -1011
- package/dist/cjs/nv-fieldtime.entry-Zbjbmm7_.js +0 -1011
- package/dist/cjs/nv-fieldtime.entry-eDVRT6te.js +0 -1011
- package/dist/cjs/nv-fieldtime.entry-j-Fliiqj.js +0 -1011
- package/dist/cjs/nv-fieldtime.entry-uU-IET2k.js +0 -1011
- package/dist/cjs/nv-icon.entry-B_wtREWb.js +0 -79
- package/dist/cjs/nv-icon.entry-BfRAl2b6.js +0 -79
- package/dist/cjs/nv-icon.entry-CrKTCqY_.js +0 -79
- package/dist/cjs/nv-icon.entry-DRRmcXzh.js +0 -79
- package/dist/cjs/nv-icon.entry-Dlj1ko2i.js +0 -79
- package/dist/cjs/nv-icon.entry-S7WlK_lO.js +0 -79
- package/dist/cjs/nv-icon.entry-iipuvT3D.js +0 -79
- package/dist/cjs/nv-icon.entry-xltjoSa2.js +0 -79
- package/dist/cjs/nv-iconbutton_2.entry-BsXvYbCi.js +0 -163
- package/dist/cjs/nv-iconbutton_2.entry-C1Legk9t.js +0 -163
- package/dist/cjs/nv-iconbutton_2.entry-CUiW6MtK.js +0 -163
- package/dist/cjs/nv-iconbutton_2.entry-ClcvupMe.js +0 -163
- package/dist/cjs/nv-iconbutton_2.entry-D8MI5uzP.js +0 -163
- package/dist/cjs/nv-iconbutton_2.entry-D8hZ51H-.js +0 -163
- package/dist/cjs/nv-iconbutton_2.entry-Dx4usGkY.js +0 -163
- package/dist/cjs/nv-iconbutton_2.entry-QwaiOoYl.js +0 -163
- package/dist/cjs/nv-menu.entry-CT98WIRF.js +0 -227
- package/dist/cjs/nv-menu.entry-CfERF478.js +0 -227
- package/dist/cjs/nv-menu.entry-Ci3I7PDt.js +0 -227
- package/dist/cjs/nv-menu.entry-D3qvf_0H.js +0 -227
- package/dist/cjs/nv-menu.entry-DFEYw_KZ.js +0 -227
- package/dist/cjs/nv-menu.entry-DtLnsQW-.js +0 -227
- package/dist/cjs/nv-menu.entry-Kz5kGi2w.js +0 -227
- package/dist/cjs/nv-menu.entry-XdjjbAL6.js +0 -227
- package/dist/cjs/nv-menuitem.entry-3t6TixM7.js +0 -58
- package/dist/cjs/nv-menuitem.entry-BeTXOtir.js +0 -58
- package/dist/cjs/nv-menuitem.entry-C8nXPwP0.js +0 -58
- package/dist/cjs/nv-menuitem.entry-C9dsQqqN.js +0 -58
- package/dist/cjs/nv-menuitem.entry-CxCLeNsY.js +0 -58
- package/dist/cjs/nv-menuitem.entry-DkIG5z-x.js +0 -58
- package/dist/cjs/nv-menuitem.entry-bPnSDq_9.js +0 -58
- package/dist/cjs/nv-menuitem.entry-sRx1fD0O.js +0 -58
- package/dist/cjs/nv-popover.entry-BGXEOQM6.js +0 -1960
- package/dist/cjs/nv-popover.entry-Bv6kuTK_.js +0 -1960
- package/dist/cjs/nv-popover.entry-C6HFJJ-m.js +0 -1960
- package/dist/cjs/nv-popover.entry-CiGCCbn9.js +0 -1960
- package/dist/cjs/nv-popover.entry-CjTPZYkq.js +0 -1960
- package/dist/cjs/nv-popover.entry-CtO6pR6l.js +0 -1960
- package/dist/cjs/nv-popover.entry-Mo3DNUH6.js +0 -1960
- package/dist/cjs/nv-popover.entry-Zt25YeAv.js +0 -1960
- package/dist/cjs/nv-row.entry-BEgyuDR-.js +0 -21
- package/dist/cjs/nv-row.entry-BM_EcSp4.js +0 -21
- package/dist/cjs/nv-row.entry-BPK1Li7w.js +0 -21
- package/dist/cjs/nv-row.entry-B_7PiJA7.js +0 -21
- package/dist/cjs/nv-row.entry-Bwzlub3i.js +0 -21
- package/dist/cjs/nv-row.entry-Cy9vd2iY.js +0 -21
- package/dist/cjs/nv-row.entry-DKoNhAcX.js +0 -21
- package/dist/cjs/nv-row.entry-OYGKTXhV.js +0 -21
- package/dist/cjs/nv-stack.entry-ByaO-0TJ.js +0 -30
- package/dist/cjs/nv-stack.entry-C8ZFDaKn.js +0 -30
- package/dist/cjs/nv-stack.entry-CLMAAbkw.js +0 -30
- package/dist/cjs/nv-stack.entry-DfRRFeEo.js +0 -30
- package/dist/cjs/nv-stack.entry-DiXvhuSS.js +0 -30
- package/dist/cjs/nv-stack.entry-bhess4lQ.js +0 -30
- package/dist/cjs/nv-stack.entry-lwhqS230.js +0 -30
- package/dist/cjs/nv-stack.entry-u3NjC31-.js +0 -30
- package/dist/cjs/nv-table.entry-BNy2ALll.js +0 -338
- package/dist/cjs/nv-table.entry-BPazUUGA.js +0 -338
- package/dist/cjs/nv-table.entry-C7Hd57Iq.js +0 -338
- package/dist/cjs/nv-table.entry-COwgRxqz.js +0 -338
- package/dist/cjs/nv-table.entry-CTo8cqCN.js +0 -338
- package/dist/cjs/nv-table.entry-D3U4dFcw.js +0 -338
- package/dist/cjs/nv-table.entry-mEtRfake.js +0 -338
- package/dist/cjs/nv-table.entry-o525Lfea.js +0 -338
- package/dist/cjs/nv-tablecolumn.entry-BESdQMDh.js +0 -18
- package/dist/cjs/nv-tablecolumn.entry-BzwWPlLf.js +0 -18
- package/dist/cjs/nv-tablecolumn.entry-CuEt5Wgn.js +0 -18
- package/dist/cjs/nv-tablecolumn.entry-D3I1dB1X.js +0 -18
- package/dist/cjs/nv-tablecolumn.entry-DvJF_QTE.js +0 -18
- package/dist/cjs/nv-tablecolumn.entry-DvO0JxdY.js +0 -18
- package/dist/cjs/nv-tablecolumn.entry-L4KLlHFu.js +0 -18
- package/dist/cjs/nv-tablecolumn.entry-vrmt1Y0L.js +0 -18
- package/dist/cjs/nv-toggle.entry-BTqGH_H0.js +0 -79
- package/dist/cjs/nv-toggle.entry-Bv0DrF-x.js +0 -79
- package/dist/cjs/nv-toggle.entry-BxKZDHdI.js +0 -79
- package/dist/cjs/nv-toggle.entry-DXpNGkbz.js +0 -79
- package/dist/cjs/nv-toggle.entry-DYhnFucd.js +0 -79
- package/dist/cjs/nv-toggle.entry-PRWy57Ro.js +0 -79
- package/dist/cjs/nv-toggle.entry-fDIAyeVX.js +0 -79
- package/dist/cjs/nv-toggle.entry-yqg7e7Qc.js +0 -79
- package/dist/cjs/nv-tooltip.entry-58RCazbO.js +0 -44
- package/dist/cjs/nv-tooltip.entry-BBJNnZmj.js +0 -44
- package/dist/cjs/nv-tooltip.entry-BDZfrLHv.js +0 -44
- package/dist/cjs/nv-tooltip.entry-Bnu7xEl6.js +0 -44
- package/dist/cjs/nv-tooltip.entry-BrrSQyMx.js +0 -44
- package/dist/cjs/nv-tooltip.entry-BuSwME_F.js +0 -44
- package/dist/cjs/nv-tooltip.entry-ChQpdQn_.js +0 -44
- package/dist/cjs/nv-tooltip.entry-CvCZZV88.js +0 -44
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-CinzsZ8D.js');
|
|
4
|
-
var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
|
|
5
|
-
var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
|
|
6
|
-
require('react');
|
|
7
|
-
|
|
8
|
-
const nvFieldradioCss = "nv-fieldradio{--nv-fieldradio-border-default:var(--components-form-field-border-default);--nv-fieldradio-border-hover:var(--components-form-field-border-hover);--nv-fieldradio-border-focus:var(--components-form-field-border-default);--nv-fieldradio-background-default:var(--components-form-field-background-default);--nv-fieldradio-background-checked:var(--components-form-field-background-checked);--nv-fieldradio-background-disabled:var(--components-form-field-background-disabled);--nv-fieldradio-focus-box-shadow:var(--color-focus-brand);--nv-fieldradio-dot-color-checked:var(--components-form-shape-foreground-default);--nv-fieldradio-dot-color-disabled:var(--components-form-shape-foreground-disabled);--nv-fieldradio-outline-color:var(--color-focus-brand);display:inline-flex;align-items:flex-start;gap:var(--form-gap-x)}nv-fieldradio:not([disabled]) input,nv-fieldradio:not([disabled]) label,nv-fieldradio[disabled=false] input,nv-fieldradio[disabled=false] label{cursor:pointer}nv-fieldradio.error{--nv-fieldradio-border-default:var(--components-form-field-border-error);--nv-fieldradio-border-hover:var(--nv-fieldradio-border-default);--nv-fieldradio-border-focus:var(--components-form-field-border-error);--nv-fieldradio-background-checked:var(--components-form-field-background-error);--nv-fieldradio-focus-box-shadow:var(--color-focus-destructive);--nv-fieldradio-dot-color-checked:var(--components-form-shape-foreground-default);--nv-fieldradio-dot-color-disabled:var(--components-form-field-border-error);--nv-fieldradio-outline-color:var(--color-focus-destructive)}nv-fieldradio.label-placement-before{flex-direction:row-reverse}nv-fieldradio[disabled]{opacity:0.5}nv-fieldradio label{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:var(--form-label-font-weight);line-height:var(--form-label-line-height)}nv-fieldradio input[type=radio]{appearance:none;position:relative;display:flex;width:var(--form-radio-size);height:var(--form-radio-size);padding:var(--form-radio-inner-circle-padding);flex-direction:column;align-items:flex-start;border-radius:var(--radius-rounded-full);border-width:var(--form-radio-border-width);border-style:solid;border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-default)}nv-fieldradio input[type=radio]:hover{border-color:var(--nv-fieldradio-border-hover)}nv-fieldradio input[type=radio]:focus{border-color:var(--nv-fieldradio-border-focus)}nv-fieldradio input[type=radio]:focus,nv-fieldradio input[type=radio]:focus-within{outline:none}nv-fieldradio input[type=radio]:focus-visible,nv-fieldradio input[type=radio]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--nv-fieldradio-outline-color);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-fieldradio input[type=radio]:checked{background:var(--nv-fieldradio-background-checked);border-color:var(--nv-fieldradio-background-checked)}nv-fieldradio input[type=radio]:checked:hover,nv-fieldradio input[type=radio]:checked:focus{border-color:var(--nv-fieldradio-background-checked);background:var(--nv-fieldradio-background-checked)}nv-fieldradio input[type=radio]:checked::before{content:\"\";position:absolute;top:50%;right:50%;transform:translate(50%, -50%);left:0;width:var(--form-radio-inner-circle-size);height:var(--form-radio-inner-circle-size);flex-shrink:0;border-radius:var(--radius-rounded-full);background:var(--nv-fieldradio-dot-color-checked)}nv-fieldradio input[type=radio]:disabled{border-radius:var(--radius-rounded-full);border-width:var(--form-radio-border-width);border-style:solid;border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-disabled)}nv-fieldradio input[type=radio]:disabled:checked::before{background:var(--nv-fieldradio-dot-color-disabled)}nv-fieldradio input[type=radio]:disabled:hover{border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-disabled)}nv-fieldradio .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;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height)}nv-fieldradio .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;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}nv-fieldradio .text-container{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0}";
|
|
9
|
-
const NvFieldradioStyle0 = nvFieldradioCss;
|
|
10
|
-
|
|
11
|
-
const NvFieldradio = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.checkedChanged = index.createEvent(this, "checkedChanged");
|
|
15
|
-
/**
|
|
16
|
-
* Set the label placement to before the input
|
|
17
|
-
* @deprecated use labelPlacement instead.
|
|
18
|
-
*/
|
|
19
|
-
this.labelBefore = false;
|
|
20
|
-
//#endregion DEPRECATED
|
|
21
|
-
/****************************************************************************/
|
|
22
|
-
//#region PROPERTIES
|
|
23
|
-
/**
|
|
24
|
-
* Sets the ID for the radio button’s input element and the for attribute of
|
|
25
|
-
* the associated label. If no ID is provided, a random one will be
|
|
26
|
-
* automatically generated to ensure unique identification, facilitating
|
|
27
|
-
* proper label association and accessibility.
|
|
28
|
-
*/
|
|
29
|
-
this.inputId = v4A79185f4.v4();
|
|
30
|
-
/**
|
|
31
|
-
* Highlight the radio button with error styling. It helps users quickly
|
|
32
|
-
* identify which option needs attention, improving their form-filling
|
|
33
|
-
* experience by making issues more visible.
|
|
34
|
-
* @validator error
|
|
35
|
-
*/
|
|
36
|
-
this.error = false;
|
|
37
|
-
/**
|
|
38
|
-
* Controls whether the radio button is selected.
|
|
39
|
-
*/
|
|
40
|
-
this.checked = false;
|
|
41
|
-
/**
|
|
42
|
-
* Disables the radio button, making it un-selectable.
|
|
43
|
-
*/
|
|
44
|
-
this.disabled = false;
|
|
45
|
-
/**
|
|
46
|
-
* Applies focus to the input field as soon as the component is mounted. This
|
|
47
|
-
* is equivalent to setting the native autofocus attribute on an <input>
|
|
48
|
-
* element.
|
|
49
|
-
*/
|
|
50
|
-
this.autofocus = false;
|
|
51
|
-
}
|
|
52
|
-
componentWillRender() {
|
|
53
|
-
if (this.message) {
|
|
54
|
-
this.description = this.message;
|
|
55
|
-
}
|
|
56
|
-
if (this.labelBefore) {
|
|
57
|
-
this.labelPlacement = 'before';
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
//#endregion EVENTS
|
|
61
|
-
/****************************************************************************/
|
|
62
|
-
//#region WATCHERS
|
|
63
|
-
/**
|
|
64
|
-
* Watches for changes to the checked state and emits the new value.
|
|
65
|
-
* @param {boolean} checked - The new value of the checked state.
|
|
66
|
-
*/
|
|
67
|
-
handleCheckedChange(checked) {
|
|
68
|
-
this.checkedChanged.emit(checked);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Listens for the change event on the radio button input element and controls
|
|
72
|
-
* the checked state of the host elements.
|
|
73
|
-
* @param {Event} event - The change event.
|
|
74
|
-
*/
|
|
75
|
-
handleChange(event) {
|
|
76
|
-
const target = event.target;
|
|
77
|
-
if ((target === null || target === void 0 ? void 0 : target.type) === 'radio') {
|
|
78
|
-
Array.from(document.getElementsByTagName('nv-fieldradio')).forEach(element => {
|
|
79
|
-
if (element.name === this.name) {
|
|
80
|
-
element.checked = false;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
this.checked = target.checked;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
//#endregion WATCHERS
|
|
87
|
-
/****************************************************************************/
|
|
88
|
-
//#region RENDER
|
|
89
|
-
render() {
|
|
90
|
-
return (index.h(index.Host, { key: 'cab4d25a83792d8f0d3f5de48073a621f8b1823e', class: clsx297c1ffe.clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, index.h("input", { key: 'a923e6ad8e76b90c5e00ae17a353614b8f7390b1', type: "radio", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: this.checked, disabled: this.disabled }), index.h("div", { key: '585cc5389b0190e2291447d188637e8325d937aa', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '7e16f9cd7078e11661685a141afbd46472683e0f', htmlFor: this.inputId }, index.h("slot", { key: '3e9aab3f47e1a0c96a6e3b6f2495428bce324962', name: "label" }, this.label))), (this.description ||
|
|
91
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '0c2b8b8e49dd877131c37bb23d450e254c58fcdc', class: "description" }, index.h("slot", { key: 'fd3d99a005667b46260dde7d84f4c6b82e4e4853', name: "description" }, this.description))), (this.errorDescription ||
|
|
92
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'd524f91210f3e28627e68f380484d1c28ab962d9', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '416222f3b3db021de57b35697a64270582f6bad7', name: "error-description" }, this.errorDescription))))));
|
|
93
|
-
}
|
|
94
|
-
static get formAssociated() { return true; }
|
|
95
|
-
get el() { return index.getElement(this); }
|
|
96
|
-
static get watchers() { return {
|
|
97
|
-
"checked": ["handleCheckedChange"]
|
|
98
|
-
}; }
|
|
99
|
-
};
|
|
100
|
-
NvFieldradio.style = NvFieldradioStyle0;
|
|
101
|
-
|
|
102
|
-
exports.nv_fieldradio = NvFieldradio;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-CtI3SivD.js');
|
|
4
|
-
var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
|
|
5
|
-
var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
|
|
6
|
-
require('react');
|
|
7
|
-
|
|
8
|
-
const nvFieldradioCss = "nv-fieldradio{--nv-fieldradio-border-default:var(--components-form-field-border-default);--nv-fieldradio-border-hover:var(--components-form-field-border-hover);--nv-fieldradio-border-focus:var(--components-form-field-border-default);--nv-fieldradio-background-default:var(--components-form-field-background-default);--nv-fieldradio-background-checked:var(--components-form-field-background-checked);--nv-fieldradio-background-disabled:var(--components-form-field-background-disabled);--nv-fieldradio-focus-box-shadow:var(--color-focus-brand);--nv-fieldradio-dot-color-checked:var(--components-form-shape-foreground-default);--nv-fieldradio-dot-color-disabled:var(--components-form-shape-foreground-disabled);--nv-fieldradio-outline-color:var(--color-focus-brand);display:inline-flex;align-items:flex-start;gap:var(--form-gap-x)}nv-fieldradio:not([disabled]) input,nv-fieldradio:not([disabled]) label,nv-fieldradio[disabled=false] input,nv-fieldradio[disabled=false] label{cursor:pointer}nv-fieldradio.error{--nv-fieldradio-border-default:var(--components-form-field-border-error);--nv-fieldradio-border-hover:var(--nv-fieldradio-border-default);--nv-fieldradio-border-focus:var(--components-form-field-border-error);--nv-fieldradio-background-checked:var(--components-form-field-background-error);--nv-fieldradio-focus-box-shadow:var(--color-focus-destructive);--nv-fieldradio-dot-color-checked:var(--components-form-shape-foreground-default);--nv-fieldradio-dot-color-disabled:var(--components-form-field-border-error);--nv-fieldradio-outline-color:var(--color-focus-destructive)}nv-fieldradio.label-placement-before{flex-direction:row-reverse}nv-fieldradio[disabled]{opacity:0.5}nv-fieldradio label{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:var(--form-label-font-weight);line-height:var(--form-label-line-height)}nv-fieldradio input[type=radio]{appearance:none;position:relative;display:flex;width:var(--form-radio-size);height:var(--form-radio-size);padding:var(--form-radio-inner-circle-padding);flex-direction:column;align-items:flex-start;border-radius:var(--radius-rounded-full);border-width:var(--form-radio-border-width);border-style:solid;border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-default)}nv-fieldradio input[type=radio]:hover{border-color:var(--nv-fieldradio-border-hover)}nv-fieldradio input[type=radio]:focus{border-color:var(--nv-fieldradio-border-focus)}nv-fieldradio input[type=radio]:focus,nv-fieldradio input[type=radio]:focus-within{outline:none}nv-fieldradio input[type=radio]:focus-visible,nv-fieldradio input[type=radio]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--nv-fieldradio-outline-color);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-fieldradio input[type=radio]:checked{background:var(--nv-fieldradio-background-checked);border-color:var(--nv-fieldradio-background-checked)}nv-fieldradio input[type=radio]:checked:hover,nv-fieldradio input[type=radio]:checked:focus{border-color:var(--nv-fieldradio-background-checked);background:var(--nv-fieldradio-background-checked)}nv-fieldradio input[type=radio]:checked::before{content:\"\";position:absolute;top:50%;right:50%;transform:translate(50%, -50%);left:0;width:var(--form-radio-inner-circle-size);height:var(--form-radio-inner-circle-size);flex-shrink:0;border-radius:var(--radius-rounded-full);background:var(--nv-fieldradio-dot-color-checked)}nv-fieldradio input[type=radio]:disabled{border-radius:var(--radius-rounded-full);border-width:var(--form-radio-border-width);border-style:solid;border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-disabled)}nv-fieldradio input[type=radio]:disabled:checked::before{background:var(--nv-fieldradio-dot-color-disabled)}nv-fieldradio input[type=radio]:disabled:hover{border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-disabled)}nv-fieldradio .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;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height)}nv-fieldradio .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;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}nv-fieldradio .text-container{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0}";
|
|
9
|
-
const NvFieldradioStyle0 = nvFieldradioCss;
|
|
10
|
-
|
|
11
|
-
const NvFieldradio = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.checkedChanged = index.createEvent(this, "checkedChanged");
|
|
15
|
-
/**
|
|
16
|
-
* Set the label placement to before the input
|
|
17
|
-
* @deprecated use labelPlacement instead.
|
|
18
|
-
*/
|
|
19
|
-
this.labelBefore = false;
|
|
20
|
-
//#endregion DEPRECATED
|
|
21
|
-
/****************************************************************************/
|
|
22
|
-
//#region PROPERTIES
|
|
23
|
-
/**
|
|
24
|
-
* Sets the ID for the radio button’s input element and the for attribute of
|
|
25
|
-
* the associated label. If no ID is provided, a random one will be
|
|
26
|
-
* automatically generated to ensure unique identification, facilitating
|
|
27
|
-
* proper label association and accessibility.
|
|
28
|
-
*/
|
|
29
|
-
this.inputId = v4A79185f4.v4();
|
|
30
|
-
/**
|
|
31
|
-
* Highlight the radio button with error styling. It helps users quickly
|
|
32
|
-
* identify which option needs attention, improving their form-filling
|
|
33
|
-
* experience by making issues more visible.
|
|
34
|
-
* @validator error
|
|
35
|
-
*/
|
|
36
|
-
this.error = false;
|
|
37
|
-
/**
|
|
38
|
-
* Controls whether the radio button is selected.
|
|
39
|
-
*/
|
|
40
|
-
this.checked = false;
|
|
41
|
-
/**
|
|
42
|
-
* Disables the radio button, making it un-selectable.
|
|
43
|
-
*/
|
|
44
|
-
this.disabled = false;
|
|
45
|
-
/**
|
|
46
|
-
* Applies focus to the input field as soon as the component is mounted. This
|
|
47
|
-
* is equivalent to setting the native autofocus attribute on an <input>
|
|
48
|
-
* element.
|
|
49
|
-
*/
|
|
50
|
-
this.autofocus = false;
|
|
51
|
-
}
|
|
52
|
-
componentWillRender() {
|
|
53
|
-
if (this.message) {
|
|
54
|
-
this.description = this.message;
|
|
55
|
-
}
|
|
56
|
-
if (this.labelBefore) {
|
|
57
|
-
this.labelPlacement = 'before';
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
//#endregion EVENTS
|
|
61
|
-
/****************************************************************************/
|
|
62
|
-
//#region WATCHERS
|
|
63
|
-
/**
|
|
64
|
-
* Watches for changes to the checked state and emits the new value.
|
|
65
|
-
* @param {boolean} checked - The new value of the checked state.
|
|
66
|
-
*/
|
|
67
|
-
handleCheckedChange(checked) {
|
|
68
|
-
this.checkedChanged.emit(checked);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Listens for the change event on the radio button input element and controls
|
|
72
|
-
* the checked state of the host elements.
|
|
73
|
-
* @param {Event} event - The change event.
|
|
74
|
-
*/
|
|
75
|
-
handleChange(event) {
|
|
76
|
-
const target = event.target;
|
|
77
|
-
if ((target === null || target === void 0 ? void 0 : target.type) === 'radio') {
|
|
78
|
-
Array.from(document.getElementsByTagName('nv-fieldradio')).forEach(element => {
|
|
79
|
-
if (element.name === this.name) {
|
|
80
|
-
element.checked = false;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
this.checked = target.checked;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
//#endregion WATCHERS
|
|
87
|
-
/****************************************************************************/
|
|
88
|
-
//#region RENDER
|
|
89
|
-
render() {
|
|
90
|
-
return (index.h(index.Host, { key: 'fd326df67c5617156ef00d50d789d3328584788e', class: clsx297c1ffe.clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, index.h("input", { key: 'fae44c510d1f43c508a837b94cc16f8094617813', type: "radio", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: this.checked, disabled: this.disabled }), index.h("div", { key: 'd4e9378e300691439bf57a580e8381a8142d8c78', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '56cdbda0feb823825f5ba5e125a478db23321379', htmlFor: this.inputId }, index.h("slot", { key: '83e67f52228b7d6313fd35cd4a46edeeabc83a1b', name: "label" }, this.label))), (this.description ||
|
|
91
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '8bb15a57d23f2826dfff31a7a3101ed263618e5f', class: "description" }, index.h("slot", { key: '6d339430073e1eada1557ea762d9abeda7f338e1', name: "description" }, this.description))), (this.errorDescription ||
|
|
92
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'd4b3c8ef17c70442839c61cf19bc0d9598be57c2', hidden: !this.error, class: "error-description" }, index.h("slot", { key: 'ca609be33a5253f85ed5101786c1981101f83743', name: "error-description" }, this.errorDescription))))));
|
|
93
|
-
}
|
|
94
|
-
static get formAssociated() { return true; }
|
|
95
|
-
get el() { return index.getElement(this); }
|
|
96
|
-
static get watchers() { return {
|
|
97
|
-
"checked": ["handleCheckedChange"]
|
|
98
|
-
}; }
|
|
99
|
-
};
|
|
100
|
-
NvFieldradio.style = NvFieldradioStyle0;
|
|
101
|
-
|
|
102
|
-
exports.nv_fieldradio = NvFieldradio;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-B_VOAJzk.js');
|
|
4
|
-
var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
|
|
5
|
-
var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
|
|
6
|
-
require('react');
|
|
7
|
-
|
|
8
|
-
const nvFieldradioCss = "nv-fieldradio{--nv-fieldradio-border-default:var(--components-form-field-border-default);--nv-fieldradio-border-hover:var(--components-form-field-border-hover);--nv-fieldradio-border-focus:var(--components-form-field-border-default);--nv-fieldradio-background-default:var(--components-form-field-background-default);--nv-fieldradio-background-checked:var(--components-form-field-background-checked);--nv-fieldradio-background-disabled:var(--components-form-field-background-disabled);--nv-fieldradio-focus-box-shadow:var(--color-focus-brand);--nv-fieldradio-dot-color-checked:var(--components-form-shape-foreground-default);--nv-fieldradio-dot-color-disabled:var(--components-form-shape-foreground-disabled);--nv-fieldradio-outline-color:var(--color-focus-brand);display:inline-flex;align-items:flex-start;gap:var(--form-gap-x)}nv-fieldradio:not([disabled]) input,nv-fieldradio:not([disabled]) label,nv-fieldradio[disabled=false] input,nv-fieldradio[disabled=false] label{cursor:pointer}nv-fieldradio.error{--nv-fieldradio-border-default:var(--components-form-field-border-error);--nv-fieldradio-border-hover:var(--nv-fieldradio-border-default);--nv-fieldradio-border-focus:var(--components-form-field-border-error);--nv-fieldradio-background-checked:var(--components-form-field-background-error);--nv-fieldradio-focus-box-shadow:var(--color-focus-destructive);--nv-fieldradio-dot-color-checked:var(--components-form-shape-foreground-default);--nv-fieldradio-dot-color-disabled:var(--components-form-field-border-error);--nv-fieldradio-outline-color:var(--color-focus-destructive)}nv-fieldradio.label-placement-before{flex-direction:row-reverse}nv-fieldradio[disabled]{opacity:0.5}nv-fieldradio label{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:var(--form-label-font-weight);line-height:var(--form-label-line-height)}nv-fieldradio input[type=radio]{appearance:none;position:relative;display:flex;width:var(--form-radio-size);height:var(--form-radio-size);padding:var(--form-radio-inner-circle-padding);flex-direction:column;align-items:flex-start;border-radius:var(--radius-rounded-full);border-width:var(--form-radio-border-width);border-style:solid;border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-default)}nv-fieldradio input[type=radio]:hover{border-color:var(--nv-fieldradio-border-hover)}nv-fieldradio input[type=radio]:focus{border-color:var(--nv-fieldradio-border-focus)}nv-fieldradio input[type=radio]:focus,nv-fieldradio input[type=radio]:focus-within{outline:none}nv-fieldradio input[type=radio]:focus-visible,nv-fieldradio input[type=radio]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--nv-fieldradio-outline-color);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-fieldradio input[type=radio]:checked{background:var(--nv-fieldradio-background-checked);border-color:var(--nv-fieldradio-background-checked)}nv-fieldradio input[type=radio]:checked:hover,nv-fieldradio input[type=radio]:checked:focus{border-color:var(--nv-fieldradio-background-checked);background:var(--nv-fieldradio-background-checked)}nv-fieldradio input[type=radio]:checked::before{content:\"\";position:absolute;top:50%;right:50%;transform:translate(50%, -50%);left:0;width:var(--form-radio-inner-circle-size);height:var(--form-radio-inner-circle-size);flex-shrink:0;border-radius:var(--radius-rounded-full);background:var(--nv-fieldradio-dot-color-checked)}nv-fieldradio input[type=radio]:disabled{border-radius:var(--radius-rounded-full);border-width:var(--form-radio-border-width);border-style:solid;border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-disabled)}nv-fieldradio input[type=radio]:disabled:checked::before{background:var(--nv-fieldradio-dot-color-disabled)}nv-fieldradio input[type=radio]:disabled:hover{border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-disabled)}nv-fieldradio .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;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height)}nv-fieldradio .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;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}nv-fieldradio .text-container{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0}";
|
|
9
|
-
const NvFieldradioStyle0 = nvFieldradioCss;
|
|
10
|
-
|
|
11
|
-
const NvFieldradio = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.checkedChanged = index.createEvent(this, "checkedChanged");
|
|
15
|
-
/**
|
|
16
|
-
* Set the label placement to before the input
|
|
17
|
-
* @deprecated use labelPlacement instead.
|
|
18
|
-
*/
|
|
19
|
-
this.labelBefore = false;
|
|
20
|
-
//#endregion DEPRECATED
|
|
21
|
-
/****************************************************************************/
|
|
22
|
-
//#region PROPERTIES
|
|
23
|
-
/**
|
|
24
|
-
* Sets the ID for the radio button’s input element and the for attribute of
|
|
25
|
-
* the associated label. If no ID is provided, a random one will be
|
|
26
|
-
* automatically generated to ensure unique identification, facilitating
|
|
27
|
-
* proper label association and accessibility.
|
|
28
|
-
*/
|
|
29
|
-
this.inputId = v4A79185f4.v4();
|
|
30
|
-
/**
|
|
31
|
-
* Highlight the radio button with error styling. It helps users quickly
|
|
32
|
-
* identify which option needs attention, improving their form-filling
|
|
33
|
-
* experience by making issues more visible.
|
|
34
|
-
* @validator error
|
|
35
|
-
*/
|
|
36
|
-
this.error = false;
|
|
37
|
-
/**
|
|
38
|
-
* Controls whether the radio button is selected.
|
|
39
|
-
*/
|
|
40
|
-
this.checked = false;
|
|
41
|
-
/**
|
|
42
|
-
* Disables the radio button, making it un-selectable.
|
|
43
|
-
*/
|
|
44
|
-
this.disabled = false;
|
|
45
|
-
/**
|
|
46
|
-
* Applies focus to the input field as soon as the component is mounted. This
|
|
47
|
-
* is equivalent to setting the native autofocus attribute on an <input>
|
|
48
|
-
* element.
|
|
49
|
-
*/
|
|
50
|
-
this.autofocus = false;
|
|
51
|
-
}
|
|
52
|
-
componentWillRender() {
|
|
53
|
-
if (this.message) {
|
|
54
|
-
this.description = this.message;
|
|
55
|
-
}
|
|
56
|
-
if (this.labelBefore) {
|
|
57
|
-
this.labelPlacement = 'before';
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
//#endregion EVENTS
|
|
61
|
-
/****************************************************************************/
|
|
62
|
-
//#region WATCHERS
|
|
63
|
-
/**
|
|
64
|
-
* Watches for changes to the checked state and emits the new value.
|
|
65
|
-
* @param {boolean} checked - The new value of the checked state.
|
|
66
|
-
*/
|
|
67
|
-
handleCheckedChange(checked) {
|
|
68
|
-
this.checkedChanged.emit(checked);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Listens for the change event on the radio button input element and controls
|
|
72
|
-
* the checked state of the host elements.
|
|
73
|
-
* @param {Event} event - The change event.
|
|
74
|
-
*/
|
|
75
|
-
handleChange(event) {
|
|
76
|
-
const target = event.target;
|
|
77
|
-
if ((target === null || target === void 0 ? void 0 : target.type) === 'radio') {
|
|
78
|
-
Array.from(document.getElementsByTagName('nv-fieldradio')).forEach(element => {
|
|
79
|
-
if (element.name === this.name) {
|
|
80
|
-
element.checked = false;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
this.checked = target.checked;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
//#endregion WATCHERS
|
|
87
|
-
/****************************************************************************/
|
|
88
|
-
//#region RENDER
|
|
89
|
-
render() {
|
|
90
|
-
return (index.h(index.Host, { key: 'c600a157513b8401903807773cbd269008b35197', class: clsx297c1ffe.clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, index.h("input", { key: '7861b2a7e9f6b5b4bef5f74781401eb4fb3c746d', type: "radio", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: this.checked, disabled: this.disabled }), index.h("div", { key: '3612e5a6667d8bb1800a724386f84debe33cc0f4', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: 'e9caab357d06e25dab7b7b72020f56029d89f373', htmlFor: this.inputId }, index.h("slot", { key: '04441ea9acb42628cf0618c566e9d7be159d962d', name: "label" }, this.label))), (this.description ||
|
|
91
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '190427a3db123787a85f2abb72e47192a06586b4', class: "description" }, index.h("slot", { key: '6799968f7ebbc302890c4544fe16f5928ac2a0e8', name: "description" }, this.description))), (this.errorDescription ||
|
|
92
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'b37bd97668df39b1160c581f0b62a5140ada9b59', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '7a715e8cc5dd5f41173d3b4d5d7cc229a787e2f9', name: "error-description" }, this.errorDescription))))));
|
|
93
|
-
}
|
|
94
|
-
static get formAssociated() { return true; }
|
|
95
|
-
get el() { return index.getElement(this); }
|
|
96
|
-
static get watchers() { return {
|
|
97
|
-
"checked": ["handleCheckedChange"]
|
|
98
|
-
}; }
|
|
99
|
-
};
|
|
100
|
-
NvFieldradio.style = NvFieldradioStyle0;
|
|
101
|
-
|
|
102
|
-
exports.nv_fieldradio = NvFieldradio;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-BZCQTWfv.js');
|
|
4
|
-
var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
|
|
5
|
-
var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
|
|
6
|
-
require('react');
|
|
7
|
-
|
|
8
|
-
const nvFieldradioCss = "nv-fieldradio{--nv-fieldradio-border-default:var(--components-form-field-border-default);--nv-fieldradio-border-hover:var(--components-form-field-border-hover);--nv-fieldradio-border-focus:var(--components-form-field-border-default);--nv-fieldradio-background-default:var(--components-form-field-background-default);--nv-fieldradio-background-checked:var(--components-form-field-background-checked);--nv-fieldradio-background-disabled:var(--components-form-field-background-disabled);--nv-fieldradio-focus-box-shadow:var(--color-focus-brand);--nv-fieldradio-dot-color-checked:var(--components-form-shape-foreground-default);--nv-fieldradio-dot-color-disabled:var(--components-form-shape-foreground-disabled);--nv-fieldradio-outline-color:var(--color-focus-brand);display:inline-flex;align-items:flex-start;gap:var(--form-gap-x)}nv-fieldradio:not([disabled]) input,nv-fieldradio:not([disabled]) label,nv-fieldradio[disabled=false] input,nv-fieldradio[disabled=false] label{cursor:pointer}nv-fieldradio.error{--nv-fieldradio-border-default:var(--components-form-field-border-error);--nv-fieldradio-border-hover:var(--nv-fieldradio-border-default);--nv-fieldradio-border-focus:var(--components-form-field-border-error);--nv-fieldradio-background-checked:var(--components-form-field-background-error);--nv-fieldradio-focus-box-shadow:var(--color-focus-destructive);--nv-fieldradio-dot-color-checked:var(--components-form-shape-foreground-default);--nv-fieldradio-dot-color-disabled:var(--components-form-field-border-error);--nv-fieldradio-outline-color:var(--color-focus-destructive)}nv-fieldradio.label-placement-before{flex-direction:row-reverse}nv-fieldradio[disabled]{opacity:0.5}nv-fieldradio label{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:var(--form-label-font-weight);line-height:var(--form-label-line-height)}nv-fieldradio input[type=radio]{appearance:none;position:relative;display:flex;width:var(--form-radio-size);height:var(--form-radio-size);padding:var(--form-radio-inner-circle-padding);flex-direction:column;align-items:flex-start;border-radius:var(--radius-rounded-full);border-width:var(--form-radio-border-width);border-style:solid;border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-default)}nv-fieldradio input[type=radio]:hover{border-color:var(--nv-fieldradio-border-hover)}nv-fieldradio input[type=radio]:focus{border-color:var(--nv-fieldradio-border-focus)}nv-fieldradio input[type=radio]:focus,nv-fieldradio input[type=radio]:focus-within{outline:none}nv-fieldradio input[type=radio]:focus-visible,nv-fieldradio input[type=radio]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--nv-fieldradio-outline-color);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-fieldradio input[type=radio]:checked{background:var(--nv-fieldradio-background-checked);border-color:var(--nv-fieldradio-background-checked)}nv-fieldradio input[type=radio]:checked:hover,nv-fieldradio input[type=radio]:checked:focus{border-color:var(--nv-fieldradio-background-checked);background:var(--nv-fieldradio-background-checked)}nv-fieldradio input[type=radio]:checked::before{content:\"\";position:absolute;top:50%;right:50%;transform:translate(50%, -50%);left:0;width:var(--form-radio-inner-circle-size);height:var(--form-radio-inner-circle-size);flex-shrink:0;border-radius:var(--radius-rounded-full);background:var(--nv-fieldradio-dot-color-checked)}nv-fieldradio input[type=radio]:disabled{border-radius:var(--radius-rounded-full);border-width:var(--form-radio-border-width);border-style:solid;border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-disabled)}nv-fieldradio input[type=radio]:disabled:checked::before{background:var(--nv-fieldradio-dot-color-disabled)}nv-fieldradio input[type=radio]:disabled:hover{border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-disabled)}nv-fieldradio .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;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height)}nv-fieldradio .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;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}nv-fieldradio .text-container{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0}";
|
|
9
|
-
const NvFieldradioStyle0 = nvFieldradioCss;
|
|
10
|
-
|
|
11
|
-
const NvFieldradio = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.checkedChanged = index.createEvent(this, "checkedChanged");
|
|
15
|
-
/**
|
|
16
|
-
* Set the label placement to before the input
|
|
17
|
-
* @deprecated use labelPlacement instead.
|
|
18
|
-
*/
|
|
19
|
-
this.labelBefore = false;
|
|
20
|
-
//#endregion DEPRECATED
|
|
21
|
-
/****************************************************************************/
|
|
22
|
-
//#region PROPERTIES
|
|
23
|
-
/**
|
|
24
|
-
* Sets the ID for the radio button’s input element and the for attribute of
|
|
25
|
-
* the associated label. If no ID is provided, a random one will be
|
|
26
|
-
* automatically generated to ensure unique identification, facilitating
|
|
27
|
-
* proper label association and accessibility.
|
|
28
|
-
*/
|
|
29
|
-
this.inputId = v4A79185f4.v4();
|
|
30
|
-
/**
|
|
31
|
-
* Highlight the radio button with error styling. It helps users quickly
|
|
32
|
-
* identify which option needs attention, improving their form-filling
|
|
33
|
-
* experience by making issues more visible.
|
|
34
|
-
* @validator error
|
|
35
|
-
*/
|
|
36
|
-
this.error = false;
|
|
37
|
-
/**
|
|
38
|
-
* Controls whether the radio button is selected.
|
|
39
|
-
*/
|
|
40
|
-
this.checked = false;
|
|
41
|
-
/**
|
|
42
|
-
* Disables the radio button, making it un-selectable.
|
|
43
|
-
*/
|
|
44
|
-
this.disabled = false;
|
|
45
|
-
/**
|
|
46
|
-
* Applies focus to the input field as soon as the component is mounted. This
|
|
47
|
-
* is equivalent to setting the native autofocus attribute on an <input>
|
|
48
|
-
* element.
|
|
49
|
-
*/
|
|
50
|
-
this.autofocus = false;
|
|
51
|
-
}
|
|
52
|
-
componentWillRender() {
|
|
53
|
-
if (this.message) {
|
|
54
|
-
this.description = this.message;
|
|
55
|
-
}
|
|
56
|
-
if (this.labelBefore) {
|
|
57
|
-
this.labelPlacement = 'before';
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
//#endregion EVENTS
|
|
61
|
-
/****************************************************************************/
|
|
62
|
-
//#region WATCHERS
|
|
63
|
-
/**
|
|
64
|
-
* Watches for changes to the checked state and emits the new value.
|
|
65
|
-
* @param {boolean} checked - The new value of the checked state.
|
|
66
|
-
*/
|
|
67
|
-
handleCheckedChange(checked) {
|
|
68
|
-
this.checkedChanged.emit(checked);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Listens for the change event on the radio button input element and controls
|
|
72
|
-
* the checked state of the host elements.
|
|
73
|
-
* @param {Event} event - The change event.
|
|
74
|
-
*/
|
|
75
|
-
handleChange(event) {
|
|
76
|
-
const target = event.target;
|
|
77
|
-
if ((target === null || target === void 0 ? void 0 : target.type) === 'radio') {
|
|
78
|
-
Array.from(document.getElementsByTagName('nv-fieldradio')).forEach(element => {
|
|
79
|
-
if (element.name === this.name) {
|
|
80
|
-
element.checked = false;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
this.checked = target.checked;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
//#endregion WATCHERS
|
|
87
|
-
/****************************************************************************/
|
|
88
|
-
//#region RENDER
|
|
89
|
-
render() {
|
|
90
|
-
return (index.h(index.Host, { key: 'c600a157513b8401903807773cbd269008b35197', class: clsx297c1ffe.clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, index.h("input", { key: '7861b2a7e9f6b5b4bef5f74781401eb4fb3c746d', type: "radio", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: this.checked, disabled: this.disabled }), index.h("div", { key: '3612e5a6667d8bb1800a724386f84debe33cc0f4', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: 'e9caab357d06e25dab7b7b72020f56029d89f373', htmlFor: this.inputId }, index.h("slot", { key: '04441ea9acb42628cf0618c566e9d7be159d962d', name: "label" }, this.label))), (this.description ||
|
|
91
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '190427a3db123787a85f2abb72e47192a06586b4', class: "description" }, index.h("slot", { key: '6799968f7ebbc302890c4544fe16f5928ac2a0e8', name: "description" }, this.description))), (this.errorDescription ||
|
|
92
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'b37bd97668df39b1160c581f0b62a5140ada9b59', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '7a715e8cc5dd5f41173d3b4d5d7cc229a787e2f9', name: "error-description" }, this.errorDescription))))));
|
|
93
|
-
}
|
|
94
|
-
static get formAssociated() { return true; }
|
|
95
|
-
get el() { return index.getElement(this); }
|
|
96
|
-
static get watchers() { return {
|
|
97
|
-
"checked": ["handleCheckedChange"]
|
|
98
|
-
}; }
|
|
99
|
-
};
|
|
100
|
-
NvFieldradio.style = NvFieldradioStyle0;
|
|
101
|
-
|
|
102
|
-
exports.nv_fieldradio = NvFieldradio;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-C8UfzrMI.js');
|
|
4
|
-
var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
|
|
5
|
-
var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
|
|
6
|
-
require('react');
|
|
7
|
-
|
|
8
|
-
const nvFieldradioCss = "nv-fieldradio{--nv-fieldradio-border-default:var(--components-form-field-border-default);--nv-fieldradio-border-hover:var(--components-form-field-border-hover);--nv-fieldradio-border-focus:var(--components-form-field-border-default);--nv-fieldradio-background-default:var(--components-form-field-background-default);--nv-fieldradio-background-checked:var(--components-form-field-background-checked);--nv-fieldradio-background-disabled:var(--components-form-field-background-disabled);--nv-fieldradio-focus-box-shadow:var(--color-focus-brand);--nv-fieldradio-dot-color-checked:var(--components-form-shape-foreground-default);--nv-fieldradio-dot-color-disabled:var(--components-form-shape-foreground-disabled);--nv-fieldradio-outline-color:var(--color-focus-brand);display:inline-flex;align-items:flex-start;gap:var(--form-gap-x)}nv-fieldradio:not([disabled]) input,nv-fieldradio:not([disabled]) label,nv-fieldradio[disabled=false] input,nv-fieldradio[disabled=false] label{cursor:pointer}nv-fieldradio.error{--nv-fieldradio-border-default:var(--components-form-field-border-error);--nv-fieldradio-border-hover:var(--nv-fieldradio-border-default);--nv-fieldradio-border-focus:var(--components-form-field-border-error);--nv-fieldradio-background-checked:var(--components-form-field-background-error);--nv-fieldradio-focus-box-shadow:var(--color-focus-destructive);--nv-fieldradio-dot-color-checked:var(--components-form-shape-foreground-default);--nv-fieldradio-dot-color-disabled:var(--components-form-field-border-error);--nv-fieldradio-outline-color:var(--color-focus-destructive)}nv-fieldradio.label-placement-before{flex-direction:row-reverse}nv-fieldradio[disabled]{opacity:0.5}nv-fieldradio label{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:var(--form-label-font-weight);line-height:var(--form-label-line-height)}nv-fieldradio input[type=radio]{appearance:none;position:relative;display:flex;width:var(--form-radio-size);height:var(--form-radio-size);padding:var(--form-radio-inner-circle-padding);flex-direction:column;align-items:flex-start;border-radius:var(--radius-rounded-full);border-width:var(--form-radio-border-width);border-style:solid;border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-default)}nv-fieldradio input[type=radio]:hover{border-color:var(--nv-fieldradio-border-hover)}nv-fieldradio input[type=radio]:focus{border-color:var(--nv-fieldradio-border-focus)}nv-fieldradio input[type=radio]:focus,nv-fieldradio input[type=radio]:focus-within{outline:none}nv-fieldradio input[type=radio]:focus-visible,nv-fieldradio input[type=radio]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--nv-fieldradio-outline-color);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-fieldradio input[type=radio]:checked{background:var(--nv-fieldradio-background-checked);border-color:var(--nv-fieldradio-background-checked)}nv-fieldradio input[type=radio]:checked:hover,nv-fieldradio input[type=radio]:checked:focus{border-color:var(--nv-fieldradio-background-checked);background:var(--nv-fieldradio-background-checked)}nv-fieldradio input[type=radio]:checked::before{content:\"\";position:absolute;top:50%;right:50%;transform:translate(50%, -50%);left:0;width:var(--form-radio-inner-circle-size);height:var(--form-radio-inner-circle-size);flex-shrink:0;border-radius:var(--radius-rounded-full);background:var(--nv-fieldradio-dot-color-checked)}nv-fieldradio input[type=radio]:disabled{border-radius:var(--radius-rounded-full);border-width:var(--form-radio-border-width);border-style:solid;border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-disabled)}nv-fieldradio input[type=radio]:disabled:checked::before{background:var(--nv-fieldradio-dot-color-disabled)}nv-fieldradio input[type=radio]:disabled:hover{border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-disabled)}nv-fieldradio .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;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height)}nv-fieldradio .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;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}nv-fieldradio .text-container{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0}";
|
|
9
|
-
const NvFieldradioStyle0 = nvFieldradioCss;
|
|
10
|
-
|
|
11
|
-
const NvFieldradio = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.checkedChanged = index.createEvent(this, "checkedChanged");
|
|
15
|
-
/**
|
|
16
|
-
* Set the label placement to before the input
|
|
17
|
-
* @deprecated use labelPlacement instead.
|
|
18
|
-
*/
|
|
19
|
-
this.labelBefore = false;
|
|
20
|
-
//#endregion DEPRECATED
|
|
21
|
-
/****************************************************************************/
|
|
22
|
-
//#region PROPERTIES
|
|
23
|
-
/**
|
|
24
|
-
* Sets the ID for the radio button’s input element and the for attribute of
|
|
25
|
-
* the associated label. If no ID is provided, a random one will be
|
|
26
|
-
* automatically generated to ensure unique identification, facilitating
|
|
27
|
-
* proper label association and accessibility.
|
|
28
|
-
*/
|
|
29
|
-
this.inputId = v4A79185f4.v4();
|
|
30
|
-
/**
|
|
31
|
-
* Highlight the radio button with error styling. It helps users quickly
|
|
32
|
-
* identify which option needs attention, improving their form-filling
|
|
33
|
-
* experience by making issues more visible.
|
|
34
|
-
* @validator error
|
|
35
|
-
*/
|
|
36
|
-
this.error = false;
|
|
37
|
-
/**
|
|
38
|
-
* Controls whether the radio button is selected.
|
|
39
|
-
*/
|
|
40
|
-
this.checked = false;
|
|
41
|
-
/**
|
|
42
|
-
* Disables the radio button, making it un-selectable.
|
|
43
|
-
*/
|
|
44
|
-
this.disabled = false;
|
|
45
|
-
/**
|
|
46
|
-
* Applies focus to the input field as soon as the component is mounted. This
|
|
47
|
-
* is equivalent to setting the native autofocus attribute on an <input>
|
|
48
|
-
* element.
|
|
49
|
-
*/
|
|
50
|
-
this.autofocus = false;
|
|
51
|
-
}
|
|
52
|
-
componentWillRender() {
|
|
53
|
-
if (this.message) {
|
|
54
|
-
this.description = this.message;
|
|
55
|
-
}
|
|
56
|
-
if (this.labelBefore) {
|
|
57
|
-
this.labelPlacement = 'before';
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
//#endregion EVENTS
|
|
61
|
-
/****************************************************************************/
|
|
62
|
-
//#region WATCHERS
|
|
63
|
-
/**
|
|
64
|
-
* Watches for changes to the checked state and emits the new value.
|
|
65
|
-
* @param {boolean} checked - The new value of the checked state.
|
|
66
|
-
*/
|
|
67
|
-
handleCheckedChange(checked) {
|
|
68
|
-
this.checkedChanged.emit(checked);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Listens for the change event on the radio button input element and controls
|
|
72
|
-
* the checked state of the host elements.
|
|
73
|
-
* @param {Event} event - The change event.
|
|
74
|
-
*/
|
|
75
|
-
handleChange(event) {
|
|
76
|
-
const target = event.target;
|
|
77
|
-
if ((target === null || target === void 0 ? void 0 : target.type) === 'radio') {
|
|
78
|
-
Array.from(document.getElementsByTagName('nv-fieldradio')).forEach(element => {
|
|
79
|
-
if (element.name === this.name) {
|
|
80
|
-
element.checked = false;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
this.checked = target.checked;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
//#endregion WATCHERS
|
|
87
|
-
/****************************************************************************/
|
|
88
|
-
//#region RENDER
|
|
89
|
-
render() {
|
|
90
|
-
return (index.h(index.Host, { key: '04e417ca606c79a00280c1c14ae7ea69dec4e6ab', class: clsx297c1ffe.clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, index.h("input", { key: '6fe5601b5ca59cab1362fad80191a7819568f2f4', type: "radio", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: this.checked, disabled: this.disabled }), index.h("div", { key: '4efce6c30743730f21457d33da6356bd0d9ebac7', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '3bb1be0f170d101c6ca29888841a3ad5efb0db24', htmlFor: this.inputId }, index.h("slot", { key: 'f1e824ce858558ab5f817d2108d13e86fa64eb15', name: "label" }, this.label))), (this.description ||
|
|
91
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '050efa495f2f6b3e477875efb58b7b2c30f09776', class: "description" }, index.h("slot", { key: 'd74ec8eb70e38702879d7483010bae0f0706c84b', name: "description" }, this.description))), (this.errorDescription ||
|
|
92
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'e1cef9aceb3f0afa8b9b4bff0a1f1d7db0d674d0', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '835a8e7e3efd66d060215062ef86faf0e25c0657', name: "error-description" }, this.errorDescription))))));
|
|
93
|
-
}
|
|
94
|
-
static get formAssociated() { return true; }
|
|
95
|
-
get el() { return index.getElement(this); }
|
|
96
|
-
static get watchers() { return {
|
|
97
|
-
"checked": ["handleCheckedChange"]
|
|
98
|
-
}; }
|
|
99
|
-
};
|
|
100
|
-
NvFieldradio.style = NvFieldradioStyle0;
|
|
101
|
-
|
|
102
|
-
exports.nv_fieldradio = NvFieldradio;
|